/* ==========================================================
   Nutrition with Rachel — shared stylesheet
   Goop-inspired editorial design: generous white space,
   serif display type, small-caps sans labels, thin rules.
   ========================================================== */

:root {
  --cream: #f7f4ef;        /* page background */
  --blush: #f3ebe8;        /* from Rachel's existing brand tiles */
  --sand:  #ebe5dc;        /* section background */
  --ink:   #1f1d1b;        /* primary text */
  --muted: #6f6a63;        /* secondary text */
  --line:  #d9d2c8;        /* hairline rules */
  --accent:#6b5b4a;        /* warm brown for hover / links */
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
  --max: 1240px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { color: var(--accent); }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1.2em; }

.wrap { width: min(var(--max), 100% - 48px); margin: 0 auto; }
.wrap--narrow { width: min(780px, 100% - 48px); margin: 0 auto; }

/* ---- small uppercase labels, the Goop signature ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
}

/* ---- Announcement bar ---- */
.announce {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 10px 16px;
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { color: var(--cream); opacity: .75; }

/* ---- Header / nav ---- */
.site-header {
  border-bottom: 1px solid transparent;
  background: var(--cream);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand em { font-style: italic; }
.nav { display: flex; gap: 56px; }
.nav a { font-size: 12px; }
.nav a, .nav-right a {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; white-space: nowrap;
}
.nav a.is-active { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.nav-right { grid-column: 3; display: flex; justify-content: flex-end; gap: 24px; align-items: center; }
.menu-btn {
  display: none; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
  padding: 8px 0;
}
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 0 16px; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.mobile-nav.open { display: block; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  padding: 16px 32px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background .25s, color .25s;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.link-arrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.link-arrow:hover { border-color: var(--accent); }

/* ---- Image placeholders (swap for real photos) ---- */
.ph {
  position: relative; overflow: hidden; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px;
  font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph img + * { display: none; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--square   { aspect-ratio: 1 / 1; }
.ph--wide     { aspect-ratio: 16 / 9; }
.ph--tall     { aspect-ratio: 3 / 4; }
.ph--blush { background: var(--blush); }
.ph--stone { background: #e2dcd3; }
.ph--moss  { background: #dfe0d4; }
.ph--clay  { background: #e9d9cf; }

/* ---- Hero (landing) ---- */
.hero { padding: 72px 0 64px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center;
}
.hero h1 { font-size: clamp(44px, 6vw, 84px); }
.hero h1 em { font-style: italic; }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 48ch; margin: 28px 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-center { text-align: center; max-width: 860px; }
.hero-center .lede { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }

/* ---- Directory: the three destinations ---- */
.section { padding: 80px 0; }
.section--sand { background: var(--sand); }
.section--blush { background: var(--blush); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4vw, 52px); margin-top: 10px; }
.section-head p { color: var(--muted); max-width: 56ch; margin: 16px auto 0; }

.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.dir-card { display: block; }
.dir-card .ph { margin-bottom: 22px; transition: transform .4s ease; }
.dir-card:hover .ph { transform: translateY(-4px); }
.dir-card h3 { font-size: 32px; margin: 8px 0 10px; }
.dir-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.dir-card:hover { color: var(--ink); }

/* ---- Editorial split block ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split h2 { font-size: clamp(32px, 3.6vw, 48px); margin: 10px 0 20px; }
.split p { color: var(--muted); }
.split blockquote { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.35; margin: 0 0 24px; color: var(--ink); }

/* ---- Pill list / specialties ---- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 12px 20px; border: 1px solid var(--ink); font-weight: 400; }

/* ---- Product / card grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; }
.card { display: block; }
.card .ph { margin-bottom: 16px; transition: transform .4s ease; }
.card:hover .ph { transform: translateY(-4px); }
.card .eyebrow { margin-bottom: 6px; display: block; }
.card h3 { font-family: var(--sans); font-weight: 400; font-size: 15px; letter-spacing: .02em; line-height: 1.4; margin-bottom: 4px; }
.card .why { font-size: 14px; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 16px; }
.card .price { font-size: 13px; color: var(--muted); }

/* ---- Category tabs (shop page) ---- */
.tabs { display: flex; gap: 32px; justify-content: center; border-bottom: 1px solid var(--line); margin-bottom: 48px; flex-wrap: wrap; }
.tabs a { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 14px 0; font-weight: 400; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs a.is-active, .tabs a:hover { border-bottom-color: var(--ink); color: var(--ink); }

/* ---- Embed frame (ShopMy / LTK / Substack) ---- */
.embed-box { border: 1px solid var(--line); background: #fff; padding: 0; overflow: hidden; }
.embed-box iframe { width: 100%; border: 0; display: block; }
.embed-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---- Page hero (inner pages) ---- */
.page-hero { padding: 72px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 72px); margin-top: 12px; }
.page-hero h1 em { font-style: italic; }
.page-hero p { color: var(--muted); max-width: 58ch; margin: 20px auto 0; font-size: 18px; }
.page-hero .btn { margin-top: 28px; }

/* ---- Newsletter / Substack band ---- */
.news { text-align: center; }
.news h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 10px 0 14px; }
.news p { color: var(--muted); max-width: 50ch; margin: 0 auto 28px; }
.news .embed-box { max-width: 520px; margin: 0 auto; }

/* ---- Credentials list ---- */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cred { border-top: 1px solid var(--ink); padding-top: 20px; }
.cred .eyebrow { display: block; margin-bottom: 12px; }
.cred h3 { font-size: 24px; margin-bottom: 6px; }
.cred p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---- Timeline ---- */
.timeline { border-top: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.tl-row .eyebrow { padding-top: 6px; }
.tl-row h3 { font-size: 24px; margin-bottom: 4px; }
.tl-row p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---- Stats strip ---- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: 56px; line-height: 1; }
.stat .eyebrow { display: block; margin-top: 12px; }

/* ---- Services ---- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service { background: var(--cream); border: 1px solid var(--line); padding: 40px 32px; display: flex; flex-direction: column; }
.service h3 { font-size: 28px; margin: 10px 0 12px; }
.service p { color: var(--muted); font-size: 15.5px; flex: 1; }
.service .btn { align-self: flex-start; margin-top: 8px; }

/* ---- Quote ---- */
.quote { text-align: center; padding: 96px 0; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.3; max-width: 22ch; margin: 0 auto 20px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--ink); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-grid .brand { font-size: 28px; text-align: left; grid-column: auto; margin-bottom: 12px; display: block; }
.footer-grid p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.footer-grid h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-contact a { border-bottom: 1px solid var(--line); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.disclaimer { font-size: 12px; color: var(--muted); margin-top: 24px; max-width: 80ch; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .dir-grid, .grid-3, .creds, .services { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { gap: 20px; }
  .nav a { font-size: 10px; letter-spacing: .14em; }
  .menu-btn, .mobile-nav { display: none !important; }
  .brand { font-size: 22px; }
  .hero { padding: 40px 0 48px; }
  .hero-order { order: -1; }
  .section { padding: 56px 0; }
  .dir-grid, .grid-3, .creds, .services, .grid-4 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .dir-card .ph--tall { aspect-ratio: 16 / 10; }
  .hero .ph--portrait { aspect-ratio: 4 / 3; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 20px; }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .quote { padding: 64px 0; }
}
