/* Jubal Academy & Acoustics – shared theme. All colours live here. */
:root {
  --bg: #181A1F;
  --bg-2: #1D2026;
  --card: #22252C;
  --card-2: #2A2E36;
  --line: #343843;
  --text: #E8EAEE;
  --muted: #A3A9B5;
  --accent: #447388;        /* Jubal blue, chosen 18 Nov 2026 (was gold #E9A93B) */
  --accent-2: #3A6375;
  --accent-ink: #FFFFFF;    /* text on blue buttons */
  --accent-soft: rgba(var(--accent-rgb),.14);
  --gold: #447388;          /* small headings (eyebrows) */
  --accent-rgb: 68,115,136;
  --bg-rgb: 24,26,31;
  --ok: #3DD68C;
  --wa: #25D366;
  --radius: 16px;
  --max: 1180px;
  --head: 70px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--card-2); border-radius: 8px; border: 2px solid var(--bg); }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 { font-family: Poppins, Inter, sans-serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 80px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { color: var(--gold); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.hl { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(var(--accent-rgb),.25); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-wa svg { color: var(--wa); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.center .btn-row { justify-content: center; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50; background: rgba(var(--bg-rgb),.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--head); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand span { font-family: Poppins, sans-serif; font-weight: 600; font-size: .95rem; line-height: 1.15; }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button {
  color: var(--text); text-decoration: none; padding: 9px 13px; border-radius: 10px; font-weight: 500; font-size: .95rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav > a:hover, .nav .dd > button:hover, .nav .dd.open > button { background: var(--card); }
.nav a.active, .nav .dd.has-active > button { color: var(--accent); }
.nav .dd { position: relative; }
.nav .dd > button::after { content: "▾"; margin-left: 6px; font-size: .75em; color: var(--muted); }
.nav .menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: none; box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.nav .dd.open .menu { display: block; }
.nav .menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.nav .menu a small { display: block; color: var(--muted); font-size: .8rem; }
.nav .menu a:hover { background: var(--card-2); }
.nav .menu a.active { color: var(--accent); }
.head-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* Page banner (inner pages) */
.banner { position: relative; padding: 84px 0 64px; overflow: hidden; border-bottom: 1px solid var(--line); }
.banner .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, rgba(var(--bg-rgb),.55)); }
.banner .wrap { position: relative; z-index: 1; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Home hero */
.hero { position: relative; overflow: hidden; padding: 70px 0 64px; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -160px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(var(--accent-rgb),.18), transparent 65%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; position: relative; }
.hero-photo { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px; box-shadow: 0 14px 34px rgba(0,0,0,.45); font-size: .9rem;
}
.float-card b { display: block; font-family: Poppins, sans-serif; }
.hero-media { position: relative; }
.hero-media .fc-1 { left: -18px; bottom: 26px; }
.hero-media .fc-2 { right: -14px; top: 22px; }
.ticks { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); margin-top: 18px; }
.ticks span::before { content: "✓ "; color: var(--ok); font-weight: 700; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--bg-2); padding: 24px 18px; text-align: center; }
.stats b { display: block; font-family: Poppins, sans-serif; font-size: 1.7rem; color: var(--accent); }
.stats span { color: var(--muted); font-size: .9rem; }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.mt { margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .pad { padding: 22px; }
.card p { color: var(--muted); margin: 0; }
.card.hover { transition: border-color .15s, transform .15s; }
.card.hover:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .img { aspect-ratio: 16/10; overflow: hidden; background: var(--card-2); }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card.hover:hover .img img { transform: scale(1.04); }
.card .img.sq { aspect-ratio: 1/1; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
a.card { color: inherit; text-decoration: none; display: block; }
.card-side { display: grid; grid-template-columns: minmax(0, 320px) 1fr; align-items: center; }
@media (max-width: 600px) { .card-side { grid-template-columns: 1fr; } }

/* Three divisions on Home */
.division { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.division + .division { border-top: 1px solid var(--line); }
.division.flip .division-media { order: 2; }
.division-media { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.division-media img { width: 100%; height: 100%; object-fit: cover; }
.division ul, .list { list-style: none; padding: 0; margin: 14px 0 0; }
.division li, .list li { padding: 5px 0 5px 26px; position: relative; color: var(--muted); }
.division li::before, .list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Feature icon list */
.feature { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature .ic { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: var(--card-2); display: grid; place-items: center; font-size: 1.6rem; }
.feature .ic img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { margin-bottom: .25em; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Course blocks */
.course { display: grid; grid-template-columns: 340px 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.course + .course { margin-top: 22px; }
.course .cimg { min-height: 100%; background: var(--card-2); }
.course .cimg img { width: 100%; height: 100%; object-fit: cover; }
.course .cbody { padding: 26px 28px; }
.course h2 { font-size: 1.6rem; margin-bottom: .3em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.facts div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.facts b { font-weight: 600; font-size: .95rem; }
.plans { display: flex; gap: 10px; flex-wrap: wrap; }
.plan { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: var(--muted); }
.plan b { color: var(--text); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; font-size: .92rem; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Table */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--card-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td { background: var(--card); }
tr:last-child td { border-bottom: 0; }

/* Video cards */
.video { cursor: pointer; position: relative; }
.video .img { aspect-ratio: 16/9; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 68px; height: 68px; border-radius: 50%;
  background: rgba(var(--bg-rgb),.75); border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent); font-size: 1.5rem;
}
.video .img { position: relative; }

/* Gallery */
.masonry { columns: 3 280px; column-gap: 16px; }
.masonry figure { margin: 0 0 16px; break-inside: avoid; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: transform .4s; }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption { padding: 10px 14px; font-size: .88rem; color: var(--muted); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 30px 0; }
.tabs button { background: var(--card); border: 1px solid var(--line); color: var(--text); padding: 9px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 500; }
.tabs button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Lightbox / video modal */
.modal { position: fixed; inset: 0; background: rgba(10,11,14,.92); z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; flex-direction: column; gap: 14px; }
.modal.on { display: flex; }
.modal img { max-width: min(1100px, 100%); max-height: 82vh; border-radius: 12px; }
.modal .frame { width: min(1000px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.modal iframe { width: 100%; height: 100%; border: 0; }
.modal .x { position: absolute; top: 14px; right: 16px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; font: inherit; }
.modal .cap { color: var(--muted); font-size: .92rem; text-align: center; }
.modal .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--card); color: var(--text); border: 1px solid var(--line); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.modal .prev { left: 14px; } .modal .next { right: 14px; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .93rem; }
.form input, .form select, .form textarea {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font: inherit; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.form .err { color: #FF7A7A; font-size: .88rem; display: none; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.16), rgba(var(--accent-rgb),.03)), var(--card);
  border: 1px solid var(--line); border-radius: 24px; padding: 48px 28px; text-align: center;
}

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 54px 0 28px; background: var(--bg-2); color: var(--muted); font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-foot h4 { color: var(--text); font-size: 1rem; margin-bottom: 12px; }
.site-foot a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
.site-foot a:hover { color: var(--accent); }
.foot-base { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; z-index: 60;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}
.mobile-bar { display: none; }

@media (max-width: 1020px) {
  .nav, .head-cta .hide-m { display: none; }
  .burger { display: inline-block; }
  .site-head.menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: var(--head); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; max-height: calc(100vh - var(--head)); overflow-y: auto;
  }
  .site-head.menu-open .nav .menu { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; min-width: 0; }
  .nav .dd > button { width: 100%; text-align: left; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .division { grid-template-columns: 1fr; gap: 30px; }
  .division.flip .division-media { order: 0; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .course { grid-template-columns: 1fr; }
  .course .cimg { aspect-ratio: 16/8; }
  .hero-media .fc-1 { left: 10px; } .hero-media .fc-2 { right: 10px; }
}
@media (max-width: 600px) {
  section { padding: 56px 0; }
  .hero { padding: 36px 0 44px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .brand span { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .wa-float { bottom: 82px; }
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(var(--bg-rgb),.96); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { flex: 1; padding: 12px; }
  .site-foot { padding-bottom: 96px; }
}
