/*
Theme Name: Spencer Mengual Real Estate
Version: 1.1.0
*/

/* Warm West Coast design layer. Colours are centralized for easy changes. */
:root {
  --ink: #26332f;
  --muted: #68736e;
  --line: #d9ddd7;
  --soft: #f3f0e9;
  --panel: rgba(255, 253, 248, 0.96);
  --white: #fffdf8;
  --sand: #eee8dc;
  --stone: #b8b4a9;
  --accent: #b46f4e;
  --accent-dark: #8f5238;
  --gold: #b46f4e;
  --gold-light: #ecd1bf;
  --evergreen: #557264;
  --evergreen-dark: #365247;
  --evergreen-soft: #e6eee9;
  --shadow: 0 18px 50px rgba(38, 51, 47, 0.09);
  --radius: 16px;
}

body {
  background: #f8f6f1;
  color: var(--ink);
  font-size: 17px;
}

h1, h2, h3 {
  letter-spacing: -0.025em;
}

.site-header,
.site-header[data-elevated="true"] {
  min-height: 92px;
  padding: 0 clamp(20px, 3vw, 44px);
  border-color: rgba(38, 51, 47, 0.1);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 8px 30px rgba(38, 51, 47, 0.06);
  backdrop-filter: blur(18px);
}

.brand-complete {
  width: min(390px, 30vw);
  max-height: 72px;
}

.main-nav {
  gap: clamp(11px, 1.35vw, 21px);
  font-size: 0.93rem;
}

.header-contact,
.primary-button,
.main-nav .mobile-consultation {
  border-color: var(--evergreen-dark);
  background: var(--evergreen-dark);
}

.header-contact {
  min-height: 44px;
  padding: 0 19px;
  box-shadow: none;
}

.header-contact:hover,
.primary-button:hover {
  border-color: var(--evergreen);
  color: #fff;
  background: var(--evergreen);
}

.nav-menu {
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.99);
}

.hero {
  padding-top: 108px;
  padding-bottom: 64px;
  background: linear-gradient(180deg, #f8f6f1 0%, #fffdf8 100%);
}

.hero::before { display: none; }

.hero-banner {
  width: min(1320px, calc(100% - 48px));
  border-radius: 22px;
}

.hero-banner::after {
  background: linear-gradient(90deg, rgba(255,253,248,.96), rgba(255,253,248,.68) 35%, rgba(255,253,248,.08) 70%);
}

.hero-banner img {
  height: clamp(390px, 42vw, 590px);
}

.hero-banner-copy {
  bottom: clamp(120px, 12vw, 170px);
  width: min(560px, calc(100% - 56px));
}

.hero-banner-copy h1 {
  font-size: clamp(2.65rem, 4.5vw, 4.8rem);
  line-height: 0.98;
}

.hero-banner-copy span {
  max-width: 500px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.hero-content {
  width: min(1050px, calc(100% - 40px));
  margin-top: -72px;
}

.hero-search {
  border: 1px solid rgba(38, 51, 47, 0.1);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(38, 51, 47, 0.13);
}

.hero-search input,
.hero-search select {
  background: #f5f3ee;
}

section:not(.hero) {
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

section.home-links,
section.home-neighbourhoods,
section.home-island-search,
section.home-connect-section {
  padding-top: clamp(58px, 6vw, 84px);
  padding-bottom: clamp(58px, 6vw, 84px);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.home-island-callout h2 {
  max-width: 850px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.04;
}

.popular-section,
.neighbourhood-section,
.guide-band,
.form-section {
  background: var(--soft);
}

.popular-card,
.home-neighbourhood-grid .compact-neighbourhood-card,
.home-island-callout,
.home-lead-form,
.home-contact-feature {
  border-color: rgba(38, 51, 47, 0.12);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(38, 51, 47, 0.06);
}

.popular-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 30px;
  text-align: left;
}

.popular-card button { margin-top: auto; }

.home-neighbourhood-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-neighbourhood-grid .compact-neighbourhood-card {
  min-height: 76px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-neighbourhood-grid .compact-neighbourhood-card:hover {
  border-color: var(--evergreen);
  box-shadow: 0 14px 30px rgba(38, 51, 47, 0.1);
}

.home-island-callout {
  padding: clamp(34px, 5vw, 64px);
  background: linear-gradient(135deg, #fffdf8, #e6eee9);
}

.interior-parallax {
  min-height: 560px;
  background-attachment: fixed;
}

.parallax-copy h2 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

section.home-connect-section {
  background: #f8f6f1;
}

.home-connect-heading h2 {
  font-size: clamp(2.7rem, 5vw, 5.4rem);
}

.home-lead-form {
  padding: clamp(24px, 4vw, 42px);
}

.home-contact-feature {
  overflow: hidden;
}

.site-footer {
  width: 100%;
  padding: 30px max(28px, calc((100% - 1180px) / 2));
  background: var(--evergreen-dark);
  color: rgba(255,255,255,.8);
}

.chat-toggle {
  background: var(--accent-dark);
}

@media (max-width: 1180px) {
  .brand-complete { width: min(360px, 55vw); }
  .main-nav { top: 82px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .site-header,
  .site-header[data-elevated="true"] {
    min-height: 76px;
    padding: 0 16px;
  }

  .brand-complete {
    width: min(235px, 64vw);
    max-height: 56px;
  }

  .hero {
    padding-top: 88px;
    padding-bottom: 42px;
  }

  .hero-banner {
    width: calc(100% - 24px);
    border-radius: 16px;
  }

  .hero-banner img {
    height: 470px;
    object-position: 66% center;
  }

  .hero-banner::after {
    background: linear-gradient(180deg, rgba(255,253,248,.18), rgba(255,253,248,.92) 70%, #fffdf8 100%);
  }

  .hero-banner-copy {
    left: 22px;
    bottom: 118px;
    width: calc(100% - 44px);
  }

  .hero-banner-copy h1 {
    max-width: 330px;
    font-size: clamp(2.4rem, 12vw, 3.35rem);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-top: -92px;
  }

  .hero-search { padding: 14px; }

  section:not(.hero),
  section.home-links,
  section.home-neighbourhoods,
  section.home-island-search,
  section.home-connect-section {
    padding: 52px 18px;
  }

  .popular-grid,
  .home-neighbourhood-grid {
    grid-template-columns: 1fr;
  }

  .popular-card { min-height: 220px; }

  .home-island-callout {
    gap: 26px;
    padding: 28px 22px;
  }

  .home-island-callout .cta-actions {
    min-width: 0;
  }

  .interior-parallax {
    min-height: 480px;
    background-attachment: scroll;
  }

  .home-connect-heading { text-align: left; }
  .home-lead-form { padding: 22px 18px; }

  .home-contact-portrait {
    aspect-ratio: 4 / 5;
  }
}
