@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

/* Silverback Training Facility — design system (combat-sports palette).
   Component mechanics adapted from the proven Tavico build; tokens + gradients reskinned. */
:root {
  --font-sans: "Manrope", "Helvetica Neue", sans-serif;
  /* Dark black + red theme (matches the Silverback logo) */
  --bg: #0a0b0e;             /* near-black base */
  --bg-alt: #101216;
  --surface: #16181e;        /* elevated card panels */
  --surface-strong: #1c1f26;
  --surface-muted: #121419;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #e8eaed;           /* white-ish body text */
  --text-muted: #a3abb4;
  --heading: #ffffff;
  --brand: #e01e2b;          /* logo red — primary / CTA */
  --brand-strong: #b3141f;
  --earth: #e01e2b;
  --earth-strong: #b3141f;
  --accent: #e01e2b;         /* red accent (replaces amber) */
  --ink: #000000;            /* pure black for deepest sections */
  --button-text: #fff;
  --max-width: 1240px;
  --radius: 14px;
  --radius-small: 10px;
  --shadow-soft: 0 14px 32px rgba(0, 0, 0, 0.45);
  --shadow-panel: 0 22px 56px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(224, 30, 43, 0.16), transparent 30%),
    radial-gradient(circle at right 18%, rgba(224, 30, 43, 0.08), transparent 26%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  line-height: 1.58;
}

body.index-site { --bg: #0a0b0e; --bg-alt: #101216; }

::placeholder { color: rgba(232, 234, 237, 0.45); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.container { width: min(calc(100% - 32px), var(--max-width)); margin: 0 auto; }

/* ── Announcement bar ── */
.announcement {
  background: linear-gradient(90deg, var(--ink), #2a2d34 55%, var(--brand));
  color: rgba(255, 251, 246, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.announcement .container {
  min-height: 42px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-size: 0.94rem;
}
.announcement strong { color: #fff; }
.announcement a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.45); }

/* ── Sticky top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 800; color: var(--heading); letter-spacing: -0.03em; font-size: 1.05rem;
}
.brand-logo { height: 52px; width: auto; display: block; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--ink), #2c2f37);
  color: var(--accent); font-weight: 800; font-size: 1.25rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.nav { display: flex; flex-wrap: wrap; gap: 20px; }
.nav a {
  color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--heading); border-color: var(--brand); outline: none; }

/* ── "More" dropdown (pure CSS; hover + focus-within) ── */
.nav-more { position: relative; display: inline-flex; align-items: center; }
/* override the global button{} red-CTA styling so "More" looks like a nav link */
.nav-more-toggle {
  appearance: none; background: none; border: none; border-bottom: 1px solid transparent;
  border-radius: 0; box-shadow: none; min-height: auto; padding: 8px 0;
  font: inherit; color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav-more-toggle:hover, .nav-more-toggle:focus-visible,
.nav-more:hover .nav-more-toggle, .nav-more:focus-within .nav-more-toggle {
  color: var(--heading); border-color: var(--brand); background: none; box-shadow: none; outline: none;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 190px;
  display: none; flex-direction: column;
  background: var(--surface-strong); border: 1px solid var(--line);
  border-radius: var(--radius-small); box-shadow: var(--shadow-panel);
  padding: 8px; z-index: 30;
}
.nav-more:hover .nav-dropdown, .nav-more:focus-within .nav-dropdown { display: flex; }
.nav-dropdown a {
  color: var(--text); padding: 10px 12px; border: none; border-radius: 8px; white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: rgba(224, 30, 43, 0.16); color: #fff; border: none; outline: none; }

/* ── Hamburger toggle (mobile only; hidden on desktop) ── */
.nav-toggle {
  display: none; width: 44px; height: 44px; min-height: 0; padding: 0;
  background: none; border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: none; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle:hover, .nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); box-shadow: none; outline: none;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 200ms ease, opacity 160ms ease, background-color 160ms ease;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.topbar-inner.is-open .nav-toggle-bar { background: transparent; }
.topbar-inner.is-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.topbar-inner.is-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Service cards (photo on top) ── */
.service-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-photo { position: relative; width: 100%; aspect-ratio: 4 / 5; background: #16181e; overflow: hidden; }
.service-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.service-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-body h3 { margin: 0; }
.service-line { color: var(--text-muted); margin: 0; flex: 1; }
.service-body .actions { margin-top: 14px; }

/* ── Sections ── */
.section { padding: 64px 0; }
.section-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--surface-muted);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-dark {
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at top left, rgba(224, 30, 43, 0.18), transparent 32%),
    linear-gradient(140deg, #08090c, #16060a 55%, #2c0a10 100%);
}
.section-dark h2, .section-dark h3, .section-dark p, .section-dark li, .section-dark dt, .section-dark dd { color: inherit; }

/* ── Hero ── */
.hero { padding: 32px 0 72px; }
.hero-shell {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 28px; align-items: stretch;
}
.hero-main, .hero-side { position: relative; overflow: hidden; border-radius: 20px; box-shadow: var(--shadow-panel); }
.hero-main {
  padding: 44px; color: rgba(255, 248, 244, 0.96);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), transparent 38%),
    radial-gradient(circle at right top, rgba(224, 30, 43, 0.28), transparent 30%),
    linear-gradient(135deg, #08090c 0%, #1a0c10 46%, #c01f29 100%);
}
.hero-main::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 280px; height: 280px;
  border-radius: 50%; border: 1px solid rgba(255, 245, 237, 0.12);
  background: radial-gradient(circle, rgba(255, 245, 237, 0.06), transparent 62%);
}
.hero-side { display: grid; gap: 0; background: var(--surface-strong); border: 1px solid var(--line); color: var(--text); }
.hero-side .side-card { padding: 26px 24px; border-bottom: 1px solid var(--line); }
.hero-side .side-card:last-child { border-bottom: 0; }
.hero-side h2, .hero-side h3 { color: var(--heading); }
.hero-side .side-card p, .hero-side .side-card li { color: var(--text-muted); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px;
  margin-bottom: 18px; border-radius: 999px;
  background: rgba(255, 250, 244, 0.12); border: 1px solid rgba(255, 250, 244, 0.2);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; color: rgba(255, 248, 239, 0.92);
}
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero h1, .page-intro h1 { margin: 0 0 18px; line-height: 1.02; letter-spacing: -0.05em; color: var(--heading); }
.hero h1 { max-width: 16ch; font-size: clamp(2.6rem, 5vw, 4.6rem); color: #fff8ef; }
.page-intro h1 { max-width: 16ch; font-size: clamp(2.3rem, 4.2vw, 4.2rem); }

h2, h3 { margin: 0 0 14px; line-height: 1.08; letter-spacing: -0.04em; color: var(--heading); }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.45rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 14px; }
.lede { max-width: 62ch; font-size: 1.08rem; color: var(--text-muted); }
.hero .lede { color: rgba(255, 247, 239, 0.82); max-width: 56ch; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── Buttons ── */
.button, button {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 10px;
  border: 1px solid var(--brand-strong); background: var(--brand); color: var(--button-text);
  font-weight: 700; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  box-shadow: 0 8px 18px rgba(159, 20, 30, 0.22);
}
.button:hover, .button:focus-visible, button:hover, button:focus-visible {
  background: var(--brand-strong); border-color: var(--brand-strong); outline: none;
  box-shadow: 0 12px 22px rgba(159, 20, 30, 0.28);
}
.button:active, button:active { opacity: 0.94; }
.button { text-transform: uppercase; letter-spacing: 0.03em; }
.button-secondary {
  background: rgba(255, 251, 245, 0.1); color: #fff8ef; border-color: rgba(255, 248, 239, 0.36); box-shadow: none;
}
.button-secondary:hover, .button-secondary:focus-visible {
  background: rgba(255, 251, 245, 0.2); border-color: rgba(255, 248, 239, 0.55);
}

/* ── Gallery slideshow (manual) ── */
.slideshow { max-width: 860px; margin: 0 auto; }
.slide-stage {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-panel); background: #000;
}
.slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(28px) brightness(0.4); transform: scale(1.18);
}
.slide-track { position: absolute; inset: 0; }
.slide-track img {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  opacity: 0; transition: opacity 300ms ease; pointer-events: none;
}
.slide-track img.is-active { opacity: 1; }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%;
  background: rgba(10, 11, 14, 0.55); border: 1px solid var(--line-strong); color: #fff;
  box-shadow: none; font-size: 24px; line-height: 1;
}
.slide-nav:hover, .slide-nav:focus-visible {
  background: var(--brand); border-color: var(--brand-strong); box-shadow: none; outline: none;
}
.slide-prev { left: 12px; }
.slide-next { right: 12px; }
.slide-counter {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  background: rgba(10, 11, 14, 0.6); border: 1px solid var(--line); color: var(--text);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; padding: 4px 11px; border-radius: 999px;
}
.slide-thumbs {
  display: flex; gap: 8px; margin-top: 14px; padding-bottom: 6px;
  overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin;
}
.slide-thumbs button {
  flex: 0 0 auto; width: 76px; height: 76px; min-height: 0; padding: 0;
  border-radius: var(--radius-small); border: 2px solid transparent; background: #000;
  overflow: hidden; box-shadow: none; opacity: 0.5; transition: opacity 140ms ease, border-color 140ms ease;
}
.slide-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.slide-thumbs button:hover, .slide-thumbs button:focus-visible { opacity: 0.85; outline: none; box-shadow: none; }
.slide-thumbs button.is-active { opacity: 1; border-color: var(--brand); }
@media (max-width: 620px) {
  .slide-nav { width: 40px; height: 40px; font-size: 20px; }
  .slide-thumbs button { width: 60px; height: 60px; }
}

.hero-note { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-note div { padding: 14px 16px; border-radius: 12px; background: rgba(255, 251, 245, 0.1); border: 1px solid rgba(255, 251, 245, 0.16); }
.hero-note strong { display: block; margin-bottom: 4px; color: #fffaf4; }
.hero-note span { color: rgba(255, 247, 239, 0.76); font-size: 0.95rem; }

.section-heading, .page-intro { max-width: 860px; margin-bottom: 28px; }
.section-heading p { color: var(--text-muted); max-width: 70ch; }

/* ── Grids & cards ── */
.grid { display: grid; gap: 20px; }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft);
}
.card strong { color: var(--heading); }
.card-tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #ff5a64; background: rgba(224, 30, 43, 0.16); border: 1px solid rgba(224, 30, 43, 0.36);
}

.split-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: 22px; align-items: stretch; }

/* ── About feature (real copy + photo) ── */
.about-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 40px; align-items: stretch; }
.about-copy { align-self: center; }
.about-copy h1 { margin: 10px 0 20px; font-size: clamp(2.1rem, 3.8vw, 3.4rem); line-height: 1.04; letter-spacing: -0.04em; color: var(--heading); }
.about-copy p { color: var(--text-muted); max-width: 58ch; }
.about-photo { min-height: 440px; }
@media (max-width: 980px) {
  .about-feature { grid-template-columns: 1fr; gap: 26px; }
  .about-copy { align-self: start; }
  .about-photo { min-height: 320px; }
}

/* ── Class Schedule rows (photo + schedule, alternating) ── */
.sched-row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: stretch; }
.sched-row .image-frame { min-height: 380px; }
.sched-card { align-self: center; }
.sched-card h2 { margin: 8px 0 6px; }
.sched-blurb { color: var(--text-muted); margin-bottom: 4px; }
.sched { list-style: none; margin: 14px 0 0; padding: 0; }
.sched li { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.sched li:first-child { border-top: 0; }
.sched .day { font-weight: 800; color: var(--heading); white-space: nowrap; }
.sched .time { color: var(--text-muted); text-align: left; line-height: 1.75; }
.sched em { font-style: normal; color: var(--brand); font-size: 0.85em; font-weight: 700; }
.sched-sub { margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
@media (min-width: 981px) { .sched-row.flip .image-frame { order: 2; } }
@media (max-width: 980px) { .sched-row { grid-template-columns: 1fr; gap: 22px; } .sched-row .image-frame { min-height: 300px; } }

/* ── Hero: centered logo welcome ── */
.hero-welcome { position: relative; overflow: hidden; text-align: center; padding: 60px 0 76px; }
.hero-welcome::before { content: ""; position: absolute; left: 50%; top: 80px; transform: translateX(-50%); width: 720px; height: 720px; max-width: 130vw; background: radial-gradient(circle, rgba(224, 30, 43, 0.22), transparent 60%); pointer-events: none; z-index: 1; }
.hero-welcome .container { position: relative; z-index: 2; }
/* B&W fight-shot backdrop (crossfades behind the logo) */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero-bg img.is-active { opacity: 1; }
/* scrim keeps the logo + text readable over the photos */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.78), rgba(10, 11, 14, 0.66) 42%, rgba(10, 11, 14, 0.92));
}
.welcome-logo { width: clamp(180px, 25vw, 290px); height: auto; margin: 0 auto 26px; display: block; filter: drop-shadow(0 16px 46px rgba(0, 0, 0, 0.55)); }
.hero-welcome h1 { font-size: clamp(1.8rem, 3.3vw, 2.9rem); letter-spacing: -0.03em; color: var(--heading); margin: 0 auto 16px; max-width: 20ch; }
.hero-welcome .lede { margin: 0 auto 26px; max-width: 58ch; color: var(--text-muted); }
.actions-center { justify-content: center; }
.hero-meta { margin: 24px 0 0; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }

/* ── Step / process cards ── */
.step-card { position: relative; overflow: hidden; }
.step-card::after { content: ""; position: absolute; inset: auto auto 0 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--ink), var(--brand)); }
.step-number {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  margin-bottom: 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 23, 28, 0.12), rgba(207, 34, 48, 0.16));
  color: var(--brand-strong); font-weight: 800;
}

/* ── Definition / plain lists, metrics ── */
.definition-list, .plain-list { list-style: none; margin: 0; padding: 0; }
.definition-list { display: grid; gap: 16px; }
.definition-list dt { margin-bottom: 4px; font-weight: 800; color: var(--heading); }
.definition-list dd { margin: 0; color: var(--text-muted); }
.plain-list li { padding: 11px 0; border-top: 1px solid var(--line); }
.plain-list li:first-child { padding-top: 0; border-top: 0; }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric-box { padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.metric-box strong { display: block; font-size: 1.5rem; margin-bottom: 6px; color: var(--heading); }

/* ── Schedule / pricing table ── */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: var(--shadow-soft); background: var(--surface-strong); }
.table { width: 100%; min-width: 720px; border-collapse: collapse; }
.table th, .table td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { background: linear-gradient(180deg, rgba(224, 30, 43, 0.16), rgba(224, 30, 43, 0.06)); color: var(--heading); font-size: 0.95rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.placeholder-note {
  margin-top: 10px; font-size: 0.86rem; color: #ff6670; font-weight: 600;
}
.member-note { margin-top: 22px; font-size: 0.92rem; font-style: italic; color: var(--text-muted); }

/* ── Instructors (photo + bio, alternating) ── */
.instructor { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 36px; align-items: center; }
/* show the full headshot (no cover-crop / zoom), capped to a uniform height & centered */
.instructor .image-frame { min-height: 0; align-self: center; border: none; box-shadow: none; background: none; overflow: visible; display: flex; justify-content: center; }
.instructor .image-frame img { position: static; width: auto; max-width: 100%; height: auto; max-height: 460px; border-radius: 18px; box-shadow: var(--shadow-panel); display: block; }
.instructor h2 { margin: 10px 0 12px; }
.instructor p { color: var(--text-muted); }
.instructor p + p { margin-top: 12px; }
@media (min-width: 981px) { .instructor.flip .image-frame { order: 2; } }
@media (max-width: 980px) { .instructor { grid-template-columns: 1fr; gap: 22px; } }

/* ── Pricing tiers ── */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-size: 2rem; font-weight: 800; color: var(--heading); margin: 6px 0 2px; }
.price-card .price span { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.price-card ul { list-style: none; margin: 14px 0 20px; padding: 0; display: grid; gap: 8px; }
.price-card ul li { padding-left: 22px; position: relative; color: var(--text-muted); }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 18px 40px rgba(159, 20, 30, 0.18); }

/* ── Instructor / photo cards ── */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.photo-card { overflow: hidden; position: relative; min-height: 320px; border-radius: 18px; background: #16181e; border: 1px solid var(--line); box-shadow: var(--shadow-panel); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ink), #2c2f37); color: var(--accent); font-weight: 800; font-size: 2.6rem;
}
.photo-overlay { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(180deg, transparent, rgba(12, 14, 18, 0.88)); color: rgba(255, 249, 242, 0.96); }
.photo-overlay strong { display: block; margin-bottom: 4px; color: #fffdf8; font-size: 1.05rem; }
.photo-overlay span { color: rgba(255, 248, 239, 0.82); font-size: 0.95rem; }

/* ── Image frame (cover-fill, works with min-height) ── */
.image-frame { overflow: hidden; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: var(--shadow-panel); background: var(--surface-strong); position: relative; min-height: 280px; }
.image-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── FAQ accordion ── */
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--surface); box-shadow: var(--shadow-soft); }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--heading); }
.faq-item p { margin-top: 12px; color: var(--text-muted); margin-bottom: 0; }

/* ── Quote / testimonial ── */
.quote-card { display: flex; flex-direction: column; justify-content: space-between; }
.quote-card blockquote { margin: 0 0 18px; font-size: 1.2rem; line-height: 1.35; letter-spacing: -0.03em; color: var(--heading); }
.quote-card p:last-child { margin-bottom: 0; color: var(--text-muted); }

/* ── Contact ── */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr); gap: 24px; align-items: start; }
.contact-panel {
  padding: 32px; border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), linear-gradient(135deg, var(--ink), #7c1820);
  border: 1px solid rgba(255, 248, 239, 0.18); color: rgba(255, 248, 239, 0.92);
}
.contact-panel h2 { color: #fff8ef; }
.contact-panel p, .contact-panel li, .contact-panel a { color: rgba(255, 248, 239, 0.86); }
.contact-panel a { border-bottom: 1px solid rgba(255, 248, 239, 0.4); }
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list strong { display: block; color: #fff8ef; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.form-card { display: grid; gap: 14px; padding: 26px; border-radius: 18px; background: var(--surface-strong); box-shadow: var(--shadow-soft); }
.form-card label { display: grid; gap: 8px; font-weight: 700; color: var(--heading); }
input, textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); color: var(--text); }
input:focus, textarea:focus { outline: 2px solid rgba(224, 30, 43, 0.35); border-color: var(--brand); }
textarea { min-height: 124px; resize: vertical; }

/* ── Dark-section overrides (cards keep readable text) ── */
.section-dark .section-heading p { color: rgba(255, 249, 242, 0.78); }
.section-dark .card { color: var(--text); }
.section-dark .card h2, .section-dark .card h3 { color: var(--heading); }
.section-dark .card p, .section-dark .card li { color: var(--text-muted); }

/* ── Topbar CTA + lang toggle ── */
.topbar-ctas { display: flex; align-items: center; gap: 8px; }
.topbar-btn { min-height: 38px; padding: 0 14px; font-size: 0.85rem; }
.lang-toggle {
  min-height: 36px; padding: 0 12px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  background: transparent; color: var(--text-muted); border: 1px solid var(--line-strong);
  box-shadow: none; border-radius: 8px; cursor: pointer;
}
.lang-toggle:hover, .lang-toggle:focus-visible { background: rgba(207, 34, 48, 0.06); color: var(--heading); border-color: var(--brand); box-shadow: none; }

/* ── Logo text fallback ── */
.logo-text-fallback { display: none; font-size: 1.4rem; font-weight: 800; color: var(--heading); }

/* ── Footer ── */
.site-footer { background: #0c0e12; color: rgba(255, 248, 238, 0.72); padding: 56px 0 0; font-size: 0.88rem; line-height: 1.65; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 248, 238, 0.1); }
.footer-brand p { color: rgba(255, 248, 238, 0.55); margin: 10px 0 0; max-width: 260px; }
.footer-wordmark { font-size: 1.2rem; font-weight: 800; color: #fff8ee; letter-spacing: -0.02em; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 248, 238, 0.45); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255, 248, 238, 0.72); transition: color 140ms ease; }
.footer-col ul li a:hover { color: #fff8ee; }
/* New 3-column footer: Follow / Contact / Address */
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 22px 0 44px; text-align: center; }
.footer-block h4 { font-size: 1rem; font-weight: 800; color: #fff8ee; margin: 0 0 18px; letter-spacing: 0; text-transform: none; }
.footer-block p { margin: 0 0 8px; color: rgba(255, 248, 238, 0.72); }
.footer-block a { color: rgba(255, 248, 238, 0.72); transition: color 140ms ease; }
.footer-block a:hover { color: #fff8ee; }
.footer-socials { display: flex; justify-content: center; gap: 20px; }
.footer-socials a { color: #fff8ee; display: inline-flex; transition: color 140ms ease, transform 140ms ease; }
.footer-socials a:hover { color: var(--brand); transform: translateY(-2px); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; gap: 28px; } }

.footer-bottom { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 20px 0; font-size: 0.8rem; color: rgba(255, 248, 238, 0.4); text-align: center; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-shell, .split-feature, .contact-layout, .two-up, .three-up, .four-up, .metric-row, .media-grid { grid-template-columns: 1fr; }
  .hero-note { grid-template-columns: 1fr; }
  .topbar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 46px 0; }
  .announcement .container, .topbar-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .brand { align-items: center; flex: 1 1 auto; min-width: 0; }
  .hero-main, .hero-side .side-card, .contact-panel, .form-card, .card { padding: 22px; }
  /* Topbar collapses to logo + hamburger; nav opens as a vertical menu. */
  .topbar-inner { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }
  .nav, .topbar-ctas { flex-basis: 100%; display: none; }
  .topbar-inner.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-top: 12px;
  }
  .topbar-inner.is-open .topbar-ctas { display: flex; margin-top: 12px; }
  .topbar-inner.is-open .topbar-ctas .button { width: 100%; }
  /* flatten the More dropdown so its items (Instructors/Apparel/Gallery/FAQ) list inline
     in the open menu. Also override the desktop :hover/:focus-within rules (higher
     specificity), or focus would re-trigger the floating dropdown panel. */
  .nav-more,
  .nav-more:hover,
  .nav-more:focus-within { display: contents; }
  .nav-more-toggle { display: none; }
  .nav-dropdown,
  .nav-more:hover .nav-dropdown,
  .nav-more:focus-within .nav-dropdown { position: static; display: contents; }
  /* each menu item: full-width row with a divider */
  .topbar-inner.is-open .nav a {
    width: 100%; color: var(--text); padding: 13px 2px;
    border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .topbar-inner.is-open .nav a:hover, .topbar-inner.is-open .nav a:focus-visible {
    color: var(--heading); background: none;
  }
  .service-card { padding: 0; }
  .topbar-ctas { flex-wrap: wrap; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── Sign-up button on schedule cards ── */
.signup-btn { margin-top: 20px; width: 100%; }
@media (min-width: 561px) { .signup-btn { width: auto; min-width: 190px; } }

/* ── Sign-up / waiver modal ── */
body.modal-open { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, 0.74);
  padding: 18px 14px 56px;
}
.modal.is-open { display: block; }
.modal-panel {
  margin: 0 auto; max-width: 820px;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.modal-head {
  position: sticky; top: -18px; z-index: 3;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 16px;
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
}
.modal-head h2 { margin: 0 0 4px; font-size: 1.35rem; }
.modal-head p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }
.modal-close {
  flex: 0 0 auto; width: 40px; min-height: 40px; height: 40px; padding: 0;
  border-radius: 10px; font-size: 1.35rem; line-height: 1;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-strong); color: var(--heading);
  box-shadow: none;
}
.modal-close:hover, .modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.16); border-color: var(--line-strong); box-shadow: none;
}
.modal-body { padding: 22px 24px 26px; }

/* form layout inside the modal */
.signup-form { display: grid; gap: 22px; }
.signup-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.signup-form legend {
  padding: 0; margin: 0 0 4px; font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--brand);
}
.signup-form label { display: grid; gap: 8px; font-weight: 700; color: var(--heading); }
.field-grid { display: grid; gap: 12px; }
@media (min-width: 641px) { .field-grid.two { grid-template-columns: 1fr 1fr; } }
.signup-form input[type="checkbox"], .signup-form input[type="radio"] {
  width: auto; min-width: 0; margin: 0; flex: 0 0 auto;
  accent-color: var(--brand); width: 18px; height: 18px;
}
.check-grid { display: grid; gap: 10px; }
@media (min-width: 561px) { .check-grid.two { grid-template-columns: 1fr 1fr; } }
.signup-form .check-row {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; color: var(--text); cursor: pointer;
}
.signup-form .check-row input { cursor: pointer; }
.sub-field { display: grid; gap: 8px; padding-left: 28px; }
.signup-form .sub-field label { font-weight: 500; font-size: 0.9rem; color: var(--text-muted); }

/* waiver text box */
.waiver-box {
  max-height: 420px; overflow-y: auto;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 18px 20px;
  font-size: 0.9rem; line-height: 1.66; color: var(--text);
}
.waiver-box:focus-visible { outline: 2px solid var(--brand); }
.waiver-box h3 { margin: 0 0 4px; font-size: 1rem; color: var(--heading); }
.waiver-box .waiver-sub { margin: 0 0 14px; font-size: 0.82rem; color: var(--text-muted); font-style: italic; }
.waiver-box ol { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.waiver-box ol ol { margin-top: 8px; gap: 6px; list-style: upper-alpha; }
.waiver-box p { margin: 0 0 12px; }
.waiver-box .caps { font-weight: 700; color: var(--heading); }
.waiver-scroll-note { margin: 8px 0 0; font-size: 0.8rem; color: var(--text-muted); }

.signup-form .agree-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--brand); background: rgba(224, 30, 43, 0.08);
  font-weight: 600; color: var(--heading); cursor: pointer;
}
.agree-row input { margin-top: 3px; }

/* signature pad — draws on a white "paper" surface so a saved signature stays legible on its own */
.sig-field { display: grid; gap: 10px; }
.sig-field-label { font-weight: 700; color: var(--heading); }
.sig-hint { margin: -6px 0 0; font-size: 0.82rem; color: var(--text-muted); }
.sig-mode-tabs { display: inline-flex; gap: 4px; background: rgba(255, 255, 255, 0.06); padding: 4px; border-radius: 10px; width: fit-content; }
.sig-mode-btn {
  appearance: none; border: 0; background: transparent; color: var(--text-muted);
  font-weight: 700; font-size: 0.76rem; letter-spacing: 0.02em;
  padding: 7px 15px; border-radius: 7px; cursor: pointer; min-height: 0; box-shadow: none;
}
.sig-mode-btn.is-active { background: var(--brand); color: var(--button-text); }
.sig-mode-btn:hover:not(.is-active), .sig-mode-btn:focus-visible { background: rgba(255, 255, 255, 0.14); color: var(--text); outline: none; }

.sigpad {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-strong); touch-action: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.sigpad canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.sigpad-baseline { position: absolute; left: 20px; right: 20px; bottom: 36px; height: 1px; background: #dcdcdc; pointer-events: none; }
.sigpad-placeholder {
  position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  color: #9a9a9a; font-size: 0.82rem; pointer-events: none; transition: opacity 0.15s ease;
}
.sigpad-placeholder.is-hidden { opacity: 0; }

.sig-typed-wrap input {
  font-family: "Segoe Script", "Bradley Hand", "Brush Script MT", cursive;
  font-size: 1.5rem; padding: 14px 16px;
}

.sig-toolbar { display: flex; justify-content: flex-end; }
.sig-clear-btn {
  appearance: none; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted); font-weight: 700; font-size: 0.76rem;
  padding: 7px 14px; border-radius: 8px; cursor: pointer; min-height: 0; box-shadow: none;
}
.sig-clear-btn:hover, .sig-clear-btn:focus-visible { background: rgba(255, 255, 255, 0.14); color: var(--text); outline: none; }

@media (max-width: 560px) {
  .sigpad canvas { height: 150px; }
}

.signup-submit { width: 100%; margin-top: 4px; }
.form-status { margin: 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.form-status.is-shown { display: block; }
.form-status.err { background: rgba(224, 30, 43, 0.12); border: 1px solid var(--brand); color: var(--heading); }
.form-status.ok { background: rgba(40, 160, 100, 0.14); border: 1px solid rgba(40, 160, 100, 0.6); color: var(--heading); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

@media (max-width: 560px) {
  .modal { padding: 0 0 40px; }
  .modal-panel { border-radius: 0; border-left: 0; border-right: 0; min-height: 100vh; }
  .modal-head { border-radius: 0; top: 0; padding: 18px 16px 14px; }
  .modal-body { padding: 18px 16px 28px; }
  .waiver-box { max-height: 340px; padding: 14px 15px; }
}
