/* ==========================================================================
   Achievement Education — Shared styles
   Used by every page on the site.
   ========================================================================== */

:root {
  /* ----------------------------------------------------------------------
     Achievement Education — 2026 brand palette
     Marigold (primary accent) · Deep Navy (anchor) · Warm Ink (neutral),
     on a soft Paper background. Evolved 1:1 from the original palette:
       Gold Rush  → Marigold      (warmer, less neon)
       Blue Dianne → Deep Navy    (deeper, true navy)
       Rich Grey  → Warm Ink      (warmed neutral)
     The original variable NAMES are kept as aliases, so every existing rule,
     layout, and component is untouched — only the color values change.
     ---------------------------------------------------------------------- */

  /* Brand colors */
  --marigold:     #E1A22C;
  --marigold-dk:  #B48223;
  --navy:         #16384E;
  --navy-2:       #1E4A64;
  --ink:          #2B2926;
  --ink-2:        #4A4640;
  --ink-3:        #211F1D;
  --paper:        #F8F4EC;   /* default page background */
  --stone:        #ECE5D8;   /* subtle section fills */
  --mist:         #E4E9EC;   /* tinted-navy background */

  /* Legacy names → brand colors (preserves the existing design exactly) */
  --sunshine:     var(--marigold);
  --sunshine-dk:  var(--marigold-dk);
  --charcoal:     var(--ink);
  --charcoal-2:   var(--ink-2);
  --charcoal-3:   var(--ink-3);
  --teal-deep:    var(--navy);
  --teal-deep-2:  var(--navy-2);
  --teal-bright:  var(--marigold);   /* retired cool teal → surviving accent */

  --on-dark:      #F8F4EC;                  /* Paper on Navy / Ink */
  --on-dark-dim:  rgba(248, 244, 236, 0.72);
  --on-dark-ln:   rgba(248, 244, 236, 0.14);
  --line:         #DED7CA;                  /* warm hairline */
  --ink-muted:    #7A746B;
  --ink-light:    #B0AAA0;

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;

  --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 28px; }

/* ---------- Text ---------- */
.eyebrow {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow.light { color: var(--sunshine); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--sunshine);
  color: var(--charcoal);
  box-shadow: 0 6px 22px -6px rgba(225, 162, 44, 0.55);
}
.btn-primary:hover {
  background: var(--sunshine-dk);
  box-shadow: 0 10px 28px -8px rgba(225, 162, 44, 0.8);
}
.btn-outline {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline:hover { border-color: var(--sunshine); color: var(--sunshine); }
.btn-outline.on-light {
  color: var(--charcoal);
  border-color: rgba(58, 58, 58, 0.3);
}
.btn-outline.on-light:hover { border-color: var(--teal-deep); color: var(--teal-deep); }

.link-arrow {
  font-weight: 700;
  font-size: 14px;
  color: var(--teal-deep);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.link-arrow:hover { border-bottom-color: var(--sunshine); }
.link-arrow.on-dark { color: var(--sunshine); }

/* ---------- Announce bar ---------- */
.announce {
  background: var(--teal-deep);
  color: var(--on-dark);
  font-size: 14px;
  padding: 11px 28px;
  text-align: center;
  font-weight: 500;
}
.announce a {
  color: var(--sunshine);
  font-weight: 700;
  margin-left: 10px;
  border-bottom: 1px solid transparent;
}
.announce a:hover { border-color: var(--sunshine); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--charcoal);
  color: var(--on-dark);
  border-bottom: 1px solid var(--on-dark-ln);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--sunshine);
  color: var(--charcoal);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name .thin { font-weight: 400; opacity: 0.85; }

/* Image logo lockup in the nav */
.brand-logo { height: 42px; width: auto; display: block; }

/* Sub-brand breadcrumb in nav (when on a product page) */
.brand-sub {
  display: flex; align-items: center; gap: 10px;
  margin-left: 14px; padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.brand-sub .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-bright);
}
.brand-sub b { color: var(--sunshine); font-weight: 700; }

.nav-links {
  display: flex; gap: 34px; list-style: none;
  margin: 0; padding: 0;
  font-size: 14px; font-weight: 500;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  transition: color .2s ease;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--sunshine); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; white-space: nowrap; }

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin: 0 0 56px; }
.section-head h2 {
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0 0;
  color: var(--charcoal);
}
.section-head h2 .accent { color: var(--teal-deep); }
.section-head.on-dark h2 { color: var(--on-dark); }
.section-head.on-dark h2 .accent { color: var(--sunshine); }
.section-head p {
  font-size: 17px;
  color: var(--ink-muted);
  margin: 18px 0 0;
  line-height: 1.55;
  max-width: 560px;
}
.section-head.on-dark p { color: var(--on-dark-dim); }

/* ---------- Hero ---------- */
.hero {
  background: var(--charcoal);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -25%; right: -12%;
  width: 880px; height: 880px;
  background: radial-gradient(closest-side, rgba(225, 162, 44, 0.14), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -40%; left: -14%;
  width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(22, 56, 78, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border: 1px solid rgba(225, 162, 44, 0.4);
  border-radius: 999px;
  background: rgba(225, 162, 44, 0.06);
  color: var(--sunshine);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 26px;
}
.hero-badge .pill {
  background: var(--sunshine);
  color: var(--charcoal);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
h1.hero-title {
  font-weight: 700;
  font-size: clamp(46px, 6.4vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0 0 24px;
}
h1.hero-title .accent { color: var(--sunshine); }
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--on-dark-dim);
  max-width: 520px;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-compact { padding: 70px 0 80px; }
.hero-compact .hero-title { font-size: clamp(40px, 5.2vw, 64px); }
.hero-compact .hero-sub { font-size: 17px; max-width: 620px; }

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.features-grid.three { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: var(--teal-bright);
  box-shadow: 0 22px 44px -20px rgba(22, 56, 78, 0.3);
}
.f-ico {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.f-ico svg { width: 26px; height: 26px; }
.feature.c1 .f-ico { background: var(--sunshine); color: var(--charcoal); }
.feature.c2 .f-ico { background: var(--teal-deep); color: var(--sunshine); }
.feature.c3 .f-ico { background: var(--teal-bright); color: var(--charcoal); }
.feature.c4 .f-ico { background: var(--charcoal); color: var(--sunshine); }
.feature.c5 .f-ico { background: var(--teal-deep); color: var(--teal-bright); }
.feature h3 {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  line-height: 1.2;
  color: var(--charcoal);
}
.features-grid.three .feature h3 { font-size: 22px; }
.feature p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
}
.features-grid.three .feature p { font-size: 15px; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--charcoal);
  color: var(--on-dark);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: auto -8% -60% auto;
  width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(225, 162, 44, 0.16), transparent 70%);
  pointer-events: none;
}
.final-cta h2 {
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 780px;
  margin: 0 0 36px;
  position: relative;
  color: var(--on-dark);
}
.final-cta h2 .accent { color: var(--sunshine); }
.final-cta .cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  position: relative;
}

/* ---------- Footer ---------- */
footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 36px;
  border-top: 1px solid var(--on-dark-ln);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 44px;
}
.foot-col h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sunshine);
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 10px; font-size: 14px; }
.foot-col a:hover { color: var(--sunshine); }
.foot-intro p { font-size: 14px; line-height: 1.6; max-width: 320px; margin: 14px 0 22px; }
.socials { display: flex; gap: 10px; }
.social {
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.social:hover {
  border-color: var(--sunshine);
  background: var(--sunshine);
  color: var(--charcoal);
}
.social svg { width: 16px; height: 16px; }
.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--on-dark-ln);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap; gap: 20px;
}
.foot-bottom a:hover { color: var(--sunshine); }

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.rise.d1 { animation-delay: .08s; }
.rise.d2 { animation-delay: .18s; }
.rise.d3 { animation-delay: .28s; }
.rise.d4 { animation-delay: .38s; }
.rise.d5 { animation-delay: .48s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav-links { display: none; }
  .brand-sub { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 60px 0 80px; }
  .hero-compact { padding: 50px 0 60px; }
  .features-grid,
  .features-grid.three { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-cta .btn:first-child { display: none; }
}
