/* ============ Iron Forge theme ============ */
:root {
  --bg: #0a0a0a;
  --bg-2: #111214;
  --bg-3: #181a1d;
  --text: #f5f5f5;
  --muted: #a8adb3;
  --accent: #dc2828;
  --accent-dark: #a81e1e;
  --line: #26282c;
  --radius: 10px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 4.5rem 0; }
.section-dark { background: var(--bg-2); }

.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
  border-left: 5px solid var(--accent);
  padding-left: 0.8rem;
}

.section-lede { color: var(--muted); margin-bottom: 2rem; max-width: 60ch; }

h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.03em; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dark); transform: translateY(-1px); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============ Header / Nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1200px; margin: 0 auto; padding: 0.6rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.nav-logo { height: 40px; width: auto; }

.nav-links {
  list-style: none; display: flex; gap: 0.25rem; flex-wrap: wrap;
}

.nav-links a {
  color: var(--text); text-decoration: none;
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.5rem 0.65rem; border-radius: 4px;
}
.nav-links a:hover, .nav-links a:focus-visible,
.nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 0.55rem 0.6rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

/* ============ Hero ============ */
.hero {
  min-height: 88vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 1.25rem;
  background: radial-gradient(ellipse at 50% 30%, #1a1214 0%, var(--bg) 70%);
}

.hero-inner { max-width: 800px; }

.hero-logo { width: min(420px, 80vw); margin: 0 auto 1.5rem; }

.hero-tagline { font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--muted); margin-bottom: 2rem; }

.hero-stats { display: flex; justify-content: center; gap: 2.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-weight: 900; font-size: 2rem; color: var(--accent); }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ============ About ============ */
.about-text p { margin-bottom: 1.1rem; max-width: 70ch; }
.fact-list { list-style: none; margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.6rem; }
.fact-list li { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem; }

/* ============ PRs ============ */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.pr-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1rem; text-align: center; display: flex; flex-direction: column; gap: 0.3rem;
}
.pr-card.pr-featured { border-color: var(--accent); box-shadow: 0 0 24px rgba(220, 40, 40, 0.15); }
.pr-lift { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.pr-num { font-family: var(--font-head); font-weight: 900; font-size: 2.4rem; }
.pr-num small { font-size: 1rem; color: var(--muted); }
.pr-note { font-size: 0.85rem; color: var(--muted); }
.pr-disclaimer { color: var(--muted); font-size: 0.9rem; font-style: italic; }

/* ============ Tables ============ */
.table-wrap { overflow-x: auto; }
.comp-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.comp-table th, .comp-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.comp-table th { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted); }
.badge {
  display: inline-block; padding: 0.25rem 0.7rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; background: var(--bg-3); border: 1px solid var(--line);
}
.badge.gold { background: rgba(212, 175, 55, 0.15); border-color: #d4af37; color: #f0d060; }
.badge.silver { background: rgba(180, 190, 200, 0.12); border-color: #9aa2ab; color: #cfd6dd; }
.table-note { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }

/* ============ Timeline ============ */
.timeline { list-style: none; position: relative; padding-left: 1.5rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.5rem; top: 0.35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(220, 40, 40, 0.2);
}
.tl-year { font-family: var(--font-head); font-weight: 900; color: var(--accent); font-size: 1.1rem; }
.tl-body h3 { margin: 0.25rem 0 0.4rem; }
.tl-body p { color: var(--muted); max-width: 65ch; }

/* ============ Gallery ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2.5rem; }
.gallery-item {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-item figcaption { padding: 0.7rem 1rem; font-size: 0.9rem; color: var(--muted); }

.bulk-stats { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.bulk-stat { text-align: center; }
.bulk-num { display: block; font-family: var(--font-head); font-weight: 900; font-size: 1.8rem; color: var(--accent); }
.bulk-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.bulk-arrow { font-size: 2rem; color: var(--muted); }

.approach-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.approach-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.approach-card h3 { color: var(--accent); margin-bottom: 0.5rem; }
.approach-card p { color: var(--muted); font-size: 0.95rem; }

/* ============ Training log ============ */
.log-feed { display: flex; flex-direction: column; gap: 1.25rem; }
.log-entry {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.25rem;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem;
}
.log-date { text-align: center; }
.log-day { display: block; font-family: var(--font-head); font-weight: 900; font-size: 2rem; color: var(--accent); line-height: 1; }
.log-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.log-body h3 { margin-bottom: 0.5rem; }
.log-body ul { margin: 0 0 0.75rem 1.2rem; color: var(--text); }
.log-body li { margin-bottom: 0.25rem; }
.log-note { color: var(--muted); font-size: 0.92rem; font-style: italic; }

/* ============ Next comp / Calendar ============ */
.next-comp-card {
  background: var(--bg-3); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 2rem; box-shadow: 0 0 32px rgba(220, 40, 40, 0.12);
}
.next-comp-card h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.nc-meta { color: var(--muted); margin-bottom: 1.5rem; }
.event-list { list-style: none; margin-bottom: 1.25rem; }
.event-list li {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.event-list span { color: var(--accent); font-weight: 700; }
.nc-note { color: var(--muted); font-size: 0.9rem; font-style: italic; }

.calendar-list { display: flex; flex-direction: column; gap: 1rem; }
.calendar-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.25rem; align-items: center;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
}
.cal-date { text-align: center; }
.cal-month { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; }
.cal-day { display: block; font-family: var(--font-head); font-weight: 900; font-size: 2.2rem; line-height: 1; }
.cal-year { font-size: 0.85rem; color: var(--muted); }
.cal-body h3 { margin-bottom: 0.25rem; }
.cal-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.5rem; }
.calendar-item.tba { opacity: 0.75; }

/* ============ Film ============ */
.film-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.film-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; text-decoration: none; color: var(--text);
  transition: border-color 0.2s ease, transform 0.15s ease; display: block;
}
.film-card:hover, .film-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.film-thumb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.2rem; margin-bottom: 1rem;
}
.film-card h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.film-card p { color: var(--muted); font-size: 0.92rem; }

/* ============ Coaching ============ */
.coaching-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.coaching-offers h3 { color: var(--accent); margin: 1.25rem 0 0.6rem; }
.coaching-offers h3:first-child { margin-top: 0; }
.coaching-offers ul { margin-left: 1.2rem; }
.coaching-offers li { margin-bottom: 0.6rem; color: var(--muted); }
.coaching-offers li strong { color: var(--text); }

/* ============ Forms ============ */
.contact-form {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; max-width: 640px;
}
.contact-form h3 { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 0.4rem; padding: 0.75rem 0.9rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); font: inherit; font-weight: 400;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(220, 40, 40, 0.25);
}
.form-status { margin-top: 0.9rem; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: #7dd87d; }
.form-status.err { color: var(--accent); }

/* ============ Press kit ============ */
.press-sheet {
  background: #fff; color: #111; border-radius: var(--radius);
  padding: 2.5rem; max-width: 800px; margin: 0 auto 1.75rem;
}
.press-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.75rem; }
.press-logo { width: 170px; filter: invert(1); }
.press-class { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: 1.3rem; }
.press-tag { color: #555; }
.press-sheet h3 { color: var(--accent-dark); margin-bottom: 0.5rem; font-size: 1rem; letter-spacing: 0.06em; }
.press-bio { margin-bottom: 1.5rem; }
.press-bio p { color: #333; font-size: 0.95rem; }
.press-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.press-stats div {
  background: #f4f4f4; border-radius: 8px; padding: 0.9rem; text-align: center;
  font-size: 0.8rem; color: #555; text-transform: uppercase; letter-spacing: 0.05em;
}
.press-stats span { display: block; font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: #111; }
.press-next p { color: #333; font-size: 0.95rem; }
.press-actions { text-align: center; }
.press-hint { color: var(--muted); font-size: 0.85rem; margin-top: 0.6rem; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; text-align: center; }
.footer-logo { width: 150px; margin: 0 auto 1rem; }
.footer-tag { color: var(--muted); margin-bottom: 0.5rem; }
.footer-copy { color: var(--muted); font-size: 0.85rem; }

/* ============ Chat widget ============ */
.chat-widget { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200; }

.chat-toggle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(220, 40, 40, 0.45);
  transition: transform 0.15s ease, background 0.2s ease;
}
.chat-toggle:hover { background: var(--accent-dark); transform: scale(1.06); }

.chat-panel {
  position: absolute; right: 0; bottom: 72px;
  width: min(360px, calc(100vw - 2.5rem)); height: 480px; max-height: 70vh;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.chat-panel[hidden] { display: none; }

.chat-header {
  background: var(--accent); color: #fff; padding: 0.9rem 1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: #7dd87d; flex-shrink: 0; }
.chat-header div { flex: 1; }
.chat-header strong { display: block; font-size: 0.95rem; }
.chat-header small { opacity: 0.85; font-size: 0.75rem; }
.chat-close {
  background: none; border: none; color: #fff; font-size: 1.6rem;
  cursor: pointer; line-height: 1; padding: 0 0.25rem;
}

.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.chat-msg { max-width: 85%; padding: 0.65rem 0.9rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.45; }
.chat-msg.bot { background: var(--bg); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1rem 0.75rem; }
.chat-chip {
  background: var(--bg); border: 1px solid var(--accent); color: var(--text);
  border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.8rem; cursor: pointer;
}
.chat-chip:hover { background: var(--accent); color: #fff; }

.chat-input { display: flex; border-top: 1px solid var(--line); padding: 0.6rem; gap: 0.5rem; }
.chat-input input {
  flex: 1; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 0.6rem 0.8rem; font: inherit; font-size: 0.9rem;
}
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button {
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  width: 44px; cursor: pointer; font-size: 1.1rem;
}
.chat-input button:hover { background: var(--accent-dark); }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 0.5rem 1.25rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--line); }
  .coaching-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 3rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .log-entry, .calendar-item { grid-template-columns: 70px 1fr; gap: 0.9rem; padding: 1.1rem; }
  .press-sheet { padding: 1.5rem; }
  .press-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 1.5rem; }
  .chat-panel { height: 440px; }
}

/* ============ Print (press kit) ============ */
@media print {
  .site-header, .chat-widget, .press-actions, #contact, .site-footer,
  .hero, #about, #prs, #history, #journey, #gallery, #training,
  #next-comp, #calendar, #film, #coaching { display: none !important; }
  body { background: #fff; }
  #press { padding: 0; }
  #press .section-title, #press .section-lede { display: none; }
  .press-sheet { box-shadow: none; border: 1px solid #ddd; margin: 0; max-width: none; }
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0.5rem 0;
  color: #fff;
}
