/* ==========================================================================
   Reignition Personal Training
   Palette: warm char + ember, against a bone-white page.
   ========================================================================== */

:root {
  --char:        #15100D;
  --char-2:      #231A15;
  --char-3:      #33261E;
  --bone:        #FBF8F5;
  --bone-2:      #F3EDE7;
  --ink:         #1C1613;
  --muted:       #6E615A;
  --ember:       #D94F1E;
  --ember-bright:#F26B23;
  --flame:       #F59E0B;
  --line:        rgba(28, 22, 19, .12);
  --line-dark:   rgba(251, 248, 245, .14);

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
  --gutter: 20px;
  --radius: 4px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ember); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.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: 50%; translate: -50% -120%;
  background: var(--ember); color: #fff; padding: .7rem 1.2rem;
  z-index: 200; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none; transition: translate .2s;
}
.skip-link:focus-visible { translate: -50% 0; }

:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 1.18rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .85rem 1.9rem; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-primary {
  background: var(--ember); color: #fff;
  box-shadow: 0 8px 22px -10px rgba(217, 79, 30, .9);
}
.btn-primary:hover { background: var(--ember-bright); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(251,248,245,.45); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); background: rgba(251,248,245,.08); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(21, 16, 13, .94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px -20px #000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--bone); }
.brand-mark { width: 30px; height: 30px; flex: none; fill: var(--ember); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.brand-sub {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(251,248,245,.62); margin-top: 3px;
}

.nav ul { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: rgba(251,248,245,.82); text-decoration: none;
  font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: color .18s;
}
.nav a:hover { color: #fff; }
.nav .nav-cta {
  background: var(--ember); color: #fff; padding: .6rem 1.2rem; border-radius: var(--radius);
}
.nav .nav-cta:hover { background: var(--ember-bright); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
}
.nav-toggle-bars { display: block; width: 26px; }
.nav-toggle-bars span {
  display: block; height: 2px; background: var(--bone); margin: 6px 0;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--char); color: var(--bone);
  padding: calc(var(--header-h) + 5.5rem) 0 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(242,107,35,.30), transparent 62%),
    radial-gradient(45% 50% at 12% 88%, rgba(245,158,11,.14), transparent 65%),
    linear-gradient(175deg, #1B1410 0%, #15100D 55%, #100C09 100%);
}
.hero-bg::after {
  /* faint ember speckle */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 30%, rgba(245,158,11,.5), transparent),
    radial-gradient(1.5px 1.5px at 62% 18%, rgba(242,107,35,.45), transparent),
    radial-gradient(1px 1px at 82% 54%, rgba(245,158,11,.4), transparent),
    radial-gradient(1px 1px at 38% 70%, rgba(242,107,35,.35), transparent),
    radial-gradient(1.5px 1.5px at 90% 24%, rgba(245,158,11,.35), transparent);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; padding-bottom: 5rem; }

.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--flame);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(3.4rem, 11vw, 7.4rem);
  text-transform: uppercase; letter-spacing: .005em; margin-bottom: 1.6rem;
}
.hero-title span { display: block; }
.hero-title .accent {
  background: linear-gradient(95deg, var(--ember-bright), var(--flame));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(251,248,245,.84);
  max-width: 44rem; margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.trust-bar {
  position: relative; z-index: 1; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  background: rgba(0,0,0,.28);
}
.trust-bar li {
  padding: 1.7rem var(--gutter); text-align: center;
  border-right: 1px solid var(--line-dark);
}
.trust-bar li:last-child { border-right: 0; }
.trust-bar strong {
  display: block; font-family: var(--display); font-size: 1.85rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--flame); line-height: 1.1;
}
.trust-bar span { font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; color: rgba(251,248,245,.6); }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--bone-2); }
.section-dark { background: var(--char-2); color: var(--bone); }
.section-dark .section-title { color: var(--bone); }
.section-dark .section-label { color: var(--flame); }

.section-label {
  font-family: var(--display); font-weight: 600; font-size: .92rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ember);
  margin-bottom: .9rem;
}
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); text-transform: uppercase; }
.section-head { max-width: 46rem; margin-bottom: 3.4rem; }
.lead { font-size: 1.12rem; color: var(--muted); }
.section-dark .lead { color: rgba(251,248,245,.75); }

.grid-2 {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.grid-2-tight { grid-template-columns: 1.2fr .8fr; align-items: center; }

.pull-quote {
  margin: 2.2rem 0 0; padding: 1.2rem 0 1.2rem 1.6rem;
  border-left: 3px solid var(--ember);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.25;
  text-transform: uppercase; letter-spacing: .01em;
}

/* ---------- Portrait placeholder ---------- */
.portrait { margin: 0; }
.portrait-frame {
  aspect-ratio: 4 / 5; border: 2px dashed rgba(28,22,19,.22); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bone-2), #E9E0D8);
  display: grid; place-content: center; justify-items: center; gap: .9rem;
  text-align: center; padding: 2rem; color: var(--muted);
}
.portrait-frame svg { width: 52px; height: 52px; fill: rgba(217,79,30,.35); }
.portrait-frame p { margin: 0; font-size: .88rem; line-height: 1.6; }
.portrait-frame code { font-size: .84rem; background: rgba(28,22,19,.07); padding: .1rem .35rem; border-radius: 3px; }
.portrait figcaption {
  margin-top: 1rem; font-size: .85rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Cards ---------- */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem;
}
.card {
  position: relative; background: var(--bone); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.9rem 1.8rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--flame));
  border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -26px rgba(28,22,19,.55); border-color: rgba(217,79,30,.3); }
.card:hover::before { transform: scaleX(1); }
.card-num {
  font-family: var(--display); font-size: .9rem; font-weight: 700;
  letter-spacing: .2em; color: var(--ember); display: block; margin-bottom: .7rem;
}
.card h3 { font-size: 1.5rem; text-transform: uppercase; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Who list ---------- */
.who-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 0 2.5rem;
}
.who-list li {
  position: relative; padding: 1.15rem 0 1.15rem 2.5rem;
  border-bottom: 1px solid var(--line); font-size: 1.03rem;
}
.who-list li::before {
  content: ""; position: absolute; left: 0; top: 1.5rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--flame), var(--ember) 70%);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.2rem;
  counter-reset: step;
}
.steps li { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.step-num {
  display: grid; place-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(140deg, var(--ember), var(--flame)); color: #fff;
  font-family: var(--display); font-size: 1.45rem; font-weight: 700;
  margin-bottom: 1.1rem;
}
.steps h3 { font-size: 1.4rem; text-transform: uppercase; color: var(--bone); }
.steps p { color: rgba(251,248,245,.72); font-size: .97rem; margin: 0; }

/* ---------- Stats ---------- */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.stats li {
  background: var(--bone-2); border-left: 3px solid var(--ember);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.4rem 1.6rem;
}
.stats strong {
  display: block; font-family: var(--display); font-size: 2rem;
  text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; color: var(--ember);
}
.stats span { font-size: .93rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-form {
  background: var(--bone); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .45rem;
}
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; background: var(--bone-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s, background-color .18s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--ember); background: #fff; outline: none;
  box-shadow: 0 0 0 3px rgba(217,79,30,.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { margin: 1rem 0 0; font-size: .87rem; color: var(--muted); text-align: center; }

.contact-details h3 {
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ember); margin-top: 0;
}
.contact-details h3 + * { margin-top: 0; }
.contact-details dl { margin: 0 0 2.2rem; }
.contact-details dt {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-top: 1.1rem;
}
.contact-details dd { margin: .2rem 0 0; font-size: 1.05rem; }
.contact-details a { text-decoration: none; border-bottom: 1px solid rgba(217,79,30,.35); }
.contact-details a:hover { border-bottom-color: var(--ember); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.social a {
  text-decoration: none; font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--char); color: rgba(251,248,245,.62); padding: 3.2rem 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1.8rem;
  align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand .brand-mark { width: 34px; height: 34px; fill: var(--ember); flex: none; }
.footer-brand p { margin: 0; font-size: .92rem; line-height: 1.6; }
.footer-brand strong { color: var(--bone); font-size: 1rem; letter-spacing: .04em; }
.footer-legal { margin: 0; font-size: .82rem; line-height: 1.7; text-align: right; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid-2, .grid-2-tight, .contact-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; order: 3; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: rgba(21,16,13,.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-dark);
    max-height: 0; overflow: hidden; transition: max-height .32s ease;
  }
  .nav.is-open { max-height: 26rem; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem var(--gutter) 1.4rem; }
  .nav li { border-bottom: 1px solid var(--line-dark); }
  .nav li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav a { display: block; padding: 1rem 0; font-size: .95rem; }
  .nav .nav-cta { text-align: center; padding: .9rem 1.2rem; }

  .trust-bar { grid-template-columns: 1fr; }
  .trust-bar li { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 1.3rem var(--gutter); }
  .trust-bar li:last-child { border-bottom: 0; }

  .hero { padding-top: calc(var(--header-h) + 3.5rem); }
  .hero-inner { padding-bottom: 3.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .who-list { gap: 0; }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav, .hero-bg, .reveal { position: static; opacity: 1; transform: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero, .section-dark, .site-footer { background: #fff !important; color: #000 !important; }
}

/* ---------- Anchor offset for the fixed header ---------- */
section[id], [id="top"] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Contact form: honeypot + status ---------- */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status {
  margin: 1rem 0 0; font-size: .92rem; line-height: 1.55;
  text-align: center; min-height: 1.2em;
}
.form-status:empty { margin: 0; min-height: 0; }
.form-status.is-pending { color: var(--muted); }
.form-status.is-ok {
  color: #1F6B3B;
  background: rgba(31,107,59,.08);
  border: 1px solid rgba(31,107,59,.22);
  border-radius: var(--radius); padding: .7rem .9rem;
}
.form-status.is-error {
  color: #9C2B14;
  background: rgba(156,43,20,.07);
  border: 1px solid rgba(156,43,20,.25);
  border-radius: var(--radius); padding: .7rem .9rem;
}

.contact-form button[disabled] { opacity: .65; cursor: progress; }

.form-noscript {
  margin: 1rem 0 0; padding: .8rem .9rem; font-size: .9rem; text-align: center;
  background: rgba(217,79,30,.07); border: 1px solid rgba(217,79,30,.25);
  border-radius: var(--radius);
}
