/* ==========================================================================
   Kelly Drive — Port Ludlow, WA
   Design system: standard brokerage/MLS listing site. White ground, navy
   type, single brass accent for price and CTAs. One typeface (Inter) at
   varying weight instead of a display/body/mono split. No decorative
   motifs — dividers are plain rules, photo slots are flat placeholders,
   facts render as a label/value grid like a real listing's spec sheet.
   ========================================================================== */

:root {
  --navy:       #0B2A4A;  /* headlines, header, footer */
  --navy-2:     #123256;  /* hover / secondary navy */
  --ink:        #1C2733;  /* body text */
  --ink-soft:   #5B6876;  /* secondary text, labels */
  --paper:      #FFFFFF;
  --bg-alt:     #F4F6F8;  /* section alt background */
  --line:       #DDE3E9;
  --brass:      #A9812E;  /* single accent — price, CTAs, links */
  --brass-dark: #8C6A22;
  --focus:      #2563A8;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.5vw, 2.75rem);
  --step-4: clamp(2.1rem, 1.7rem + 2vw, 3.1rem);

  --radius: 4px;
  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: var(--brass-dark); }
a:not(.btn) { text-underline-offset: 3px; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Labels — plain uppercase, no mono face
   --------------------------------------------------------------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

/* Status tag (Move-In Ready / Acreage + Income) — outline, not a filled pill */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 0.7em;
  border: 1px solid var(--navy);
  color: var(--navy);
  margin-bottom: 0.9rem;
  border-radius: var(--radius);
}
.tag-on-dark { border-color: rgba(255,255,255,0.55); color: var(--paper); }

/* ---------------------------------------------------------------
   Section rule — a plain divider, no motif
   --------------------------------------------------------------- */
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: var(--ink-soft); font-weight: 500; font-size: 0.85em; margin-left: 0.4em; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}
.main-nav a:not(.btn):hover { color: var(--brass-dark); }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.75em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--paper); }
.btn-ghost.on-dark { border-color: rgba(255,255,255,0.6); color: var(--paper); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------------------------------------------------------------
   Hero — photo-forward, price/fact strip underneath
   --------------------------------------------------------------- */
.hero-photo-wrap { background: var(--navy); }
.photo-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 1rem;
  min-height: 220px;
}
.photo-placeholder.on-dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.hero-photo { min-height: 420px; border: none; border-radius: 0; }

.hero-text { padding: 3rem 0 2.25rem; }
.hero-text.on-dark { background: var(--navy); color: var(--paper); }
.hero-text.on-dark h1 { color: var(--paper); }
.hero-text.on-dark .lede { color: rgba(255,255,255,0.82); }
.lede { font-size: 1.1rem; max-width: 56ch; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Price / fact strip — the single-property equivalent of an MLS header bar */
.fact-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}
.fact-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}
.fact-strip-price {
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--brass-dark);
}
.fact-strip-specs {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.fact-strip-specs div { text-align: left; }
.fact-strip-specs strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}
.fact-strip-specs span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------
   Property cards (landing page)
   --------------------------------------------------------------- */
.property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  padding: 3.5rem 0;
}
@media (max-width: 820px) {
  .property-grid { grid-template-columns: 1fr; }
}
.property-card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
}
.property-card .photo-placeholder { min-height: 240px; border: none; border-bottom: 1px solid var(--line); }
.property-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.property-card h3 { margin-bottom: 0.2em; }
.property-address { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.9rem; }
.property-price {
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--brass-dark);
  margin-bottom: 0.6rem;
}
.stat-row {
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  margin: 0.9rem 0 1.1rem;
}
.stat-row strong { color: var(--navy); display: block; font-size: 1.05rem; font-weight: 800; }
.hook { font-size: 0.96rem; margin-bottom: 1.25rem; }

/* Buy both banner */
.buy-both {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
  text-align: center;
}
.buy-both h2 { color: var(--navy); }
.buy-both p { color: var(--ink-soft); margin-left: auto; margin-right: auto; }
.package-price {
  font-size: var(--step-3);
  font-weight: 800;
  color: var(--brass-dark);
  margin: 0.5rem 0 1.5rem;
}

/* ---------------------------------------------------------------
   Lifestyle / neighborhood section
   --------------------------------------------------------------- */
.lifestyle { padding: 4rem 0; }
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 820px) { .lifestyle-grid { grid-template-columns: 1fr; } }
.fact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.fact-list li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 1.3em;
  position: relative;
}
.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--brass);
  border-radius: 50%;
}

/* ---------------------------------------------------------------
   Sections generic
   --------------------------------------------------------------- */
section { position: relative; }
.section-alt { background: var(--bg-alt); }
.section-pad { padding: 4rem 0; }
.section-head { max-width: 60ch; margin-bottom: 2rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid .photo-placeholder { min-height: 160px; cursor: zoom-in; font-size: 0.78rem; }
.gallery-grid button { all: unset; display: block; width: 100%; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(11,42,74,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 900px; width: 100%; }
.lightbox-inner .photo-placeholder { min-height: 420px; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: transparent; border: 1px solid rgba(255,255,255,0.5);
  color: var(--paper); font-size: 0.85rem; font-weight: 600;
  padding: 0.5em 1em; cursor: pointer; border-radius: var(--radius);
}

/* ---------------------------------------------------------------
   Facts & Features — label/value spec grid (replaces narrative copy)
   --------------------------------------------------------------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 720px) { .specs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .specs-grid { grid-template-columns: 1fr; } }
.spec {
  background: var(--paper);
  padding: 1.1rem 1.25rem;
}
.spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35em;
}
.spec-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---------------------------------------------------------------
   Map embed
   --------------------------------------------------------------- */
.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------------
   Site plan graphic
   --------------------------------------------------------------- */
.site-plan {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.site-plan svg { width: 100%; height: auto; display: block; }
.site-plan-caption { font-size: 0.8rem; color: var(--ink-soft); margin: 0.9rem 0 0; }

/* ---------------------------------------------------------------
   FAQ / offer instructions
   --------------------------------------------------------------- */
.faq-list { display: grid; gap: 1.4rem; }
.faq-item { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.faq-item:first-child { border-top: 0; padding-top: 0; }
.faq-item h4 { margin-bottom: 0.4em; font-size: 1.02rem; }
.faq-item p { margin: 0; font-size: 0.95rem; }
.faq-disclaimer { font-size: 0.8rem; color: var(--ink-soft); margin-top: 1.5rem; }

/* Docs */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.doc-list a {
  display: flex; align-items: center; gap: 0.7em;
  padding: 0.95em 1.15em;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
}
.doc-list a:hover { border-color: var(--navy); }
.doc-list .eyebrow { color: var(--brass-dark); font-size: 0.7rem; }

/* Income section (40 Kelly) — bordered card, not a color block */
.income-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  padding: 2.25rem;
  border-radius: var(--radius);
}
.income-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 620px) { .income-stats { grid-template-columns: 1fr; } }
.income-stat { border-top: 1px solid var(--line); padding-top: 0.8rem; }
.income-stat .num { font-size: var(--step-2); font-weight: 800; color: var(--navy); }
.income-stat .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }

/* As-is callout */
.as-is-callout {
  border-left: 4px solid var(--navy);
  background: var(--bg-alt);
  padding: 1.1rem 1.4rem;
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
}
.as-is-callout .eyebrow { color: var(--navy); margin-bottom: 0.4em; }
.as-is-callout p { margin: 0; font-size: 0.95rem; color: var(--ink); }

/* Cross-link card */
.cross-link {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2rem;
  flex-wrap: wrap;
  border-radius: var(--radius);
}
.cross-link .photo-placeholder { flex: 0 0 220px; min-height: 140px; }
.cross-link-body { flex: 1; min-width: 220px; }
.cross-link h3 { margin-bottom: 0.3em; }

/* ---------------------------------------------------------------
   Contact form
   --------------------------------------------------------------- */
.contact-section { padding: 4rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
form.listing-form {
  display: grid;
  gap: 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: var(--radius);
}
.form-row { display: grid; gap: 0.4rem; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row.two { grid-template-columns: 1fr; } }
label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.8em;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}
fieldset { border: 1px solid var(--line); padding: 0.9em 1em; border-radius: var(--radius); }
fieldset legend { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); padding: 0 0.4em; }
.radio-row { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.4rem; }
.radio-row label { display: flex; align-items: center; gap: 0.4em; text-transform: none; font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.radio-row input { width: auto; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* Sticky showing CTA */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 60;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.sticky-cta span { font-size: 0.85rem; font-weight: 700; }
body.has-sticky-cta { padding-bottom: 72px; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--paper); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.site-footer a { color: rgba(255,255,255,0.85); }
.equal-housing { display: flex; align-items: center; gap: 0.6em; margin-top: 1rem; font-size: 0.8rem; opacity: 0.75; }
.eh-icon { width: 22px; height: 22px; flex: none; }
.fine-print { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; opacity: 0.65; }

/* Iframe embed wrapper (floor plan / scheduler) */
.embed-wrap {
  border: 1px solid var(--line);
  background: var(--paper);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
}

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
