/* ============================================
   SIERRA HOME TEAM — Blend A: Warm Anchor
   Full site CSS — sierrahomegroup.com
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&family=Instrument+Serif:ital@0;1&display=swap');

/* --- Reset & Variables --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #FAF6F1;
  --beige: #F0E6D8;
  --brown: #2C2420;
  --gold: #C8A96E;
  --olive: #7A8B6F;
  --teal: #2A9D8F;
  --navy: #0F2B46;
  --text-mid: #6B5D52;
  --text-light: #9B8E82;
  --white: #FFFFFF;
  --max-width: 1100px;
}

body {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* --- GLOBAL OVERLINE --- */
.overline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

/* --- GLOBAL SECTION MODIFIERS --- */
.section--flush-top { padding-top: 0; }

/* --- CTA BANNER (navy) --- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: 32px; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 16px; font-weight: 300; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- PRICING CARD --- */
.pricing-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 48px;
  max-width: 480px;
  margin: 0 auto;
  border: 2px solid var(--teal);
}
.pricing-card .card-label {
  font-size: 14px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}
.pricing-card .card-price {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px;
  color: var(--brown);
  margin-bottom: 8px;
}
.pricing-card .card-note {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 24px;
}
.pricing-card ul { list-style: none; text-align: left; max-width: 300px; margin: 0 auto; }
.pricing-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--beige);
  font-size: 15px;
  color: var(--text-mid);
  font-weight: 300;
}
.pricing-card ul li:last-child { border-bottom: none; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--olive); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- SITE NAV --- */
.site-nav {
  background: var(--cream);
  border-bottom: 1px solid var(--beige);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}

.site-nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-nav .brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 20px;
  color: var(--brown);
  text-decoration: none;
}

.site-nav .brand span { color: var(--gold); }

.site-nav .nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.site-nav .nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active { color: var(--gold); }

.site-nav .nav-links a.active {
  border-bottom: 3px solid var(--gold);
  padding-bottom: 4px;
}

/* Per-page accent overrides on active nav */
body.page-buy .site-nav .nav-links a.active { border-bottom-color: var(--olive); color: var(--olive); }
body.page-credit .site-nav .nav-links a.active { border-bottom-color: var(--teal); color: var(--teal); }
body.page-loan .site-nav .nav-links a.active { border-bottom-color: var(--navy); color: var(--navy); }
body.page-about .site-nav .nav-links a.active { border-bottom-color: var(--gold); color: var(--gold); }
body.page-contact .site-nav .nav-links a.active { border-bottom-color: var(--gold); color: var(--gold); }

/* Per-page hero accent */
body.page-buy .page-hero { border-bottom-color: var(--olive); }
body.page-credit .page-hero { border-bottom-color: var(--teal); }
body.page-loan .page-hero { border-bottom-color: var(--navy); }
body.page-about .page-hero { border-bottom-color: var(--gold); }
body.page-contact .page-hero { border-bottom-color: var(--gold); }

/* Per-page overline accent */
body.page-buy .page-hero .overline { color: var(--olive); }
body.page-credit .page-hero .overline { color: var(--teal); }
body.page-loan .page-hero .overline { color: var(--navy); }

/* Per-page feature accent */
body.page-buy .feature { border-left-color: var(--olive); }
body.page-credit .feature { border-left-color: var(--teal); }
body.page-loan .feature { border-left-color: var(--navy); }

/* Per-page submit button accent */
body.page-buy .lead-form .submit-btn { background: var(--olive); }
body.page-buy .lead-form .submit-btn:hover { background: var(--gold); }
body.page-credit .lead-form .submit-btn { background: var(--teal); }
body.page-credit .lead-form .submit-btn:hover { background: var(--gold); }
body.page-loan .lead-form .submit-btn { background: var(--navy); }
body.page-loan .lead-form .submit-btn:hover { background: var(--gold); }

.site-nav .nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.site-nav .nav-cta:hover { background: var(--olive); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brown); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--beige);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .site-nav .nav-links.open { display: flex; }
  .site-nav .nav-links .nav-cta {
    margin-top: 8px;
    display: block;
    text-align: center;
    padding: 12px 24px;
  }
}

/* --- FOCUS VISIBLE --- */
a:focus-visible,
button:focus-visible,
.cta-btn:focus-visible,
.submit-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --- HERO SECTION --- */
.hero {
  padding: 80px 24px;
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  display: block;
}

.hero-text .subtitle {
  margin-left: 0 !important;
  max-width: none !important;
}

.hero-text .meta {
  text-align: left;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text .subtitle {
    margin: 0 auto 32px auto !important;
    max-width: 600px !important;
  }
  .hero-text .meta {
    text-align: center;
  }
}

.hero .overline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.hero .cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.hero .cta-btn:hover { background: var(--olive); color: var(--white); }

/* Ensure CTA buttons always have white text regardless of context */
.cta-btn { color: var(--white) !important; }

.hero .meta {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .hero { padding: 48px 24px; }
  .hero h1 { font-size: 32px; }
  .hero .subtitle { font-size: 16px; }
}

/* --- SERVICES GRID --- */
.services {
  padding: 80px 24px;
  background: var(--white);
}

.services .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.services .section-header .overline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 500;
}

.services .section-header h2 { font-size: 32px; margin-bottom: 8px; }

.services .section-header p {
  font-size: 16px;
  color: var(--text-mid);
  font-weight: 300;
}

.card-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
}

.card .card-tag {
  padding: 12px 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  font-weight: 600;
}

.card .card-body { padding: 24px; }
.card .card-body h3 { font-size: 22px; margin-bottom: 8px; }

.card .card-body .desc {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card .card-body ul {
  list-style: none;
  margin-bottom: 24px;
}

.card .card-body ul li {
  font-size: 14px;
  color: var(--brown);
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid var(--beige);
  font-weight: 300;
  position: relative;
}

.card .card-body ul li:last-child { border-bottom: none; }
.card .card-body ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.card .card-cta {
  display: inline-block;
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.card .card-cta:hover { opacity: 0.85; color: var(--white); }

/* Accent colors */
.accent-olive { background: var(--olive); }
.accent-teal { background: var(--teal); }
.accent-navy { background: var(--navy); }
.border-olive { border-top: 4px solid var(--olive); }
.border-teal { border-top: 4px solid var(--teal); }
.border-navy { border-top: 4px solid var(--navy); }

@media (max-width: 768px) {
  .services { padding: 48px 24px; }
  .card { min-width: 100%; max-width: 100%; }
}

/* --- TRUST / SOCIAL PROOF --- */
.trust {
  padding: 60px 24px;
  background: var(--cream);
  text-align: center;
}

.trust .overline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 500;
}

.trust h2 { font-size: 28px; margin-bottom: 32px; }

.trust-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-stat .number {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 42px;
  color: var(--gold);
  display: block;
}

.trust-stat .label {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 300;
}

/* --- IMAGE PLACEHOLDER --- */
.img-placeholder {
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.img-placeholder::after {
  content: attr(data-label);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 14px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.img-hero { aspect-ratio: 3 / 2; width: 100%; border-radius: 12px; }
.img-headshot { aspect-ratio: 1 / 1; width: 100%; border-radius: 50%; max-width: 200px; border: 2px solid var(--beige); background: #E5D5C3; }
.img-card { aspect-ratio: 3 / 2; width: 100%; }

/* --- TEAM GRID --- */
.team-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-member { text-align: center; max-width: 200px; }
.team-member h4 { font-size: 18px; margin-top: 16px; margin-bottom: 4px; }
.team-member .role { font-size: 13px; color: var(--text-mid); font-weight: 300; }

/* --- LEAD FORM --- */
.lead-form-section {
  padding: 80px 24px;
  background: var(--white);
}

.lead-form-section .form-container {
  max-width: 540px;
  margin: 0 auto;
}

.lead-form-section h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}

.lead-form-section .form-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-mid);
  font-weight: 300;
  margin-bottom: 32px;
}

.lead-form .field {
  margin-bottom: 16px;
}

.lead-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-mid);
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--beige);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  background: var(--white);
  color: var(--brown);
  transition: border-color 0.2s;
}

.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  border-color: var(--gold);
  outline: none;
}

.lead-form textarea { resize: vertical; min-height: 100px; }

/* Consent checkboxes */
.consent-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--beige);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.consent-check .consent-text {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
}

.consent-check .consent-text a { color: var(--gold); text-decoration: underline; }

.lead-form .submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 24px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.lead-form .submit-btn:hover { background: var(--olive); }

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.form-success h3 { font-size: 24px; margin-bottom: 8px; color: var(--olive); }
.form-success p { color: var(--text-mid); font-size: 16px; }

/* Inline form error message (injected by form-handler.js) */
.form-error-msg {
  display: none;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Disabled submit button during submission */
.lead-form .submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--brown);
  color: var(--beige);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand .tagline {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: rgba(240,230,216,0.7);
  line-height: 1.7;
}

.footer-links h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; }

.footer-links ul li { margin-bottom: 10px; }

.footer-links ul a {
  font-size: 14px;
  color: var(--beige);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-links ul a:hover { color: var(--gold); }

.footer-contact a {
  display: block;
  font-size: 14px;
  color: var(--beige);
  margin-bottom: 8px;
  font-weight: 300;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(240,230,216,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(240,230,216,0.5);
}

.footer-bottom a { color: rgba(240,230,216,0.5); }
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* --- SECTION UTILITY --- */
.section { padding: 80px 24px; }
.section-alt { background: var(--white); }
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* --- STICKY CTA BAR (mobile) --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brown);
  padding: 12px 24px;
  z-index: 200;
  text-align: center;
}

.sticky-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 64px; }
}

/* --- PAGE HERO (service pages) --- */
.page-hero {
  padding: 60px 24px 32px;
  text-align: center;
  background: var(--cream);
  border-bottom: 3px solid var(--gold);
}

.page-hero .overline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.page-hero h1 { font-size: 38px; margin-bottom: 12px; }

.page-hero p {
  font-size: 18px;
  color: var(--text-mid);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- FEATURE LIST --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature {
  padding: 32px;
  background: var(--cream);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
}

.feature.transparent {
  background: transparent;
}

.feature h3 { font-size: 20px; margin-bottom: 8px; }

.feature p {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 300;
  line-height: 1.7;
}

/* --- HERO SLIDESHOW (Buy a Home) — 6 slides, 36s cycle --- */
.hero-slideshow {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--beige);
}
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}
.hero-slideshow .slide.is-active {
  opacity: 1;
  z-index: 2;
}
.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
/* Reduced motion: still rotate (no frozen single image), just swap instantly */
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow .slide { transition: none; }
}

/* --- JOURNEY SECTION (Buy a Home) --- */
.journey {
  background: var(--navy);
  color: var(--cream);
  padding: 96px 24px;
}
.journey-container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.journey-header {
  text-align: center;
  margin-bottom: 64px;
}
.journey-header .overline-on-dark {
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 16px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
}
.journey-header h2 {
  color: var(--cream);
  font-size: 40px;
  margin-bottom: 16px;
}
.journey-header .journey-intro {
  color: var(--cream);
  opacity: 0.7;
  font-size: 15px;
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
@media (max-width: 900px) {
  .journey-grid { grid-template-columns: 1fr; gap: 32px; }
}

.journey-card {
  border-top: 2px solid var(--gold);
  padding: 28px 16px 28px 16px;
  position: relative;
  background: transparent;
  border-radius: 4px;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.35s ease,
    box-shadow 0.35s ease;
  /* Modern browsers: smooth height animation when toggling open */
  interpolate-size: allow-keywords;
}
.journey-card:hover {
  background: rgba(255, 255, 255, 0.02);
}
.journey-card[open] {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.2);
}
.journey-card summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num content toggle";
  gap: 8px 20px;
  align-items: start;
  outline: none;
}
.journey-card summary::-webkit-details-marker { display: none; }
.journey-card summary::marker { display: none; content: ''; }
.journey-card summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.journey-number {
  grid-area: num;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
}
.journey-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.journey-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  color: var(--cream);
  line-height: 1.25;
}
.journey-hook {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--cream);
  opacity: 0.75;
  font-weight: 300;
  line-height: 1.6;
}
.journey-hook em {
  color: var(--teal);
  font-style: italic;
  font-weight: 500;
  opacity: 1;
}
.journey-toggle {
  grid-area: toggle;
  font-size: 24px;
  color: var(--gold);
  font-weight: 300;
  line-height: 1;
  margin-top: 8px;
  transition: transform 0.25s ease;
  display: inline-block;
}
.journey-card[open] .journey-toggle {
  transform: rotate(45deg);
}

.journey-back {
  margin-top: 20px;
  padding: 20px 0 0 0;
  border-top: 1px solid rgba(200, 169, 110, 0.25);
  animation: journey-back-fade 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Browsers that support @starting-style get a smooth height transition.
   Older browsers fall back to snap-open + fade-in (still nice). */
@starting-style {
  .journey-card[open] > .journey-back {
    opacity: 0;
    transform: translateY(-8px);
  }
}
.journey-back p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--cream);
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.9;
  margin: 0;
}
.journey-back em {
  color: var(--teal);
  font-style: italic;
  font-weight: 500;
  opacity: 1;
}
@keyframes journey-back-fade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect reduced-motion preference — no card lift or content animation */
@media (prefers-reduced-motion: reduce) {
  .journey-card,
  .journey-card[open],
  .journey-back,
  .journey-toggle {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* --- TESTIMONIALS (Buy a Home) --- */
.testimonials-section {
  background: var(--cream);
  padding: 96px 24px;
}
.testimonials-container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}
.testimonials-header h2 {
  font-size: 36px;
  color: var(--navy);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--beige);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 2px 12px rgba(15, 43, 70, 0.06);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    background 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(15, 43, 70, 0.12);
  background: var(--cream);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}
.testimonial-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}
.testimonial-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.testimonial-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.testimonial-source {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.4;
}
.testimonial-source--google {
  background: rgba(66, 133, 244, 0.12);
  color: #1a73e8;
}
.testimonial-source--facebook {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
}
@media (max-width: 680px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-section {
    padding: 64px 20px;
  }
  .testimonial-card {
    padding: 28px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-card,
  .testimonial-card:hover {
    transform: none;
    transition: none;
  }
}
