/* ==========================================================================
   Acton Academy Indian Trail — site stylesheet
   Palette + type are controlled by the tokens below. Change the school's
   brand colors by editing these few lines only.
   ========================================================================== */

/* ---------- Self-hosted fonts (variable, latin subset) ---------- */
@font-face {
  font-family: "Besley"; font-style: normal; font-weight: 600 800;
  font-display: swap; src: url("../fonts/besley.woff2") format("woff2");
}
@font-face {
  font-family: "Besley"; font-style: italic; font-weight: 600 800;
  font-display: swap; src: url("../fonts/besley-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-stretch: 100%;
  font-display: swap; src: url("../fonts/nunito-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans"; font-style: italic; font-weight: 200 1000; font-stretch: 100%;
  font-display: swap; src: url("../fonts/nunito-sans-italic.woff2") format("woff2");
}

:root {
  /* Color tokens — matched to the eagle logo (navy body, orange chest) */
  --navy:       #16294E;   /* primary brand navy */
  --navy-deep:  #0C1B38;   /* dark sections, footer */
  --slate:      #3F5E8F;   /* soft blue accents, hovers */
  --orange:     #E07D1E;   /* logo orange — highlights, waypoints */
  --orange-deep: #A85410;  /* orange for small text (contrast-safe) */
  --paper:      #FBF8F1;   /* page background */
  --paper-2:    #F3EEE2;   /* alternate section / card background */
  --text:       #333D4E;   /* body text */
  --muted:      #657080;   /* secondary text */
  --line:       #DFD8C9;   /* hairlines, borders */
  --white:      #FFFFFF;

  /* Type */
  --font-display: "Besley", Georgia, serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --max: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(22, 41, 78, 0.08);
  --shadow-lg: 0 18px 50px rgba(22, 41, 78, 0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: var(--navy); }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--paper); padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.005em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-family: var(--font-body); font-weight: 800; font-size: 1.05rem; color: var(--navy); }
p + p { margin-top: 1em; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--text); }
.eyebrow {
  display: block; font-weight: 800; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange-deep); margin-bottom: .9rem;
}
.center { text-align: center; }
.muted { color: var(--muted); }
.accent-i { font-style: italic; color: var(--orange-deep); }

/* ---------- Layout helpers ---------- */
.wrap { width: min(var(--max), 92%); margin-inline: auto; }
.wrap-narrow { width: min(780px, 92%); margin-inline: auto; }
section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
section.tight { padding: clamp(2.4rem, 5vw, 3.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--navy-deep); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: #D5DCE8; }
.section-dark .eyebrow { color: var(--orange); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 760px) and (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--orange); color: var(--navy-deep);
  font-weight: 800; font-size: .92rem; text-align: center;
  padding: .55rem 1rem;
}
.announce a { color: var(--navy-deep); text-decoration: underline; text-underline-offset: 2px; }
.announce a:hover { color: var(--navy); }
.announce-short { display: none; }
@media (max-width: 640px) {
  .announce { font-size: .85rem; padding: .5rem .75rem; }
  .announce-full { display: none; }
  .announce-short { display: inline; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; color: var(--navy);
  font-size: 1.02rem; line-height: 1.1;
}
.brand-name small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.nav-links { display: flex; align-items: center; gap: 1.1rem; list-style: none; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--text); }
.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); border-bottom: 3px solid var(--orange); padding-bottom: 2px; }
.nav-cta { margin-left: .4rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .45rem .6rem; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { display: block; }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none; padding: .5rem 4%;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: .9rem .2rem; }
  .nav-links a[aria-current="page"] { border-bottom: none; border-left: 4px solid var(--orange); padding-left: .8rem; }
  .nav-cta { margin: .8rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-weight: 800; font-size: 1rem; line-height: 1;
  padding: .95rem 1.5rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; transition: background .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--navy-deep); color: var(--paper); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--paper); }
.btn-accent { background: var(--orange); color: var(--navy-deep); }
.btn-accent:hover { background: #C56A10; color: var(--navy-deep); }
.section-dark .btn-outline { color: var(--paper); border-color: var(--paper); }
.section-dark .btn-outline:hover { background: var(--paper); color: var(--navy-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }
.btn-note { font-size: .88rem; color: var(--muted); margin-top: .7rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; } }
.hero h1 .u {
  background-image: linear-gradient(transparent 68%, rgba(224, 125, 30, .35) 68%);
}

/* Taped photo frame (photo slots) */
.photo-frame {
  position: relative; background: var(--white); padding: 12px;
  border-radius: 4px; box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
}
.photo-frame.tilt-r { transform: rotate(1.2deg); }
.photo-frame::before, .photo-frame::after {
  content: ""; position: absolute; width: 92px; height: 26px;
  background: rgba(224, 125, 30, .40); top: -12px;
  transform: rotate(-4deg); border-radius: 2px;
}
.photo-frame::before { left: 8%; }
.photo-frame::after { right: 8%; transform: rotate(5deg); }
.photo-frame img, .photo-frame .ph { border-radius: 2px; }
.ph {
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(22,41,78,.045) 0 14px, transparent 14px 28px),
    var(--paper-2);
  border: 1px dashed var(--line); color: var(--muted);
  font-weight: 700; font-size: .9rem; padding: 1rem;
  min-height: 300px; width: 100%;
}
.ph span { max-width: 26ch; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .6rem; }
.card .eyebrow { margin-bottom: .5rem; }
.card-soft { background: var(--paper); }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: .32rem .7rem; border-radius: 99px;
}
.badge-open { background: var(--navy); color: var(--paper); }
.badge-soon { background: var(--paper-2); color: var(--orange-deep); border: 1px solid var(--orange); }
.card-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.card-list li { padding-left: 1.7rem; position: relative; margin-top: .55rem; }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .48em; width: .8em; height: .8em;
  border-radius: 50%; background: var(--orange);
  box-shadow: inset 0 0 0 3px var(--paper);
  border: 2px solid var(--orange);
}
.studio-price { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.15rem; margin-top: 1rem; }

/* Check + cross lists */
.check-list, .cross-list { list-style: none; padding: 0; }
.check-list li, .cross-list li { position: relative; padding-left: 2rem; margin-top: .7rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--paper); background: var(--navy); width: 1.35rem; height: 1.35rem;
  border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800;
}
.cross-list li::before {
  content: "—"; position: absolute; left: 0; top: 0;
  color: var(--orange-deep); background: var(--paper-2); width: 1.35rem; height: 1.35rem;
  border-radius: 50%; display: grid; place-items: center; font-size: .9rem; font-weight: 800;
  border: 1px solid var(--line);
}

/* ---------- The trail (signature element) ---------- */
.trail { position: relative; list-style: none; padding: 0; margin: 0; }
.trail > li { position: relative; padding: 0 0 2.1rem 3.4rem; }
.trail > li:last-child { padding-bottom: 0; }
/* The connector is drawn per item, from under one waypoint to the next, so
   the trail always ends at the final waypoint instead of trailing past it. */
.trail > li:not(:last-child)::before {
  content: ""; position: absolute; left: 17px; top: 36px; bottom: 0;
  border-left: 3px dashed var(--orange);
}
.waypoint {
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  border: 3px solid var(--orange);
}
.waypoint.time { font-family: var(--font-body); font-size: .62rem; font-weight: 800; letter-spacing: 0; }
.trail h3 { margin-bottom: .3rem; }
.trail .t-label { font-weight: 800; color: var(--navy); }
.section-dark .trail > li:not(:last-child)::before { border-color: var(--orange); }
.section-dark .trail h3 { color: var(--paper); }

/* Creed (horizontal trail on desktop) */
.creed { list-style: none; padding: 0; display: grid; gap: 1.6rem; counter-reset: creed; }
.creed li { position: relative; padding-left: 3.2rem; }
.creed .waypoint { top: -2px; }
.creed .creed-word { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--paper); display: block; }
.creed .creed-line { color: #C2CCDE; font-size: .98rem; }
@media (min-width: 900px) {
  .creed { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .creed li { padding: 3rem .9rem 0 0; }
  .creed .waypoint { left: 0; top: 0; }
  .creed li::after {
    content: ""; position: absolute; top: 17px; left: 44px; right: -6px;
    border-top: 3px dashed var(--orange);
  }
  .creed li:last-child::after { display: none; }
}

/* ---------- FAQ ---------- */
.faq-group { margin-top: 2.4rem; }
.faq-group > h2 { font-size: 1.35rem; margin-bottom: .4rem; }
details.faq {
  border-bottom: 1px solid var(--line); padding: 1.05rem 0;
}
details.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: baseline; gap: 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--navy);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; font-family: var(--font-body); font-weight: 800; color: var(--orange-deep);
  font-size: 1.3rem; line-height: 1; flex-shrink: 0;
}
details.faq[open] summary::after { content: "–"; }
details.faq .faq-a { padding: .7rem 0 .2rem; max-width: 68ch; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: .35rem; color: var(--navy); }
.field .req { color: var(--orange-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--paper); font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(63, 94, 143, .18);
}
.field textarea { min-height: 120px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-status { display: none; margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 700; }
.form-status.ok { display: block; background: #E9EEF7; color: var(--navy); border: 1px solid var(--slate); }
.form-status.err { display: block; background: #F9EEE1; color: #8A4A0C; border: 1px solid #DE9A44; }

/* ---------- Callouts, quotes, chips ---------- */
.callout {
  border-left: 5px solid var(--orange); background: var(--paper-2);
  padding: 1.3rem 1.5rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout strong { color: var(--navy); }
.pull-quote {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--navy);
  border-left: 5px solid var(--orange); padding-left: 1.4rem; max-width: 40ch;
}
.chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin-top: 1.2rem; }
.chips li {
  background: var(--white); border: 1px solid var(--line); border-radius: 99px;
  padding: .4rem .95rem; font-weight: 700; font-size: .92rem; color: var(--navy);
}
.card .chips li { background: var(--paper-2); }
.qa-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow); }
.qa-card p { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--navy); }
.at-a-glance { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .at-a-glance { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .at-a-glance-3 { grid-template-columns: repeat(3, 1fr); } }
.at-a-glance div { background: var(--white); padding: 1.1rem 1.2rem; }
.at-a-glance dt { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-deep); }
.at-a-glance dd { margin: .25rem 0 0; font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.15rem; }

/* Tuition */
.price-hero { font-family: var(--font-display); color: var(--navy); }
.price-hero .amount { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 800; line-height: 1; }
.price-hero .per { font-size: 1.1rem; font-weight: 700; color: var(--orange-deep); }

/* Team */
.team-card img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; border-radius: var(--radius-sm); }
.team-card .role { color: var(--orange-deep); font-weight: 800; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin: .8rem 0 .1rem; }
.team-card h3 { margin-bottom: .2rem; }
.team-card .bio { font-size: .98rem; margin-top: .7rem; }

/* Founder card — compact circular headshot (About / Our Story) */
.founder-card { text-align: center; align-self: start; }
.founder-card img {
  width: 190px; max-width: 100%; height: auto; aspect-ratio: 1 / 1;
  border-radius: 50%; object-fit: cover; margin: 0 auto 1.2rem;
  border: 5px solid var(--paper-2); box-shadow: var(--shadow);
}
.founder-card .role { margin-top: 0; }
.founder-card .bio { text-align: left; }

/* Comparison blocks */
.vs { border-top: 3px solid var(--orange); }
.vs h3 { margin-top: 1rem; }

/* Video frame */
.video-frame {
  max-width: 350px; margin-inline: auto; background: var(--navy-deep);
  border-radius: 22px; padding: 10px; box-shadow: var(--shadow-lg);
}
.video-frame video { border-radius: 14px; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C2CCDE; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; gap: 2.2rem; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h4 { color: var(--paper); margin-bottom: .8rem; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-top: .45rem; }
.site-footer a { color: #C2CCDE; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-brand img { height: 54px; margin-bottom: 1rem; }
.social-links { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social-links a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(251, 248, 241, .25); border-radius: 50%; color: #C2CCDE;
}
.social-links a:hover { color: var(--orange); border-color: var(--orange); }
.social-links svg { display: block; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(251, 248, 241, .14); margin-top: 2.6rem; padding-top: 1.4rem;
  font-size: .85rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(1.2rem, 3vw, 2rem); }
.page-hero .lead { max-width: 62ch; margin-top: 1rem; }

/* ---------- In-page pill navigation (numbered section links) ---------- */
.pill-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.pill-nav a {
  text-decoration: none; font-weight: 700; font-size: .88rem; line-height: 1;
  color: var(--navy); background: var(--white); border: 1px solid var(--line);
  border-radius: 99px; padding: .5rem .95rem;
}
.pill-nav a:hover { border-color: var(--navy); }
section[id] { scroll-margin-top: 110px; }
.breadcrumb { font-size: .85rem; font-weight: 700; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
