/* Doubleview Living — Scarborough WA coastal real estate
   Palette derived from real beach + property photography:
   turquoise ocean, warm beach sand, golden sunset accent. */

:root {
  --ocean: #0C5560;        /* turquoise/teal water */
  --ocean-deep: #08323a;   /* deep wave shadow / footer */
  --sand: #f7f1e7;         /* warm beach sand surface */
  --sand-deep: #efe5d4;    /* soft section panels */
  --sun: #dd8a4a;          /* golden-coral sunset accent */
  --sun-deep: #c5703a;     /* accent hover */
  --ink: #15282b;          /* deep charcoal-teal text */
  --muted: #4d6063;        /* secondary text */
  --line: #e2d9c8;         /* hairlines on sand */
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(8,50,58,.06), 0 6px 18px rgba(8,50,58,.06);
  --shadow-md: 0 18px 50px rgba(8,50,58,.16);
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--sun-deep);
  margin: 0 0 .9rem;
}

.eyebrow--light { color: var(--sun); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--sand { background: var(--sand-deep); }
.section--ocean { background: var(--ocean-deep); color: #e7f0f0; }
.section--ocean h2, .section--ocean h3 { color: var(--white); }
.section--ocean .lead { color: #b9d0d1; }

.section-head { max-width: 64ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }

h2 { font-size: clamp(1.85rem, 4.2vw, 3rem); }
h3 { font-size: 1.32rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sun); color: #2a1707; }
.btn-primary:hover { background: var(--sun-deep); color: #fff; }
.btn-ocean { background: var(--ocean); color: #fff; }
.btn-ocean:hover { background: var(--ocean-deep); }
.btn-outline { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost { border-color: var(--ocean); color: var(--ocean); background: transparent; }
.btn-ghost:hover { background: var(--ocean); color: #fff; }
.btn-lg { min-height: 54px; padding: 0 1.9rem; font-size: 1.04rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  color: var(--ocean);
  border-bottom: 2px solid var(--sun);
  padding-bottom: 2px;
  min-height: 44px;
}
.text-link:hover { color: var(--sun-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,241,231,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .7rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ocean-deep);
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: .62rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--sun-deep);
  font-weight: 600;
  margin-top: 3px;
}

.nav-desktop { display: none; }
.nav-link {
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink);
  padding: .5rem .15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--ocean); }
.nav-link.active { color: var(--ocean); border-bottom-color: var(--sun); }

.nav-cta { display: none; margin-left: auto; }

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  background: var(--ocean);
  color: #fff;
  border-radius: 999px;
  padding: .6rem 1.1rem;
  min-height: 44px;
  font-size: .92rem;
}
.cta-phone:hover { background: var(--ocean-deep); }

.nav-toggle {
  margin-left: auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 11px;
}
.nav-toggle span {
  height: 2px;
  background: var(--ocean-deep);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .6rem var(--gutter) 1.2rem;
  border-top: 1px solid var(--line);
  background: var(--sand);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile .nav-link { font-size: 1.05rem; padding: .7rem 0; }
.nav-mobile .cta-phone { margin-top: .6rem; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(540px, 88vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,50,58,.18) 0%, rgba(8,50,58,.05) 38%, rgba(8,50,58,.72) 100%),
    linear-gradient(90deg, rgba(8,50,58,.55) 0%, rgba(8,50,58,.05) 60%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(40px, 7vw, 72px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  padding: .42rem .9rem;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.6vw, 4.6rem);
  max-width: 16ch;
  color: #fff;
  text-shadow: 0 2px 28px rgba(8,50,58,.35);
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 48ch;
  color: #f3ece1;
  margin-bottom: 1.6rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-meta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
  font-size: .92rem;
  color: #e7f0f0;
}
.hero-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.stars { color: #ffd27a; font-weight: 600; letter-spacing: .04em; }

/* ---------- Pathways (sell / buy / appraise) ---------- */
.pathways { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.path-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.path-card__media img { width: 100%; height: 100%; object-fit: cover; }
.path-card__num {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: rgba(8,50,58,.65);
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.path-card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.path-card__body p { color: var(--muted); }
.path-card .text-link { margin-top: auto; }

/* ---------- Feature row ---------- */
.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split--ocean .split__media { box-shadow: 0 20px 60px rgba(0,0,0,.4); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1.6rem;
  margin-top: 1.6rem;
}
.stat { }
.stat__k { font-family: var(--display); font-size: 1.7rem; color: var(--ocean); font-weight: 600; }
.section--ocean .stat__k { color: var(--sun); }
.stat__l { font-size: .9rem; color: var(--muted); }
.section--ocean .stat__l { color: #aac4c5; }

/* ---------- Value points ---------- */
.points { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.point {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.point__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sand-deep);
  color: var(--ocean);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.point h3 { font-size: 1.18rem; }
.point p { color: var(--muted); margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform .4s ease;
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery .span-2 { grid-column: span 2; }
.gallery .tall img { aspect-ratio: 4 / 5; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 1.2rem; grid-template-columns: 1fr; counter-reset: step; }
.step {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step__n {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ocean);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  display: grid;
  place-items: center;
}
.step h3 { font-size: 1.12rem; margin-bottom: .2rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ocean-deep);
  color: #fff;
  text-align: center;
}
.cta-band .container { position: relative; z-index: 2; padding-top: clamp(56px,8vw,96px); padding-bottom: clamp(56px,8vw,96px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c5dadb; max-width: 52ch; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.8rem; }
.cta-band__deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 360px at 85% -10%, rgba(221,138,74,.34), transparent 60%),
    radial-gradient(700px 320px at 0% 120%, rgba(12,85,96,.7), transparent 60%);
  z-index: 1;
}

/* ---------- Listing-style cards (buy) ---------- */
.listings { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.listing {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.listing__media { aspect-ratio: 16 / 10; overflow: hidden; }
.listing__media img { width: 100%; height: 100%; object-fit: cover; }
.listing__body { padding: 1.3rem 1.4rem 1.5rem; }
.listing__tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sun-deep);
  margin-bottom: .5rem;
}
.listing__body h3 { font-size: 1.18rem; margin-bottom: .3rem; }
.listing__body p { color: var(--muted); margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(28px,5vw,52px); grid-template-columns: 1fr; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ic {
  flex: none; width: 42px; height: 42px;
  border-radius: 11px; background: var(--sand-deep); color: var(--ocean);
  display: grid; place-items: center;
}
.info-list strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.info-list a, .info-list span { font-size: 1.06rem; color: var(--ink); }
.info-list a:hover { color: var(--ocean); }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--sand);
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ocean); background: #fff;
  box-shadow: 0 0 0 3px rgba(12,85,96,.12);
}
.form-note { font-size: .82rem; color: var(--muted); margin-top: .6rem; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: clamp(72px, 12vw, 130px) 0 clamp(48px, 7vw, 84px);
  display: flex;
  align-items: flex-end;
}
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,50,58,.32), rgba(8,50,58,.78));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 18ch; }
.page-hero p { color: #e7f0f0; max-width: 52ch; font-size: 1.1rem; margin-bottom: 0; }
.crumbs { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; font-weight: 600; }
.crumbs a { color: #d7e4e4; }
.crumbs a:hover { color: #fff; }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose p { color: #354749; }
.prose ul { padding-left: 1.2em; color: #354749; }
.prose li { margin-bottom: .5em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ocean-deep); color: #c7dadb; padding: clamp(48px,7vw,76px) 0 2rem; }
.footer-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.4rem;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--sun); }
.footer-blurb { color: #9fbcbd; margin-top: 1rem; max-width: 38ch; }
.footer-col h4 { font-family: var(--body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #7fa0a1; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-col a { color: #c7dadb; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  font-size: .84rem;
  color: #87a8a9;
}

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .points { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .pathways { grid-template-columns: repeat(3, 1fr); }
  .listings { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .contact-grid { grid-template-columns: 1.05fr .95fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .nav-desktop { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
  .nav-cta { display: inline-flex; margin-left: 1.4rem; }
  .points { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .listings { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
