/* ============================================================
   GRAHAM O'HAGAN: SITE STYLES
   Cream #FDFAF6 · Sage #7A9E8A · Roboto / Cormorant Garamond
   ============================================================ */

:root {
  --cream: #FDFAF6;
  --cream-deep: #F5F0E6;
  --sage: #7A9E8A;
  --sage-dark: #5F8371;
  --sage-pale: #E7EEE9;
  --ink: #262622;
  --ink-mid: #57564E;
  --ink-light: #8B8A80;
  --border: #E3DDCE;
  --white: #FFFFFF;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Roboto', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  margin: 0 0 0.4em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.0; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; letter-spacing: -0.015em; }
h3 { font-size: 1.45rem; line-height: 1.2; }

p { margin: 0 0 1em; color: var(--ink-mid); }

a { color: var(--sage-dark); text-decoration: none; }

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

/* ---------- Eyebrow / label ---------- */
.eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--sage-dark); }
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { color: var(--ink-mid); }
.nav-links a:hover { color: var(--sage-dark); }
.nav-cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.88rem;
}
.nav-cta:hover { background: var(--sage-dark); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--sage); color: var(--white); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--sage-dark); color: var(--white); background: var(--sage-dark); }
.btn-block { width: 100%; text-align: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 90px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero-lede {
  font-size: 1.14rem;
  color: var(--ink-mid);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Phase timeline (signature element) ---------- */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 1px solid var(--border);
}
.timeline-node {
  position: relative;
  padding-bottom: 30px;
}
.timeline-node:last-child { padding-bottom: 0; }
.timeline-node::before {
  content: attr(data-n);
  position: absolute;
  left: -42px;
  top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--sage);
  color: var(--sage-dark);
  font-family: 'Roboto', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.timeline-node h4 { margin-bottom: 4px; font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 0.98rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.timeline-node p { margin: 0; font-size: 0.93rem; }

/* ---------- Section spacing ---------- */
section { padding: 88px 0; }
.section-tight { padding: 60px 0; }
.section-border { border-bottom: 1px solid var(--border); }
.section-sage { background: var(--sage-pale); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: #C9C9BE; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { text-align: center; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--sage);
  border-radius: 2px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { border-color: var(--border); border-top-color: var(--ink); transform: translateY(-4px); box-shadow: 0 16px 32px -20px rgba(38,38,34,0.25); }
.product-card .status {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 18px;
  width: fit-content;
}
.status-live { background: var(--sage-pale); color: var(--sage-dark); }
.status-soon { background: #F0EBDD; color: #9A8C5E; }
.product-card h3 { margin-bottom: 6px; }
.card-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 14px;
}
.product-card p { flex-grow: 1; font-size: 0.94rem; }
.product-card .btn { margin-top: 20px; }
.social-row {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.social-row a {
  color: var(--ink-light);
  transition: color 0.2s ease;
}
.social-row a:hover { color: var(--sage-dark); }

/* ---------- Mechanism list ---------- */
.mech-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 40px; }
.mech-item { border-top: 1px solid var(--border); padding-top: 18px; }
.mech-item h4 { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.mech-item p { font-size: 0.92rem; margin: 0; }

/* ---------- Pricing table ---------- */
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.pricing-table th {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--ink-light);
  font-weight: 700;
}
.pricing-table td.price { font-weight: 700; color: var(--sage-dark); white-space: nowrap; }
.pricing-note { font-size: 0.82rem; color: var(--ink-light); margin-top: 14px; }

/* ---------- Quote block ---------- */
.quote-block {
  position: relative;
  margin: 0;
  padding-top: 8px;
}
.quote-block::before {
  content: '\201C';
  position: absolute;
  top: -38px;
  left: -6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  color: var(--sage);
  opacity: 0.35;
  line-height: 1;
}
.quote-block p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  position: relative;
}
.quote-attr {
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-light);
  font-style: normal;
  margin-top: 14px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item h4 { font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.faq-item p { font-size: 0.93rem; margin: 0; }

/* ---------- Email capture ---------- */
.capture-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 30px 28px;
}
.capture-form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.capture-form input[type=email] {
  flex: 1 1 220px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  background: var(--cream);
}
.capture-form input[type=email]:focus { outline: 2px solid var(--sage); outline-offset: 1px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C9C9BE;
  padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--cream); margin-bottom: 10px; }
.footer-col h5 {
  font-family: 'Roboto', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: #8B8A80;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #C9C9BE; font-size: 0.9rem; }
.footer-col a:hover { color: var(--sage); }
.footer-bottom {
  border-top: 1px solid #3A3A34;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #7A7A70;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Video grid ---------- */
.video-grid {
  display: flex;
  overflow-x: auto;
  gap: 18px;
  max-width: 100%;
  padding: 4px 4px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.video-grid::-webkit-scrollbar { height: 8px; }
.video-grid::-webkit-scrollbar-track { background: transparent; }
.video-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.video-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
}
.video-card { display: block; }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ink);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.92);
  color: var(--sage-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  padding-left: 3px;
}
.video-title {
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 880px) {
  .video-card { flex-basis: 200px; }
}

/* ---------- Utility ---------- */
.small-caps { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--ink-light); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Photos ---------- */
.hero-photo, .banner-photo, .inline-photo {
  position: relative;
  filter: saturate(0.88) contrast(1.03);
}
.photo-wrap { position: relative; overflow: hidden; border-radius: 2px; }
.photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(122,158,138,0.22), rgba(38,38,34,0.08));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  border: 1px solid var(--border);
}
.banner-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 48px;
}
.inline-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 20px;
}
.photo-caption {
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-top: 10px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-photo { aspect-ratio: 16 / 10; }
  .banner-photo { height: 260px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .mech-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
}


/* Netlify Forms honeypot */
.hp-field { position:absolute; left:-9999px; opacity:0; }


/* ---------- Pricing tracks ---------- */
.track-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; align-items: start; }
.track-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--sage);
  border-radius: 2px;
  padding: 38px 34px;
}
.track-card-featured { border-top-color: var(--ink); box-shadow: 0 18px 36px -26px rgba(38,38,34,0.32); }
.track-card h3 { margin: 14px 0 6px; }
.track-lede { font-size: 0.98rem; color: var(--ink-mid); margin-bottom: 22px; }
.track-price { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px 0; margin-bottom: 10px; }
.track-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; }
.track-price-row + .track-price-row { border-top: 1px dashed var(--border); }
.track-price-row span { font-size: 0.88rem; color: var(--ink-light); }
.track-price-row strong { font-size: 1.05rem; color: var(--sage-dark); white-space: nowrap; }
.track-calc { font-size: 0.8rem; color: var(--ink-light); margin: 0 0 26px; }
.track-card h5 {
  font-family: 'Roboto', sans-serif; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.7rem; color: var(--ink-light); font-weight: 700; margin: 26px 0 12px;
}
.track-list { margin: 0; padding-left: 20px; font-size: 0.92rem; }
.track-list li { margin-bottom: 8px; }
.track-attention { font-size: 0.92rem; }
.track-fit { font-size: 0.9rem; background: var(--sage-pale); padding: 16px 18px; border-radius: 2px; margin-top: 24px; }
@media (max-width: 860px) { .track-grid { grid-template-columns: 1fr; } }


/* ---------- Two paths ---------- */
.path-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.path-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--sage);
  border-radius: 2px; padding: 40px 36px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.path-card:hover { transform: translateY(-4px); border-top-color: var(--ink); box-shadow: 0 18px 36px -22px rgba(38,38,34,0.28); }

.path-card .status {
  display: inline-block; align-self: flex-start;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
}
.path-card h3 { margin: 14px 0 6px; font-size: 1.6rem; }
.path-card > p { font-size: 0.95rem; }
.path-card > p:not(.card-meta):not(.path-secondary) { flex-grow: 1; }
.path-card .btn-block { margin-top: auto; }
.path-secondary { margin-top: 12px !important; font-size: 0.85rem; }
.path-card .btn { margin-top: 22px; }
.path-cta { display: inline-block; margin-top: 20px; font-weight: 700; font-size: 0.9rem; color: var(--sage-dark); }
.coach-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; margin-top: 12px; }
.capture-box-dark { background: rgba(253,250,246,0.06); border: 1px solid rgba(253,250,246,0.18); }
.capture-box-dark h3, .capture-box-dark .small-caps { color: var(--cream); }
.capture-box-dark p { color: #C9C9BE; }
@media (max-width: 860px) { .path-grid, .coach-grid { grid-template-columns: 1fr; } }


/* ---------- Post-purchase access page ---------- */
.access-card {
  background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--sage);
  border-radius: 2px; padding: 32px 34px; margin-top: 26px;
}
.access-card-quiet { border-top-color: var(--border); background: var(--cream-deep); }
.access-card h3 { margin-bottom: 10px; }
.access-card p { font-size: 0.95rem; }
.access-card .btn { margin-top: 18px; }
.access-note { font-size: 0.85rem; color: var(--ink-light); margin-top: 14px; }
.access-contact { margin-top: 30px; padding: 18px 22px; background: var(--sage-pale); border-radius: 2px; }
.access-contact p { margin: 0; font-size: 0.92rem; }


/* ---------- Nutrition calculator ---------- */
.calc-card { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--sage); border-radius: 2px; padding: 28px 30px; margin-top: 24px; }
.calc-result { background: var(--sage-pale); border-top-color: var(--ink); }
.calc-h { font-family:'Roboto',sans-serif; text-transform:uppercase; letter-spacing:0.1em; font-size:0.7rem; color:var(--ink-light); font-weight:700; margin:0 0 16px; }
.calc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.calc-grid label, .calc-wide { display:block; font-size:0.82rem; font-weight:600; color:var(--ink-mid); }
.calc-grid input, .calc-grid select, select.calc-wide {
  width:100%; margin-top:6px; padding:10px 12px; font-family:'Roboto',sans-serif; font-size:0.95rem;
  border:1px solid var(--border); border-radius:2px; background:var(--cream); color:var(--ink);
}
select.calc-wide { margin-top:0; }
.calc-hint { font-size:0.83rem; color:var(--ink-light); margin-top:14px; line-height:1.6; }
.calc-note { margin-top:24px; padding:20px 22px; background:var(--cream-deep); border-radius:2px; }
.calc-note p { font-size:0.85rem; color:var(--ink-mid); }
.calc-note p + p { margin-top:10px; }
.stat-row { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.stat { display:flex; flex-direction:column; gap:2px; }
.stat-n { font-family:'Cormorant Garamond',serif; font-size:1.9rem; font-weight:600; color:var(--sage-dark); line-height:1.1; }
.stat-l { font-size:0.74rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--ink-light); font-weight:700; }
.table-scroll { overflow-x:auto; }
.phase-table { width:100%; border-collapse:collapse; font-size:0.88rem; }
.phase-table th { text-align:left; padding:10px 12px; font-size:0.68rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--ink-light); border-bottom:2px solid var(--sage); white-space:nowrap; }
.phase-table td { padding:14px 12px; border-bottom:1px solid var(--border); vertical-align:top; }
.phase-table td.num { font-weight:700; color:var(--sage-dark); white-space:nowrap; }
.ph-wk { font-size:0.74rem; color:var(--sage-dark); font-weight:700; margin-top:2px; }
.ph-note { font-size:0.78rem; color:var(--ink-light); font-weight:400; margin-top:5px; max-width:34ch; }
@media (max-width:760px){ .calc-grid{grid-template-columns:1fr 1fr;} .stat-row{grid-template-columns:1fr 1fr;} }

.ph-floor { font-size:0.74rem; color:#8A6D3B; background:#FBF3DF; border-left:2px solid #C9A227; padding:6px 9px; margin-top:8px; max-width:34ch; font-weight:500; }
