/* ============================================================
   GLOBAL RESET & TOKENS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --clr-gold:        #c9a96e;
  --clr-gold-dark:   #a07840;
  --clr-charcoal:    #1a1a1a;
  --clr-off-white:   #f7f5f2;
  --clr-white:       #ffffff;
  --clr-mid:         #6b6b6b;
  --clr-border:      #e2ddd8;
  --clr-error:       #c0392b;
  --clr-success:     #27ae60;

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  /* Spacing */
  --nav-h: 72px;
  --split-h: 100vh;
  --radius: 4px;
  --transition: 0.28s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--clr-charcoal);
  background: var(--clr-white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: slideInFromBottom 0.8s ease-out forwards;
}

.split-inner {
  opacity: 0;
}

.split-inner.animate-slide-right {
  opacity: 1;
}

.site-footer {
  opacity: 0;
}

.site-footer.animate-slide-up {
  opacity: 1;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.serif        { font-family: var(--font-serif); }
.section-eyebrow {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: .5rem;
  font-weight: 600;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}
.section-subtitle {
  font-size: .9rem;
  color: var(--clr-gold-dark);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.5rem;
}
.section-desc {
  color: var(--clr-mid);
  margin-bottom: 2rem;
}
p + p { margin-top: 1rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: .75rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary {
  background: var(--clr-gold);
  color: var(--clr-white);
  border-color: var(--clr-gold);
}
.btn-primary:hover { background: var(--clr-gold-dark); border-color: var(--clr-gold-dark); }
.btn-outline {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--clr-white); }
.full-width { width: 100%; text-align: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  gap: 2rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(26, 26, 26, .97);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-right: auto;
  min-width: 0;
}
.logo-serif {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--clr-gold);
  font-weight: 700;
}
.logo-thin {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  font-size: .83rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--clr-gold); }

/* ── NAV DROPDOWN ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  appearance: none;
  -webkit-appearance: none;
  /* match .nav-link exactly */
  font-family: var(--font-sans);
  font-size: .83rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
  vertical-align: middle;
}
.nav-dropdown-toggle:hover { color: var(--clr-gold); }
.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--transition);
}
.nav-dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;          /* no gap — bridge via padding-top */
  left: 50%;
  transform: translateX(-50%);
  padding-top: .6rem; /* visual gap without losing hover area */
  background: transparent;
  list-style: none;
  min-width: 180px;
  z-index: 100;
  white-space: nowrap;
}
.nav-dropdown-menu.open {
  display: block;
}
/* the visible box is on the inner ul */
.nav-dropdown-menu::before {
  content: '';
  display: block;
  position: absolute;
  inset: .6rem 0 0 0;
  background: rgba(20,20,20,.15);
  backdrop-filter: blur(20px);  
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-gold);
  border-radius: var(--radius);
  z-index: -1;
}
.nav-dropdown-item {
  display: block;
  padding: .6rem 1.2rem;
  font-size: .83rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-dropdown-item:hover {
  color: var(--clr-gold);
}

.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--clr-gold);
  color: var(--clr-gold);
  border-radius: var(--radius);
  padding: .3rem .8rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lang-toggle:hover { background: var(--clr-gold); color: var(--clr-white); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--clr-white);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Fallback: show poster when video fails */
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,.75) 0%, rgba(26,26,26,.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 780px;
}
.hero-eyebrow {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 2.5rem;
}
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SPLIT LAYOUT  (50 / 50)
   ============================================================ */
.split-section {
  display: flex;
  min-height: var(--split-h);
}
.split-section.split-reverse { flex-direction: row-reverse; }

.split-image {
  flex: 0 0 50%;
  width: 50%;
  position: sticky;
  top: 0;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.split-image iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
.split-content {
  flex: 0 0 50%;
  width: 50%;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  background: #FEFBF5;
}
.split-inner {
  padding: calc(var(--nav-h) + 4rem) 4rem 5rem;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

#contact.split-section {
  min-height: auto;
}

#contact .split-image {
  flex: 0 0 42%;
  width: 42%;
  height: 78vh;
  max-height: 720px;
  background-size: contain;
  background-color: #f5f0ea;
}

#about .split-image {
  background-size: contain;
  background-color: #f5f0ea;
}

#contact .split-content {
  flex: 0 0 58%;
  width: 58%;
}

#contact .split-inner {
  padding: calc(var(--nav-h) + 2.5rem) 3rem 3rem;
  max-width: 560px;
}

#contact .contact-form {
  margin-top: 1rem;
}

/* ============================================================
   ABOUT — stats row
   ============================================================ */
.about-stats {
  display: flex;
  gap: 2rem;
  margin: 2.5rem 0;
  padding: 1.8rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-gold);
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: var(--clr-mid);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .3rem;
}

/* ============================================================
   FULL SECTION (Listings)
   ============================================================ */
.full-section {
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 6vw, 7rem) 6rem;
  background: var(--clr-white);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* ---- Filter bar ---- */
.listings-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  background: var(--clr-off-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1 1 160px;
}
.filter-group label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-mid);
}
.filter-group select,
.filter-group input {
  padding: .55rem .9rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9rem;
  background: var(--clr-white);
  color: var(--clr-charcoal);
  appearance: auto;
}

/* ---- Property cards grid ---- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.listings-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: var(--clr-mid);
  font-style: italic;
}
.listing-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.listing-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.listing-card-body {
  padding: 1.2rem 1.4rem 1.6rem;
}
.listing-price {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--clr-charcoal);
  margin-bottom: .3rem;
}
.listing-address {
  font-size: .85rem;
  color: var(--clr-mid);
  margin-bottom: .9rem;
}
.listing-icons {
  display: flex;
  gap: 1rem;
  font-size: .82rem;
  color: var(--clr-charcoal);
}
.listing-icon { display: flex; align-items: center; gap: .3rem; }
.listing-icon svg { width: 16px; height: 16px; fill: var(--clr-gold); flex-shrink: 0; }
.listing-badge {
  display: inline-block;
  background: var(--clr-gold);
  color: var(--clr-white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: .15rem .55rem;
  margin-bottom: .7rem;
}

/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label, .form-label-heading {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-mid);
}
.form-label-heading { margin-bottom: .6rem; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .65rem 1rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--clr-charcoal);
  background: var(--clr-white);
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-gold);
}
.form-group textarea { resize: vertical; }
.form-note { font-size: .78rem; color: var(--clr-mid); min-height: 1.2em; }
.field-error  { font-size: .78rem; color: var(--clr-error); min-height: 1.1em; }
.form-success { color: var(--clr-success); font-size: .9rem; margin-top: 1rem; text-align: center; }

/* ---- Down payment toggle ---- */
.input-toggle-wrap { display: flex; gap: .5rem; }
.input-toggle-wrap input { flex: 1; }
.toggle-btn-group { display: flex; flex-direction: column; }
.toggle-btn {
  flex: 1;
  padding: 0 .8rem;
  border: 1px solid var(--clr-border);
  background: var(--clr-white);
  cursor: pointer;
  font-weight: 600;
  font-size: .8rem;
  color: var(--clr-mid);
  transition: background var(--transition), color var(--transition);
}
.toggle-btn:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.toggle-btn:last-child  { border-radius: 0 0 var(--radius) var(--radius); border-top: none; }
.toggle-btn.active { background: var(--clr-gold); color: var(--clr-white); border-color: var(--clr-gold); }

/* ---- Rate comparison inputs ---- */
.rate-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.rate-input-group { display: flex; flex-direction: column; gap: .4rem; }
.rate-input-group label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-mid);
}
.rate-input {
  padding: .55rem .7rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9rem;
  background: var(--clr-white);
  color: var(--clr-charcoal);
  width: 100%;
}
.rate-input:focus { outline: none; border-color: var(--clr-gold); }

/* ---- Results table ---- */
.results-table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
  border: 1px solid var(--clr-border);
  border-radius: calc(var(--radius) * 2);
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.results-table th,
.results-table td {
  padding: .75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--clr-border);
  white-space: nowrap;
}
.results-table th:first-child,
.results-table td:first-child { text-align: left; }
.results-table thead { background: var(--clr-charcoal); color: var(--clr-white); }
.results-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.results-table tbody tr:last-child td { border-bottom: none; }
.results-table tbody tr:nth-child(even) { background: var(--clr-off-white); }
.results-table td:last-child { color: var(--clr-gold); font-weight: 600; }

/* ---- Welcome Tax result ---- */
.welcome-result {
  margin-top: 2rem;
  background: var(--clr-charcoal);
  color: var(--clr-white);
  border-radius: calc(var(--radius) * 2);
  padding: 2rem;
}
.welcome-result-main { text-align: center; margin-bottom: 1.5rem; }
.result-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
}
.result-amount {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--clr-gold);
}
.welcome-breakdown { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; }
.welcome-breakdown table { width: 100%; font-size: .82rem; border-collapse: collapse; }
.welcome-breakdown td { padding: .4rem .5rem; color: rgba(255,255,255,.8); }
.welcome-breakdown td:last-child { text-align: right; color: var(--clr-gold); }
.welcome-note { font-size: .75rem; color: rgba(255,255,255,.4); margin-top: 1rem; font-style: italic; }

/* ============================================================
   LOGO
   ============================================================ */
.nav-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-charcoal);
  color: rgba(255,255,255,.55);
  padding: 1.4rem 1.5rem;
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.45rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.footer-section:nth-child(2) {
  white-space: normal;
}
.footer-logo-section {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.footer-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--clr-gold);
}
.footer-icon-badge svg {
  width: 18px;
  height: 18px;
}
.footer-broker {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.footer-broker-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--clr-gold);
  margin-bottom: 0;
  font-weight: 700;
}
.footer-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.footer-company {
  font-size: 0.85rem;
  color: var(--clr-gold);
  margin-bottom: 0.15rem;
  font-weight: 700;
}
.footer-agency {
  font-size: 0.75rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 0.15rem;
}
.footer-address {
  font-size: 0.75rem;
  color: rgba(255,255,255,.7);
  line-height: 1.4;
  margin-bottom: 0;
  margin-top: 0.25rem;
  white-space: normal;
}
.footer-contact {
  font-size: 0.8rem;
  margin-bottom: 0;
}
.footer-contact-section,
.footer-website-section {
  min-width: 170px;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  padding-bottom: 0.9rem;
}
.footer-contact a {
  color: var(--clr-gold);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--clr-white); }
.footer-website {
  font-size: 0.8rem;
  margin-bottom: 0;
  white-space: normal;
}
.footer-website a {
  color: var(--clr-gold);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-website a:hover { color: var(--clr-white); }
.footer-social-section {
  white-space: normal;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--clr-gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover {
  background: var(--clr-gold);
  color: var(--clr-charcoal);
}
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 0.6rem 0;
}
.footer-credit {
  text-align: center;
  padding-top: 1rem;
}
.footer-copy {
  font-size: .82rem;
  margin-bottom: .5rem;
}
.footer-design {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}
.footer-design a {
  color: var(--clr-gold);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-design a:hover { color: var(--clr-white); }

/* ============================================================
   RESPONSIVE — TABLET  (≤ 960px)
   ============================================================ */
@media (max-width: 1100px) {
  .navbar { padding: 0 1.4rem; }
  .nav-logo-img { height: 42px; max-width: min(220px, 50vw); }
  .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); right: 0;
    background: #000; backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 1.5rem; gap: 1.2rem; min-width: 220px;
    border-left: 2px solid var(--clr-gold); }
  .nav-links.open { display: flex; }
  .lang-toggle {
    order: 2;
    margin-left: auto;
    padding: .28rem .6rem;
    font-size: .68rem;
    flex-shrink: 0;
  }
  .nav-hamburger {
    display: flex;
    order: 3;
    margin-left: 0.55rem;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
  }

  /* dropdown becomes inline on mobile */
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    display: none !important;
    position: static;
    transform: none;
    border: none;
    border-left: 2px solid var(--clr-gold);
    border-radius: 0;
    background: transparent;
    padding: .35rem 0 .2rem 1rem;
    margin-top: .25rem;
    min-width: auto;
  }
  .nav-dropdown-menu::before { display: none; }  /* ::before is abs-positioned, breaks on static mobile parent */
  .nav-dropdown-menu.open { display: block !important; }
  .nav-dropdown-item { font-size: .8rem; padding: .4rem .6rem; }

  .split-section,
  .split-section.split-reverse { flex-direction: column; min-height: auto; }
  .split-image { flex: none; width: 100%; height: 60vw; max-height: 520px; position: relative; top: auto; background-position: top center; }
  .split-content { flex: none; width: 100%; overflow-y: visible; }
  .split-inner { padding: 3rem 2rem 4rem; max-width: 100%; }
  #contact .split-image,
  #contact .split-content {
    flex: none;
    width: 100%;
  }
  #contact .split-image {
    height: 60vw;
    max-height: 520px;
  }

  .rate-inputs { grid-template-columns: repeat(2, 1fr); }
  .form-grid   { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }

  .about-stats { flex-wrap: wrap; gap: 1.2rem; }

  .footer-content { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .footer-section { white-space: normal; }
  .footer-logo-section { flex-direction: row; order: 1; }
  .footer-contact-section {
    order: 2;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 0;
    gap: 0.45rem;
  }
  .footer-website-section {
    order: 3;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 0;
    gap: 0.45rem;
  }
  .footer-section:nth-child(2) { order: 4; }
  .footer-social-section { order: 5; }
  .footer-logo { height: 35px; }
  .footer-broker-name { font-size: 0.9rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 540px)
   ============================================================ */
@media (max-width: 540px) {
  .navbar { padding: 0 1.1rem; }
  .nav-logo-img { height: 38px; max-width: 48vw; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .hero-cta-group .btn { width: min(280px, 100%); text-align: center; }
  .listings-filter { flex-direction: column; }
  .filter-group    { flex: none; width: 100%; }
  .rate-inputs { grid-template-columns: 1fr 1fr; }
  .split-inner { padding: 2.5rem 1.2rem 3rem; }
  .full-section { padding: calc(var(--nav-h) + 2rem) 1.2rem 4rem; }

  .split-image { height: 80vw; max-height: 380px; background-position: top center; }
  .lang-toggle { padding: .24rem .5rem; font-size: .64rem; }
  .nav-hamburger { margin-left: 0.4rem; }
  .site-footer { padding: 0.8rem 1rem; }
  .footer-content { flex-direction: column; gap: 0.55rem; }
  .footer-section { white-space: normal; }
  .footer-logo { height: 32px; }
  .footer-broker-name { font-size: 0.85rem; }
  .footer-design { font-size: .7rem; }
}
