/* ==========================================================================
   RIDGELINE REALTY — STYLESHEET
   Palette: Navy blue + gold + white. Mobile-first, accessible.
   --------------------------------------------------------------------------
   CONTENTS
   01. Design tokens
   02. Reset & base
   03. Layout utilities
   04. Buttons, chips & links
   05. Section headers & scroll reveal
   06. Header / sticky navigation
   07. Hero + property search
   08. Featured listings (filter + sort)
   09. Services
   10. Why choose us + stats counters
   11. Meet the agents
   12. Mortgage / payment calculator
   13. Testimonials
   14. Contact form, office details & map
   15. Footer
   16. Floating WhatsApp button
   17. Accessibility & motion preferences
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Brand — navy */
  --navy-900: #061529;
  --navy-800: #0b2545;
  --navy-700: #123560;
  --navy-600: #1c4a80;
  --navy-500: #2a5f9e;

  /* Brand — gold */
  --gold-700: #7d6410;
  --gold-600: #a8861c;
  --gold-500: #c9a227;
  --gold-400: #dcb63f;
  --gold-200: #f3e4b3;
  --gold-050: #fbf6e6;

  /* Neutrals */
  --white: #ffffff;
  --mist: #f5f7fa;
  --mist-2: #eef2f7;
  --line: #e1e7ef;
  --slate: #5c6b7e;
  --slate-dark: #3d4b5c;
  --ink: #101c2b;

  /* Functional */
  --success: #146b3a;
  --success-bg: #e9f6ee;
  --danger: #b3261e;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;

  /* Type */
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* Spacing & shape */
  --gap: 1.5rem;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(11, 37, 69, 0.06);
  --shadow-sm: 0 4px 14px rgba(11, 37, 69, 0.07);
  --shadow-md: 0 14px 34px rgba(11, 37, 69, 0.11);
  --shadow-lg: 0 28px 60px rgba(6, 21, 41, 0.22);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layout */
  --header-height: 68px;
  --container: 1200px;
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.18;
  color: var(--navy-800);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.075rem;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--navy-600);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--gold-600);
}

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

img {
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

blockquote {
  margin: 0;
}

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

/* Line-style icons (default) */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Filled icons */
.stars .icon,
.social-list li:first-child .icon {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  padding: 0.7rem 1.1rem;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}


/* ==========================================================================
   03. LAYOUT UTILITIES
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.15rem;
}

@media (min-width: 700px) {
  .container {
    padding-inline: 1.75rem;
  }
}

.section {
  padding-block: 4rem;
}

@media (min-width: 900px) {
  .section {
    padding-block: 5.5rem;
  }
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.section-lede {
  color: var(--slate-dark);
  font-size: 1.03rem;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}

.eyebrow-light {
  color: var(--gold-400);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.25rem;
}


/* ==========================================================================
   04. BUTTONS, CHIPS & LINKS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.6rem 1.05rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.32);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-400);
  color: var(--navy-900);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--navy-600);
  color: var(--white);
}

.btn-outline {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy-800);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(11, 37, 69, 0.25);
  color: var(--navy-800);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--navy-800);
  color: var(--navy-800);
  background: var(--mist);
}

.btn-whatsapp {
  background: var(--whatsapp-dark);
  color: var(--white);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: #0d6d61;
  color: var(--white);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy-600);
  font-weight: 700;
  text-decoration: underline;
}

.link-button:hover {
  color: var(--gold-600);
}

/* Filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.55rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--slate-dark);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--navy-500);
  color: var(--navy-800);
}

.chip.is-active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: var(--white);
}


/* ==========================================================================
   05. SECTION HEADERS & SCROLL REVEAL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Gentle stagger inside repeated grids */
.listing-grid > .reveal:nth-child(3n + 2),
.service-grid > .reveal:nth-child(3n + 2),
.agent-grid > .reveal:nth-child(4n + 2),
.testimonial-grid > .reveal:nth-child(3n + 2) {
  transition-delay: 0.09s;
}

.listing-grid > .reveal:nth-child(3n),
.service-grid > .reveal:nth-child(3n),
.agent-grid > .reveal:nth-child(4n + 3),
.testimonial-grid > .reveal:nth-child(3n) {
  transition-delay: 0.18s;
}

.agent-grid > .reveal:nth-child(4n) {
  transition-delay: 0.27s;
}


/* ==========================================================================
   06. HEADER / STICKY NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(11, 37, 69, 0.12);
}

/* --- Top contact strip (desktop only) --- */
.topbar {
  display: none;
  overflow: hidden;
  max-height: 60px;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.83rem;
  opacity: 1;
  transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease);
}

@media (min-width: 1000px) {
  .topbar {
    display: block;
  }
}

.site-header.is-scrolled .topbar {
  max-height: 0;
  opacity: 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 42px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: inherit;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item .icon {
  color: var(--gold-400);
}

.topbar a.topbar-item:hover {
  color: var(--gold-400);
}

/* --- Navbar --- */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy-800);
}

.brand:hover,
.brand:focus-visible {
  color: var(--navy-800);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--gold-400);
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
}

/* --- Hamburger --- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 0 11px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--navy-800);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile menu panel --- */
.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  display: grid;
  gap: 0.15rem;
  max-height: calc(100vh - var(--header-height));
  padding: 1rem 1.15rem 1.5rem;
  background: var(--navy-800);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.nav-menu > li > a {
  display: block;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 1rem;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-400);
}

.nav-menu-contact > a {
  color: var(--gold-400) !important;
}

.nav-menu-cta {
  margin-top: 0.6rem;
}

.nav-menu-cta .btn {
  width: 100%;
}

/* --- Desktop navigation --- */
@media (min-width: 1000px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    max-height: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-menu > li > a {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--slate-dark);
    font-size: 0.93rem;
  }

  .nav-menu > li > a:hover,
  .nav-menu > li > a:focus-visible {
    background: var(--mist);
    color: var(--navy-800);
  }

  .nav-menu-contact {
    display: none;
  }

  .nav-menu-cta {
    margin-top: 0;
    margin-left: 0.55rem;
  }

  .nav-menu-cta .btn {
    width: auto;
  }
}


/* ==========================================================================
   07. HERO + PROPERTY SEARCH
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-block: 3.5rem 4rem;
  background: var(--navy-900);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    min-height: 640px;
    padding-block: 5.5rem 6rem;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      105deg,
      rgba(6, 21, 41, 0.92) 0%,
      rgba(6, 21, 41, 0.78) 42%,
      rgba(6, 21, 41, 0.45) 72%,
      rgba(6, 21, 41, 0.35) 100%
    ),
    linear-gradient(180deg, rgba(6, 21, 41, 0.5) 0%, rgba(6, 21, 41, 0.15) 45%, rgba(6, 21, 41, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 68rem;
}

.hero-title {
  font-size: clamp(2.15rem, 1.3rem + 4.4vw, 4.05rem);
  color: var(--white);
  margin-bottom: 1rem;
  text-wrap: balance;
}

.hero-title .accent {
  color: var(--gold-400);
}

.hero-lede {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  margin-bottom: 2rem;
}

/* --- Search bar --- */
.search-bar {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}

@media (min-width: 780px) {
  .search-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    padding: 1.1rem 1.1rem 1.1rem 1.35rem;
  }
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.search-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.search-field select {
  width: 100%;
  padding: 0.68rem 2rem 0.68rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 15px;
  color: var(--navy-800);
  font-size: 0.95rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-field select:hover {
  border-color: var(--navy-500);
}

.search-field select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

.search-submit {
  min-height: 46px;
}

@media (min-width: 780px) {
  .search-submit {
    padding-inline: 1.65rem;
  }
}

/* --- Hero trust list --- */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust .icon {
  color: var(--gold-400);
  stroke-width: 2.4;
}


/* ==========================================================================
   08. FEATURED LISTINGS (FILTER + SORT)
   ========================================================================== */

.listings {
  background: var(--white);
}

.filter-bar {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--mist);
}

.filter-label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--slate);
}

.filter-group-selects {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 700px) {
  .filter-group-selects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    align-items: end;
  }
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.filter-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--slate);
}

.filter-field select {
  width: 100%;
  padding: 0.62rem 2rem 0.62rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 15px;
  color: var(--navy-800);
  font-size: 0.92rem;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.filter-field select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

.results-count {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
}

/* --- Grid & cards --- */
.listing-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.listing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.listing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.6);
  box-shadow: var(--shadow-md);
}

.listing-card.is-hidden {
  display: none;
}

.listing-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist-2);
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.listing-card:hover .listing-media img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.32rem 0.72rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}

.badge-sale {
  background: var(--gold-500);
  color: var(--navy-900);
}

.badge-rent {
  background: var(--white);
  color: var(--navy-800);
}

.badge-land {
  background: var(--navy-700);
  color: var(--white);
}

.listing-price {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  padding: 2.4rem 0.95rem 0.8rem;
  background: linear-gradient(180deg, rgba(6, 21, 41, 0) 0%, rgba(6, 21, 41, 0.82) 60%);
  color: var(--white);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.listing-price small {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.85;
}

.listing-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
  padding: 1.15rem 1.15rem 1.25rem;
}

.listing-title {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.35;
}

.listing-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--slate);
  font-size: 0.87rem;
  font-weight: 600;
}

.listing-location .icon {
  color: var(--gold-600);
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--slate-dark);
  font-size: 0.83rem;
  font-weight: 600;
}

.listing-meta strong {
  color: var(--navy-800);
  font-weight: 800;
}

.listing-body .btn {
  margin-top: auto;
}

.listing-empty {
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--slate-dark);
  text-align: center;
}


/* ==========================================================================
   09. SERVICES
   ========================================================================== */

.services {
  background: var(--mist);
}

.service-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  color: var(--slate-dark);
  font-size: 0.94rem;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 0.35rem;
  border-radius: 14px;
  background: var(--gold-050);
  color: var(--navy-800);
}

.service-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card-accent {
  justify-content: center;
  border-color: transparent;
  background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: rgba(255, 255, 255, 0.86);
}

.service-card-accent:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.service-card-accent h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.service-card-accent p {
  color: rgba(255, 255, 255, 0.82);
}

.service-card-accent .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}


/* ==========================================================================
   10. WHY CHOOSE US + STATS COUNTERS
   ========================================================================== */

.why-us {
  background: var(--white);
}

.why-us-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1000px) {
  .why-us-inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 3.5rem;
  }
}

.why-us-media {
  position: relative;
}

.why-us-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.why-us-badge {
  position: absolute;
  right: 1rem;
  bottom: -1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius);
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
}

.why-us-badge strong {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

.why-us-badge span {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (min-width: 1000px) {
  .why-us-badge {
    right: -1.25rem;
    bottom: 1.75rem;
  }
}

.feature-list {
  display: grid;
  gap: 1.4rem;
}

.feature-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--gold-400);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.04rem;
}

.feature-item p {
  margin: 0;
  color: var(--slate-dark);
  font-size: 0.94rem;
}

/* --- Animated counters --- */
.stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3.5rem;
  padding: 1.9rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy-800) 0%, var(--navy-900) 100%);
  box-shadow: var(--shadow-md);
}

@media (min-width: 800px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 2.4rem 2rem;
    margin-top: 4.5rem;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  padding-inline: 0.5rem;
}

@media (min-width: 800px) {
  .stat + .stat {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}


/* ==========================================================================
   11. MEET THE AGENTS
   ========================================================================== */

.agents {
  background: var(--mist);
}

.agent-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .agent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .agent-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.agent-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.agent-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: var(--shadow-md);
}

.agent-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--mist-2);
}

.agent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.6s var(--ease);
}

.agent-card:hover .agent-photo img {
  transform: scale(1.05);
}

.agent-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  padding: 1.2rem 1.2rem 1.35rem;
}

.agent-name {
  margin: 0;
  font-size: 1.12rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.agent-role {
  margin: 0;
  color: var(--gold-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-bio {
  margin: 0.15rem 0 0.55rem;
  color: var(--slate-dark);
  font-size: 0.9rem;
}

.agent-contact {
  display: grid;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
}

.agent-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.agent-contact .icon {
  color: var(--gold-600);
}


/* ==========================================================================
   12. MORTGAGE / PAYMENT CALCULATOR
   ========================================================================== */

.calculator {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: rgba(255, 255, 255, 0.86);
}

.calculator .section-title {
  color: var(--white);
}

.calculator .section-lede {
  color: rgba(255, 255, 255, 0.82);
}

.calculator-inner {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1000px) {
  .calculator-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3.5rem;
  }
}

.calculator-tips {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.calculator-tips li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.82);
}

.calculator-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
}

.calculator-preview {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.calculator-preview-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.calculator-preview-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* --- Calculator form --- */
.calculator-card {
  display: grid;
  gap: 1.15rem;
  padding: 1.6rem 1.4rem 1.7rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 700px) {
  .calculator-card {
    padding: 2rem 1.9rem 2.1rem;
  }
}

.calculator-card-title {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.calc-field {
  display: grid;
  gap: 0.4rem;
}

.calc-field label {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--slate-dark);
}

.calc-field output {
  color: var(--navy-800);
  font-weight: 800;
}

.calc-field input[type="number"],
.calc-field select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-800);
  font-size: 0.98rem;
  font-weight: 600;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.calc-field select {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 15px;
  appearance: none;
  cursor: pointer;
}

.calc-field input[type="number"]:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

.calc-field input[type="range"] {
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.calc-field input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: var(--mist-2);
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.3);
}

.calc-field input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--mist-2);
}

.calc-field input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.3);
}

.calc-error {
  min-height: 1.1rem;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Results --- */
.calc-results {
  display: grid;
  gap: 0.1rem;
  margin: 0.35rem 0 0;
  padding: 0.35rem;
  border-radius: var(--radius);
  background: var(--mist);
}

.calc-results > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.8rem;
  border-radius: var(--radius-sm);
}

.calc-results > div:nth-child(odd) {
  background: rgba(255, 255, 255, 0.75);
}

.calc-results dt {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate-dark);
}

.calc-results dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.calc-results .calc-highlight {
  color: var(--gold-700);
  font-size: 1.08rem;
}

.calc-note {
  margin: 0;
  color: var(--slate);
  font-size: 0.78rem;
  line-height: 1.5;
}


/* ==========================================================================
   13. TESTIMONIALS
   ========================================================================== */

.testimonials {
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--mist);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 0.55rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: rgba(201, 162, 39, 0.32);
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: var(--shadow-md);
}

.stars {
  display: flex;
  gap: 0.18rem;
  color: var(--gold-500);
}

.stars .icon {
  width: 17px;
  height: 17px;
}

.testimonial-card blockquote {
  position: relative;
  z-index: 1;
}

.testimonial-card blockquote p {
  margin: 0;
  color: var(--slate-dark);
  font-size: 0.96rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 37, 69, 0.1);
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: var(--shadow-xs);
}

.testimonial-author span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.testimonial-author strong {
  color: var(--navy-800);
  font-size: 0.94rem;
  font-weight: 800;
}

.testimonial-author em {
  color: var(--slate);
  font-size: 0.83rem;
  font-style: normal;
  font-weight: 600;
}


/* ==========================================================================
   14. CONTACT FORM, OFFICE DETAILS & MAP
   ========================================================================== */

.contact {
  background: var(--mist);
}

.contact-inner {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1000px) {
  .contact-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
  }
}

/* --- Form --- */
.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: 1.6rem 1.4rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 700px) {
  .contact-form {
    padding: 2rem 1.9rem 2.1rem;
  }
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 700px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.form-field label {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--slate-dark);
}

.req {
  color: var(--gold-700);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-800);
  font-size: 0.96rem;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-field select {
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 15px;
  appearance: none;
  cursor: pointer;
  font-weight: 600;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #90a0b3;
  font-weight: 400;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14);
}

.field-error {
  min-height: 1rem;
  color: var(--danger);
  font-size: 0.79rem;
  font-weight: 600;
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--mist);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-dark);
  cursor: pointer;
}

.checkbox-field input {
  width: 19px;
  height: 19px;
  margin-top: 0.15rem;
  accent-color: var(--gold-500);
  cursor: pointer;
}

.form-success {
  display: flex;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(20, 107, 58, 0.28);
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-success[hidden] {
  display: none;
}

.form-success a {
  color: var(--success);
  text-decoration: underline;
}

/* --- Office cards --- */
.contact-aside {
  display: grid;
  gap: 1.25rem;
}

.office-card {
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.office-card h3 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.office-list {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.office-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  color: var(--slate-dark);
  font-size: 0.92rem;
}

.office-list .icon {
  margin-top: 0.2rem;
  color: var(--gold-600);
  width: 19px;
  height: 19px;
}

.office-card-gold {
  border-color: rgba(201, 162, 39, 0.4);
  background: var(--gold-050);
}

.office-note {
  margin: 0;
  color: var(--slate);
  font-size: 0.85rem;
  font-style: italic;
}

/* --- Map --- */
.map-block {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.map-header {
  padding: 1.35rem 1.5rem 1.1rem;
}

.map-header h3 {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.map-header p {
  margin: 0;
  color: var(--slate);
  font-size: 0.91rem;
}

.map-frame {
  border-top: 1px solid var(--line);
}

.map-frame iframe {
  width: 100%;
  height: 340px;
  border: 0;
}

@media (min-width: 900px) {
  .map-frame iframe {
    height: 420px;
  }
}


/* ==========================================================================
   15. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-top {
  display: grid;
  gap: 2.25rem;
  padding-block: 3.25rem 2.5rem;
}

@media (min-width: 700px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

@media (min-width: 1050px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }
}

.brand-footer {
  color: var(--white);
  margin-bottom: 1.1rem;
}

.brand-footer:hover,
.brand-footer:focus-visible {
  color: var(--white);
}

.brand-footer .brand-mark {
  background: var(--gold-500);
  color: var(--navy-900);
}

.brand-footer .brand-name {
  color: var(--white);
}

.brand-footer .brand-tag {
  color: var(--gold-400);
}

.footer-blurb {
  max-width: 34rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h3 {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--gold-400);
}

.footer-contact li {
  color: rgba(255, 255, 255, 0.72);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.social-list a:hover,
.social-list a:focus-visible {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
  transform: translateY(-3px);
}

.social-list .icon {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  color: rgba(255, 255, 255, 0.55);
}


/* ==========================================================================
   16. FLOATING WHATSAPP BUTTON
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--whatsapp);
  color: #04310f;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.4);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1fbe5b;
  color: #04310f;
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(18, 140, 126, 0.5);
}

.whatsapp-float .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
}

.whatsapp-float-text {
  display: none;
}

@media (min-width: 700px) {
  .whatsapp-float {
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 0.85rem 1.25rem;
  }

  .whatsapp-float-text {
    display: inline;
  }
}


/* ==========================================================================
   17. ACCESSIBILITY & MOTION PREFERENCES
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .listing-card:hover,
  .service-card:hover,
  .agent-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .whatsapp-float,
  .map-frame,
  .hero-media {
    display: none;
  }

  body {
    color: #000;
  }
}
