/* =========================================================
   SAFETY BUZZ — design system
   Voice: sturdy · plain-spoken · site-signage
   Palette: committed red on white/black. Signature: the
   logo bracket + hazard-stripe rule.
   ========================================================= */

:root {
  --red: #c1162e;
  --red-deep: #9c0f24;
  --red-soft: #fbe9ec;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --ink-3: #555555;
  --ink-4: #8a8a8a;
  --line: #e4e1dc;
  --paper: #ffffff;
  --paper-2: #f6f4f0;
  --paper-3: #ecebe6;
  --gold: #f4b400;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.35, 0, 0, 1);
  --radius: 6px;
  --radius-lg: 10px;
  --wrap: min(1240px, calc(100% - 2 * clamp(20px, 4vw, 48px)));
  --section: clamp(64px, 9vw, 128px);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px -12px rgba(0,0,0,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: var(--wrap); margin-inline: auto; }
.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; }

/* ---------- type scale ---------- */
.display { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; line-height: .92; }
.h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; line-height: .95; }
.h2 { font-size: clamp(2.1rem, 4vw, 3.25rem); font-weight: 800; text-transform: uppercase; line-height: .95; }
.h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.05; }
.h4 { font-size: 1.2rem; font-weight: 700; line-height: 1.1; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: .92rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .95rem; color: var(--red);
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--red); }
.on-dark .kicker { color: #ff5c73; }
.on-dark .kicker::before { background: #ff5c73; }

/* hazard stripe rule — the house divider */
.stripe {
  height: 8px; width: 100%;
  background: repeating-linear-gradient(135deg, var(--red) 0 14px, var(--ink) 14px 28px);
}
.stripe.thin { height: 5px; }
.stripe.light { background: repeating-linear-gradient(135deg, var(--red) 0 14px, #fff 14px 28px); }

/* the logo bracket motif */
.bracket { position: relative; }
.bracket::before, .bracket::after {
  content: ""; position: absolute; width: 22%; height: 22%; border: 5px solid var(--red); pointer-events: none;
}
.bracket::before { top: -12px; right: -12px; border-left: 0; border-bottom: 0; }
.bracket::after  { bottom: -12px; left: -12px; border-right: 0; border-top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em;
  line-height: 1; white-space: nowrap; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  min-height: 48px;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--paper-2); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 10px 14px; font-size: .95rem; min-height: 40px; }
.btn-lg { padding: 18px 28px; font-size: 1.2rem; min-height: 56px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .9rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar ul { display: flex; gap: 22px; align-items: center; }
.topbar li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar svg { width: 14px; height: 14px; color: #ff5c73; }
.topbar a:hover { color: #ffb3bd; }
.topbar .socials { gap: 12px; }
.topbar .socials svg { width: 15px; height: 15px; color: #fff; }
.topbar .socials a:hover svg { color: #ff5c73; }

.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
.header-phone svg { width: 20px; height: 20px; color: var(--red); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; }
.menu-btn svg { width: 28px; height: 28px; }

/* mobile nav */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 60; background: var(--ink); color: #fff; padding: 24px;
  flex-direction: column; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .close { align-self: flex-end; background: none; border: 0; color: #fff; padding: 8px; }
.mobile-nav .close svg { width: 30px; height: 30px; }
.mobile-nav a.item { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-nav a.item[aria-current="page"] { color: #ff5c73; }
.mobile-nav .mobile-cta { margin-top: auto; display: grid; gap: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: clip; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.72) 45%, rgba(10,10,10,.25) 100%),
              linear-gradient(0deg, rgba(10,10,10,.75) 0%, rgba(10,10,10,0) 40%);
}
.hero .wrap { position: relative; padding: clamp(80px, 12vw, 160px) 0 clamp(120px, 14vw, 190px); }
.hero-inner { max-width: 760px; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 .accent { color: #ff5c73; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.hero-cta .call { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.hero-cta .call svg { width: 20px; height: 20px; color: #ff5c73; }
.hero-tag { position: absolute; right: clamp(20px, 4vw, 48px); bottom: 110px; text-align: right; opacity: .8; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; display: none; }
@media (min-width: 900px) { .hero-tag { display: block; } }

/* trust bar overlapping hero */
.trustbar { position: relative; z-index: 2; margin-top: -72px; }
.trustbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: var(--shadow); border-radius: var(--radius-lg); overflow: hidden; }
.trust { padding: 22px 26px; display: flex; gap: 16px; align-items: center; border-right: 1px solid var(--line); }
.trust:last-child { border-right: 0; }
.trust .num { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--red); letter-spacing: -.01em; }
.trust .num small { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-left: 3px; }
.trust .lbl { font-size: .95rem; color: var(--ink-3); line-height: 1.3; }
.trust .stars { color: var(--gold); letter-spacing: 1px; font-size: 1rem; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .h2 { margin-top: 12px; }
.section-head p { margin-top: 12px; }
.bg-paper { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: #fff; }
.on-dark .muted { color: rgba(255,255,255,.7); }
.on-dark .lead { color: rgba(255,255,255,.85); }

/* course category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px 22px;
  display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  overflow: hidden;
}
.cat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); transition: width .25s var(--ease); }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cat:hover::before { width: 6px; }
.cat .badge { align-self: flex-start; }
.cat h3 { font-size: 1.55rem; font-weight: 700; }
.cat ul { display: flex; flex-wrap: wrap; gap: 6px; }
.cat li { font-size: .88rem; padding: 4px 9px; background: var(--paper-2); border-radius: 4px; color: var(--ink-2); }
.cat .count { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: .95rem; }
.badge {
  display: inline-block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  font-size: .8rem; padding: 4px 8px; border-radius: 4px; background: var(--ink); color: #fff; line-height: 1.2;
}
.badge.red { background: var(--red); }
.badge.esc { background: #0b4f8f; color: #ffe94d; }
.badge.rc { background: #d7191c; }
.badge.cict { background: #2f8f3a; }
.badge.global { background: #a3161d; }
.badge.sb { background: var(--ink); }
.badge.online { background: #5b5b5b; }
.badge.light { background: var(--paper-3); color: var(--ink-2); }

/* upcoming (dark band) */
.upcoming { display: grid; grid-template-columns: 1.1fr 1.6fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.upcoming-list { display: grid; gap: 10px; }
.day-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 14px 18px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.day-row:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.day-row .date { text-align: center; font-family: var(--font-display); line-height: 1; }
.day-row .date b { display: block; font-size: 2rem; font-weight: 800; }
.day-row .date span { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-top: 2px; }
.day-row .courses { display: flex; flex-wrap: wrap; gap: 6px; }
.day-row .courses span { font-size: .9rem; padding: 4px 9px; border-radius: 4px; background: rgba(255,255,255,.1); }
.day-row .courses span.hl { background: var(--red); }
.day-row .btn { padding: 8px 12px; min-height: 36px; font-size: .9rem; }
.upcoming-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; color: rgba(255,255,255,.75); font-size: .95rem; }
.upcoming-note svg { width: 18px; height: 18px; flex: none; color: #ff5c73; margin-top: 3px; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.svc { background: #fff; border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.svc .ico { width: 46px; height: 46px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.svc .ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.35rem; font-weight: 700; margin-top: 4px; }
.svc .price { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.svc .price > span { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.svc .price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .82rem; color: var(--ink-3); }

/* why / split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .media img { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.points { display: grid; gap: 22px; margin-top: 30px; }
.point { border-left: 4px solid var(--red); padding-left: 18px; }
.point h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.point p { color: var(--ink-3); }

/* testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.quote { background: #fff; border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; position: relative; }
.quote .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); }
.quote cite { font-style: normal; font-weight: 600; margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 10px; }
.quote cite .av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.quote cite small { color: var(--ink-4); font-weight: 400; display: block; font-size: .8rem; }
.google-pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 10px; font-weight: 600; }
.google-pill .g { width: 22px; height: 22px; }
.google-pill .stars { color: var(--gold); letter-spacing: 1px; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; padding-top: 22px; }
.person .photo { width: 112px; height: 112px; border-radius: 50%; margin: 0 20px; background: var(--paper-3); overflow: hidden; position: relative; border: 4px solid var(--red-soft); box-shadow: 0 0 0 2px var(--red); }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person .photo .initials { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--ink-4); }
.person .body { padding: 14px 20px 20px; }
.person h3 { font-size: 1.35rem; font-weight: 700; }
.person .role { color: var(--red); font-weight: 600; font-size: .92rem; margin-top: 2px; }
.person p.bio { margin-top: 10px; color: var(--ink-3); font-size: .95rem; }
.person .teaches { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 5px; }
.person .teaches span { font-size: .78rem; padding: 3px 7px; background: var(--paper-2); border-radius: 4px; }

/* partners */
.partners { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners .wrap { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; justify-content: space-between; }
.partners .label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-size: .95rem; max-width: 160px; line-height: 1.2; }
.partners ul { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; flex: 1; justify-content: space-around; }
.partners img { height: 48px; width: auto; transition: transform .3s var(--ease); }
.partners li:hover img { transform: translateY(-2px); }
.partners img.tall { height: 60px; }
.partners img.wide { height: 40px; }

/* location / CTA band */
.cta-band { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; border: 28px solid rgba(255,255,255,.08); border-left: 0; border-bottom: 0; }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-block: clamp(56px, 7vw, 96px); position: relative; }
.cta-band .h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.9); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.addr-card { background: rgba(0,0,0,.22); border-radius: var(--radius-lg); padding: 26px; display: grid; gap: 14px; }
.addr-card .row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.addr-card svg { width: 20px; height: 20px; margin-top: 3px; }
.addr-card b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; opacity: .8; }
.addr-card a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.8); padding: clamp(48px, 6vw, 80px) 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer img.flogo { height: 54px; width: auto; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: rgba(255,255,255,.55); }
.footer .socials { display: flex; gap: 14px; margin-top: 12px; }
.footer .socials svg { width: 20px; height: 20px; }
.footer .partner-strip { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.footer .partner-strip img { height: 30px; width: auto; background: #fff; padding: 4px 6px; border-radius: 4px; }

/* ---------- page hero (interior) ---------- */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.page-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .6; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.82) 30%, rgba(10,10,10,.35)); }
.page-hero h1 { margin-top: 14px; }
.page-hero .lead { margin-top: 18px; color: rgba(255,255,255,.85); }
.crumbs { display: flex; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.65); }
.crumbs a:hover { color: #fff; }
.page-hero .side { justify-self: end; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- courses page ---------- */
.filterbar { position: sticky; top: 84px; z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.filterbar .wrap { display: flex; gap: 12px; align-items: center; padding: 12px 0; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .92rem; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { margin-left: auto; position: relative; }
.search input { width: min(320px, 70vw); padding: 10px 14px 10px 38px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .95rem; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-4); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.course {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.course:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.course .top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.course h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.05; }
.course p { color: var(--ink-3); font-size: .95rem; }
.course .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.course .meta span { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; padding: 4px 8px; background: var(--paper-2); border-radius: 4px; color: var(--ink-2); }
.course .meta svg { width: 13px; height: 13px; color: var(--ink-4); }
.course .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.course .price { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; }
.course .price small { font-family: var(--font-body); font-weight: 400; font-size: .78rem; color: var(--ink-4); display: block; line-height: 1; }
.course .foot .btns { display: flex; gap: 6px; }
.course.hidden { display: none; }
.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); display: none; }
.empty.show { display: block; }
.group-callout { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); margin-top: 40px; }
.group-callout .h3 { color: #fff; font-size: 1.7rem; }
.group-callout p { color: rgba(255,255,255,.75); margin-top: 6px; max-width: 60ch; }

/* ---------- schedule page ---------- */
.sched-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.month-switch { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.month-switch button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1rem; }
.month-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.view-switch { display: inline-flex; gap: 4px; }
.view-switch .chip { padding: 8px 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .88rem; color: var(--ink-3); margin: 14px 0 22px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cal { display: grid; grid-template-columns: .55fr repeat(5, 1fr) .55fr; gap: 6px; }
.cal .dow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: .85rem; color: var(--ink-3); padding: 6px 8px; }
.cal .cell { min-height: 128px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.cal .cell.pad { background: transparent; border-color: transparent; }
.cal .cell.wknd { background: var(--paper-2); }
.cal .cell.closed { background: repeating-linear-gradient(135deg, #f3f1ec 0 8px, #ebe9e3 8px 16px); }
.cal .d { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink-3); }
.cal .cell.today .d { color: #fff; background: var(--red); border-radius: 4px; padding: 0 6px; align-self: flex-start; }
.cal .ev { font-size: .8rem; line-height: 1.2; padding: 4px 6px; border-radius: 4px; background: var(--paper-2); border-left: 3px solid var(--ink); }
.cal .ev.hl { background: var(--red-soft); border-left-color: var(--red); }
.cal .ev.dim { opacity: .35; }
.cal .closed-lbl { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--ink-4); }
.sched-list { display: grid; gap: 10px; }
.sched-list .row { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; }
.sched-list .row .date { font-family: var(--font-display); line-height: 1; text-align: center; }
.sched-list .row .date b { display: block; font-size: 1.9rem; font-weight: 800; }
.sched-list .row .date span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.sched-list .row .evs { display: flex; flex-wrap: wrap; gap: 6px; }
.sched-list .row .evs span { font-size: .9rem; padding: 4px 9px; border-radius: 4px; background: var(--paper-2); }
.sched-list .row .evs span.hl { background: var(--red-soft); color: var(--red-deep); font-weight: 600; }
.sched-side { display: grid; gap: 18px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.panel h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.panel.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel.dark p { color: rgba(255,255,255,.75); }
.panel .live { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-display); font-weight: 700; color: #ff5c73; margin-bottom: 8px; }
.panel .live i { width: 8px; height: 8px; border-radius: 50%; background: #ff5c73; box-shadow: 0 0 0 4px rgba(255,92,115,.25); }
.sched-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.mobile-only { display: none; }

/* ---------- rates table ---------- */
.rates { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.rates th, .rates td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.rates th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; background: var(--paper-2); color: var(--ink-3); }
.rates td.num, .rates th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rates td.total { font-weight: 700; }
.rates tr:last-child td { border-bottom: 0; }
.rates tbody tr:hover { background: var(--paper-2); }
.rates .grp td { background: var(--ink); color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: .9rem; }
.table-wrap { overflow-x: auto; }
.rate-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.subnav { position: sticky; top: 104px; display: grid; gap: 4px; }
.subnav a { padding: 8px 12px; border-radius: var(--radius); font-weight: 600; color: var(--ink-3); border-left: 3px solid transparent; }
.subnav a:hover { color: var(--ink); background: var(--paper-2); }
.subnav a.active { color: var(--red); border-left-color: var(--red); }

/* service detail blocks */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail.flip .media { order: 2; }
.svc-detail .media img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.svc-detail h3 { font-size: 1.9rem; font-weight: 800; text-transform: uppercase; }
.svc-detail p { color: var(--ink-3); margin-top: 12px; }
.svc-detail .prices { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-detail .prices div { background: var(--paper-2); border-radius: var(--radius); padding: 10px 14px; }
.svc-detail .prices b { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.svc-detail .prices small { color: var(--ink-3); font-size: .85rem; }

/* ---------- about ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story .media { position: relative; }
.story .media img { border-radius: var(--radius-lg); }
.story .since { position: absolute; left: -18px; bottom: -18px; background: var(--red); color: #fff; padding: 16px 20px; border-radius: var(--radius); font-family: var(--font-display); line-height: 1; box-shadow: var(--shadow); }
.story .since b { display: block; font-size: 2.6rem; font-weight: 800; }
.story .since span { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.value { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.value h3 { font-size: 1.3rem; font-weight: 700; margin: 10px 0 6px; }
.value p { color: var(--ink-3); font-size: .95rem; }
.value .ico { width: 42px; height: 42px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.value .ico svg { width: 22px; height: 22px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.gallery .big { grid-column: span 2; grid-row: span 2; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field label small { color: var(--ink-4); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfcbc4; border-radius: var(--radius); background: #fff; width: 100%; min-height: 48px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(193,22,46,.15); }
.field .err { color: var(--red); font-size: .85rem; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); }
.field.invalid .err { display: block; }
.form .actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form .fine { font-size: .85rem; color: var(--ink-4); max-width: 46ch; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success .check svg { width: 30px; height: 30px; }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.ccard .ico { width: 48px; height: 48px; border-radius: 10px; background: var(--red); color: #fff; display: grid; place-items: center; }
.ccard .ico svg { width: 22px; height: 22px; }
.ccard b { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--ink-3); margin-bottom: 4px; }
.ccard .big { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.ccard p { color: var(--ink-3); font-size: .95rem; margin-top: 4px; }
.ccard a:hover { color: var(--red); }
.hours { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; font-size: .95rem; margin-top: 6px; }
.hours span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background: var(--paper-3); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-wrap { margin-top: 40px; display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: stretch; }
.direction-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.direction-card h3 { font-size: 1.5rem; font-weight: 700; }
.direction-card p { color: rgba(255,255,255,.75); }
.direction-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; color: var(--red); line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: var(--ink-3); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* sticky mobile call bar */
.callbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--ink); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
.callbar .btn { flex: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-phone { display: none; }
  .filterbar { top: 76px; }
}
@media (max-width: 960px) {
  .trustbar .wrap { grid-template-columns: repeat(2, 1fr); }
  .trust:nth-child(2) { border-right: 0; }
  .trust:nth-child(1), .trust:nth-child(2) { border-bottom: 1px solid var(--line); }
  .upcoming, .split, .cta-band .wrap, .page-hero .wrap, .story, .contact-layout, .svc-detail, .rate-layout, .sched-layout, .map-wrap { grid-template-columns: 1fr; }
  .page-hero .side { justify-self: start; }
  .svc-detail.flip .media { order: 0; }
  .subnav { position: static; display: flex; flex-wrap: wrap; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .section-head { flex-direction: column; align-items: start; }
  .group-callout { grid-template-columns: 1fr; }
  .cal { display: none; }
  .mobile-only { display: block; }
  .view-switch { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar ul li:not(.keep) { display: none; }
  .header .wrap { min-height: 68px; }
  .logo img { height: 38px; }
  .trustbar { margin-top: -40px; }
  .trustbar .wrap { grid-template-columns: 1fr 1fr; }
  .trust { padding: 16px; }
  .trust .num { font-size: 1.7rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .day-row { grid-template-columns: 64px 1fr; }
  .day-row .btn { display: none; }
  .sched-list .row { grid-template-columns: 70px 1fr; }
  .sched-list .row .btn { display: none; }
  .callbar { display: flex; }
  body { padding-bottom: 68px; }
  .hero .wrap { padding-bottom: 96px; }
  .header-actions .btn { display: none; }
  .story .since { left: 12px; bottom: 12px; }
}

@media print {
  .topbar, .header, .footer, .callbar, .filterbar, .sched-tools, .cta-band, .partners { display: none !important; }
  .cal { display: grid !important; }
  .mobile-only { display: none !important; }
  .sched-layout { grid-template-columns: 1fr; }
  body { font-size: 12px; }
}
