/* ============================================
   HOLLY OAKS LAND — Design Tokens & Base Styles
   ============================================ */

:root {
  /* Brand colors */
  --navy: #16213D;
  --navy-light: #233355;
  --navy-dark: #0E1628;
  --sage: #7A8B5C;
  --sage-light: #97A878;
  --sage-dark: #5E6E44;
  --gold: #C9A04E;
  --gold-light: #DBB968;
  --gold-dark: #A8813A;
  --parchment: #F7F4ED;
  --parchment-dark: #EFEADC;
  --charcoal: #2B2B28;
  --charcoal-light: #5C5B54;
  --white: #FFFFFF;
  --line: rgba(43, 43, 40, 0.12);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.lead {
  font-size: 1.15rem;
  color: var(--charcoal-light);
  max-width: 640px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--parchment);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-icon { height: 38px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.nav-logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--sage-dark);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--sage-dark); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.4rem; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy); }

/* ---------- Topographic motif (signature element) ---------- */

.topo-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.topo-bg svg { width: 100%; height: 100%; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-2xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.9rem;
}
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.65rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- Utility ---------- */

.section { padding: var(--space-2xl) 0; }
.section-tight { padding: var(--space-xl) 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}

/* ── Mobile nav drawer ── */
.nav-mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 200;
  padding: 1.5rem;
  gap: 0;
  align-items: stretch;
  justify-content: flex-start;
  overflow-y: auto;
}
.nav-mobile-open .nav-mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 1rem;
}
.nav-mobile-open .nav-mobile-wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}
.nav-mobile-open .nav-mobile-close {
  background: none; border: none; cursor: pointer;
  color: var(--white); padding: 0.4rem;
}
.nav-mobile-open a {
  display: block;
  font-size: 1.3rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--white);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.15s;
}
.nav-mobile-open a:hover { color: var(--gold-light); }
.nav-mobile-open .nav-mobile-cta {
  margin-top: 1.5rem;
  background: var(--gold);
  color: var(--navy-dark) !important;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.5rem !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 700;
  text-align: center;
  border-bottom: none !important;
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-xl) 0; }

  /* Prevent any section from overflowing viewport width on mobile */
  .value-visual, .listings-map-wrap, #home-map, #home-map-wrap {
    max-width: 100vw;
    overflow: hidden;
  }
}
