/* ===== 513 Plumbing — Header & Utility Bar ===== */

header {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

/* Utility bar (above header) */
.utility-bar {
  background: var(--navy);
  padding: 10px 0;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  color: #a8bdd4;
}

.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.utility-bar a[href^="tel"] {
  color: var(--white);
  font-weight: 700;
}

.utility-bar a[href^="tel"]:hover {
  color: var(--orange);
}

@media (max-width: 768px) {
  .utility-bar { display: none; }
}

/* Main header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  height: 80px;
}

.site-header .container,
.nav-container,
.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

/* Logo */
.header-logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.header-logo .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.header-logo .brand-name .accent { color: var(--orange); }

.header-logo .brand-tag {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray);
  margin-top: 2px;
}

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 4px;
  display: block;
}

.main-nav a:hover {
  color: var(--orange);
  background: #fff5ef;
}

.main-nav a.active {
  color: var(--orange);
}

/* Services dropdown (desktop) */
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: white; border-radius: 8px; box-shadow: 0 8px 24px rgba(15,61,115,0.12); min-width: 220px; padding: 8px 0; z-index: 999; }
.dropdown-menu li { list-style: none; }
.dropdown-menu li a { display: block; padding: 10px 18px; font-size: 0.9rem; font-weight: 500; color: #0A1F33; text-decoration: none; }
.dropdown-menu li a:hover { background: #F4F6F8; color: #F26A21; }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* Header right: phone + CTA */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header-call-label {
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2px;
}

.header-phone {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.header-phone:hover {
  color: var(--orange);
}

.header-cta {
  font-family: 'Raleway', sans-serif;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta:hover,
.header-cta:focus {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* Mobile: hide desktop nav, show hamburger */
@media (max-width: 768px) {
  .main-nav ul { display: none; }
  .header-right { display: none; }
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (min-width: 769px) {
  .hamburger { display: none; }
}

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-top: 1px solid var(--border);
  z-index: 998;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 16px 0;
}

.mobile-nav a {
  display: block;
  padding: 14px 28px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-of-type { border-bottom: none; }

.mobile-nav a:hover {
  background: #fff5ef;
  color: var(--orange);
}

@media (min-width: 769px) {
  .mobile-nav { display: none !important; }
}

/* Header wrapper for sticky + mobile nav */
.header-wrap {
  position: relative;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-menu,
  .main-nav,
  .mobile-nav {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
}
@media (max-width: 768px) {
  .site-header { height: 60px; }
  .header-inner,
  .nav-container { padding: 0 12px; }
  .header-logo .brand-name { font-size: 15px; }
  .header-logo .brand-tag { display: none; }
  .hamburger { margin-left: auto; }
  .logo span { display: none; }
}
