/* Westwood Plateau homepage — interactive states, motion, responsive rules.
   Layout and typography live inline in index.html (mirrors the approved design). */

html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: #F3F4FA;
  color: #061033;
  font-family: 'Source Sans Pro', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #101C5E; }
a:hover { color: #0018A8; }
::selection { background: #0018A8; color: #F3F4FA; }
input::placeholder { color: #7B82A3; }

/* ---------- Shared header (injected by js/nav.js) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,244,250,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6,16,51,0.1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links { display: flex; align-items: center; gap: 24px; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid rgba(6,16,51,0.15);
  border-radius: 3px;
  cursor: pointer;
}
.nav-burger span { display: block; height: 2px; background: #061033; }

@media (max-width: 1080px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #F3F4FA;
    border-bottom: 1px solid rgba(6,16,51,0.12);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { padding: 14px 24px; }
  .nav-links .nav-link.is-active { text-decoration: none; background: #E6E9F5; }
}

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

.btn-navy { background: #101C5E; color: #F3F4FA; text-decoration: none; font-weight: 600; border-radius: 3px; transition: background 160ms ease; }
.btn-navy:hover { background: #061033; color: #F3F4FA; }
.btn-navy:focus-visible { outline: 2px solid #0018A8; outline-offset: 3px; }

.btn-light { background: #F3F4FA; color: #061033; text-decoration: none; font-weight: 600; border: none; border-radius: 3px; cursor: pointer; transition: background 160ms ease; }
.btn-light:hover { background: #93A1E0; color: #061033; }
.btn-light:focus-visible { outline: 2px solid #93A1E0; outline-offset: 3px; }

.btn-ghost { border: 1px solid rgba(147,161,224,0.5); color: #F3F4FA; text-decoration: none; font-weight: 600; border-radius: 3px; transition: border-color 160ms ease, background 160ms ease; }
.btn-ghost:hover { border-color: #93A1E0; background: rgba(147,161,224,0.1); color: #F3F4FA; }
.btn-ghost:focus-visible { outline: 2px solid #93A1E0; outline-offset: 3px; }

.btn-blue { background: #0018A8; color: #FFFFFF; text-decoration: none; font-weight: 600; border-radius: 3px; transition: background 160ms ease; }
.btn-blue:hover { background: #001280; color: #FFFFFF; }
.btn-blue:focus-visible { outline: 2px solid #0018A8; outline-offset: 3px; }

.btn-outline-blue { border: 1px solid #0018A8; color: #0018A8; text-decoration: none; font-weight: 600; border-radius: 3px; transition: background 160ms ease, color 160ms ease; }
.btn-outline-blue:hover { background: #0018A8; color: #FFFFFF; }
.btn-outline-blue:focus-visible { outline: 2px solid #0018A8; outline-offset: 3px; }

/* ---------- Links ---------- */

.brand:focus-visible { outline: 2px solid #0018A8; outline-offset: 3px; }

.nav-link {
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #101C5E;
  white-space: nowrap;
}
.nav-link:hover { color: #0018A8; }
.nav-link:focus-visible { outline: 2px solid #0018A8; outline-offset: 3px; border-radius: 2px; }
.nav-link.is-active {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1.5px;
}

.nav-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
}

.link-upper { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #101C5E; }
.link-upper:hover { color: #0018A8; }
.link-upper:focus-visible { outline: 2px solid #0018A8; outline-offset: 3px; }

.footer-link { color: rgba(243,244,250,0.75); text-decoration: none; }
.footer-link:hover { color: #93A1E0; }
.footer-link:focus-visible { outline: 2px solid #93A1E0; outline-offset: 3px; }

/* ---------- Cards ---------- */

.hood-card { background: #F3F4FA; transition: background 160ms ease; }
.hood-card:hover { background: #E6E9F5; }

.listing-card { transition: box-shadow 160ms ease, transform 160ms ease; }
.listing-card:hover { box-shadow: 0 12px 32px rgba(6,16,51,0.12); transform: translateY(-3px); }

/* ---------- Form ---------- */

.input-dark {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 3px;
  border: 1px solid rgba(147,161,224,0.35);
  background: #061033;
  color: #F3F4FA;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 400;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.input-dark:focus { outline: 2px solid #93A1E0; outline-offset: 1px; }

/* ---------- Photo placeholders (swap for real photography) ---------- */

.img-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
  background: #E6E9F5;
  color: #7B82A3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ---------- Interior pages: hero / filter bar / contact strip ---------- */

.page-hero { position: relative; background: #061033; color: #F3F4FA; overflow: hidden; }
.page-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.page-hero .eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #93A1E0;
}
.page-hero h1 {
  margin: 0;
  font-family: 'Neuton', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.filter-bar {
  background: #FFFFFF;
  border-bottom: 1px solid rgba(6,16,51,0.1);
  position: sticky;
  top: 68px;
  z-index: 40;
}
.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7B82A3;
  flex-shrink: 0;
}
.filter-select {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #061033;
  background: #FFFFFF;
  border: 1px solid rgba(6,16,51,0.18);
  border-radius: 3px;
  padding: 11px 36px 11px 14px;
  cursor: pointer;
  min-width: 240px;
}
.filter-select:hover, .filter-select:focus { border-color: #0018A8; outline: none; }
.filter-count { margin-left: auto; font-size: 12px; color: #7B82A3; white-space: nowrap; }

.type-heading {
  margin: 0 0 22px;
  padding-top: 26px;
  border-top: 1px solid #D52B1E;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.type-heading h2 {
  margin: 0;
  font-family: 'Neuton', serif;
  font-weight: 400;
  font-size: clamp(24px, 2.8vw, 32px);
  color: #061033;
}
.type-heading .type-count { font-size: 13px; color: #7B82A3; }

.contact-strip { background: #101C5E; }
.contact-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.contact-strip h3 {
  margin: 0 0 8px;
  font-family: 'Neuton', serif;
  font-weight: 400;
  font-size: 28px;
  color: #F3F4FA;
}
.contact-strip p { margin: 0; font-size: 14px; color: rgba(243,244,250,0.65); max-width: 60ch; }

/* ---------- Scroll reveal ----------
   Content is NEVER hidden by default — sections get a one-time entrance
   animation when scrolled into view; the fail state is fully visible. */

@keyframes wpReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
[data-reveal].revealed { animation: wpReveal 640ms ease both; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal].revealed { animation: none; }
}
@media print {
  [data-reveal].revealed { animation: none; opacity: 1; }
}
