/* =====================
   NOMAD RUNNERS COACHING
   Kristján Chapman
   ===================== */

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

:root {
  --black:   #0a0a0a;
  --white:   #f5f4f0;
  --off:     #141414;
  --off2:    #1a1a1a;
  --gray:    #888;
  --light:   #c8c8c4;
  --accent:  #e8e0d0;
  --green:   #2d5a27;
  --green-l: #3a7233;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.nav-brand { display: flex; flex-direction: column; gap: 1px; }

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: .1em;
  color: var(--white);
  line-height: 1;
}

.nav-sub {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links > a {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
  transition: color .2s;
}

.nav-links > a:hover { color: var(--white); }

.nav-social {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 0 8px;
  border-left: 1px solid var(--border2);
  border-right: 1px solid var(--border2);
}

.nav-social a {
  color: var(--gray);
  display: flex;
  align-items: center;
  transition: color .2s;
  text-decoration: none;
}

.nav-social a:hover { color: var(--white); }

.nav-cta {
  background: var(--white);
  color: var(--black) !important;
  padding: 9px 20px;
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 500;
  transition: background .2s !important;
  text-decoration: none !important;
}

.nav-cta:hover { background: var(--accent) !important; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92vh;
  border-bottom: 1px solid var(--border);
}

.hero-left {
  padding: 64px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
}

.hero-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(68px, 9vw, 100px);
  line-height: .88;
  color: var(--white);
  animation: fadeUp .8s ease both;
}

.hero-h1 span { color: var(--green-l); }

.hero-sub {
  font-size: 14px;
  color: var(--light);
  line-height: 1.85;
  max-width: 380px;
  margin-top: 28px;
  font-weight: 300;
  animation: fadeUp .8s .12s ease both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  animation: fadeUp .8s .22s ease both;
}

.hero-content { padding-bottom: 52px; }

.hero-stats {
  display: flex;
  border-top: 1px solid var(--border);
}

.stat {
  flex: 1;
  padding: 24px 0;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }
.stat:not(:first-child) { padding-left: 24px; }

.stat-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--white);
  line-height: 1;
}

.stat-l {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 5px;
}

.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--off);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(12%);
}

/* ---- ACHIEVEMENTS STRIP ---- */
.achievements {
  background: var(--off);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.achievements::-webkit-scrollbar { display: none; }

.ach-scroll {
  display: flex;
  flex-direction: row;
  width: max-content;
}

.ach-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 26px 40px;
  border-right: 1px solid var(--border);
  transition: background .2s;
  white-space: nowrap;
}

.ach-item:last-child { border-right: none; }
.ach-item:hover { background: rgba(255,255,255,.03); }

.ach-pos {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--green-l);
}

.ach-race {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
}

.ach-detail {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: .02em;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border2);
  color: var(--white);
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-ghost:hover { border-color: rgba(255,255,255,.4); }

/* ---- SHARED ---- */
.section-label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-l);
  margin-bottom: 20px;
}

/* ---- ABOUT ---- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.about-left {
  padding: 80px 40px;
  border-right: 1px solid var(--border);
}

.about-h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 54px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 28px;
}

.about-body {
  font-size: 14px;
  color: var(--light);
  line-height: 1.9;
  font-weight: 300;
  max-width: 430px;
}

.about-body p + p { margin-top: 18px; }

.about-philosophy {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.philosophy-line {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  color: var(--white);
  letter-spacing: .04em;
  line-height: 1.2;
  display: block;
}

.about-right {
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-img-wrap {
  flex: 1;
  overflow: hidden;
  max-height: 320px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: grayscale(10%);
  transition: transform .6s ease;
}

.about-img-wrap:hover .about-img { transform: scale(1.02); }

/* ---- TESTIMONIALS ---- */
.testimonials {
  position: relative;
  min-height: 180px;
}

.testimonial-track { position: relative; }

.testimonial {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity .6s ease;
  pointer-events: none;
}

.testimonial.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.testimonial-text {
  font-size: 14px;
  color: var(--light);
  line-height: 1.8;
  font-weight: 300;
  font-style: italic;
  border-left: 2px solid var(--green);
  padding-left: 20px;
}

.testimonial-attr {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 14px;
  padding-left: 20px;
}

.testimonial-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-left: 20px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray);
  border: none;
  cursor: pointer;
  transition: background .2s;
  padding: 0;
}

.dot.active { background: var(--white); }

/* ---- EDUCATION & EXPERTISE ---- */
.education {
  padding: 72px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--off);
}

.education-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.education-h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
}

.education-intro {
  font-size: 14px;
  color: var(--light);
  line-height: 1.85;
  font-weight: 300;
}

.education-row {
  display: flex;
  border-top: 1px solid var(--border);
}

.edu-item {
  flex: 1;
  padding: 28px 32px 0;
  border-right: 1px solid var(--border);
}

.edu-item:last-child { border-right: none; }
.edu-item:first-child { padding-left: 0; }

.edu-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--green-l);
  margin-bottom: 10px;
}

.edu-degree {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.4;
}

.edu-place {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

/* ---- GALLERY STRIP ---- */
.gallery-strip {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  height: 280px;
  background: var(--off);
}

.gallery-track {
  display: flex;
  height: 100%;
  animation: galleryScroll 30s linear infinite;
  width: max-content;
}

.gallery-track:hover { animation-play-state: paused; }

.gallery-slide {
  height: 100%;
  width: 340px;
  flex-shrink: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%);
  transition: filter .3s;
}

.gallery-slide:hover img { filter: grayscale(0%); }

/* Per-image positioning to keep subject in frame */
.gallery-slide:nth-child(2) img { object-position: center 20%; } /* Photo 05 — UTMB finish */
.gallery-slide:nth-child(3) img { object-position: center 15%; } /* Photo 02 — night road race */
.gallery-slide:nth-child(5) img { object-position: center center; } /* Photo 07 — timing frame, centered */
.gallery-slide:nth-child(8) img { object-position: center 20%; } /* Photo 05 duplicate */
.gallery-slide:nth-child(9) img { object-position: center 15%; } /* Photo 02 duplicate */

@keyframes galleryScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- COACHING ---- */
.coaching {
  padding: 80px 40px;
  border-bottom: 1px solid var(--border);
}

.coaching-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
  gap: 24px;
}

.coaching-h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 54px;
  line-height: 1;
  color: var(--white);
}

.coaching-intro {
  font-size: 13px;
  color: var(--gray);
  max-width: 280px;
  text-align: right;
  line-height: 1.75;
}

.packages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pkg {
  background: var(--black);
  padding: 44px 36px;
  position: relative;
  transition: background .2s;
  display: flex;
  flex-direction: column;
}

.pkg:hover { background: #0e0e0e; }
.pkg.featured { background: var(--off2); }
.pkg.featured:hover { background: #1d1d1d; }

.pkg-tag {
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}

.pkg-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
}

.pkg.addon .pkg-name { font-size: 28px; }

.pkg-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.pkg-price {
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.02em;
}

.pkg-per {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray);
}

.pkg-month {
  font-size: 11px;
  color: #555;
  margin-bottom: 24px;
  letter-spacing: .03em;
}

.pkg-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 300;
}

.pkg-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.pkg-features li {
  font-size: 12px;
  color: var(--light);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.5;
}

.pkg-features li::before {
  content: '—';
  color: var(--green);
  font-size: 10px;
  flex-shrink: 0;
  padding-top: 2px;
}

.pkg-note {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid #2a2a2a;
  padding: 6px 10px;
  display: inline-block;
  margin-bottom: 20px;
}

.pkg-cta {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color .2s;
  margin-top: auto;
}

.pkg-cta:hover { color: var(--white); }

.pkg-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--white);
  padding: 3px 9px;
  font-weight: 500;
}

.pkg-policy {
  margin-top: 20px;
  font-size: 11px;
  color: #3a3a3a;
  letter-spacing: .04em;
  text-align: center;
}

/* ---- BOOKING ---- */
.booking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.booking-left {
  padding: 80px 40px;
  border-right: 1px solid var(--border);
}

.booking-h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 62px;
  line-height: .9;
  color: var(--white);
  margin-bottom: 24px;
}

.booking-body {
  font-size: 14px;
  color: var(--light);
  line-height: 1.85;
  font-weight: 300;
  max-width: 360px;
  margin-bottom: 36px;
}

/* Calendly override for dark theme */
.calendly-inline-widget {
  border: 1px solid var(--border);
}

.booking-right { padding: 80px 40px; }

.booking-h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: var(--white);
  margin-bottom: 28px;
}

.form-label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: var(--off2);
  border: 1px solid var(--border);
  padding: 13px 16px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  margin-bottom: 20px;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}

.form-input:focus { border-color: var(--border2); }
.form-input::placeholder { color: #444; }
.form-textarea { height: 110px; resize: vertical; }

.form-submit {
  width: 100%;
  background: var(--white);
  color: var(--black);
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .2s;
}

.form-submit:hover { background: var(--accent); }
/* ---- PLAN CONTEXT BANNER ---- */
.plan-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--off2);
  border: 1px solid var(--green);
  border-left: 3px solid var(--green);
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--light);
  letter-spacing: .03em;
  animation: fadeUp .3s ease both;
}

.plan-context-clear {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 14px;
  padding: 0 0 0 12px;
  line-height: 1;
  transition: color .2s;
}

.plan-context-clear:hover { color: var(--white); }


/* ---- FOOTER ---- */
.footer {
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

.footer-left { display: flex; flex-direction: column; gap: 4px; }

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: .1em;
  color: var(--gray);
}

.footer-sub {
  font-size: 11px;
  color: #444;
  letter-spacing: .05em;
}

.footer-tagline {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #333;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 11px;
  color: #555;
  text-decoration: none;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
}

.footer-links a:hover { color: var(--gray); }

.footer-copy {
  font-size: 11px;
  color: #2e2e2e;
  letter-spacing: .05em;
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
  .packages { grid-template-columns: repeat(2, 1fr); }
  .education-row { flex-wrap: wrap; }
  .edu-item {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .edu-item:nth-child(2) { border-right: none; }
  .edu-item:nth-child(3) {
    border-right: none;
    padding-left: 0;
    flex: 1 1 100%;
  }
}

@media (max-width: 960px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 48px 24px 0; border-right: none; }
  .hero-right { height: 360px; border-top: 1px solid var(--border); }

  .ach-item { padding: 22px 28px; }

  .about { grid-template-columns: 1fr; }
  .about-left { padding: 56px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .about-right { padding: 48px 24px; }
  .about-img-wrap { max-height: 240px; }

  .gallery-strip { height: 200px; }
  .gallery-slide { width: 240px; }

  .education { padding: 56px 24px; }
  .education-row { flex-wrap: wrap; }
  .edu-item {
    flex: 1 1 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    padding: 24px 0 !important;
    margin-bottom: 0;
  }
  .edu-item:last-child { border-bottom: none; }

  .coaching { padding: 56px 24px; }
  .coaching-header { flex-direction: column; align-items: flex-start; }
  .coaching-intro { text-align: left; max-width: 100%; }
  .packages { grid-template-columns: 1fr; }

  .booking { grid-template-columns: 1fr; }
  .booking-left { padding: 56px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .booking-right { padding: 56px 24px; }

  .footer { flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 20px; }
}
