/* Katie Indovina Nutrition — site styles */
:root {
  --bg: #faf8f5;
  --cream: #f3ece4;
  --sand: #ebe0d3;
  --white: #ffffff;
  --navy: #1f3954;
  --plum: #7d4a63;
  --orange: #c47429;
  --peach: #e8b592;
  --slate: #4c6176;
  --ink: #2b3036;
  --muted: #6b7178;
  --line: #e4d6c8;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --display: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
  --body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --narrow: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
strong { font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.center .btn-row { justify-content: center; }

/* ---------- Type ---------- */
.eyebrow {
  display: block;
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}
.display {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plum);
}
.display, h1, h2, h3, .lede, .band-quote { text-wrap: balance; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0 0 18px; line-height: 1.3; }
h1 { font-size: clamp(30px, 4vw, 42px); }
h2 { font-size: clamp(26px, 3.2vw, 34px); }
h3 { font-size: 22px; }
.lede { font-family: var(--serif); font-size: clamp(19px, 2vw, 22px); line-height: 1.65; color: var(--slate); }
.script-line { font-family: var(--serif); font-style: italic; color: var(--plum); }

.rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 26px 0;
  background: var(--peach);
  border: 0;
}
.center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 30px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--plum); border-color: var(--plum); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); }
.text-link {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--display); font-weight: 500; font-size: 13px;
  letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  color: var(--navy); border-bottom: 1px solid var(--peach); padding-bottom: 4px;
}
.text-link:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--cream);
  text-align: center;
  padding: 11px var(--gutter);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.announce a { color: var(--navy); text-decoration: none; }
@media (max-width: 480px) { .announce { font-size: 10.5px; letter-spacing: .14em; } }
.announce a:hover { color: var(--orange); }

.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; flex-direction: column; align-items: center; padding-top: 26px; }
.brand { display: block; width: clamp(190px, 22vw, 250px); }
.brand img { width: 100%; }
.main-nav { width: 100%; }
.main-nav ul { list-style: none; display: flex; justify-content: center; gap: clamp(18px, 3.4vw, 46px); padding: 22px 0 20px; }
.main-nav a {
  position: relative;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--orange); transform: scaleX(0); transition: transform .3s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--orange); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .header-inner { flex-direction: row; justify-content: space-between; padding: 14px var(--gutter); }
  .brand { width: 150px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 1px solid var(--line); padding: 10px 14px; cursor: pointer;
    font-family: var(--display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy);
  }
  .nav-toggle span { display: block; width: 18px; height: 1px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: center; gap: 6px; padding: 18px 0 24px; }
  .main-nav a { display: inline-block; padding: 10px 0; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--muted); }

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 6vw, 84px) 0 var(--section); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.hero-copy .lede { max-width: 520px; }
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 1px solid var(--peach); z-index: 0;
}
.framed img, .framed picture { position: relative; z-index: 1; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 22% 30%; }
.hero-meta { margin-top: 34px; font-size: 15px; color: var(--muted); }
.hero-meta a { color: var(--navy); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; margin-right: 22px; }
  .hero-photo img { aspect-ratio: 5 / 4; object-position: 20% 30%; }
}

/* ---------- Image band ---------- */
.band { position: relative; min-height: clamp(340px, 46vw, 560px); display: flex; align-items: center; overflow: hidden; }
.band > picture, .band > picture img, .band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(31, 57, 84, .38); }
.band-inner { position: relative; z-index: 1; width: 100%; text-align: center; color: var(--white); padding: 60px var(--gutter); }
.band-quote { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.4; max-width: 860px; margin: 0 auto; }
.band .eyebrow { color: var(--white); opacity: .9; }

/* ---------- Feature tiles (programs teaser) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.tile { display: block; text-decoration: none; color: inherit; }
.tile-img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-body { padding: 26px 6px 0; text-align: center; }
.tile-body h3 { font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); margin-bottom: 8px; }
.tile-body p { color: var(--slate); font-family: var(--serif); font-style: italic; margin-bottom: 16px; }
.tile:hover .text-link { color: var(--orange); border-color: var(--orange); }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .tile-img { aspect-ratio: 4 / 3; } }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media.wide img { aspect-ratio: 5 / 4; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media { margin-right: 22px; }
  .split-media img { aspect-ratio: 4 / 3; }
}

.short-lines p { margin-bottom: .55em; }
.short-lines .gap { margin-top: 1.4em; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--bg); padding: 40px 32px; text-align: center; }
.pillar .num { font-family: var(--display); font-weight: 300; font-size: 40px; color: var(--peach); line-height: 1; display: block; margin-bottom: 18px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.testimonial { margin: 0; background: var(--white); padding: 44px 34px 34px; position: relative; border-top: 2px solid var(--peach); }
.testimonial::before {
  content: "\201C"; position: absolute; top: 2px; left: 26px;
  font-family: var(--serif); font-size: 72px; line-height: 1; color: var(--peach);
}
.testimonial blockquote { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.8; color: var(--ink); }
.testimonial cite { display: block; margin-top: 22px; font-style: normal; font-family: var(--display); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
.testimonial.is-long blockquote { max-height: 15.5em; overflow: hidden; position: relative; transition: max-height .5s ease; }
.testimonial.is-long blockquote::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4em; background: linear-gradient(rgba(255,255,255,0), var(--white)); transition: opacity .3s; }
.testimonial.is-long.is-open blockquote { max-height: 80em; }
.testimonial.is-long.is-open blockquote::after { opacity: 0; }
.read-more { margin-top: 14px; background: none; border: 0; padding: 0 0 3px; cursor: pointer; font-family: var(--display); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--peach); }
.read-more:hover { color: var(--orange); }
@media (max-width: 960px) { .testimonials { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

/* ---------- Community gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #e9edf2; text-align: center; padding: var(--section) 0; }
.cta-band .display { color: var(--white); }
.cta-band .eyebrow { color: var(--peach); }
.cta-band p { max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { text-align: center; padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 70px); }
.page-hero .lede { max-width: 680px; margin: 0 auto; }
.page-hero--image { position: relative; color: var(--white); padding: 0; min-height: clamp(360px, 48vw, 540px); display: flex; align-items: center; overflow: hidden; }
.page-hero--image > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(31,57,84,.35), rgba(31,57,84,.55)); }
.page-hero--image .wrap { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.page-hero--image .display, .page-hero--image .lede { color: var(--white); }
.page-hero--image .eyebrow { color: var(--peach); }

/* ---------- Program cards (Work With Me) ---------- */
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.5vw, 48px); }
.program { background: var(--white); display: flex; flex-direction: column; }
.program-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.program-body { padding: clamp(28px, 4vw, 46px); display: flex; flex-direction: column; flex: 1; }
.program-body .tile-title { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 36px); letter-spacing: .08em; text-transform: uppercase; color: var(--plum); margin: 0 0 4px; }
.program-tagline { font-family: var(--serif); font-style: italic; color: var(--orange); margin-bottom: 22px; }
.program-body .desc { color: var(--slate); }
.price-list { margin: 10px 0 30px; border-top: 1px solid var(--line); }
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-list dt { font-family: var(--display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.price-list dd { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--navy); text-align: right; }
.save { display: inline-block; margin-left: 8px; padding: 2px 8px; font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--white); background: var(--orange); vertical-align: middle; }
.program-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .programs { grid-template-columns: 1fr; } }

/* Included grid */
.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.included > div { background: var(--cream); padding: 34px 28px; }
.included dt { font-family: var(--serif); font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.included dd { margin: 0; color: var(--slate); font-size: 16px; }
.included .icon { display: block; width: 26px; height: 1px; background: var(--orange); margin-bottom: 18px; }
@media (max-width: 860px) { .included { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .included { grid-template-columns: 1fr; } }

/* Grocery tour */
.tour { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
.tour-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.tour-body { padding: clamp(32px, 5vw, 64px); }
.tour-price { font-family: var(--serif); font-size: 34px; color: var(--navy); margin: 26px 0 0; }
.tour-price span { font-family: var(--body); font-size: 16px; color: var(--muted); margin-left: 6px; }
@media (max-width: 860px) { .tour { grid-template-columns: 1fr; } .tour-media img { min-height: 0; aspect-ratio: 16 / 10; } }

/* Lists */
.check-list { list-style: none; }
.check-list li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 7px; border-left: 1.5px solid var(--orange); border-bottom: 1.5px solid var(--orange); transform: rotate(-45deg); }
.x-list li::before { width: 12px; height: 12px; top: 17px; border: 0; transform: none;
  background: linear-gradient(45deg, transparent 46%, var(--muted) 46%, var(--muted) 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, var(--muted) 46%, var(--muted) 54%, transparent 54%); }

/* Fit columns */
.fit { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); }
.fit-card { background: var(--white); padding: clamp(28px, 4vw, 48px); }
.fit-card--muted { background: transparent; border: 1px solid var(--line); }
.fit-card h2 { font-size: 26px; }
@media (max-width: 860px) { .fit { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.step { position: relative; padding: 40px 34px 32px; background: var(--bg); border: 1px solid var(--line); }
.step-num { display: block; font-family: var(--display); font-weight: 300; font-size: 54px; line-height: 1; color: var(--peach); margin-bottom: 16px; }
.step h3 { font-size: 23px; }
.step p { color: var(--slate); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Outcomes */
.outcomes { columns: 2; column-gap: 48px; }
.outcomes li { break-inside: avoid; }
@media (max-width: 760px) { .outcomes { columns: 1; } }

/* Plan cards */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); max-width: 860px; margin: 0 auto; }
.plan { background: var(--white); padding: 44px 32px; text-align: center; border: 1px solid var(--line); position: relative; }
.plan--featured { border-color: var(--plum); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--plum); color: var(--white); font-family: var(--display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 5px 14px; white-space: nowrap; }
.plan h3 { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: .24em; text-transform: uppercase; color: var(--orange); }
.plan-price { font-family: var(--serif); font-size: 48px; color: var(--navy); line-height: 1.1; margin: 6px 0 4px; }
.plan-sub { color: var(--muted); margin-bottom: 28px; }
.plan .btn { width: 100%; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.promise { text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 24px); color: var(--plum); margin-bottom: 14px; }

/* Promise line sized by site.js to match the heading below it */
.promise--fit { white-space: nowrap; font-size: clamp(11px, 2.6vw, 26px); line-height: 1.3; }

/* Program switcher on program pages */
.also { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-hero { position: relative; min-height: calc(100vh - 140px); display: flex; align-items: center; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0; }
.contact-hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.contact-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,57,84,.1) 0%, rgba(31,57,84,.25) 45%, rgba(31,57,84,.55) 100%); }
.contact-hero .wrap { position: relative; z-index: 1; display: flex; justify-content: flex-end; }
.contact-panels { width: min(540px, 100%); display: grid; gap: 22px; }
.contact-card { background: rgba(250, 248, 245, .95); padding: clamp(28px, 4vw, 44px); backdrop-filter: blur(4px); }
.contact-card h1, .contact-card h2 { font-size: clamp(26px, 3vw, 32px); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card .btn-row { margin-top: 20px; }
@media (max-width: 860px) {
  .contact-hero { display: block; min-height: 0; padding: 0 0 56px; background: var(--cream); }
  .contact-hero > picture img { position: relative; height: auto; aspect-ratio: 4 / 3; object-position: 8% 60%; }
  .contact-hero::after { display: none; }
  .contact-hero .wrap { justify-content: center; margin-top: -48px; }
  .contact-card { background: var(--bg); }
  .contact-card .text-link { letter-spacing: .06em; word-break: break-all; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--cream); padding: 64px 0 34px; text-align: center; }
.footer-logo { width: 190px; margin: 0 auto 28px; }
.footer-nav { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 32px; margin-bottom: 26px; }
.footer-nav a { font-family: var(--display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--orange); }
.footer-contact { color: var(--slate); font-size: 15px; }
.footer-contact a { color: var(--navy); }
.footer-fine { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
