:root {
  --section-gap: 0.85rem;
  --section-head-gap: 0.78rem;
  --panel-padding: 1.05rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 8% -10%, #f4dfcf 0%, transparent 55%),
    radial-gradient(1000px 520px at 100% 0%, #efe7db 0%, transparent 48%),
    linear-gradient(180deg, var(--bg-main), var(--bg-soft));
  line-height: 1.55;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255, 250, 245, 0.88);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  display: block;
  width: auto;
  height: 44px;
}

.brand-note {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.93rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.page {
  padding: 0 0 2.5rem;
}

/* ── Hero – light mode (default) ─────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: 0.95rem;
  background:
    radial-gradient(ellipse 60% 70% at 15% 90%, rgba(183, 95, 58, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 65% 55% at 88% 5%, rgba(244, 220, 200, 0.42) 0%, transparent 60%),
    linear-gradient(145deg, #fef6ee 0%, #fff9f4 55%, #fffaf6 100%);
}

/* Desktop: 2-column grid — text left, photo right */
.hero-copy {
  display: grid;
  grid-template-columns: 1fr clamp(150px, 20vw, 260px);
  gap: 0.95rem 2rem;
  align-content: start;
}

.hero-copy > h1           { grid-column: 1; grid-row: 1; }
.hero-copy > .lead        { grid-column: 1; grid-row: 2; align-self: start; }
.hero-copy > .hero-photo  { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
.hero-copy > .hero-quote  { grid-column: 1; grid-row: 3; }

.hero-photo {
  width: 100%;
}

.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 0.85rem;
  font-size: clamp(1.95rem, 4vw, 3rem);
  line-height: 1.12;
  color: var(--text);
  text-shadow: none;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  text-shadow: none;
}

.hero-quote {
  display: inline-block;
  justify-self: start;
  width: fit-content;
  max-width: min(29rem, calc(100% - 1.5rem));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 248, 242, 0.88);
  padding: 0.95rem 1.1rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.48;
  font-style: italic;
  text-align: left;
  text-wrap: balance;
}

.hero-quote strong {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  color: var(--accent);
  font-size: 0.92rem;
}

/* ── Hero – dark mode overrides ───────────────────────────────── */
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 55% 70% at 20% 100%, rgba(183, 95, 58, 0.18) 0%, transparent 65%),
    linear-gradient(145deg, #231d1b 0%, #33251d 55%, #251f1c 100%);
  border-color: rgba(139, 110, 91, 0.32);
}

:root[data-theme="dark"] h1 {
  color: #fff7f1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.46);
}

:root[data-theme="dark"] .lead {
  color: #f0dfd2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .hero-quote {
  border-color: rgba(255, 245, 236, 0.34);
  background: rgba(37, 30, 25, 0.48);
  color: #f8e8dc;
  backdrop-filter: blur(2px);
}

:root[data-theme="dark"] .hero-quote strong {
  color: #fff7f1;
}

:root[data-theme="dark"] .hero-photo img {
  border-color: rgba(255, 245, 236, 0.36);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.28);
}

.content {
  margin-top: var(--section-gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--section-gap);
  align-items: stretch;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: var(--panel-padding);
}

.card h2,
.story-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  line-height: 1.2;
}

.card p,
.story-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card p + p,
.story-card p + p {
  margin-top: 0.65rem;
}

.card ul {
  margin: 0.9rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.card li {
  margin-bottom: 0.45rem;
}

.section-block {
  margin-top: var(--section-gap);
}

.section-head {
  margin-bottom: var(--section-head-gap);
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  padding: 0.28rem 0.68rem;
  background: #f2dfd4;
  color: #8e4729;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.12;
}

.section-lead {
  margin: 0.42rem 0 0;
  color: var(--muted);
}

.process-grid,
.support-grid,
.reviews-grid {
  display: grid;
  gap: var(--section-gap);
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-grid,
.reviews-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card,
.story-card,
.review-card,
.cta-band {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.step-card {
  padding: var(--panel-padding);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #f4e4d9;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.step-card h3,
.review-card h3,
.story-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
}

.step-card p,
.review-card p,
.story-card p {
  margin: 0;
  color: var(--muted);
}

.story-card {
  padding: var(--panel-padding);
}

.story-copy {
  max-width: 68ch;
}

.detail-list {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.detail-list li + li {
  margin-top: 0.65rem;
}

.detail-list strong {
  color: var(--text);
}

.review-card {
  padding: var(--panel-padding);
}

.review-quote {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
}

.review-author {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--panel-padding);
  background:
    radial-gradient(620px 240px at 0% 0%, rgba(244, 224, 210, 0.72) 0%, transparent 52%),
    linear-gradient(135deg, #fff8f2 0%, #fff 100%);
}

.cta-copy {
  max-width: 68ch;
}

.cta-copy h2 {
  margin: 0 0 0.75rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

.cta-copy p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-main {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(183, 95, 58, 0.28);
}

.btn-alt {
  border-color: #d4c2b5;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

:root[data-theme="dark"] .card,
:root[data-theme="dark"] .step-card,
:root[data-theme="dark"] .story-card,
:root[data-theme="dark"] .review-card,
:root[data-theme="dark"] .cta-band {
  background: #221e1b;
  border-color: var(--line, #433a34);
  color: var(--text, #f0e6dc);
}

:root[data-theme="dark"] .card p,
:root[data-theme="dark"] .card ul,
:root[data-theme="dark"] .step-card p,
:root[data-theme="dark"] .story-card p,
:root[data-theme="dark"] .detail-list,
:root[data-theme="dark"] .review-author,
:root[data-theme="dark"] .cta-copy p {
  color: var(--muted, #c4b3a6);
}

:root[data-theme="dark"] .detail-list strong,
:root[data-theme="dark"] .review-quote {
  color: var(--text, #f0e6dc);
}

:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .step-index {
  background: #4f352a;
  color: #ffd8c5;
}

:root[data-theme="dark"] .btn-alt {
  border-color: #6f6056;
  background: #2b2521;
  color: var(--text, #f0e6dc);
}



@media (max-width: 980px) {
  .content,
  .process-grid,
  .support-grid,
  .reviews-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band {
    display: grid;
  }

}

@media (max-width: 620px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand-note {
    display: none;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .page {
    padding-top: 4vw;
  }

  .hero {
    min-height: 0;
    margin-top: 0;
    padding: 1.25rem;
  }

  /* Mobile: single column — title → lead → photo → quote */
  .hero-copy {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .hero-copy > h1          { grid-column: 1; grid-row: 1; }
  .hero-copy > .lead       { grid-column: 1; grid-row: 2; }
  .hero-copy > .hero-photo { grid-column: 1; grid-row: 3; align-self: auto; }
  .hero-copy > .hero-quote { grid-column: 1; grid-row: 4; }

  .hero-copy > .hero-photo {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .hero-photo img {
    aspect-ratio: 4 / 3;
    object-position: center 12%;
  }
}
