/* ─────────────────────────────────────────────────────────────────────────────
   nav.css — shared navigation for eviehansenrealtor.com
   Edit this file to update the nav across every page at once.
───────────────────────────────────────────────────────────────────────────── */

/* ── BASE NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem; height: 80px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 30px rgba(0,0,0,0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav-logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.3; }
.nav-logo .name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; color: #1A1215; font-weight: 500; letter-spacing: 0.04em; }
.nav-logo .tagline { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: #C41230; margin-top: 2px; }

/* ── DESKTOP LINKS ── */
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { display: flex; align-items: center; height: 80px; }
.nav-links a { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: #7A6668; font-weight: 500; transition: color 0.25s ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #C41230; }

/* ── CTA BUTTON ── */
.nav-cta { background: #C41230 !important; color: #fff !important; padding: 0.6rem 1.4rem !important; border-radius: 2px; }
.nav-cta:hover { background: #8B0D22 !important; color: #fff !important; }

/* ── DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  /* line-height matches other links so baseline is identical */
  line-height: 1;
}
.dropdown-menu {
  position: absolute;
  /* top:100% puts menu flush with bottom of nav — no gap to break hover */
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 225px;
  list-style: none;
  margin: 0; padding: 0;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13);
  border-top: 2px solid #C41230;
  /* padding-top creates the visual gap while keeping hover area continuous */
  padding-top: 10px;
  padding-bottom: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(-4px);
  z-index: 1001;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 1.3rem !important;
  font-size: 0.67rem !important;
  letter-spacing: 0.11em !important;
  text-transform: uppercase;
  color: #7A6668 !important;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  background: none !important;
  transition: color 0.2s ease, background 0.2s ease;
}
.dropdown-menu a:hover, .dropdown-menu a.active { color: #C41230 !important; background: #FAF7F7 !important; }
.dropdown-menu a i { width: 14px; text-align: center; color: #C41230; flex-shrink: 0; }

/* ── HAMBURGER ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span { width: 24px; height: 2px; background: #1A1215; display: block; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV (full-screen dark overlay) ── */
.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,12,8,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-nav > a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease;
}
.mobile-nav > a:hover, .mobile-nav > a.active { color: #E05C72; }
.mobile-sub-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: -0.6rem;
  margin-top: 0.3rem;
}
.mobile-sub {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 1.25rem !important;
  color: rgba(255,255,255,0.6) !important;
  text-decoration: none;
  transition: color 0.25s ease;
}
.mobile-sub:hover, .mobile-sub.active { color: #E05C72 !important; }
.mobile-cta {
  background: #C41230 !important;
  color: #fff !important;
  padding: 0.8rem 2.5rem !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.5rem;
  text-decoration: none;
}
.mobile-cta:hover { background: #8B0D22 !important; }

/* ── MOBILE NAV SOCIALS (home page only, injected by nav.js) ── */
.mobile-nav-socials {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.mobile-nav-socials a {
  font-size: 1.3rem !important;
  color: rgba(255,255,255,0.4) !important;
  text-decoration: none;
  transition: color 0.25s ease;
}
.mobile-nav-socials a:hover { color: #C41230 !important; }

/* ── RESPONSIVE BREAKPOINTS ── */
@media (max-width: 1280px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  nav { padding: 0 1.2rem; }
  .mobile-nav > a { font-size: 1.5rem; }
  .mobile-sub { font-size: 1.1rem !important; }
}
