/*
Theme Name: Idaho Lifestyle Properties
Theme URI: https://cdalife.com
Author: Idaho Lifestyle Properties
Author URI: https://cdalife.com
Description: Custom real estate theme for Idaho Lifestyle Properties - Coeur d'Alene, Idaho.
Version: 3.0.0
License: Private
Text Domain: idaho-lifestyle-properties
Tags: real-estate, idx, custom-header, full-width-template
*/

/* =========================================================
   CSS VARIABLES — BLUE LAKE PALETTE
   ========================================================= */
:root {
  --forest:    #1A3A5C;
  --pine:      #2A5F8F;
  --sage:      #5B9EC9;
  --lake:      #3A7DBF;
  --sky:       #6BAED6;
  --cream:     #F5F7FA;
  --sand:      #DDE5EF;
  --gold:      #C4973A;
  --gold-lt:   #E8BA5E;
  --white:     #FFFFFF;
  --charcoal:  #1A2433;
  --mid-gray:  #6B7A8D;
  --light-gray:#EEF2F7;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-accent:  'Montserrat', sans-serif;

  --radius:    8px;
  --shadow-sm: 0 2px 8px rgba(26,58,92,0.08);
  --shadow-md: 0 6px 24px rgba(26,58,92,0.14);
  --shadow-lg: 0 16px 48px rgba(26,58,92,0.18);
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--forest);
  margin-bottom: 0.75rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }
p  { margin-bottom: 1.2em; color: #445566; }
.section-eyebrow {
  font-family: var(--font-accent);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 0.6rem;
}
.section-title { margin-bottom: 0.5rem; }
.section-subtitle {
  font-size: 1.05rem; color: var(--mid-gray);
  margin-bottom: 2.5rem; max-width: 600px; line-height: 1.7;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.bg-cream { background: var(--cream); }
.bg-forest { background: var(--forest); }
.bg-lake   { background: var(--lake); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-family: var(--font-accent); font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover {
  background: var(--gold-lt); border-color: var(--gold-lt);
  color: var(--forest); transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: var(--white); color: var(--forest); border-color: var(--white); }
.btn-dark { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn-dark:hover { background: var(--pine); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* =========================================================
   HEADER
   ========================================================= */
#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: 80px; transition: var(--transition);
  overflow: visible;
}
#site-header.transparent {
  background: linear-gradient(to bottom, rgba(26,58,92,0.55) 0%, transparent 100%);
}
#site-header.scrolled {
  background: rgba(26,58,92,0.97);
  backdrop-filter: blur(12px); box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 80px;
  max-width: 1240px; margin: 0 auto;
  overflow: visible;
}

/* ── Logo — single authoritative block ── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
  opacity: 1;
  visibility: visible;
}
.site-logo img {
  height: 64px;
  width: auto;
  display: block;
}
.site-logo .logo-text { display: flex; flex-direction: column; }
.site-logo .logo-name {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; color: var(--white); line-height: 1.15;
}
.site-logo .logo-tagline {
  font-family: var(--font-accent); font-size: 0.6rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-lt);
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-accent); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.9); padding: 8px 12px;
  border-radius: var(--radius); transition: var(--transition); white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-lt); background: rgba(255,255,255,0.1); }
.nav-cta { background: var(--gold) !important; color: var(--white) !important; padding: 9px 18px !important; margin-left: 8px; }
.nav-cta:hover { background: var(--gold-lt) !important; color: var(--forest) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* =========================================================
   HERO — flex-column keeps stats BELOW buttons, never overlapping
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 80px;
}

/* ── Slideshow ── */
.hero-slideshow {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }

/* Overlay */
.hero-slideshow::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    150deg,
    rgba(26,58,92,0.70) 0%,
    rgba(58,125,191,0.40) 55%,
    rgba(0,0,0,0.25) 100%
  );
  z-index: 1;
}

/* Legacy .hero-bg for area guide pages */
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(26,58,92,0.68) 0%, rgba(58,125,191,0.38) 55%, rgba(0,0,0,0.25) 100%);
}

/* Content fills remaining space, centered vertically */
.hero-content {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 760px;
  padding: 60px 24px 48px;
  margin-left: 8%;
}
.hero-eyebrow {
  font-family: var(--font-accent); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-lt);
  display: flex; align-items: center; gap: 12px; margin-bottom: 1.2rem;
}
.hero-eyebrow::before {
  content: ''; width: 32px; height: 1.5px;
  background: var(--gold-lt); flex-shrink: 0;
}
.hero h1 { color: var(--white); margin-bottom: 1.2rem; text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.hero h1 em { font-style: italic; color: var(--gold-lt); }
.hero-subtitle {
  font-size: 1.15rem; color: rgba(255,255,255,0.92);
  margin-bottom: 2rem; max-width: 540px; line-height: 1.65;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Slideshow dots */
.hero-dots {
  position: absolute; bottom: 100px; right: 40px;
  z-index: 4; display: flex; flex-direction: column; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--transition); border: none; padding: 0;
}
.hero-dot.active { background: var(--gold-lt); transform: scale(1.3); }

/* Stats bar — outside the hero section, flows naturally below */
.hero-stats {
  background: rgba(26,58,92,0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stats-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 24px; display: flex; gap: 0;
}
.hero-stat {
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 20px 28px; flex: 1; text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat .stat-number {
  font-family: var(--font-display); font-size: 1.9rem;
  font-weight: 700; color: var(--gold-lt); line-height: 1;
}
.hero-stat .stat-label {
  font-family: var(--font-accent); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); margin-top: 4px;
}

/* =========================================================
   SEARCH BAR
   ========================================================= */
.search-section { background: var(--forest); padding: 36px 0; }
.search-bar-wrapper {
  display: flex; max-width: 900px; margin: 0 auto;
  box-shadow: var(--shadow-lg); border-radius: var(--radius); overflow: hidden;
}
.search-bar-wrapper select,
.search-bar-wrapper input {
  padding: 18px 20px; font-family: var(--font-body); font-size: 0.95rem;
  border: none; outline: none; background: var(--white); color: var(--charcoal);
}
.search-bar-wrapper select { min-width: 180px; border-right: 1px solid var(--sand); cursor: pointer; }
.search-bar-wrapper input { flex: 1; }
.search-bar-wrapper input::placeholder { color: var(--mid-gray); }
.search-bar-wrapper .btn-search {
  padding: 18px 32px; background: var(--gold); color: var(--white);
  border: none; font-family: var(--font-accent); font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.search-bar-wrapper .btn-search:hover { background: var(--gold-lt); color: var(--forest); }
.search-tabs {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.search-tab {
  font-family: var(--font-accent); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7);
  padding: 8px 20px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer; transition: var(--transition); background: transparent;
}
.search-tab.active, .search-tab:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* =========================================================
   PROPERTY CARDS
   ========================================================= */
.property-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.property-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .property-card-img img { transform: scale(1.06); }
.property-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--white);
  font-family: var(--font-accent); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 30px;
}
.property-badge.waterfront { background: var(--lake); }
.property-badge.new        { background: var(--pine); }
.property-save {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; background: rgba(255,255,255,0.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); border: none; color: var(--mid-gray);
}
.property-save:hover { background: var(--white); color: #e53e3e; }
.property-card-body { padding: 20px; }
.property-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--forest); margin-bottom: 4px; }
.property-address { font-size: 0.88rem; color: var(--mid-gray); margin-bottom: 14px; display: flex; align-items: center; gap: 4px; }
.property-specs { display: flex; gap: 16px; padding-top: 14px; border-top: 1px solid var(--light-gray); }
.property-spec { display: flex; align-items: center; gap: 5px; font-size: 0.82rem; color: var(--mid-gray); font-family: var(--font-accent); font-weight: 600; }

/* =========================================================
   AREA GUIDE CARDS — min-height prevents cutoff
   ========================================================= */
.area-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 3/4;
  min-height: 300px; cursor: pointer;
  display: block; text-decoration: none;
}
.area-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.area-card:hover img { transform: scale(1.08); }
.area-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,58,92,0.92) 0%, rgba(0,0,0,0.08) 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; transition: var(--transition);
}
.area-card-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); font-weight: 700; margin-bottom: 4px; }
.area-card-desc { font-size: 0.85rem; color: rgba(255,255,255,0.82); margin-bottom: 14px; display: none; }
.area-card:hover .area-card-desc { display: block; }
.area-card-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-lt); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--gold); position: relative; }
.testimonial-card::before { content: '\201C'; font-family: var(--font-display); font-size: 5rem; color: var(--sand); position: absolute; top: 8px; left: 24px; line-height: 1; }
.testimonial-text { font-size: 1rem; line-height: 1.75; color: #556; font-style: italic; margin-bottom: 20px; padding-top: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.testimonial-name { font-family: var(--font-accent); font-size: 0.85rem; font-weight: 700; color: var(--forest); }
.testimonial-location { font-size: 0.78rem; color: var(--mid-gray); }
.stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 12px; }

/* =========================================================
   AGENT SECTION
   ========================================================= */
.agent-section { background: linear-gradient(135deg, var(--forest) 0%, var(--pine) 100%); padding: 80px 0; }
.agent-inner { display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.agent-photo-wrap { position: relative; }
.agent-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.agent-credentials { position: static; margin-top: 16px; background: var(--gold); color: var(--white); padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow-md); text-align: center; }
.agent-credentials .cred-number { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.agent-credentials .cred-label { font-family: var(--font-accent); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }
.agent-content h2 { color: var(--white); }
.agent-content .section-eyebrow { color: var(--gold-lt); }
.agent-content p { color: rgba(255,255,255,0.85); }
.agent-skills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.agent-skill { background: rgba(255,255,255,0.12); color: var(--white); font-family: var(--font-accent); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; padding: 7px 16px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.25); }
.agent-contact { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* =========================================================
   MARKET STATS
   ========================================================= */
.market-stats { background: var(--cream); }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); border-top: 3px solid var(--gold); }
.stat-card .stat-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--forest); line-height: 1; margin-bottom: 6px; }
.stat-card .stat-title { font-family: var(--font-accent); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 6px; }
.stat-card .stat-change { font-size: 0.82rem; font-weight: 600; color: var(--pine); }
.stat-card .stat-change.down { color: #c53030; }

/* =========================================================
   IDX SECTION
   ========================================================= */
.idx-section { background: var(--white); }
.idx-wrapper { min-height: 500px; border: 2px dashed var(--sand); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; text-align: center; background: var(--light-gray); }
.idx-wrapper p { color: var(--mid-gray); margin-bottom: 20px; }
.idx-active .idx-wrapper { display: block; min-height: auto; border: none; background: none; padding: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer { background: var(--charcoal); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 280px 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .footer-logo img { height: 48px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: var(--transition); font-size: 0.9rem; }
.footer-social a:hover { background: var(--gold); color: var(--white); }
.footer-col h4 { color: var(--white); font-family: var(--font-accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-lt); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-lt); }
.equal-housing { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.contact-icon { width: 44px; height: 44px; background: var(--light-gray); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--forest); font-size: 1.1rem; }
.contact-label { font-family: var(--font-accent); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid-gray); }
.contact-value { font-size: 0.95rem; color: var(--charcoal); font-weight: 500; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--sand); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--charcoal);
  background: var(--white); transition: var(--transition);
  margin-bottom: 16px; outline: none; display: block;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(91,158,201,0.15); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* =========================================================
   LAKE FEATURE
   ========================================================= */
.lake-feature { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 500px; display: flex; align-items: flex-end; }
.lake-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lake-feature-content { position: relative; z-index: 2; background: linear-gradient(to top, rgba(26,58,92,0.95), transparent); padding: 48px; width: 100%; }
.lake-feature-content h3 { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.lake-feature-content p  { color: rgba(255,255,255,0.85); margin-bottom: 20px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .agent-inner { grid-template-columns: 1fr; }
  .agent-photo-wrap { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 80px; left: 0; right: 0;
    background: var(--forest); padding: 16px; gap: 4px;
    z-index: 999; box-shadow: var(--shadow-lg);
  }
  .hamburger { display: flex; }
  .hero { min-height: calc(100vh - 80px); }
  .hero-content { margin: 0; padding: 40px 24px 48px; }
  .hero-stats-inner { flex-wrap: wrap; }
  .hero-stat { min-width: 50%; }
  .hero-dots { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .search-bar-wrapper { flex-direction: column; }
  .search-bar-wrapper select { min-width: auto; }
  .agent-credentials { bottom: -12px; right: -8px; padding: 14px 16px; }
  .site-logo img { height: 52px; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

/* =========================================================
   UTILITY
   ========================================================= */
.divider-gold { width: 56px; height: 3px; background: var(--gold); margin: 16px 0 24px; }
.divider-gold.center { margin: 16px auto 24px; }
.tag { display: inline-block; background: var(--light-gray); color: var(--mid-gray); font-family: var(--font-accent); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 30px; }
/* ── SITE-WIDE NAV: Alternating item backgrounds ── */
#mainNav > ul > li:nth-child(odd) > a {
    background-color: #1e2f52;
}
#mainNav > ul > li:nth-child(even) > a {
    background-color: #152240;
}
#mainNav > ul > li > a:hover {
    background-color: #C9A84C !important;
    color: #1a2744 !important;
}
/* ── SITE-WIDE NAV: Alternating item backgrounds ── */
#mainNav > ul > li:nth-child(odd) > a {
    background-color: #1e2f52;
}
#mainNav > ul > li:nth-child(even) > a {
    background-color: #152240;
}
#mainNav > ul > li > a:hover {
    background-color: #C9A84C !important;
    color: #1a2744 !important;
}
/* ── Homepage: Reduce broker photo to 50% ── */
.agent-section .agent-photo-wrap {
    max-width: 50% !important;
    flex: 0 0 50% !important;
}
.agent-section .agent-photo-wrap img.agent-photo {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}
/* ── Agent photo: centered, credentials below not overlapping ── */
.agent-section .agent-photo-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    margin: 0 auto !important;
}
.agent-section .agent-photo-wrap img.agent-photo {
    width: 100% !important;
    height: auto !important;
    position: static !important;
}
.agent-section .agent-credentials {
    position: static !important;
    margin-top: 16px !important;
    width: 100% !important;
    text-align: center !important;
}
/* ── Dark navy dropdown menus ── */
ul.sub-menu {
  background-color: #0f2744 !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
}
ul.sub-menu li a { color: #ffffff !important; }
ul.sub-menu li a:hover { color: #E8BA5E !important; background: rgba(255,255,255,0.07) !important; }

/* ── Body offset for sticky phone bar + nav ── */
body { padding-top: 106px !important; }
.admin-bar body { padding-top: 138px !important; }
.hero { margin-top: 0 !important; }
/* ── Force reset any theme showing submenus open ── */
.main-nav ul,
.main-nav ul.sub-menu,
#mainNav ul,
#mainNav ul.sub-menu {
  display: none !important;
}

/* ── Show ONLY on hover ── */
.main-nav li.menu-item-has-children:hover > ul,
#mainNav li.menu-item-has-children:hover > ul {
  display: block !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 9999 !important;
  min-width: 200px !important;
  background-color: #0f2744 !important;
  border-radius: 0 0 6px 6px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
  padding: 8px 0 !important;
}

/* ── Dropdown link styling ── */
#mainNav li.menu-item-has-children > ul > li > a {
  color: #ffffff !important;
  padding: 10px 20px !important;
  display: block !important;
  font-size: 0.82rem !important;
  white-space: nowrap !important;
  background: none !important;
}
#mainNav li.menu-item-has-children > ul > li > a:hover {
  color: #E8BA5E !important;
  background: rgba(255,255,255,0.07) !important;
}

/* ── Parent items need relative positioning ── */
#mainNav li.menu-item-has-children {
  position: relative !important;
}
/* ── Dropdowns: hidden by default, show on hover only ── */
ul.sub-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 9999 !important;
  min-width: 200px !important;
  background-color: #0f2744 !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25) !important;
  padding: 8px 0 !important;
  margin-top: 0 !important;
}
li.menu-item-has-children {
  position: relative !important;
}
li.menu-item-has-children:hover > ul.sub-menu {
  display: block !important;
}
ul.sub-menu li a {
  color: #ffffff !important;
  padding: 10px 20px !important;
  display: block !important;
  font-size: 0.78rem !important;
  white-space: nowrap !important;
}
ul.sub-menu li a:hover {
  color: #E8BA5E !important;
  background: rgba(255,255,255,0.07) !important;
}