:root {
  /* Palette sampled from the Heartfelt logo */
  --navy: #2c5068;
  --navy-soft: #4d6678;          /* secondary text */
  --navy-line: rgba(44, 80, 104, 0.28);
  --rose: #e0bcbc;               /* logo pink, used for calls to action */
  --rose-deep: #d4a5a7;
  --sage: #ccd8d8;               /* logo sage */
  --sage-light: #e9efee;
  --bg: #f6f4f1;                 /* soft neutral, like the logo background */
  --ivory: #fffdfb;
  --stone: #c9d2d4;
  --radius: 20px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 51px); }
.center { text-align: center; }
.lede {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.35;
  max-width: 820px;
  margin: 20px auto 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 17px; font-weight: 500;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 12px 22px; border-radius: 12px;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(0.97); transform: translateY(-1px); }
.btn-rose { background: var(--rose); color: var(--navy); }
.btn-rose:hover { background: var(--rose-deep); filter: none; }
.btn-navy { background: var(--navy); color: var(--ivory); padding: 16px 22px; font-size: 18px; }
.btn-sm { padding: 9px 14px; font-size: 15px; border-radius: 10px; }

/* Nav */
.nav-wrap {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  background: var(--ivory); color: var(--navy);
  padding: 8px 8px 8px 18px; border-radius: 16px;
  box-shadow: 0 6px 24px rgba(44, 80, 104, 0.16);
}
.logo { display: block; line-height: 0; }
.logo img { height: 38px; width: auto; }
.footer-logo { width: 190px; height: auto; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font-size: 16px; opacity: .92; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: var(--ivory); text-align: center; padding: 120px 20px 140px;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,30,42,.35) 0%, rgba(14,30,42,.45) 55%, rgba(14,30,42,.55) 100%); }
.hero-content { position: relative; max-width: 900px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); }
.hero-sub { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.35; margin: 22px auto 0; max-width: 720px; }
.hero-bar {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 22px; white-space: nowrap;
  background: var(--ivory); color: var(--navy);
  padding: 8px 8px 8px 20px; border-radius: 14px; font-size: 15px;
}

/* Sections */
.section { padding: 110px 20px; max-width: 1240px; margin: 0 auto; }

/* Forms */
.form-section { padding-top: 56px; padding-bottom: 56px; }
.form-card {
  background: var(--ivory); border-radius: 24px;
  padding: clamp(26px, 4vw, 48px);
  max-width: 820px; margin: 0 auto;
  box-shadow: 0 2px 0 rgba(44, 80, 104, .04);
}
.form-title { font-size: clamp(30px, 4vw, 42px); }
.form-intro { font-size: 18px; color: var(--navy-soft); margin: 12px 0 26px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 15px; }
.optional { color: var(--navy-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; font-weight: 400; color: var(--navy);
  background: #fff; border: 1.5px solid var(--stone); border-radius: 12px;
  padding: 13px 14px; width: 100%; min-height: 50px;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232c5068' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--rose);
}
.field.invalid input, .field.invalid select { border-color: #b4233c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 16px; min-height: 1.2em; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #b4233c; }
.lead-form.sent .field, .lead-form.sent button { display: none; }
.form-bottom { padding-bottom: 110px; }

/* Meet Heather */
.heather-card {
  position: relative; margin: 48px auto 0; width: min(400px, 88vw);
  border-radius: 24px; overflow: hidden; background: var(--stone);
  box-shadow: 0 18px 50px rgba(44, 80, 104, .14);
}
.heather-card img { width: 100%; height: auto; aspect-ratio: 20 / 21; object-fit: cover; object-position: center 22%; }
.heather-card figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(255,251,245,.94); border-radius: 14px;
  padding: 12px 16px; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
}
.hc-name { font-size: 18px; }
.hc-role { font-size: 16px; color: var(--navy-soft); }
.heather-creds {
  list-style: none; padding: 0; margin: 28px auto 0;
  width: min(400px, 88vw); text-align: left;
  display: flex; flex-direction: column; gap: 12px;
}
.heather-creds li::before, .services li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' stroke='%232c5068' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.heather-creds li, .services li {
  position: relative; padding-left: 28px;
  font-size: 18px; line-height: 1.4;
}

/* What we do */
.services {
  list-style: none; padding: 0; margin: 48px auto 0; max-width: 1040px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left;
}
.services li {
  background: var(--ivory); border-radius: 18px;
  padding: 22px 22px 22px 60px; display: flex; align-items: center;
  min-height: 92px; box-shadow: 0 1px 0 rgba(44, 80, 104, 0.05);
}
.services li::before {
  left: 22px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; background-size: 24px;
}


/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; text-align: left; }
.step { display: flex; flex-direction: column; }
.step-num {
  align-self: center; background: var(--navy); color: var(--ivory);
  border-radius: 10px; padding: 6px 26px; font-size: 16px; margin-bottom: 22px;
}
.step-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step h3 { font-size: 24px; margin: 22px 0 10px; }
.step p { margin: 0; font-size: 18px; color: var(--navy-soft); line-height: 1.5; }

/* Story */
.story { padding: 0 20px; }
.story-track { height: 300vh; max-width: 1240px; margin: 0 auto; }
.story-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: 90px 0 30px;
}
.story-head { text-align: center; }
.eyebrow {
  display: inline-block; border: 1.5px solid var(--navy-line); border-radius: 999px;
  padding: 6px 16px; font-size: 15px; margin-bottom: 18px;
}
.story-head .lede { font-size: clamp(18px, 1.8vw, 22px); }
.story-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; min-height: 0; flex: 1; max-height: 540px; }
.story-card { background: var(--sage-light); padding: 28px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.story-step {
  all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 10px;
  opacity: .3; transition: opacity .35s ease;
}
.story-step:focus-visible { outline: 2px solid var(--navy); outline-offset: 6px; border-radius: 6px; }
.story-step.is-active { opacity: 1; flex: 1; }
.story-line { display: block; height: 1.5px; background: var(--navy); width: 100%; }
.story-title { font-size: 18px; padding-top: 4px; }
.story-text {
  font-size: 18px; line-height: 1.5; max-height: 0; overflow: hidden;
  transition: max-height .45s ease;
}
.story-step.is-active .story-text { max-height: 260px; }
.story-media { position: relative; background: var(--stone); min-height: 320px; }
.story-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.story-media img.is-active { opacity: 1; }

/* FAQ */
.faq { max-width: 860px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--ivory); border-radius: 18px; padding: 0 26px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: clamp(18px, 2vw, 22px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 28px; font-weight: 400; transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding-bottom: 22px; font-size: 17px; line-height: 1.55; color: var(--navy-soft); }
.faq-a p { margin: 0 0 12px; }
.faq-a ul { margin: 0 0 12px; padding-left: 22px; }
.faq-a li { margin-bottom: 4px; }

/* Footer */
.footer {
  background: var(--navy); color: var(--ivory);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 40px clamp(20px, 5vw, 64px); font-size: 15px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-copy { opacity: .85; }
.footer-member img { width: 225px; max-width: 100%; height: auto; }
@media (max-width: 600px) {
  .footer { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* Sticky mobile CTA */
.mobile-cta { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .nav { gap: 14px; padding-left: 14px; }
  .logo img { height: 32px; }
  .nav-links { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 48px; max-width: 520px; margin-left: auto; margin-right: auto; }
  .section { padding: 80px 16px; }
  .form-section { padding: 28px 16px; }
  .form-bottom { padding-bottom: 110px; }

  .story { padding: 80px 16px 0; }
  .story-track { height: auto; }
  .story-sticky { position: static; height: auto; padding: 0; gap: 28px; }
  .story-body { grid-template-columns: 1fr; max-height: none; }
  .story-media { order: -1; aspect-ratio: 4 / 3; min-height: 0; }
  .story-card { padding: 22px; gap: 18px; }
}
@media (max-width: 600px) {
  .lead-form { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .services li { min-height: 0; padding: 18px 18px 18px 56px; }
  .services li::before { left: 18px; }
  .hero { padding: 100px 18px 110px; min-height: 74svh; }
  .hero-bar { bottom: 22px; gap: 12px; font-size: 14px; padding-left: 14px; }
  .form-card { border-radius: 20px; }
  .mobile-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40;
    padding: 15px; font-size: 17px; box-shadow: 0 8px 26px rgba(44, 80, 104, .25);
    transition: opacity .25s ease, transform .25s ease;
  }
  .mobile-cta.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
  .footer { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
