/* =====================================================
   GREYSTONE TUTORS — style.css
   ===================================================== */

/* ----- Custom Properties ----- */
:root {
  --navy:   #0D1B3E;
  --gold:   #C9A84C;
  --gold-light: #dfc07a;
  --cream:  #F9F6F0;
  --cream-dark: #ede9e1;
  --white:  #ffffff;
  --text-dark: #1a1a2e;
  --text-mid:  #4a4a6a;
  --text-light: #8888aa;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1160px;
  --section-pad: clamp(5rem, 10vw, 9rem);
  --nav-h: 72px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- Utility ----- */
.container {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.content-section {
  background: var(--cream);
  padding-block: var(--section-pad);
}


.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-large {
  font-size: 1rem;
  padding: 1.125rem 2.75rem;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
.section-heading em {
  font-style: italic;
  font-weight: 400;
}


/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: auto;
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 32px rgba(13, 27, 62, 0.18);
}

.nav-inner {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 0;
}

.nav-logo {
  flex-shrink: 0;
}

.burger-menu {
  margin-left: auto;
  margin-right: 0.5rem;
}

.nav-cta {
  flex-shrink: 0;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cream);
  transition: transform var(--transition);
}

.nav-logo img {
  width: 110px;
  height: auto;
  display: block;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  margin-left: 0.2rem;
  letter-spacing: 0.02em;
  line-height: 1;
  display: flex;
  align-items: center;
}

.nav-logo:hover {
  transform: scale(1.02);
}

.nav-logo:hover .nav-brand-text {
  color: var(--gold);
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 220px;
  background: var(--gold);
  flex-direction: column;
  gap: 0;
  padding-block: 0.5rem;
  border-top: 1px solid rgba(13,27,62,0.2);
  border-radius: 4px;
  margin-top: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.nav-menu.active {
  display: flex;
}

.nav-link {
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.03em;
  display: block;
}

.nav-link:hover {
  color: var(--cream);
  background: rgba(13,27,62,0.15);
}

.nav-cta-mobile {
  display: none;
  margin: 1rem clamp(1.5rem, 5vw, 3rem) 0;
}

.burger-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem 0.75rem;
  z-index: 101;
  position: relative;
  margin-left: 0.5rem;
  height: 44px;
  justify-content: center;
  align-items: center;
}

.burger-line {
  width: 24px;
  height: 2.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
  box-shadow: 0 0 2px rgba(249,246,240,0.8);
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.nav-right-controls {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.nav-cta {
  font-size: 0.75rem;
  padding: 0.6rem 1.4rem;
  white-space: nowrap;
  height: 44px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
    margin-left: 0.7rem;
  }

  .nav-logo {
    order: 1;
  }

  .nav-brand-text {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-cta-mobile {
    display: block;
  }

  .nav-right-controls {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: auto;
    left: 0;
    bottom: 0;
    min-width: unset;
    width: 100%;
    border-radius: 0;
    margin-top: 0;
    box-shadow: none;
    flex-direction: column;
    gap: 0;
    padding-block: 0;
    border-top: none;
    background: var(--navy);
    overflow-y: auto;
    z-index: 100;
  }

  .nav-link {
    color: var(--cream);
    padding: 1rem clamp(1.5rem, 5vw, 3rem);
    border-bottom: 1px solid rgba(201,168,76,0.1);
    font-size: 0.95rem;
  }

  .nav-link:hover {
    color: var(--gold);
    background: rgba(201,168,76,0.1);
  }
}


/* ===================================================
   HERO
   =================================================== */
.hero {
  min-height: 90svh;
  background:
    url('Stock%20Images/9cd2afff-a7f1-4c16-a1db-ef978ff8a90e-u2_86302b00-e137-4269-8f64-8e03dfb1f2bf.png')
    center center / cover no-repeat,
    var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(140px + 3rem) clamp(1.5rem, 5vw, 3rem) 6rem;
}

/* Dark overlay + gold accent gradients over the photo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(201,168,76,0.04) 0%, transparent 60%),
    rgba(10, 20, 50, 0.62);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 860px;
  text-align: center;
  animation: heroFadeUp 1s ease both;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}
.hero-word-rotator {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  min-width: 6ch;
}

.hero-word,
.hero-article {
  display: inline-block;
}

.hero-word.word-exit,
.hero-article.word-exit {
  animation: wordSlideOut 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.hero-word.word-enter,
.hero-article.word-enter {
  animation: wordSlideIn 0.4s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes wordSlideOut {
  to { opacity: 0; transform: translateY(-0.6em); }
}

@keyframes wordSlideIn {
  from { opacity: 0; transform: translateY(0.6em); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-headline em {
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(249,246,240,0.72);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.hero-pillars {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(184,152,90,0.2);
  border-radius: 6px;
  overflow: hidden;
}

.hero-pillar {
  flex: 1;
  padding: 1.25rem 1.5rem;
  text-align: left;
}

.hero-pillar-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(184,152,90,0.2);
  flex-shrink: 0;
}

.hero-pillar-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.hero-pillar-body {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(249,246,240,0.65);
  margin: 0;
}

@media (max-width: 540px) {
  .hero-pillars {
    flex-direction: column;
  }
  .hero-pillar-divider {
    width: auto;
    height: 1px;
  }
}

.hero-stat {
  display: inline-block;
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--gold);
  border: 1px solid rgba(184,152,90,0.35);
  border-radius: 4px;
  padding: 0.55rem 1.1rem;
  margin-bottom: 2rem;
  letter-spacing: 0.01em;
}
.hero-stat strong {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
}
.hero-stat em {
  font-style: normal;
  opacity: 0.65;
  font-size: 0.8em;
}

.hero-cta { }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(2rem); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}


/* ===================================================
   THE PROBLEM
   =================================================== */
.problem {
  background: var(--cream);
  padding-block: var(--section-pad);
}

.problem-heading {
  max-width: 820px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.problem-col p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
}
.problem-col p:last-child { margin-bottom: 0; }

.problem-col-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cream-dark);
}

.problem-col-solution .problem-col-title {
  border-bottom-color: var(--gold);
}


/* ===================================================
   THREE PILLARS
   =================================================== */
.pillars {
  background: var(--navy);
  padding-block: var(--section-pad);
}

.pillars .section-eyebrow { color: var(--gold); }

.pillars-heading {
  color: var(--cream);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.pillar-card {
  background: rgba(13,27,62,0.95);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  transition: background var(--transition);
}
.pillar-card:hover {
  background: rgba(255,255,255,0.04);
}
.pillar-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.pillar-card:hover::after { transform: scaleX(1); }

.pillar-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1rem;
}

.pillar-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(249,246,240,0.6);
  margin-bottom: 1.5rem;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pillar-list li {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(249,246,240,0.5);
  padding-left: 1rem;
  position: relative;
}
.pillar-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}


/* ===================================================
   HOW IT WORKS
   =================================================== */
.how-it-works {
  background: var(--cream);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.how-it-works .section-heading {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.step {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--navy);
  opacity: 0.07;
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}

.step-connector {
  position: absolute;
  top: clamp(3rem, 6vw, 4.5rem);
  right: -1px;
  width: 2px;
  height: 2px;
  background: var(--cream-dark);
}
.step-connector::before, .step-connector::after {
  content: '';
  position: absolute;
  background: var(--cream-dark);
}
.step-connector::before {
  top: -20px;
  left: 0;
  width: 1px;
  height: 40px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.875rem;
}

.step-desc {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-mid);
}

/* Dividers between steps */
.step:not(:last-child) {
  border-right: 1px solid var(--cream-dark);
}

.how-cta-wrap {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}


/* ===================================================
   SOCIAL PROOF
   =================================================== */
.social-proof {
  background: var(--navy);
  padding-block: var(--section-pad);
}

.quote-wrap {
  max-width: 820px;
  margin-inline: auto;
  position: relative;
  padding-left: clamp(2rem, 5vw, 4rem);
}

.quote-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.75;
  color: var(--cream);
  margin-bottom: 2rem;
}

.quote-footer {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.quote-name {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.quote-context {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(249,246,240,0.45);
  letter-spacing: 0.04em;
}


/* ===================================================
   CONTACT / CTA SECTION
   =================================================== */
.contact-section {
  background: var(--cream);
  padding-block: var(--section-pad);
  border-top: 1px solid var(--cream-dark);
}

.contact-inner {
  text-align: center;
}

.contact-heading {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.contact-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.contact-email-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-light);
}
.contact-email-note a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-email-note a:hover { color: var(--gold); }


/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-inner {
  width: min(var(--max-w), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 1.5rem 3rem;
  align-items: start;
}

.footer-brand { grid-column: 1; grid-row: 1; }

.footer-logo-image {
  width: 40px;
  max-height: 40px;
  margin-bottom: 0.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cream);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(249,246,240,0.35);
}

.footer-nav {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: flex-end;
  align-items: flex-start;
}
.footer-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(249,246,240,0.45);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); }

.footer-legal {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.75rem;
  color: rgba(249,246,240,0.25);
}


/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .pillar-card::after { display: none; }

  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--cream-dark);
  }
  .step-connector { display: none; }
}

@media (max-width: 720px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .footer-nav {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .footer-legal { grid-row: 3; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: clamp(2rem, 9vw, 3rem); }
  .nav-cta { display: none; }
}

/* Mobile: shift hero background right so model character is visible */
@media (max-width: 768px) {
  .hero {
    background-position: 68% center;
  }
}

/* Mobile: subject grid single column so checkboxes are readable */
@media (max-width: 480px) {
  .subject-grid {
    grid-template-columns: 1fr;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 62, 0);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 999;
  transition: background 0.25s ease;
}

.modal-overlay.is-visible {
  display: flex;
  background: rgba(13, 27, 62, 0.65);
}

.modal-content {
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  padding: 1.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-overlay.is-visible .modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(13,27,62,.2);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: var(--cream-dark);
  transform: scale(1.05);
}

.modal-header {
  text-align: center;
  margin-bottom: 0.7rem;
  flex-shrink: 0;
}

.modal-logo {
  max-width: 100px;
  margin-bottom: 0.4rem;
}

.modal-header h2 {
  margin-bottom: 0.2rem;
  font-size: 1.35rem;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin: 0;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 0.45rem;
  padding: 0.1rem 0;
}

.subject-grid label {
  display: flex;
  align-items: center;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  background: #fff;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.subject-grid label input {
  width: auto;
  flex-shrink: 0;
  margin-right: 0.35rem;
  accent-color: var(--gold);
}

.subject-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.subject-item label {
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.exam-board-select {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
  opacity: 0;
  margin-top: 0;
}

.exam-board-select.is-open {
  max-height: 50px;
  opacity: 1;
  margin-top: 0.3rem;
}

.exam-board-select select {
  font-size: 0.78rem;
  padding: 0.25rem 0.4rem;
  border-color: var(--gold);
  background: #fffdf7;
  color: var(--navy);
}

.assessment-form {
  display: grid;
  gap: 0.55rem;
  overflow-y: auto;
  max-height: calc(100vh - 16rem);
}

.assessment-form label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-top: 0.2rem;
}

.assessment-form input,
.assessment-form select,
.assessment-form textarea {
  width: 100%;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  padding: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fff;
}

.assessment-form textarea {
  resize: vertical;
  min-height: 80px;
}

.assessment-form small {
  color: var(--text-light);
  font-size: 0.75rem;
  margin-top: -0.4rem;
}

.form-status {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  min-height: 1rem;
}

.form-status.success,
.apply-status.success {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.9rem;
}

.required {
  color: var(--gold);
  margin-left: 0.12rem;
}

@media (max-width: 700px) {
  .modal-content {
    padding: 1rem;
    max-height: calc(100vh - 1rem);
  }

  .assessment-form {
    max-height: calc(100vh - 14rem);
  }

  .modal-header {
    margin-bottom: 0.5rem;
  }

  .modal-logo {
    max-width: 80px;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }
}

/* ===================================================
   SCROLL REVEAL (JS-powered classes)
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


/* ===================================================
   GRADE PREDICTOR PAGE
   =================================================== */

.predictor-hero {
  min-height: 52vh;
}

.predictor-hero-logo {
  width: clamp(120px, 18vw, 180px);
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.predictor-page {
  padding-top: 3.5rem;
  padding-bottom: 6rem;
  background: var(--cream);
}

.predictor-intro {
  max-width: 580px;
  margin: 0 auto 3rem;
  text-align: center;
}

.predictor-intro .section-heading {
  margin-bottom: 0.75rem;
}

.predictor-desc {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.predictor-disclaimer {
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 0.85rem;
  text-align: left;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ----- Exam toggle ----- */
.exam-toggle {
  display: flex;
  width: fit-content;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.exam-toggle-btn {
  padding: 0.55rem 1.75rem;
  background: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: background 0.2s, color 0.2s;
}

.exam-toggle-btn + .exam-toggle-btn {
  border-left: 1px solid #d6d6d6;
}

.exam-toggle-btn.active {
  background: var(--navy);
  color: var(--cream);
}

/* ----- Tool wrapper ----- */
.predictor-tool {
  max-width: 560px;
  margin: 0 auto;
}

/* ----- Subject rows ----- */
.predictor-subjects {
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #fff;
}

.predictor-subject-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.predictor-subject-row:last-child {
  border-bottom: none;
}

.predictor-subject-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  flex: 1;
}

.predictor-grade-select {
  width: 150px;
  flex-shrink: 0;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
}

.predictor-grade-select:focus {
  outline: none;
  border-color: var(--gold);
}

.predictor-msg {
  font-size: 0.82rem;
  color: crimson;
  min-height: 1.2em;
  margin-top: -1rem;
  margin-bottom: 0.5rem;
}

/* ----- Results ----- */
.predictor-results {
  max-width: 700px;
  margin: 3.5rem auto 0;
}

.predictor-results-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.predictor-results-sub {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.predictor-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(13,27,62,0.04);
}

.predictor-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.predictor-card-subject {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.predictor-card-current {
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
}

.predictor-milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.predictor-milestone {
  text-align: center;
  padding: 0.5rem 0.25rem;
  background: #fafafa;
  border-radius: 4px;
}

.predictor-milestone-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.predictor-milestone-grade {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}

.predictor-milestone-grade.grade-max  { color: var(--gold); }
.predictor-milestone-grade.grade-high { color: var(--navy); }
.predictor-milestone-grade.grade-mid  { color: #5a6a8a; }
.predictor-milestone-grade.grade-low  { color: #9aa3b5; }

.predictor-card-footer {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid #f0f0f0;
}

.predictor-card-footer.at-max        { color: var(--gold); font-weight: 600; }
.predictor-card-footer.grade-high-text { color: var(--navy); font-weight: 500; }

/* ----- Card entrance animation ----- */
.predictor-card--hidden {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.predictor-card--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Restart button ----- */
.predictor-restart {
  display: block;
  margin: 2rem auto 0;
}

@media (max-width: 520px) {
  .predictor-milestones {
    grid-template-columns: repeat(2, 1fr);
  }

  .predictor-subject-row {
    flex-wrap: wrap;
  }

  .predictor-grade-select {
    width: 100%;
  }
}
