/* discoversandiegohouses.com — modern single-page layout.
   No framework, no JS dependency, no webfont fetch. */

:root {
  --ink: #14202e;
  --ink-soft: #4a5a6b;
  --line: #dfe5ec;
  --paper: #ffffff;
  --wash: #f4f7fa;
  --sky: #1d6fb8;      /* pulled from the original site's blue */
  --sky-deep: #14507f;
  --gold: #b8894a;

  /* Sky ramp sampled straight off the original site's header render, so the
     hero reads as the same sky rather than a generic blue gradient. */
  --sky-1: #78bdff;
  --sky-2: #a9d5ff;
  --sky-3: #dceeff;

  /* Section tints — alternating so sections read as distinct bands instead of
     one continuous white page. Kept very low-saturation on purpose. */
  --tint-sky: #eef5fd;
  --tint-warm: #faf8f5;
  --tint-foot: #e6eef7;
  --shadow: 0 1px 2px rgba(20, 32, 46, .06), 0 8px 24px rgba(20, 32, 46, .06);
  --wrap: 68rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.09rem)/1.65 ui-sans-serif, system-ui, -apple-system,
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
p { margin: 0 0 1.15em; }
a { color: var(--sky-deep); text-underline-offset: .18em; }
a:hover { color: var(--sky); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { font-weight: 650; letter-spacing: -.02em; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand span { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-soft); letter-spacing: 0; }
.site-nav { margin-left: auto; display: flex; gap: clamp(.75rem, 2.5vw, 1.75rem); flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500; }
.site-nav a:hover { color: var(--sky-deep); }
/* On a narrow phone the brand + tagline + four links wrap to three ragged rows.
   Drop the tagline (it repeats in the hero) and tighten the links. */
@media (max-width: 30rem) {
  .brand span { display: none; }
  .site-nav { gap: .7rem; }
  .site-nav a { font-size: .85rem; }
}

/* ---------- hero ---------- */
/* Two layers: clouds lifted from the original site's own header sprite (see
   tools/build_hero_clouds.py — the sprite also had a white picture frame and a
   field photo baked in, so only the clean side columns are used, feathered
   inward) over a vertical sky ramp sampled from the same render. The ramp ends
   at white so the section below joins with no visible edge.
   Clouds sit at the extreme left/right, keeping the centre clear for copy. */
.hero {
  position: relative;
  /* .hero is itself a <section>, so it would otherwise take the generic section
     padding on top of .hero .wrap's own — 150px of dead space under the fold. */
  padding-block: 0;
  background:
    url("/assets/img/clouds.webp") no-repeat center top / 100% auto,
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 30%, var(--sky-3) 62%, #fff 92%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  position: relative; z-index: 1;   /* above the sky/cloud layers */
  display: grid; gap: clamp(1.5rem, 5vw, 3.5rem);
  grid-template-columns: 1fr; align-items: center;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
@media (min-width: 46rem) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.hero .eyebrow { color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .75rem; }
.hero .lede { font-size: clamp(1.05rem, 1rem + .45vw, 1.25rem); color: var(--ink-soft); max-width: 34em; }
.portrait { border-radius: 14px; box-shadow: var(--shadow); background: #fff; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: 9px; font-weight: 550; font-size: .96rem;
  text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--sky-deep); color: #fff; }
.btn-primary:hover { background: var(--sky); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky-deep); }

/* ---------- sections ---------- */
section { padding-block: clamp(2.75rem, 7vw, 4.75rem); scroll-margin-top: 4.5rem; }
section + section { border-top: 1px solid var(--line); }

/* Alternating bands so the page doesn't read as one white sheet. */
#about   { background: var(--paper); }
#reviews { background: var(--tint-sky); }
#contact { background: var(--tint-warm); }
.section-head { max-width: 44em; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head p { color: var(--ink-soft); margin: 0; }

.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.creds li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; }
.creds li::before { content: "✓"; color: var(--gold); font-weight: 700; line-height: 1.5; flex: none; }

.prose { max-width: 40em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.review { background: #fff; border: 1px solid #dbe6f2; border-radius: 12px; padding: 1.35rem; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(20,32,46,.04); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; margin-bottom: .6rem; }
.review blockquote { margin: 0 0 1rem; font-size: .97rem; color: var(--ink); }
.review cite { margin-top: auto; font-style: normal; font-size: .84rem; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(1.5rem, 5vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 46rem) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { list-style: none; margin: 0; padding: .25rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.contact-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { color: var(--ink-soft); font-size: .84rem; min-width: 5.5rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .15em; }
.contact-list .v { font-weight: 500; }

/* ---------- footer ---------- */
.site-foot { background: var(--tint-foot); border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: .85rem; color: var(--ink-soft); }
.foot-top { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-start; margin-bottom: 1.75rem; }
.foot-logo { width: 148px; }
.disclosure { font-size: .72rem; line-height: 1.55; color: #7c8a99; max-width: 74ch; }
.badges { display: flex; gap: .75rem; align-items: center; margin-top: 1rem; font-size: .72rem; letter-spacing: .04em; }
