@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-primary: #c1ab6d; /* Gold */
  --color-primary-dark: #b0964b;
  --color-info: #111111; /* Was Navy Blue — swapped to black per client feedback */
  --color-dark: #0a0a0a; /* Was #021130 navy — swapped to black per client feedback */
  --color-darker: #050505;
  --color-darkest: #000000;
  --color-danger: #1a1a1a; /* Was red — swapped to black per client feedback */
  --color-success: #61ce27;
  --color-light: #ffffff;
  --color-gray: #a9a9a9;
  --color-gray-dark: #525252;
  --color-accent: #e7e5e2;

  /* ── NEW: Light-mode palette ── */
  --color-body-bg: #f8f7f4;        /* Warm off-white page background */
  --color-section-alt: #ffffff;     /* Pure white alternate sections */
  --color-section-cream: #f2efe8;   /* Soft cream for subtle alternation */
  --color-text: #2a2a2a;            /* Dark text for readability */
  --color-text-muted: #5a5a5a;      /* Lighter body text */
  --color-border-light: #e0ddd5;    /* Subtle warm borders */
  --shadow-light: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-card: 0 8px 30px rgba(0,0,0,0.08);

  --font-main: 'Outfit', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glass: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(193, 171, 109, 0.15);
  --bg-glass: rgba(10, 10, 10, 0.88);
  --border-glass: 1px solid rgba(193, 171, 109, 0.25);
  --border-glow: 1px solid rgba(193, 171, 109, 0.5);
  --radius-md: 12px;
  --radius-lg: 24px;
}

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

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

/* Base Elements */
a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

/* Buttons */
.modern-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-primary-dark); /* darker gold for AA contrast */
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.modern-btn:hover {
  background: var(--color-dark);
  color: var(--color-light) !important;
  border-color: var(--color-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(10, 10, 10, 0.22);
}

.modern-btn.secondary {
  background: transparent;
  color: var(--color-dark) !important;
  border-color: var(--color-border-light);
}

.modern-btn.secondary:hover {
  border-color: var(--color-dark);
  color: var(--color-light) !important;
  background: var(--color-dark);
}

/* Secondary button used on dark backgrounds (hero, dark sections,
   resource-cta) — override so text is visible against darkness */
.modern-hero .modern-btn.secondary,
.resource-cta .modern-btn.secondary,
.recruit-hero .modern-btn.secondary {
  color: var(--color-light) !important;
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}
.modern-hero .modern-btn.secondary:hover,
.resource-cta .modern-btn.secondary:hover,
.recruit-hero .modern-btn.secondary:hover {
  background: var(--color-primary);
  color: var(--color-darkest) !important;
  border-color: var(--color-primary);
}

.modern-btn-glass {
  display: inline-block;
  padding: 16px 36px;
  background: var(--color-primary);
  color: var(--color-darkest) !important;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-smooth);
  border: 1px solid var(--color-primary);
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 30px rgba(193,171,109,0.2);
}

.modern-btn-glass:hover {
  background: var(--color-dark);
  color: var(--color-light) !important;
  border-color: var(--color-dark);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(10,10,10,0.28);
}

/* ═══════════════════════════════════════════
   HEADER — stays dark
   ═══════════════════════════════════════════ */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: transparent;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.modern-header.scrolled {
  padding: 15px 5%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-bottom: 1px solid rgba(193,171,109,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modern-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 40px;
  flex-shrink: 0;
}
.modern-brand img {
  height: 95px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}
.modern-header.scrolled .modern-brand img {
  height: 70px;
}

.modern-nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.modern-nav a {
  color: var(--color-light);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
}

.modern-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.modern-nav a:hover::after,
.modern-nav a.active::after {
  width: 100%;
}

.modern-nav a.active,
.modern-nav li.active > a {
  color: var(--color-primary);
}
.modern-nav a.active::after,
.modern-nav li.active > a::after {
  width: 100%;
  background-color: var(--color-primary);
}

/* Dropdown styling */
.modern-nav .dropdown {
  position: relative;
}

.modern-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: var(--border-glass);
  border-radius: var(--radius-md);
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  min-width: 260px;
  list-style: none;
  box-shadow: var(--shadow-glass);
}

.modern-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.modern-nav .dropdown-menu li {
  padding: 0 20px;
}

.modern-nav .dropdown-menu a {
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.5px;
}

.modern-nav .dropdown-menu a::after {
  bottom: -4px;
}

/* ═══════════════════════════════════════════
   HERO — stays dark
   ═══════════════════════════════════════════ */
.modern-hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 10%;
  overflow: hidden;
}

.modern-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.modern-hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.6) 80%, rgba(0,0,0,0.95) 100%),
    linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,34,73,0.85) 100%);
}

.modern-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.modern-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #ffffff 0%, #d4bf88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: white; /* fallback */
  letter-spacing: -0.03em;
}

/* Inner Page Hero — smaller title for subpages */
.modern-hero[style*="50vh"] .modern-hero-title,
.modern-hero[style*="60vh"] .modern-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.modern-hero[style*="50vh"] .modern-hero-subtitle,
.modern-hero[style*="60vh"] .modern-hero-subtitle {
  font-size: 1.15rem;
}

/* Scroll Chevron Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 30px;
  height: 50px;
  animation: bounce 2s infinite cubic-bezier(0.445, 0.05, 0.55, 0.95);
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator::before,
.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  width: 16px;
  height: 2px;
  background-color: var(--color-primary);
}

.scroll-indicator::before {
  left: 0;
  transform: rotate(45deg);
  transform-origin: left bottom;
}

.scroll-indicator::after {
  right: 0;
  transform: rotate(-45deg);
  transform-origin: right bottom;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-15px);
  }
  60% {
    transform: translateX(-50%) translateY(-7px);
  }
}

.modern-hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 45px;
  font-weight: 300;
  max-width: 700px;
}

/* ═══════════════════════════════════════════
   LIGHT CONTENT SECTIONS
   ═══════════════════════════════════════════ */
.modern-section {
  padding: 100px 10%;
  position: relative;
  background: var(--color-section-alt);
}

/* Alternate cream background for visual rhythm */
.modern-section:nth-of-type(even) {
  background: var(--color-section-cream);
}

/* Accent section — soft cream with gold border accent */
.modern-section.dark-alt {
  background: var(--color-section-cream);
  border-top: 3px solid var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
}

.modern-section.dark-alt .modern-section-title {
  color: var(--color-dark);
}

.modern-section.dark-alt .modern-section-subtitle {
  color: var(--color-text-muted);
}

.modern-section.dark-alt .modern-btn.secondary {
  color: var(--color-dark) !important;
  border-color: var(--color-border-light);
}

.modern-section.dark-alt .modern-btn.secondary:hover {
  border-color: var(--color-dark);
  color: var(--color-light) !important;
  background: var(--color-dark);
}

/* Section Title — now navy on light backgrounds */
.modern-section-title {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.modern-section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.3rem;
  margin-bottom: 70px;
  max-width: 700px;
  margin-inline: auto;
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   SPLIT LAYOUT — light mode
   ═══════════════════════════════════════════ */
.modern-split {
  display: flex;
  align-items: center;
  gap: 60px;
}

.modern-split.reverse {
  flex-direction: row-reverse;
}

.modern-split-content {
  flex: 1;
}

.modern-split-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.modern-split-content p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  font-weight: 300;
}

.modern-split-image {
  flex: 1;
  position: relative;
}

.modern-split-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
}

/* ═══════════════════════════════════════════
   CARDS — light mode
   ═══════════════════════════════════════════ */
.modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.modern-card {
  background: var(--color-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.modern-card:hover {
  transform: translateY(-12px);
  background: var(--color-light);
  box-shadow: var(--shadow-card);
  border-color: var(--color-primary);
}

.modern-card:hover::before {
  opacity: 1;
}

.modern-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  transition: var(--transition-smooth);
}

.modern-card h3 {
  font-size: 2rem;
  color: var(--color-dark);
  margin-bottom: 15px;
  position: relative;
}

.modern-card p {
  color: var(--color-text-muted);
  margin-bottom: 25px;
  font-size: 1.05rem;
  font-weight: 300;
  position: relative;
}

/* ═══════════════════════════════════════════
   FOOTER — stays dark
   ═══════════════════════════════════════════ */
.modern-footer {
  background: var(--color-dark);
  padding: 80px 10% 40px;
  border-top: 4px solid var(--color-primary);
  color: var(--color-light);
}

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

.modern-footer-brand p {
  color: var(--color-gray);
  margin-top: 20px;
  max-width: 300px;
}

.modern-footer h4 {
  color: var(--color-light);
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.modern-footer ul {
  list-style: none;
}

.modern-footer ul li {
  margin-bottom: 15px;
}

.modern-footer ul a {
  color: var(--color-gray);
}

.modern-footer ul a:hover {
  color: var(--color-primary);
}

.modern-footer-bottom {
  text-align: center;
  color: var(--color-gray-dark);
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ═══════════════════════════════════════════
   FOOTER v2 — 3-column: Brand | Quick links | Contact us
   ═══════════════════════════════════════════ */
.footer-v2 {
  background: #000000;
  color: var(--color-light);
  padding: 90px 8% 40px;
  border-top: 4px solid var(--color-primary);
}
.footer-v2-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: 80px;
  max-width: 1600px;
  margin: 0 auto;
  align-items: start;
}
.footer-v2 .f-brand-col { display: flex; flex-direction: column; gap: 32px; }
.footer-v2 .f-logo img { max-width: 180px; height: auto; display: block; }
.footer-v2 .f-licenses {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 400;
}
.footer-v2 .f-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
}
.footer-v2 .f-logo-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}
.footer-v2 .f-logo-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}
.footer-v2 h4 {
  color: var(--color-light);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 30px;
  letter-spacing: 0;
  text-transform: none;
}
.footer-v2 .f-links { list-style: none; padding: 0; margin: 0; }
.footer-v2 .f-links li { margin-bottom: 18px; }
.footer-v2 .f-links a {
  color: var(--color-light);
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
  font-weight: 500;
}
.footer-v2 .f-links a:hover { color: var(--color-primary); }

.footer-v2 .f-contact { display: flex; flex-direction: column; gap: 22px; }
.footer-v2 .f-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--color-light);
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.6;
  transition: color 0.25s ease;
}
.footer-v2 .f-contact-item:hover { color: var(--color-primary); }
.footer-v2 .f-contact-item .f-ico {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-light);
  margin-top: 3px;
}
.footer-v2 .f-contact-item:hover .f-ico { color: var(--color-primary); }

.footer-v2-bottom {
  max-width: 1600px;
  margin: 60px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-v2-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-v2-bottom a:hover { color: var(--color-primary); }

@media (max-width: 1024px) {
  .footer-v2 { padding: 70px 6% 34px; }
  .footer-v2-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .footer-v2 .f-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-v2 { padding: 56px 6% 28px; }
  .footer-v2-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-v2 h4 { font-size: 1.3rem; margin-bottom: 22px; }
  .footer-v2 .f-logo img { max-width: 150px; }
  .footer-v2 .f-licenses { font-size: 0.95rem; }
  .footer-v2 .f-logo-svg { width: 68px; height: 68px; }
  .footer-v2-bottom { flex-direction: column; text-align: left; font-size: 0.8rem; }
}


/* ═══════════════════════════════════════════
   COMPLIANCE BLOCK — License & Fair Housing
   ═══════════════════════════════════════════ */
.compliance-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding: 24px 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.compliance-licenses {
  color: var(--color-gray);
  font-size: 0.88rem;
  line-height: 1.7;
}
.compliance-licenses strong {
  color: var(--color-primary);
  font-weight: 600;
  margin-right: 6px;
}
.compliance-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.compliance-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
}
.compliance-logo svg { height: 44px; width: auto; display: block; }
.compliance-logo-label {
  color: var(--color-gray);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-left: 8px;
}
@media (max-width: 640px) {
  .compliance-block { flex-direction: column; align-items: flex-start; text-align: left; }
  .compliance-logos { justify-content: flex-start; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* If JS is disabled or fails, never trap content behind opacity:0 */
.no-js .animate-on-scroll,
html:not(.js) .animate-on-scroll {
  opacity: 1;
  transform: none;
}

/* Staggered load-in animations */
.cascade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }

/* ═══════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════ */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  background: var(--color-primary);
  color: var(--color-darkest);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}

.skip-to-content:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
}


/* ═══════════════════════════════════════════
   MOBILE HAMBURGER
   ═══════════════════════════════════════════ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-primary);
  margin: 6px 0;
  border-radius: 2px;
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .modern-nav ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    padding: 100px 30px 40px;
    gap: 20px;
    transition: var(--transition-smooth);
    z-index: 999;
    border-left: 1px solid rgba(193,171,109,0.2);
  }
  .modern-nav ul.mobile-open { right: 0; }
  .modern-nav .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 10px 0 0 15px;
    min-width: auto;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .modern-hero-title { font-size: 4rem; }
  .modern-split { flex-direction: column; }
  .modern-split.reverse { flex-direction: column; }
  .modern-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Header & Logo */
  .modern-header { padding: 15px 4%; }
  .modern-brand { margin-right: 16px; }
  .modern-brand img {
    height: 62px;
    width: auto;
  }
  .modern-header.scrolled .modern-brand img {
    height: 52px;
  }

  /* Hero */
  .modern-hero { padding: 0 5%; min-height: 100vh; }
  .modern-hero-content { padding-top: 90px; }
  .modern-hero-title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .modern-hero-subtitle { font-size: 1rem; margin-bottom: 25px; }

  /* Sections */
  .modern-section { padding: 60px 5%; }
  .modern-section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .modern-section-subtitle { font-size: 1rem; margin-bottom: 40px; }

  /* Cards Grid — single column on small screens */
  .modern-grid { grid-template-columns: 1fr; gap: 24px; }
  .modern-card { padding: 30px 20px; }
  .modern-card h3 { font-size: 1.5rem; }
  .modern-card:hover { transform: translateY(-8px); }

  /* Split Layout */
  .modern-split-content h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .modern-split-content p { font-size: 1rem; }

  /* Footer */
  .modern-footer { padding: 50px 5% 30px; }
  .modern-footer-grid { grid-template-columns: 1fr; gap: 30px; }

  /* Scroll indicator smaller on mobile */
  .scroll-indicator { bottom: 20px; }
}

/* ────────────────────────────────────────────
   SMALL-LAPTOP OPTIMIZATION (13-15" MacBooks)
   Prevents nav/hero overflow on 1366-1440 screens
   ──────────────────────────────────────────── */
@media (max-width: 1440px) {
  .modern-header { padding: 16px 4%; }
  .modern-nav ul { gap: 22px; }
  .modern-nav a { font-size: 0.85rem; letter-spacing: 1.2px; }
  .modern-nav .dropdown-menu { min-width: 220px; }
  .modern-logo img { max-height: 48px; }
  .modern-hero-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
  .modern-hero-subtitle { font-size: clamp(1rem, 1.5vw, 1.2rem); }
  .header-phone { font-size: 0.85rem; }
  .modern-section { padding: 80px 5%; }
  .modern-split { gap: 50px; }
}

@media (max-width: 1200px) {
  .modern-nav ul { gap: 16px; }
  .modern-nav a { font-size: 0.8rem; letter-spacing: 1px; }
  .modern-btn { padding: 12px 22px; font-size: 0.85rem; }
  .modern-hero-title { font-size: clamp(2rem, 4vw, 3rem); }
  .modern-grid { gap: 20px; }
  .modern-split { gap: 36px; }
  .header-phone { display: none; }
}

/* ════════════════════════════════════════════════════
   CONSOLIDATED RESPONSIVE SYSTEM
   Desktop → Small Laptop → Tablet → Phone → Small Phone
   Later breakpoints override earlier ones by cascade.
   ════════════════════════════════════════════════════ */

/* ── DESKTOP (default ≥1441px) — no overrides ── */

/* ── TABLET (≤1024px) — landscape iPad / small laptop portrait ── */
@media (max-width: 1024px) {
  /* Header */
  .modern-header { padding: 14px 4%; }
  .modern-brand img { max-height: 56px; width: auto; }

  /* Hero */
  .modern-hero-title { font-size: clamp(2rem, 5.5vw, 3rem); }
  .modern-hero-subtitle { font-size: clamp(0.95rem, 1.8vw, 1.15rem); }
  .modern-hero-content { padding: 0 24px; }

  /* Sections */
  .modern-section { padding: 70px 5%; }
  .modern-section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }

  /* Grids */
  .modern-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

  /* Split layouts — stack vertically */
  .modern-split, .modern-split.reverse {
    flex-direction: column;
    gap: 36px;
  }
  .modern-split-content, .modern-split-image { width: 100%; max-width: 100%; }
  .modern-split-image img { width: 100%; height: auto; border-radius: var(--radius-md); }

  /* Footer */
  .modern-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Resource grid tightens */
  .resource-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .resource-card { padding: 18px 18px 16px; }

  /* Forms — 2 columns max */
  form .form-row, form [style*="grid-template-columns"] { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }

  /* Featured listings carousel — slight shrink */
  .featured-listing-card { flex: 0 0 300px; }
}

/* ── PHONE / LARGE MOBILE (≤768px) ── */
@media (max-width: 768px) {
  /* Body scroll lock when menu open */
  body.menu-open { overflow: hidden; }

  /* Header & nav */
  .modern-header { padding: 12px 5%; }
  .modern-brand img { max-height: 52px; }
  .header-phone { display: none; }
  .mobile-menu-toggle { display: block; margin-left: auto; }

  /* Hero — full viewport on phone */
  .modern-hero { min-height: auto; height: auto; padding: 120px 5% 70px !important; }
  .modern-hero-content { padding-top: 0; }
  .modern-hero-title { font-size: clamp(1.7rem, 7.5vw, 2.6rem); line-height: 1.15; }
  .modern-hero-subtitle { font-size: 1rem; line-height: 1.55; }
  .modern-hero .hero-featured-cta,
  .modern-hero .cta-row,
  .recruit-cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 24px auto 0;
  }
  .modern-hero .modern-btn,
  .resource-cta .modern-btn { width: 100%; padding: 14px 24px; }

  /* Sections */
  .modern-section { padding: 55px 5%; }
  .modern-section-title { font-size: clamp(1.5rem, 6vw, 2.2rem); margin-bottom: 8px; }
  .modern-section-subtitle { font-size: 0.98rem; margin-bottom: 32px; }

  /* Grids collapse to single column */
  .modern-grid { grid-template-columns: 1fr; gap: 20px; }
  .modern-card { padding: 28px 22px; }
  .modern-card img { aspect-ratio: 16/10; object-fit: cover; }
  .modern-card h3 { font-size: 1.35rem; }
  .modern-card p { font-size: 0.95rem; }

  /* Split — reduce gap, tighten image */
  .modern-split { gap: 28px; }
  .modern-split-content h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .modern-split-content p { font-size: 0.98rem; }

  /* Footer */
  .modern-footer { padding: 44px 5% 26px; }
  .modern-footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .modern-footer-brand img { height: 64px !important; }
  .modern-footer h4 { font-size: 1rem; }
  .modern-footer-bottom { font-size: 0.82rem; }

  /* Compliance block stacks vertically */
  .compliance-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0;
  }
  .compliance-licenses { font-size: 0.85rem; }
  .compliance-logos { gap: 12px; }
  .compliance-logo { height: 48px; }
  .compliance-logo svg { height: 36px; }

  /* Resources */
  .resource-grid { grid-template-columns: 1fr; gap: 12px; }
  .resource-section h2 { font-size: 1.4rem; }
  .resource-section .section-lead { font-size: 0.92rem; }
  .resource-cta { padding: 44px 6%; margin: 20px 3% 0; }
  .resource-cta h3 { font-size: 1.5rem; }
  .resource-cta p { font-size: 0.95rem; }
  .resource-cta .cta-row { flex-direction: column; width: 100%; gap: 10px; }
  .resource-disclaimer { padding: 16px 18px; font-size: 0.85rem; margin: 30px 2% 0; }

  /* Forms — single column, larger tap targets */
  form .form-row,
  form [style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 14px !important; }
  form input,
  form select,
  form textarea { font-size: 16px !important; padding: 14px !important; min-height: 48px; } /* 16px prevents iOS zoom */
  form label { font-size: 0.92rem; }
  form button[type="submit"],
  form .modern-btn { width: 100%; padding: 14px 24px; }

  /* Featured listings carousel */
  .featured-listings-section { padding: 50px 0 40px; }
  .featured-listings-header { padding: 0 6%; margin-bottom: 28px; }
  .featured-listing-card { flex: 0 0 82%; }
  .featured-carousel-wrapper { padding: 0 6%; }
  .carousel-btn { width: 40px; height: 40px; }

  /* Ensure all tap targets ≥ 44px */
  .modern-btn, .modern-btn.secondary, a.resource-card, .modern-card { min-height: 44px; }
}

/* ── SMALL PHONE (≤480px) ── */
@media (max-width: 480px) {
  .modern-header { padding: 10px 4%; }
  .modern-brand img { max-height: 44px; }

  .modern-hero { padding: 110px 5% 55px !important; }
  .modern-hero-title { font-size: clamp(1.5rem, 8vw, 2.2rem); letter-spacing: -0.01em; }
  .modern-hero-subtitle { font-size: 0.95rem; }

  .modern-section { padding: 44px 5%; }
  .modern-section-title { font-size: clamp(1.35rem, 6.5vw, 1.9rem); }

  .modern-card { padding: 22px 18px; }
  .modern-card h3 { font-size: 1.2rem; }

  .modern-btn, .modern-btn.secondary { padding: 12px 22px; font-size: 0.85rem; letter-spacing: 1px; }

  .resource-cta { padding: 36px 6%; border-radius: var(--radius-md); }
  .resource-cta h3 { font-size: 1.3rem; }

  .compliance-logo { height: 44px; }
  .compliance-logo svg { height: 32px; }
  .compliance-licenses { font-size: 0.8rem; }

  .modern-footer { padding: 36px 5% 22px; }
  .modern-footer-brand img { height: 56px !important; }
  .modern-footer-bottom p { font-size: 0.78rem; line-height: 1.6; }

  /* Hide featured badge price overflow */
  .featured-listing-badge { font-size: 0.68rem; padding: 5px 10px; }
  .featured-listing-price { font-size: 1.3rem; }
}

/* ── PRINT ── */
@media print {
  .modern-header, .modern-footer, .mobile-menu-toggle,
  .resource-cta, .modern-hero-overlay { display: none !important; }
  .modern-hero { min-height: auto; padding: 20px 0; background: none; }
  body { background: #fff; color: #000; }
  .modern-section { padding: 20px 0; page-break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
}

/* ── Spanish translate toggle button ── */
.translate-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(193, 171, 109, 0.4);
  border-radius: 999px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  padding: 7px 12px 7px 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  font-family: inherit;
  text-transform: uppercase;
  white-space: nowrap;
}
.translate-toggle:hover,
.translate-toggle:focus-visible {
  background: var(--color-primary);
  color: var(--color-darkest);
  border-color: var(--color-primary);
}
.translate-toggle svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
/* Hide Google Translate's default top banner so the only control is our button */
body > .skiptranslate,
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.goog-te-gadget { font-size: 0; }
@media (max-width: 768px) {
  .translate-toggle { padding: 6px 10px; font-size: 0.75rem; }
  .translate-toggle svg { width: 12px; height: 12px; }
}

/* ── Reduced motion preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════════════════
   UI/UX v2 polish bundle (Apr 24, 2026)
   ════════════════════════════════════════════════════════════════════ */

/* (a) Homepage hero CTA alignment — headline is left-aligned, so CTAs match */
.modern-hero .hero-featured-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 30px;
}

/* (b) Stronger Listings carousel/showcase card text overlay
   Photos vary in brightness; force a dark gradient at the bottom 50% so
   price/status/address always have ≥4.5:1 contrast. */
.idx-listings-carousel .listing-card,
[class*="IDX-showcase"] .IDX-resultCell,
[class*="IDX-showcase"] [class*="resultCell"],
.featured-carousel-track [class*="card"] {
  position: relative;
}
.idx-listings-carousel .listing-card::after,
[class*="IDX-showcase"] .IDX-resultCell::after,
[class*="IDX-showcase"] [class*="resultCell"]::after,
.featured-carousel-track [class*="card"]::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

/* (c) Properties page filter labels — give them breathing room so they aren't clipped */
.idx-search-filters label,
[class*="IDX-search"] label,
form[class*="filter"] label {
  display: block;
  margin-top: 6px;
  margin-bottom: 4px;
}

/* (d) Floating Text Us / Call Now buttons — match brand palette
   The widget renders bright green by default; restyle to gold/black. */
[class*="floating"][class*="text"],
.floating-call-btn,
.floating-text-btn,
button[aria-label*="Text" i][class*="floating"],
button[aria-label*="Call" i][class*="floating"] {
  background: var(--color-dark) !important;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary) !important;
}
[class*="floating"][class*="text"]:hover,
.floating-call-btn:hover,
.floating-text-btn:hover {
  background: var(--color-primary) !important;
  color: var(--color-dark) !important;
}

/* Generic catch-all for the green chat-bubble / call buttons that show up bottom-right */
button[style*="background: rgb(34, 197, 94)" i],
button[style*="background-color: rgb(34, 197, 94)" i],
button[style*="background: #22c55e" i],
a[style*="background: rgb(34, 197, 94)" i],
a[style*="background: #22c55e" i] {
  background: var(--color-dark) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

/* (e) Strengthen MORE dropdown active state so it's obvious when on a sub-page */
.modern-nav .dropdown > a.active::after,
.modern-nav .dropdown.has-active-child > a::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  margin-top: 4px;
}

/* (f) Force-disable the broken animate-on-scroll on critical above-fold sections.
   Belt-and-suspenders so even if the JS observer misfires, content is visible. */
.modern-hero .animate-on-scroll,
.modern-hero-content,
.modern-section:first-of-type .animate-on-scroll {
  opacity: 1 !important;
  transform: none !important;
}


/* ════════════════════════════════════════════════════════════════════
   Light-hero pages (blog index + all blog posts):
   The hero behind the navbar is cream, not a dark image — so the default
   transparent header would look invisible. Force the dark navbar styling
   from page load instead of waiting for scroll.
   ════════════════════════════════════════════════════════════════════ */
body.light-hero .modern-header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-bottom: 1px solid rgba(193, 171, 109, 0.3);
  padding: 15px 5%;
}
body.light-hero .modern-brand img {
  height: 70px;
}

