/* ============================================================
   Sweet As Thai Boxing — site styles
   Brand swap: change these + the files in assets/brand/
   (Concept 06 "Honey Legacy", James's pick — ink / gold / paper)
   ============================================================ */
:root {
  --ink: #181918;
  --ink-deep: #0f100f;
  --ink-soft: #2a2b2a;
  --accent: #CEA855;
  --accent-deep: #7d5f1f;
  --paper: #EDE7D8;
  --paper-soft: #f6f2e9;
  --muted-on-dark: #c9c3bb;
  --muted-on-light: #5a554e;
  --line-on-dark: rgba(237, 231, 216, 0.16);
  --line-on-light: rgba(24, 25, 24, 0.14);

  --font-display: Impact, "Arial Narrow Bold", "Franklin Gothic Medium",
    "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --wrap: 68rem;
  --space-section: clamp(3.5rem, 9vw, 7rem);
  --radius: 0.75rem;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  line-height: 1.05;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
p { margin: 0 0 1.1em; max-width: 62ch; }
a { color: var(--accent-deep); }
a:hover { color: var(--accent); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent);
  color: var(--ink-deep);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; color: var(--ink-deep); }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.section { padding-block: var(--space-section); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark a { color: var(--accent); }
.section--deep { background: var(--ink-deep); color: var(--paper); }
.section--paper-soft { background: var(--paper-soft); }

.kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.section--dark .lede, .section--deep .lede { color: var(--muted-on-dark); }
.lede { font-size: 1.2rem; color: var(--muted-on-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  line-height: 1;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--ink-deep); }
.btn--primary:hover { background: var(--accent-deep); color: var(--ink-deep); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-deep);
  color: var(--paper);
  border-bottom: 1px solid var(--line-on-dark);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { display: block; height: 44px; width: auto; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 2px solid var(--paper);
  color: var(--paper);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
  content: "";
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

.site-nav { display: none; }
.site-nav[data-open="true"] {
  display: block;
  padding-bottom: 1rem;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.6rem 0.25rem;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 1.05rem;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); }

@media (min-width: 52rem) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 1.4rem; }
  .site-nav a { padding: 0.35rem 0; font-size: 0.98rem; }
  .site-nav a.nav-cta {
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    color: var(--accent);
  }
  .site-nav a.nav-cta:hover { background: var(--accent); color: var(--ink-deep); }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(206, 168, 85, 0.22), transparent 60%),
    var(--ink-deep);
  color: var(--paper);
  padding-block: clamp(3rem, 9vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.hero__mark {
  position: absolute;
  right: -6rem;
  bottom: -7rem;
  width: min(26rem, 60vw);
  opacity: 0.16;
  pointer-events: none;
}
.hero__logo { max-width: min(30rem, 82vw); margin-bottom: 2rem; }
.hero h1 { max-width: 14ch; }
.hero .lede { color: var(--muted-on-dark); }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.hero__badges li {
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted-on-dark);
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 52rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--paper-soft);
  display: flex;
  flex-direction: column;
}
.section--dark .card, .section--deep .card {
  background: var(--ink-soft);
  border-color: var(--line-on-dark);
}
.card h3 { margin-bottom: 0.4em; }
.card p { margin-bottom: 0.8em; }
.card .card__link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .card__link::after { content: " →"; }
.card__icon { width: 2.25rem; height: 2.25rem; color: var(--accent); margin-bottom: 1rem; }

/* price card */
.price-card { position: relative; }
.price-card--feature { border-color: var(--accent); }
.price-card__tag {
  position: absolute;
  top: -0.85rem;
  left: 1.5rem;
  background: var(--accent);
  color: var(--ink-deep);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.price-card__amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--accent);
  margin: 0.25rem 0 0.1rem;
}
.price-card__per { color: var(--muted-on-light); margin-bottom: 1rem; }
.section--dark .price-card__per, .section--deep .price-card__per { color: var(--muted-on-dark); }
.price-card ul { margin: 0; padding-left: 1.15rem; }
.price-card li { margin-bottom: 0.35rem; }

/* ---------- Belt / credential strip ---------- */
.cred-strip {
  background: var(--accent);
  color: var(--ink-deep);
}
.cred-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  align-items: baseline;
  padding-block: 1.1rem;
}
.cred-strip strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
}
.cred-strip a { color: var(--ink-deep); text-underline-offset: 3px; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 1.75rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ---------- Timetable designed empty-state ---------- */
.empty-state {
  border: 2px dashed var(--line-on-light);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
}
.empty-state .card__icon { margin-inline: auto; }
.empty-state p { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: var(--muted-on-dark);
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--line-on-dark);
}
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer img { height: 56px; width: auto; margin-bottom: 1rem; }
.site-footer h2, .site-footer h3 { color: var(--paper); font-size: 1.05rem; letter-spacing: 0.12em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--muted-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__fine {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.85rem;
}

/* ---------- Misc ---------- */
.figure-mark { text-align: center; }
.figure-mark img { width: min(20rem, 70vw); }
.list-check { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.list-check li { padding-left: 1.9rem; position: relative; margin-bottom: 0.6rem; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.32em;
  width: 1rem; height: 1rem;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.note { font-size: 0.92rem; color: var(--muted-on-light); }
.section--dark .note, .section--deep .note { color: var(--muted-on-dark); }
.hr-accent { border: 0; height: 4px; width: 5rem; background: var(--accent); margin: 0 0 1.5rem; border-radius: 2px; }

/* details/FAQ */
details.faq {
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  background: var(--paper-soft);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.9rem;
}
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.08rem;
}
details.faq summary::marker { color: var(--accent); }
details.faq p { margin-top: 0.75rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Enquiry forms ---------- */
/* Forms always sit on a light card so every colour below is measured against
   paper/white: ink 17:1, muted 7.3:1, deep gold 5.9:1, error red 8:1. */
.form-card {
  background: #fffdf8;
  color: var(--ink);
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  margin-top: 2rem;
  max-width: 44rem;
}
.form-card h2, .form-card h3 { color: var(--ink); }
.form-intro { color: var(--muted-on-light); margin-bottom: 1.5rem; }
.enquiry-form { display: grid; gap: 1.25rem; }
/* `hidden` must win over the display rules above (form swaps for the success panel). */
[hidden] { display: none !important; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label, .field legend, .field__label {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}
.field fieldset, fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field__req { color: var(--muted-on-light); font-weight: 400; font-size: 0.9rem; }
.field__hint { color: var(--muted-on-light); font-size: 0.92rem; margin: 0; }
.field__error {
  color: #9b1c1c;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}
.field__error:empty { display: none; }
.field__error::before { content: "! "; }
.field__error:empty::before { content: none; }

.enquiry-form input[type="text"],
.enquiry-form input[type="email"],
.enquiry-form input[type="tel"],
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--muted-on-light);
  border-radius: 0.5rem;
  padding: 0.7rem 0.85rem;
  min-height: 2.9rem;
}
.enquiry-form textarea { min-height: 7.5rem; resize: vertical; }
.enquiry-form select { appearance: auto; }
.enquiry-form [aria-invalid="true"] { border-color: #9b1c1c; background: #fbeeee; }

.choice-group { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.25rem; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 400;
  color: var(--ink);
  min-height: 2.75rem;
  cursor: pointer;
}
.choice input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--accent-deep); flex: none; }
.choice--consent { align-items: flex-start; }
.choice--consent input { margin-top: 0.2rem; }

/* Honeypot: off-screen for people, still in the DOM for bots. */
.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions .btn { min-height: 3rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.65; cursor: progress; }
.form-privacy { color: var(--muted-on-light); font-size: 0.9rem; margin: 0; }

.form-alert {
  border-radius: 0.5rem;
  padding: 1rem 1.15rem;
  border: 2px solid #9b1c1c;
  background: #fbeeee;
  color: var(--ink);
}
.form-alert:empty, .form-alert[hidden] { display: none; }
.form-alert p { margin: 0 0 0.35rem; }
.form-alert p:last-child { margin-bottom: 0; }
.form-alert a { color: #9b1c1c; font-weight: 700; }

.form-success {
  border: 2px solid var(--accent-deep);
  border-radius: var(--radius);
  background: var(--paper-soft);
  color: var(--ink);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.form-success h2, .form-success h3 { color: var(--ink); }
.form-success__ref {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  font-size: 1.25rem;
}
.form-card :focus-visible, .form-success:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 2px;
}
.enquiry-form input:focus-visible,
.enquiry-form select:focus-visible,
.enquiry-form textarea:focus-visible {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(125, 95, 31, 0.25);
}
.anchor-offset { scroll-margin-top: 5rem; }

/* ---------- Contrast fixes for the gold (06 Honey Legacy) palette ---------- */
/* Gold reads on dark only; on paper use the deep gold. */
.kicker, .price-card__amount, .steps li::before { color: var(--accent-deep); }
.section--dark .kicker, .section--deep .kicker, .hero .kicker,
.section--dark .steps li::before, .section--deep .steps li::before { color: var(--accent); }
/* Buttons keep dark text on gold even inside dark sections (beats `.section--dark a`). */
.btn.btn--primary, .section--dark .btn--primary, .section--deep .btn--primary { color: var(--ink-deep); }
.section--deep a:not(.btn) { color: var(--accent); }
/* FAQ cards: explicit text colour so they never inherit light text onto a light card. */
details.faq { color: var(--ink); }
.section--dark details.faq, .section--deep details.faq {
  background: var(--ink-soft); border-color: var(--line-on-dark); color: var(--paper);
}
.hero a:not(.btn) { color: var(--accent); }
.section--dark .price-card__amount, .section--deep .price-card__amount { color: var(--accent); }
.section--dark .price-card:not(.price-card--light) .price-card__amount { color: var(--accent); }
/* Primary button hover: dark text on deep gold is only 3.2:1 — use paper (4.8:1). */
.btn.btn--primary:hover, .section--dark .btn--primary:hover, .section--deep .btn--primary:hover { color: var(--paper); }
/* Focus ring on light surfaces: bright gold on paper is 1.8:1 — use deep gold (4.8:1+). */
.section:not(.section--dark):not(.section--deep) :focus-visible { outline-color: var(--accent-deep); }
