/* =========================================================
   Sterling Prime Properties L.L.C — Design System
   Premium / Luxury Dubai Real Estate Brokerage
   ========================================================= */

:root {
  /* Palette */
  --navy: #0A1828;
  --navy-2: #0E1E32;
  --navy-3: #14283E;
  --ink: #0E0E10;
  --cream: #F7F3EA;
  --cream-2: #EFE9D8;
  --gold: #C9A961;
  --gold-light: #E0C684;
  --gold-dark: #A88944;
  --muted: #8A8F98;
  --line: rgba(255,255,255,0.08);
  --line-dark: rgba(10,24,40,0.10);

  /* Type */
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Spacing */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Effects */
  --shadow-card: 0 12px 40px rgba(10, 24, 40, 0.10), 0 2px 8px rgba(10, 24, 40, 0.04);
  --shadow-card-hover: 0 24px 60px rgba(10, 24, 40, 0.18), 0 4px 12px rgba(10, 24, 40, 0.06);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;

  /* Luxury fallback pattern — shown beneath any photo, visible only if the photo fails to load.
     Subtle gold dot grid + diagonal stripes on navy, so missing images degrade gracefully
     to a textured premium surface rather than a flat block. */
  --pattern-luxury:
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect width='80' height='80' fill='%230A1828'/%3E%3Cpath d='M0 80L80 0' stroke='%23C9A961' stroke-width='0.6' opacity='0.08'/%3E%3Cpath d='M-20 60L60 -20' stroke='%23C9A961' stroke-width='0.6' opacity='0.06'/%3E%3Ccircle cx='40' cy='40' r='1.2' fill='%23C9A961' opacity='0.22'/%3E%3Ccircle cx='0' cy='0' r='1.2' fill='%23C9A961' opacity='0.16'/%3E%3Ccircle cx='80' cy='0' r='1.2' fill='%23C9A961' opacity='0.16'/%3E%3Ccircle cx='0' cy='80' r='1.2' fill='%23C9A961' opacity='0.16'/%3E%3Ccircle cx='80' cy='80' r='1.2' fill='%23C9A961' opacity='0.16'/%3E%3C/svg%3E") center / 80px 80px repeat;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ====== Layout ====== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(60px, 9vw, 120px) 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 720px;
}
.section-title em { font-style: italic; color: var(--gold-dark); font-weight: 400; }
.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 48px;
}

/* On dark sections */
.is-dark .section-title { color: var(--cream); }
.is-dark .section-subtitle { color: rgba(247, 243, 234, 0.65); }

/* ====== Top Bar ====== */
.topbar {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  gap: 20px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar a { color: var(--cream); opacity: 0.8; }
.topbar a:hover { color: var(--gold-light); opacity: 1; }
.topbar-flag { font-size: 14px; }
.topbar-rera {
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 12px;
}
@media (max-width: 720px) {
  .topbar-left .topbar-hide { display: none; }
}

/* ====== Header / Nav ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.is-transparent {
  background: linear-gradient(to bottom, rgba(10,24,40,0.55), rgba(10,24,40,0));
  border-bottom-color: transparent;
}
.site-header.is-transparent .nav-link,
.site-header.is-transparent .brand-name { color: var(--cream); }
.site-header.is-scrolled {
  background: rgba(247, 243, 234, 0.98);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img { width: 70%; height: 70%; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.05;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold-dark);
  margin-top: 2px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--gold-dark); }
.site-header.is-transparent .nav-link.is-active { color: var(--gold-light); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--ink);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.site-header.is-transparent .nav-toggle span,
.site-header.is-transparent .nav-toggle span::before,
.site-header.is-transparent .nav-toggle span::after { background: var(--cream); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed;
    top: 78px;
    right: 0;
    bottom: 0;
    height: calc(100vh - 78px);
    height: calc(100dvh - 78px);
    width: min(340px, 100%);
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 28px 24px 40px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.5,.1,.25,1);
    border-left: 1px solid var(--line);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    pointer-events: none;
    box-shadow: -16px 0 40px rgba(0,0,0,0.35);
  }
  .nav-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-menu .nav-link {
    color: var(--cream);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    letter-spacing: 0.04em;
    width: 100%;
    display: block;
  }
  .nav-menu .nav-link::after { display: none; }
  .nav-menu .nav-cta {
    margin-top: 24px;
    align-self: stretch;
    text-align: center;
    justify-content: center;
  }
  /* Force solid navy bg even when the header is transparent on the hero */
  .site-header.is-transparent .nav-menu {
    background: var(--navy);
  }
  /* When drawer open, dim the rest of the page behind it */
  .nav-menu.is-open::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    right: min(340px, 100%);
    bottom: 0;
    background: rgba(10, 24, 40, 0.55);
    backdrop-filter: blur(2px);
    z-index: -1;
    pointer-events: none;
  }
  /* On mobile the redundant trust bar duplicates the hero stats — hide it */
  .trust-bar { display: none; }
  /* Tighten hero stats grid on mobile so it fits cleanly */
  .hero-stats { padding: 14px 0; }
  .hero-stats-grid { gap: 12px 16px; }
  .hero-stat strong { font-size: 16px; }
  .hero-stat span { font-size: 10px; letter-spacing: 0.18em; }
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all .25s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,169,97,.25); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247,243,234,0.4);
}
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-sm { padding: 11px 20px; font-size: 12px; }
.btn-arrow::after {
  content: '\2192';
  font-size: 16px;
  letter-spacing: 0;
}

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 92vh;
  margin-top: -78px; /* slide up under transparent header */
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10,24,40,0.40) 0%, rgba(10,24,40,0.50) 55%, rgba(10,24,40,0.88) 100%),
    url('../images/sterling-hero.jpg') center / cover no-repeat,
    var(--pattern-luxury),
    var(--navy);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(201,169,97,0.12), transparent 60%);
}
.hero-content {
  padding: 140px 0 80px;
  max-width: 880px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}
.hero p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(247,243,234,0.85);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

/* Hero search bar */
.hero-search {
  background: rgba(247,243,234,0.97);
  backdrop-filter: blur(8px);
  padding: 12px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 4px;
  align-items: center;
  max-width: 880px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.hero-search-field {
  padding: 10px 16px;
  border-right: 1px solid rgba(10,24,40,0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-search-field:last-of-type { border-right: 0; }
.hero-search-field label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-search-field select,
.hero-search-field input {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  padding: 0;
}
.hero-search .btn {
  height: 100%;
  padding: 14px 24px;
}
@media (max-width: 780px) {
  .hero-search { grid-template-columns: 1fr 1fr; }
  .hero-search-field:nth-child(2) { border-right: 0; }
  .hero-search .btn { grid-column: 1 / -1; }
}

/* Hero stats strip */
.hero-stats {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  background: rgba(14, 30, 50, 0.85);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hero-stat { color: var(--cream); }
.hero-stat strong {
  font-family: var(--font-display);
  display: block;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--gold-light);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}
.hero-stat span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,243,234,0.65);
}
@media (max-width: 780px) {
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-stats { padding: 16px 0; }
  .hero { min-height: auto; padding-bottom: 0; }
}

/* ====== Page Headers (interior pages) ====== */
.page-header {
  background: var(--navy);
  color: var(--cream);
  padding: 160px 0 70px;
  margin-top: -78px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,24,40,0.7) 0%, rgba(10,24,40,0.9) 100%),
    var(--page-header-image, url('../images/sterling-hero.jpg')) center / cover no-repeat,
    var(--pattern-luxury);
  opacity: 1;
}
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  max-width: 800px;
}
.page-header h1 em { font-style: italic; color: var(--gold-light); }
.page-header p {
  font-size: 17px;
  color: rgba(247,243,234,0.75);
  max-width: 620px;
}
.breadcrumbs {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.breadcrumbs a { color: rgba(247,243,234,0.65); }
.breadcrumbs a:hover { color: var(--gold-light); }
.breadcrumbs .sep { margin: 0 10px; color: rgba(247,243,234,0.35); }

/* ====== Trust Bar ====== */
.trust-bar {
  background: var(--cream-2);
  padding: 28px 0;
  border-bottom: 1px solid rgba(10,24,40,0.05);
}
.trust-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.trust-item strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.trust-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
@media (max-width: 780px) {
  .trust-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ====== Featured Listings ====== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-head-text { max-width: 640px; }
.section-head .section-title { margin-bottom: 12px; }
.section-head .section-subtitle { margin-bottom: 0; }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.listing-card {
  background: #fff;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(10,24,40,0.04);
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.listing-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
}
.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.listing-card:hover .listing-image img { transform: scale(1.06); }
.listing-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  padding: 6px 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.listing-tag.for-rent { background: var(--navy); color: var(--cream); }
.listing-tag.off-plan { background: var(--cream); color: var(--ink); }
.listing-fav {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(247,243,234,0.92);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 16px;
  transition: all .2s ease;
}
.listing-fav:hover { background: var(--gold); color: var(--ink); }

.listing-body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.listing-location {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.listing-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.listing-title a:hover { color: var(--gold-dark); }
.listing-meta {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  padding-top: 8px;
  border-top: 1px solid rgba(10,24,40,0.06);
}
.listing-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.listing-meta strong { color: var(--ink); font-weight: 600; }

.listing-price {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(10,24,40,0.06);
}
.listing-price-aed {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--navy);
}
.listing-price-aed small {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 4px;
}
.listing-price-rent {
  font-size: 12px;
  color: var(--muted);
}

/* ====== Value Pillars ====== */
.is-dark { background: var(--navy); color: var(--cream); }
.is-dark .section-eyebrow { color: var(--gold-light); }
.is-dark .section-eyebrow::before { background: var(--gold-light); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 48px 36px;
  border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: 0; }
.pillar-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  display: block;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.18;
  color: var(--cream);
  margin-bottom: 16px;
}
.pillar p {
  font-size: 15px;
  color: rgba(247,243,234,0.7);
  line-height: 1.7;
}
@media (max-width: 880px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 36px 0; }
}

/* ====== Communities ====== */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}
.community {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  cursor: pointer;
  transition: transform .3s ease;
}
.community::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--community-img) center / cover no-repeat, var(--pattern-luxury), var(--navy);
  transition: transform .8s ease;
}
.community::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,24,40,0.1) 30%, rgba(10,24,40,0.85) 100%);
}
.community:hover::before { transform: scale(1.08); }
.community-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.community-count {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-top: 6px;
}
.community-1 { grid-column: span 4; grid-row: span 2; }
.community-2 { grid-column: span 2; }
.community-3 { grid-column: span 2; }
.community-4 { grid-column: span 2; }
.community-5 { grid-column: span 2; }
.community-6 { grid-column: span 2; }

@media (max-width: 980px) {
  .communities-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .community-1 { grid-column: span 2; grid-row: span 1; }
  .community-2, .community-3, .community-4, .community-5, .community-6 { grid-column: span 1; }
}

/* ====== Services teaser ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid rgba(10,24,40,0.06);
  transition: all .3s ease;
}
.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.service-icon {
  width: 48px; height: 48px;
  background: var(--cream-2);
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  margin-bottom: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-card .link-arrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.service-card .link-arrow::after { content: ' \2192'; }
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ====== Founder section ====== */
.founder {
  background: var(--cream-2);
}
.founder-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}
.founder-image {
  aspect-ratio: 4/5;
  background:
    url('../images/arfan-ahmed.jpg') center top / cover no-repeat,
    var(--pattern-luxury),
    var(--navy);
  position: relative;
  box-shadow: 0 24px 60px rgba(10,24,40,0.18);
}
.founder-image::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  right: 60px;
  bottom: 60px;
  border: 2px solid var(--gold);
  z-index: -1;
}
.founder-image::after {
  content: 'A. A.';
  position: absolute;
  bottom: -20px;
  right: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 44px;
  color: var(--gold-dark);
  background: var(--cream-2);
  padding: 6px 16px;
  letter-spacing: 0.04em;
}
.founder-text blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
  color: var(--navy);
  margin: 16px 0 28px;
  border-left: 2px solid var(--gold);
  padding-left: 24px;
}
.founder-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold-dark);
  margin-bottom: 4px;
}
.founder-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 880px) {
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-image { max-width: 320px; }
}

/* ====== Developer / Partner Strip ====== */
.partners {
  padding: 70px 0;
  background: var(--cream);
  border-top: 1px solid rgba(10,24,40,0.06);
  border-bottom: 1px solid rgba(10,24,40,0.06);
}
.partners-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px 60px;
}
.partners-row span {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--navy);
  opacity: 0.55;
  letter-spacing: 0.04em;
  transition: opacity .25s ease;
}
.partners-row span:hover { opacity: 1; }
@media (max-width: 780px) {
  .partners-row { gap: 24px 40px; }
  .partners-row span { font-size: 18px; }
}

/* ====== CTA Strip ====== */
.cta-strip {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(201,169,97,0.18), transparent 55%),
    url('https://images.unsplash.com/photo-1546412414-e1885259563a?auto=format&fit=crop&w=2000&q=80') center / cover no-repeat;
  opacity: 0.18;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: center;
}
.cta-grid h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 16px;
}
.cta-grid h2 em { color: var(--gold-light); font-style: italic; }
.cta-grid p { color: rgba(247,243,234,0.7); font-size: 16px; max-width: 520px; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 880px) {
  .cta-grid { grid-template-columns: 1fr; }
}

/* ====== Footer ====== */
.site-footer {
  background: var(--ink);
  color: rgba(247,243,234,0.75);
  padding: 80px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.footer-brand .brand-mark { background: var(--cream); }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand .brand-name small { color: var(--gold-light); }
.footer-blurb {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 360px;
}
.footer-regulatory {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: rgba(247,243,234,0.55);
  line-height: 1.5;
}
.footer-regulatory strong { color: var(--gold-light); font-weight: 500; letter-spacing: 0.05em; }
.footer h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer a { color: rgba(247,243,234,0.7); }
.footer a:hover { color: var(--gold-light); }
.footer-contact { line-height: 1.8; }
.footer-contact strong { color: var(--cream); font-weight: 500; display: block; margin-bottom: 6px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 12px;
  color: rgba(247,243,234,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--gold-light); }
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: all .2s ease;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand-block { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ====== Listings page (filters + grid) ====== */
.listings-toolbar {
  padding: 28px 0;
  background: #fff;
  border-bottom: 1px solid rgba(10,24,40,0.08);
  position: sticky;
  top: 78px;
  z-index: 20;
}
.filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter-field select,
.filter-field input {
  height: 42px;
  border: 1px solid rgba(10,24,40,0.15);
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .2s ease;
}
.filter-field select:focus,
.filter-field input:focus { border-color: var(--gold); }
.filter-reset {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  padding: 12px 14px;
  text-align: right;
}
.filter-reset:hover { color: var(--ink); }
@media (max-width: 980px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filter-reset { grid-column: 1 / -1; text-align: left; padding: 8px 0; }
}

.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.results-meta strong { color: var(--ink); font-weight: 600; }
.results-meta select {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

.listings-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  padding-bottom: 100px;
}

.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 16px;
}

/* ====== Listing detail page ====== */
.detail-hero {
  position: relative;
  margin-top: -78px;
  padding-top: 78px;
  background: var(--ink);
}
.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 4px;
}
.detail-gallery > div {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
}
.detail-gallery > div:first-child { grid-row: span 2; }
@media (max-width: 880px) {
  .detail-gallery { grid-template-columns: 1fr 1fr; }
  .detail-gallery > div:first-child { grid-column: span 2; grid-row: auto; }
  .detail-gallery > div:nth-child(n+4) { display: none; }
}

.detail-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  padding: 70px 0 100px;
  align-items: start;
}
.detail-tag {
  display: inline-flex;
  padding: 6px 14px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.detail-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.detail-location {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted);
  margin-bottom: 28px;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 32px;
}
.detail-stat strong {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}
.detail-stat span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-section { margin-bottom: 40px; }
.detail-section h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
}
.detail-section p { color: rgba(14,14,16,0.78); line-height: 1.75; margin-bottom: 12px; }

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.features-list li {
  font-size: 14px;
  padding: 6px 0 6px 22px;
  position: relative;
  color: rgba(14,14,16,0.78);
}
.features-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.detail-side {
  position: sticky;
  top: 110px;
  background: var(--cream-2);
  padding: 32px;
  border-top: 3px solid var(--gold);
}
.detail-price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 4px;
}
.detail-price small { font-size: 14px; font-family: var(--font-body); color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; margin-left: 6px; }
.detail-price-monthly { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.detail-agent {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 0;
  border-top: 1px solid rgba(10,24,40,0.1);
  border-bottom: 1px solid rgba(10,24,40,0.1);
  margin-bottom: 24px;
}
.detail-agent-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
}
.detail-agent-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--navy);
  font-weight: 500;
}
.detail-agent-info span {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-side .btn { width: 100%; margin-bottom: 8px; }
.detail-call-row {
  display: flex; gap: 8px;
  margin-top: 14px;
}
.detail-call-row a {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(10,24,40,0.15);
  color: var(--ink);
  transition: all .2s ease;
}
.detail-call-row a:hover { border-color: var(--gold); color: var(--gold-dark); }

@media (max-width: 980px) {
  .detail-body { grid-template-columns: 1fr; gap: 40px; }
  .detail-side { position: static; }
}

/* ====== About page ====== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image {
  aspect-ratio: 4/5;
  background:
    linear-gradient(180deg, rgba(10,24,40,0) 60%, rgba(10,24,40,0.5) 100%),
    url('https://images.unsplash.com/photo-1518684079-3c830dcef090?auto=format&fit=crop&w=1200&q=80') center / cover no-repeat,
    var(--pattern-luxury),
    var(--navy);
}
.about-content h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.15; margin-bottom: 20px; }
.about-content p { font-size: 16px; line-height: 1.8; color: rgba(14,14,16,0.78); margin-bottom: 14px; }
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 60px;
}
.timeline-step {
  padding-top: 24px;
  border-top: 2px solid var(--gold);
}
.timeline-step .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 12px;
}
.timeline-step h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}
.timeline-step p { font-size: 14px; color: var(--muted); line-height: 1.7; }
@media (max-width: 880px) {
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
}

.credentials {
  background: var(--navy);
  color: var(--cream);
}
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-top: 1px solid var(--line);
}
.credential {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.credential:last-child { border-right: 0; }
.credential .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.credential .value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.credential .note { font-size: 13px; color: rgba(247,243,234,0.6); }
@media (max-width: 880px) {
  .credentials-grid { grid-template-columns: 1fr; }
  .credential { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ====== Services page ====== */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 70px 0;
  border-top: 1px solid rgba(10,24,40,0.08);
}
.service-block:nth-child(even) .service-block-image { order: 2; }
.service-block-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  background-image: var(--pattern-luxury);
}
.service-block-content h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.service-block-content h3 em { color: var(--gold-dark); font-style: italic; }
.service-block-content p { font-size: 16px; line-height: 1.8; color: rgba(14,14,16,0.78); margin-bottom: 12px; }
.service-block-content ul { margin: 16px 0 24px; }
.service-block-content ul li {
  font-size: 14px; color: rgba(14,14,16,0.8);
  padding: 6px 0 6px 22px;
  position: relative;
}
.service-block-content ul li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
}
@media (max-width: 880px) {
  .service-block { grid-template-columns: 1fr; gap: 32px; padding: 50px 0; }
  .service-block:nth-child(even) .service-block-image { order: 0; }
}

/* ====== Contact page ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.contact-info p { color: rgba(14,14,16,0.7); font-size: 16px; margin-bottom: 32px; line-height: 1.7; }
.contact-detail {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(10,24,40,0.08);
}
.contact-detail:last-of-type { border-bottom: 1px solid rgba(10,24,40,0.08); }
.contact-detail-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: var(--cream-2);
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
}
.contact-detail strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-detail-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}
.contact-detail-text a { color: var(--ink); }
.contact-detail-text a:hover { color: var(--gold-dark); }

.contact-form {
  background: var(--navy);
  color: var(--cream);
  padding: 48px 40px;
}
.contact-form h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.contact-form p { color: rgba(247,243,234,0.7); font-size: 14px; margin-bottom: 28px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row .form-field { margin-bottom: 0; }
.form-field label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(247,243,234,0.06);
  border: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
  border-radius: 0;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: rgba(247,243,234,0.1);
}
.form-field textarea { min-height: 120px; }
.form-field select option { background: var(--navy); }
.contact-form .btn { width: 100%; margin-top: 8px; }
.form-note {
  font-size: 12px;
  color: rgba(247,243,234,0.5);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 36px 28px; }
}

.map-strip {
  height: 380px;
  background: var(--navy);
  position: relative;
  isolation: isolate;
}
.map-strip iframe { width: 100%; height: 100%; border: 0; }

/* ====== Utility ====== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 720px) {
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}

/* =========================================================
   MOTION + LIVENESS PACKAGE
   - Scroll progress bar
   - Hero parallax + entrance choreography
   - 3D mouse-tilt on cards / tiles
   - Section scroll reveals (with stagger)
   - Marquee for partners strip
   - Shimmer on primary CTAs
   - Floating hero stats
   ========================================================= */

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold));
  z-index: 999;
  transition: width .12s ease-out;
  box-shadow: 0 0 12px rgba(201, 169, 97, 0.5);
  pointer-events: none;
}

/* ---- Hero parallax (JS sets --hero-y) ---- */
.hero-bg {
  transform: translate3d(0, var(--hero-y, 0), 0) scale(1.05);
  will-change: transform;
}

/* ---- Hero entrance choreography ---- */
.hero-eyebrow, .hero h1, .hero p, .hero-cta, .hero-search, .hero-stats {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-enter .9s cubic-bezier(.2, .8, .25, 1) forwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero h1     { animation-delay: 0.20s; }
.hero p      { animation-delay: 0.40s; }
.hero-cta    { animation-delay: 0.55s; }
.hero-search { animation-delay: 0.70s; }
.hero-stats  { animation-delay: 0.90s; }
@keyframes hero-enter {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Subtle float on hero stat blocks ---- */
.hero-stat strong {
  animation: hero-stat-float 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.4s);
}
.hero-stats-grid .hero-stat:nth-child(1) strong { --i: 0; }
.hero-stats-grid .hero-stat:nth-child(2) strong { --i: 1; }
.hero-stats-grid .hero-stat:nth-child(3) strong { --i: 2; }
.hero-stats-grid .hero-stat:nth-child(4) strong { --i: 3; }
@keyframes hero-stat-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ---- Section reveal (extended) ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(.2,.8,.25,1), transform .9s cubic-bezier(.2,.8,.25,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children of a .reveal-stagger container */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.8,.25,1), transform .8s cubic-bezier(.2,.8,.25,1);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 3D mouse-tilt foundation ---- */
.tilt-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform .35s cubic-bezier(.2,.8,.25,1), box-shadow .35s ease;
}
.tilt-3d > * { transform: translateZ(0); }
.listing-card,
.community,
.service-card,
.pillar,
.credential,
.timeline-step {
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.2,.8,.25,1), box-shadow .35s ease, border-color .35s ease;
}
/* When JS adds tilt CSS vars */
.listing-card.is-tilting,
.community.is-tilting,
.service-card.is-tilting {
  transform:
    perspective(1100px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(-6px)
    translateZ(0);
}

/* Subtle inner depth on listing image */
.listing-card .listing-image { transform: translateZ(0); transition: transform .6s ease; }
.listing-card.is-tilting .listing-image img { transform: scale(1.08); }

/* Service cards — animated icon */
.service-card .service-icon {
  transition: transform .4s cubic-bezier(.2,.8,.25,1), background .25s ease, color .25s ease;
}
.service-card:hover .service-icon {
  transform: rotate(-8deg) translateY(-3px);
  background: var(--gold);
  color: var(--ink);
}

/* Pillar — animated number lift */
.pillar { transition: transform .4s cubic-bezier(.2,.8,.25,1); }
.pillar:hover { transform: translateY(-6px); }
.pillar:hover .pillar-number { color: var(--gold); transform: translateX(4px); }
.pillar-number { transition: color .3s ease, transform .3s ease; display: inline-block; }

/* Timeline-step — accent line grow on hover */
.timeline-step { transition: transform .4s ease, border-color .3s ease; }
.timeline-step:hover { transform: translateY(-4px); border-top-color: var(--gold-light); }

/* Credential tile shimmer on hover */
.credential {
  position: relative;
  overflow: hidden;
  transition: transform .4s ease;
}
.credential::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 80%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.12), transparent);
  transition: left .8s ease;
}
.credential:hover::after { left: 120%; }

/* ---- Marquee for partners strip ---- */
.partners-row {
  --marquee-speed: 38s;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.partners-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 60px;
  padding-right: 60px;
  animation: marquee var(--marquee-speed) linear infinite;
  flex-shrink: 0;
}
.partners-track span {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--navy);
  opacity: 0.55;
  letter-spacing: 0.04em;
  transition: opacity .25s ease;
  white-space: nowrap;
}
.partners-track span:hover { opacity: 1; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 780px) {
  .partners-track { gap: 38px; padding-right: 38px; }
  .partners-track span { font-size: 18px; }
}

/* ---- Primary CTA shimmer ---- */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
  z-index: -1;
  animation: btn-shimmer 3.5s ease-in-out infinite;
}
@keyframes btn-shimmer {
  0%, 35%   { left: -120%; }
  55%, 100% { left: 130%; }
}
.btn-primary:hover::before { animation-play-state: paused; }

/* ---- Community tile hover depth ---- */
.community {
  transition: transform .5s cubic-bezier(.2,.8,.25,1), box-shadow .35s ease;
  transform-style: preserve-3d;
}
.community:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(10,24,40,0.18);
}

/* ---- Hero search bar lift on focus-within ---- */
.hero-search { transition: transform .35s ease, box-shadow .35s ease; }
.hero-search:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

/* ---- Smooth body fade-in on load ---- */
body { animation: body-fade-in .6s ease-out; }
@keyframes body-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Reduced motion support ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg { transform: none; }
  .scroll-progress { transition: none; }
  .partners-track { animation: none; }
}

/* =========================================================
   3D LOADING SPLASH (homepage first entry only)
   - Branded composite flies in: rotateY + rotateX + scale + blur
   - Gold progress bar fills over 3s
   - Subtle shine sweep across the card mid-animation
   - Whole splash fades out after 3s
   ========================================================= */

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  perspective: 1600px;
  overflow: hidden;
  transition: opacity .6s cubic-bezier(.5,.0,.5,1), visibility .6s linear;
  background:
    radial-gradient(ellipse at center, var(--navy-2) 0%, var(--ink) 75%);
}
.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Subtle animated background — moving gold glow */
.splash-bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,169,97,0.14), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(201,169,97,0.08), transparent 45%);
  animation: splash-bg-drift 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes splash-bg-drift {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.15) rotate(8deg); }
}

/* 3D stage */
.splash-stage {
  width: min(82vw, 1100px);
  transform-style: preserve-3d;
  position: relative;
  z-index: 1;
}

/* The card containing the branded composite */
.splash-card {
  position: relative;
  transform-style: preserve-3d;
  transform-origin: center center;
  animation: splash-enter 3s cubic-bezier(.2,.8,.25,1) forwards;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(201, 169, 97, 0.25),
    0 0 80px rgba(201, 169, 97, 0.15);
  background: var(--navy);
}

.splash-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Shine sweep across the card (timed to the middle of the entry animation) */
.splash-shine {
  position: absolute;
  top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  pointer-events: none;
  animation: splash-shine 3s cubic-bezier(.4,.0,.2,1) forwards;
  animation-delay: 0.4s;
}

@keyframes splash-enter {
  0% {
    opacity: 0;
    transform: scale(0.68) rotateY(-42deg) rotateX(14deg) translateZ(-200px);
    filter: blur(12px) brightness(0.4);
  }
  18% {
    opacity: 1;
    filter: blur(0) brightness(1);
  }
  60% {
    transform: scale(1) rotateY(0deg) rotateX(0deg) translateZ(0);
  }
  78% {
    transform: scale(1.02) rotateY(0deg) rotateX(0deg) translateZ(0);
  }
  100% {
    transform: scale(1.04) rotateY(0deg) rotateX(0deg) translateZ(0);
  }
}

@keyframes splash-shine {
  0%   { left: -150%; }
  35%  { left: -150%; }
  70%  { left: 150%; }
  100% { left: 150%; }
}

/* Meta block under the card (brand text + progress bar + skip hint) */
.splash-meta {
  position: absolute;
  bottom: 8%;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 1;
  animation: splash-meta-fade 1.2s ease-out 0.3s both;
}
@keyframes splash-meta-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.splash-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--gold-light);
  text-transform: uppercase;
}
.splash-progress {
  width: min(260px, 50vw);
  height: 2px;
  background: rgba(201, 169, 97, 0.18);
  overflow: hidden;
  border-radius: 1px;
}
.splash-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold));
  box-shadow: 0 0 12px rgba(201, 169, 97, 0.5);
  animation: splash-progress 3s linear forwards;
}
@keyframes splash-progress {
  to { width: 100%; }
}
.splash-hint {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.35);
  cursor: pointer;
}

@media (max-width: 720px) {
  .splash-stage { width: 90vw; }
  .splash-text { font-size: 11px; letter-spacing: 0.32em; }
  .splash-meta { bottom: 6%; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-card,
  .splash-shine,
  .splash-bg,
  .splash-progress-bar { animation: none; }
  .splash-card { opacity: 1; transform: scale(1); filter: none; }
  .splash-progress-bar { width: 100%; }
}

/* ====== Brand Banner (full-bleed branded composite) ====== */
.brand-banner {
  padding: 0;
  background: var(--ink);
  overflow: hidden;
  position: relative;
}
.brand-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.8,.25,1);
  /* tasteful subtle zoom on scroll-in */
}
.brand-banner:hover img { transform: scale(1.02); }
@media (max-width: 720px) {
  .brand-banner img {
    /* On mobile the wide composite would scale down too small to read.
       Use focal-crop so the centre branding remains prominent. */
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
  }
}

/* ====== Footer sister-company line ====== */
.footer-sister {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-sister-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 243, 234, 0.4);
  margin-bottom: 8px;
}
.footer-sister-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  border-bottom: 1px dotted rgba(201, 169, 97, 0.4);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.footer-sister-link:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}

/* ====== "Our Group" sister-company callout (About page) ====== */
.group-strip {
  background: var(--cream-2);
  padding: 70px 0;
  border-top: 1px solid rgba(10, 24, 40, 0.06);
  border-bottom: 1px solid rgba(10, 24, 40, 0.06);
}
.group-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.group-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 10px 0 10px;
}
.group-text h3 em { color: var(--gold-dark); font-style: italic; }
.group-text p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 660px;
  margin: 0;
}
@media (max-width: 780px) {
  .group-grid { grid-template-columns: 1fr; }
}

/* ====== Floating WhatsApp button ====== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #fff;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  opacity: 0.45;
  animation: wa-pulse 2.4s infinite ease-out;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.22);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (max-width: 560px) {
  .whatsapp-float { bottom: 16px; right: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; }
}

/* ====== Print ====== */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-search, .topbar, .whatsapp-float { display: none !important; }
  body { background: #fff; color: #000; }
}
