/* ============================================================
   HOCH Health + Wellness — Stylesheet
   Designed to match the reference PDF layouts.
   ============================================================ */

:root {
  --ink: #111418;
  --ink-2: #1a1f24;
  --text: #2a2f36;
  --text-muted: #5d6770;
  --line: #e6e8eb;
  --soft: #f3f4f5;
  --soft-2: #ebedef;
  --teal: #2fb7a4;
  --teal-deep: #1f8f7f;
  --teal-line: #54d2bd;
  --white: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --radius: 4px;
  --radius-lg: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
h4 { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }

p  { margin: 0 0 14px; color: var(--text); }
strong { color: var(--ink); font-weight: 700; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 90px 0; }
section.soft   { background: var(--soft); }
section.dark   { background: var(--ink); color: #fff; }
section.dark h2 { color: #fff; }
section.dark strong { color: #fff; }

/* ============ HEADER ============ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
.nav a:hover { color: var(--teal-deep); }
.nav a.active { border-bottom-color: var(--ink); }

/* ============ HERO (home) ============ */
.hero {
  position: relative;
  background: #1a1d20 url('../MappedMedia_reduced/home1.webp') center/cover no-repeat;
  min-height: 560px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.4));
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  max-width: 1000px;
}
.hero__title {
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 auto;
  color: #fff;
  letter-spacing: -0.01em;
  display: inline-block;
  background: rgba(0,0,0,0.82);
  padding: 18px 32px;
  border-radius: 4px;
}
.hero__title .hl { color: var(--teal); }

.hero__sub {
  display: inline-block;
  margin-top: 26px;
  background: rgba(0,0,0,.72);
  color: #fff;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
}

/* ============ COLUMNS ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col--top { align-items: flex-start; }

.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
}

/* Home "Health That Fits Your Life" 2x2 grid (text + 3 media tiles, equal squares) */
.fits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.fits-grid__cell {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.fits-grid__text {
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  border-radius: 0;
  gap: 16px;
}
.fits-grid__text h2 { line-height: 1.15; }
.fits-grid__text p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 900px) {
  .fits-grid { grid-template-columns: 1fr; }
  .fits-grid__text { aspect-ratio: auto; }
}

/* image-slot baseline */
image-slot {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}

/* ============ TESTIMONIAL ============ */
.testimonial {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--soft);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin: 0;
  font-style: normal;
  font-weight: 500;
}
.testimonial cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 16px;
}

.quote-card {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 30px 34px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}
.quote-card cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 15px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.btn:hover { background: #000; }
.btn--lg { padding: 16px 32px; font-size: 15px; }

/* ============ FORMS ============ */
.form-grid {
  display: grid;
  gap: 18px;
  max-width: 560px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 500;
}
.field .req {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 13px;
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
  width: 100%;
}
.field textarea {
  border-radius: 24px;
  min-height: 96px;
  resize: vertical;
  padding: 14px 18px;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(47,183,164,.18);
}
.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ CAROUSEL ============ */
.carousel {
  position: relative;
}
.carousel-track {
  position: relative;
}
.carousel-slide {
  display: none;
}
.carousel-slide.is-active {
  display: block;
  animation: carousel-fade 280ms ease;
}
@keyframes carousel-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 20px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, transform 150ms ease;
}
.carousel-btn:hover { background: #000; transform: translateY(-1px); }

/* ============ FORM COLLAGE (right-side photos in form sections) ============ */
.form-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: start;
}
.form-collage img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
}
.form-collage__a { aspect-ratio: 1 / 1; object-position: top; }
.form-collage__b { aspect-ratio: 1 / 1; margin-top: 32px; }
.form-collage__c { grid-column: 1 / 3; aspect-ratio: 16 / 7; }

/* ============ FORM SECTION (home — centered, bg image) ============ */
.form-section--centered {
  position: relative;
  padding: 110px 0;
  background: #fff;
  overflow: hidden;
}
.form-section--centered::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../MappedMedia_reduced/jonjosh.webp') center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}

/* ============ FAQ ============ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
  margin-top: 50px;
  text-align: left;
}
.faq details {
  border-bottom: 1px solid rgba(255,255,255,.22);
  padding: 18px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  gap: 16px;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p {
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 10px;
}
.faq details > p:first-of-type {
  margin-top: 14px;
}
.faq details > p:last-of-type {
  margin-bottom: 0;
}

/* ============ CARDS (about Approach) ============ */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}
.card h4 { margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.6; }

/* ============ COMPARE (coaching) ============ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.compare { text-align: center; }
.compare h3 { margin-top: 10px; }
.compare .eyebrow { color: var(--text-muted); font-weight: 500; margin: 6px 0 14px; font-size: 14px; }
.compare p,
.compare ul { text-align: left; }
.compare p.lead { font-weight: 700; color: var(--ink); margin-top: 14px; }
.compare ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 15px;
}
.compare ul li { margin-bottom: 6px; }

/* ============ TEAM ============ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  margin-top: 60px;
}
.coach {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: start;
}
.coach .avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.coach h3 { margin-bottom: 6px; }
.coach .creds {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}
.coach details {
  margin-top: 18px;
}
.coach summary {
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.coach summary::-webkit-details-marker { display: none; }
.coach summary::after { content: "+"; font-size: 18px; font-weight: 300; }
.coach details[open] summary::after { content: "−"; }
.coach .bio {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
}
.coach .bio p { margin-bottom: 12px; }
.bio-facts {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 14px 0;
  list-style: none;
}
.bio-facts li { margin-bottom: 6px; font-size: 14.5px; }
.bio-quote {
  border-left: 3px solid var(--teal);
  margin: 14px 0 0;
  padding: 6px 0 6px 16px;
  font-style: italic;
  color: var(--ink);
}
.bio-quote cite { display: block; margin-top: 6px; font-style: normal; color: var(--text-muted); font-size: 14px; }

/* ============ ETC ============ */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.stack-lg > * + * { margin-top: 16px; }

/* placeholder boxes used as fallbacks in some pages */
.ph {
  background: var(--soft-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  width: 100%;
}
.ph--portrait { aspect-ratio: 4 / 5; }

/* ============ FOOTER ============ */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.footer-tagline { font-weight: 600; color: var(--ink); }
.teal { color: var(--teal-deep); }
.footer-socials { display: flex; gap: 12px; margin-top: 6px; justify-content: center; }
.footer-socials a {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.footer-socials svg { width: 22px; height: 22px; fill: currentColor; }
.footer-contact p { margin: 0 0 8px; font-size: 14.5px; }
.footer-contact .btn { margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
}
.footer-links a:hover { color: var(--teal-deep); }
.disclaimer {
  margin-top: 36px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ PHOTO POSITION OVERRIDES ============ */
/* Testimonial photo (home2 neon shirt) — shift to show faces at top */
#home-testimonial-photo img { object-position: top; }

/* Runner photo ("motivation is the spark" card) — raise view to show face */
.about-runner-img { object-position: top; }

/* ============ RESPONSIVE ============ */

/* Healthspan figure — desktop: 10% smaller than full width */
.healthspan-figure { padding: 0 12.5%; margin: 6px 0 0; }

/* --- Tablet (≤900px) --- */
@media (max-width: 900px) {
  section { padding: 70px 0; }

  /* Nav: wrap instead of hiding */
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 28px;
  }
  .nav { flex-wrap: wrap; gap: 6px 16px; }
  .nav a { font-size: 14px; }

  /* Grids → single column */
  .two-col,
  .img-pair,
  .card-row,
  .compare-grid,
  .team-grid,
  .footer-grid,
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .coach { grid-template-columns: 110px 1fr; }
  .coach .avatar { width: 110px; height: 110px; }

  /* Coaching: show the right column video first on mobile */
  .compare-grid > .compare:first-child { order: 2; }
  .compare-grid > .compare:last-child  { order: 1; }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 18px; }
  .site-header__inner { padding: 12px 18px; }

  /* Catch any inline-styled grid (e.g. about page top section) */
  .wrap > div[style*="grid-template-columns"] {
    display: block !important;
  }
  .wrap > div[style*="grid-template-columns"] > * + * {
    margin-top: 28px;
  }

  /* Hero */
  .hero { min-height: 380px; }

  /* Fits-grid: video only — hide both image-slot tiles */
  .fits-grid { gap: 16px; }
  .fits-grid image-slot { display: none !important; }
  .fits-grid__cell:nth-child(4) { aspect-ratio: 16 / 9; }

  /* Forms: full width, hide collage photos */
  .form-collage { display: none; }
  .form-grid { max-width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .form-section--centered { padding: 60px 0; }

  /* Coach cards */
  .coach { grid-template-columns: 80px 1fr; gap: 14px; }
  .coach .avatar { width: 80px; height: 80px; }

  /* Testimonial / quote */
  .testimonial { font-size: 17px; padding: 22px; }
  .quote-card { font-size: 16px; padding: 22px; }

  /* Carousel arrows: center on mobile */
  .carousel-controls { justify-content: center; }

  /* Footer links: left-align when stacked */
  .footer-links { align-items: flex-start; }

  /* About: hide small supporting photo at top of page */
  image-slot[src*="about2small"] { display: none !important; }

  /* Healthspan figure: touch screen edges on mobile */
  .healthspan-figure { padding: 0; }

  /* About — "A Guide Not a Guru" cards: small thumbnail beside title */
  .card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px 14px;
    align-items: start;
  }
  .card img {
    width: 76px;
    height: 76px;
    aspect-ratio: 1 !important;
    margin-bottom: 0 !important;
    grid-column: 1;
    grid-row: 1;
  }
  .card h4 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 17px;
  }
  .card p { grid-column: 1 / -1; }

  /* Coaching: move h3 before video on mobile */
  .compare { display: flex; flex-direction: column; }
  .compare > * { order: 10; }
  .compare h3 { order: 1; margin-bottom: 10px; }
  .compare video { order: 2; margin-bottom: 16px; }
}

/* --- Small phones (≤480px) --- */
@media (max-width: 480px) {
  .hero { min-height: 320px; }
  .hero__title { font-size: 28px; padding: 12px 18px; }

  /* Coach: go fully stacked with centered avatar */
  .coach {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .coach .avatar { width: 100px; height: 100px; margin: 0 auto; }
  .coach summary { text-align: left; }
}
