/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://ubapressurewashingcom.bigscoots-staging.com
 Description:  Hello Elementor Child Theme for UBA Pressure Washing
 Author:       Sozo Marketing
 Template:     hello-elementor
 Version:      1.0.1
 Text Domain:  hello-elementor-child
*/

/* Global: sticky nav */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999;
}
.admin-bar .site-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px !important;
  }
}

/* ============= MOBILE NAV / HAMBURGER ============= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1.5px solid var(--rule-strong, rgba(0,0,0,.22));
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink, #000);
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
  width: 100%;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
}

/* Drawer backdrop */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0);
  transition: background .25s ease;
  pointer-events: none;
}
.nav-mobile.open {
  background: rgba(0,0,0,.45);
  pointer-events: auto;
}

/* Drawer panel */
.nav-mobile-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--paper, #fff);
  padding: 72px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.nav-mobile.open .nav-mobile-inner {
  transform: translateX(0);
}

/* Drawer nav links */
.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-mobile nav a {
  font-family: var(--ff-display, 'Roboto Slab', Georgia, serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink, #000);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule, rgba(0,0,0,.1));
  display: block;
  transition: color .15s, padding-left .15s;
}
.nav-mobile nav a:first-child {
  border-top: 1px solid var(--rule, rgba(0,0,0,.1));
}
.nav-mobile nav a:hover {
  color: var(--c-primary, #bf0a30);
  padding-left: 6px;
}

/* Drawer CTA area */
.nav-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.nav-mobile-cta .btn {
  text-align: center;
  width: 100%;
  justify-content: center;
}
.nav-mobile-phone {
  display: block;
  text-align: center;
  font-family: var(--ff-display, 'Roboto Slab', Georgia, serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink, #000);
  padding: 12px;
  border: 1.5px solid var(--rule-strong, rgba(0,0,0,.22));
  border-radius: 10px;
  transition: color .15s, border-color .15s;
}
.nav-mobile-phone:hover {
  color: var(--c-primary, #bf0a30);
  border-color: var(--c-primary, #bf0a30);
}

@media (max-width: 980px) {
  .nav-mobile { display: block; }
}

/* ============= SERVICES DROPDOWN ============= */
.nav-main nav .has-dropdown {
  position: relative;
}
.nav-main nav .nav-parent {
  display: flex;
  align-items: center;
  gap: 5px;

  font-family: var(--ff-display, 'Roboto Slab', Georgia, serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #000);
  cursor: pointer;
}

/* CSS chevron — no character, no baseline shift */
.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.nav-caret::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.has-dropdown:hover .nav-caret::after {
  transform: rotate(-135deg);
}

/* Dropdown panel — centered under Services */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 196px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 10000;
  overflow: hidden;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}
.nav-dropdown a {
  display: block !important;
  padding: 11px 18px !important;
  font-size: 13.5px !important;
  border-bottom: 1px solid rgba(0,0,0,.07) !important;
  white-space: nowrap;
  color: var(--ink) !important;
}
.nav-dropdown a:last-child {
  border-bottom: none !important;
}
.nav-dropdown a:hover {
  background: rgba(191,10,48,.05);
  color: var(--c-primary) !important;
}

/* ============= MOBILE NAV GROUP (details/summary) ============= */
.nav-mobile-group {
  border-bottom: 1px solid var(--rule, rgba(0,0,0,.1));
}
.nav-mobile-group summary {
  font-family: var(--ff-display, 'Roboto Slab', Georgia, serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink, #000);
  padding: 14px 0;
  border-top: 1px solid var(--rule, rgba(0,0,0,.1));
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  transition: color .15s;
  user-select: none;
}
.nav-mobile-group summary::-webkit-details-marker { display: none; }
.nav-mobile-group summary::marker { content: none; }
.nav-mobile-group summary::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-right: 2px;
  margin-top: -3px;
}
.nav-mobile-group[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.nav-mobile-group[open] summary {
  color: var(--c-primary, #bf0a30);
}
/* Sub-links inside the group */
.nav-mobile-group a {
  display: block !important;
  font-family: var(--ff-display, 'Roboto Slab', Georgia, serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2, #444) !important;
  padding: 11px 0 11px 16px !important;
  border-bottom: 1px solid var(--rule, rgba(0,0,0,.07)) !important;
  border-top: none !important;
  transition: color .15s, padding-left .15s !important;
}
.nav-mobile-group a:last-child {
  border-bottom: none !important;
}
.nav-mobile-group a:hover {
  color: var(--c-primary, #bf0a30) !important;
  padding-left: 22px !important;
}
