/* ═══════════════════════════════════════════════════
   DARK ENDURANCE COACHING — v2
   Shared Stylesheet
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@700&display=swap');

/* ── Variables ─────────────────────────────────── */
:root {
  --black:       #0a0a0a;
  --dark:        #111111;
  --card:        #181818;
  --border:      #2a2a2a;
  --white:       #f5f5f5;
  --muted:       #888888;
  --accent:      #cc1a1a;
  --accent-h:    #e02020;
  --nav-h:       72px;
  --max-w:       1200px;
  --r:           4px;
  --ease:        0.2s ease;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--white); text-decoration: none; }
ul { list-style: none; }

/* ── Chinese Typography ─────────────────────────── */
:lang(zh-Hant) p,
:lang(zh-Hant) li,
:lang(zh-Hant) label,
:lang(zh-Hant) span:not(.pkg-badge) {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
:lang(zh-Hant) h1,
:lang(zh-Hant) h2,
:lang(zh-Hant) h3 {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  letter-spacing: 0.01em;
}
:lang(zh-Hant) .section-label,
:lang(zh-Hant) .nav-links a,
:lang(zh-Hant) .btn-primary,
:lang(zh-Hant) .btn-secondary,
:lang(zh-Hant) .submit-btn {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0.04em;
}

/* ── Accessibility ──────────────────────────────── */
.skip-link {
  position: absolute; top: -48px; left: 0;
  background: var(--accent); color: #fff;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  text-decoration: none; z-index: 9999;
  transition: top var(--ease);
}
.skip-link:focus { top: 0; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ── Type Scale ─────────────────────────────────── */
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; line-height: 1.2; }
p  { line-height: 1.72; color: #ccc; }

.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: block;
}
.muted { color: var(--muted); }

/* ── Layout Helpers ─────────────────────────────── */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
section {
  padding: 96px 48px;
  scroll-margin-top: var(--nav-h);
}
.full-bleed {
  padding: 96px 48px;
  scroll-margin-top: var(--nav-h);
  background: var(--dark);
}

/* ══════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════ */
header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 48px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo .nav-shield   { height: 40px; width: auto; }
.nav-logo .nav-wordmark { height: 26px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); transition: color var(--ease);
}
.nav-links a:hover { color: var(--white); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-btn {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: var(--r);
  transition: all var(--ease); text-decoration: none;
}
.lang-btn:hover { color: var(--white); border-color: #666; }

.nav-cta {
  font-size: 12px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; background: var(--accent); color: #fff;
  padding: 9px 18px; border-radius: var(--r);
  transition: background var(--ease); text-decoration: none;
}
.nav-cta:hover { background: var(--accent-h); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--white);
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: currentColor; border-radius: 1px;
  transition: all var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
#hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-bg-text {
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  font-size: clamp(180px, 22vw, 300px);
  font-weight: 900; color: rgba(255,255,255,0.022);
  letter-spacing: -0.05em; pointer-events: none; user-select: none;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
#hero h1 { max-width: 820px; margin-bottom: 28px; }
.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px); color: #aaa;
  max-width: 620px; margin-bottom: 44px; line-height: 1.65;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  padding: 14px 28px; border-radius: var(--r);
  transition: background var(--ease); border: none; cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-h); color: #fff; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  padding: 14px 28px; border-radius: var(--r);
  border: 1px solid var(--border); transition: border-color var(--ease);
  text-decoration: none;
}
.btn-secondary:hover { border-color: #888; }

.hero-rule { width: 40px; height: 2px; background: var(--accent); margin-top: 64px; }

/* ══════════════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════════════ */
#trust-bar {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 48px;
}
.trust-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 20px 36px;
  align-items: center; justify-content: center;
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 500; color: #bbb;
  white-space: nowrap;
}
.trust-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   WHO THIS IS FOR
══════════════════════════════════════════════════ */
#who .who-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start; margin-top: 48px;
}
.who-intro h2 { margin-bottom: 16px; }
.who-intro p  { color: var(--muted); font-size: 15px; line-height: 1.7; }

.who-list { display: flex; flex-direction: column; gap: 18px; }
.who-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; color: #ccc; line-height: 1.65;
}
.who-list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 9px;
}

/* ══════════════════════════════════════════════════
   HOW COACHING WORKS
══════════════════════════════════════════════════ */
#how .how-steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 48px; margin-top: 48px;
}
.how-step { border-top: 2px solid var(--border); padding-top: 28px; }
.step-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.how-step h3 { font-size: 19px; margin-bottom: 10px; }
.how-step p  { font-size: 14px; color: #aaa; line-height: 1.72; }

/* ══════════════════════════════════════════════════
   ATHLETE STORIES
══════════════════════════════════════════════════ */
#stories .stories-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px; margin-top: 48px;
}
.story-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
}
.story-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
}
.story-placeholder {
  width: 100%; aspect-ratio: 16/9; background: #1e1e1e;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
}
.story-body { padding: 28px 32px 32px; }
.story-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.story-card h3 { font-size: 19px; margin-bottom: 14px; }
.story-card p  { font-size: 14px; color: #aaa; line-height: 1.72; }
.story-note {
  font-size: 11px; color: var(--muted); margin-top: 14px;
  font-style: italic; line-height: 1.5;
}
.story-kit-photo {
  display: block; width: 100%; max-width: 260px;
  margin: 20px auto 0; border-radius: 4px; object-fit: cover;
}
.story-kit-caption {
  font-size: 11px; color: var(--muted); text-align: center;
  font-style: italic; margin-top: 6px; line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   COACHING PACKAGES
══════════════════════════════════════════════════ */
#coaching .pkg-intro {
  font-size: 15px; color: var(--muted); max-width: 560px;
  margin-top: 8px; margin-bottom: 48px;
}
.packages-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.package {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 36px 28px;
  display: flex; flex-direction: column; position: relative;
}
.package.featured { border-color: var(--accent); }

.pkg-badge {
  position: absolute; top: -1px; right: 20px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 0 0 4px 4px;
}
.pkg-tier {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.pkg-price {
  font-size: 46px; font-weight: 700; line-height: 1;
  margin-bottom: 4px;
}
.pkg-price sup { font-size: 18px; vertical-align: super; }
.pkg-currency { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.pkg-desc {
  font-size: 13px; color: var(--muted);
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border); line-height: 1.5;
}
.pkg-features {
  display: flex; flex-direction: column; gap: 11px;
  flex: 1; margin-bottom: 28px;
}
.pkg-features li {
  font-size: 13px; color: #ccc;
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.5;
}
.pkg-features li::before {
  content: '—'; color: var(--accent); flex-shrink: 0; margin-top: 1px;
}
.pkg-cta {
  display: block; text-align: center;
  padding: 11px 16px; border: 1px solid var(--border); border-radius: var(--r);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--white); background: transparent;
  transition: all var(--ease); cursor: pointer; width: 100%;
  text-decoration: none; font-family: inherit;
}
.pkg-cta:hover,
.package.featured .pkg-cta {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.package.featured .pkg-cta:hover { background: var(--accent-h); }

.pkg-note {
  margin-top: 28px; font-size: 13px; color: var(--muted); text-align: center;
}
.pkg-note a { color: var(--accent); }

/* ══════════════════════════════════════════════════
   ABOUT NICK
══════════════════════════════════════════════════ */
#about .about-grid {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 72px; align-items: start; margin-top: 40px;
}
.about-body h2 { margin-bottom: 32px; }
.about-pull {
  border-left: 2px solid var(--accent); padding-left: 24px;
  margin: 32px 0; font-size: 16px; color: #ccc; line-height: 1.7;
  font-style: italic;
}
.about-body p { font-size: 15px; color: #ccc; margin-bottom: 18px; line-height: 1.72; }
.about-body p:last-of-type { margin-bottom: 0; }

.about-sidebar {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 28px;
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.sidebar-heading {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.cred-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.cred-item { display: flex; gap: 11px; align-items: flex-start; }
.cred-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 7px;
}
.cred-item strong { display: block; font-size: 12px; color: var(--white); margin-bottom: 2px; }
.cred-item span   { font-size: 11px; color: var(--muted); }

.race-section { border-top: 1px solid var(--border); padding-top: 20px; }
.race-section .sidebar-heading { margin-bottom: 14px; }
.race-item {
  display: flex; gap: 10px; font-size: 11px; color: #aaa;
  padding: 7px 0; border-bottom: 1px solid var(--border); line-height: 1.45;
}
.race-item:last-child { border-bottom: none; }
.race-yr { color: var(--accent); font-weight: 700; flex-shrink: 0; width: 32px; }

/* ══════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════ */
#gallery .gallery-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 6px; margin-top: 36px;
}
.g-item { position: relative; overflow: hidden; background: var(--card); }
.g-item.wide { grid-column: span 2; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 4/3; transition: transform 0.4s ease;
}
.g-item.wide img { aspect-ratio: 16/9; }
.g-item:hover img { transform: scale(1.04); }
.g-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 12px 10px; font-size: 11px; color: rgba(255,255,255,0.75);
}

/* ══════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════ */
#faq .faq-inner { max-width: 720px; margin: 0 auto; }
#faq h2 { margin-bottom: 40px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--white);
  font-family: inherit; font-size: 15px; font-weight: 600;
  text-align: left; padding: 22px 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: color var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  width: 18px; height: 18px; flex-shrink: 0; position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: ''; position: absolute; background: currentColor; border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}
.faq-icon::before { width: 2px; height: 10px; top: 4px; left: 8px; }
.faq-icon::after  { width: 10px; height: 2px; top: 8px; left: 4px; }
.faq-item.active .faq-icon::before { transform: rotate(90deg); opacity: 0; }
.faq-a {
  display: none; padding-bottom: 22px;
  font-size: 14px; color: #aaa; line-height: 1.72;
}
.faq-item.active .faq-a { display: block; }

/* ══════════════════════════════════════════════════
   APPLICATION FORM
══════════════════════════════════════════════════ */
#apply .apply-inner { max-width: 640px; margin: 0 auto; }
#apply h2 { margin-bottom: 12px; }
.apply-lead { font-size: 15px; color: var(--muted); margin-bottom: 40px; line-height: 1.65; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.form-group label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card); border: 1px solid var(--border); color: var(--white);
  padding: 12px 14px; font-size: 15px; font-family: inherit;
  border-radius: var(--r); transition: border-color var(--ease); width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group select option { background: var(--dark); }

/* Honeypot — hidden from humans */
.hp { display: none !important; visibility: hidden; }

.form-consent {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 28px;
}
.form-consent input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--accent);
}
.form-consent label {
  font-size: 13px; color: var(--muted); line-height: 1.55;
  cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400;
}
.form-consent label a { color: var(--accent); text-decoration: underline; }

.submit-btn {
  width: 100%; padding: 16px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  border: none; border-radius: var(--r); cursor: pointer;
  transition: background var(--ease); font-family: inherit;
}
.submit-btn:hover:not(:disabled) { background: var(--accent-h); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.form-status {
  margin-top: 20px; padding: 14px 16px; border-radius: var(--r);
  font-size: 14px; display: none; line-height: 1.5;
}
.form-status.success {
  display: block; background: rgba(0,180,80,0.08);
  border: 1px solid rgba(0,180,80,0.25); color: #5eca8a;
}
.form-status.error {
  display: block; background: rgba(204,26,26,0.08);
  border: 1px solid rgba(204,26,26,0.25); color: #e08080;
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
  background: var(--dark); border-top: 1px solid var(--border);
  padding: 56px 48px 28px;
}
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-shield   { width: 52px;  height: auto; margin-bottom: 10px; }
.footer-wordmark { width: 88px; height: auto; margin-bottom: 12px; }
.footer-tagline  { font-size: 13px; color: var(--muted); font-style: italic; }
.footer-col h4 {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 13px; color: #aaa;
  margin-bottom: 10px; transition: color var(--ease);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w); margin: 0 auto; padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #about .about-grid { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
  #who .who-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  nav { padding: 0 20px; }
  section, .full-bleed { padding: 64px 24px; }
  #trust-bar { padding: 20px 24px; }
  footer { padding: 48px 24px 24px; }

  /* Mobile nav */
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--black); flex-direction: column;
    justify-content: center; align-items: center; gap: 36px;
    transform: translateX(100%); transition: transform 0.3s ease; z-index: 199;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 18px; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  /* Grids */
  #how .how-steps { grid-template-columns: 1fr; gap: 28px; }
  #stories .stories-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  #gallery .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-item.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trust-item { white-space: normal; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  #gallery .gallery-grid { grid-template-columns: 1fr; }
  .g-item.wide { grid-column: span 1; }
}
