/* ============================================
   MLB HOMES — SHARED STYLESHEET
   Coastal Luxury Palette
   ============================================ */

:root {
  --ivory: #F7F4EE;
  --oyster: #E9E2D6;
  --sand: #DBC7AE;
  --driftwood: #A89782;
  --charcoal: #2F2F2C;
  --seagrass: #6E712C;

  --bg: #FFFFFF;
  --ink: #2A2826;
  --ink-soft: #5C5853;
  --ink-quiet: #8E8A82;
  --line: #E5DFD2;
  --line-soft: #EFEBE0;

  --accent: #A89782;          /* driftwood, used as primary */
  --accent-deep: #7A6B58;
  --accent-warm: #B89E78;

  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--charcoal); color: #fff; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ========== HEADER (shared across pages) ========== */
.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 100;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  display: flex;
  align-items: center;
}
.site-logo {
  height: 52px;
  width: auto;
  display: block;
}
.footer-brand .site-logo {
  height: 44px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  mix-blend-mode: screen;
}
.brand-text {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.site-nav ul {
  display: flex;
  gap: 38px;
  list-style: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent-deep); }
.site-nav a.active {
  color: var(--charcoal);
  border-bottom: 1px solid var(--accent);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--charcoal);
  cursor: pointer;
}

/* ========== FOOTER (shared) ========== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
  padding: 70px 48px 28px;
}
.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-logo svg text { fill: #fff !important; }
.footer-brand .brand-logo svg text[fill="#A89782"] { fill: #DBC7AE !important; }
.footer-brand .brand-logo svg line,
.footer-brand .brand-logo svg polyline { stroke: rgba(255,255,255,0.7) !important; }
.footer-brand p {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  max-width: 36ch;
  color: rgba(255,255,255,0.7);
}
.footer-col h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 22px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a, .footer-col li {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--sand); }

.footer-bottom {
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
.footer-bottom .socials {
  display: flex;
  gap: 16px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.btn-light {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-light:hover {
  background: var(--charcoal);
  color: #fff;
}
.btn-ghost-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-ghost-white:hover {
  background: #fff;
  color: var(--charcoal);
}

/* ========== STATUS BADGES ========== */
.status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 0;
}
.status-available { color: var(--seagrass); }
.status-construction { color: var(--accent-deep); }
.status-coming { color: var(--driftwood); }
.status-sold { color: var(--ink-quiet); }

.status-pill {
  display: inline-block;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pill-available { background: var(--seagrass); color: #fff; }
.pill-construction { background: var(--accent-deep); color: #fff; }
.pill-coming { background: var(--ivory); color: var(--charcoal); border: 1px solid var(--driftwood); }

/* ========== SECTION HEADINGS ========== */
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
}

.page-title {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--charcoal);
}
.page-title em { font-style: italic; }

.page-subtitle {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 60ch;
}

/* ========== REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE NAV ========== */
@media (max-width: 900px) {
  .site-header { padding: 16px 22px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .site-nav.open { max-height: 400px; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 22px 24px;
  }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }

  .site-footer { padding: 60px 22px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { padding: 20px 22px 0; flex-direction: column; text-align: center; }
}
