/* =========================================================
   Sell Mom's Home MI — Design System
   Cream + Sage + Dusty Rose
   Cormorant Garamond (display) + Source Sans 3 (body)
   ========================================================= */

:root {
  /* Brand */
  --stone-ink: #2C2A26;
  --cream: #F7F2EA;
  --cream-deep: #EDE5D6;
  --sage: #647B68;
  --sage-dk: #4F6354;
  --sage-pale: #DCE3DC;
  --dusty-rose: #B58370;
  --dusty-rose-dk: #9C6E5C;

  /* Neutrals */
  --stone-70: #5D5A53;
  --stone-40: #968F84;
  --stone-15: #D9D2C5;
  --hairline: rgba(44, 42, 38, 0.10);

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 240ms;
}

/* =========================================================
   Reset + Base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--stone-70);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: page-fade-in 500ms var(--ease-out) 80ms forwards;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--stone-ink);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}

h1 { font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }
h2 { line-height: 1.2; }
h3 { line-height: 1.3; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Layout
   ========================================================= */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
}

.container--narrow { max-width: 720px; }

.section { padding: 5rem 0; }

@media (min-width: 768px) {
  .section { padding: 8rem 0; }
}

.section--tight { padding: 3rem 0; }
@media (min-width: 768px) { .section--tight { padding: 5rem 0; } }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--stone-ink); color: var(--cream);
  padding: 0.75rem 1rem; font-weight: 600; z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(247, 242, 234, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--hairline);
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}

.nav__brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--stone-ink);
  letter-spacing: -0.005em;
}

.nav__brand-mark {
  width: 36px; height: 36px;
  background: var(--sage);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}

.nav__links {
  display: none;
  gap: 2.5rem;
  list-style: none;
  margin: 0; padding: 0;
}

@media (min-width: 900px) { .nav__links { display: flex; } }

.nav__links a {
  font-size: 0.9375rem;
  color: var(--stone-70);
  font-weight: 500;
  transition: color var(--duration) var(--ease-out);
}
.nav__links a:hover { color: var(--sage); }

.nav__cta {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--sage);
  transition: color var(--duration) var(--ease-out);
}
.nav__cta:hover { color: var(--sage-dk); }
.nav__cta-phone-text { display: none; }
@media (min-width: 600px) { .nav__cta-phone-text { display: inline; } }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
  text-align: center;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--sage);
  color: var(--cream);
}
.btn--primary:hover {
  background: var(--stone-ink);
  transform: translateY(-1px);
}
.btn--primary:focus-visible {
  outline: 2px solid var(--dusty-rose);
  outline-offset: 2px;
}

.btn--secondary {
  background: transparent;
  color: var(--sage);
  border: 1.5px solid var(--sage);
}
.btn--secondary:hover { background: var(--sage-pale); }

.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1rem; }

.btn--block { width: 100%; }

/* =========================================================
   Hero — calm, generous, magazine-like
   ========================================================= */

.hero {
  padding: 4rem 0 5rem;
  background: var(--cream);
  position: relative;
}

@media (min-width: 768px) {
  .hero { padding: 7rem 0 10rem; }
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.3fr 0.7fr; gap: 4.5rem; }
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.75rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--stone-ink);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--sage);
  font-weight: 500;
}

.hero__sub {
  font-size: 1.1875rem;
  color: var(--stone-70);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
}

.hero__phone-link {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--sage);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.hero__phone-link svg { width: 18px; height: 18px; }

.hero__sidebar {
  background: var(--cream-deep);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--hairline);
}

.hero__sidebar-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--stone-ink);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.hero__sidebar-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.875rem;
}

.hero__sidebar-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--stone-70);
  line-height: 1.5;
}

.hero__sidebar-list svg {
  width: 18px; height: 18px;
  color: var(--sage);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* =========================================================
   Section heading
   ========================================================= */

.section-head {
  max-width: 760px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section-head--left { margin: 0 0 3rem; text-align: left; }

.section-head__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.25rem;
}

.section-head__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.section-head__sub {
  font-size: 1.125rem;
  color: var(--stone-70);
  line-height: 1.65;
}

/* =========================================================
   5-step inheritance walkthrough (editorial scroll flow)
   ========================================================= */

.walkthrough {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .walkthrough { gap: 6rem; }
}

.step {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .step { grid-template-columns: 1fr 1.4fr; gap: 4rem; }
  .step:nth-child(even) { grid-template-columns: 1.4fr 1fr; }
  .step:nth-child(even) .step__visual { order: 2; }
}

.step__visual {
  aspect-ratio: 5 / 4;
  background: var(--cream-deep);
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--stone-40);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  position: relative;
  overflow: hidden;
}

.step__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(100, 123, 104, 0.1), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(181, 131, 112, 0.08), transparent 60%);
  pointer-events: none;
}

.step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--dusty-rose);
  margin-bottom: 0.5rem;
}

.step__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
  color: var(--stone-ink);
}

.step__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--stone-70);
}

.step__body + .step__body { margin-top: 1rem; }

/* =========================================================
   Pull quote (editorial)
   ========================================================= */

.pull-quote {
  max-width: 760px;
  margin: 6rem auto;
  padding: 3rem 2rem;
  border-left: 2px solid var(--sage);
  background: transparent;
}

@media (min-width: 768px) { .pull-quote { padding: 4rem 3rem; } }

.pull-quote__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
  color: var(--stone-ink);
  margin-bottom: 1.5rem;
}

.pull-quote__attribution {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dusty-rose);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* =========================================================
   Step-up basis calculator (interactive)
   ========================================================= */

.calculator {
  background: var(--cream-deep);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 768px) { .calculator { padding: 3.5rem; } }

.calculator__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--stone-ink);
  margin-bottom: 0.75rem;
  text-align: center;
}

.calculator__sub {
  text-align: center;
  font-size: 1rem;
  color: var(--stone-70);
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-inline: auto;
}

.calc-form {
  display: grid;
  gap: 1.25rem;
}

.calc-field { display: flex; flex-direction: column; gap: 0.5rem; }

.calc-field label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.calc-field input {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 0.875rem 1rem;
  background: var(--cream);
  border: 1.5px solid var(--stone-15);
  border-radius: 8px;
  color: var(--stone-ink);
  font-weight: 500;
  transition: border-color var(--duration) var(--ease-out);
}

.calc-field input:focus {
  outline: none;
  border-color: var(--sage);
}

.calc-result {
  margin-top: 1rem;
  padding: 1.75rem;
  background: var(--sage);
  border-radius: 12px;
  color: var(--cream);
  text-align: center;
}

.calc-result__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(247, 242, 234, 0.7);
  margin-bottom: 0.5rem;
}

.calc-result__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.calc-result__note {
  font-size: 0.8125rem;
  color: rgba(247, 242, 234, 0.7);
  margin-top: 0.75rem;
  line-height: 1.5;
  max-width: 360px;
  margin-inline: auto;
}

/* =========================================================
   FAQ — family conflict edition
   ========================================================= */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--hairline);
}
.faq__item:first-child { border-top: 1px solid var(--hairline); }

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--stone-ink);
  cursor: pointer;
  list-style: none;
  transition: color var(--duration) var(--ease-out);
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__summary:hover { color: var(--sage); }

.faq__chevron {
  width: 22px; height: 22px;
  color: var(--stone-40);
  transition: transform var(--duration) var(--ease-out);
  flex-shrink: 0;
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }

.faq__body {
  font-size: 1.0625rem;
  color: var(--stone-70);
  line-height: 1.75;
  padding-bottom: 1.75rem;
}
.faq__body p + p { margin-top: 1rem; }

/* =========================================================
   Letters from past sellers
   ========================================================= */

.letters {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .letters { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

.letter {
  background: var(--cream-deep);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
}

.letter__open {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--dusty-rose);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.letter__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--stone-70);
}

.letter__body p + p { margin-top: 1rem; }

.letter__sign {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--stone-ink);
  font-size: 1.0625rem;
}

.letter__loc {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--stone-40);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* =========================================================
   CTA band
   ========================================================= */

.cta-band {
  background: var(--sage);
  color: var(--cream);
  text-align: center;
}

.cta-band h2 { color: var(--cream); }

.cta-band__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-band__sub {
  font-size: 1.125rem;
  color: rgba(247, 242, 234, 0.85);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.65;
}

.cta-band .btn--primary {
  background: var(--cream);
  color: var(--stone-ink);
}
.cta-band .btn--primary:hover { background: var(--cream-deep); }

.cta-band .btn--secondary {
  border-color: rgba(247, 242, 234, 0.45);
  color: var(--cream);
}
.cta-band .btn--secondary:hover {
  background: rgba(247, 242, 234, 0.1);
}

.cta-band__buttons {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--stone-ink);
  color: rgba(247, 242, 234, 0.65);
  padding: 5rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer__brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 1.25rem;
}

.footer__desc {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 360px;
}

.footer__col-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 1.25rem;
}

.footer__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}

.footer__list a {
  font-size: 0.9375rem;
  transition: color var(--duration) var(--ease-out);
}
.footer__list a:hover { color: var(--dusty-rose); }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 242, 234, 0.1);
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* =========================================================
   Reveal animation
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
