/* ===================================================================
   Ashworth & Hartley — style.css
   South Manchester estate agency. Cormorant Garamond + Outfit.
   =================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg-primary:   #0B0B0F;
  --bg-secondary: #141418;
  --bg-card:      #1A1A1F;
  --gold:         #C9A96E;
  --gold-light:   #E8D5B0;
  --gold-dark:    #A6884D;
  --text-primary: #F5F0EA;
  --text-secondary:#9A9A9A;
  --text-muted:   #6A6A6A;
  --border:        rgba(201,169,110,0.15);
  --border-strong: rgba(201,169,110,0.35);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', 'Helvetica Neue', Arial, sans-serif;

  --container: 1320px;
  --pad: 24px;
  --nav-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 768px)  { :root { --pad: 48px; } }
@media (min-width: 1200px) { :root { --pad: 64px; } }

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: inherit; }
::selection { background: var(--gold); color: var(--bg-primary); }

/* ---------- Type ---------- */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text-primary);
}
.italic-gold { font-style: italic; color: var(--gold); font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 22px;
}
/* bracketed label variant (imitation: Caesar Palm [ LABEL ] detail) */
.eyebrow--bracket::before { content: "[ "; color: var(--gold-dark); }
.eyebrow--bracket::after  { content: " ]"; color: var(--gold-dark); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 130px); }
.section--dark { background: var(--bg-secondary); }
.divider { height: 1px; background: var(--border); border: none; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  padding: 15px 30px; border-radius: 2px;
  transition: all 0.4s var(--ease); white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #14110B; }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text-primary); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,0.06); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); transition: gap 0.35s var(--ease);
}
.text-link:hover { gap: 16px; color: var(--gold-light); }
.text-link svg { transition: transform 0.35s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }

/* ===================================================================
   NAVIGATION
   =================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease), border-color 0.45s var(--ease), height 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11,11,15,0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  height: 70px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.brand {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.35rem; letter-spacing: 0.05em; white-space: nowrap;
}
.brand .amp { color: var(--gold); font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-weight: 500; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--text-secondary); transition: color 0.3s; position: relative; padding-block: 6px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold);
}

.nav-right { display: flex; align-items: center; gap: 22px; }

.hamburger { display: none; width: 30px; height: 22px; position: relative; }
.hamburger span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text-primary);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg-primary);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: var(--pad);
  transform: translateX(100%); transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 400;
  color: var(--text-primary); padding-block: 10px; border-bottom: 1px solid var(--border);
}
.mobile-menu a.active { color: var(--gold); }
.mobile-menu .btn { margin-top: 30px; align-self: flex-start; }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; }
.hero__stage {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: calc(var(--nav-h) + 40px) var(--pad) 80px;
  overflow: hidden;
}
/* pinned scroll-scrub mode (desktop + WebGL): tall track + sticky stage so
   scrolling scrubs the video and builds 3D depth, reversing on scroll-up */
.hero--pinned { height: 260vh; }
.hero--pinned .hero__stage { position: sticky; top: 0; height: 100vh; min-height: 0; }
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img,
.hero__bg video { width: 100%; height: 100%; object-fit: cover; }
.hero__video {
  /* slight overscale so the scroll parallax never reveals an edge */
  transform: scale(1.08); will-change: transform;
  transition: transform 0.1s linear;
}
/* WebGL 3D layer drawn over the flat video; the video keeps playing as its texture */
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 0.9s var(--ease); pointer-events: none;
}
.hero--webgl .hero__video { opacity: 0; }
.hero--webgl .hero__canvas { opacity: 1; }

.hero__label {
  display: inline-block; margin-bottom: 26px;
  font-family: var(--font-body); font-weight: 300;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.28em;
  color: var(--gold-light);
}
.hero__stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,11,15,0.55) 0%, rgba(11,11,15,0.45) 40%, rgba(11,11,15,0.9) 100%);
}
.hero__inner { max-width: 1000px; }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem); font-weight: 300; line-height: 1.02;
}
.hero h1 .italic-gold { font-weight: 400; }
.hero__sub {
  margin-top: 26px; font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-secondary);
  font-weight: 300; max-width: 540px; margin-inline: auto;
}

/* tab buttons */
.hero__tabs { display: inline-flex; gap: 4px; margin-top: 42px; border: 1px solid var(--border-strong); border-radius: 3px; padding: 5px; background: rgba(11,11,15,0.4); backdrop-filter: blur(6px); }
.hero__tabs button {
  font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em;
  padding: 11px 30px; border-radius: 2px; color: var(--text-secondary); transition: all 0.3s;
}
.hero__tabs button.active { background: var(--gold); color: #14110B; }

/* search bar */
.hero__search {
  display: flex; align-items: center; gap: 12px; margin: 26px auto 0; max-width: 620px;
  background: rgba(20,20,24,0.7); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 3px; padding: 8px 8px 8px 22px;
}
.hero__search svg { color: var(--gold); flex-shrink: 0; }
.hero__search input {
  flex: 1; background: none; border: none; outline: none; color: var(--text-primary);
  font-weight: 300; font-size: 0.95rem;
}
.hero__search input::placeholder { color: var(--text-muted); }
.hero__search .btn { padding: 13px 26px; }

.hero__explore { margin-top: 54px; }

/* hero stat strip (imitation: Caesar Palm hero metrics) */
.hero__stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0; margin: 52px auto 0; max-width: 760px;
  border-top: 1px solid var(--border); padding-top: 30px;
}
.hero__stat {
  position: relative; flex: 1 1 0; min-width: 130px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding-inline: 18px;
}
.hero__stat + .hero__stat::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 1px; background: var(--border);
}
.hero__stat strong {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; color: var(--gold);
}
.hero__stat span {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-secondary);
}

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--text-muted); }
.scroll-cue span { display: block; width: 1px; height: 46px; margin: 0 auto; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: scaleY(0); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } 100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; } }

/* ===================================================================
   3D SCROLL SHOWCASE (Three.js video plane)
   =================================================================== */
.showcase3d { position: relative; height: 280vh; background: var(--bg-primary); }
.showcase3d__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.showcase3d__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 0.8s var(--ease);
}
/* poster shows underneath until WebGL paints — and is the full fallback on mobile/reduced-motion */
.showcase3d__poster {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  z-index: 0;
}
.showcase3d__poster::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 30%, rgba(11,11,15,0.65) 100%);
}
.showcase3d__canvas { z-index: 1; }
/* video source: present in the DOM (so it plays) but hidden behind the canvas */
.showcase3d__src {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: 0.001; pointer-events: none;
}
.showcase3d__overlay {
  position: relative; z-index: 2; text-align: center; max-width: 760px; padding: 0 var(--pad);
  pointer-events: none; opacity: 0; will-change: opacity, transform;
}
/* keep overlay visible in the static fallback (JS never drives opacity there) */
.showcase3d--static .showcase3d__overlay { opacity: 1; }
.showcase3d__overlay h2 {
  font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 300; line-height: 1.02;
  text-shadow: 0 2px 40px rgba(11,11,15,0.55), 0 1px 8px rgba(11,11,15,0.4);
}
.showcase3d__overlay .eyebrow, .showcase3d__hint { text-shadow: 0 1px 18px rgba(11,11,15,0.6); }
.showcase3d__overlay .eyebrow { color: var(--gold-light); }
.showcase3d__hint {
  margin-top: 22px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--text-secondary);
}
.showcase3d__hint::after {
  content: ""; display: block; width: 1px; height: 34px; margin: 14px auto 0;
  background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite;
}
/* When JS opts out (mobile / no WebGL / reduced motion): collapse the tall scroll track,
   keep a single elegant poster panel. */
.showcase3d--static { height: auto; }
.showcase3d--static .showcase3d__sticky { position: relative; height: clamp(70vh, 80vh, 760px); }
.showcase3d--static .showcase3d__canvas { display: none; }

/* ===================================================================
   HORIZONTAL SCROLL (areas & listings)
   =================================================================== */
.hscroll {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 18px; margin-top: 8px;
  scrollbar-width: thin; scrollbar-color: var(--gold-dark) transparent;
}
.hscroll::-webkit-scrollbar { height: 4px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }
.hscroll::-webkit-scrollbar-track { background: var(--border); }
.hscroll > * { scroll-snap-align: start; flex: 0 0 auto; }

/* area card */
.area-card {
  position: relative; width: clamp(260px, 70vw, 360px); height: 460px; border-radius: 3px;
  overflow: hidden; display: block;
}
.area-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.area-card:hover img { transform: scale(1.07); }
.area-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11,11,15,0.85)); }
.area-card__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 28px; }
.area-card__body h3 { font-size: 1.9rem; font-weight: 400; }
.area-card__discover {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold);
  opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease);
}
.area-card:hover .area-card__discover { opacity: 1; transform: none; }

/* ===================================================================
   PROPERTY CARDS
   =================================================================== */
.prop-card { display: block; }
.prop-card__media { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 4/3; background: var(--bg-card); }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.prop-card:hover .prop-card__media img { transform: scale(1.06); }
.prop-card__badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 0.62rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  padding: 7px 13px; border-radius: 2px; background: rgba(11,11,15,0.7); backdrop-filter: blur(6px);
  color: var(--gold); border: 1px solid var(--border-strong);
}
.prop-card__price {
  font-family: var(--font-display); font-weight: 300; font-size: 2rem; line-height: 1;
  margin-top: 22px; color: var(--text-primary);
}
.prop-card__addr { margin-top: 8px; font-size: 1rem; font-weight: 400; color: var(--text-primary); }
.prop-card__area { margin-top: 2px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
.prop-card__specs {
  display: flex; gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-secondary); font-weight: 300;
}
.prop-card__specs span { display: inline-flex; align-items: center; gap: 6px; }

/* listings horizontal variant width */
.hscroll .prop-card { width: clamp(280px, 78vw, 380px); }

/* ===================================================================
   SERVICE CARDS (imitation: Caesar Palm apartment-type 3-card grid)
   =================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden; padding-bottom: 30px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px); border-color: var(--border-strong);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.7);
}
.svc-card__media { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.06); }
.svc-card h3 { font-size: 1.9rem; font-weight: 400; margin: 26px 30px 0; }
.svc-card__meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 16px 30px 0;
  padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.svc-card__meta span {
  position: relative; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-secondary);
}
.svc-card__meta span + span::before {
  content: ""; position: absolute; left: -9px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 11px; background: var(--border-strong);
}
.svc-card p { margin: 18px 30px 24px; font-size: 0.92rem; font-weight: 300; color: var(--text-secondary); }
.svc-card .text-link { margin: auto 30px 0; }

/* ===================================================================
   BRAND / PERSONAL SECTION (+ inline form)
   =================================================================== */
.personal {
  position: relative; text-align: center; padding-block: clamp(90px, 14vw, 170px);
  display: flex; flex-direction: column; align-items: center; overflow: hidden;
}
.personal__bg { position: absolute; inset: 0; z-index: -2; }
.personal__bg img { width: 100%; height: 100%; object-fit: cover; }
.personal::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11,11,15,0.78); }
.personal h2 { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 300; max-width: 18ch; }
.personal .eyebrow { margin-top: 44px; }

/* inline form */
.inline-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  width: 100%; max-width: 640px; margin-top: 22px; text-align: left;
}
.inline-form .full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(20,20,24,0.6); border: 1px solid var(--border);
  border-radius: 2px; padding: 14px 16px; color: var(--text-primary);
  font-weight: 300; transition: border-color 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }
.field label {
  display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-secondary); margin-bottom: 8px;
}

/* ===================================================================
   SELL / SPLIT SECTION
   =================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split__media img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; border-radius: 3px; }
.split__body h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 300; }
.split__body p.lead { margin-top: 22px; color: var(--text-secondary); font-weight: 300; font-size: 1.05rem; }

.feature-list { margin-top: 38px; display: grid; gap: 0; }
.feature-list .feature { padding: 24px 0; border-top: 1px solid var(--border); }
.feature-list .feature:last-child { border-bottom: 1px solid var(--border); }
.feature h4 { font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); }
.feature p { margin-top: 8px; color: var(--text-secondary); font-weight: 300; font-size: 0.95rem; }
.split__body .text-link { margin-top: 34px; }

/* ===================================================================
   STATS BAR
   =================================================================== */
.stats { text-align: center; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 60px; }
.stat__num { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1; color: var(--gold); }
.stat__label { margin-top: 14px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-secondary); }

/* ===================================================================
   TESTIMONIALS
   =================================================================== */
.tslider { text-align: center; max-width: 880px; margin-inline: auto; }
.tslide { display: none; }
.tslide.active { display: block; animation: tfade 0.7s var(--ease); }
@keyframes tfade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; } }
.tslide blockquote { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1.3; }
.tslide cite { display: block; margin-top: 28px; font-style: normal; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); }
.tdots { display: flex; gap: 10px; justify-content: center; margin-top: 44px; }
.tdots button { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: all 0.3s; }
.tdots button.active { background: var(--gold); transform: scale(1.3); }

/* ===================================================================
   PAGE HERO (subpages)
   =================================================================== */
.page-hero {
  position: relative; min-height: 56vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 60px) var(--pad) 70px; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,15,0.6), rgba(11,11,15,0.92)); }
.page-hero__inner { max-width: var(--container); margin-inline: auto; width: 100%; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 300; }
.page-hero .crumb { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 18px; }
.page-hero p { margin-top: 18px; color: var(--text-secondary); font-weight: 300; max-width: 560px; }

.page-hero--center { justify-content: center; text-align: center; }
.page-hero--center .page-hero__inner { max-width: 760px; }
.page-hero--center p { margin-inline: auto; }

/* ===================================================================
   ABOUT
   =================================================================== */
.prose-center { max-width: 820px; margin-inline: auto; text-align: center; }
.prose-center h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 300; }
.prose-center p { margin-top: 28px; color: var(--text-secondary); font-weight: 300; font-size: 1.1rem; line-height: 1.8; }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.about-stats .stat__num { font-size: clamp(3.2rem, 7vw, 6rem); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.team-card__media { aspect-ratio: 3/4; overflow: hidden; border-radius: 3px; background: var(--bg-card); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); transition: filter 0.5s, transform 1s var(--ease); }
.team-card:hover .team-card__media img { filter: none; transform: scale(1.04); }
.team-card h3 { font-size: 1.4rem; font-weight: 400; margin-top: 18px; }
.team-card p { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--gold); margin-top: 4px; }

/* ===================================================================
   PROPERTIES PAGE
   =================================================================== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 50px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.filter-btn {
  font-weight: 500; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.13em;
  padding: 11px 24px; border-radius: 2px; color: var(--text-secondary); transition: all 0.3s; border: 1px solid transparent;
}
.filter-btn:hover { color: var(--text-primary); }
.filter-btn.active { color: var(--gold); border-color: var(--border-strong); background: rgba(201,169,110,0.05); }

.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.prop-card.hide { display: none; }

/* ===================================================================
   CONTACT PAGE
   =================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 90px); }
.contact-form { display: grid; gap: 20px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-success {
  display: none; margin-top: 8px; padding: 18px 22px; border: 1px solid var(--border-strong);
  background: rgba(201,169,110,0.08); border-radius: 2px; color: var(--gold-light); font-weight: 300;
}
.form-success.show { display: block; }

.office { padding: 26px 0; border-top: 1px solid var(--border); }
.office:last-child { border-bottom: 1px solid var(--border); }
.office h4 { font-family: var(--font-body); font-weight: 500; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); }
.office p { margin-top: 8px; color: var(--text-secondary); font-weight: 300; font-size: 0.95rem; }
.contact-meta { margin-top: 36px; display: grid; gap: 8px; font-weight: 300; }
.contact-meta a { color: var(--gold); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding-block: 80px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-grid .brand { font-size: 1.5rem; }
.footer-about { margin-top: 20px; color: var(--text-secondary); font-weight: 300; font-size: 0.92rem; max-width: 34ch; }
.footer-col h5 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); font-family: var(--font-body); font-weight: 500; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { color: var(--text-secondary); font-weight: 300; font-size: 0.92rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { color: var(--text-secondary); font-weight: 300; font-size: 0.92rem; margin-bottom: 10px; }
.footer-bottom { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--text-secondary); transition: color 0.3s; }
.footer-social a:hover { color: var(--gold); }

/* ===================================================================
   CHATBOT
   =================================================================== */
#chat-trigger {
  position: fixed; right: 26px; bottom: 26px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold); color: #14110B;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: transform 0.3s var(--ease), background 0.3s;
}
#chat-trigger:hover { transform: scale(1.07); background: var(--gold-light); }

#chat-window {
  position: fixed; right: 26px; bottom: 26px; z-index: 201;
  width: 380px; height: 520px; max-height: calc(100vh - 52px);
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.97);
  transition: all 0.4s var(--ease); box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
#chat-window.open { opacity: 1; visibility: visible; transform: none; }

.chat-header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #14110B; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; flex-shrink: 0; }
.chat-header-info { flex: 1; }
.chat-header-info strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.chat-header-info span { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-secondary); font-weight: 300; }
.chat-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5BBE7A; }
.chat-close { color: var(--text-secondary); padding: 4px; transition: color 0.3s; }
.chat-close:hover { color: var(--text-primary); }

.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--gold-dark) transparent; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 12px; font-size: 0.9rem; font-weight: 300; line-height: 1.5; }
.msg--bot { align-self: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.msg--user { align-self: flex-end; background: var(--gold); color: #14110B; border-bottom-right-radius: 3px; }

.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; border-bottom-left-radius: 3px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); animation: typing 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.chat-input-row { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--border); background: var(--bg-card); }
.chat-input-row input { flex: 1; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 20px; padding: 11px 16px; color: var(--text-primary); font-weight: 300; outline: none; }
.chat-input-row input:focus { border-color: var(--gold); }
#chat-send { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #14110B; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.3s; }
#chat-send:hover { background: var(--gold-light); }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 50px; }
  .svc-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 768px) {
  .nav-links, .nav-right .btn { display: none; }
  .hamburger { display: block; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .inline-form { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; gap: 48px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero__search { flex-wrap: wrap; }
  .hero__search input { min-width: 100%; }
  .hero__search .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 18px 0; padding-top: 24px; margin-top: 40px; }
  .hero__stat { flex-basis: 50%; min-width: 0; }
  /* drop dividers when wrapping to a 2-up grid */
  .hero__stat::before { display: none !important; }
}
@media (max-width: 480px) {
  .prop-grid, .team-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .contact-form .row2 { grid-template-columns: 1fr; }
  #chat-window { right: 0; bottom: 0; width: 100%; height: 100%; max-height: 100vh; border-radius: 0; }
  .hero__tabs button { padding: 10px 18px; }
}

/* ===================================================================
   ADDED COMPONENTS
   =================================================================== */

/* ---- Recently sold badge / tag ---- */
.prop-card__badge--sold { background: var(--gold); color: #14110B; border-color: var(--gold); }
.prop-card__sold {
  display: inline-block; margin-top: 12px;
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold);
}

/* ---- Properties list controls (filter + sort) ---- */
.list-controls {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 50px; border-bottom: 1px solid var(--border); padding-bottom: 24px;
}
.list-controls .filter-bar { margin: 0; padding: 0; border: none; }
.sort-control { display: flex; align-items: center; gap: 12px; }
.sort-control label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-secondary); }
.sort-control select {
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 2px;
  padding: 11px 16px; color: var(--text-primary); font-weight: 300; cursor: pointer; outline: none;
}
.sort-control select:focus { border-color: var(--gold); }

/* ---- Awards / accreditations ---- */
.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.award-card {
  border: 1px solid var(--border-strong); border-radius: 3px; padding: 38px 24px;
  min-height: 168px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 12px; text-align: center; transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.award-card:hover { border-color: var(--gold); background: rgba(201,169,110,0.05); transform: translateY(-4px); }
.award-card strong { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--gold); line-height: 1.1; }
.award-card span { font-size: 0.78rem; color: var(--text-secondary); font-weight: 300; }

/* ---- Contact map embed ---- */
.map-embed { margin-top: 40px; border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; filter: grayscale(0.35) invert(0.92) hue-rotate(180deg) contrast(0.9); }

/* ---- Footer newsletter ---- */
.footer-news {
  margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.footer-news h5 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; letter-spacing: -0.02em; color: var(--text-primary); }
.footer-news form { display: flex; gap: 10px; flex: 1; max-width: 460px; min-width: 280px; }
.footer-news input {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 2px;
  padding: 13px 16px; color: var(--text-primary); font-weight: 300; outline: none; transition: border-color 0.3s;
}
.footer-news input::placeholder { color: var(--text-muted); }
.footer-news input:focus { border-color: var(--gold); }

@media (max-width: 1024px) {
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .list-controls { flex-direction: column; align-items: flex-start; }
  .footer-news { flex-direction: column; align-items: flex-start; }
  .footer-news form { width: 100%; max-width: none; }
}
@media (max-width: 480px) {
  .awards-grid { grid-template-columns: 1fr; }
  .footer-news form { flex-direction: column; }
  .footer-news .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fade-in { opacity: 1; transform: none; }
  .hero__video { transform: none; }
}

/* ===================================================================
   THE AGENCY-INSPIRED ADDITIONS
   Press strip · Agents teaser · Journal · Wishlist · Property detail
   =================================================================== */

/* ---- Press / "As Featured In" strip ---- */
.press-strip { border-block: 1px solid var(--border); padding-block: 40px; }
.press-strip .eyebrow { display: block; text-align: center; margin-bottom: 26px; }
.press-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 52px;
}
.press-row span {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; letter-spacing: 0.01em;
  color: var(--text-muted); white-space: nowrap; transition: color 0.4s var(--ease);
}
.press-row span:hover { color: var(--gold-light); }

/* ---- Agents teaser (extends .team-card) ---- */
.agent-contact { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }
.agent-contact a {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--gold);
  transition: color 0.3s; display: inline-flex; align-items: center; gap: 6px;
}
.agent-contact a:hover { color: var(--gold-light); }
.team-card--agent { text-align: center; }

/* ---- Journal / Insights ---- */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.article-card { display: block; }
.article-card__media { aspect-ratio: 16/11; overflow: hidden; border-radius: 3px; background: var(--bg-card); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__cat { margin-top: 20px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold); }
.article-card h3 { font-size: 1.55rem; font-weight: 400; margin-top: 10px; line-height: 1.18; transition: color 0.3s; }
.article-card:hover h3 { color: var(--gold-light); }
.article-card__meta { margin-top: 10px; font-size: 0.78rem; color: var(--text-muted); }
.article-card p { margin-top: 12px; font-size: 0.92rem; font-weight: 300; color: var(--text-secondary); }

/* ---- Wishlist heart on property cards ---- */
.fav-btn {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11,11,15,0.55); backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong); color: var(--text-primary);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.fav-btn:hover { background: rgba(11,11,15,0.82); border-color: var(--gold); color: var(--gold); transform: scale(1.08); }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: fill 0.3s; }
.fav-btn.is-fav { color: var(--gold); border-color: var(--gold); }
.fav-btn.is-fav svg { fill: var(--gold); }
.prop-card__badge--let { color: var(--text-primary); }

/* ---- Nav "Saved" counter ---- */
.nav-saved { position: relative; display: inline-flex; align-items: center; color: var(--text-secondary); transition: color 0.3s; }
.nav-saved:hover { color: var(--gold); }
.nav-saved svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.nav-saved__count {
  position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--gold); color: #14110B; font-size: 0.6rem; font-weight: 600;
  display: none; align-items: center; justify-content: center; line-height: 1;
}
.nav-saved.has-items .nav-saved__count { display: inline-flex; }

/* ---- Property detail page ---- */
.pd { padding-top: calc(var(--nav-h) + 36px); }
.pd__crumb { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold); margin-bottom: 18px; }
.pd__gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 1fr; gap: 10px; height: 62vh; min-height: 420px; }
.pd__gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; display: block; }
.pd__gallery a:first-child { grid-column: 1; grid-row: 1 / span 2; }
.pd__gallery a { overflow: hidden; border-radius: 3px; }
.pd__gallery a img { transition: transform 1s var(--ease); }
.pd__gallery a:hover img { transform: scale(1.05); }
.pd__body { display: grid; grid-template-columns: 1.7fr 1fr; gap: 60px; margin-top: 54px; align-items: start; }
.pd__price { font-family: var(--font-display); font-weight: 300; font-size: 2.8rem; line-height: 1; }
.pd__addr { margin-top: 12px; font-size: 1.6rem; font-weight: 400; font-family: var(--font-display); }
.pd__area { margin-top: 4px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); }
.pd__specs { display: flex; flex-wrap: wrap; gap: 28px; margin: 26px 0; padding: 22px 0; border-block: 1px solid var(--border); }
.pd__spec strong { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 300; }
.pd__spec span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-secondary); }
.pd__desc p { color: var(--text-secondary); font-weight: 300; margin-bottom: 16px; }
.pd__features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 22px; }
.pd__features li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--text-secondary); font-weight: 300; }
.pd__features li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.pd__agent { position: sticky; top: 100px; border: 1px solid var(--border); border-radius: 4px; padding: 32px; background: var(--bg-card); }
.pd__agent-head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.pd__agent-head img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.pd__agent-head strong { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.pd__agent-head span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-top: 3px; }
.pd__agent form { display: grid; gap: 12px; margin-top: 22px; }
.pd__agent input, .pd__agent textarea {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 2px;
  padding: 13px 15px; color: var(--text-primary); font-weight: 300; outline: none; transition: border-color 0.3s;
}
.pd__agent input:focus, .pd__agent textarea:focus { border-color: var(--gold); }
.pd__agent .btn { width: 100%; justify-content: center; margin-top: 4px; }

@media (max-width: 1024px) {
  .journal-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pd__body { grid-template-columns: 1fr; gap: 40px; }
  .pd__agent { position: static; }
}
@media (max-width: 768px) {
  .press-row span { font-size: 1.2rem; }
  .pd__gallery { grid-template-columns: 1fr 1fr; height: auto; }
  .pd__gallery a:first-child { grid-column: 1 / span 2; grid-row: auto; aspect-ratio: 16/10; }
  .pd__features { grid-template-columns: 1fr; }
}
