/* =============================================================
   RED PHOENIX TAE KWON DO — design system v2 "refined"
   Identity drawn from the original redpx.com brand: brick-red
   maroon (#8c2b10), near-black ink, silver-gray, white space.
   Marcellus for headings (calm, classical), Figtree for reading.
   Hairline borders, soft shadows, generous air — confident and
   clean rather than loud. Mobile-first throughout.
   ============================================================= */

/* Self-hosted fonts (latin subset), preloaded in layout.html. */
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/marcellus-latin.woff2") format("woff2");
}

:root {
  --brick: #8c2b10;
  --brick-dark: #6f1f08;
  --terra: #b4572f;
  --ink: #22201d;
  --gray: #66625c;
  --silver: #c9c6c1;
  --line: #e8e5e0;
  --bg: #ffffff;
  --bg-soft: #f6f4f1;
  --bg-mist: #efede9;

  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Figtree", "Helvetica Neue", sans-serif;
  --font-serif: "Marcellus", Georgia, serif;

  --shadow-soft: 0 10px 30px -18px rgba(34, 32, 29, 0.35);
  --shadow-lift: 0 18px 44px -20px rgba(34, 32, 29, 0.28);

  --radius: 10px;
  --radius-sm: 7px;
  --container: 1140px;
  --header-h: 96px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
[hidden] { display: none !important; }

a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h4, h5 { line-height: 1.3; }

h1 { font-size: clamp(2.3rem, 5.5vw, 3.7rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

p, li { max-width: 68ch; }

.container {
  width: min(var(--container), 100% - 3rem);
  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;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

::selection { background: var(--brick); color: #fff; }

/* ---------- seasonal banner ---------- */
.banner {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  background: var(--brick);
  color: #fff;
  padding: 0.5rem 2.75rem 0.5rem 1rem;
  position: relative;
  font-size: 0.92rem;
  text-align: center;
}
.banner__text a { color: #fff; font-weight: 600; }
.banner__flame { margin-right: 0.1rem; }
@media (max-width: 600px) { .banner__extra { display: none; } }
.banner__close {
  position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff;
  font-size: 1.4rem; line-height: 1; padding: 0.25rem 0.6rem; cursor: pointer;
  min-width: 44px; min-height: 44px;
  opacity: 0.8;
}
.banner__close:hover { opacity: 1; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo { height: 76px; width: auto; display: block; }
@media (max-width: 919px) { :root { --header-h: 76px; } .brand__logo { height: 60px; } }
@media (max-width: 480px) { :root { --header-h: 66px; } .brand__logo { height: 50px; } }

.header-call {
  display: none; align-items: center; gap: 0.4rem; margin-left: auto;
  min-height: 44px; padding: 0.5rem 0.85rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 600 0.82rem var(--font-body); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brick); text-decoration: none;
}
.header-call svg { width: 18px; height: 18px; }
@media (max-width: 919px) { .header-call { display: inline-flex; } }

.nav__list {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; padding: 0;
}
.nav__link {
  font-weight: 500; font-size: 0.97rem; text-decoration: none; color: var(--ink);
  padding: 0.35rem 0; border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav__link:hover { color: var(--brick); }
.nav__link[aria-current="page"] { color: var(--brick); border-bottom-color: var(--brick); }

.nav-toggle {
  display: none; align-items: center; gap: 0.55rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem; min-height: 44px; cursor: pointer; font: 600 0.82rem var(--font-body);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink);
}
.nav-toggle__bar { width: 17px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
}
.nav-toggle__bar::before { top: -5.5px; }
.nav-toggle__bar::after { top: 5.5px; }

@media (max-width: 919px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    box-shadow: var(--shadow-soft);
  }
  .nav.is-open { display: block; }
  .nav__list {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }
  .nav__link { display: block; padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line); }
  .nav__cta-item { margin-top: 1.1rem; }
  .nav__cta { display: block; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: 600 0.98rem var(--font-body);
  letter-spacing: 0.02em;
  text-decoration: none; text-align: center;
  padding: 0.85rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary, .btn--gold {
  background: var(--brick); color: #fff; border-color: var(--brick);
}
.btn--primary:hover, .btn--gold:hover {
  background: var(--brick-dark); border-color: var(--brick-dark);
  color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-soft);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--silver); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: transparent; color: var(--ink); border-color: var(--silver); }
.btn--light:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* button variants on dark surfaces */
.cta-band .btn--gold, .section--dark .btn--gold {
  background: #fff; color: var(--brick); border-color: #fff;
}
.cta-band .btn--gold:hover, .section--dark .btn--gold:hover {
  background: var(--bg-soft); color: var(--brick-dark); border-color: var(--bg-soft);
}
.cta-band .btn--light, .section--dark .btn--light {
  color: #fff; border-color: rgba(255, 255, 255, 0.55);
}
.cta-band .btn--light:hover, .section--dark .btn--light:hover { border-color: #fff; color: #fff; }

.nav__cta { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--cream { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--dark {
  background:
    radial-gradient(900px 420px at 12% -5%, rgba(140, 43, 16, 0.35), transparent 60%),
    var(--ink);
  color: #f4f2ef;
}
.section--dark h2, .section--dark h3 { color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brick); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 2rem; height: 1px; background: var(--brick); }
.section--dark .kicker { color: #d99873; }
.section--dark .kicker::before { background: #d99873; }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head p { margin-top: 1rem; color: var(--gray); font-size: 1.08rem; }
.section--dark .section__head p { color: #b9b5af; }

.center { text-align: center; }
.center .section__head, .center p { margin-inline: auto; }
.center .kicker { justify-content: center; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(140, 43, 16, 0.07), transparent 60%),
    linear-gradient(var(--bg) 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  position: relative;
  display: grid; gap: 3rem;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--gray); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1.3rem;
}
.hero__eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--brick); }
.hero h1 { color: var(--ink); max-width: 9.5em; }
.hero h1 em { font-style: normal; color: var(--brick); }
.hero__lead { margin-top: 1.4rem; font-size: 1.15rem; color: var(--gray); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  margin-top: 2.2rem; padding: 0; list-style: none;
  font-size: 0.92rem; color: var(--gray);
}
.hero__proof li { display: flex; align-items: center; gap: 0.5rem; }
.hero__proof svg { width: 15px; height: 15px; flex: none; color: var(--brick); }

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
.hero__figure figcaption {
  margin-top: 0.8rem; font-size: 0.92rem; color: var(--gray); font-style: italic;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; align-items: center; }
}

/* ---------- trust bar ---------- */
.trust-bar { background: var(--bg); border-bottom: 1px solid var(--line); }
.trust-bar__grid {
  display: grid; gap: 1.5rem;
  padding: 1.7rem 0;
  text-align: center;
}
.trust-bar__stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.8rem; line-height: 1.1; color: var(--brick);
}
.trust-bar__stat span { font-size: 0.9rem; color: var(--gray); }
@media (min-width: 640px) {
  .trust-bar__grid { grid-template-columns: repeat(3, 1fr); }
  .trust-bar__stat + .trust-bar__stat { border-left: 1px solid var(--line); }
}

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--silver); }
.card__media { border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__tag {
  align-self: flex-start;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brick); background: rgba(140, 43, 16, 0.07);
  border-radius: 999px; padding: 0.22rem 0.7rem;
}
.card { position: relative; }
.card__body h3 a { color: var(--ink); text-decoration: none; }
.card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.card__body h3 a:hover { color: var(--brick); }
.card__body p { color: var(--gray); font-size: 0.97rem; flex: 1; }
.card__link {
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em;
  color: var(--brick); text-decoration: none;
}
.card__link::after { content: " →"; }

/* ---------- feature list ---------- */
.feature-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
}
.feature__icon {
  width: 50px; height: 50px; display: grid; place-items: center;
  color: var(--brick); border: 1px solid var(--silver); border-radius: 50%;
  margin-bottom: 1.1rem;
  font-family: var(--font-display); font-size: 1.35rem;
  background: var(--bg-soft);
}
.feature h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.feature p { color: var(--gray); font-size: 0.97rem; }

/* ---------- tables (schedule) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
table.timetable { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 0.95rem; }
.timetable caption {
  text-align: left; padding: 1rem 1.2rem;
  font-family: var(--font-display); font-size: 1.2rem;
  background: var(--bg-soft); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.timetable caption .sample-flag { vertical-align: middle; margin-left: 0.6rem; }
.timetable th, .timetable td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.85rem; text-align: left; vertical-align: top;
}
.timetable thead th {
  background: var(--bg-soft); font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray);
}
.timetable tbody th { white-space: nowrap; font-size: 0.85rem; background: var(--bg); color: var(--gray); font-weight: 600; }
.timetable td:empty::after { content: "—"; color: var(--silver); }

.chip {
  display: inline-block;
  border: 1px solid rgba(34, 32, 29, 0.12); border-radius: 999px;
  padding: 0.25rem 0.75rem; margin: 0.1rem 0;
  font-size: 0.82rem; font-weight: 600; line-height: 1.3;
  background: var(--bg-soft); color: var(--ink);
  transition: opacity 0.15s ease;
}
.chip small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--gray); }
.chip--preschool { background: #f8ece4; }
.chip--kids { background: #f4e0d2; }
.chip--youth { background: #eed0bc; }
.chip--adult { background: #e7c2b2; }
.chip--family { background: #e6eadf; }
.chip--comp { background: var(--brick); color: #fff; border-color: var(--brick); }
.chip--comp small { color: #e3c1b3; }
.chip--sword { background: var(--ink); color: #e8e5e0; border-color: var(--ink); }
.chip--sword small { color: #a3a09b; }
.chip--open { background: #e6e3ec; }
.chip.is-dimmed { opacity: 0.15; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.filter-btn {
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  padding: 0.42rem 1.05rem; font: 500 0.88rem var(--font-body); cursor: pointer;
  color: var(--ink);
}
.filter-btn:hover { border-color: var(--silver); background: var(--bg-soft); }
.filter-btn[aria-pressed="true"] { background: var(--brick); color: #fff; border-color: var(--brick); }

.sample-flag {
  display: inline-block; background: var(--bg); color: var(--brick);
  border: 1px solid var(--brick); border-radius: 4px;
  font: 700 0.64rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.14rem 0.5rem;
}

/* ---------- pricing tiers ---------- */
.tier-grid { display: grid; gap: 1.75rem; align-items: stretch; }
@media (min-width: 900px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem 1.7rem;
}
.tier--featured { border-color: var(--brick); box-shadow: var(--shadow-lift); }
.tier--featured h3 { color: var(--brick); }
.tier__flag {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: var(--brick); color: #fff;
  border-radius: 999px; padding: 0.25rem 1rem;
  font: 700 0.72rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
}
.tier h3 { font-size: 1.3rem; }
.tier__price { margin: 1rem 0 0.25rem; font-family: var(--font-display); font-size: 2.7rem; line-height: 1; color: var(--ink); }
.tier__price sup { font-size: 1.2rem; top: -1em; }
.tier__price span { font: 400 0.95rem var(--font-body); color: var(--gray); }
.tier__note { font-size: 0.88rem; color: var(--gray); margin-bottom: 1rem; }
.tier ul { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1; }
.tier li { padding: 0.48rem 0 0.48rem 1.7rem; position: relative; font-size: 0.97rem; border-bottom: 1px solid var(--line); }
.tier li:last-child { border-bottom: 0; }
.tier li::before { content: "✓"; position: absolute; left: 0.2rem; color: var(--brick); font-weight: 700; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  counter-increment: step;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display); font-size: 2rem; line-height: 1;
  color: var(--silver);
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.step p { color: var(--gray); font-size: 0.97rem; }

/* ---------- FAQ (pure-HTML accordions) ---------- */
.faq { display: grid; gap: 0.75rem; max-width: 46rem; }
.faq__item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 600; font-size: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none;
  font-family: var(--font-display); font-size: 1.4rem; color: var(--brick);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item[open] summary { border-bottom: 1px solid var(--line); }
.faq__body { padding: 1rem 1.25rem 1.2rem; color: var(--gray); }
.faq__body p + p { margin-top: 0.7rem; }

/* ---------- testimonials carousel ---------- */
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.testimonial { flex: 0 0 100%; padding: 0 0.25rem; }
.testimonial__card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 2.2rem 2rem;
  max-width: 44rem; margin-inline: auto;
  color: var(--ink);
}
.testimonial__stars { color: var(--terra); letter-spacing: 0.2em; font-size: 1rem; }
.testimonial__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.3vw, 1.35rem); line-height: 1.5;
  margin: 1rem 0 1.2rem;
}
.testimonial__meta { display: flex; align-items: center; gap: 0.8rem; font-size: 0.92rem; }
.testimonial__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--brick); color: #fff;
  font-family: var(--font-display); font-size: 1rem;
}
.testimonial__meta strong { display: block; }
.testimonial__meta span { color: var(--gray); font-size: 0.82rem; }

.carousel__controls {
  display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.75rem;
}
.carousel__btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff;
  font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.carousel__btn:hover { border-color: #fff; }
.carousel__dots { display: flex; gap: 0.5rem; }
.carousel__dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6); background: transparent; padding: 0; cursor: pointer;
}
.carousel__dot[aria-current="true"] { background: #fff; border-color: #fff; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .form-field--full { grid-column: 1 / -1; }
}
.form-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.form-field label .optional { font-weight: 400; color: var(--gray); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: 1rem var(--font-body); color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--silver); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--brick); outline-offset: 1px; border-color: var(--brick);
}
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"], .form-field textarea[aria-invalid="true"] {
  border-color: var(--brick); background: #fdf5f2;
}
.field-error { color: var(--brick-dark); font-size: 0.85rem; font-weight: 600; margin-top: 0.3rem; }
.form-hint { font-size: 0.85rem; color: var(--gray); margin-top: 0.3rem; }

.form-success {
  background: #f0f4ec; border: 1px solid #5c7a4a; border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem; color: #37502a; font-weight: 500;
}
.form-success em { font-weight: 400; }
.form-error-global {
  background: #fdf1ee; border: 1px solid var(--brick); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; color: var(--brick-dark); font-weight: 500;
}

/* Honeypot — off-screen bot trap; real users never see or focus it. */
.hp-field {
  position: absolute !important; left: -5000px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0; pointer-events: none;
}

.embed-note {
  border: 1px dashed var(--silver); border-radius: var(--radius-sm);
  background: var(--bg-soft); padding: 1.1rem 1.3rem;
  font-size: 0.92rem; color: var(--gray);
}
.embed-note strong { color: var(--ink); }

/* ---------- newsletter (footer) ---------- */
.newsletter { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.newsletter input {
  flex: 1 1 180px; font: 1rem var(--font-body);
  border: 1px solid #4a4742; background: transparent; color: #fff;
  border-radius: var(--radius-sm); padding: 0.68rem 0.9rem;
}
.newsletter input::placeholder { color: #8e8b86; }
.newsletter input:focus { outline: 2px solid var(--terra); }
.newsletter .btn { padding: 0.68rem 1.3rem; font-size: 0.88rem; }
.newsletter .field-error, .newsletter .form-success { flex-basis: 100%; }
.newsletter .form-success { background: transparent; border-color: #5c7a4a; color: #b9cfa8; }

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 320px at 92% -20%, rgba(140, 43, 16, 0.07), transparent 60%),
    linear-gradient(var(--bg) 0%, var(--bg-soft) 100%);
  padding: clamp(3rem, 6vw, 4.75rem) 0;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { color: var(--ink); max-width: 20ch; }
.page-hero__lead { margin-top: 1.15rem; font-size: 1.1rem; color: var(--gray); max-width: 54ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.9rem; }

/* ---------- split layout ---------- */
.split { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.2fr 0.8fr; }
  .split--flip > :first-child { order: 2; }
}
.split h2 { margin-bottom: 1rem; }
.split p + p { margin-top: 0.9rem; }
.split figure img {
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  width: 100%;
}
.split figcaption { margin-top: 0.75rem; font-size: 0.92rem; font-style: italic; color: var(--gray); }

/* ---------- info/check lists ---------- */
.check-list { list-style: none; padding: 0; display: grid; gap: 0.65rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0.1rem;
  width: 1.2rem; height: 1.2rem; display: grid; place-items: center;
  color: var(--brick); border: 1px solid var(--silver); border-radius: 50%;
  font-size: 0.76rem; font-weight: 700; background: var(--bg);
}

.info-cards { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .info-cards { grid-template-columns: repeat(2, 1fr); } }
.info-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.info-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.info-card p, .info-card li { color: var(--gray); font-size: 0.96rem; }

/* ---------- belt scale ---------- */
.belt-scale { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1.5rem 0 0; }
.belt-scale li {
  --belt: #fff;
  flex: 1 1 64px; min-width: 64px;
  border: 1px solid var(--line); border-radius: 6px;
  padding: 0.5rem 0.4rem 0.45rem;
  font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  text-align: center; background: var(--bg); color: var(--gray);
}
.belt-scale li::before {
  content: ""; display: block; height: 14px; margin-bottom: 0.4rem;
  background: var(--belt); border: 1px solid rgba(34, 32, 29, 0.25); border-radius: 3px;
}
/* Stripe ranks: Red Phoenix wears the stripe lengthwise down the middle of the
   belt, so the swatch shows the base colour with a centred full-width stripe. */
.belt-scale li.striped::before {
  background:
    linear-gradient(var(--stripe), var(--stripe)) center / 100% 4px no-repeat,
    var(--belt);
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 320px at 85% 0%, rgba(140, 43, 16, 0.45), transparent 60%),
    var(--ink);
  color: #f4f2ef;
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}
.cta-band h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta-band p { margin: 1.1rem auto 2rem; color: #b9b5af; max-width: 48ch; }
.cta-band .btn { margin-inline: 0.4rem; margin-block: 0.3rem; }

/* ---------- blog / prose ---------- */
.post-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem;
  font-size: 0.88rem; color: var(--gray); margin-top: 1rem;
}
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.65rem; margin: 2.4rem 0 0.85rem; }
.prose h3 { font-size: 1.25rem; margin: 1.9rem 0 0.6rem; }
.prose p { margin: 0 0 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.45rem; }
.prose blockquote {
  border-left: 3px solid var(--brick);
  margin: 1.6rem 0; padding: 0.4rem 0 0.4rem 1.3rem;
  font-family: var(--font-serif); font-size: 1.25rem; color: var(--ink);
}
.prose img { border: 1px solid var(--line); border-radius: var(--radius); margin: 1.6rem 0; }
.prose .cta-inline {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; margin: 1.9rem 0;
}

/* ---------- schedule preview (home) ---------- */
.schedule-preview { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.schedule-preview table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.schedule-preview th, .schedule-preview td { padding: 0.68rem 0.95rem; border-bottom: 1px solid var(--line); text-align: left; }
.schedule-preview thead th {
  background: var(--bg-soft); color: var(--gray); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.schedule-preview tbody tr:last-child td { border-bottom: 0; }
.schedule-preview .time { white-space: nowrap; font-weight: 600; color: var(--brick); }

/* ---------- map / photo placeholders ---------- */
.map-placeholder {
  border: 1px dashed var(--silver); border-radius: var(--radius);
  background: var(--bg-soft);
  min-height: 320px;
  display: grid; place-items: center; text-align: center; padding: 2rem;
}
.map-placeholder strong { font-family: var(--font-display); font-size: 1.25rem; }
.map-placeholder p { color: var(--gray); font-size: 0.95rem; margin-top: 0.4rem; }

.photo-strip { display: grid; gap: 1rem; }
@media (min-width: 640px) { .photo-strip { grid-template-columns: repeat(3, 1fr); } }
.photo-strip img { border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }

/* ---------- footer ---------- */
.footer {
  background: var(--ink); color: #b9b5af;
  padding: clamp(3.25rem, 6vw, 5rem) 0 1.5rem;
}
.footer a { color: #e8e5e0; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 2.75rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.2fr 0.9fr 0.9fr 1.1fr; } }
.footer__logo { margin-bottom: 1.3rem; }
.footer__logo img { width: 150px; height: auto; display: block; }
.footer__nap { font-style: normal; line-height: 1.75; font-size: 0.96rem; }
.footer__heading {
  font-family: var(--font-display); font-size: 0.98rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; margin-bottom: 0.95rem;
}
.footer__col .footer__heading + .footer__heading, .footer__col ul + .footer__heading { margin-top: 1.7rem; }
.footer__links, .footer__hours { list-style: none; padding: 0; display: grid; gap: 0.45rem; font-size: 0.94rem; }
.footer__hours li { display: flex; justify-content: space-between; gap: 1rem; max-width: 16rem; }
.footer__links a { text-decoration: none; color: #b9b5af; display: inline-block; padding: 0.35rem 0; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__social { list-style: none; padding: 0; display: flex; gap: 1.3rem; margin-top: 1.2rem; }
.footer__social a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.footer__social svg { width: 19px; height: 19px; }
.footer__blurb { font-size: 0.92rem; margin-bottom: 1rem; }
.footer__legal {
  margin-top: 3rem; padding-top: 1.3rem;
  border-top: 1px solid #3b3833;
  font-size: 0.82rem; color: #8e8b86;
  display: grid; gap: 0.3rem;
}
.footer__note strong { color: #d99873; }

/* ---------- sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90;
  display: none;
  background: var(--brick); color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(34, 32, 29, 0.35);
  text-align: center; text-decoration: none;
  font: 600 1.02rem var(--font-body); letter-spacing: 0.02em;
  padding: 0.95rem 1rem;
}
.mobile-cta:hover { color: #fff; background: var(--brick-dark); }
@media (max-width: 919px) {
  .mobile-cta { display: block; transform: translateY(150%); transition: transform 0.25s ease; }
  .mobile-cta.is-shown { transform: none; }
  body { padding-bottom: 4.75rem; }
  body.no-mobile-cta .mobile-cta { display: none; }
  body.no-mobile-cta { padding-bottom: 0; }
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- admin queue ---------- */
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.admin-table { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 0.92rem; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 0.8rem 0.9rem; text-align: left; vertical-align: top; }
.admin-table thead th {
  background: var(--bg-soft); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gray);
}
.status-pill {
  display: inline-block; border-radius: 999px; padding: 0.15rem 0.7rem;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.status-pill--pending { background: #f6ecdd; color: #8a6215; }
.status-pill--approved { background: #eaf2e4; color: #3f6030; }
.status-pill--declined { background: #f7e6e0; color: var(--brick-dark); }
.admin-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.admin-actions .btn { padding: 0.35rem 0.8rem; font-size: 0.8rem; }

/* ---------- misc utilities ---------- */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.lead { font-size: 1.12rem; color: var(--gray); }
.notice {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.05rem 1.25rem; font-size: 0.95rem; color: var(--gray);
}

/* ---------- Google rating card (home) ---------- */
.rating-card {
  max-width: 30rem; margin-inline: auto;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 2rem 1.75rem;
}
.rating-card__score { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin: 0; }
.rating-card__num { font-family: var(--font-display); font-size: 3.25rem; line-height: 1; color: #fff; }
.rating-card__stars {
  font-size: 1.75rem; letter-spacing: 0.08em;
  /* filled to 94% = 4.7 / 5 stars */
  background: linear-gradient(90deg, #f2c94c 94%, rgba(255, 255, 255, 0.25) 94%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rating-card__meta { margin: 0.75rem auto 1.5rem; color: #d8d3cc; }

/* ---------- embedded map (contact) ---------- */
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 10 / 7; max-width: 100%; background: var(--bg-soft); }
.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- breadcrumbs ---------- */
.breadcrumb ol {
  display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0;
  margin-bottom: 0.9rem; font-size: 0.88rem; color: var(--gray);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--silver); }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--brick); }

.section--tight { padding-block: 1.75rem 0; }
