/* ==========================================================================
   Ashworth International Academy — Stylesheet
   Design tokens: heritage academic, ink / gold / paper palette
   ========================================================================== */

:root{
  /* Color tokens */
  --ink:        #0C1522;   /* primary dark — headers, footer, nav (deepened, near-black navy) */
  --ink-2:      #17263C;   /* secondary ink, gradients */
  --gold:       #AE8834;   /* aged brass — primary accent (warmed) */
  --gold-2:     #DFBC70;   /* light gold — hover, highlights */
  --forest:     #263F30;   /* deep green — secondary accent */
  --oxblood:    #6E2A34;   /* oxblood — tertiary accent, used sparingly for badges & variety */
  --paper:      #F1EADA;   /* warm stone-ivory background */
  --paper-2:    #E6DCC5;   /* deeper paper for cards/sections */
  --charcoal:   #221E19;   /* body text */
  --line:       #C9BFA8;   /* hairline rule */
  --line-dark:  #2C3C52;   /* hairline on ink background */
  --white:      #FFFCF6;

  /* Brand gradients — used across header/nav, banners, footer, CTAs and
     the video-hero overlays so the whole site reads as one system. */
  --gradient-ink:    linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  --gradient-forest: linear-gradient(120deg, var(--ink) 0%, var(--forest) 100%);
  --gradient-gold:   linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 100%);

  /* Type — Amazon Ember is a proprietary Dalton Maag typeface and isn't
     licensed for embedding on other sites. Inter is the closest free
     match to Ember's geometric-humanist letterforms and screen legibility,
     used the same way: light/regular for body copy, 600–800 for headings
     and UI. Swap this one block if you'd rather try IBM Plex Sans or Lato. */
  --font-display: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-ui:      "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
  --radius: 2px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--charcoal);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--font-display); font-weight:700; color:var(--ink); letter-spacing:-0.02em; }
p{ margin:0; }
:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }
.container{ max-width:var(--container); margin:0 auto; padding:0 var(--gutter); }

/* ---------- Utility type ---------- */
.eyebrow{
  font-family:var(--font-mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold); display:flex; align-items:center; gap:10px;
}
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--gold); display:inline-block; }
.rule{ border:0; height:1px; background:var(--line); margin:0; }
.rule.on-ink{ background:var(--line-dark); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-ui); font-size:14px; font-weight:600; letter-spacing:.02em;
  padding:14px 26px; border:1px solid transparent; border-radius:var(--radius);
  cursor:pointer; transition:background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn-gold{ background:var(--gradient-gold); color:var(--ink); }
.btn-gold:hover{ background:var(--forest); color:var(--white); transform:translateY(-1px); }
.btn-outline{ background:transparent; border-color:var(--line-dark); color:var(--white); }
.btn-outline:hover{ border-color:var(--gold); color:var(--gold-2); }
.btn-outline.on-paper{ border-color:var(--ink); color:var(--ink); }
.btn-outline.on-paper:hover{ border-color:var(--gold); color:var(--gold); }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Utility bar ---------- */
.utility-bar{ background:var(--gradient-ink); color:#B9C2CF; font-family:var(--font-ui); font-size:12.5px; }
.utility-bar .container{ display:flex; justify-content:space-between; align-items:center; height:38px; }
.utility-bar a{ opacity:.85; transition:opacity .2s; }
.utility-bar a:hover{ opacity:1; color:var(--gold-2); }
.utility-links{ display:flex; gap:22px; }
.utility-links .sep{ opacity:.3; }

/* ---------- Header / Nav ---------- */
.site-header{ background:var(--gradient-ink); position:sticky; top:0; z-index:50; border-bottom:1px solid var(--line-dark); }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; height:92px; }
.brand{ display:flex; align-items:center; gap:14px; }
.brand svg{ width:44px; height:44px; flex-shrink:0; }
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-name{ font-family:var(--font-display); font-size:19px; color:var(--white); letter-spacing:.01em; }
.brand-sub{ font-family:var(--font-mono); font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-2); margin-top:3px; }

.main-nav{ display:flex; align-items:center; gap:38px; }
.main-nav ul{ display:flex; gap:34px; }
.main-nav a{ font-family:var(--font-ui); font-size:14.5px; font-weight:500; color:#D8DEE7; position:relative; padding:6px 0; }
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--gold-2);
  transform:scaleX(0); transform-origin:left; transition:transform .25s ease;
}
.main-nav a:hover{ color:var(--white); }
.main-nav a:hover::after, .main-nav a.active::after{ transform:scaleX(1); }
.main-nav a.active{ color:var(--gold-2); }
.nav-toggle{ display:none; }

@media (max-width:900px){
  .main-nav ul{
    display:none; position:absolute; top:92px; left:0; right:0; background:var(--gradient-ink);
    flex-direction:column; gap:0; border-bottom:1px solid var(--line-dark); padding:8px var(--gutter) 18px;
  }
  .main-nav ul.open{ display:flex; }
  .main-nav ul li{ padding:12px 0; border-top:1px solid var(--line-dark); }
  .main-nav ul li:first-child{ border-top:0; }
  .main-nav .btn-gold{ display:none; }
  .nav-toggle{ display:block; background:none; border:1px solid var(--line-dark); color:var(--white); width:42px; height:42px; border-radius:var(--radius); cursor:pointer; }
  .utility-bar .utility-links{ display:none; }
}

/* ---------- Footer ---------- */
.site-footer{ background:var(--gradient-ink); color:#AFB8C4; }
.footer-top{ padding:72px 0 48px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:48px; }
.footer-brand .brand-name{ color:var(--white); }
.footer-tagline{ font-family:var(--font-display); font-style:italic; color:#C7CEDA; font-size:15px; margin-top:16px; max-width:30ch; line-height:1.5; }
.footer-col h4{ font-family:var(--font-ui); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--gold-2); font-weight:600; margin-bottom:18px; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-family:var(--font-ui); font-size:14px; color:#B9C2CF; transition:color .2s; }
.footer-col a:hover{ color:var(--gold-2); }
.footer-bottom{ border-top:1px solid var(--line-dark); padding:22px 0; display:flex; justify-content:space-between; align-items:center; font-family:var(--font-ui); font-size:12.5px; color:#7E8996; }
.footer-bottom .accred{ display:flex; gap:18px; align-items:center; }

/* ---------- Page banner (interior pages) ---------- */
.page-banner{ background:var(--gradient-ink); color:var(--white); padding:76px 0 56px; position:relative; overflow:hidden; }
.page-banner .seal-watermark{ position:absolute; right:-60px; top:50%; transform:translateY(-50%); width:360px; height:360px; opacity:.06; }
.page-banner h1{ color:var(--white); font-size:clamp(34px,4.6vw,52px); max-width:16ch; }
.page-banner .lede{ font-family:var(--font-body); color:#C7CEDA; max-width:56ch; margin-top:16px; font-size:17px; }
.breadcrumb{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-2); margin-bottom:18px; }
.breadcrumb a{ opacity:.7; } .breadcrumb a:hover{ opacity:1; }

/* ---------- Section spacing ---------- */
.section{ padding:96px 0; }
.section-tight{ padding:64px 0; }
.section-alt{ background:var(--paper-2); }
.section-ink{ background:var(--gradient-ink); color:#D8DEE7; }
.section-ink h2, .section-ink h3{ color:var(--white); }
.section-head{ max-width:640px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(28px,3.4vw,40px); margin-top:14px; }
.section-head .lede{ margin-top:14px; font-size:17px; color:#4A443B; max-width:56ch; }
.section-ink .section-head .lede{ color:#B9C2CF; }

/* ---------- Hero (home) ---------- */
.hero{ background:var(--gradient-ink); color:var(--white); position:relative; overflow:hidden; }
.hero .container{ display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:center; padding:88px 0 96px; }
.hero-motto{ font-family:var(--font-display); font-style:italic; color:var(--gold-2); font-size:15px; margin-bottom:22px; }
.hero h1{ color:var(--white); font-size:clamp(38px,5.4vw,64px); line-height:1.06; max-width:14ch; }
.hero h1 em{ color:var(--gold-2); font-style:italic; }
.hero .lede{ font-family:var(--font-body); color:#C7CEDA; font-size:18px; max-width:48ch; margin:24px 0 34px; }
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-art{ position:relative; display:flex; align-items:center; justify-content:center; }
.hero-art svg{ width:100%; max-width:420px; opacity:.9; }

/* ---------- Hero — video background + transparent header ---------- */
.hero-video{ min-height:92vh; display:flex; align-items:center; }
.hero-video .container{ padding:200px 0 110px; }
.hero-media{ position:absolute; inset:0; z-index:0; background-size:cover; background-position:center; background-image:var(--poster); }
.hero-media video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  object-position:center; filter:saturate(1.05);
}
.hero-media .hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(12,21,34,.72) 0%, rgba(12,21,34,.55) 38%, rgba(12,21,34,.82) 100%),
    linear-gradient(100deg, rgba(12,21,34,.55) 0%, rgba(12,21,34,.15) 62%);
}
.hero-video .container{ position:relative; z-index:1; }
.hero-video .hero-art{ opacity:.85; }

/* Transparent nav floating over the hero video; solidifies once scrolled */
body.has-video-hero .site-top{
  position:fixed; top:0; left:0; right:0; z-index:60;
}
body.has-video-hero .utility-bar,
body.has-video-hero .site-header{
  background:transparent; border-color:transparent; position:static;
  transition:background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
body.has-video-hero .utility-bar{ border-bottom:1px solid rgba(255,255,255,.14); }
body.has-video-hero.is-scrolled .utility-bar{ border-bottom-color:transparent; }
body.has-video-hero.is-scrolled .utility-bar,
body.has-video-hero.is-scrolled .site-header{
  background:var(--gradient-ink); border-color:var(--line-dark);
}

@media (max-width:900px){
  .hero-video .container{ padding:170px 0 90px; }
}
@media (max-width:640px){
  .hero-video{ min-height:auto; }
  .hero-video .container{ padding:150px 0 70px; }
  /* Save mobile data: show the poster frame instead of streaming video. */
  .hero-media video{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  .hero-media video, .cta-band.cta-video .hero-media video{ display:none; }
}

/* ---------- Facts strip ---------- */
.facts-strip{ background:var(--paper-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.facts-grid{ display:grid; grid-template-columns:repeat(4,1fr); }
.fact{ padding:38px 30px; text-align:left; border-left:1px solid var(--line); }
.fact:first-child{ border-left:0; }
.fact .num{ font-family:var(--font-mono); font-size:34px; color:var(--gold); font-weight:600; }
.fact .label{ font-family:var(--font-ui); font-size:13px; color:#4A443B; margin-top:6px; letter-spacing:.01em; }

/* ---------- Pillars / cards ---------- */
.pillars{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.pillar{ background:var(--paper); padding:38px 32px; }
.pillar .mark{ font-family:var(--font-mono); color:var(--gold); font-size:13px; margin-bottom:22px; }
.pillar h3{ font-size:20px; margin-bottom:12px; }
.pillar p{ font-size:15px; color:#4A443B; line-height:1.65; }

/* ---------- Program list (academics) ---------- */
.program-list{ display:flex; flex-direction:column; }
.program-row{ display:grid; grid-template-columns:120px 1.3fr 2fr auto; gap:28px; align-items:center; padding:26px 0; border-bottom:1px solid var(--line); }
.program-row:first-child{ border-top:1px solid var(--line); }
.program-code{ font-family:var(--font-mono); font-size:13px; color:var(--gold); }
.program-name{ font-family:var(--font-display); font-size:20px; color:var(--ink); }
.program-desc{ font-size:14.5px; color:#4A443B; }
.program-row a{ font-family:var(--font-ui); font-size:13px; font-weight:600; color:var(--ink); white-space:nowrap; }
.program-row a:hover{ color:var(--gold); }

/* ---------- News cards ---------- */
.news-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }
.news-card{ display:flex; flex-direction:column; }
.news-thumb{ aspect-ratio:4/3; border-radius:var(--radius); margin-bottom:20px; overflow:hidden; }
.news-date{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); }
.news-card h3{ font-size:19px; margin:10px 0; line-height:1.35; }
.news-card p{ font-size:14.5px; color:#4A443B; }
.news-card .readmore{ margin-top:16px; font-family:var(--font-ui); font-size:13px; font-weight:600; color:var(--ink); }

/* ---------- Quote block ---------- */
.quote-block{ display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:center; }
.quote-block blockquote{ font-family:var(--font-display); font-style:italic; font-size:clamp(22px,2.4vw,30px); color:var(--white); line-height:1.5; }
.quote-attr{ margin-top:26px; font-family:var(--font-ui); font-size:14px; color:var(--gold-2); }
.quote-attr span{ display:block; font-size:12.5px; color:#8891A0; margin-top:3px; }

/* ---------- CTA band ---------- */
.cta-band{ background:var(--gradient-forest); color:var(--white); text-align:center; padding:80px 0; position:relative; overflow:hidden; }
.cta-band h2{ color:var(--white); font-size:clamp(28px,3.6vw,42px); max-width:22ch; margin:0 auto 18px; }
.cta-band p{ color:#C7CEDA; max-width:52ch; margin:0 auto 34px; font-size:16px; }
.cta-band .hero-ctas{ justify-content:center; }

/* Video variant */
.cta-band.cta-video{ padding:120px 0; }
.cta-band.cta-video .hero-media{ position:absolute; inset:0; z-index:0; background-size:cover; background-position:center; background-image:var(--poster); }
.cta-band.cta-video .hero-media video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cta-band.cta-video .hero-media .hero-overlay{
  position:absolute; inset:0; background:linear-gradient(120deg, rgba(12,21,34,.88) 0%, rgba(38,63,48,.82) 100%);
}
.cta-band.cta-video .container{ position:relative; z-index:1; }
@media (max-width:640px){
  .cta-band.cta-video .hero-media video{ display:none; }
}

/* ---------- Forms ---------- */
.form-card{ background:var(--white); border:1px solid var(--line); padding:44px; border-radius:var(--radius); }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:22px; }
.field.full{ grid-column:1 / -1; }
.field label{ font-family:var(--font-ui); font-size:13px; font-weight:600; color:var(--ink); }
.field .req{ color:var(--gold); }
.field input, .field select, .field textarea{
  font-family:var(--font-ui); font-size:15px; padding:13px 14px; border:1px solid var(--line);
  border-radius:var(--radius); background:var(--paper); color:var(--charcoal); transition:border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--gold); outline:none; }
.field textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:13px; color:#6b6459; margin-top:6px; }
.hp-field{ position:absolute; left:-9999px; top:-9999px; }
.alert{ padding:16px 20px; border-radius:var(--radius); font-family:var(--font-ui); font-size:14px; margin-bottom:28px; }
.alert-success{ background:#E7EFE6; border:1px solid var(--forest); color:#20362A; }
.alert-error{ background:#F5E7E4; border:1px solid #A0432E; color:#6B2A1B; }

/* ---------- Side info card ---------- */
.info-card{ background:var(--ink); color:var(--white); padding:40px; border-radius:var(--radius); }
.info-card h3{ color:var(--white); font-size:20px; margin-bottom:22px; }
.info-row{ display:flex; gap:14px; padding:16px 0; border-top:1px solid var(--line-dark); }
.info-row:first-of-type{ border-top:0; }
.info-row .k{ font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--gold-2); width:90px; flex-shrink:0; }
.info-row .v{ font-family:var(--font-ui); font-size:14.5px; color:#D8DEE7; line-height:1.5; }

/* ---------- Steps (admissions process) ---------- */
.steps{ display:flex; flex-direction:column; }
.step{ display:grid; grid-template-columns:80px 1fr; gap:26px; padding:34px 0; border-top:1px solid var(--line); }
.step:last-child{ border-bottom:1px solid var(--line); }
.step .step-num{ font-family:var(--font-mono); font-size:28px; color:var(--gold); }
.step h3{ font-size:20px; margin-bottom:8px; }
.step p{ font-size:15px; color:#4A443B; max-width:60ch; }

/* ---------- Gallery ---------- */
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.gallery-item{ aspect-ratio:1; border-radius:var(--radius); overflow:hidden; position:relative; display:flex; align-items:center; justify-content:center; }
.gallery-item span{ font-family:var(--font-mono); font-size:11px; color:#fff; position:absolute; bottom:12px; left:14px; opacity:.85; letter-spacing:.06em; text-transform:uppercase; z-index:2; }
.gallery-item::after{ content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(16,27,45,.55), transparent 55%); }

/* ---------- Accreditation strip ---------- */
.accred-strip{ padding:56px 0; border-top:1px solid var(--line); }
.accred-row{ display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }
.accred-row .eyebrow{ margin:0; flex-shrink:0; }
.accred-marks{ display:flex; gap:28px; align-items:center; flex-wrap:wrap; }
.accred-badge{ display:flex; flex-direction:column; align-items:center; gap:10px; width:98px; text-align:center; }
.accred-badge svg{ width:56px; height:56px; transition:transform .2s ease; }
.accred-badge:hover svg{ transform:translateY(-2px); }
.accred-badge span{ font-family:var(--font-ui); font-size:11px; line-height:1.35; color:#4A443B; }

/* ---------- Faculty / staff ---------- */
.staff-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.staff-card{ background:var(--paper); padding:36px 32px; }
.staff-photo{
  width:64px; height:64px; border-radius:50%; margin-bottom:20px;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-size:20px; color:var(--white);
}
.staff-name{ font-size:19px; margin-bottom:4px; }
.staff-role{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--gold); margin-bottom:14px; display:block; }
.staff-bio{ font-size:14.5px; color:#4A443B; line-height:1.65; }
.dept-list{ display:flex; flex-direction:column; }
.dept-row{ display:grid; grid-template-columns:200px 1fr; gap:28px; padding:24px 0; border-bottom:1px solid var(--line); align-items:baseline; }
.dept-row:first-child{ border-top:1px solid var(--line); }
.dept-name{ font-family:var(--font-mono); font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--oxblood); }
.dept-head{ font-family:var(--font-ui); font-size:15px; color:var(--ink); }
.dept-head span{ color:#6b6459; font-family:var(--font-body); font-style:italic; }

/* ---------- Responsive ---------- */
@media (max-width:1020px){
  .footer-grid{ grid-template-columns:1fr 1fr; row-gap:40px; }
  .facts-grid{ grid-template-columns:repeat(2,1fr); }
  .fact:nth-child(3){ border-left:0; }
  .pillars{ grid-template-columns:repeat(2,1fr); }
  .news-grid{ grid-template-columns:repeat(2,1fr); }
  .quote-block{ grid-template-columns:1fr; gap:32px; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .staff-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:760px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-art{ display:none; }
  .facts-grid{ grid-template-columns:repeat(2,1fr); }
  .pillars{ grid-template-columns:1fr; }
  .news-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .form-grid{ grid-template-columns:1fr; }
  .program-row{ grid-template-columns:1fr; gap:8px; }
  .accred-row{ flex-direction:column; align-items:flex-start; }
  .gallery-grid{ grid-template-columns:1fr; }
  .step{ grid-template-columns:1fr; gap:10px; }
  .staff-grid{ grid-template-columns:1fr; }
  .dept-row{ grid-template-columns:1fr; gap:6px; }
}
