/* =========================================================
   YES ACADEMY — Design tokens
   Concept: a report card / ruled notebook, rendered as a site.
   Palette: ink navy, warm paper, muted gold, brick-red pen,
   deep sage. Display serif for authority, handwritten accent
   for the teacher's-remark tagline.
   ========================================================= */

:root{
  --ink:        #22283B;   /* deep navy-charcoal — text, header */
  --ink-soft:   #4B5468;   /* secondary text on paper */
  --paper:      #F6F2E9;   /* warm paper background */
  --paper-2:    #EFE9DA;   /* slightly deeper paper panel */
  --line:       #D9CFB8;   /* ruled-line / hairline color */
  --gold:       #C08A2E;   /* muted gold accent */
  --gold-soft:  #E7C877;
  --red-pen:    #A6402F;   /* brick red — teacher's remark */
  --sage:       #3F5B4E;   /* deep sage — secondary accent */
  --white:      #FFFDF8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Caveat', cursive;

  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(34,40,59,0.06), 0 8px 24px rgba(34,40,59,0.06);
  --max: 1160px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3{ font-family: var(--font-display); margin:0; color: var(--ink); }
p{ margin:0; }
.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;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight:600;
  font-size:15px;
  border:1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--ink); color: var(--white); }
.btn-primary:hover{ background: var(--red-pen); }
.btn-ghost{ border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--white); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{ position: sticky; top:0; z-index:50; background: var(--paper); }
.topbar{ background: var(--ink); color: var(--paper); font-size:13px; }
.topbar-inner{ display:flex; justify-content:space-between; align-items:center; height:36px; }
.topbar-contact{ display:flex; gap:18px; }
.topbar-contact a{ opacity:.9; }
.topbar-contact a:hover{ opacity:1; text-decoration:underline; }
.topbar-address{ display:none; }
.topbar-social{ display:flex; gap:12px; font-size:11px; letter-spacing:.04em; }
.topbar-social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; border:1px solid rgba(246,242,233,.35); border-radius:50%;
  opacity:.85;
}
.topbar-social a:hover{ opacity:1; border-color: var(--gold-soft); color: var(--gold-soft); }

.navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:50%;
  background: var(--ink); color: var(--gold-soft);
  font-family: var(--font-display); font-weight:700; font-size:16px;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-text strong{ font-family: var(--font-display); font-size:19px; }
.brand-text em{ font-family: var(--font-accent); font-style:normal; color: var(--red-pen); font-size:15px; }

.main-nav{ display:flex; align-items:center; gap:28px; font-weight:600; font-size:15px; }
.main-nav a{ position:relative; padding:4px 0; }
.main-nav a:not(.nav-cta)::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background: var(--red-pen); transform: scaleX(0); transform-origin:left;
  transition: transform .2s ease;
}
.main-nav a:not(.nav-cta):hover::after{ transform: scaleX(1); }
.nav-cta{
  background: var(--ink); color:var(--white); padding:9px 18px; border-radius: var(--radius);
}
.nav-cta:hover{ background: var(--red-pen); }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:6px;
}
.nav-toggle span{ width:24px; height:2px; background: var(--ink); border-radius:2px; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  padding: 72px 0 88px;
  background:
    linear-gradient(var(--paper), var(--paper)),
    repeating-linear-gradient(var(--paper) 0 39px, var(--line) 39px 40px);
  background-blend-mode: normal;
  position:relative;
  border-bottom:1px solid var(--line);
}
.hero::before{
  content:"";
  position:absolute; top:0; bottom:0; left:64px;
  width:2px; background: rgba(166,64,47,.28);
  display:none;
}
@media (min-width: 900px){ .hero::before{ display:block; } }

.hero-grid{
  display:grid; grid-template-columns: 1.15fr .85fr; gap:56px; align-items:center;
}
.eyebrow{
  font-family: var(--font-accent); color: var(--red-pen); font-size:20px; margin-bottom:8px;
}
.hero-copy h1{
  font-size: clamp(34px, 4.4vw, 52px); font-weight:600; line-height:1.12; letter-spacing:-.01em;
}
.hero-mark{ color: var(--sage); }
.hero-lede{ margin-top:20px; max-width:52ch; color: var(--ink-soft); font-size:17px; }
.hero-actions{ display:flex; gap:16px; margin-top:32px; flex-wrap:wrap; }

.hero-report{ perspective: 1000px; }
.report-card{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  padding: 26px 28px 22px;
  transform: rotate(1.2deg);
  position:relative;
}
.report-card::before{
  content:""; position:absolute; inset:10px;
  border:1px dashed var(--line); border-radius:3px; pointer-events:none;
}
.report-head{
  display:flex; justify-content:space-between; align-items:baseline;
  font-family: var(--font-display); font-weight:700; font-size:13px;
  letter-spacing:.06em; text-transform:uppercase; color: var(--ink);
  border-bottom: 2px solid var(--ink); padding-bottom:10px; margin-bottom:14px;
}
.report-head span:last-child{ font-weight:500; text-transform:none; letter-spacing:0; color: var(--ink-soft); font-family: var(--font-body); font-size:12.5px; }
.report-rows li{
  display:flex; justify-content:space-between; gap:16px;
  padding:9px 0; border-bottom:1px dotted var(--line); font-size:14.5px;
}
.report-rows li:last-child{ border-bottom:none; }
.report-rows span{ color: var(--ink-soft); }
.report-rows b{ font-weight:700; text-align:right; }
.report-remark{
  margin-top:16px; font-family: var(--font-accent); color: var(--red-pen);
  font-size:19px; transform: rotate(-1deg);
}

/* =========================================================
   SECTION HEADERS (shared)
   ========================================================= */
.section-eyebrow{
  font-family: var(--font-accent); color: var(--red-pen); font-size:19px; margin-bottom:6px;
}
.section-eyebrow--light{ color: var(--gold-soft); }
section h2{ font-size: clamp(26px, 3vw, 36px); font-weight:600; max-width: 22ch; margin-bottom:40px; }

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why{ padding: 88px 0; }
.why-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap:1px;
  background: var(--line); border:1px solid var(--line); border-radius: 6px; overflow:hidden;
}
.why-card{
  background: var(--white); padding: 30px 26px; min-height:180px;
  transition: background .2s ease;
}
.why-card:hover{ background: var(--paper-2); }
.why-num{
  display:block; font-family: var(--font-display); font-weight:700; color: var(--gold);
  font-size:15px; margin-bottom:14px;
}
.why-card h3{ font-size:18px; margin-bottom:8px; }
.why-card p{ color: var(--ink-soft); font-size:14.5px; }

/* =========================================================
   COURSES
   ========================================================= */
.courses{ padding: 88px 0; background: var(--ink); color: var(--paper); }
.courses .section-eyebrow{ color: var(--gold-soft); }
.courses h2{ color: var(--white); }
.course-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:28px; }
.course-card{
  background: rgba(246,242,233,.04);
  border:1px solid rgba(246,242,233,.18);
  border-radius: 8px;
  padding: 32px 30px;
}
.course-card--alt{ background: rgba(200,138,46,.08); border-color: rgba(200,138,46,.35); }
.course-head{ margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid rgba(246,242,233,.18); }
.course-tag{
  display:inline-block; font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  color: var(--gold-soft); font-weight:700; margin-bottom:8px;
}
.course-head h3{ color: var(--white); font-size:24px; }
.course-list{ padding-left: 22px; }
.course-list li{ margin-bottom:12px; font-size:15px; color: rgba(246,242,233,.85); }
.course-list li::marker{ color: var(--gold-soft); font-weight:700; }

/* =========================================================
   ABOUT
   ========================================================= */
.about{ padding: 96px 0; }
.about-grid{ display:grid; grid-template-columns: .85fr 1.15fr; gap:60px; align-items:center; }
.about-media{ position:relative; }
.about-photo{
  border-radius:8px; overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-card);
  aspect-ratio: 4/5; background: var(--paper-2);
}
.about-photo img{ width:100%; height:100%; object-fit:cover; }
.about-badge{
  position:absolute; right:-18px; bottom:-18px;
  background: var(--red-pen); color: var(--white);
  width:110px; height:110px; border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  box-shadow: var(--shadow-card); text-align:center; transform: rotate(-6deg);
}
.about-badge strong{ font-family: var(--font-display); font-size:34px; line-height:1; }
.about-badge span{ font-size:11px; line-height:1.2; margin-top:4px; }
.about-copy p{ color: var(--ink-soft); margin-bottom:16px; font-size:15.5px; }
.about-founder{
  font-family: var(--font-accent); color: var(--ink); font-size:22px; margin-top:8px;
}

/* =========================================================
   CTA / CONTACT
   ========================================================= */
.cta{ padding: 80px 0; background: var(--sage); color: var(--paper); }
.cta-inner{ display:grid; grid-template-columns: 1.2fr .8fr; gap:40px; align-items:center; }
.cta h2{ color: var(--white); font-size: clamp(24px,3vw,32px); max-width:18ch; }
.cta-lede{ color: rgba(246,242,233,.85); margin-top:14px; max-width:46ch; }
.cta-details{ display:flex; flex-direction:column; gap:10px; font-size:16px; font-weight:600; }
.cta-details a:hover{ color: var(--gold-soft); }
.cta-details span{ font-weight:400; font-size:14px; color: rgba(246,242,233,.8); margin-top:6px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--ink); color: rgba(246,242,233,.85); padding-top: 64px; }
.footer-grid{
  display:grid; grid-template-columns: 1.2fr .8fr .8fr 1.2fr; gap:40px; padding-bottom:48px;
  border-bottom:1px solid rgba(246,242,233,.14);
}
.footer-brand p{ margin-top:14px; font-family: var(--font-display); font-size:17px; color: var(--white); }
.footer-brand p span{ font-family: var(--font-accent); color: var(--gold-soft); font-size:16px; }
.brand-mark--footer{ background: var(--gold-soft); color: var(--ink); }
.footer-address{ font-family: var(--font-body) !important; font-size:13px !important; color: rgba(246,242,233,.65); margin-top:14px !important; }
.footer-col h4{ font-family: var(--font-display); color: var(--white); font-size:15px; margin-bottom:16px; }
.footer-col a{ display:block; padding:5px 0; font-size:14.5px; color: rgba(246,242,233,.75); }
.footer-col a:hover{ color: var(--gold-soft); }
.footer-newsletter p{ font-size:13.5px; color: rgba(246,242,233,.65); margin-bottom:14px; }
.newsletter-form{ display:flex; gap:8px; }
.newsletter-form input{
  flex:1; min-width:0; padding:10px 12px; border-radius: var(--radius);
  border:1px solid rgba(246,242,233,.25); background: rgba(246,242,233,.06); color: var(--white); font-size:14px;
}
.newsletter-form input::placeholder{ color: rgba(246,242,233,.45); }
.newsletter-form button{
  padding:10px 16px; border-radius: var(--radius); border:1px solid var(--gold-soft);
  background: var(--gold-soft); color: var(--ink); font-weight:700; font-size:14px; cursor:pointer;
}
.newsletter-form button:hover{ background: transparent; color: var(--gold-soft); }
.newsletter-msg{ font-size:13px; margin-top:10px; color: var(--gold-soft); min-height:16px; }
.footer-social{ display:flex; gap:16px; margin-top:16px; }
.footer-social a{ padding:0; font-size:13px; }

.footer-bottom{ padding: 20px 24px; text-align:center; font-size:13px; color: rgba(246,242,233,.5); }

/* =========================================================
   PAGE BANNER (interior pages)
   ========================================================= */
.page-banner{
  padding: 64px 0 56px;
  background:
    linear-gradient(var(--paper), var(--paper)),
    repeating-linear-gradient(var(--paper) 0 39px, var(--line) 39px 40px);
  border-bottom: 1px solid var(--line);
}
.page-banner h1{
  font-size: clamp(30px, 4vw, 44px); font-weight:600; line-height:1.16; max-width:20ch;
}
.page-banner-lede{ margin-top:16px; max-width:56ch; color: var(--ink-soft); font-size:16.5px; }

/* =========================================================
   ABOUT — MISSION SPLIT (about.html)
   ========================================================= */
.mission-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap:56px; align-items:center; }
.mission-copy{ margin-top:18px; color: var(--ink-soft); max-width:52ch; font-size:15.5px; }
.mission-card{ transform: rotate(-1deg); }
.mission-card .report-rows b{ font-weight:700; }

/* =========================================================
   FOUNDER QUOTE
   ========================================================= */
.founder{ padding: 88px 0; background: var(--paper-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.founder-grid{ max-width: 780px; margin:0 auto; text-align:center; position:relative; }
.founder-quote-mark{
  font-family: var(--font-display); font-size:96px; line-height:1; color: var(--gold);
  opacity:.5; margin-bottom:-24px;
}
.founder blockquote{ margin:0; }
.founder blockquote p{
  font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 28px); font-weight:500;
  line-height:1.45; color: var(--ink); font-style:italic;
}
.founder footer{ margin-top:24px; display:flex; flex-direction:column; gap:2px; }
.founder-name{ font-weight:700; font-size:16px; }
.founder-role{ font-family: var(--font-accent); color: var(--red-pen); font-size:18px; }

@media (max-width: 900px){
  .mission-grid{ grid-template-columns:1fr; }
}

/* =========================================================
   CONTACT — INFO CARDS
   ========================================================= */
.contact-info{ padding: 56px 0 0; }
.contact-info-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:1px;
  background: var(--line); border:1px solid var(--line); border-radius:6px; overflow:hidden;
}
.info-card{
  background: var(--white); padding: 24px 22px; display:flex; flex-direction:column; gap:4px;
  transition: background .2s ease;
}
a.info-card:hover{ background: var(--paper-2); }
.info-card-label{
  font-family: var(--font-accent); color: var(--red-pen); font-size:17px; margin-bottom:6px;
}
.info-card strong{ font-size:15px; font-weight:600; line-height:1.4; }
.info-card--static strong{ font-weight:500; color: var(--ink-soft); }

/* =========================================================
   CONTACT — FORM + MAP
   ========================================================= */
.contact-main{ padding: 80px 0 96px; }
.contact-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap:56px; align-items:start; }

.contact-form{ margin-top:24px; display:flex; flex-direction:column; gap:18px; }
.form-row{ display:flex; flex-direction:column; gap:6px; }
.form-row--split{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-row label{ font-size:13.5px; font-weight:600; color: var(--ink); }
.form-row label .optional{ font-weight:400; color: var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea{
  font-family: var(--font-body); font-size:15px; padding:12px 14px;
  border:1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline:none; border-color: var(--red-pen); box-shadow: 0 0 0 3px rgba(166,64,47,.12);
}
.contact-form .btn{ align-self:flex-start; margin-top:4px; }
.form-status{ font-size:14px; color: var(--sage); font-weight:600; min-height:18px; }

.contact-side{ display:flex; flex-direction:column; gap:28px; }
.map-wrap{
  aspect-ratio: 4/3; border-radius:8px; overflow:hidden; border:1px solid var(--line); box-shadow: var(--shadow-card);
}
.contact-hours-card{ transform: rotate(1deg); }

@media (max-width: 900px){
  .contact-info-grid{ grid-template-columns:1fr 1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .form-row--split{ grid-template-columns:1fr; }
}
@media (max-width: 560px){
  .contact-info-grid{ grid-template-columns:1fr; }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-section{ padding: 72px 0 96px; }
.gallery-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap:18px;
}
.gallery-item{
  position:relative; border:none; padding:0; margin:0; cursor:zoom-in;
  border-radius:6px; overflow:hidden; background: var(--paper-2);
  border:1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform .2s ease;
}
.gallery-item:hover{ transform: translateY(-3px); }
.gallery-item img{ width:100%; height:100%; object-fit:cover; display:block; }
.gallery-item--wide{ grid-column: span 2; }
.gallery-item--tall{ grid-row: span 2; }

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows:180px; }
  .gallery-item--wide{ grid-column: span 2; }
}
@media (max-width: 560px){
  .gallery-grid{ grid-template-columns: 1fr; grid-auto-rows:220px; }
  .gallery-item--wide, .gallery-item--tall{ grid-column: span 1; grid-row: span 1; }
}

/* ---- Lightbox ---- */
.lightbox{
  display:none; position:fixed; inset:0; z-index:200;
  background: rgba(20,20,26,.92);
  align-items:center; justify-content:center; flex-direction:column; gap:16px;
  padding: 40px;
}
.lightbox.open{ display:flex; }
.lightbox-img{ max-width:min(90vw, 1000px); max-height:72vh; border-radius:6px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lightbox-caption{ color: var(--paper); font-family: var(--font-accent); font-size:20px; text-align:center; max-width:60ch; }
.lightbox-close{
  position:absolute; top:24px; right:28px; background:none; border:none; color: var(--paper);
  font-size:36px; line-height:1; cursor:pointer; padding:4px 10px;
}
.lightbox-close:hover{ color: var(--gold-soft); }
.lightbox-nav{
  position:absolute; top:50%; transform: translateY(-50%);
  background: rgba(246,242,233,.1); border:1px solid rgba(246,242,233,.3); color: var(--paper);
  width:48px; height:48px; border-radius:50%; font-size:26px; cursor:pointer; line-height:1;
}
.lightbox-nav:hover{ background: rgba(246,242,233,.2); }
.lightbox-prev{ left:24px; }
.lightbox-next{ right:24px; }
@media (max-width:640px){
  .lightbox-nav{ width:40px; height:40px; font-size:20px; }
  .lightbox-prev{ left:10px; }
  .lightbox-next{ right:10px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 700px){ .topbar-address{ display:inline; } }

@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-report{ order:-1; max-width:420px; }
  .about-grid{ grid-template-columns:1fr; }
  .about-media{ max-width:360px; }
  .cta-inner{ grid-template-columns:1fr; }
  .course-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width: 760px){
  .nav-toggle{ display:flex; }
  .main-nav{
    position:absolute; top:100%; left:0; right:0;
    background: var(--paper); border-bottom:1px solid var(--line);
    flex-direction:column; align-items:flex-start; gap:2px; padding: 8px 24px 18px;
    display:none;
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ width:100%; padding:10px 0; }
  .nav-cta{ margin-top:8px; text-align:center; }
  .topbar-contact{ gap:12px; font-size:12px; }
}

@media (max-width: 560px){
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .why-grid{ grid-template-columns:1fr 1fr; }
}

/* =========================================================
   SCROLL REVEAL (progressive enhancement, JS-driven)
   ========================================================= */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal-in{ opacity:1; transform:none; }
