/* ═══════════════════════════════════════════════════
   MYERS RUN PROJECT — Styles
   Warm ivory theme, dark text, navy accent
═══════════════════════════════════════════════════ */

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

ul { list-style: none; }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  /* colours */
  --c-bg:           #F5F0E8;
  --c-surface:      #EDE8DF;
  --c-surface-2:    #E4DFCF;
  --c-border:       rgba(0, 0, 0, 0.08);
  --c-border-hover: rgba(0, 0, 0, 0.18);
  --c-text:         #111111;
  --c-text-muted:   #6b6b6b;
  --c-accent:       #1B3A6B;
  --c-accent-hover: #142D54;

  /* type */
  --font:        'Inter', system-ui, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    900;

  /* layout */
  --max-w:    1200px;
  --pad-x:    2rem;
  --radius:   6px;
  --radius-lg:12px;

  /* transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  200ms;
}

/* ─── BASE ───────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── CONTAINER ──────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ─── NAVIGATION ─────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--c-border);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo {
  height: 70px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color var(--dur) var(--ease);
}

.nav__links a:hover { color: var(--c-text); }

.nav__cta {
  padding: 0.5rem 1.25rem !important;
  border: 1px solid var(--c-border-hover) !important;
  border-radius: var(--radius) !important;
  color: var(--c-text) !important;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease) !important;
}

.nav__cta:hover {
  background: var(--c-accent) !important;
  border-color: var(--c-accent) !important;
  color: #fff !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  transform-origin: center;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--pad-x) 100px;
}

.hero__image {
  position: relative;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 1.25rem;
  display: block;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--c-text);
  margin-bottom: 2rem;
}

.hero__sub {
  font-size: clamp(1rem, 1.75vw, 1.125rem);
  font-weight: var(--fw-regular);
  color: rgba(17, 17, 17, 0.6);
  max-width: 460px;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.25rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-accent-hover);
  border-color: var(--c-accent-hover);
  box-shadow: 0 4px 24px rgba(27, 58, 107, 0.35);
}

.btn--outline {
  background: transparent;
  border-color: var(--c-border-hover);
  color: var(--c-text);
}

.btn--outline:hover {
  border-color: var(--c-text-muted);
  background: rgba(0,0,0,0.03);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(0,0,0,0.2);
  color: rgba(17, 17, 17, 0.65);
}

.btn--ghost:hover {
  border-color: rgba(0,0,0,0.45);
  color: var(--c-text);
}

.btn--wide { width: 100%; }

/* ─── SECTIONS ───────────────────────────────────── */
.section {
  padding: 110px 0;
}

.section--alt {
  background: var(--c-surface);
}

.section__header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.section__label {
  display: block;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section__sub {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─── OUR STORY ──────────────────────────────────── */
.story__body {
  max-width: 680px;
  margin: 0 auto;
}

.story__body p {
  font-size: 1.075rem;
  line-height: 1.9;
  color: var(--c-text-muted);
  margin-bottom: 1.75rem;
}

.story__closer {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0 !important;
  line-height: 1.3;
}

/* ─── ABOUT ──────────────────────────────────────── */
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about__body p {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.about__stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--c-border);
}

.stat__num {
  display: block;
  font-size: 2.75rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--c-text);
}

.stat__label {
  display: block;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: 0.5rem;
}

.about__pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pillar {
  padding: 1.75rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface-2);
  transition: border-color var(--dur) var(--ease);
}

.pillar:hover { border-color: var(--c-border-hover); }

.pillar__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(27, 58, 107, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.pillar h4 {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ─── COACHING / PLANS ───────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.plan {
  position: relative;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.plan:hover {
  border-color: var(--c-border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.plan--featured {
  border-color: #111111;
  background: #111111;
}

.plan--featured:hover {
  border-color: #222222;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.plan--featured .plan__name  { color: #f0efed; }
.plan--featured .plan__price { color: #f0efed; }
.plan--featured .plan__price span { color: rgba(240, 239, 237, 0.5); }

.plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.plan__name {
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.plan__price {
  font-size: 2rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.04em;
  color: var(--c-text);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.plan__price span {
  font-size: 0.85rem;
  font-weight: var(--fw-regular);
  letter-spacing: 0;
  color: var(--c-text-muted);
}

.plan__tagline {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.plan__features li {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.plan__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0.7;
}

.plan--featured .plan__features li { color: rgba(240, 239, 237, 0.65); }

.plan__footer { margin-top: auto; }

.plans__note {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

.plans__note a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}

.plans__note a:hover { color: var(--c-accent); }

/* ─── MEDIA ──────────────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 10px;
}

.media-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: opacity var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.media-item:hover {
  opacity: 0.8;
  border-color: var(--c-border-hover);
}

.media-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-social {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

.media-social a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}

.media-social a:hover { color: var(--c-accent); }

/* ─── CONTACT ────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 6rem;
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(136, 136, 136, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(27, 58, 107, 0.5);
  background: var(--c-surface-2);
}

.form-group textarea { resize: vertical; }

.form-success {
  display: none;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: #4ade80;
}

.form-success.visible { display: flex; }

/* Contact sidebar */
.contact-info__block {
  margin-bottom: 2.5rem;
}

.contact-info__block h4 {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.6rem;
}

.contact-info__block p {
  font-size: 0.9375rem;
  color: var(--c-text);
  line-height: 1.65;
}

.contact-info__block a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}

.contact-info__block a:hover { color: var(--c-accent); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.social-links a:hover { color: var(--c-text); }

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: #111111;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 0 2.5rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer__logo {
  display: block;
  height: 100px;
  width: auto;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.875rem;
  color: rgba(136, 136, 136, 0.8);
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer__nav a {
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(136, 136, 136, 0.8);
  transition: color var(--dur) var(--ease);
}

.footer__nav a:hover { color: #f0efed; }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(136, 136, 136, 0.5);
}

/* ─── SCROLL ANIMATIONS ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 1024px) {
  :root { --pad-x: 1.75rem; }

  .about__layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .plan--featured { order: -1; }

  .media-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
  }

  .media-item--large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .contact-info__block { margin-bottom: 0; }
}

@media (max-width: 768px) {
  :root { --pad-x: 1.25rem; }

  .section { padding: 80px 0; }

  .nav__links {
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(245, 240, 232, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem 0 1.5rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.3s var(--ease);
    pointer-events: none;
    align-items: flex-start;
  }

  .nav__links.is-open {
    clip-path: inset(0 0 -1px 0);
    pointer-events: auto;
  }

  .nav__links a {
    display: block;
    padding: 0.875rem var(--pad-x);
  }

  .nav__cta {
    margin: 0.5rem var(--pad-x) 0 !important;
    padding: 0.75rem 1.25rem !important;
  }

  .nav__toggle { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .hero__image {
    height: 60vw;
    min-height: 260px;
    order: -1;
  }
  .hero__content {
    padding: 48px var(--pad-x) 60px;
  }

  .about__stats {
    gap: 2rem;
    flex-wrap: wrap;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .form-row { grid-template-columns: 1fr; }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info__block { margin-bottom: 0; }

  .footer__top {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer__nav { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .media-grid { grid-template-columns: 1fr; }
}
