/* ============================================
   SIERRA HOME TEAM — Blend A: Warm Anchor
   Full site CSS — sht.augeo.one
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&family=DM+Serif+Display&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: 'DM Serif Display', Georgia, serif;
  color: var(--brown);
  line-height: 1.2;
}

/* --- 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: 'DM Serif Display', 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: 'DM Serif Display', 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;
  text-align: center;
  background: var(--cream);
}

.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: 'DM Serif Display', 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: 'DM Serif Display', 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; }

/* --- 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: 'DM Serif Display', 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;
}
