/* CleverCare Caregiver Training Center — shared styles
   Redesign notes: the previous system leaned on gradients, glassmorphism,
   pill buttons/badges, icon-per-card grids, and a rigid centered-heading
   + 3-card rhythm on nearly every section — recognizable template patterns.
   This version keeps the brand's navy/blue/amber but is built around a
   real type scale, a consistent 12-col grid with intentionally asymmetric
   spans, hairline rules instead of shadows/radius as the recurring motif,
   and far fewer decorative containers. */

:root{
  --navy: #16215A;
  --navy-2: #1B2A6B;
  --blue: #3E5FE0;
  --amber: #C86A22;
  --amber-bright: #FF8A3D;
  /* Darker amber for small text on light backgrounds — --amber itself only
     hits ~3.2–3.8:1 against white/paper-alt/blue-tint, short of WCAG AA's
     4.5:1 for normal text. This variant clears 4.5:1 on all three. */
  --amber-deep: #A0551B;
  --ink: #201D2E;
  --ink-muted: #5D5A6B;
  --paper: #FFFFFF;
  --paper-alt: #F6F4EF;
  --blue-tint: #E7EBFA;
  --blue-line: #C9D3F2;
  --line: #E1DDD3;
  --line-dark: rgba(255,255,255,0.16);
  --maxw: 1120px;
  --gutter: 24px;
  --radius: 4px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size:16px;
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,h5{
  font-family:'Source Serif 4', Georgia, serif;
  font-weight:600;
  line-height:1.2;
  margin:0 0 0.5em;
  color:var(--navy);
  letter-spacing:-0.005em;
}
h1{ font-size:2.15rem; font-weight:600; }
h2{ font-size:1.65rem; }
h3{ font-size:1.15rem; }
h4{ font-size:1rem; }
p{ margin:0 0 1em; }
a{ color:var(--blue); text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }

/* ---------- Buttons: rectangular, understated, no lift/shadow ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:var(--radius); font-weight:600; font-size:0.94rem;
  border:1px solid transparent; cursor:pointer; transition:background .15s ease, border-color .15s ease, color .15s ease;
  white-space:nowrap; font-family:'Inter',sans-serif;
}
.btn:hover{ text-decoration:none; }
.btn-primary{ background:var(--amber-bright); color:#1B1200; }
.btn-primary:hover{ background:var(--amber-deep); color:#fff; }
.btn-outline{ border-color:rgba(255,255,255,0.6); color:#fff; background:transparent; }
.btn-outline:hover{ background:rgba(255,255,255,0.1); }
.section .btn-outline, .card .btn-outline{ border-color:var(--navy); color:var(--navy); }
.section .btn-outline:hover, .card .btn-outline:hover{ background:var(--paper-alt); }
.btn-navy{ background:var(--navy); color:#fff; }
.btn-navy:hover{ background:var(--navy-2); }
.btn-ghost{ display:inline-flex; align-items:center; gap:6px; font-weight:600; color:var(--blue); }
.btn-ghost:hover{ color:var(--navy); }
.btn-block{ width:100%; }

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:72px; max-width:none; padding:0 28px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{ width:42px; height:42px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.brand-mark img{ width:100%; height:100%; object-fit:contain; }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand-name{
  font-family:'Source Serif 4', Georgia, serif; font-weight:700; font-size:1.55rem; color:var(--navy);
}
.brand-tag{ font-size:0.64rem; letter-spacing:0.1em; color:var(--amber-deep); font-weight:600; text-transform:uppercase; margin-top:3px; }
.nav-links{ display:flex; align-items:center; gap:26px; }
.nav-links a{ color:var(--ink); font-weight:500; font-size:0.92rem; position:relative; padding:4px 0; }
.nav-links a:hover{ color:var(--navy); text-decoration:none; }
.nav-links a.active{ color:var(--navy); border-bottom:2px solid var(--amber-bright); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-cta .btn-primary{ padding:10px 20px; }
.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span{ width:22px; height:2px; background:var(--navy); border-radius:2px; }

/* ---------- Hero / page header ----------
   Base .hero is the light-blue page-header treatment shared by every
   interior page (About, Program, Pricing, Branches, Gallery, FAQ, Contact,
   Enroll, Scholarship). .hero--dark (home page only) overrides it to navy. */
.hero{ background:var(--blue-tint); border-bottom:1px solid var(--blue-line); overflow:visible; }
.hero .wrap{ padding:56px 24px 0; }
.hero-grid{ display:grid; grid-template-columns:1fr 1.3fr; gap:48px; align-items:start; padding-bottom:64px; max-width:1280px; }
.eyebrow{
  display:block;
  font-family:'Inter',sans-serif;
  font-size:0.78rem; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--amber-deep); margin-bottom:14px;
}
.hero h1{ color:var(--navy); font-size:3.3rem; line-height:1.05; margin-bottom:22px; max-width:12ch; }
.hero .lede{ color:var(--ink-muted); font-size:1.05rem; max-width:42ch; }
.hero-ctas{ display:flex; gap:14px; margin-top:26px; flex-wrap:wrap; }
.hero .btn-outline{ border-color:var(--navy); color:var(--navy); }
.hero .btn-outline:hover{ background:#fff; }

.hero--dark{ background:var(--navy); border-bottom-color:var(--line); }
.hero--dark .eyebrow{ color:var(--amber-bright); }
.hero--dark h1{ color:#fff; }
.hero--dark .lede{ color:rgba(255,255,255,0.78); }
.hero--dark .btn-outline{ border-color:#fff; color:#fff; }
.hero--dark .btn-outline:hover{ background:#fff; color:var(--navy); }

.hero-price-badge{
  display:flex; flex-direction:column; gap:4px; max-width:360px;
  background:var(--amber-bright); border-radius:var(--radius);
  padding:18px 24px; margin:22px 0 0;
}
.hero-price-badge .amt{ font-family:'Source Serif 4',serif; font-weight:600; font-size:2.3rem; color:#1B1200; line-height:1.05; }
.hero-price-badge .amt .per{ font-family:'Inter',sans-serif; font-size:1rem; font-weight:600; color:#1B1200; opacity:0.75; }
.hero-price-badge .note{ color:#1B1200; opacity:0.82; font-size:0.92rem; font-weight:500; }

.hero-photo-col{ position:relative; text-align:center; }
@media (min-width:981px){
  .hero-photo-col{ align-self:end; }
}
.hero-photo-frame{ overflow:hidden; aspect-ratio:5/4; }
.hero-photo-frame img{ width:100%; height:100%; object-fit:cover; object-position:38% center; }
.hero-branches-card{ margin-top:14px; }
.branch-pill-list{ display:flex; flex-direction:column; }
.branch-pill-list--row{ flex-direction:row; flex-wrap:wrap; justify-content:center; gap:8px 22px; }
.branch-pill{
  display:flex; align-items:center; gap:8px;
  font-size:0.88rem; color:var(--navy); padding:3px 0;
}
.branch-pill .dot{ width:4px; height:4px; border-radius:50%; background:var(--amber); flex-shrink:0; opacity:0.7; align-self:center; }
.hero--dark .branch-pill{ color:#fff; }
.hero--dark .branch-pill .dot{ background:var(--amber-bright); opacity:0.85; }

/* ---------- Stats: rounded bubbles, straddling the hero's bottom edge ---------- */
.stats{
  display:flex; flex-wrap:wrap; justify-content:center; gap:14px;
  margin-top:28px; margin-bottom:-39px; position:relative; z-index:1;
}
.stat{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:2px;
  padding:18px 26px; border-radius:20px; background:var(--paper-alt);
}
.stat .num{ font-family:'Source Serif 4',serif; font-weight:600; font-size:1.35rem; color:var(--navy); }
.stat .lbl{ font-family:'Inter',sans-serif; font-size:0.84rem; color:var(--ink-muted); margin-top:2px; }

/* ---------- Stat strip: key numbers laid out as separate facts, not one sentence ---------- */
.stat-strip{
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:30px 44px; max-width:640px; margin:0 auto 22px;
}
.stat-strip-item{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; }
.stat-strip-num{ font-family:'Source Serif 4',serif; font-weight:700; font-size:1.9rem; line-height:1; color:var(--amber-bright); }
.stat-strip-lbl{ font-family:'Inter',sans-serif; font-size:0.78rem; color:rgba(255,255,255,0.72); max-width:14ch; }
@media (max-width:480px){
  .stat-strip{ flex-wrap:nowrap; gap:14px; }
  .stat-strip-item{ flex:1 1 0; min-width:0; }
  .stat-strip-num{ font-size:1.5rem; }
  .stat-strip-lbl{ font-size:0.7rem; max-width:none; }
}

/* ---------- Scholarship timeline: dates first, connected chronologically.
   Horizontal row of date + label pairs on desktop; collapses to a vertical
   line on mobile (arrows rotate 90deg to point down instead of across). ---------- */
.timeline{ display:flex; align-items:flex-start; justify-content:center; flex-wrap:wrap; gap:10px 6px; margin-top:44px; }
.timeline-item{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; width:150px; }
.timeline-date{ font-family:'Source Serif 4',serif; font-weight:700; font-size:1.55rem; color:var(--amber-bright); line-height:1; }
.timeline-label{ font-family:'Inter',sans-serif; font-size:0.8rem; color:rgba(255,255,255,0.82); line-height:1.35; }
.timeline-arrow{ color:var(--amber-bright); opacity:0.55; font-size:1.15rem; padding-top:8px; flex-shrink:0; }
@media (max-width:760px){
  .timeline{ flex-direction:column; align-items:center; gap:0; margin-top:32px; }
  .timeline-item{ width:auto; max-width:280px; padding:16px 0; }
  .timeline-arrow{ transform:rotate(90deg); padding:4px 0; }
}

/* ---------- Sections ---------- */
.section{ padding:64px 0; }
.section + .section{ border-top:1px solid var(--line); }
.section--alt{ background:var(--paper-alt); }
.section--alt + .section--alt{ border-top:none; }
.section--blue{ background:var(--blue-tint); border-top:1px solid var(--blue-line); border-bottom:1px solid var(--blue-line); }
.section--blue + .section--blue{ border-top:none; }
.section--blue h2, .section--blue h3{ color:var(--navy); }
.section--dark{ background:var(--navy); color:#fff; border-top:none; }
.section--dark h2{ color:#fff; }
.section--dark .eyebrow{ color:var(--amber-bright); }
.section-head{ max-width:640px; margin-bottom:32px; }
.section-head.center{ margin-left:0; margin-right:0; text-align:left; }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:56px; }

/* Card grids: flexbox rather than CSS grid, so a row that doesn't divide evenly
   (e.g. 5 cards in a 3-up layout) centers its leftover items instead of leaving
   an empty, oddly-colored cell. */
.grid-3, .grid-2, .grid-5{ display:flex; flex-wrap:wrap; justify-content:center; gap:18px; }
.grid-3 > *{ flex:1 1 calc(33.333% - 18px); min-width:260px; }
.grid-2 > *{ flex:1 1 calc(50% - 18px); min-width:280px; }
.grid-5 > *{ flex:1 1 calc(33.333% - 18px); min-width:240px; }

/* ---------- Cards ---------- */
.card{
  background:#fff; border:1px solid var(--line); padding:26px 24px;
}
.section--alt .card{ background:var(--paper); }
.section--blue .card{ background:#fff; border-color:var(--blue-line); }
.card:hover{ background:var(--paper-alt); }
.section--blue .card:hover{ background:#fff; box-shadow:0 4px 14px rgba(22,33,90,0.08); }

.checklist li{
  display:flex; gap:12px; margin-bottom:0; align-items:baseline; font-size:0.98rem;
  padding:11px 0; border-bottom:1px solid var(--line);
}
.checklist li:last-child{ border-bottom:none; }
.tick{
  flex-shrink:0; color:var(--amber-deep); font-weight:700; font-size:0.9rem; line-height:1.6;
}
.section--dark .checklist li{ border-bottom-color:var(--line-dark); }
.section--dark .tick{ color:var(--amber-bright); }

.program-split{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:52px; align-items:center; }
.program-photo-frame{ overflow:hidden; border-radius:var(--radius); aspect-ratio:4/3; }
.program-photo-frame img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width: 980px){
  .program-split{ grid-template-columns:1fr; }
}

.why-grid{ display:grid; grid-template-columns:0.62fr 1fr; gap:56px; align-items:center; }
.why-photo-frame{ overflow:hidden; border-radius:var(--radius); aspect-ratio:4/3; }
.why-photo-frame img{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width: 980px){
  .why-grid{ grid-template-columns:1fr; gap:32px; }
}

/* numeral markers used sparingly, set inline with the heading rather than as icon tiles */
.numeral-tile{
  font-family:'Source Serif 4',serif; font-weight:600; font-size:0.85rem; color:var(--amber-deep);
  display:block; margin-bottom:10px; letter-spacing:0.04em;
}

/* Section-head intro variant: an oversized, more prominent lead-in used
   sparingly for one key section per page rather than every heading. */
.section-head--intro{ max-width:720px; margin-bottom:48px; }
.section-head--intro h2{ font-size:2.6rem; line-height:1.1; max-width:16ch; }
.section-head--intro p{ font-size:1.1rem; max-width:52ch; }
@media (max-width:640px){
  .section-head--intro h2{ font-size:1.9rem; }
}

/* Branch cards */
.branch-card{ text-align:left; }
.branch-card .badge{
  display:block; font-family:'Inter',sans-serif; font-weight:600; color:var(--ink-muted);
  font-size:0.72rem; letter-spacing:0.06em; text-transform:uppercase; margin-bottom:10px;
}
.branch-card h3{ margin-bottom:4px; font-size:1.05rem; }
.branch-card .addr{ color:var(--ink-muted); font-size:0.88rem; margin-bottom:2px; }
.branch-card .rating{ color:var(--amber-deep); font-weight:600; font-size:0.86rem; margin-bottom:10px; }
.branch-card .meta-row{ display:flex; gap:16px; flex-wrap:wrap; margin-top:12px; font-size:0.84rem; color:var(--ink-muted); }
.branch-cta-row{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.schedule-block{ margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.schedule-title{ font-size:0.72rem; font-weight:600; letter-spacing:0.05em; text-transform:uppercase; color:var(--ink-muted); margin-bottom:8px; }
.schedule-list{ list-style:none; padding:0; margin:0; }
.schedule-list li{
  display:flex; justify-content:space-between; align-items:baseline; gap:10px;
  font-size:0.85rem; padding:5px 0;
}
.schedule-list .sched-time{ font-weight:600; color:var(--navy); }
.schedule-list .sched-date{ color:var(--ink-muted); white-space:nowrap; font-size:0.8rem; }
.tag{ font-size:0.78rem; color:var(--ink-muted); }

/* Program */
.program-hero{ padding:0; }
.pill-row{ display:flex; gap:18px; flex-wrap:wrap; margin:14px 0 22px; }
.pill{ color:var(--navy); font-weight:600; font-size:0.85rem; }
.curriculum-list{ display:grid; grid-template-columns:1fr 1fr; gap:0; margin-top:8px; border-top:1px solid var(--line); }
.curriculum-list li{
  display:flex; gap:10px; align-items:flex-start; font-size:0.92rem;
  padding:12px 0; border-bottom:1px solid var(--line);
}
.curriculum-list li:nth-child(odd){ padding-right:16px; border-right:1px solid var(--line); }
.curriculum-list li:nth-child(even){ padding-left:16px; }
.fee-table{ border-top:1px solid var(--line); }
.fee-row{
  display:flex; justify-content:space-between; align-items:flex-start; gap:20px;
  padding:15px 0; border-bottom:1px solid var(--line);
}
.fee-row .fee-name{ font-weight:600; color:var(--navy); }
.fee-row .fee-note{ font-size:0.85rem; color:var(--ink-muted); margin-top:3px; max-width:52ch; }
.fee-row .fee-amt{
  font-family:'Source Serif 4',serif; font-weight:600; color:var(--navy); white-space:nowrap; font-size:1rem;
}

/* AI chat widget */
#cc-chat-widget{ position:fixed; bottom:22px; right:22px; z-index:999; font-family:'Inter',sans-serif; }
#cc-chat-toggle{
  width:54px; height:54px; border-radius:50%; background:var(--navy); border:none;
  box-shadow:0 4px 14px rgba(22,33,90,0.28); cursor:pointer; display:flex; align-items:center; justify-content:center;
}
#cc-chat-toggle:hover{ background:var(--navy-2); }
#cc-chat-panel{
  position:absolute; bottom:68px; right:0; width:330px; max-width:calc(100vw - 40px);
  height:440px; max-height:70vh; background:#fff; border-radius:6px;
  box-shadow:0 12px 32px rgba(16,24,51,0.2); border:1px solid var(--line);
  display:flex; flex-direction:column; overflow:hidden;
}
.cc-chat-header{
  background:var(--navy); color:#fff; padding:13px 16px; font-weight:600; font-size:0.92rem;
  display:flex; align-items:center; justify-content:space-between; flex-shrink:0;
}
.cc-chat-header button{
  background:none; border:none; color:#fff; font-size:1.3rem; cursor:pointer; line-height:1; padding:0 4px;
}
.cc-chat-messages{ flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; }
.cc-msg{ max-width:85%; padding:9px 13px; border-radius:8px; font-size:0.85rem; line-height:1.45; }
.cc-msg.user{ align-self:flex-end; background:var(--navy); color:#fff; }
.cc-msg.bot{ align-self:flex-start; background:var(--paper-alt); color:var(--ink); }
.cc-typing{ align-self:flex-start; font-size:0.8rem; color:var(--ink-muted); padding:2px 13px; }
.cc-lang-row{ display:flex; gap:8px; margin-top:10px; }
.cc-lang-btn{
  background:#fff; border:1px solid var(--navy); color:var(--navy); font-weight:600;
  font-size:0.8rem; padding:6px 13px; border-radius:4px; cursor:pointer; font-family:inherit;
}
.cc-lang-btn:hover:not(:disabled){ background:var(--navy); color:#fff; }
.cc-lang-btn:disabled{ opacity:0.5; cursor:default; }
.cc-chat-input-row input:disabled{ background:var(--line); cursor:not-allowed; }
.cc-chat-input-row button:disabled{ background:var(--line); cursor:not-allowed; }
.cc-chat-input-row{ display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); flex-shrink:0; }
.cc-chat-input-row input{
  flex:1; border:1px solid var(--line); border-radius:4px; padding:9px 12px;
  font-size:0.85rem; font-family:inherit; background:var(--paper-alt);
}
.cc-chat-input-row input:focus{ outline:none; border-color:var(--navy); }
.cc-chat-input-row button{
  background:var(--navy); color:#fff; border:none; border-radius:4px; width:36px; height:36px;
  cursor:pointer; flex-shrink:0; display:flex; align-items:center; justify-content:center;
}
.cc-chat-input-row button:hover{ background:var(--navy-2); }
.cc-chat-footer{ font-size:0.7rem; color:var(--ink-muted); padding:0 14px 12px; text-align:center; flex-shrink:0; }
.cc-chat-footer a{ color:var(--blue); }
@media (max-width:480px){
  #cc-chat-panel{ width:calc(100vw - 32px); right:-6px; }
}

/* Pricing plans */
.plan-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:44px; margin-top:16px; align-items:stretch; }
.plan-card{ position:relative; display:flex; flex-direction:column; height:100%; padding:28px 24px; border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); }
.plan-card--featured{ background:var(--paper-alt); }
.plan-tag{
  font-size:0.7rem; font-weight:600; text-transform:uppercase; letter-spacing:0.05em;
  color:var(--amber-deep); margin-bottom:10px;
}
/* Floating orange badge for the standout plan cards (Most Popular / Best Value):
   hangs off the card's upper-left corner, well outside the card body, into
   the gap between cards — a label pointing at the card, not sitting on it.
   The 32px grid gap above is sized to give this room without ever reaching
   the neighboring card. */
.plan-card:has(.plan-badge){ padding-top:60px; }
.plan-badge{
  position:absolute; top:18px; left:-38px; z-index:2;
  background:var(--amber-bright); color:#1B1200;
  font-family:'Inter',sans-serif; font-size:0.72rem; font-weight:700;
  text-transform:uppercase; letter-spacing:0.04em;
  padding:7px 16px; border-radius:999px; white-space:nowrap;
  box-shadow:0 3px 8px rgba(27,18,0,0.18);
}
/* At tablet width (2-col grid), the 3rd card wraps alone into column 1
   with no left neighbor — the page's own 24px gutter becomes the nearest
   boundary instead of the 44px inter-card gap, so the badge needs a
   smaller offset here than on desktop to stay clear of the viewport edge. */
@media (max-width:980px){
  .plan-badge{ left:-16px; }
}
@media (max-width:600px){
  .plan-badge{ top:14px; left:-16px; font-size:0.64rem; padding:6px 12px; }
}
.plan-name{ font-size:0.82rem; font-weight:600; color:var(--ink-muted); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:10px; }
.plan-price{ font-family:'Source Serif 4',serif; font-weight:600; font-size:1.85rem; color:var(--navy); line-height:1; }
.plan-price .per{ font-size:0.92rem; font-weight:500; color:var(--ink-muted); }
.plan-total{ font-size:0.83rem; color:var(--ink-muted); margin:6px 0 14px; }
.plan-card p.plan-desc{ font-size:0.9rem; color:var(--ink-muted); margin-bottom:14px; }
.plan-card .checklist{ margin-bottom:18px; flex:1; }
.plan-card > .btn{ margin-top:auto; }
.plan-card .checklist li{ font-size:0.86rem; }

/* FAQ */
.faq-list{ max-width:760px; }
.faq-category{
  font-size:0.76rem; font-weight:600; text-transform:uppercase; letter-spacing:0.05em;
  color:var(--ink-muted); margin:32px 0 6px;
}
.faq-category:first-of-type{ margin-top:0; }
.faq-item{ border-bottom:1px solid var(--line); padding:16px 0; }
.faq-item summary{
  cursor:pointer; font-weight:600; color:var(--navy); font-size:1rem; list-style:none;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:'+'; font-size:1.3rem; color:var(--ink-muted); flex-shrink:0; line-height:1; font-weight:400;
}
.faq-item[open] summary::after{ content:'\2212'; }
.faq-item p{ margin-top:12px; color:var(--ink-muted); font-size:0.94rem; line-height:1.65; }

.step-row{ display:grid; grid-template-columns:repeat(3,1fr); column-gap:40px; row-gap:32px; margin-top:36px; }
.step{ position:relative; padding:0 20px 0 0; }
.step:nth-child(3n+1){ padding-left:0; }
.step .num{
  font-family:'Source Serif 4',serif; font-weight:600; font-size:0.85rem; color:var(--amber-deep);
  margin-bottom:14px; display:block;
}
.step h3{ margin-bottom:8px; line-height:1.3; font-size:1rem; }
.step p{ line-height:1.65; font-size:0.92rem; }

/* Blog */
.blog-card{ display:flex; flex-direction:column; height:100%; }
.blog-thumb{
  height:160px; margin-bottom:16px;
  background:var(--paper-alt); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden;
}
.blog-thumb svg{ width:32px; height:32px; opacity:0.35; }
.blog-cat{
  position:absolute; top:12px; left:12px; color:var(--ink-muted);
  font-size:0.68rem; font-weight:600; letter-spacing:0.05em; text-transform:uppercase;
  background:#fff; padding:3px 8px; border:1px solid var(--line);
}
.blog-date{ font-size:0.8rem; color:var(--ink-muted); margin-bottom:6px; }
.blog-card h3{ font-size:1.08rem; margin-bottom:8px; }
.blog-card p{ color:var(--ink-muted); font-size:0.92rem; flex:1; }
.blog-read{ font-weight:600; font-size:0.88rem; color:var(--blue); display:inline-flex; align-items:center; gap:6px; margin-top:10px; }

.post-header{ padding:52px 0 32px; background:var(--paper-alt); border-bottom:1px solid var(--line); }
.post-cat{
  display:inline-block; color:var(--amber-deep); font-weight:600;
  font-size:0.76rem; letter-spacing:0.04em; text-transform:uppercase; margin-bottom:14px;
}
.post-meta{ color:var(--ink-muted); font-size:0.88rem; }
.post-body{ max-width:700px; margin:0 auto; padding:48px 24px; font-size:1.03rem; }
.post-body h2{ margin-top:1.6em; }
.post-body p{ margin-bottom:1.3em; color:var(--ink); }
.post-body ul{ margin-bottom:1.3em; }
.post-body li{ display:flex; gap:10px; margin-bottom:8px; }
.post-cta{
  margin-top:36px; padding:24px 0; border-top:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.legal-page h3{ margin-top:1.3em; margin-bottom:0.3em; }
.legal-page ul.legal-list{ list-style:disc; padding-left:22px; }
.legal-page ul.legal-list li{ display:list-item; gap:0; margin-bottom:8px; }
.legal-page ol{ margin-bottom:1.3em; }
.legal-page ol li{ display:list-item; margin-bottom:6px; }

/* Forms */
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom:18px; }
.field.full{ grid-column:1 / -1; }
.field label{ font-size:0.85rem; font-weight:600; color:var(--navy); }
.field .req{ color:var(--amber-deep); }
.field input, .field select, .field textarea{
  font-family:inherit; font-size:0.95rem; padding:11px 13px; border-radius:var(--radius);
  border:1px solid var(--line); background:var(--paper-alt); color:var(--ink);
  transition:border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--navy); background:#fff;
}
.field textarea{ resize:vertical; min-height:100px; }
.field-hint{ font-size:0.78rem; color:var(--ink-muted); }
.form-note{
  display:flex; gap:10px; align-items:flex-start; border-left:3px solid var(--blue);
  padding:10px 14px; font-size:0.87rem; color:var(--navy); margin-bottom:24px; background:var(--paper-alt);
}
.success-box{
  display:none; text-align:center; padding:56px 30px; background:#fff; border:1px solid var(--line);
}
.success-box .check{
  width:52px; height:52px; border-radius:50%; background:var(--paper-alt); color:var(--navy);
  display:flex; align-items:center; justify-content:center; margin:0 auto 18px; font-size:1.4rem;
}

/* Admission-style form */
.admission-card{ background:#fff; border:1px solid var(--line); padding:36px; }
.required-note{ font-weight:600; color:var(--navy); margin:0 0 8px; }
.required-note .req{ color:var(--amber-deep); }
.form-section{
  font-family:'Source Serif 4',serif; font-weight:600; font-size:1.02rem; color:var(--navy);
  border-bottom:1px solid var(--line); padding-bottom:10px; margin:36px 0 4px;
}
.form-section:first-of-type{ margin-top:6px; }
.form-row{
  display:flex; align-items:flex-start; gap:24px; padding:16px 0;
  border-bottom:1px solid var(--line); flex-wrap:wrap;
}
.form-row:last-child{ border-bottom:none; }
.form-row > label{ flex:0 0 220px; font-weight:600; color:var(--ink); font-size:0.94rem; padding-top:10px; }
.form-row > label .req{ color:var(--amber-deep); }
.form-row .field-input{ flex:1 1 300px; max-width:460px; display:flex; flex-direction:column; gap:6px; }
.form-row input, .form-row select, .form-row textarea{
  font-family:inherit; font-size:0.95rem; padding:11px 13px; border-radius:var(--radius);
  border:1px solid var(--line); background:var(--paper-alt); color:var(--ink); width:100%;
  transition:border-color .15s ease, background .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline:none; border-color:var(--navy); background:#fff;
}
.form-row textarea{ resize:vertical; min-height:90px; }
.radio-row{ display:flex; gap:24px; align-items:center; padding-top:10px; flex-wrap:wrap; }
.radio-row label{ display:flex; align-items:flex-start; gap:8px; font-weight:500; color:var(--ink); font-size:0.94rem; }
.radio-row label input[type="radio"]{ margin-top:3px; flex-shrink:0; }
.radio-row input[type="radio"]{ accent-color:var(--navy); width:16px; height:16px; }
.file-row{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding-top:6px; }
.file-row input[type="file"]{
  font-size:0.87rem; padding:8px 12px; border-radius:var(--radius); border:1px solid var(--line); background:var(--paper-alt);
}
.file-hint{ font-size:0.78rem; color:var(--ink-muted); background:var(--paper-alt); padding:10px 14px; border-radius:var(--radius); line-height:1.5; }

/* Booking page: time-slot picker */
.booking-panel{ display:none; }
.booking-panel.active{ display:block; }
.slot-group{ margin-bottom:20px; }
.slot-group-label{ font-size:0.78rem; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; color:var(--ink-muted); margin-bottom:10px; }
.slot-options{ display:flex; flex-wrap:wrap; gap:10px; }
.slot-btn{
  position:relative; padding:10px 18px; border:1px solid var(--line); border-radius:var(--radius);
  font-family:inherit; font-size:0.9rem; font-weight:600; color:var(--navy); background:#fff; cursor:pointer;
  transition:border-color .15s ease, background .15s ease, color .15s ease;
}
.slot-btn input[type="radio"]{ position:absolute; opacity:0; width:1px; height:1px; }
/* The radio itself is visually hidden at 1x1px, so its own focus ring would
   be imperceptible — show focus on the label instead, same border-color
   language the rest of the form fields already use for :focus. */
.slot-btn:focus-within{ outline:2px solid var(--navy); outline-offset:2px; }
.slot-btn.selected{ background:var(--navy); border-color:var(--navy); color:#fff; }
.slot-btn.taken{ background:var(--paper-alt); border-color:var(--line); color:var(--ink-muted); text-decoration:line-through; cursor:not-allowed; }
.booking-schedule-note{
  display:flex; gap:10px; align-items:flex-start; border-left:3px solid var(--amber-bright);
  padding:12px 16px; font-size:0.92rem; color:var(--navy); margin-bottom:24px; background:var(--paper-alt);
}

/* Contact */
.contact-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; }
.contact-item{ display:flex; gap:14px; margin-bottom:24px; align-items:flex-start; padding-bottom:20px; border-bottom:1px solid var(--line); }
.contact-item:last-child{ border-bottom:none; }
.contact-item h3{ margin-bottom:3px; font-size:0.98rem; }
.contact-item p, .contact-item a{ color:var(--ink-muted); font-size:0.92rem; }
.map-embed{
  border:1px solid var(--line); height:210px;
  background:var(--paper-alt); display:flex; align-items:center; justify-content:center; color:var(--ink-muted); font-size:0.85rem;
}

/* About */
.value-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:28px; border:1px solid var(--line); }
.team-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px 24px; margin-top:32px; }
.team-card{ text-align:center; background:var(--paper-alt); border-color:var(--line); }
.team-photo{ width:120px; height:120px; border-radius:50%; object-fit:cover; margin:0 auto 16px; display:block; border:3px solid #fff; }
.team-card h3{ margin-bottom:2px; font-size:1rem; }
.team-role{ font-weight:600; color:var(--ink-muted); margin-bottom:8px; font-size:0.86rem; }
.team-card p:not(.team-role){ font-size:0.9rem; }

.featured-teacher{
  display:flex; gap:26px; align-items:center; max-width:620px; margin:0 auto 44px;
  background:var(--paper-alt); border:1px solid var(--line); border-left:4px solid var(--amber-bright);
  padding:26px 30px; text-align:left;
}
.featured-teacher img{ width:108px; height:108px; border-radius:50%; object-fit:cover; object-position:center 20%; transform:scale(0.85); flex-shrink:0; border:3px solid #fff; }
.featured-teacher .role-tag{
  display:inline-block; font-size:0.86rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--amber-deep); margin-bottom:8px;
}
/* Gallery */
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:2px; margin-top:32px; background:var(--line); }
.gallery-item{ position:relative; overflow:hidden; aspect-ratio:4/3; background:var(--paper-alt); }
.gallery-item.tall{ grid-row:span 2; aspect-ratio:2/3; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; display:block; }
.gallery-item .cap{
  position:absolute; left:0; right:0; bottom:0; padding:12px 14px 10px;
  background:linear-gradient(to top, rgba(22,17,7,0.82), rgba(22,17,7,0));
  color:#fff; font-size:0.8rem; font-weight:500; opacity:0; transition:opacity 0.2s ease;
}
.gallery-item:hover .cap{ opacity:1; }

/* ---------- Footer ---------- */
.footer{ background:var(--navy); color:#C7CEEA; padding:56px 0 24px; }
.footer h3{ color:#fff; font-family:'Inter',sans-serif; font-size:0.86rem; margin-bottom:14px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:32px; }
.footer p{ color:#A9B2D6; font-size:0.87rem; }
.footer ul li{ margin-bottom:9px; }
.footer ul a{ color:#C7CEEA; font-size:0.88rem; display:inline-flex; align-items:center; gap:8px; }
.footer ul a svg{ flex-shrink:0; }
.footer ul a:hover{ color:#fff; }
.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  margin-top:40px; padding-top:20px; border-top:1px solid rgba(255,255,255,0.14);
  font-size:0.8rem; color:rgba(199,206,234,0.65);
}
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.footer-brand .brand-name{ color:#fff; }

/* Utility */
.mt-0{ margin-top:0; }
/* Visually hidden but still announced by screen readers — used for section
   headings that keep the document outline correct (h1 -> h2 -> h3) without
   adding a visible label where the design doesn't call for one. */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.badge-notice{
  display:inline-block; border-left:3px solid var(--amber); color:var(--amber-deep);
  font-size:0.82rem; font-weight:600; padding:4px 0 4px 12px; margin-bottom:16px;
}
/* Anti-spam honeypot field — unlike .sr-only, this must be invisible to
   EVERYONE (sighted users, keyboard users, and screen readers alike), not
   just visually hidden, since a screen reader user landing on it would
   fill it in and get incorrectly flagged as spam. Off-screen positioning
   (not display:none/visibility:hidden, which some bots specifically
   detect and skip) plus aria-hidden + tabindex=-1 on the input itself
   keeps it out of the tab order and accessibility tree entirely. See
   netlify/functions/_shared/booking-lib.js's isSpamSubmission(). */
.honeypot-field{
  position:absolute; left:-9999px; top:-9999px; width:1px; height:1px; overflow:hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid, .two-col, .contact-grid{ grid-template-columns:1fr; }
  .grid-3 > *, .grid-5 > *{ flex:1 1 calc(50% - 18px); }
  .plan-grid, .team-grid, .value-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
  .step-row{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .curriculum-list{ grid-template-columns:1fr; }
  .fee-row{ flex-direction:column; gap:4px; }
}
@media (max-width: 760px){
  .nav-links{
    position:absolute; top:72px; left:0; right:0; background:#fff;
    flex-direction:column; align-items:flex-start; gap:0; padding:10px 24px 20px;
    border-bottom:1px solid var(--line); display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links li{ width:100%; padding:12px 0; border-bottom:1px solid var(--line); }
  .nav-toggle{ display:flex; }
  .nav-cta .btn-primary{ display:none; }
  .hero h1{ font-size:1.9rem; max-width:none; }
  .grid-3 > *, .grid-2 > *, .grid-5 > *{ flex:1 1 100%; }
  .plan-grid, .team-grid, .value-grid{ grid-template-columns:1fr; }
  .step-row{ grid-template-columns:1fr; row-gap:24px; }
  .step{ padding-left:0 !important; padding-right:0; }
  .value-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:1fr; }
  .gallery-item.tall{ grid-row:auto; aspect-ratio:4/3; }
  .footer-grid{ grid-template-columns:1fr; }
  .section{ padding:44px 0; }
}
