/* ==========================================================================
   Dr John Viney - shared stylesheet
   ========================================================================== */

:root {
  --bg: #F7F6F2;
  --surface: #FBFBF9;
  --border: #D4D1CA;
  --ink: #28251D;
  --ink-soft: #3A3730;
  --muted: #7A7974;
  --accent: #20808D;
  --accent-dark: #1B474D;
  --highlight: #A64B2F;
  --hero-dark: #1B2A33;
  --on-dark: #F2F0EB;
  --on-dark-muted: #A8B3B8;
  --gold: #FFC553;

  --serif: "Instrument Serif", "Source Serif 4", Georgia, serif;
  --sans: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

::selection { background: var(--highlight); color: #fff; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-tight { padding-top: 88px; padding-bottom: 88px; }

@media (max-width: 768px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-tight { padding-top: 48px; padding-bottom: 48px; }
  :root { --gutter: 22px; }
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-block;
}
.eyebrow-muted { color: var(--muted); }
.eyebrow-on-dark { color: #E7C8B5; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
}

h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.body-muted { color: var(--muted); }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
  line-height: 1;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-on-dark {
  background: #fff;
  color: var(--hero-dark);
  border-color: #fff;
}
.btn-on-dark:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.text-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link-on-dark { color: var(--on-dark); border-bottom-color: rgba(242,240,235,0.4); }
.text-link-on-dark:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(247,246,242,0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.nav-on-dark {
  background: rgba(27,42,51,0.78);
  color: var(--on-dark);
}
.nav.nav-on-dark .nav-brand { color: var(--on-dark); }
.nav.nav-on-dark .nav-back { color: var(--on-dark-muted); }

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-left { display: flex; align-items: baseline; gap: 22px; }

.nav-brand {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  font-weight: 400;
}

.nav-back {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-back:hover { color: var(--ink); }

.nav .btn { padding: 11px 18px; font-size: 12px; }

/* Top-bar nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.nav-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.nav-links a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.nav.nav-on-dark .nav-links a { color: var(--on-dark-muted); }
.nav.nav-on-dark .nav-links a:hover,
.nav.nav-on-dark .nav-links a.is-active { color: var(--on-dark); }

/* Burger - mobile only */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav.nav-on-dark .nav-burger span { background: var(--on-dark); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile dropdown panel */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav.nav-on-dark .nav-mobile {
  background: var(--hero-dark);
  border-top-color: rgba(255, 255, 255, 0.08);
}
.nav-mobile a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav.nav-on-dark .nav-mobile a {
  color: var(--on-dark);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.nav-mobile a.btn {
  margin-top: 14px;
  border-bottom: 0;
  text-align: center;
}
.nav-mobile.is-open { display: flex; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 14px var(--gutter); }
  .nav-brand { font-size: 14px; }
  .nav .btn { padding: 9px 14px; font-size: 11px; }
  .nav-back { display: none; }
}

/* ==========================================================================
   HERO - Variant A (dark)
   ========================================================================== */
.hero-dark {
  background: var(--hero-dark);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.hero-dark .eyebrow { color: #E7C8B5; }
.hero-dark .lead { color: var(--on-dark-muted); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  /* Align text vertically centred, photo flush to bottom edge */
  align-items: end;
  padding-top: 100px;
  padding-bottom: 0;            /* photo touches the bottom of the dark band */
  min-height: 620px;
}
.hero-grid > :first-child {
  /* the text column - keep visually centred while the photo touches floor */
  align-self: center;
  padding-bottom: 100px;        /* preserves the original breathing room for text */
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 56px;
    padding-bottom: 0;
    min-height: 0;
    align-items: stretch;
  }
  .hero-grid > :first-child {
    padding-bottom: 32px;
  }
}

.hero-h1 {
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.98;
  margin: 0 0 18px;
}
.hero-h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.12;
  font-weight: 400;
  font-family: var(--serif);
  margin: 0 0 28px;
  color: var(--on-dark);
}
.hero-dark .hero-h2 { color: #E2E5E7; }

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 56ch;
  margin: 0 0 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Highlight rectangle behind a phrase - variant A */
.highlight-rust {
  display: inline-block;
  background: var(--highlight);
  color: #fff;
  padding: 2px 10px 4px;
  border-radius: 2px;
  /* Tight to text - using inline-block keeps it sized to content */
  white-space: nowrap;
}

/* Underline for variant B */
.under-accent {
  display: inline;
  background-image: linear-gradient(to top, var(--accent) 0, var(--accent) 3px, transparent 3px);
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
}

/* Hero portrait */
.hero-portrait {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* No bottom padding - the image needs to touch the section boundary */
  padding: 0;
  margin: 0;
  line-height: 0;
}
.hero-portrait img {
  max-width: 100%;
  width: 480px;
  height: auto;
  display: block;
  /* Bottom-anchored: image bottom = dark-band bottom = recog-strip top */
  margin-bottom: 0;
}
@media (max-width: 980px) {
  .hero-portrait img { width: 320px; }
  .hero-portrait { justify-content: center; }
}

/* On the light variant, give the silhouette a soft drop shadow so it lifts off the cream background */
.hero-light .hero-portrait img {
  filter: drop-shadow(0 18px 28px rgba(40,37,29,0.14));
}

/* ==========================================================================
   HERO - Variant B (light)
   ========================================================================== */
.hero-light {
  background: var(--bg);
  color: var(--ink);
  position: relative;
}
.hero-light .hero-h2 { color: var(--ink-soft); }
.hero-light .hero-sub { color: var(--muted); }

/* ==========================================================================
   Recognition strip
   ========================================================================== */
.recog {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
}
.recog-cap {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.recog-logos {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
}
.recog-logos span { white-space: nowrap; }
.recog-logos .dot { color: var(--border); }
@media (max-width: 600px) {
  .recog-logos { font-size: 14px; gap: 8px 14px; }
}

/* ==========================================================================
   Bio section
   ========================================================================== */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 36px;
}
@media (max-width: 820px) {
  .bio-grid { grid-template-columns: 1fr; gap: 28px; }
}
.bio-grid p { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }

/* ==========================================================================
   How I help
   ========================================================================== */
.help-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 56px;
}
@media (max-width: 820px) {
  .help-grid { grid-template-columns: 1fr; gap: 28px; }
}
.help-num {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}
.help-h {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink);
}
.help-body { color: var(--muted); font-size: 17px; line-height: 1.6; }
.help-cta { text-align: center; margin-top: 56px; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.tg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}
@media (max-width: 1100px) {
  .tg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tg-grid { grid-template-columns: 1fr; }
}

.tg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
@media (max-width: 980px) {
  .tg-grid-3 { grid-template-columns: 1fr; }
}

.t-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.t-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
}
.t-quote {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 18px;
  flex-grow: 1;
}
.t-attrib {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.t-attrib strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}
.t-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta-dark {
  background: var(--hero-dark);
  color: var(--on-dark);
  text-align: center;
}
.cta-dark h2 { color: #fff; margin-bottom: 18px; }
.cta-dark p { color: var(--on-dark-muted); max-width: 56ch; margin: 0 auto 32px; font-size: 18px; }

/* Variant B uses a contained card */
.cta-card {
  background: var(--accent-dark);
  color: var(--on-dark);
  border-radius: 14px;
  padding: 80px 48px;
  text-align: center;
  margin: 0 auto;
  max-width: 1080px;
}
.cta-card h2 { color: #fff; margin-bottom: 18px; }
.cta-card p { color: #C9D6D8; max-width: 56ch; margin: 0 auto 32px; font-size: 18px; }
@media (max-width: 600px) {
  .cta-card { padding: 56px 28px; border-radius: 10px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 14px;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 22px;
  align-items: center;
}
.footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.footer a:hover { color: var(--ink); border-bottom-color: var(--border); }
.footer-ned a { color: var(--accent); }
.footer-ned a:hover { color: var(--accent-dark); border-bottom-color: var(--accent-dark); }

/* ==========================================================================
   Variant switcher pill
   ========================================================================== */
.vswitch { display: none !important; /* hidden in production - dev variant switcher */
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  background: rgba(27,42,51,0.92);
  color: #fff;
  border-radius: 999px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
}
.vswitch-label {
  padding: 0 10px 0 12px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
}
.vswitch a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.18s ease, color 0.18s ease;
}
.vswitch a.active {
  background: var(--accent);
  color: #fff;
}
.vswitch a:hover:not(.active) { color: #fff; }

@media (max-width: 600px) {
  .vswitch { bottom: 14px; right: 14px; padding: 4px; font-size: 11px; }
  .vswitch a { padding: 5px 11px; }
  .vswitch-label { display: none; }
}

/* ==========================================================================
   NED page hero (lighter, formal)
   ========================================================================== */
.ned-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 96px 0 88px;
}
.ned-hero h1 {
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.02;
  margin: 0 0 24px;
  max-width: 16ch;
}
.ned-hero .lead {
  max-width: 60ch;
  margin: 0 0 32px;
  font-size: 19px;
}

/* Image variant of NED hero - boardroom photo on the right */
.ned-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.ned-hero-text { max-width: 560px; }
.ned-hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 30px 60px -22px rgba(40,37,29,0.18),
              0 8px 18px -8px rgba(40,37,29,0.08);
}
.ned-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  display: block;
}
@media (max-width: 900px) {
  .ned-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ned-hero-text { max-width: 100%; }
  .ned-hero-photo { aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) { .ned-hero { padding: 60px 0 56px; } }

/* utility */
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-56 { margin-top: 56px; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list {
  max-width: 760px;
  margin-top: 32px;
}
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list summary {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 24px);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  flex: 0 0 auto;
  transition: transform 200ms ease;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details p {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 14px 0 0;
  max-width: 64ch;
}

/* 4-column variant of help-grid (NED page only) */
.help-grid.help-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 1080px) {
  .help-grid.help-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 32px 36px; }
}
@media (max-width: 600px) {
  .help-grid.help-grid-4 { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   "Why this coach" intimate-prose section between testimonials and FAQ
   ========================================================================== */
.section-why {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-why .container {
  max-width: 760px;
}
.why-prose {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--ink);
}
.why-prose p { margin: 0 0 1em; }
.why-prose p:last-child {
  margin-bottom: 0;
  margin-top: 1.4em;
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--muted);
  font-style: italic;
}

/* Wrapper H1 holding both name + tagline as a single H1 element for SEO */
.hero-h1-wrap {
  margin: 0 0 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-h1-wrap .hero-h1,
.hero-h1-wrap .hero-h2 {
  display: block;
}
.hero-h1-wrap .hero-h1 { margin-bottom: 18px; }

/* NED page H1 wrapper: keeps the existing big line, adds a smaller keyword tag underneath */
.ned-h1-wrap {
  margin: 0 0 24px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 16ch;
  font-family: var(--serif);
}
.ned-h1-wrap .ned-h1-line {
  display: block;
  font-size: clamp(44px, 5.4vw, 72px);
}
.ned-h1-wrap .ned-h1-tag {
  display: block;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--muted);
  margin-top: 14px;
  font-style: normal;
  letter-spacing: 0;
  font-family: var(--sans);
  font-weight: 400;
  max-width: 30ch;
}
