/* ──────────────────────────────────────────────────────────────────
   liveincamberwell.com: styles
   Brand palette: navy #1A2B47 / gold #C4973E / ivory #FAF8F5 / slate #4A5568
   ────────────────────────────────────────────────────────────────── */

:root {
  --navy:   #1A2B47;
  --navy-2: #243556;
  --gold:   #C4973E;
  --gold-2: #b08230;
  --ivory:  #FAF8F5;
  --bone:   #F2EEE6;
  --slate:  #4A5568;
  --slate-2:#2d3748;
  --line:   rgba(26, 43, 71, 0.12);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --max:   1240px;
  --gut:   clamp(1rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate-2);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--sans); letter-spacing: 0.02em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.8em; }

p  { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1em;
}

/* ─── Top bar ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--gut);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  font-family: var(--serif);
  font-weight: 600; font-size: 1.4rem;
  color: var(--navy);
  display: inline-flex; align-items: baseline;
}
.brand-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  margin: 0 2px;
}
.brand-name {
  font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}
.topbar nav {
  display: flex; align-items: center; gap: 1.5rem;
  font-size: 0.86rem;
}
.topbar nav a {
  color: var(--slate-2); font-weight: 500;
  letter-spacing: 0.04em;
}
.topbar nav a:hover { color: var(--gold); }
.topbar nav a.cta {
  padding: 0.55rem 1.1rem;
  background: var(--navy); color: #fff;
  border-radius: 999px;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem;
}
.topbar nav a.cta:hover { background: var(--gold); color: #fff; }

@media (max-width: 720px) {
  .topbar nav a:not(.cta) { display: none; }
  .brand-name { display: none; }
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 1rem 1.8rem;
  background: var(--navy); color: #fff;
  font-family: var(--sans); font-size: 0.86rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  border: none; border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  position: relative;
}
.btn-primary::after {
  content: ""; position: absolute;
  left: 0; bottom: -3px; width: 60px; height: 3px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.btn-primary:hover::after { width: 100%; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 880px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero-image {
  position: absolute; inset: 0;
  display: block;
  z-index: 0;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(15, 24, 40, 0.0) 0%,
    rgba(15, 24, 40, 0.15) 30%,
    rgba(15, 24, 40, 0.55) 70%,
    rgba(15, 24, 40, 0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 6rem var(--gut) 5rem;
  max-width: 760px;
}
.hero-content .eyebrow { color: var(--gold); }
.hero h1 {
  color: #fff;
  font-weight: 400;
  font-size: clamp(2.6rem, 6.8vw, 5.2rem);
  margin-bottom: 1.4rem;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: rgba(255,255,255,0.9);
  font-weight: 300; line-height: 1.5;
  max-width: 600px;
  margin-bottom: 1.6rem;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center;
  font-size: 0.95rem; color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}
.hero-meta .price {
  font-family: var(--serif); font-size: 1.6rem;
  font-weight: 500; color: #fff;
}
.hero-meta .dot { color: var(--gold); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.4rem;
  z-index: 2; transform: translateX(-50%);
  color: #fff; font-size: 1.4rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-scroll:hover { color: var(--gold); border-color: var(--gold); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ─── Stats strip ─────────────────────────────────────────── */
.stats {
  background: var(--navy);
  color: #fff;
  padding: 3rem var(--gut);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stats-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem 1.5rem;
  text-align: center;
}
.stats-grid > div {
  display: flex; flex-direction: column; gap: 0.4rem;
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: 1.5rem;
}
.stats-grid > div:first-child { border-left: none; padding-left: 0; }
.stat-n {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.stat-l {
  font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.stat-sub { color: rgba(255,255,255,0.5); display: block; font-size: 0.72rem; margin-top: 0.2rem; }

@media (max-width: 880px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid > div:nth-child(4) { border-left: none; padding-left: 0; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
  .stats-grid > div { border-left: none !important; padding-left: 0 !important; }
}

/* ─── Prose sections ──────────────────────────────────────── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem var(--gut) 4rem;
}
.prose p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--slate-2);
  font-weight: 300;
}

/* ─── Section header (galleries) ─────────────────────────── */
.section-header {
  max-width: 760px; margin: 0 auto 2.6rem;
  text-align: center;
}
.section-header .subhead {
  color: var(--slate);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 580px;
  margin: 0 auto;
}

/* ─── Gallery base ────────────────────────────────────────── */
.gallery-section {
  padding: 5rem var(--gut);
  max-width: var(--max);
  margin: 0 auto;
}
.gallery-section--alt {
  background: var(--bone);
  max-width: none;
  padding-left: var(--gut); padding-right: var(--gut);
}
.gallery-section--alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.gallery-grid {
  display: grid;
  gap: 12px;
}
.g-item {
  margin: 0;
  overflow: hidden;
  position: relative;
  background: var(--navy);
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1), filter 0.5s;
}
.g-item:hover img {
  transform: scale(1.03);
}

/* Views grid: 3 cols × 2 rows, with 1 wide feature spanning the top row */
.gallery-grid--views {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
}
.gallery-grid--views .g-item            { grid-row: span 1; grid-column: span 1; }
.gallery-grid--views .g-wide            { grid-column: span 2; }

/* Inside grid: 4 cols × 3 rows. Feature 2×2 (staircase) + 8 regulars = 9 photos */
.gallery-grid--home {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
}
.gallery-grid--home .g-feature { grid-column: span 2; grid-row: span 2; }

/* Outside grid: 2 cols × 2 rows of equal cells, 4 photos */
.gallery-grid--outdoor {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 380px;
}

@media (max-width: 900px) {
  .gallery-grid--views   { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .gallery-grid--views .g-wide { grid-column: span 2; }
  .gallery-grid--home    { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .gallery-grid--home .g-feature { grid-column: span 2; grid-row: span 2; }
  .gallery-grid--outdoor { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 280px; }
}
@media (max-width: 540px) {
  .gallery-grid--views, .gallery-grid--home, .gallery-grid--outdoor {
    grid-template-columns: 1fr; grid-auto-rows: 64vw;
  }
  .gallery-grid--views .g-wide,
  .gallery-grid--home .g-feature {
    grid-column: span 1; grid-row: span 1;
  }
}

/* ─── Lifestyle / "How it pays" ──────────────────────────── */
.lifestyle {
  background: var(--bone);
  padding: 6rem var(--gut);
  position: relative;
}
.lifestyle::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.5;
}
.lifestyle-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.lifestyle-inner > .eyebrow { text-align: center; }
.lifestyle h2 {
  text-align: center;
  margin-bottom: 2.4rem;
  font-style: italic;
}
.lifestyle p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--slate-2);
  font-weight: 300;
  margin-bottom: 1.4rem;
}
.lifestyle p strong {
  color: var(--navy);
  font-weight: 600;
}
.rooms-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  margin: 2.6rem 0 2.6rem;
}
.rooms-pair figure { margin: 0; }
.rooms-pair img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  display: block;
}
.rooms-pair figcaption {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: var(--slate);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  text-align: center;
}
.lifestyle .practical {
  font-size: 1rem;
  color: var(--slate);
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin: 2.4rem 0;
}
.lifestyle .close {
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
  margin-top: 2.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .rooms-pair { grid-template-columns: 1fr; gap: 1.4rem; }
  .lifestyle h2 { font-size: 1.8rem; }
}

/* ─── Location ────────────────────────────────────────────── */
.location { max-width: var(--max); }
.location-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  margin-top: 2rem;
}
@media (max-width: 720px) {
  .location-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.plain-list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.plain-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  justify-content: space-between; align-items: baseline;
  color: var(--slate-2);
}
.plain-list li span {
  color: var(--slate);
  font-size: 0.86rem;
}

/* ─── Specifications ──────────────────────────────────────── */
.specs {
  background: var(--navy);
  color: #fff;
  padding: 6rem var(--gut);
}
.specs .section-header h2 { color: #fff; }
.specs .section-header .eyebrow { color: var(--gold); }

.specs-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem;
}
.specs-grid dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr;
  gap: 0.6rem 1.5rem;
}
.specs-grid dt {
  font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.specs-grid dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: #fff;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 720px) {
  .specs-grid { grid-template-columns: 1fr; gap: 0; }
  .specs-grid dl + dl { margin-top: 0.4rem; }
}

/* ─── Enquiry form ────────────────────────────────────────── */
.enquire {
  background: var(--bone);
  padding: 6rem var(--gut);
}
.enquire-inner {
  max-width: 720px; margin: 0 auto;
}
.enquire-form {
  margin-top: 2.4rem;
  background: #fff;
  padding: 2.6rem;
  border: 1px solid var(--line);
  position: relative;
}
.enquire-form::before {
  content: ""; position: absolute;
  top: 0; left: 0; width: 60px; height: 4px;
  background: var(--gold);
}
.field-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { display: block; margin-bottom: 1.2rem; border: none; padding: 0; }
.field > span, .field legend {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.field .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--slate);
  font-size: 0.8rem;
}
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--slate-2);
  border-radius: 0;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 80px; padding: 0.6rem 0; }

.checks {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
}
.checks label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; color: var(--slate-2);
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.15s;
}
.checks label:hover { border-color: var(--gold); }
.checks input { accent-color: var(--gold); }
.checks label:has(input:checked) {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

.enquire-form button { margin-top: 1.4rem; width: 100%; }
.form-fineprint {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 1.2rem;
  text-align: center;
  line-height: 1.5;
}

/* form success/error states (set by script.js) */
.enquire-form.is-sending button { opacity: 0.6; cursor: wait; }
.form-message {
  display: none;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
  border-radius: 4px;
  font-size: 0.95rem;
}
.form-message.is-success { display: block; background: #e8f5ed; color: #1a5d3a; border-left: 3px solid #1a5d3a; }
.form-message.is-error   { display: block; background: #fbeaea; color: #8b1a1a; border-left: 3px solid #8b1a1a; }

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--navy-2);
  color: rgba(255,255,255,0.75);
  padding: 4rem var(--gut) 2.4rem;
  font-size: 0.9rem;
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
  font-weight: 500;
}
.agent-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 500;
  margin: 0 0 0.4rem;
}
.agent-meta { margin: 0 0 0.4rem; line-height: 1.5; }
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: var(--gold); }
.footer-copy {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ─── Lightbox ────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 24, 40, 0.96);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 95vw; max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: transparent; border: none;
  color: #fff; font-size: 2rem;
  cursor: pointer; padding: 1rem;
  font-family: var(--sans);
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav.prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav:hover, .lightbox-close:hover { color: var(--gold); }
