/* South Bay Home Buyers — Global Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy: #0b1a3b;
  --navy-light: #132247;
  --navy-dark: #07112a;
  --yellow: #ffd600;
  --yellow-dark: #e6c000;
  --white: #f8f6f0;
  --white-pure: #ffffff;
  --gray-light: #f0ede6;
  --gray-mid: #d0cdc6;
  --gray-text: #6b6860;
  --text-dark: #1a1a2e;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: #3a3830; }
a { color: var(--navy); text-decoration: none; }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ─── NAV ─── */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--yellow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  height: 68px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.nav-logo span { color: var(--yellow); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: rgba(248,246,240,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-links .cta-btn {
  background: var(--yellow);
  color: var(--navy) !important;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}
.nav-links .cta-btn:hover { background: var(--yellow-dark); transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* ─── HERO ─── */
.hero {
  background: var(--navy);
  padding: 5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,214,0,0.03) 40px,
    rgba(255,214,0,0.03) 41px
  );
}
.hero-inner { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; max-width: 680px; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-sub { color: rgba(248,246,240,0.75); font-size: 1.1rem; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  border: 2px solid rgba(248,246,240,0.3);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.07); }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--yellow);
  padding: 1rem 1.5rem;
}
.trust-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.trust-item svg { flex-shrink: 0; }

/* ─── SECTIONS ─── */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--gray-light); }
.section-navy { background: var(--navy); }
.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-sub { text-align: center; color: var(--gray-text); font-size: 1.05rem; max-width: 600px; margin: 0 auto 3rem; }

/* ─── STEPS ─── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.step-card {
  background: var(--white-pure);
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.step-card:hover { box-shadow: 0 8px 32px rgba(11,26,59,0.1); transform: translateY(-3px); }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.step-card p { color: var(--gray-text); margin: 0; font-size: 0.95rem; }

/* ─── OFFER GRID ─── */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.offer-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(248,246,240,0.12);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.offer-card svg { margin: 0 auto 1rem; }
.offer-card h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.4rem; }
.offer-card p { color: rgba(248,246,240,0.65); font-size: 0.875rem; margin: 0; }

/* ─── SITUATIONS ─── */
.situations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.situation-pill {
  background: var(--white-pure);
  border: 1px solid var(--gray-mid);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.situation-pill:hover { border-color: var(--yellow); background: #fffbe6; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; }

/* ─── TESTIMONIALS ─── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.testimonial-card {
  background: var(--white-pure);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid var(--gray-mid);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--yellow);
  line-height: 1;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
}
.testimonial-text { font-size: 0.95rem; color: #3a3830; line-height: 1.7; padding-top: 1.5rem; margin-bottom: 1.25rem; }
.testimonial-author { font-weight: 600; font-size: 0.875rem; color: var(--navy); }
.testimonial-city { font-size: 0.8rem; color: var(--gray-text); }
.stars { color: var(--yellow); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* ─── FORM ─── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-mid);
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--white-pure);
  color: var(--text-dark);
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--gray-mid); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q .faq-icon { font-size: 1.25rem; color: var(--yellow); transition: transform 0.3s; flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding-bottom: 1.25rem; color: var(--gray-text); margin: 0; }

/* ─── LOCATION PAGE HERO ─── */
.loc-hero {
  background: var(--navy);
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.loc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,214,0,0.03) 40px, rgba(255,214,0,0.03) 41px);
}
.loc-hero-inner { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; }
.loc-hero h1 { color: var(--white); margin-bottom: 1rem; }
.loc-hero h1 em { color: var(--yellow); font-style: normal; }
.loc-hero p { color: rgba(248,246,240,0.75); max-width: 600px; font-size: 1.05rem; }

/* ─── SEO FOOTER ─── */
.seo-footer {
  background: #06101f;
  padding: 2rem 1.5rem;
}
.seo-footer-inner { max-width: 1140px; margin: 0 auto; }
.seo-footer p {
  font-size: 0.78rem;
  color: rgba(248,246,240,0.35);
  line-height: 1.8;
  margin: 0;
}

/* ─── MAIN FOOTER ─── */
.footer {
  background: var(--navy-dark);
  padding: 3rem 1.5rem 2rem;
  color: rgba(248,246,240,0.7);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.footer-brand h3 span { color: var(--yellow); }
.footer-brand p { font-size: 0.875rem; color: rgba(248,246,240,0.55); margin: 0; }
.footer-col h4 { color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.875rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(248,246,240,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(248,246,240,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(248,246,240,0.35); margin: 0; }
.nap { font-size: 0.8rem; color: rgba(248,246,240,0.45); }

/* ─── UTILITY ─── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.yellow { color: var(--yellow); }
.highlight { background: var(--yellow); color: var(--navy); padding: 0.1em 0.3em; }

/* ─── CTA BAND ─── */
.cta-band { background: var(--yellow); padding: 4rem 1.5rem; text-align: center; }
.cta-band h2 { color: var(--navy); margin-bottom: 0.75rem; }
.cta-band p { color: var(--navy); opacity: 0.75; margin-bottom: 1.75rem; font-size: 1.05rem; }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2.25rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

/* ─── COMPARISON TABLE ─── */
.compare-table { width: 100%; border-collapse: collapse; border-radius: 8px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 0.875rem 1.25rem; text-align: left; font-size: 0.9rem; }
.compare-table thead tr { background: var(--navy); }
.compare-table thead th { color: var(--white); font-weight: 600; }
.compare-table thead th:first-child { color: rgba(248,246,240,0.6); font-weight: 400; }
.compare-table thead th.col-us { color: var(--yellow); }
.compare-table tbody tr:nth-child(even) { background: var(--gray-light); }
.compare-table tbody tr:nth-child(odd) { background: var(--white-pure); }
.compare-table td { color: #3a3830; }
.check { color: #16a34a; font-weight: 700; }
.cross { color: #dc2626; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem 1.5rem; gap: 0.25rem; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.5rem; font-size: 1rem; }
  .nav { position: relative; }
  .hamburger { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 1.25rem; }
  .hero { padding: 3rem 1.5rem 3rem; }
  .section { padding: 3.5rem 1.5rem; }
}
