/* ==========================================================================
   VEKOR REAL ESTATE AGENCY - MASTER TEMPLATE STYLES
   Design Aesthetic: Hybrid Alternating Light/Dark Luxury Theme
   ========================================================================== */

:root {
  /* Dark Theme Colors */
  --bg-dark: #0b0c10;
  --bg-dark-alt: #121418;
  --bg-dark-card: #181b20;
  
  /* Light Theme Colors */
  --bg-light: #ffffff;
  --bg-light-alt: #f9fafb;
  --bg-light-card: #ffffff;
  --bg-light-card-alt: #f3f4f6;
  
  /* Text Colors - Dark Mode */
  --text-dark-primary: #ffffff;
  --text-dark-secondary: #9ca3af;
  --text-dark-muted: #6b7280;
  
  /* Text Colors - Light Mode */
  --text-light-primary: #111827;
  --text-light-secondary: #374151;
  --text-light-muted: #6b7280;
  
  /* Accent Colors */
  --accent-gold: #c5a059;
  --accent-gold-hover: #b08c46;
  --accent-gold-light: rgba(197, 160, 89, 0.12);
  --accent-gold-glow: rgba(197, 160, 89, 0.3);
  
  /* Borders & Shadows */
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-light: #e5e7eb;
  --border-gold: rgba(197, 160, 89, 0.35);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-dark: 0 20px 40px rgba(0, 0, 0, 0.6);
  
  /* Typography */
  --font-heading: 'Marcellus', serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-max: 1320px;
  --header-height: 90px;
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-dark-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
  position: relative;
}

.section-tag::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background-color: var(--accent-gold);
  vertical-align: middle;
  margin-left: 12px;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  gap: 10px;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #111827;
  border-color: var(--accent-gold);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.3);
}

.btn-outline-dark {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-dark:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: var(--accent-gold-light);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-light-primary);
  border-color: var(--text-light-primary);
}

.btn-outline-light:hover {
  background: var(--text-light-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header & Navbar (Fixed Glassmorphism Header) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-dark);
  height: 76px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand-logo .logo-main {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  letter-spacing: 0.08em;
  color: #ffffff;
  white-space: nowrap;
  line-height: 1.2;
}

.brand-logo .logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-secondary);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.btn-nav {
  padding: 10px 22px !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   SECTION SCHEMES (ALTERNATING LIGHT & DARK)
   ========================================================================== */

/* Hero Section - DARK (#0B0C10) */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 12, 16, 0.7) 0%,
    rgba(11, 12, 16, 0.45) 50%,
    rgba(11, 12, 16, 0.95) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 920px;
  padding-top: 60px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.15;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--accent-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* Trust Bar / Stats - DARK (#121418) */
.trust-bar {
  background-color: var(--bg-dark-alt);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 60px 0;
  position: relative;
  z-index: 4;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 16px;
  border-right: 1px solid var(--border-dark);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  color: var(--accent-gold);
  line-height: 1.15;
  margin-bottom: 8px;
  white-space: nowrap;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-secondary);
}

/* Section Padding */
.section {
  padding: 110px 0;
}

/* Meet the Agent (Bio) Section - LIGHT (#FFFFFF) */
.section-light-agent {
  background-color: var(--bg-light);
  color: var(--text-light-primary);
}

.section-light-agent .section-title {
  color: var(--text-light-primary); /* #111827 */
}

.section-light-agent .about-bio {
  color: var(--text-light-secondary); /* #374151 */
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 28px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  height: 100%;
  min-height: 560px;
  display: flex;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition-smooth);
}

.about-image-wrapper:hover img {
  transform: scale(1.03);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 36px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light-primary); /* #111827 */
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-light-secondary); /* #374151 */
}

/* Featured Luxury Listings Section - LIGHT OFF-WHITE (#F9FAFB) */
.section-light-listings {
  background-color: var(--bg-light-alt);
  color: var(--text-light-primary);
}

.section-light-listings .section-title {
  color: var(--text-light-primary); /* #111827 */
}

.section-light-listings .section-subtitle {
  color: var(--text-light-secondary); /* #374151 */
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.property-card {
  background: var(--bg-light-card); /* Pure White #FFFFFF */
  border: 1px solid var(--border-light); /* #E5E7EB */
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.property-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md); /* 0 10px 25px -5px rgba(0,0,0,0.08) */
}

.property-thumb {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.property-card:hover .property-thumb img {
  transform: scale(1.08);
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #111827;
  color: var(--accent-gold);
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.property-price {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--accent-gold);
  color: #111827;
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.property-info {
  padding: 28px;
}

.property-title {
  font-size: 1.3rem;
  color: var(--text-light-primary); /* #111827 */
  margin-bottom: 8px;
}

.property-location {
  font-size: 0.9rem;
  color: var(--text-light-secondary); /* #374151 */
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  font-size: 0.88rem;
  color: var(--text-light-secondary);
}

.spec-item span {
  color: var(--text-light-primary);
  font-weight: 700;
}

/* Explore Neighborhoods Grid - DARK (#0B0C10) */
.section-dark-neighborhoods {
  background-color: var(--bg-dark);
  color: var(--text-dark-primary);
}

.section-dark-neighborhoods .section-title {
  color: #ffffff;
}

.section-dark-neighborhoods .section-subtitle {
  color: var(--text-dark-secondary);
}

.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.neighborhood-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  cursor: pointer;
}

.neighborhood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.neighborhood-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.88) 100%);
  transition: var(--transition-fast);
  pointer-events: none;
}

.neighborhood-card:hover img {
  transform: scale(1.08);
}

.neighborhood-card:hover::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.neighborhood-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 2;
}

.neighborhood-name {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 6px;
}

.neighborhood-sub {
  font-size: 0.85rem;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Home Valuation CTA Section - DARK (#0F1117) */
.section-dark-valuation {
  background-color: var(--bg-dark-alt);
  padding: 90px 0;
}

.valuation-box {
  background: linear-gradient(135deg, #121418 0%, #0b0c10 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-dark);
  max-width: 920px;
  margin: 0 auto;
}

.valuation-box .section-title {
  color: #ffffff;
}

.valuation-box .section-subtitle {
  color: var(--text-dark-secondary);
}

.valuation-form {
  display: flex;
  gap: 16px;
  max-width: 640px;
  margin: 32px auto 0;
}

.valuation-input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: #ffffff;
  outline: none;
  transition: var(--transition-fast);
}

.valuation-input:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.1);
}

/* Success Stories (Testimonials) Section - LIGHT (#FFFFFF) */
.section-light-testimonials {
  background-color: var(--bg-light);
  color: var(--text-light-primary);
}

.section-light-testimonials .section-title {
  color: var(--text-light-primary); /* #111827 */
}

.section-light-testimonials .section-subtitle {
  color: var(--text-light-secondary); /* #374151 */
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--bg-light-alt); /* Light Gray #F9FAFB */
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-gold); /* Subtle Gold Left Border */
  border-radius: var(--radius-md);
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: var(--accent-gold);
  margin-bottom: 18px;
  font-size: 1.15rem;
}

.testimonial-text,
.section-light-testimonials .testimonial-text {
  font-size: 1rem;
  line-height: 1.65;
  color: #1f2937 !important; /* Dark Charcoal 100% legible contrast */
  font-style: italic;
  font-weight: 400;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.author-info h4 {
  font-size: 1rem;
  color: var(--text-light-primary); /* #111827 */
  text-transform: none;
  letter-spacing: 0;
}

.author-info p {
  font-size: 0.82rem;
  color: var(--text-light-muted); /* #6b7280 */
}

/* Contact Modal & Form */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--bg-dark-alt);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 48px 40px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-dark-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--accent-gold);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-secondary);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: #ffffff;
  outline: none;
  transition: var(--transition-fast);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c5a059' stroke-width='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 18px center;
  background-size: 16px;
  padding-right: 48px;
  cursor: pointer;
}

.form-select option {
  background-color: #121418;
  color: #ffffff;
  padding: 12px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18);
}

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

/* Footer - DARK (#0A0B0E) */
.footer {
  background-color: #0a0b0e;
  border-top: 1px solid var(--border-dark);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-dark-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-dark-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dark-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: var(--text-dark-secondary);
}

.footer-bottom a:hover {
  color: var(--accent-gold);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .neighborhoods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .stat-item {
    border-right: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .stat-item:nth-child(2n) {
    border-right: none;
  }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }
  .stat-number {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    white-space: nowrap;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .trust-bar {
    padding: 40px 0;
  }
  .navbar .container {
    padding: 0 16px;
  }
  .navbar .btn-nav {
    display: none;
  }
  .brand-logo .logo-main {
    font-size: 0.95rem;
  }
  .brand-logo .logo-sub {
    font-size: 0.52rem;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(11, 12, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    z-index: 999;
  }
  .nav-links.active {
    display: flex !important;
  }
  .nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    width: 100%;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .about-image-wrapper {
    min-height: 380px;
  }
  .about-image-wrapper img {
    height: 380px;
  }
  .properties-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .neighborhoods-grid {
    grid-template-columns: 1fr;
  }
  .valuation-form {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border-dark) !important;
    padding: 20px 12px;
  }
  .stat-item:last-child {
    border-bottom: none !important;
  }
  .stat-number {
    font-size: 1.85rem;
  }
  .stat-label {
    font-size: 0.78rem;
  }
}
