/* ============================================================
   iLearnReady – Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary: #2E7D32;
  --primary-light: #43A047;
  --primary-dark: #1B5E20;
  --accent: #F57C00;
  --accent-light: #FFA726;
  --blue: #1565C0;
  --purple: #6A1B9A;
  --bg: #F5F7F0;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5f6368;
  --border: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.navbar-brand .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}

.navbar-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .92rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(46,125,50,.08);
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #66BB6A 100%);
  color: #fff;
  padding: 90px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; max-width: 700px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero p {
  font-size: 1.1rem;
  opacity: .88;
  max-width: 520px;
  margin: 0 auto 36px;
}

.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.btn-white:hover { box-shadow: 0 8px 24px rgba(0,0,0,.2); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}

.btn-outline-white:hover { background: rgba(255,255,255,.12); }

/* ---------- Section Wrapper ---------- */
.section { padding: 80px 24px; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 52px; }

.section-header .tag {
  display: inline-block;
  background: rgba(46,125,50,.1);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Cards - Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--text-muted); }

/* ---------- Subject Pills ---------- */
.subjects-section { background: #fff; }

.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.subject-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 18px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.subject-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }

.subject-pill .emoji { font-size: 2rem; margin-bottom: 10px; }
.subject-pill h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.subject-pill p { font-size: .8rem; color: var(--text-muted); }

/* ---------- Grade Badges ---------- */
.grade-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.grade-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 4px 12px rgba(46,125,50,.3);
}

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}

.cta-strip h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cta-strip p { opacity: .85; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer {
  background: #111;
  color: rgba(255,255,255,.7);
  padding: 48px 24px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand { max-width: 280px; }

.footer-brand .logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }

.footer-links h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  font-size: .82rem;
  flex-wrap: wrap;
}

.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Privacy Policy Page ---------- */
.policy-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1976D2 100%);
  color: #fff;
  padding: 70px 24px 60px;
  text-align: center;
}

.policy-hero h1 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; margin-bottom: 10px; }
.policy-hero p { opacity: .85; max-width: 540px; margin: 0 auto; }

.policy-body { max-width: 820px; margin: 0 auto; padding: 60px 24px 80px; }

.policy-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(21,101,192,.12);
}

.policy-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.policy-body h4 {
  font-size: .95rem;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--text-muted);
}

.policy-body p { margin-bottom: 14px; color: var(--text-muted); font-size: .95rem; }

.policy-body ul {
  margin: 0 0 18px 20px;
  color: var(--text-muted);
  font-size: .95rem;
}

.policy-body li { margin-bottom: 8px; }

.policy-body a { color: var(--blue); text-decoration: underline; }

.policy-meta {
  background: rgba(21,101,192,.06);
  border: 1px solid rgba(21,101,192,.15);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: .88rem;
  color: var(--blue);
  display: inline-block;
  margin-bottom: 32px;
  font-weight: 500;
}

/* ---------- Support Page ---------- */
.support-hero {
  background: linear-gradient(135deg, var(--purple) 0%, #8E24AA 100%);
  color: #fff;
  padding: 70px 24px 60px;
  text-align: center;
}

.support-hero h1 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; margin-bottom: 10px; }
.support-hero p { opacity: .85; max-width: 540px; margin: 0 auto; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.contact-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: 16px; }
.contact-card a.link-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.contact-card a.link-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--bg); }

.faq-icon {
  font-size: 1.1rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  color: var(--primary);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ---------- Contact Form ---------- */
.contact-form-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,.12);
  background: #fff;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(46,125,50,.3);
}

.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,125,50,.4); }

.success-msg {
  display: none;
  text-align: center;
  padding: 20px;
  background: rgba(46,125,50,.08);
  border: 1px solid rgba(46,125,50,.2);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 600;
  margin-top: 16px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .navbar-nav { display: none; }
  .footer-top { flex-direction: column; }
  .contact-form-wrap { padding: 28px 20px; }
}
