/* ============================================================
   MERIDIAN PROPERTY GROUP — Demo Real Estate Website
   Palette: Deep Navy #031335 / Porcelain #f4f0eb / Steel #55687d
   Type: Raleway (single family, weight axis)
   ============================================================ */

:root {
  --navy: #031335;
  --navy-2: #0a2149;
  --navy-3: #14315f;
  --paper: #f4f0eb;
  --paper-2: #ece7df;
  --white: #ffffff;
  --accent: #55687d;
  --accent-2: #46586b;
  --accent-soft: rgba(85, 104, 125, 0.13);
  --steel-light: #a9c1dc;
  --text: #26313d;
  --muted: #5d6673;
  --line: rgba(3, 19, 53, 0.12);
  --line-dark: rgba(244, 240, 235, 0.12);
  --paper-dim: rgba(244, 240, 235, 0.72);
  --paper-faint: rgba(244, 240, 235, 0.55);
  --shadow-sm: 0 2px 10px rgba(3, 19, 53, 0.06);
  --shadow-md: 0 12px 40px rgba(3, 19, 53, 0.12);
  --shadow-lg: 0 24px 70px rgba(3, 19, 53, 0.2);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Raleway", "Segoe UI", -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --header-h: 78px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
::selection { background: var(--navy); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-weight: 500;
  color: var(--navy);
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 400; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }

h1 em, h2 em { font-style: italic; font-weight: 300; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1.5px;
  background: var(--accent);
}

.lede { color: var(--muted); font-size: 1.06rem; max-width: 58ch; text-wrap: pretty; }

.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }

.btn-primary { background: var(--navy); color: var(--paper); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-light { background: var(--paper); color: var(--navy); }
.btn-whatsapp { background: #1faa59; color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(4px); }
  .btn-primary:hover { background: var(--navy-3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .btn-accent:hover { background: var(--accent-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
  .btn-light:hover { background: var(--white); box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .btn-whatsapp:hover { background: #178f4a; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), color 0.25s;
}
.link-arrow:hover { gap: 14px; color: var(--accent-2); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s;
}
.site-header.scrolled {
  background: rgba(244, 240, 235, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--navy);
  display: grid;
  place-items: center;
  color: var(--steel-light);
  flex-shrink: 0;
}
.logo span em { font-style: normal; color: var(--accent-2); }

/* header on dark hero */
.header-on-dark:not(.scrolled) .logo,
.header-on-dark:not(.scrolled) .nav-links a { color: var(--paper); }
.header-on-dark:not(.scrolled) .logo-mark { background: rgba(244, 240, 235, 0.1); color: var(--paper); }
.header-on-dark:not(.scrolled) .nav-cta.btn-ghost { color: var(--paper); border-color: rgba(244, 240, 235, 0.35); }
.header-on-dark:not(.scrolled) .nav-cta.btn-ghost:hover { border-color: var(--paper); }
.header-on-dark:not(.scrolled) .nav-toggle span { background: var(--paper); }

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--steel-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { padding: 11px 24px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.open span { background: var(--paper); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 105;
  background:
    radial-gradient(85% 60% at 85% 8%, rgba(43, 89, 195, 0.3), transparent 65%),
    var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  clip-path: circle(0% at calc(100% - 44px) 40px);
  transition: clip-path 0.6s var(--ease-io);
  visibility: hidden;
}
.mobile-drawer.open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
.mobile-drawer a {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--paper);
  padding: 15px 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s, transform 0.5s var(--ease), color 0.25s;
}
.mobile-drawer.open a { opacity: 1; transform: translateY(0); }
.mobile-drawer a:hover, .mobile-drawer a.active { color: var(--steel-light); }
.mobile-drawer a small { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; color: var(--steel-light); opacity: 0.7; }
.mobile-drawer .drawer-foot { margin-top: 34px; color: var(--paper-faint); font-size: 0.9rem; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 10s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 70% at 78% 10%, rgba(43, 89, 195, 0.32), transparent 65%),
    linear-gradient(to top, rgba(3, 19, 53, 0.96) 0%, rgba(3, 19, 53, 0.66) 45%, rgba(3, 19, 53, 0.55) 100%);
}
.hero .container { padding-bottom: clamp(48px, 7vh, 90px); padding-top: 140px; }

.hero h1 { color: var(--paper); font-weight: 300; max-width: 17ch; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--steel-light); }
.hero .lede { color: var(--paper-dim); margin-top: 22px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(244, 240, 235, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 26px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--steel-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(169, 193, 220, 0.55); }
  60% { box-shadow: 0 0 0 9px rgba(169, 193, 220, 0); }
}

/* Search bar */
.search-bar {
  margin-top: 44px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}
.search-field {
  padding: 10px 18px;
  border-right: 1px solid var(--line);
}
.search-field:nth-child(3) { border-right: none; }
.search-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 3px;
}
.search-field select {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23031335' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.search-bar .btn { justify-content: center; }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: clamp(28px, 6vw, 70px);
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 400;
  color: var(--paper);
  display: block;
  line-height: 1.1;
}
.hero-stats .stat strong i { font-style: normal; color: var(--steel-light); }
.hero-stats .stat strong span { font-size: inherit; color: inherit; }
.hero-stats .stat > span { color: var(--paper-faint); font-size: 0.88rem; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(244, 240, 235, 0.08);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 60px;
  opacity: 0.75;
}
.marquee-track span::after { content: "✦"; color: var(--steel-light); font-size: 0.75rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Property cards ---------- */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.prop-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.prop-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .prop-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
  .prop-card:hover .prop-media img { transform: scale(1.06); }
}
.prop-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(244, 240, 235, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 100px;
}
.prop-tag.featured { background: var(--navy); color: var(--paper); }
.prop-price-chip {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(3, 19, 53, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--paper);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 100px;
}

.prop-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prop-body h3 { font-size: 1.22rem; }
.prop-loc {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
}
.prop-loc svg { color: var(--accent); flex-shrink: 0; }
.prop-specs {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.prop-specs span { display: inline-flex; align-items: center; gap: 7px; }
.prop-specs svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.chip {
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--navy); transform: translateY(-1px); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--paper); }

.filter-selects { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-selects select {
  padding: 12px 38px 12px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23031335' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  appearance: none;
  outline: none;
  transition: border-color 0.25s;
}
.filter-selects select:focus { border-color: var(--accent); }
.results-count { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.results-count strong { color: var(--navy); }

.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  display: none;
}
.no-results .display { font-size: 1.6rem; margin-bottom: 8px; }

/* ---------- Dark feature band ---------- */
.dark-band {
  background:
    radial-gradient(70% 90% at 80% 0%, rgba(43, 89, 195, 0.28), transparent 65%),
    var(--navy);
  color: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dark-band h2, .dark-band h3 { color: var(--paper); }
.dark-band .lede { color: var(--paper-dim); }

/* ---------- Services cards ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: auto auto -60px -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
  .svc-card:hover::before { transform: scale(2.6); }
  .svc-card:hover .svc-icon { transform: rotate(-6deg) scale(1.06); }
}
.svc-card > * { position: relative; }
.svc-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--steel-light);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: transform 0.35s var(--ease);
}
.svc-card h3 { margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 0.95rem; }
.svc-card .num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.75;
}

/* ---------- Split feature ---------- */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split-feature .img-stack { position: relative; }
.split-feature .img-stack .main-img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.float-card {
  position: absolute;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floaty 5s ease-in-out infinite;
}
.float-card.tl { top: 26px; left: -28px; }
.float-card.br { bottom: 34px; right: -24px; animation-delay: 2.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-card .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float-card strong { font-size: 1.12rem; font-weight: 600; color: var(--navy); display: block; line-height: 1.2; }
.float-card span { font-size: 0.8rem; color: var(--muted); }

.check-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-weight: 600; color: var(--navy-2); }
.check-list .tick {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: clamp(44px, 6vw, 70px) clamp(24px, 5vw, 70px);
}
.stats-band .stat { text-align: center; position: relative; }
.stats-band .stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  height: 56px;
  width: 1px;
  background: rgba(244, 240, 235, 0.15);
}
.stats-band strong {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 300;
  color: var(--paper);
  display: block;
  line-height: 1.1;
}
.stats-band strong i { font-style: normal; color: var(--steel-light); }
.stats-band strong span { font-size: inherit; color: inherit; }
.stats-band .stat > span { color: var(--paper-faint); font-size: 0.9rem; }

/* ---------- Testimonials ---------- */
.testi-wrap { position: relative; }
.testi-viewport { overflow: hidden; }
.testi-track {
  display: flex;
  transition: transform 0.55s var(--ease);
}
.testi-slide { flex: 0 0 100%; padding: 4px; }
.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 60px);
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.testi-card .stars { color: var(--accent); letter-spacing: 4px; font-size: 1rem; margin-bottom: 20px; }
.testi-card blockquote {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.5;
  font-style: italic;
  text-wrap: pretty;
}
.testi-person { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.testi-person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--steel-light); }
.testi-person strong { display: block; color: var(--navy); }
.testi-person span { font-size: 0.85rem; color: var(--muted); }

.testi-nav { display: flex; justify-content: center; gap: 12px; margin-top: 32px; align-items: center; }
.testi-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.testi-btn:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); transform: translateY(-2px); }
.testi-btn:active { transform: scale(0.94); transition-duration: 0.1s; }
.testi-dots { display: flex; gap: 8px; margin-inline: 10px; }
.testi-dots button {
  width: 8px; height: 8px;
  border-radius: 100px;
  background: var(--line);
  transition: width 0.3s var(--ease), background 0.3s;
}
.testi-dots button.active { width: 26px; background: var(--accent); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(56px, 8vw, 100px) clamp(28px, 6vw, 90px);
  color: var(--paper);
  isolation: isolate;
  text-align: center;
}
.cta-banner img.bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(43, 89, 195, 0.3), transparent 65%),
    linear-gradient(135deg, rgba(3, 19, 53, 0.94), rgba(10, 33, 73, 0.82));
}
.cta-banner h2 { color: var(--paper); font-weight: 300; max-width: 24ch; margin-inline: auto; }
.cta-banner h2 em { color: var(--steel-light); }
.cta-banner p { color: var(--paper-dim); margin: 18px auto 34px; max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-accent { background: var(--paper); color: var(--navy); }
.cta-banner .btn-accent:hover { background: var(--white); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(50% 90% at 85% 0%, rgba(43, 89, 195, 0.32), transparent 65%),
    var(--navy);
  color: var(--paper);
  padding: calc(var(--header-h) + clamp(50px, 8vw, 90px)) 0 clamp(50px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--paper); font-weight: 300; font-size: clamp(2.3rem, 5vw, 3.7rem); }
.page-hero h1 em { color: var(--steel-light); }
.page-hero .lede { color: var(--paper-dim); margin-top: 16px; }
.crumbs {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 22px;
  font-weight: 600;
}
.crumbs a:hover { color: var(--steel-light); }
.crumbs .sep { color: var(--steel-light); }

/* ---------- Property detail ---------- */
.gallery { display: grid; grid-template-columns: 2.2fr 1fr; gap: 14px; }
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s; }
.gallery-thumbs { display: grid; gap: 14px; grid-template-rows: repeat(3, 1fr); }
.gallery-thumbs button {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 2.5px solid transparent;
  transition: border-color 0.25s, transform 0.25s var(--ease);
  padding: 0;
}
.gallery-thumbs button:hover { transform: scale(1.02); }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 40px;
  margin-top: 50px;
  align-items: start;
}
.detail-main h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.detail-price {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--accent-2);
}
.spec-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0;
}
.spec-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.spec-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.spec-tile svg { color: var(--accent); margin-bottom: 8px; }
.spec-tile strong { display: block; color: var(--navy); font-size: 1.05rem; }
.spec-tile span { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.amenities li { list-style: none; display: flex; gap: 10px; align-items: center; color: var(--navy-2); font-weight: 600; font-size: 0.95rem; }
.amenities .tick { color: var(--accent-2); }

.agent-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.agent-card .agent-top { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.agent-card .agent-top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--steel-light); }
.agent-card .agent-top strong { display: block; color: var(--navy); font-size: 1.08rem; }
.agent-card .agent-top span { font-size: 0.85rem; color: var(--muted); }
.agent-card .btn { width: 100%; justify-content: center; margin-top: 10px; }

/* Mortgage calculator */
.calc {
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(43, 89, 195, 0.3), transparent 65%),
    var(--navy);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  margin-top: 44px;
}
.calc h3 { color: var(--paper); font-size: 1.45rem; margin-bottom: 6px; }
.calc p.small { color: var(--paper-faint); font-size: 0.9rem; margin-bottom: 26px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.calc-field { margin-bottom: 22px; }
.calc-field label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 10px;
}
.calc-field label output { color: var(--steel-light); font-size: 0.95rem; }
.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--steel-light);
  height: 5px;
  cursor: pointer;
}
.calc-result {
  background: rgba(244, 240, 235, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
}
.calc-result span { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--paper-faint); }
.calc-result strong {
  display: block;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 300;
  color: var(--steel-light);
  margin: 8px 0 4px;
}
.calc-result em { font-style: normal; font-size: 0.85rem; color: var(--paper-faint); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-card .ph {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
  margin-bottom: 16px;
  position: relative;
}
.team-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); filter: saturate(0.9); }
.team-card .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 19, 53, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
@media (hover: hover) and (pointer: fine) {
  .team-card:hover .ph img { transform: scale(1.06); }
  .team-card:hover .ph::after { opacity: 1; }
}
.team-card strong { font-size: 1.1rem; font-weight: 600; color: var(--navy); display: block; }
.team-card span { color: var(--muted); font-size: 0.88rem; }

/* ---------- Values / process ---------- */
.value-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  transition: padding-left 0.35s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .value-row:hover { padding-left: 12px; }
}
.value-row .idx {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.4;
  min-width: 60px;
}
.value-row h3 { margin-bottom: 6px; }
.value-row p { color: var(--muted); max-width: 62ch; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.faq-item.open { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  text-align: left;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
}
.faq-q .plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s;
}
.faq-item.open .plus { transform: rotate(45deg); background: var(--navy); color: var(--steel-light); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq-a p { padding: 0 26px 24px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-info-card {
  background:
    radial-gradient(70% 60% at 90% 100%, rgba(43, 89, 195, 0.3), transparent 65%),
    var(--navy);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.contact-info-card h3 { color: var(--paper); font-size: 1.55rem; margin-bottom: 10px; }
.contact-info-card > p { color: var(--paper-dim); margin-bottom: 30px; }
.contact-line { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; position: relative; z-index: 1; }
.contact-line .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(244, 240, 235, 0.08);
  color: var(--steel-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-line strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--paper-faint); }
.contact-line a, .contact-line p { color: var(--paper); font-weight: 600; }
.contact-line a:hover { color: var(--steel-light); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-2);
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--navy);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-note { font-size: 0.83rem; color: var(--muted); margin-top: 14px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 90px);
  background: var(--navy);
  color: var(--paper);
  padding: 16px 28px;
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  z-index: 200;
  transition: transform 0.5s var(--ease);
  max-width: calc(100vw - 40px);
}
.toast.show { transform: translate(-50%, 0); }
.toast .tick { color: var(--steel-light); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(60% 50% at 10% 0%, rgba(43, 89, 195, 0.18), transparent 60%),
    var(--navy);
  color: var(--paper-dim);
  padding: clamp(60px, 8vw, 90px) 0 0;
  margin-top: clamp(70px, 9vw, 120px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 54px;
}
.site-footer .logo { color: var(--paper); margin-bottom: 18px; }
.site-footer .logo-mark { background: rgba(244, 240, 235, 0.1); color: var(--paper); }
.footer-grid h4 {
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}
.footer-grid ul { list-style: none; display: grid; gap: 11px; }
.footer-grid a { transition: color 0.2s, padding-left 0.25s var(--ease); }
.footer-grid a:hover { color: var(--steel-light); padding-left: 5px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(244, 240, 235, 0.2);
  display: grid;
  place-items: center;
  color: var(--paper);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.footer-social a:hover { background: var(--paper); border-color: var(--paper); color: var(--navy); transform: translateY(-3px); padding-left: 0; }

.newsletter { display: flex; margin-top: 4px; background: rgba(244, 240, 235, 0.07); border: 1px solid rgba(244, 240, 235, 0.15); border-radius: 100px; padding: 5px; }
.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--paper);
  padding: 10px 18px;
  min-width: 0;
}
.newsletter input::placeholder { color: rgba(244, 240, 235, 0.45); }
.newsletter button {
  background: var(--paper);
  color: var(--navy);
  border-radius: 100px;
  padding: 10px 22px;
  font-weight: 700;
  transition: background 0.25s, transform 0.2s var(--ease);
  flex-shrink: 0;
}
.newsletter button:hover { background: var(--white); }
.newsletter button:active { transform: scale(0.96); }

.footer-bottom {
  border-top: 1px solid rgba(244, 240, 235, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(244, 240, 235, 0.5);
}
.footer-bottom a:hover { color: var(--steel-light); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1faa59;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(31, 170, 89, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  animation: waIn 0.7s var(--ease) 1.4s backwards;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 40px rgba(31, 170, 89, 0.5); }
.wa-float:active { transform: scale(0.96); transition-duration: 0.1s; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #1faa59;
  animation: waPing 2.4s ease-out infinite;
}
@keyframes waPing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.65); opacity: 0; }
}
@keyframes waIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.wa-tooltip {
  position: fixed;
  bottom: 40px;
  right: 98px;
  z-index: 90;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.wa-float:hover ~ .wa-tooltip, .wa-tooltip.show { opacity: 1; transform: translateX(0); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--paper);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease), background 0.25s, color 0.25s;
  box-shadow: var(--shadow-md);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); color: var(--white); }
.to-top:active { transform: scale(0.94); transition-duration: 0.1s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg img { transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1020px) {
  .props-grid, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-field { border-right: none; border-bottom: 1px solid var(--line); }
  .search-bar .btn { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .agent-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stats-band .stat:nth-child(2)::after { display: none; }
}

@media (max-width: 860px) {
  .nav-links, .site-header .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .split-feature, .contact-grid, .calc-grid { grid-template-columns: 1fr; }
  .split-feature .img-stack { order: -1; }
  .float-card { padding: 14px 18px; }
  .float-card.tl { left: 10px; }
  .float-card.br { right: 10px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .gallery-thumbs button { aspect-ratio: 4 / 3; }
  .spec-tiles { grid-template-columns: repeat(2, 1fr); }
  .amenities { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { width: min(1180px, 100% - 36px); }
  .props-grid, .svc-grid, .team-grid { grid-template-columns: 1fr; }
  .props-grid { gap: 20px; }
  .search-bar { grid-template-columns: 1fr; padding: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .hero .container { padding-top: 120px; }
  .hero-stats { gap: 22px 28px; margin-top: 38px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .value-row { grid-template-columns: 1fr; gap: 8px; }
  .value-row .idx { min-width: 0; }
  .filter-selects select { flex: 1; min-width: 0; }
  .testi-card { border-radius: var(--radius); }
  .cta-banner { border-radius: var(--radius); }
  .wa-float { width: 54px; height: 54px; bottom: 20px; right: 20px; }
  .to-top { width: 44px; height: 44px; bottom: 20px; left: 20px; }
  .wa-tooltip { display: none; }
}

@media (max-width: 380px) {
  h1 { font-size: 2.2rem; }
  .btn { padding: 14px 24px; }
}
