/* ==========================================================================
   Living in Los Banos — Design System
   Palette: Forest Green / Warm Gold / White / Charcoal / Neutral
   ========================================================================== */

:root {
  --forest: #1B3B2F;
  --forest-dark: #12281F;
  --forest-light: #2C5745;
  --gold: #C6A15B;
  --gold-light: #E4C98A;
  --gold-dark: #A9843F;
  --white: #FFFFFF;
  --cream: #F7F4EE;
  --sand: #EFE9DD;
  --charcoal: #262624;
  --charcoal-soft: #4A4844;
  --line: #E3DDCF;
  --success: #3F6B4C;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(27, 59, 47, 0.08);
  --shadow-md: 0 8px 28px rgba(27, 59, 47, 0.12);
  --shadow-lg: 0 20px 50px rgba(18, 40, 31, 0.18);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest-dark);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
p { margin-bottom: 16px; color: var(--charcoal-soft); }
p:last-child { margin-bottom: 0; }
strong { color: var(--charcoal); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.15rem;
  color: var(--charcoal-soft);
  max-width: 65ch;
}

/* ---------------- Top utility bar ---------------- */
.topbar {
  background: var(--forest-dark);
  color: var(--sand);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--gold-light); font-weight: 600; }
.topbar .topbar-left span { margin-right: 18px; }
.topbar .topbar-left span:last-child { margin-right: 0; }

/* ---------------- Header / Nav ---------------- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo .mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-dark);
}
.logo .mark span { color: var(--gold-dark); }
.logo .sub {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--charcoal-soft);
  text-transform: uppercase;
  margin-top: 2px;
}
nav.primary-nav { display: flex; align-items: center; gap: 2px; }
nav.primary-nav > ul { display: flex; align-items: center; gap: 2px; }
nav.primary-nav > ul > li { position: relative; }
nav.primary-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
nav.primary-nav > ul > li > a:hover,
nav.primary-nav > ul > li.active > a { color: var(--forest); background: var(--cream); }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 240px;
  padding: 8px;
  margin-top: 4px;
}
nav.primary-nav > ul > li:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal-soft);
}
.dropdown a:hover { background: var(--cream); color: var(--forest); }
.nav-cta {
  background: var(--gold);
  color: var(--forest-dark) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--gold-dark); color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  align-items: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--forest-dark); display: block; transition: 0.2s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--forest-dark); }
.btn-primary:hover { background: var(--gold-dark); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--forest-dark); }
.btn-outline-dark { border-color: var(--forest); color: var(--forest); }
.btn-outline-dark:hover { background: var(--forest); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 60%, var(--forest-light) 100%);
  color: var(--white);
  padding: 96px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,161,91,0.22) 0%, rgba(198,161,91,0) 70%);
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lede { color: rgba(255,255,255,0.86); }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-light); }
.hero-stats div span { font-size: 0.82rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.06em; }

.page-hero {
  background: linear-gradient(135deg, var(--forest-dark), var(--forest));
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: rgba(255,255,255,0.86); }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.85); font-weight: 600; }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------------- Sections ---------------- */
section { padding: 76px 0; }
section.tight { padding: 48px 0; }
.section-alt { background: var(--cream); }
.section-forest { background: var(--forest-dark); color: var(--white); }
.section-forest h2, .section-forest h3 { color: var(--white); }
.section-forest p { color: rgba(255,255,255,0.82); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- Grids / Cards ---------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.card h3 { margin-bottom: 8px; }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card-flat {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.stat-card { text-align: center; padding: 26px 18px; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--forest); }
.stat-card span { font-size: 0.85rem; color: var(--charcoal-soft); }

/* ---------------- Neighborhood / Place cards ---------------- */
.place-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.place-card .media {
  height: 150px;
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.place-card .body { padding: 22px; }
.place-card .tag {
  display: inline-block;
  background: var(--sand);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------------- Quote / testimonial ---------------- */
.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 24px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--forest-dark);
  margin: 28px 0;
}

/* ---------------- CTA banners ---------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--gold), var(--gold-dark));
  color: var(--forest-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--forest-dark); margin-bottom: 6px; }
.cta-banner p { color: rgba(27,59,47,0.78); }

/* ---------------- Table ---------------- */
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; }
table th, table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
table th { background: var(--forest-dark); color: var(--white); font-weight: 600; }
table tr:last-child td { border-bottom: none; }
table tr:nth-child(even) td { background: var(--cream); }

/* ---------------- Testimonials ---------------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card p.quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest-dark);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 18px;
}
.testimonial-card p.quote-es { font-family: var(--font-body); font-style: italic; font-size: 0.95rem; }
.testimonial-attr { font-size: 0.85rem; font-weight: 700; color: var(--charcoal-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.testimonial-source { font-size: 0.78rem; color: var(--charcoal-soft); font-weight: 500; text-transform: none; letter-spacing: 0; margin-top: 2px; }
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
}

/* ---------------- FAQ ---------------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--forest-dark); }
.faq-item p { margin-bottom: 0; }

/* ---------------- Form ---------------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--forest-dark); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--gold); background: var(--white); }

/* ---------------- Footer ---------------- */
footer.site-footer {
  background: var(--forest-dark);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--gold-light); }
.footer-brand .mark { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); font-weight: 700; }
.footer-brand .mark span { color: var(--gold-light); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-top: 12px; max-width: 34ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.fair-housing { font-size: 0.78rem; color: rgba(255,255,255,0.55); max-width: 900px; margin: 0 auto 20px; padding-top: 20px; line-height: 1.6; }

/* ---------------- Utilities ---------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.center-col { max-width: 760px; margin: 0 auto; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 4px 6px 4px 0;
}
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.list-check li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--charcoal-soft); }
.list-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-dark); font-weight: 700; }
.divider { height: 1px; background: var(--line); margin: 48px 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-wrap { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  nav.primary-nav {
    display: none;
    width: 100%;
    order: 3;
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 10px;
  }
  nav.primary-nav.open { display: block; }
  nav.primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  nav.primary-nav > ul > li > a { padding: 12px 8px; }
  .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    margin: 0 0 0 12px;
    padding: 0 0 4px;
    min-width: 0;
  }
  .nav-cta { display: inline-flex; margin: 10px 8px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 64px 0 56px; }
}
