/* === tokens.css === */
/* ============================================================
   ESTHINGTON — DESIGN TOKENS
   Single source of truth for every colour, space, and type
   decision across the entire design system.
   ============================================================ */

:root {
  /* ── Brand Colours ── */
  --clr-purple: #5b2d8e;
  --clr-purple-lt: #7b4db8;
  --clr-navy: #1e2a5e;
  --clr-navy-dk: #111828;
  --clr-orange: #f5a623;
  --clr-orange-dk: #e09420;
  --clr-lavender: #f0edf8;
  --clr-white: #ffffff;
  --clr-body: #555555;

  /* ── Semantic Aliases ── */
  --clr-bg: var(--clr-white);
  --clr-surface: var(--clr-lavender);
  --clr-text: var(--clr-body);
  --clr-heading: var(--clr-navy);
  --clr-accent: var(--clr-orange);
  --clr-brand: var(--clr-purple);

  /* ── Spacing Scale (8-pt grid) ── */
  --sp-1: 0.25rem; /*  4px */
  --sp-2: 0.5rem; /*  8px */
  --sp-3: 0.75rem; /* 12px */
  --sp-4: 1rem; /* 16px */
  --sp-5: 1.25rem; /* 20px */
  --sp-6: 1.5rem; /* 24px */
  --sp-8: 2rem; /* 32px */
  --sp-10: 2.5rem; /* 40px */
  --sp-12: 3rem; /* 48px */
  --sp-16: 4rem; /* 64px */
  --sp-20: 5rem; /* 80px */
  --sp-24: 6rem; /* 96px */
  --sp-30: 7.5rem; /* 120px */

  /* ── Typography ── */
  --ff-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-sans:
    "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --fs-xs: 0.625rem; /* 10px */
  --fs-sm: 0.75rem; /* 12px */
  --fs-base: 0.875rem; /* 14px — mobile body */
  --fs-md: 1rem; /* 16px */
  --fs-lg: 1.125rem; /* 18px */
  --fs-xl: 1.25rem; /* 20px */
  --fs-2xl: 1.5rem; /* 24px */
  --fs-3xl: 1.875rem; /* 30px */
  --fs-4xl: 2.25rem; /* 36px */
  --fs-5xl: 3rem; /* 48px */
  --fs-6xl: 3.75rem; /* 60px */

  --fw-light: 300;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;
  --lh-loose: 1.85;

  /* ── Layout ── */
  --nav-h: 64px; /* mobile-first */
  --max-w: 1200px;
  --max-w-lg: 1320px;

  /* ── Border Radius ── */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(30, 42, 94, 0.06);
  --shadow-md: 0 4px 24px rgba(30, 42, 94, 0.08);
  --shadow-lg: 0 8px 48px rgba(30, 42, 94, 0.12);
  --shadow-hover: 0 16px 48px rgba(91, 45, 142, 0.18);
  --shadow-nav: 0 4px 32px rgba(30, 42, 94, 0.1);

  /* ── Motion ── */
  --dur-fast: 0.18s;
  --dur-base: 0.32s;
  --dur-slow: 0.6s;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-inout: cubic-bezier(0.645, 0.045, 0.355, 1);

  /* ── Z-index Scale ── */
  --z-below: -1;
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 100;
  --z-nav: 900;
  --z-mobile-menu: 899;
  --z-toast: 9000;
  --z-loader: 9999;
}

/* ── Fluid nav height on larger screens ── */
@media (min-width: 768px) {
  :root {
    --nav-h: 72px;
  }
}
@media (min-width: 1024px) {
  :root {
    --nav-h: 80px;
    --max-w: 1200px;
  }
}
@media (min-width: 1400px) {
  :root {
    --max-w: var(--max-w-lg);
  }
}

/* === base.css === */
/* ============================================================
   ESTHINGTON — BASE RESET & GLOBAL UTILITIES
   Mobile-first. Accessibility-first.
   ============================================================ */

/* ── Box Model Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Root ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 100%; /* respect user browser font-size preference */
}

/* ── Body ── */
body {
  font-family: var(--ff-sans);
  font-size: var(--fs-base); /* 14px mobile → 16px+ on larger screens */
  line-height: var(--lh-normal);
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body {
    font-size: var(--fs-md);
  } /* 16px on tablet+ */
}

/* ── Media ── */
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

/* ── Interactive ── */
button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
}
a {
  color: inherit;
}
ul,
ol {
  list-style: none;
}

/* ── Honour user motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── High contrast mode support ── */
@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonText;
  }
}

/* ============================================================
   ACCESSIBILITY UTILITIES
   ============================================================ */

/* Skip to main content — keyboard users + screen readers */
.skip-link {
  position: absolute;
  top: -200%;
  left: var(--sp-4);
  z-index: var(--z-loader);
  background: var(--clr-purple);
  color: var(--clr-white);
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  text-decoration: none;
  transition: top var(--dur-fast);
}
.skip-link:focus {
  top: var(--sp-4);
}

/* Visually hidden but available to AT */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Global Focus Ring ── */
:focus-visible {
  outline: 3px solid var(--clr-orange);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

/* Centred max-width wrapper */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5); /* 20px mobile */
}
@media (min-width: 768px) {
  .container {
    padding-inline: var(--sp-8);
  }
}
@media (min-width: 1024px) {
  .container {
    padding-inline: var(--sp-12);
  }
}

/* Full-bleed sections with block padding */
.section {
  padding-block: var(--sp-16);
} /* 64px mobile */
.section--tint {
  background: var(--clr-lavender);
}
.section--navy {
  background: var(--clr-navy);
}
.section--dark {
  background: var(--clr-navy-dk);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--sp-20);
  }
}
@media (min-width: 1024px) {
  .section {
    padding-block: var(--sp-30);
  }
}

/* ============================================================
   TYPOGRAPHY ATOMS
   ============================================================ */

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-orange);
  margin-bottom: var(--sp-3);
}

.heading-display {
  font-family: var(--ff-serif);
  font-size: clamp(var(--fs-3xl), 8vw, var(--fs-6xl));
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  line-height: var(--lh-tight);
}
.heading-display em {
  font-style: italic;
  color: var(--clr-orange);
}

.heading-xl {
  font-family: var(--ff-serif);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-5xl));
  font-weight: var(--fw-bold);
  color: var(--clr-heading);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-4);
}
.heading-xl em {
  font-style: italic;
  color: var(--clr-purple);
}
.heading-xl--light {
  color: var(--clr-white);
}

.heading-lg {
  font-family: var(--ff-serif);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  font-weight: var(--fw-bold);
  color: var(--clr-heading);
  line-height: var(--lh-snug);
  margin-bottom: var(--sp-4);
}

.divider {
  width: 56px;
  height: 3px;
  background: var(--clr-orange);
  border-radius: 2px;
  margin-bottom: var(--sp-6);
}
.divider--center {
  margin-inline: auto;
}

.body-lead {
  font-size: var(--fs-base);
  color: var(--clr-text);
  line-height: var(--lh-relaxed);
  max-width: 560px;
}
.body-lead--light {
  color: rgba(255, 255, 255, 0.72);
}

@media (min-width: 768px) {
  .body-lead {
    font-size: var(--fs-md);
  }
}

/* ============================================================
   BUTTON SYSTEM
   Base class + variant modifiers. All have 44px min tap target.
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  min-height: 44px; /* WCAG 2.5.5 touch target */
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast),
    transform var(--dur-fast),
    box-shadow var(--dur-fast);
}
.btn:active {
  transform: translateY(1px) !important;
}

/* Orange (primary CTA) */
.btn--orange {
  background: var(--clr-orange);
  color: var(--clr-white);
  border-color: var(--clr-orange);
}
.btn--orange:hover {
  background: var(--clr-orange-dk);
  border-color: var(--clr-orange-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 166, 35, 0.32);
}

/* Ghost on dark background */
.btn--ghost-light {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.42);
}
.btn--ghost-light:hover {
  border-color: var(--clr-white);
  background: rgba(255, 255, 255, 0.09);
}

/* Solid purple */
.btn--purple {
  background: var(--clr-purple);
  color: var(--clr-white);
  border-color: var(--clr-purple);
}
.btn--purple:hover {
  background: var(--clr-navy);
  border-color: var(--clr-navy);
  transform: translateY(-2px);
}

/* Full-width variant */
.btn--full {
  width: 100%;
}

/* ============================================================
   PAGE SWITCHER
   ============================================================ */

.page {
  display: none;
  min-height: 100vh;
}
.page.active {
  display: block;
  animation: pageIn var(--dur-base) var(--ease-out);
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children — applied in JS via data attribute */
.reveal[data-delay="1"] {
  transition-delay: 0.1s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.2s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.3s;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */

.toast {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-5);
  z-index: var(--z-toast);
  max-width: calc(100vw - var(--sp-10));
  background: var(--clr-navy);
  color: var(--clr-white);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--clr-orange);
  /* GPU-composited show/hide — no layout shift */
  transform: translateY(130%);
  opacity: 0;
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-base);
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   LOADER
   ============================================================ */

.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--clr-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}
.loader.done {
  opacity: 0;
  visibility: hidden;
}
.loader__logo {
  width: 220px;
  height: auto;
  max-width: 75vw;
  object-fit: contain;
  animation: loaderPulse 1.5s ease-in-out infinite;
  filter: brightness(0) invert(1);
}
.loader__bar {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: var(--sp-8);
  overflow: hidden;
}
.loader__fill {
  height: 100%;
  background: var(--clr-orange);
  animation: loaderFill 1.8s var(--ease-out) forwards;
}
@keyframes loaderPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes loaderFill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* ============================================================
   PRINT RESET
   ============================================================ */

@media print {
  .nav,
  .loader,
  .toast,
  .marquee,
  .testi-wrap,
  .hero__scroll {
    display: none !important;
  }

  .page {
    display: block !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  a[href]::after {
    content: " (" attr(href) ")";
  }
}

/* === components.css === */
/* ============================================================
   ESTHINGTON — NAVIGATION COMPONENT
   Mobile-first. Fixed. Glassmorphism. Burger menu.
   ============================================================ */

.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--sp-5);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(91, 45, 142, 0.07);
  transition:
    height var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.nav.scrolled {
  box-shadow: var(--shadow-nav);
}

@media (min-width: 768px) {
  .nav {
    padding-inline: var(--sp-8);
  }
}
@media (min-width: 1024px) {
  .nav {
    padding-inline: var(--sp-12);
  }
}

/* ── Logo ── */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  text-decoration: none;
}
.nav__logo-img {
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .nav__logo-img {
    height: 66px;
  }
}

/* ── Desktop Links ── */
.nav__links {
  display: none; /* hidden on mobile — shown in open state */
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 768px) {
  .nav__links {
    display: flex;
    gap: var(--sp-6);
  }
}
@media (min-width: 1024px) {
  .nav__links {
    gap: var(--sp-8);
  }
}

.nav__link {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-navy);
  background: none;
  border: none;
  cursor: pointer;
  padding-block: 6px;
  position: relative;
  transition: color var(--dur-fast);
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-orange);
  border-radius: 1px;
  transition: width var(--dur-base) var(--ease-out);
}
.nav__link:hover,
.nav__link.active {
  color: var(--clr-purple);
}
.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* CTA pill in nav */
.nav__link--cta {
  background: var(--clr-purple) !important;
  color: var(--clr-white) !important;
  padding: 9px 20px !important;
  border-radius: var(--r-sm) !important;
  transition: background var(--dur-fast) !important;
}
.nav__link--cta::after {
  display: none !important;
}
.nav__link--cta:hover {
  background: var(--clr-navy) !important;
}

/* ── Hamburger (mobile only) ── */
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur-fast);
  min-height: 44px; /* tap target */
  min-width: 44px;
  align-items: center;
  justify-content: center;
  z-index: calc(var(--z-nav) + 1);
}
.nav__burger:hover {
  background: var(--clr-lavender);
}
.nav__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-navy);
  border-radius: 2px;
  /* GPU-only — no layout reflow */
  transition:
    transform var(--dur-base) var(--ease-out),
    opacity var(--dur-base);
}
/* Animate to ✕ */
.nav.open .nav__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .nav__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav.open .nav__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hide burger on tablet+ */
@media (min-width: 768px) {
  .nav__burger {
    display: none;
  }
}

/* ── Mobile Dropdown ── */
@media (max-width: 767px) {
  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--nav-h);
    inset-inline: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--sp-5) var(--sp-6) var(--sp-8);
    gap: 0;
    box-shadow: 0 16px 48px rgba(30, 42, 94, 0.14);
    border-top: 1px solid rgba(91, 45, 142, 0.08);
    z-index: var(--z-mobile-menu);
    animation: mobileMenuIn 0.22s var(--ease-out);
  }
  .nav.open .nav__link {
    padding-block: 14px;
    border-bottom: 1px solid rgba(91, 45, 142, 0.07);
    width: 100%;
    font-size: var(--fs-base);
  }
  .nav.open .nav__link::after {
    display: none;
  }
  .nav.open .nav__link--cta {
    margin-top: var(--sp-4);
    padding: 13px 20px !important;
    text-align: center;
    border-radius: var(--r-md) !important;
    width: 100%;
  }
}
@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   HERO COMPONENT
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh; /* svh = no mobile chrome-bar jump */
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Background gradient layer */
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--clr-navy-dk) 0%,
    var(--clr-navy) 45%,
    var(--clr-purple) 100%
  );
  z-index: 0;
}
/* Subtle dot pattern — no repaint cost */
.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23fff'/%3E%3C/svg%3E");
}

/* Directional colour wash */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17, 24, 40, 0.6) 0%,
    rgba(30, 42, 94, 0.3) 55%,
    transparent 100%
  );
  z-index: 0;
}

/* Inner content wrapper */
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-8) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
}

/* ── Hero body — stack on mobile, side-by-side on desktop ── */
.hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--sp-4) var(--sp-8);
}

@media (min-width: 900px) {
  .hero__inner {
    padding: var(--sp-10) var(--sp-12) var(--sp-8);
  }
  .hero__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
  }
}

/* ── Eyebrow tag ── */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.38);
  color: var(--clr-orange);
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  width: fit-content;
  animation: slideUp 0.8s var(--ease-out) 0.2s both;
}
.hero__tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--clr-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Headline ── */
.hero__h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2.25rem, 9vw, 4.75rem);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-5);
  animation: slideUp 0.8s var(--ease-out) 0.4s both;
}
.hero__h1 em {
  font-style: italic;
  color: var(--clr-orange);
}

/* ── Sub-copy ── */
.hero__lead {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-8);
  font-weight: var(--fw-light);
  max-width: 440px;
  animation: slideUp 0.8s var(--ease-out) 0.6s both;
}
@media (min-width: 768px) {
  .hero__lead {
    font-size: var(--fs-md);
  }
}

/* ── CTA row ── */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  animation: slideUp 0.8s var(--ease-out) 0.8s both;
}
.hero__actions .btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero__actions .btn {
    width: auto;
  }
}

/* ── Visual card (hidden on mobile, visible on desktop) ── */
.hero__visual {
  display: none;
  align-items: center;
  justify-content: center;
  animation: slideUp 0.9s var(--ease-out) 0.5s both;
}
@media (min-width: 900px) {
  .hero__visual {
    display: flex;
  }
}

.hero__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}
.hero__card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  /* explicit dims prevent CLS */
}
.hero__card-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(245, 166, 35, 0.95);
  color: var(--clr-white);
  padding: 11px 16px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
.hero__card-label strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}
.hero__card-label span {
  font-size: var(--fs-xs);
  opacity: 0.88;
}

/* ── Stats bar ── */
.hero__stats {
  display: flex;
  animation: slideUp 0.8s var(--ease-out) 1s both;
}
.hero__stat {
  flex: 1;
  text-align: center;
  padding: var(--sp-4) var(--sp-3);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero__stat:first-child {
  border-radius: 10px 0 0 10px;
}
.hero__stat:last-child {
  border-radius: 0 10px 10px 0;
}
.hero__stat-num {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-orange);
  display: block;
  min-width: 4ch; /* prevent CLS from counter animation */
}
.hero__stat-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--sp-1);
}

/* Hide label text on very small phones */
@media (max-width: 360px) {
  .hero__stat-label {
    display: none;
  }
}

@media (min-width: 768px) {
  .hero__stat {
    padding: var(--sp-5) var(--sp-6);
  }
  .hero__stat-num {
    font-size: var(--fs-4xl);
  }
  .hero__stat-label {
    font-size: var(--fs-xs);
  }
}

/* ── Scroll cue ── */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: none; /* hidden on mobile — space is precious */
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  animation: scrollBounce 2.2s ease-in-out infinite;
}
@media (min-width: 768px) {
  .hero__scroll {
    display: flex;
  }
}

.hero__scroll span {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.38),
    transparent
  );
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

/* ── Shared slide-up entry ── */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   MARQUEE (Infinite scroll strip)
   GPU-composited — no layout cost
   ============================================================ */

.marquee {
  background: var(--clr-navy);
  padding-block: var(--sp-4);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  gap: var(--sp-12);
  will-change: transform;
  animation: marqueeScroll 26s linear infinite;
  width: max-content;
}
/* Pause on hover/focus — better a11y + readability */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  white-space: nowrap;
}
.marquee__item::before {
  content: "◆";
  color: var(--clr-orange);
  font-size: 8px;
}
@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   PAGE-LEVEL HERO BANNERS  (About / Services / Properties /
   Contact — all share this pattern)
   ============================================================ */

.page-hero {
  position: relative;
  padding: var(--sp-24) var(--sp-5) var(--sp-12);
  overflow: hidden;
  /* min-height prevents content from touching the nav */
  min-height: 280px;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Dark overlay on top of the image */
.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 42, 94, 0.88) 0%,
    rgba(91, 45, 142, 0.75) 100%
  );
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin-inline: auto;
}
.page-hero__h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 7vw, 4.25rem);
  color: var(--clr-white);
  margin-top: var(--sp-2);
  line-height: var(--lh-tight);
}
.page-hero__h1 em {
  font-style: italic;
  color: var(--clr-orange);
}
.page-hero__lead {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-base);
  max-width: 520px;
  margin-top: var(--sp-4);
  line-height: var(--lh-relaxed);
}

@media (min-width: 768px) {
  .page-hero {
    padding: 140px var(--sp-8) var(--sp-16);
  }
  .page-hero__lead {
    font-size: var(--fs-md);
  }
}
@media (min-width: 1024px) {
  .page-hero {
    padding: 160px var(--sp-12) 90px;
  }
}

/* === sections.css === */
/* ============================================================
   ESTHINGTON — SECTIONS & PAGE STYLES
   Mobile-first. Each block is self-contained.
   ============================================================ */

/* ============================================================
   FEATURES GRID
   ============================================================ */

.features-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 col mobile */
  gap: 1px;
  background: rgba(91, 45, 142, 0.1);
}
@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--clr-white);
  padding: var(--sp-8) var(--sp-6);
  position: relative;
  overflow: hidden;
  transition:
    background var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--clr-orange);
  transition: height var(--dur-slow) var(--ease-out);
}
.feature-card:hover::before {
  height: 100%;
}
.feature-card:hover {
  background: var(--clr-lavender);
  transform: translateY(-3px);
}
.feature-card__icon {
  width: 56px;
  height: 56px;
  background: var(--clr-lavender);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
  transition: background var(--dur-base);
}
.feature-card:hover .feature-card__icon {
  background: var(--clr-purple);
}
.feature-card__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  color: var(--clr-navy);
  margin-bottom: var(--sp-3);
}
.feature-card__text {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

/* ============================================================
   ABOUT SPLIT LAYOUT
   ============================================================ */

.about-split {
  display: grid;
  grid-template-columns: 1fr; /* stack on mobile */
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 900px) {
  .about-split {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
}

/* ── Stacked image group ── */
.about-media {
  position: relative;
  height: 300px; /* compact on mobile */
}
@media (min-width: 600px) {
  .about-media {
    height: 380px;
  }
}
@media (min-width: 900px) {
  .about-media {
    height: 500px;
  }
}
@media (min-width: 1024px) {
  .about-media {
    height: 520px;
  }
}

.about-media__main {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 82%;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.about-media__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-media__accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 54%;
  height: 52%;
  border-radius: var(--r-lg);
  border: 5px solid var(--clr-white);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(30, 42, 94, 0.18);
}
.about-media__accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-media__badge {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background: var(--clr-orange);
  color: var(--clr-white);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  text-align: center;
  z-index: var(--z-raised);
}
.about-media__badge strong {
  display: block;
  font-size: var(--fs-4xl);
  font-family: var(--ff-serif);
  line-height: 1;
}
.about-media__badge span {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ── Value pills ── */
.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
@media (min-width: 480px) {
  .about-values {
    grid-template-columns: 1fr 1fr;
  }
}

.value-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--clr-lavender);
  padding: 12px var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-navy);
}
.value-pill::before {
  content: "✓";
  background: var(--clr-purple);
  color: var(--clr-white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  flex-shrink: 0;
}

/* ============================================================
   PROPERTY CARDS
   ============================================================ */

.prop-grid {
  display: grid;
  grid-template-columns: 1fr; /* 1 col mobile */
  gap: var(--sp-6);
}
@media (min-width: 600px) {
  .prop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5);
  }
}
@media (min-width: 1024px) {
  .prop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.prop-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--clr-white);
  cursor: pointer;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.prop-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
}
/* Keyboard focus visible ring on the card */
.prop-card:focus-within {
  outline: 3px solid var(--clr-orange);
  outline-offset: 2px;
}

.prop-card__thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 600px) {
  .prop-card__thumb {
    height: 210px;
  }
}
@media (min-width: 1024px) {
  .prop-card__thumb {
    height: 230px;
  }
}

.prop-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.prop-card:hover .prop-card__img {
  transform: scale(1.06);
}

.prop-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--clr-orange);
  color: var(--clr-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-sm);
}
.prop-card__badge--featured {
  background: var(--clr-purple);
}

.prop-card__save {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    color var(--dur-fast);
}
.prop-card__save:hover {
  background: var(--clr-orange);
  color: var(--clr-white);
}

.prop-card__body {
  padding: var(--sp-5);
}
.prop-card__price {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-purple);
  margin-bottom: var(--sp-2);
}
.prop-card__name {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--clr-navy);
  margin-bottom: var(--sp-1);
}
.prop-card__loc {
  font-size: var(--fs-sm);
  color: var(--clr-body);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.prop-card__loc::before {
  content: "📍";
  font-size: var(--fs-xs);
}

.prop-card__specs {
  display: flex;
  border-top: 1px solid var(--clr-lavender);
  padding-top: var(--sp-4);
}
.spec {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--clr-lavender);
}
.spec:last-child {
  border-right: none;
}
.spec__val {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--clr-navy);
  display: block;
}
.spec__label {
  font-size: var(--fs-xs);
  color: var(--clr-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 768px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.svc-card {
  background: var(--clr-white);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid rgba(91, 45, 142, 0.1);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--dur-base);
}
.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-purple), var(--clr-navy));
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.svc-card:hover {
  box-shadow: var(--shadow-hover);
}
.svc-card:hover::after {
  opacity: 1;
}
.svc-card:hover .svc-card__num,
.svc-card:hover .svc-card__title,
.svc-card:hover .svc-card__text {
  color: var(--clr-white);
}
.svc-card > * {
  position: relative;
  z-index: 1;
}

.svc-card__num {
  font-family: var(--ff-serif);
  font-size: 3.25rem;
  font-weight: var(--fw-bold);
  color: var(--clr-lavender);
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  line-height: 1;
  transition: color var(--dur-base);
}
.svc-card__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  color: var(--clr-navy);
  margin: var(--sp-8) 0 var(--sp-4);
  transition: color var(--dur-base);
}
.svc-card__text {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  transition: color var(--dur-base);
}

/* ============================================================
   TESTIMONIALS (Auto-scroll carousel)
   ============================================================ */

.testi-wrap {
  overflow: hidden;
}
.testi-track {
  display: flex;
  gap: var(--sp-5);
  will-change: transform;
  animation: testiScroll 32s linear infinite;
  width: max-content;
}
.testi-wrap:hover .testi-track,
.testi-wrap:focus-within .testi-track {
  animation-play-state: paused;
}

@keyframes testiScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.testi-card {
  background: var(--clr-white);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  min-width: 290px;
  max-width: 290px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .testi-card {
    min-width: 360px;
    max-width: 360px;
    padding: var(--sp-8);
  }
}

.testi-card__stars {
  color: var(--clr-orange);
  font-size: var(--fs-base);
  margin-bottom: var(--sp-4);
}
.testi-card__text {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  font-style: italic;
  margin-bottom: var(--sp-6);
}
.testi-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.testi-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.testi-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testi-card__name {
  font-weight: var(--fw-bold);
  color: var(--clr-navy);
  font-size: var(--fs-base);
}
.testi-card__role {
  font-size: var(--fs-sm);
  margin-top: 2px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background: linear-gradient(
    135deg,
    var(--clr-purple) 0%,
    var(--clr-navy) 100%
  );
  padding: var(--sp-16) var(--sp-5);
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .cta-banner {
    padding: var(--sp-20) var(--sp-8);
  }
}
@media (min-width: 1024px) {
  .cta-banner {
    padding: var(--sp-30) var(--sp-12);
  }
}

/* Decorative rings */
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner::before {
  top: -40%;
  right: -8%;
  width: 500px;
  height: 500px;
}
.cta-banner::after {
  bottom: -30%;
  left: -5%;
  width: 380px;
  height: 380px;
}

.cta-banner__title {
  font-family: var(--ff-serif);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-5xl));
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}
.cta-banner__title em {
  font-style: italic;
  color: var(--clr-orange);
}

.cta-banner__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-base);
  max-width: 520px;
  margin: 0 auto var(--sp-8);
  line-height: var(--lh-relaxed);
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .cta-banner__text {
    font-size: var(--fs-md);
  }
}

.cta-banner__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-banner__actions .btn {
  width: 100%;
  max-width: 320px;
}

@media (min-width: 480px) {
  .cta-banner__actions {
    flex-direction: row;
    justify-content: center;
  }
  .cta-banner__actions .btn {
    width: auto;
    max-width: none;
  }
}

/* ============================================================
   ABOUT PAGE — VALUES STRIP
   ============================================================ */

.values-strip {
  padding-block: var(--sp-16);
}
@media (min-width: 768px) {
  .values-strip {
    padding-block: var(--sp-20);
  }
}
@media (min-width: 1024px) {
  .values-strip {
    padding-block: var(--sp-24);
  }
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-10);
}
@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
}
.value-card__icon {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-4);
}
.value-card__title {
  font-family: var(--ff-serif);
  color: var(--clr-white);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
}
.value-card__text {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: var(--lh-relaxed);
}

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--clr-lavender);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (min-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-box {
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  border-right: 1px solid rgba(91, 45, 142, 0.1);
  border-bottom: 1px solid rgba(91, 45, 142, 0.1);
}
.stat-box:nth-child(even) {
  border-right: none;
}
@media (min-width: 900px) {
  .stat-box {
    border-bottom: none;
  }
  .stat-box:nth-child(even) {
    border-right: 1px solid rgba(91, 45, 142, 0.1);
  }
  .stat-box:last-child {
    border-right: none;
  }
}

.stat-box__num {
  font-family: var(--ff-serif);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  font-weight: var(--fw-bold);
  color: var(--clr-purple);
}
.stat-box__label {
  font-size: var(--fs-xs);
  color: var(--clr-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--sp-2);
}

/* ── Team grid ── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (min-width: 768px) {
  .team-grid {
    gap: var(--sp-5);
  }
}
@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
  }
}

.team-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.team-card__img {
  height: 180px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .team-card__img {
    height: 220px;
  }
}
@media (min-width: 1024px) {
  .team-card__img {
    height: 260px;
  }
}
.team-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.team-card:hover .team-card__img img {
  transform: scale(1.05);
}
.team-card__info {
  padding: var(--sp-4) var(--sp-5);
  background: var(--clr-white);
}
.team-card__name {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  color: var(--clr-navy);
}
.team-card__role {
  font-size: var(--fs-xs);
  color: var(--clr-orange);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  margin-top: var(--sp-1);
}

/* ── Process steps ── */
.process-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  position: relative;
}
@media (min-width: 900px) {
  .process-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .process-row::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(to right, var(--clr-purple), var(--clr-orange));
    z-index: 0;
  }
}

.process-step {
  text-align: center;
  padding: 0 var(--sp-4);
  position: relative;
  z-index: 1;
}
.process-step__num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
  font-family: var(--ff-serif);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--clr-white);
}
@media (min-width: 900px) {
  .process-step__num {
    width: 92px;
    height: 92px;
  }
}
.process-step__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  color: var(--clr-navy);
  margin-bottom: var(--sp-2);
}
.process-step__text {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

/* ============================================================
   FILTER BAR (Properties page)
   ============================================================ */

.filter-bar {
  background: var(--clr-white);
  box-shadow: 0 2px 16px rgba(30, 42, 94, 0.08);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  position: sticky;
  top: var(--nav-h);
  z-index: var(--z-sticky);
}
@media (min-width: 768px) {
  .filter-bar {
    padding: var(--sp-4) var(--sp-8);
    gap: var(--sp-3);
  }
}
@media (min-width: 1024px) {
  .filter-bar {
    padding: var(--sp-4) var(--sp-12);
  }
}

.filter-bar__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-navy);
  flex-shrink: 0;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 2px solid rgba(91, 45, 142, 0.2);
  background: transparent;
  color: var(--clr-navy);
  cursor: pointer;
  min-height: 44px;
  font-family: var(--ff-sans);
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast);
}
.filter-btn:focus-visible {
  outline: 3px solid var(--clr-orange);
  outline-offset: 2px;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--clr-purple);
  color: var(--clr-white);
  border-color: var(--clr-purple);
}

.filter-select {
  margin-left: auto;
  padding: 8px var(--sp-4);
  border: 1.5px solid rgba(91, 45, 142, 0.2);
  border-radius: var(--r-md);
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  color: var(--clr-navy);
  background: var(--clr-white);
  outline: none; /* removed in favour of :focus-visible below */
  cursor: pointer;
  min-height: 44px;
  width: 100%;
}
.filter-select:focus-visible {
  outline: 3px solid var(--clr-orange);
  outline-offset: 2px;
  border-color: var(--clr-purple);
}
@media (min-width: 600px) {
  .filter-select {
    width: auto;
  }
}

.props-list {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-8) var(--sp-5);
}
@media (min-width: 768px) {
  .props-list {
    padding: var(--sp-10) var(--sp-8);
  }
}
@media (min-width: 1024px) {
  .props-list {
    padding: var(--sp-12);
  }
}

/* ============================================================
   SINGLE PROPERTY PAGE
   ============================================================ */

.single-hero {
  position: relative;
  height: 45vh;
  min-height: 280px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .single-hero {
    height: 55vh;
    min-height: 380px;
  }
}
@media (min-width: 1024px) {
  .single-hero {
    height: 65vh;
    min-height: 460px;
  }
}

.single-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 42, 94, 0.92) 0%,
    rgba(30, 42, 94, 0.3) 60%,
    transparent 100%
  );
}
.single-hero__info {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: var(--sp-5);
  max-width: calc(var(--max-w) + 96px);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .single-hero__info {
    padding: var(--sp-8);
  }
}
@media (min-width: 1024px) {
  .single-hero__info {
    padding: var(--sp-10) var(--sp-12);
  }
}

.single-hero__badge {
  display: inline-block;
  background: var(--clr-orange);
  color: var(--clr-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-3);
}
.single-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--clr-white);
}
.single-hero__price {
  font-family: var(--ff-serif);
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--clr-orange);
  margin: var(--sp-2) 0;
}
.single-hero__loc {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-base);
}

/* ── Property body ── */
.single-body {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-8) var(--sp-5);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 768px) {
  .single-body {
    padding: var(--sp-10) var(--sp-8);
  }
}
@media (min-width: 1024px) {
  .single-body {
    grid-template-columns: 1.5fr 1fr;
    gap: var(--sp-12);
    padding: var(--sp-12);
  }
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
@media (min-width: 768px) {
  .detail-specs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.detail-spec {
  background: var(--clr-lavender);
  padding: var(--sp-5);
  border-radius: 10px;
  text-align: center;
}
.detail-spec__val {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--clr-navy);
  font-family: var(--ff-serif);
}
.detail-spec__label {
  font-size: var(--fs-xs);
  color: var(--clr-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--sp-1);
}

.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
@media (min-width: 600px) {
  .features-list {
    grid-template-columns: 1fr 1fr;
  }
}

.feat-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 11px var(--sp-4);
  background: var(--clr-lavender);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--clr-navy);
}
.feat-item::before {
  content: "✓";
  background: var(--clr-purple);
  color: var(--clr-white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  flex-shrink: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-grid img:hover {
  transform: scale(1.03);
}

/* ── Sidebar ── */
.prop-sidebar {
  position: static;
}
@media (min-width: 1024px) {
  .prop-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + var(--sp-6));
  }
}

.sidebar-box {
  background: var(--clr-lavender);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
@media (min-width: 768px) {
  .sidebar-box {
    padding: var(--sp-8);
  }
}

.sidebar-box__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  color: var(--clr-navy);
  margin-bottom: var(--sp-4);
}
.sidebar-box__note {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-5);
}

.sidebar-tag {
  background: var(--clr-navy);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-top: var(--sp-4);
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: none;
  border: none;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--clr-purple);
  padding: 0;
  margin-bottom: var(--sp-6);
  cursor: pointer;
  min-height: 44px;
  transition: color var(--dur-fast);
}
.back-btn:hover {
  color: var(--clr-navy);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--sp-10) var(--sp-5);
}
@media (min-width: 768px) {
  .contact-layout {
    padding: var(--sp-16) var(--sp-8);
    gap: var(--sp-10);
  }
}
@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1.4fr;
    gap: var(--sp-16);
    padding: var(--sp-20) var(--sp-12);
  }
}

.contact-item {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.contact-item__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--clr-lavender);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-orange);
  margin-bottom: var(--sp-1);
}
.contact-item__value {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-navy);
  line-height: var(--lh-snug);
}
@media (min-width: 768px) {
  .contact-item__value {
    font-size: var(--fs-md);
  }
}

/* ── Form card ── */
.form-card {
  background: var(--clr-white);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: 0 8px 48px rgba(30, 42, 94, 0.1);
}
@media (min-width: 768px) {
  .form-card {
    padding: var(--sp-10);
  }
}

.form-card__title {
  font-family: var(--ff-serif);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  color: var(--clr-navy);
  margin-bottom: var(--sp-2);
}
.form-card__sub {
  font-size: var(--fs-base);
  margin-bottom: var(--sp-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: var(--sp-5);
}
.form-group label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-navy);
  margin-bottom: var(--sp-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px var(--sp-4);
  font-family: var(--ff-sans);
  /* 16px minimum prevents iOS zoom on focus */
  font-size: max(var(--fs-base), 16px);
  color: var(--clr-navy);
  border: 1.5px solid rgba(91, 45, 142, 0.15);
  border-radius: var(--r-md);
  background: var(--clr-lavender);
  outline: none;
  min-height: 44px;
  transition:
    border-color var(--dur-fast),
    background var(--dur-fast);
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-purple);
  background: var(--clr-white);
}

.form-submit {
  width: 100%;
  padding: 15px;
  background: var(--clr-purple);
  color: var(--clr-white);
  border: none;
  border-radius: var(--r-md);
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 48px;
  transition:
    background var(--dur-fast),
    transform var(--dur-fast);
}
.form-submit:hover {
  background: var(--clr-navy);
  transform: translateY(-1px);
}
.form-submit:active {
  transform: translateY(1px);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--clr-navy-dk);
  color: rgba(255, 255, 255, 0.6);
  padding-block: var(--sp-12) var(--sp-6);
}
@media (min-width: 768px) {
  .footer {
    padding-block: var(--sp-16) var(--sp-8);
  }
}
@media (min-width: 1024px) {
  .footer {
    padding-block: var(--sp-20) var(--sp-8);
  }
}

.footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 768px) {
  .footer__inner {
    padding-inline: var(--sp-8);
  }
}
@media (min-width: 1024px) {
  .footer__inner {
    padding-inline: var(--sp-12);
  }
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-10);
  }
}

.footer__brand-text {
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  margin-block: var(--sp-4) var(--sp-5);
}

.footer__socials {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.footer__social {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition:
    border-color var(--dur-fast),
    color var(--dur-fast);
}
.footer__social:hover {
  border-color: var(--clr-orange);
  color: var(--clr-orange);
}

.footer__col-title {
  color: var(--clr-white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.footer__col-link {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
  transition: color var(--dur-fast);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  padding: 0;
}
.footer__col-link:hover {
  color: var(--clr-orange);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: var(--sp-10);
  padding-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer__bottom p {
  font-size: var(--fs-xs);
}
.footer__legal {
  font-size: 0.6875rem;
}

/* ============================================================
   UTILITY / COMPONENT CLASSES
   Replace repeated inline styles throughout HTML.
   ============================================================ */

/* Body text paragraphs used in about/mission sections */
.body-para {
  font-size: 0.9375rem;
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-4);
}
.body-para:last-of-type {
  margin-bottom: 0;
}

/* Section sub-headings (single property page, contact) */
.section-h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  color: var(--clr-navy);
  margin-bottom: var(--sp-4);
}
.section-h3 {
  font-family: var(--ff-serif);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--clr-navy);
  margin-bottom: var(--sp-4);
}

/* Featured section header flex row */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.section-header-row .heading-xl {
  margin-bottom: 0;
}

/* Contact page info heading */
.contact-info-h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  color: var(--clr-navy);
  margin-bottom: var(--sp-7);
}

/* Map preview block */
.map-preview {
  margin-top: var(--sp-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.map-preview__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.map-preview__caption {
  background: var(--clr-lavender);
  padding: 14px 18px;
}
.map-preview__caption-title {
  font-weight: var(--fw-semibold);
  color: var(--clr-navy);
  font-size: var(--fs-base);
}
.map-preview__caption-sub {
  font-size: var(--fs-xs);
  color: var(--clr-body);
  margin-top: 2px;
}

/* Sidebar phone callout */
.sidebar-callout {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(91, 45, 142, 0.15);
  text-align: center;
}
.sidebar-callout__label {
  font-size: var(--fs-xs);
}
.sidebar-callout__phone {
  font-weight: var(--fw-bold);
  color: var(--clr-purple);
  font-size: 0.9375rem;
  margin-top: var(--sp-1);
}
.sidebar-callout__phone a {
  color: inherit;
  text-decoration: none;
}

/* Sidebar listed-by tag (inside .sidebar-tag) */
.sidebar-listed-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--sp-1);
}
.sidebar-listed-name {
  color: var(--clr-white);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
}
.sidebar-listed-sub {
  color: var(--clr-orange);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: var(--sp-1);
}

/* Footer brand block */
.footer__brand-logo {
  margin-bottom: var(--sp-1);
}
.footer__brand-img {
  height: 84px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* About / mission section values CTA row */
.about-cta {
  margin-top: var(--sp-8);
}

/* Misc spacing helpers used in-page */
.mt-2 {
  margin-top: var(--sp-2);
}
.mt-4 {
  margin-top: var(--sp-4);
}
.mt-6 {
  margin-top: var(--sp-6);
}
.mt-8 {
  margin-top: var(--sp-8);
}
.mt-10 {
  margin-top: var(--sp-10);
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-4 {
  margin-bottom: var(--sp-4);
}
.mb-8 {
  margin-bottom: var(--sp-8);
}
.mb-10 {
  margin-bottom: var(--sp-10);
}

/* Office image in about page */
.office-img {
  margin-top: var(--sp-6);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.office-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Services concierge image */
.concierge-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* Footer services list items (non-interactive) */
.footer__col-text {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-3);
}

/* Form required asterisk */
.required-mark {
  color: #e53e3e;
}
