/* ============================================================
   IN VIEW — NIGHT THEME
   Permanent lighting + the dusk half of the cottage page.
   Loaded AFTER css/style.css. Adds the warm/dark temperature
   without touching the daylight (blue) system.
   ============================================================ */

:root {
  --night:      #0B0F14;
  --night-2:    #12171C;
  --night-3:    #0E1318;
  --night-card: #141A20;
  --night-line: #232B33;
  --warm-ink:   #FFF6E8;
  --warm-body:  #DAD4CA;
  --warm-muted: #A9A49B;
  --gold-soft:  #F0DFBC;
  --gold-bg:    var(--night-card);
  --gold-line:  var(--night-line);
}

/* ── Page shell ───────────────────────────────────────────── */
body.night { background: var(--night); color: var(--warm-body); }
body.night h1, body.night h2, body.night h3 { color: var(--warm-ink); }
body.night h1 em, body.night h2 em, body.night h3 em { color: var(--gold); font-style: italic; }
/* Generic night link colour. Deliberately excludes anything styled as a
   button: this selector is (0,0,1,1) and would otherwise beat every
   single-class button rule, painting gold text onto gold pills. */
body.night a:not([class*="btn-"]):not(.fork-cta):not(.pair__go) { color: var(--gold); }
body.night a:not([class*="btn-"]):not(.fork-cta):not(.pair__go):hover { color: #E8C98A; }

/* Button inks, scoped high enough to survive the rule above. */
body.night a.btn-gold { color: var(--night-2); }
body.night a.btn-gold:hover { color: var(--night-2); }
body.night a.btn-day { color: var(--deep); }
body.night a.btn-day:hover { color: var(--deep); }
body.night a.btn-quiet { color: var(--warm-ink); }
body.night a.btn-quiet:hover { color: var(--warm-ink); }
body.night a.fork-cta { color: var(--deep); }
body.night a.fork-cta:hover { color: var(--deep); }
body.night .fork-side--night a.fork-cta,
body.night .fork-side--night a.fork-cta:hover { color: #12171C; }
body.night a.btn-hero-gold { color: #12171C; }
body.night a.btn-hero-phone { color: #CFE0EA; }

body.night nav { background: rgba(11,15,20,0.94); border-bottom: 1px solid rgba(212,168,83,0.18); }
body.night .nav-links a { color: rgba(231,227,220,0.72); }
body.night .nav-links a:hover, body.night .nav-links a.active { color: var(--gold); }
body.night .nav-cta { background: var(--gold) !important; color: var(--night-2) !important; }
body.night .nav-cta:hover { background: #E8C98A !important; }
body.night .mobile-menu { background: var(--night); border-top: 1px solid rgba(212,168,83,0.18); }
body.night .mobile-menu a { color: rgba(231,227,220,0.8); border-bottom-color: rgba(212,168,83,0.12); }
body.night .mobile-menu a:last-child { color: var(--gold); }
body.night footer { background: var(--night); color: rgba(218,212,202,0.65); }
body.night .footer-col h4 { color: var(--gold); }
body.night .footer-col ul a { color: rgba(218,212,202,0.6); }
body.night .footer-col ul a:hover { color: var(--gold); }
body.night .footer-bottom { border-top-color: rgba(212,168,83,0.14); }
body.night .social-link { border-color: rgba(212,168,83,0.22); color: rgba(218,212,202,0.55); }
body.night .social-link:hover { border-color: var(--gold); color: var(--gold); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--night-2);
  padding: 1rem 2.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-gold:hover { background: #E8C98A; transform: translateY(-2px); color: var(--night-2); }

.btn-quiet {
  display: inline-block;
  color: var(--warm-ink);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,246,232,0.45);
  padding-bottom: 3px;
  transition: border-color 0.2s;
}
.btn-quiet:hover { border-bottom-color: var(--gold); color: var(--warm-ink); }

/* ── Labels ───────────────────────────────────────────────── */
.n-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.n-label-cool { color: #7FB2CA; }

/* ── Full-bleed hero ──────────────────────────────────────── */
.n-hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-height) + 4rem) 5% 0;
  background: var(--night);
  overflow: hidden;
}
/* House photos are wide frames in tall boxes, so a centred cover crop
   cuts the roofline off the top. Anchor the crop high: on a house the
   subject is the roofline, not the front door. */
.n-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.n-hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,15,20,0.94) 0%, rgba(11,15,20,0.8) 36%, rgba(11,15,20,0.22) 68%, rgba(11,15,20,0.04) 100%),
    linear-gradient(0deg, rgba(11,15,20,0.9) 0%, rgba(11,15,20,0) 46%),
    radial-gradient(120% 70% at 76% 28%, rgba(212,168,83,0.14) 0%, rgba(212,168,83,0) 60%);
}
.n-hero__inner { position: relative; z-index: 2; max-width: 640px; padding-bottom: 7rem; }
.n-hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.n-hero p {
  font-size: 1.15rem; line-height: 1.55;
  color: var(--warm-body); max-width: 34rem;
  margin-bottom: 2rem;
}
.n-hero__actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

.n-trust {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(11,15,20,0.82);
  border-top: 1px solid rgba(212,168,83,0.28);
}
.n-trust div {
  padding: 1.35rem 5%;
  font-size: 0.95rem; color: var(--warm-body);
  display: flex; align-items: center; gap: 0.7rem;
}
.n-trust div + div { border-left: 1px solid rgba(255,246,232,0.12); }
.n-trust div::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: var(--gold); flex: 0 0 auto;
}

/* ── Split rows ───────────────────────────────────────────── */
.n-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--night-2); }
.n-split--cool { background: #0C3145; }
.n-split--gold { background: var(--gold-bg); border-top: 1px solid rgba(212,168,83,0.22); }
.n-split__media { position: relative; min-height: 26rem; }
.n-split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.n-split__media img.img-center { object-position: 50% 50%; }
.n-split__body { padding: 3.5rem 3.25rem; display: flex; flex-direction: column; justify-content: center; }
.n-split__body h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1rem; text-wrap: pretty; }
.n-split__body p { font-size: 1.05rem; line-height: 1.65; color: var(--warm-muted); margin-bottom: 0.9rem; text-wrap: pretty; }
.n-split--cool .n-split__body p { color: #AFC6D4; }
.n-split--gold .n-split__body p { color: #BCB5AA; }

.n-pill {
  position: absolute; left: 1.5rem; bottom: 1.4rem;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--night-2); background: rgba(212,168,83,0.94);
  padding: 0.45rem 0.85rem; border-radius: 999px; font-weight: 700;
}

/* ── Bullet list ──────────────────────────────────────────── */
.n-points { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-top: 0.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,246,232,0.14); }
.n-points li { display: flex; gap: 0.9rem; align-items: flex-start; font-size: 1rem; line-height: 1.55; color: var(--warm-body); }
.n-points li::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--gold); flex: 0 0 auto; margin-top: 0.6rem; }
.n-points strong { color: var(--warm-ink); }
.n-split--cool .n-points li { color: #CFE0EA; }

/* ── Band ─────────────────────────────────────────────────── */
.n-band { padding: 4.5rem 5%; background: var(--night-3); border-top: 1px solid rgba(255,246,232,0.08); }
.n-band--gold { background: var(--gold-bg); border-top: 1px solid rgba(212,168,83,0.22); }
.n-band--cool { background: var(--deep); border-top: 1px solid rgba(255,246,232,0.1); }
.n-band__head { max-width: 44rem; margin-bottom: 2.5rem; }
.n-band__head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 0.85rem; }
.n-band__head p { font-size: 1.05rem; line-height: 1.65; color: var(--warm-muted); text-wrap: pretty; }
.n-band--cool .n-band__head p { color: #AFC6D4; }

.n-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.n-card {
  padding: 1.9rem 1.75rem;
  background: var(--night-card);
  border: 1px solid var(--night-line);
  border-radius: 14px;
}
.n-card__num { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 0.6rem; }
.n-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; color: var(--warm-ink); margin-bottom: 0.45rem; }
.n-card p { font-size: 1rem; line-height: 1.6; color: var(--warm-muted); text-wrap: pretty; }
.n-card--cool { background: #0F3A50; border-color: var(--water); }
.n-card--cool p { color: #AFC6D4; }
.n-card--cool .n-card__label { color: #8FC4DE; }
.n-card__label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8FAEBF; font-weight: 700; margin-bottom: 0.5rem; }
.n-card--quiet { background: var(--night-3); border-color: #2A3238; }
.n-card--gold { background: var(--night-card); border-color: var(--night-line); }
.n-card--gold p { color: #E4DACA; }
.n-card--gold .n-card__label { color: var(--gold); }

.n-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1.05rem;
  border: 1px solid rgba(212,168,83,0.45);
  border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600;
  margin-top: 0.5rem;
}
.n-badge::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }

/* ── Colour picker ────────────────────────────────────────── */
.n-swatches { display: flex; gap: 0.65rem; flex-wrap: wrap; }
.n-swatch {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid #3A4249;
  background: var(--night-card);
  color: var(--warm-body);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.n-swatch:hover { border-color: rgba(212,168,83,0.55); }
.n-swatch[aria-pressed="true"] { border-color: var(--gold); background: var(--night-card); color: var(--warm-ink); }
.n-swatch i { width: 11px; height: 11px; border-radius: 999px; display: block; flex: 0 0 auto; }
.n-stage { position: relative; height: 28rem; border-radius: 14px; overflow: hidden; background: var(--night); margin-top: 1.75rem; }
.n-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s ease; }
.n-stage img.on { opacity: 1; }
.n-stage__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.3rem 1.6rem;
  background: linear-gradient(0deg, rgba(11,15,20,0.9) 0%, rgba(11,15,20,0) 100%);
  font-size: 1rem; color: var(--warm-body); text-wrap: pretty;
}

/* ── Closing CTA ──────────────────────────────────────────── */
.n-close {
  position: relative;
  padding: 3.75rem 5%;
  background: var(--night);
  border-top: 1px solid rgba(255,246,232,0.08);
  text-align: center;
}
.n-close::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 100% at 50% 0%, rgba(212,168,83,0.12) 0%, rgba(212,168,83,0) 70%);
}
.n-close > * { position: relative; }
.n-close h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 46rem; margin: 0 auto 1rem; text-wrap: pretty; }
.n-close p { font-size: 1.1rem; line-height: 1.6; color: var(--warm-muted); max-width: 38rem; margin: 0 auto 1.75rem; text-wrap: pretty; }
.n-close__note {
  display: block; margin: 1.5rem auto 0; max-width: 40rem;
  font-size: 0.95rem; line-height: 1.6; color: #8D877E; text-wrap: pretty;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .n-hero { min-height: 0; padding: calc(var(--nav-height) + 3rem) 5% 0; }
  .n-hero__inner { padding-bottom: 3rem; max-width: none; }
  .n-hero h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .n-trust { position: static; grid-template-columns: 1fr; }
  .n-trust div + div { border-left: none; border-top: 1px solid rgba(255,246,232,0.1); }
  .n-split { grid-template-columns: 1fr; }
  .n-split__media { min-height: 15rem; }
  .n-split__body { padding: 2.5rem 5%; }
  /* copy first, photo second — every split, all the way down */
  .n-split .n-split__body { order: 1; }
  .n-split .n-split__media { order: 2; }
  .n-stage { height: 15rem; }
  .n-band { padding: 3.25rem 5%; }
}
