/* ============================================================
   TriLife Coaching — site styles
   ============================================================ */

:root {
  --sand: #c8b89a;
  --sand-light: #e8ddd0;
  --sand-dark: #a89070;
  --charcoal: #2c2c2c;
  --charcoal-light: #4a4a4a;
  --white: #faf9f7;
  --cream: #f5f0e8;
  --accent: #8b7355;
  --nav-height: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
}

img { max-width: 100%; }

/* Fixed nav overlaps anchor targets without this */
#about, #approach, #races, #packages, #contact {
  scroll-margin-top: var(--nav-height);
}

/* Screen-reader-only helper (skip link) */
.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: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus { transform: translateY(0); }

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(250, 249, 247, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 184, 154, 0.3);
}

.nav-logo { display: flex; }

.nav-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--sand-dark); }

.nav-cta {
  background: var(--charcoal);
  color: var(--white) !important;
  padding: 10px 22px;
  letter-spacing: 1.5px;
  transition: background 0.3s !important;
}

.nav-cta:hover { background: var(--sand-dark) !important; color: var(--white) !important; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 24px) 24px 64px;
  text-align: center;
  /* Dark scrim over the photo keeps the headline readable.
     The image lives entirely inside this first screen — the next
     section has its own solid background, so it "ends" at the fold. */
  background:
    linear-gradient(180deg,
      rgba(28, 24, 20, 0.35) 0%,
      rgba(28, 24, 20, 0.42) 45%,
      rgba(28, 24, 20, 0.68) 100%),
    url("assets/hero.jpg") center 55% / cover no-repeat;
  background-color: var(--sand-light); /* fallback while the photo loads */
}

.hero-content {
  z-index: 1;
  max-width: 760px;
  animation: fadeUp 1.2s ease both;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sand-light);
  margin-bottom: 24px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-title em {
  font-style: italic;
  color: var(--sand-light);
}

.hero-sub {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(250, 249, 247, 0.92);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.8;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(250, 249, 247, 0.8);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(rgba(250, 249, 247, 0.8), transparent);
  animation: scrollCue 2s ease-in-out infinite;
}

/* Hide the scroll cue when the viewport is too short for it to clear
   the buttons (also on touch layouts where it adds little). */
@media (max-height: 760px), (max-width: 900px) {
  .hero-scroll { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: var(--charcoal);
  color: var(--white);
  padding: 14px 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--charcoal);
  transition: all 0.3s;
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover {
  background: transparent;
  color: var(--charcoal);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  padding: 14px 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--sand);
  transition: all 0.3s;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--sand);
  color: var(--white);
}

/* On the photo hero, the outline button needs light treatment */
.hero .btn-primary:hover {
  background: rgba(250, 249, 247, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.hero .btn-secondary {
  border-color: rgba(250, 249, 247, 0.7);
  color: var(--white);
}

.hero .btn-secondary:hover {
  background: rgba(250, 249, 247, 0.16);
  color: var(--white);
}

/* ---------- STATS ---------- */
.stats {
  background: var(--charcoal);
  padding: 60px 48px;
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--sand-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sand);
}

/* ---------- ABOUT ---------- */
.about {
  padding: 120px 48px;
  background: var(--cream);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap { position: relative; }

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  right: 16px; bottom: 16px;
  border: 2px solid var(--sand);
  z-index: 0;
}

.about-image-wrap img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
  display: block;
}

.section-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 28px;
}

.section-title em { font-style: italic; color: var(--sand-dark); }

.about-bio p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--charcoal-light);
  margin-bottom: 18px;
}

.about-credentials {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--charcoal);
}

.cred-dot {
  width: 6px; height: 6px;
  background: var(--sand-dark);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- COACHING APPROACH ---------- */
.approach {
  padding: 120px 48px;
  background: var(--white);
}

.approach-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.approach-header {
  text-align: center;
  margin-bottom: 72px;
}

.approach-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  background: var(--sand-light);
}

.approach-card {
  background: var(--white);
  padding: 52px 36px;
  text-align: center;
  transition: background 0.3s;
  flex: 1 1 300px;
  max-width: calc(33.333% - 2px);
}

.approach-card:hover { background: var(--cream); }

.approach-icon {
  width: 80px; height: 80px;
  margin: 0 auto 28px;
}

.approach-icon svg {
  width: 100%;
  height: 100%;
}

.approach-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.approach-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--charcoal-light);
}

/* ---------- RACE HISTORY ---------- */
.races {
  padding: 120px 48px;
  background: var(--cream);
}

.races-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.races-header {
  text-align: center;
  margin-bottom: 72px;
}

.races-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.race-photo-wrap { position: relative; }

.race-photo-wrap::after {
  content: 'Arizona Ironman 2026 · 22nd Overall Female Finisher';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(44, 44, 44, 0.88);
  color: var(--sand-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: center;
}

.race-photo-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.race-category { margin-bottom: 36px; }

.race-category-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sand-dark);
  border-bottom: 1px solid var(--sand-light);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.race-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(200, 184, 154, 0.2);
  font-size: 13px;
  color: var(--charcoal-light);
}

.race-name { font-weight: 500; color: var(--charcoal); }
.race-detail { font-size: 11px; letter-spacing: 0.5px; color: var(--sand-dark); }

/* ---------- PACKAGES ---------- */
.packages {
  padding: 120px 48px;
  background: var(--charcoal);
}

.packages-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.packages-header {
  text-align: center;
  margin-bottom: 20px;
}

.packages-header .section-title { color: var(--sand-light); }
.packages-header .section-eyebrow { color: var(--sand); }

.packages-note {
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--sand);
  margin: 0 auto 60px;
  max-width: 640px;
  line-height: 1.7;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.package-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(200, 184, 154, 0.2);
  padding: 48px 36px;
  transition: background 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.package-card.featured {
  background: rgba(200, 184, 154, 0.12);
  border-color: var(--sand);
}

.package-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--sand);
  color: var(--charcoal);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 16px;
}

.package-tier {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 12px;
}

.package-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--sand-light);
  margin-bottom: 24px;
}

.package-divider {
  height: 1px;
  background: rgba(200, 184, 154, 0.25);
  margin-bottom: 28px;
}

.package-items {
  list-style: none;
  margin-bottom: 36px;
  flex-grow: 1;
}

.package-items li {
  font-size: 13px;
  color: rgba(232, 221, 208, 0.8);
  padding: 7px 0 7px 18px;
  position: relative;
  line-height: 1.5;
}

.package-items li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--sand);
}

.package-cta {
  display: block;
  text-align: center;
  padding: 12px 24px;
  border: 1px solid var(--sand);
  color: var(--sand-light);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.package-cta:hover {
  background: var(--sand);
  color: var(--charcoal);
}

.packages-includes {
  margin-top: 60px;
  border: 1px solid rgba(200, 184, 154, 0.25);
  padding: 44px 48px;
}

.includes-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--sand-light);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: 1px;
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.include-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(232, 221, 208, 0.8);
  line-height: 1.5;
}

.include-dot {
  width: 5px; height: 5px;
  background: var(--sand);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 120px 48px;
  background: var(--cream);
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--charcoal-light);
  margin-bottom: 36px;
}

.contact-alt {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.contact-alt a { color: var(--accent); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--charcoal);
  padding: 40px 48px;
  text-align: center;
}

footer img { height: 56px; margin-bottom: 20px; opacity: 0.7; }

.footer-text {
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(200, 184, 154, 0.5);
}

/* ---------- ANIMATION ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollCue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  nav { padding: 14px 24px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(250, 249, 247, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 184, 154, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-links.open { max-height: 360px; }

  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 16px; }
  .nav-links .nav-cta { margin: 12px 0 20px; }

  .about-inner, .races-grid { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .approach-card { flex-basis: 100%; max-width: 100%; }
  .includes-grid { grid-template-columns: 1fr 1fr; }
  .stats { gap: 40px; padding: 48px 24px; }
  .hero, .about, .approach, .races, .packages, .contact {
    padding-left: 24px; padding-right: 24px;
  }
  .packages-includes { padding: 36px 24px; }
}

@media (max-width: 560px) {
  .includes-grid { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .about, .approach, .races, .packages, .contact {
    padding-top: 88px; padding-bottom: 88px;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
