/* =========================================================
   RESURGENCE COACHING — DESIGN TOKENS
   ========================================================= */
:root {
  /* Color */
  --ink: #0F0D0C;
  --ink-soft: #15110F;
  --charcoal: #1B1613;
  --charcoal-2: #221A16;
  --line: rgba(243, 237, 228, 0.10);
  --line-strong: rgba(243, 237, 228, 0.18);

  --ember: #D9662B;
  --ember-deep: #A8431C;
  --ember-bright: #E87A3E;
  --red: #7A2C1D;
  --gold: #E3B24E;

  --paper: #F3EDE4;
  --paper-dim: #C9BFB2;
  --paper-faint: #8F847A;

  /* Type */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

p { color: var(--paper-dim); }

a { color: var(--ember-bright); text-decoration: none; }
a:hover { color: var(--gold); }

.container { max-width: var(--container-max); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--ember);
  color: #17110D;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 2000;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 1rem;
  color: #17110D;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember-bright);
  margin-bottom: 0.9rem;
}

.text-ember-gradient {
  background: linear-gradient(90deg, var(--ember) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-ember {
  background: linear-gradient(135deg, var(--ember) 0%, var(--ember-deep) 100%);
  color: #1A0F09;
  border: 1px solid transparent;
}
.btn-ember:hover {
  color: #1A0F09;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(217, 102, 43, 0.55);
}

.btn-outline-ember {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-strong);
}
.btn-outline-ember:hover {
  color: var(--paper);
  border-color: var(--ember);
  background: rgba(217, 102, 43, 0.08);
  transform: translateY(-1px);
}

.nav-cta { padding: 0.55rem 1.35rem; font-size: 0.95rem; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.9rem 0;
  background: rgba(15, 13, 12, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(15, 13, 12, 0.92);
  border-bottom-color: var(--line);
  padding: 0.55rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-mark { flex-shrink: 0; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word-main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--paper);
}
.brand-word-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.navbar-nav .nav-link {
  color: var(--paper-dim);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus-visible { color: var(--paper); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 2rem 0;
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(60% 55% at 78% 15%, rgba(217, 102, 43, 0.22), transparent 70%),
    radial-gradient(45% 40% at 15% 80%, rgba(122, 44, 29, 0.22), transparent 70%);
  z-index: -2;
}

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--ink));
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-headline {
  font-size: clamp(2.4rem, 1.9rem + 2.6vw, 4.1rem);
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--paper-dim);
  margin-bottom: 1.9rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--paper-faint);
  max-width: 42ch;
}

.hero-phoenix-wrap {
  position: relative;
  display: inline-block;
  padding: 2rem;
}
.hero-phoenix {
  width: min(100%, 340px);
  filter: drop-shadow(0 20px 50px rgba(217, 102, 43, 0.35));
  animation: phoenix-rise 7s ease-in-out infinite;
}

@keyframes phoenix-rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section { padding: 2rem 0; }
.section-alt { background: var(--charcoal); }

.section-head { margin-bottom: 3rem; }
.section-lede { font-size: 1.08rem; margin-bottom: 0; }

/* =========================================================
   PHILOSOPHY
   ========================================================= */
.philosophy-card {
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.7rem;
  height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.philosophy-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.philosophy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217,102,43,0.18), rgba(227,178,78,0.12));
  color: var(--ember-bright);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.philosophy-card p { margin-bottom: 0; font-size: 0.98rem; }

.philosophy-quote {
  margin-top: 3.5rem;
  padding: 2.4rem 1rem;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.philosophy-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  color: var(--paper);
  margin: 0 auto;
}

/* =========================================================
   SERVICES
   ========================================================= */
.service-card {
  background: linear-gradient(165deg, var(--ink-soft), var(--charcoal-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  height: 100%;
}
.service-distances {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.8rem;
}
.service-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  color: var(--paper-dim);
  font-size: 0.98rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ember);
  transform: rotate(45deg);
}

.platform-note {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--paper-faint);
  font-size: 0.95rem;
}
.platform-note i { color: var(--ember-bright); margin-right: 0.35rem; }

/* =========================================================
   WHY RESURGENCE
   ========================================================= */
.why-card {
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  height: 100%;
}
.why-card h3 { font-size: 1.1rem; }
.why-card p { font-size: 0.95rem; margin-bottom: 0; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-headline {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
  margin-bottom: 1.6rem;
}

.about-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.8rem;
  background: var(--charcoal-2);
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.about-photo figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-faint);
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--line);
}

.stat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.4rem;
  margin: 0;
}
.stat-list > div {
  border-left: 2px solid var(--ember);
  padding-left: 0.85rem;
}
.stat-list dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 0.2rem;
}
.stat-list dd {
  margin: 0;
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
}

.about-copy p { font-size: 1.02rem; }
.about-closing {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--paper);
  font-size: 1.15rem;
}

.credentials-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.credential-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--paper-dim);
}
.credential-pill i { color: var(--ember-bright); }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}
.process-step {
  display: flex;
  gap: 1.6rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.process-step:last-child { border-bottom: 1px solid var(--line); }

.process-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ember-bright);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step h3 { margin-bottom: 0.4rem; }
.process-step p { margin-bottom: 0; }

/* =========================================================
   WHAT ATHLETES CAN EXPECT
   ========================================================= */
.expect-card {
  text-align: center;
  padding: 1.8rem 1.2rem;
  height: 100%;
}
.expect-card i {
  font-size: 1.6rem;
  color: var(--ember-bright);
  margin-bottom: 0.9rem;
  display: inline-block;
}
.expect-card p { font-size: 0.92rem; margin-bottom: 0; }

.testimonial-placeholder {
  margin-top: 3.5rem;
  text-align: center;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  padding: 2.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
}
.testimonial-placeholder i {
  font-size: 1.8rem;
  color: var(--paper-faint);
  margin-bottom: 0.8rem;
  display: inline-block;
}
.testimonial-placeholder p {
  font-size: 0.95rem;
  color: var(--paper-faint);
  margin-bottom: 0;
  font-style: italic;
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-direct {
  margin-top: 1.6rem;
}
.contact-direct a {
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.contact-direct i { margin-right: 0.4rem; }

.contact-form .form-label {
  color: var(--paper-dim);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.label-optional {
  font-weight: 400;
  color: var(--paper-faint);
}

.contact-form .form-control,
.contact-form .form-select {
  background: var(--charcoal-2);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.98rem;
}
.contact-form .form-control::placeholder { color: var(--paper-faint); }
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: var(--charcoal-2);
  color: var(--paper);
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(217, 102, 43, 0.25);
}

.form-help {
  font-size: 0.82rem;
  color: var(--paper-faint);
  margin-top: 0.35rem;
}

.invalid-feedback { font-size: 0.82rem; }

.form-status {
  margin-top: 1.2rem;
  font-size: 0.92rem;
}
.form-status.success { color: #8FBF7A; }
.form-status.error { color: #E07A5F; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--paper);
  margin-bottom: 1rem;
}
.footer-brand:hover { color: var(--gold); }
.footer-statement {
  font-size: 0.92rem;
  margin-bottom: 0;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--paper-dim); font-size: 0.94rem; }
.footer-links a:hover { color: var(--gold); }

.footer-email { font-family: var(--font-mono); font-size: 0.9rem; }

.footer-bottom {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--paper-faint);
}
.footer-bottom p { margin-bottom: 0; color: var(--paper-faint); }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-main { padding: 5rem 0 6rem; }
.legal-main h1 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); margin-bottom: 0.5rem; }
.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper-faint);
  margin-bottom: 2.5rem;
}
.legal-main h2 { font-size: 1.3rem; margin-top: 2.4rem; }
.legal-main p, .legal-main li { color: var(--paper-dim); font-size: 0.98rem; }
.legal-notice {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
  background: var(--charcoal-2);
}
.legal-notice p { margin-bottom: 0; font-size: 0.9rem; }
.back-home { display: inline-block; margin-top: 3rem; font-family: var(--font-mono); font-size: 0.9rem; }

/* =========================================================
   SCROLL REVEAL (progressive enhancement via JS)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-phoenix { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
  .nav-toggle { display: inline-flex; }

  .navbar-collapse {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 360px);
    height: 100vh;
    background: var(--ink-soft);
    border-left: 1px solid var(--line);
    padding: 6rem 1.75rem 2rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }
  .navbar-collapse.show { transform: translateX(0); }

  .navbar-nav { gap: 0.3rem; }
  .navbar-nav .nav-link { padding: 0.85rem 0.2rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-cta { display: inline-block; margin-top: 1.2rem; text-align: center; }

  .section { padding: 4.5rem 0; }
}

@media (max-width: 767.98px) {
  .hero { padding: 4.5rem 0 3.5rem; text-align: left; }
  .stat-list { grid-template-columns: 1fr 1fr; }
  .philosophy-quote p { max-width: 100%; }
}

@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
