/* ============================================================
   SC HOME BUYERS — index.css
   Palette:  ink #080808 · charcoal #111111 · ivory #F5F2EC
             gold #C9A24B · gold-soft #E4C87E · muted #8A8578
   Type:     Cormorant Garamond (display) · JetBrains Mono (utility)
   Units:    relative throughout (rem / clamp / vw / vh)
   ============================================================ */

:root {
  --ink:        #080808;
  --charcoal:   #111111;
  --panel:      #161514;
  --ivory:      #F5F2EC;
  --gold:       #C9A24B;
  --gold-soft:  #E4C87E;
  --muted:      #8A8578;
  --line:       rgba(201, 162, 75, 0.18);
  --line-soft:  rgba(245, 242, 236, 0.08);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-mono:    "JetBrains Mono", monospace;

  --pad-x: clamp(1.5rem, 5vw, 6rem);
  --maxw:  75rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- shared section devices ---------- */
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.12;
  color: var(--ivory);
  margin-bottom: 2.5rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  transition: background .35s ease, color .35s ease,
              transform .3s ease, box-shadow .35s ease;
}
.btn:hover,
.btn:focus-visible,
.btn:active {
  background: transparent;
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,162,75,0.35);
}
.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201,162,75,0.4);
}


/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem var(--pad-x);
  background: rgba(8,8,8,0.72);
  backdrop-filter: blur(10px);
}
.nav__brand img { height: clamp(4.4rem, 7vw, 6.2rem); display: block; }
.nav__links { display: flex; gap: clamp(1.5rem, 3vw, 3rem); }
.nav__links a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s ease;
  position: relative;
  padding-bottom: 0.45rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold), 0 0 14px rgba(201,162,75,0.6);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .4s cubic-bezier(0.6, 0, 0.2, 1);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ivory); }
.nav__links a:hover::after,
.nav__links a:active::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 26px; height: 1.5px; background: var(--ivory); transition: .3s; }

/* ============================================================
   1 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--pad-x) 4rem;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  opacity: 0.9;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 60rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* subtle gold glow hugging the logo edge (like an outline) */
.hero__glow {
  position: absolute;
  top: 42%;
  left: 50%;
  width: clamp(13rem, 26vw, 22rem);
  height: clamp(13rem, 26vw, 22rem);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
              rgba(201,162,75,0.06) 0%,
              rgba(201,162,75,0) 55%);
  border-radius: 50%;
  z-index: -1;
  animation: glowPulse 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.6; }
}

.hero__logo {
  width: clamp(13rem, 26vw, 22rem);
  height: auto;
  margin-bottom: 2.2rem;
  filter: drop-shadow(0 0 3px rgba(201,162,75,0.4))
          drop-shadow(0 0 6px rgba(201,162,75,0.2));
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-top: 2.5rem;
  margin-bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__cue {
  position: absolute;
  bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; justify-content: center;
}
.hero__cue span {
  width: 3px; height: 8px; margin-top: 8px;
  background: var(--gold); border-radius: 2px;
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100%{opacity:0;transform:translateY(0);} 50%{opacity:1;transform:translateY(6px);} }

/* ============================================================
   2 · TRUST BAR
   ============================================================ */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: 1.8rem var(--pad-x);
  background: var(--charcoal);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.trust__item {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-left: 1.4rem;
}
.trust__item::before {
  content: "◆"; position: absolute; left: 0;
  color: var(--gold); font-size: 0.6rem; top: 0.15rem;
}

/* ============================================================
   3 · HOW IT WORKS
   ============================================================ */
.how {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 5.25rem) var(--pad-x);
  text-align: center;
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  text-align: left;
}
.step {
  border: 1px solid var(--line-soft);
  border-top: 1px solid var(--gold);
  padding: 2.4rem 1.9rem;
  transition: background .4s ease, transform .4s ease;
}
.step:hover { background: var(--charcoal); transform: translateY(-4px); }
.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.step p { font-size: 0.82rem; color: rgba(245,242,236,0.65); line-height: 1.85; }

/* ============================================================
   4 · WHY SELL DIRECT
   ============================================================ */
.why {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 4rem) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.why__lead { font-size: 0.9rem; color: rgba(245,242,236,0.72); margin-bottom: 1.8rem; line-height: 1.9; }
.why__list { list-style: none; }
.why__list li {
  font-size: 0.82rem;
  color: rgba(245,242,236,0.82);
  padding: 0.7rem 0 0.7rem 1.7rem;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.why__list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 500;
}
.why__panel { display: flex; justify-content: center; }
.compare {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--charcoal);
  padding: 0.5rem 0;
}
.compare__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: center;
  padding: 1rem 1.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line-soft);
}
.compare__row:last-child { border-bottom: 0; }
.compare__row span:first-child { color: var(--muted); text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.15em; }
.compare__row span:nth-child(2) { color: rgba(245,242,236,0.55); }
.compare__row .is-gold { color: var(--gold); font-weight: 500; }
.compare__row--head span { color: var(--ivory) !important; text-transform: uppercase; font-size: 0.62rem; letter-spacing: 0.2em; }
.compare__row--head .is-gold { color: var(--gold) !important; }

/* ============================================================
   5 · TWO AUDIENCES
   ============================================================ */
.split {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 2.75rem) var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.split__card {
  border: 1px solid var(--line);
  padding: clamp(2.2rem, 4vw, 3.4rem);
  transition: background .4s ease, transform .4s ease;
  display: flex;
  flex-direction: column;
}
.split__card:hover { background: var(--charcoal); transform: translateY(-4px); }
.split__label {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.split__card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 0.9rem;
}
.split__card p { font-size: 0.84rem; color: rgba(245,242,236,0.66); margin-bottom: 1.8rem; line-height: 1.85; }
.split__arrow { margin-top: auto; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ivory); }
.split__card:hover .split__arrow { color: var(--gold); }

/* ============================================================
   6 · TESTIMONIALS
   ============================================================ */
.voices {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 5.25rem) var(--pad-x);
  text-align: center;
}
.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  text-align: left;
  margin-bottom: 2.8rem;
}
.voice {
  border-left: 1px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.8rem;
  display: flex;
  flex-direction: column;
}
.voice p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ivory);
  margin-bottom: 1.3rem;
  position: relative;
  overflow: hidden;
}
/* collapsed: cap the height and fade the bottom edge */
.voice p.is-clamped {
  max-height: 12rem;
  margin-bottom: 0.6rem;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.voice p.is-expanded {
  max-height: none;
  -webkit-mask-image: none;
          mask-image: none;
}
/* read more / less toggle */
.voice__toggle {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  transition: color .3s ease;
}
.voice__toggle:hover { color: var(--gold-soft); }
.voice cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
}
.voices__more { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

/* ============================================================
   7 · FINAL CTA
   ============================================================ */
.final {
  text-align: center;
  padding: clamp(3rem, 7vw, 6rem) var(--pad-x);
  background: var(--charcoal);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.final__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.6rem);
  margin-bottom: 1.2rem;
}
.final__sub { font-size: 0.9rem; color: rgba(245,242,236,0.68); margin-bottom: 2.6rem; }

/* ============================================================
   8 · FOOTER
   ============================================================ */
.footer {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}
.footer__brand img { height: 3.4rem; }
.footer__links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer__links a {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  transition: color .3s ease;
}
.footer__links a:hover { color: var(--gold); }
.footer__legal { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--muted); }

/* ============================================================
   FAQ (shared — home + about)
   ============================================================ */
.faq {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 5.25rem) var(--pad-x);
  text-align: center;
}
.faq__list {
  text-align: left;
  margin-top: 1rem;
}
.faq__item {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
/* gold glowing separator that lights up like the active nav underline */
.faq__item::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold), 0 0 14px rgba(201,162,75,0.6);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .45s cubic-bezier(0.6, 0, 0.2, 1);
}
.faq__item:hover::after,
.faq__item[open]::after { transform: scaleX(1); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ivory);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: color .3s ease;
}
.faq__item summary:hover { color: var(--gold); }
.faq__item summary::-webkit-details-marker { display: none; }

/* padlock icon: locked (shackle seated) when closed, pops open when expanded */
.faq__lock {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  overflow: visible;
}
.faq__lock .shackle {
  /* hinge on the right leg where it meets the body, so the shackle
     lifts up and the left side swings out — like a real lock opening */
  transform-origin: 16px 12px;
  transition: transform .45s cubic-bezier(0.34, 1.4, 0.5, 1);
}
/* when open: shackle lifts up and out of the body, then rotates open */
.faq__item[open] .faq__lock .shackle {
  transform: translateY(-4px) rotate(-38deg);
}

/* answer fade-in on open */
.faq__body {
  padding: 0 0 1.6rem;
}
.faq__item[open] .faq__body {
  animation: faqFade .8s ease both;
}
@keyframes faqFade {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq__body p {
  font-size: 0.86rem;
  line-height: 1.9;
  color: rgba(245, 242, 236, 0.68);
  max-width: 40rem;
}

/* ============================================================
   REVEAL ANIMATION (scroll)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   DESKTOP-FIRST — light tablet safeguard only
   (full mobile/responsive pass to come later)
   ============================================================ */
@media (max-width: 900px) {
  /* hamburger shows, inline links hide by default */
  .nav__toggle { display: flex; }

  /* the nav bar becomes the anchor for the dropdown panel */
  .nav { position: fixed; }

  /* mobile menu: hidden by default, drops down from the nav when open */
  .nav__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 6rem 1.5rem 2rem;
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    /* hidden state: slid up out of view */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .4s cubic-bezier(0.6, 0, 0.2, 1),
                opacity .4s ease, visibility .4s;
    z-index: 40;
  }
  /* open state: slides down into view */
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__links a {
    padding: 1.1rem 0;
    font-size: 0.85rem;
  }

  /* hamburger animates into an X when the menu is open */
  .nav__toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* keep the brand/logo above the dropdown panel */
  .nav__brand { position: relative; z-index: 45; }
  .nav__toggle { position: relative; z-index: 45; }

  /* stack the content grids on narrow screens */
  .how__grid, .voices__grid { grid-template-columns: 1fr; }
  .why, .split { grid-template-columns: 1fr; }

  /* center the "why direct" section on mobile so it matches
     the uniform centered look of every other section */
  .why { text-align: center; }
  .why .section__title,
  .why .section__eyebrow { text-align: center; }
  .why__lead { margin-left: auto; margin-right: auto; max-width: 32rem; }
  .why__list { display: inline-block; text-align: left; }
}