/* The Painted Mantel: brand tokens from the Painted Mantel brand kit.
   Sage on cream is ~3:1, so it is for headings, icons and buttons only.
   Paragraphs are Ink or Deep Sage. */
:root {
  --sage: #8C9E61;
  --cream: #D9DBB9;
  --tint: #E1EECC;
  --deep: #56633F;
  --ink: #201E1D;
  --olive: #8B835A;
  --taupe: #7A6D5C;
  --white: #FFFFFF;            /* kit allows Ink on white; used for cards and alternate sections */

  --display: "Caprasimo", Georgia, serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --gutter: 24px;
  --radius: 14px;
}

*, *::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: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--deep); }

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

/* Type scale (kit: headline 44 / section 30 / sub 20 / body 16 / kicker 12) */
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--deep); margin: 0 0 18px; }
h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; }
h3 { font: 700 20px/1.3 var(--body); color: var(--ink); margin: 0 0 8px; }
p { margin: 0 0 16px; }
.kicker {
  font: 700 12px/1.4 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  margin: 0 0 14px;
}
.lede { font-size: 19px; color: var(--deep); max-width: 34em; }
.section-lede { font-size: 18px; max-width: 42em; margin-bottom: 36px; }
.aside { margin-top: 32px; color: var(--deep); max-width: 44em; }

/* Buttons: sage with cream text, per kit. Deep Sage hover for contrast. */
.btn {
  display: inline-block;
  background: var(--deep);
  color: var(--cream);
  font: 700 16px/1 var(--body);
  text-decoration: none;
  padding: 17px 26px;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 11px 18px; font-size: 14px; white-space: nowrap; }
.link-quiet { font-weight: 600; color: var(--deep); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(217, 219, 185, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(139, 131, 90, 0.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { width: 310px; height: auto; }
section[id] { scroll-margin-top: 84px; }

/* Section nav */
.site-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 28px; }
.site-nav a {
  font: 600 15px/1 var(--body);
  color: var(--deep);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--sage); }
.site-nav a.is-current { color: var(--ink); border-bottom-color: var(--deep); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--deep); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { background: var(--cream); padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 24px 48px -24px rgba(32, 30, 29, 0.45);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.play-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, rgba(32,30,29,0) 45%, rgba(32,30,29,.45));
  border: 0; cursor: pointer; padding: 0; color: var(--cream);
}
.play-overlay[hidden] { display: none; }
.play-disc {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--deep);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(32,30,29,.35);
  transition: transform .15s ease, background .15s ease;
}
.play-disc svg { width: 34px; height: 34px; fill: var(--white); margin-left: 4px; }
.play-overlay:hover .play-disc { transform: scale(1.06); background: var(--ink); }
.video-end {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 20px; text-align: center;
  background: rgba(32,30,29,.78); color: var(--cream);
}
.video-end[hidden] { display: none; }
.video-end-title { margin: 0; font: 400 clamp(20px, 2.4vw, 28px)/1.2 var(--display, 'Caprasimo', serif); color: var(--white); }
.video-replay {
  background: none; border: 0; padding: 4px; cursor: pointer;
  color: var(--cream); font: 600 14px/1 var(--body); text-decoration: underline; text-underline-offset: 3px;
}
.play-label {
  position: absolute; bottom: 18px;
  font: 700 14px/1 var(--body); letter-spacing: .02em;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* Sections */
.section { padding: 88px 0; }
.section.tint { background: var(--tint); }
.section.sage { background: var(--sage); }
.section.sage h2, .section.sage .stat-big { color: var(--cream); }
.section.sage .kicker { color: var(--tint); }
.section.sage p { color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }

/* Gift lifespan list */
.lifespan { background: var(--white); border: 1px solid rgba(139,131,90,.25); border-radius: var(--radius); padding: 28px; }
.life-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid rgba(139,131,90,.2);
  font-size: 15px;
}
.life-row span:first-child { font-weight: 700; }
.life-row span:last-child { color: var(--taupe); text-align: right; }
.life-win span { color: var(--deep) !important; }
.life-win { border-top: 2px solid var(--sage); }

/* Cards */
.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
.card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid rgba(139,131,90,.18); }
.card p:last-child { margin-bottom: 0; }

/* Styles list */
.styles { margin-top: 56px; }
.styles p { max-width: 44em; }
.style-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.style-list li {
  background: var(--white); color: var(--deep);
  border: 1.5px solid var(--sage);
  padding: 9px 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
}

/* Enclosure card mock */
.enclosure { margin: 0; }
.card-note {
  background: var(--white);
  border-radius: 6px;
  padding: 40px 36px 32px;
  box-shadow: 0 18px 40px -22px rgba(32,30,29,.4);
  border-top: 6px solid var(--cream);
  transform: rotate(-1.5deg);
}
.note-hand { font: 400 22px/1.45 var(--display); color: var(--deep); }
.note-sign { margin: 18px 0 0; font-weight: 700; color: var(--taupe); }

/* Stats on sage */
.stat { padding: 8px 0; }
.stat-big { display: block; font: 400 34px/1.1 var(--display); margin-bottom: 8px; }
.pull {
  margin: 48px 0 0; padding-top: 28px;
  border-top: 1px solid rgba(251,251,243,.45);
  font: 400 24px/1.35 var(--display);
  color: var(--white) !important; max-width: 30em;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { border-top: 2px solid var(--sage); padding-top: 22px; }
.step-num { display: block; font: 400 40px/1 var(--display); color: var(--sage); margin-bottom: 14px; }

/* Testimonials (hidden until there are quotes) */
.quote { margin: 0; background: var(--white); border-radius: var(--radius); padding: 28px; }
.quote blockquote { margin: 0 0 18px; font-size: 17px; }
.quote figcaption { display: flex; flex-direction: column; font-size: 14px; color: var(--taupe); }
.quote figcaption strong { color: var(--ink); }

/* Book */
.book { background: var(--cream); }
.book-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.signoff { font-weight: 700; color: var(--deep); margin-top: 24px; }
.calendly-box {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(139,131,90,.25);
}
.calendly-box.is-live { min-height: 700px; }
.calendly-fallback { padding: 40px 36px; }

/* Footer */
.site-footer { background: var(--deep); color: var(--cream); padding: 48px 0; }
.footer-inner img { width: 200px; height: auto; margin-bottom: 16px; }
.footer-inner p { margin: 0 0 6px; }
.footer-meta { font-size: 14px; opacity: .8; }

/* Nav collapses before the links get cramped */
@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(139, 131, 90, 0.25);
    box-shadow: 0 16px 24px -16px rgba(32, 30, 29, 0.3);
    padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(139, 131, 90, 0.18); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a.is-current { border-bottom-color: rgba(139, 131, 90, 0.18); }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero-grid, .two-col, .book-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 44px 0 56px; }
  .cards.three, .steps { grid-template-columns: 1fr; }
}
/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 64px 0; }
  .header-inner { height: 68px; }
  section[id] { scroll-margin-top: 68px; }
  .brand img { width: 176px; }
  .header-actions { gap: 4px; }
  .btn-small { padding: 10px 14px; font-size: 13px; }
  .nav-toggle { width: 38px; }
  .cards.two { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
  .section-lede { font-size: 17px; }
  .play-disc { width: 68px; height: 68px; }
  .life-row { flex-direction: column; gap: 2px; }
  .life-row span:last-child { text-align: left; }
  .card-note { padding: 32px 24px 26px; }
  .calendly-box.is-live { min-height: 1000px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Section grounds: cream default, white and tint for rhythm, one sage band. */
.section.white { background: var(--white); }
.section.white .card, .section.white .lifespan { background: var(--cream); border-color: transparent; }

/* ---------- Alternating split layout (mockup) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.flip .split-copy { order: 2; }
.split.flip .split-panel { order: 1; }
.split-copy p:last-child { margin-bottom: 0; }
.split-panel { margin: 0; }
.stack { display: grid; gap: 18px; }
.mini-head { margin-top: 32px; }
.stats-stack { display: grid; gap: 4px; }
.stats-stack .stat { padding: 22px 0; border-top: 1px solid rgba(217, 219, 185, .5); }
.stats-stack .stat:first-child { border-top: 0; padding-top: 0; }
.stats-stack .stat p { margin: 0; }
.split-copy .pull { margin-top: 32px; font-size: 22px; }
.steps-stack { grid-template-columns: 1fr; gap: 0; }
.steps-stack li { display: grid; grid-template-columns: 72px 1fr; gap: 8px; align-items: start; padding: 24px 0; border-top: 2px solid var(--sage); }
.steps-stack li:last-child { border-bottom: 2px solid var(--sage); }
.steps-stack .step-num { margin: 0; }
.steps-stack p { margin: 0; }
.book-grid.flip .book-copy { order: 2; }
.book-grid.flip .book-widget { order: 1; }
.book-grid.flip { grid-template-columns: 1.15fr 0.85fr; }

@media (max-width: 960px) {
  .split, .book-grid.flip { grid-template-columns: 1fr; gap: 36px; }
  /* Copy always reads first on narrow screens. */
  .split.flip .split-copy, .book-grid.flip .book-copy { order: 0; }
  .split.flip .split-panel, .book-grid.flip .book-widget { order: 1; }
}
@media (max-width: 640px) {
  .steps-stack li { grid-template-columns: 56px 1fr; }
}
