/* Custom nav overrides — transparent on top, white on scroll, full-width */

/* Hide any leftover Elementor header output */
body > header.elementor-location-header,
.elementor-location-header {
  display: none !important;
}

/* Push body down by nav height so content isn't hidden under fixed nav */
body {
  padding-top: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 18px 0;
}

.site-nav.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.site-nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav__logo a {
  display: block;
  line-height: 0;
}

.site-nav__logo img {
  display: block;
  height: 60px;
  width: auto;
  transition: opacity 0.25s ease;
}

.site-nav__logo .logo-scrolled { display: none; }
.site-nav.scrolled .site-nav__logo .logo-default { display: none; }
.site-nav.scrolled .site-nav__logo .logo-scrolled { display: block; }

.site-nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.site-nav__menu > li {
  position: relative;
}

.site-nav__menu > li > a {
  display: inline-block;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav.scrolled .site-nav__menu > li > a {
  color: #1e2a3b;
}

.site-nav__menu > li > a:hover,
.site-nav__menu > li.is-active > a {
  color: #c9a14a;
}

.site-nav__menu .caret {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  transform: translateY(-1px);
}

.site-nav__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  min-width: 240px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10;
}

.site-nav__menu > li:hover > .site-nav__submenu,
.site-nav__menu > li:focus-within > .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__submenu a {
  display: block;
  padding: 10px 20px;
  color: #1e2a3b;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav__submenu a:hover {
  background: #f5f3ee;
  color: #c9a14a;
}

.site-nav__cta {
  flex-shrink: 0;
}

.site-nav__cta a {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid #c9a14a;
  color: #c9a14a;
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: none;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.site-nav__cta a:hover {
  background: #c9a14a;
  color: #ffffff;
}

.site-nav.scrolled .site-nav__cta a {
  border-color: #c9a14a;
  color: #c9a14a;
}
.site-nav.scrolled .site-nav__cta a:hover {
  background: #c9a14a;
  color: #ffffff;
}

/* Burger */
.site-nav__burger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: #ffffff;
}
.site-nav.scrolled .site-nav__burger { color: #1e2a3b; }

.site-nav__burger svg { width: 28px; height: 28px; display: block; }

/* Mobile */
@media (max-width: 1024px) {
  .site-nav__menu,
  .site-nav__cta {
    display: none;
  }
  .site-nav__burger { display: inline-flex; }

  .site-nav.is-open .site-nav__menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    padding: 16px 0;
    gap: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .site-nav.is-open .site-nav__menu > li { width: 100%; }
  .site-nav.is-open .site-nav__menu > li > a {
    color: #1e2a3b;
    padding: 14px 32px;
    width: 100%;
  }
  .site-nav.is-open .site-nav__submenu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f5f3ee;
    padding: 4px 0;
    border-radius: 0;
  }
  .site-nav.is-open .site-nav__submenu a { padding-left: 48px; }

  .site-nav.is-open .site-nav__cta {
    display: block;
    padding: 12px 32px;
  }
  .site-nav.is-open .site-nav__cta a { display: block; text-align: center; }
}

@media (max-width: 600px) {
  .site-nav__logo img { height: 48px; }
  .site-nav__inner { padding: 0 20px; }
}

/* ===== City-page hero: kill the negative margin-top + force top padding
   so content clears the fixed nav. The per-page post CSS files set
   margin-top:-10% and padding:120px 0px 90px 0px on the hero section
   (element id 3fad89f / 5ce8b08a etc.). We override both. ===== */
.elementor [data-elementor-type="wp-page"] > section.elementor-top-section.elementor-section-height-min-height:first-of-type,
.elementor [class*="elementor-"] > section.elementor-top-section.elementor-section-height-min-height:first-child,
section.elementor-top-section.elementor-section-height-min-height:first-of-type {
  margin-top: 0 !important;
  padding-top: 90px !important;
  padding-bottom: 60px !important;
}

/* Catch-all by element id used across every city post CSS */
.elementor-element.elementor-element-3fad89f,
.elementor-element.elementor-element-5ce8b08a {
  margin-top: 0 !important;
  padding-top: 90px !important;
}

@media (max-width: 1024px) {
  .elementor [data-elementor-type="wp-page"] > section.elementor-top-section.elementor-section-height-min-height:first-of-type,
  section.elementor-top-section.elementor-section-height-min-height:first-of-type,
  .elementor-element.elementor-element-3fad89f {
    margin-top: 0 !important;
    padding-top: 90px !important;
  }
}

@media (max-width: 767px) {
  .elementor [data-elementor-type="wp-page"] > section.elementor-top-section.elementor-section-height-min-height:first-of-type,
  section.elementor-top-section.elementor-section-height-min-height:first-of-type,
  .elementor-element.elementor-element-3fad89f {
    margin-top: 0 !important;
    padding-top: 90px !important;
  }
}

/* ===== Hero services list (on city pages) ===== */
.hero-services-list {
  margin: 18px 0 24px;
}

.hero-services-list__label {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 12px;
  opacity: 0.85;
}

.hero-services-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.hero-services-list__items li a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.hero-services-list__items li a:hover {
  background: #c9a14a;
  border-color: #c9a14a;
  color: #ffffff;
}

@media (max-width: 600px) {
  .hero-services-list__label { font-size: 12px; letter-spacing: 1px; }
  .hero-services-list__items li a { font-size: 12.5px; padding: 6px 12px; }
}
