/* ===================================================================
   Classico Academy — stylesheet
   Palette: navy #0B0B45, maroon #900C3F, white, warm gold accent
   Type: Fraunces (display/serif) + Inter (body/sans)
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --navy: #0B0B45;
  --navy-deep: #06062b;
  --maroon: #900C3F;
  --maroon-bright: #B01049;
  --gold: #C6952E;
  --white: #ffffff;

  --bg: #F6F5FB;
  --surface: #ffffff;
  --surface-2: #EFEEF8;
  --ink: #16162E;
  --muted: #5B5B78;
  --border: #E1E0EE;

  --radius-s: 4px;
  --radius-m: 10px;
  --shadow: 0 10px 30px -14px rgba(11,11,69,.25);
  --maxw: 1180px;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="dark"]{
  --bg: #08081F;
  --surface: #101033;
  --surface-2: #14143d;
  --ink: #EDEDF7;
  --muted: #A5A5C4;
  --border: #23234f;
  --shadow: 0 10px 30px -14px rgba(0,0,0,.6);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
img{ max-width:100%; display:block; }
a{ color: inherit; }
button{ font-family: inherit; cursor:pointer; }
:focus-visible{ outline: 3px solid var(--gold); outline-offset: 2px; }

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

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .4em;
  font-weight: 600;
  letter-spacing: -.01em;
}

.eyebrow{
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--maroon);
  font-weight: 700;
  margin: 0 0 .35em;
}
[data-theme="dark"] .eyebrow{ color: #ff8fb0; }

.section{ padding: 76px 0; }
.section-head{ max-width: 640px; margin-bottom: 40px; }
.section-head p{ color: var(--muted); font-size: 1.02rem; }
.section-alt{ background: var(--surface-2); }

/* ---------------- Header ---------------- */
.site-header{
  position: sticky; top:0; z-index: 60;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-row{
  display:flex; align-items:center; gap: 18px;
  padding: 10px 24px;
  max-width: var(--maxw); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; flex-shrink:0; text-decoration:none; }
.brand-mark{
  width:50px; height:46px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-family: var(--font-display); font-weight:700; font-size:1.15rem;
  flex-shrink:0;
}
.brand-mark img{ width:40px; height:35px; border-radius:10px; }
.brand-name{
  color:#fff; font-family: var(--font-display); font-weight:600;
  font-size: 1.18rem; line-height:1.1; white-space:nowrap;
}
.brand-name span{ display:block; font-family: var(--font-body); font-weight:500; font-size:.66rem; color:#c9c9e6; letter-spacing:.03em; }

.header-search{
  flex: 1 1 auto; max-width: 420px;
  display:flex; align-items:center;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 0 6px 0 16px;
}
.header-search input{
  flex:1; background:transparent; border:0; color:#fff; padding:9px 6px;
  font-family: var(--font-body); font-size:.92rem;
}
.header-search input::placeholder{ color:#b7b7dd; }
.header-search button{
  background: var(--maroon); color:#fff; border:0; border-radius:999px;
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
}

.header-actions{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.icon-btn{
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  color:#fff; width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:1rem;
}
.icon-btn svg{ width:18px; height:18px; }
.cta-small{
  background: var(--maroon); color:#fff; border:0; border-radius:999px;
  padding: 10px 18px; font-weight:600; font-size:.88rem; white-space:nowrap;
}

/* ---------------- Course ribbon ---------------- */
.course-ribbon{
  background: var(--maroon);
  height: 44px;
  display:flex; align-items:center;
  position: sticky; top: 66px; z-index: 55;
}
.ribbon-inner{
  display:flex; align-items:center; gap:8px;
  max-width: var(--maxw); margin:0 auto; width:100%; padding: 0 8px;
}
.ribbon-arrow{
  background: rgba(255,255,255,.16); border:0; color:#fff;
  width:28px; height:28px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
}
.ribbon-scroll{
  display:flex; gap:6px; overflow-x:auto; scroll-behavior:smooth;
  scrollbar-width:none; padding: 4px 2px;
}
.ribbon-scroll::-webkit-scrollbar{ display:none; }
.ribbon-scroll button{
  background: rgba(255,255,255,.1); color:#fff; border:1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: 6px 16px; font-size:.82rem; font-weight:600;
  white-space:nowrap; flex-shrink:0;
}
.ribbon-scroll button:hover, .ribbon-scroll button.is-active{
  background:#fff; color: var(--maroon);
}

/* ---------------- Hero ---------------- */
.hero{
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 62%, var(--maroon) 150%);
  color:#fff; padding: 64px 0 84px;
}
.hero .wrap{ display:grid; grid-template-columns: 1.15fr .85fr; gap:48px; align-items:center; }
.hero h1{
  color:#fff; font-size: clamp(2.1rem, 4vw, 3.1rem); line-height:1.08; margin-bottom:.5em;
}
.hero p{ color:#d4d4ef; font-size:1.08rem; max-width: 46ch; }
.hero-actions{ display:flex; gap:14px; margin-top: 28px; flex-wrap:wrap; }
.btn{
  border-radius: 999px; padding: 13px 26px; font-weight:600; font-size:.95rem; border:0; text-decoration:none; display:inline-block;
}
.btn-primary{ background: var(--maroon); color:#fff; }
.btn-primary:hover{ background: var(--maroon-bright); }
.btn-ghost{ background: transparent; color:#fff; border:1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover{ border-color:#fff; }
.hero-card{
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-m); padding: 26px; backdrop-filter: blur(6px);
}
.hero-card-row{ display:flex; justify-content:space-between; padding: 12px 0; border-bottom:1px solid rgba(255,255,255,.12); }
.hero-card-row:last-child{ border-bottom:0; }
.hero-card-row b{ color:#fff; font-family: var(--font-display); font-size:1.4rem; }
.hero-card-row span{ color:#c9c9e6; font-size:.82rem; max-width:16ch; text-align:right; }

/* ---------------- Why cards ---------------- */
.why-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.why-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-m);
  padding: 26px 24px; position:relative; overflow:hidden;
}
.why-card::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background: var(--gold);
}
.why-card:nth-child(3n+2)::before{ background: var(--maroon); }
.why-card:nth-child(3n)::before{ background: var(--navy); }
.why-card h3{ font-size:1.12rem; margin-bottom:.35em; }
.why-card p{ color: var(--muted); font-size:.92rem; margin:0; }

/* ---------------- Stats ---------------- */
.stats{
  background: var(--navy); color:#fff;
}
.stats .wrap{
  display:grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  padding-top: 52px; padding-bottom: 52px;
}
.stat{ text-align:center; padding: 0 12px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child{ border-left:0; }
.stat .num{ font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.5rem); color: #900c3f; display:block; }
.stat .lbl{ color:#c9c9e6; font-size:.82rem; line-height:1.35; }

/* ---------------- Programme (ACCA/HEXCO) sections ---------------- */
.programme-intro{ display:flex; gap: 30px; align-items:flex-start; margin-bottom: 30px; flex-wrap:wrap; }
.programme-intro p{ flex:1 1 420px; color: var(--muted); }
.badge-partner{
  flex:0 0 220px; background: var(--surface); border:1px dashed var(--gold);
  border-radius: var(--radius-m); padding: 16px 18px; font-size:.85rem; color: var(--ink);
}
.badge-partner b{ display:block; color: var(--maroon); font-family: var(--font-display); font-size:1rem; margin-bottom:2px; }

.tile-scroll{
  display:flex; gap:16px; overflow-x:auto; padding: 6px 2px 18px; scroll-behavior:smooth; scrollbar-width: thin; scrollbar-color: #900c3f transparent;
}
.module-tile{
  flex: 0 0 240px; background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius-m); overflow:hidden; box-shadow: var(--shadow);
}
.module-tile-head{
  background: var(--navy); color:#fff; padding: 14px 16px;
  display:flex; justify-content:space-between; align-items:baseline;
}
.module-tile-head .code{ font-family: var(--font-display); font-size:1.3rem; color: #900c3f; }
.module-tile-head .price{ font-weight:700; font-size:.95rem; color: var(--gold); }
.module-tile-body{ padding: 14px 16px; }
.module-tile-body .name{ font-weight:600; font-size:.94rem; margin-bottom:10px; display:block; min-height: 2.4em;}
.module-tile-row{
  display:flex; justify-content:space-between; font-size:.8rem; color:var(--muted);
  padding: 6px 0; border-top: 1px dashed var(--border);
}
.module-tile-row b{ color: var(--ink); font-weight:600; }

/* ---------------- School levels ---------------- */
.levels-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.level-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-m);
  overflow:hidden; box-shadow: var(--shadow);
}
.level-card-head{
  background: var(--maroon); color:#fff; padding: 18px 20px;
}
.level-card-head h3{ color:#0B0B45; margin:0; font-size:1.2rem; }
.level-card-head span{ font-size:.8rem; color:#f3c9d6; }
.level-card-body{ padding: 18px 20px; }
.level-row{ display:flex; justify-content:space-between; padding: 9px 0; border-bottom:1px solid var(--border); font-size:.88rem; gap: 10px;}
.level-row:last-child{ border-bottom:0; }
.level-row b{ color: var(--ink); flex-shrink: 0;}
.level-row span:last-child{ color: var(--muted); text-align:right; }

/* ---------------- Enrollment form ---------------- */
.enroll{
  background: var(--navy-deep); color:#fff;
}
.enroll .section-head p{ color:#c9c9e6; }
.enroll .eyebrow{ color: var(--gold); }
.enroll h2{ color:#fff; }
.form-grid{
  display:grid; grid-template-columns: repeat(2,1fr); gap:16px;
  background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-m); padding: 28px; max-width: 780px;
}
.form-field{ display:flex; flex-direction:column; gap:6px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-size:.78rem; color:#c9c9e6; font-weight:600; }
.form-field input, .form-field select, .form-field textarea{
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-s); padding: 10px 12px; color:#fff; font-family: var(--font-body); font-size:.92rem;
}
.form-field select option{ color:#16162E; }
.form-field textarea{ resize: vertical; min-height:90px; }
.form-field input::placeholder, .form-field textarea::placeholder{ color:#9a9ac2; }
.form-note{ grid-column:1/-1; font-size:.78rem; color:#9a9ac2; margin-top:-4px; }
.form-submit{ grid-column:1/-1; display:flex; align-items:center; gap:14px; flex-wrap: wrap;}
.form-status{ font-size:.85rem; color: var(--gold); }

/* ---------------- Testimonials ---------------- */
.testimonial-track{
  display:flex; gap:20px; overflow-x:auto; padding: 6px 2px 18px; scroll-behavior:smooth; scrollbar-width: thin; scrollbar-color: #900c3f transparent;
}
.testimonial-card{
  flex: 0 0 min(360px, 85vw); background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius-m); padding: 26px; box-shadow: var(--shadow);
}
.testimonial-card .mark{ font-family: var(--font-display); font-size:2.4rem; color: var(--gold); line-height:1; }
.testimonial-card p{ color: var(--ink); font-size:.95rem; margin: 8px 0 18px; }
.testimonial-who b{ display:block; font-size:.92rem; }
.testimonial-who span{ font-size:.8rem; color: var(--muted); }

/* ---------------- Bottom banner / footer ---------------- */
.footer{ background: var(--navy); color:#e5e5f5; padding-top: 56px; }
.footer .wrap{ display:grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 32px; padding-bottom: 40px; }
.footer h4{ color:#fff; font-size: .95rem; font-family: var(--font-body); font-weight:700; margin-bottom: 14px; }
.footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.footer ul li a{ color:#c2c2de; text-decoration:none; font-size:.87rem; }
.footer ul li a:hover{ color:#fff; }
.footer-brand .brand-mark{ margin-bottom:12px; }
.footer-brand p{ color:#b6b6d6; font-size:.86rem; max-width:32ch; }
.footer-address{ font-size:.84rem; color:#b6b6d6; margin: 4px 0 14px; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{
  width:34px; height:34px; border-radius:50%; background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center; text-decoration:none; color:#fff; font-size:.85rem;
}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12); padding: 18px 0 24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.8rem; color:#9a9ac2;
}

/* ---------------- Back to top ---------------- */
.to-top{
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 44px; height:44px; border-radius:50%; border:0;
  background: var(--maroon); color:#fff; box-shadow: var(--shadow);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem;
  opacity:0; pointer-events:none; transition: opacity .2s ease, transform .2s ease;
}
.to-top.show{ opacity:1; pointer-events:auto; }

/* ---------------- Responsive ---------------- */
@media (max-width: 920px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: repeat(2,1fr); }
  .levels-grid{ grid-template-columns: 1fr; }
  .stats .wrap{ grid-template-columns: repeat(3,1fr); row-gap: 24px; }
  .stat:nth-child(4){ border-left:0; }
  .footer .wrap{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px){
  .header-row{ flex-wrap:wrap; }
  .header-search{ order:3; max-width:none; flex-basis:100%; }
  .why-grid{ grid-template-columns: 1fr; }
  .stats .wrap{ grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3){ border-left:0; }
  .form-grid{ grid-template-columns: 1fr; }
  .form-field.full{ grid-column: 1; }
  .footer .wrap{ grid-template-columns: 1fr; }
  .section{ padding: 52px 0; }
  .brand-name{ font-size:1rem; }
  .course-ribbon{ top: 60px; }
}
@media (max-width: 450px){
  .brand-name {
    display: none;
  }
  .brand-mark img {
    border-radius: 10px;
  }
  .header-search input {
    height: 25px;
  }
  .header-search button {
    height: 25;
  }
  .header-row{
    gap: 5px;
    padding: 5px 12px;
  }
  .header-actions{ gap:5px; }
  .icon-btn{
    width:30px; height:30px; border-radius:50%;
  }
  .icon-btn svg{ width:16px; height:16px; }
  .cta-small{
    padding: 5px 12px; font-weight:500; font-size:.77rem;
  }
}