/* ===== DRAIN WILLIAM PLUMBING — NAVBAR ===== */
:root {
    --nav-height: 68px;
    --util-height: 38px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Utility bar ── */
.nav-utility {
    background: var(--blue-950);
    color: rgba(255,255,255,0.75);
    font-family: var(--font-body);
    font-size: 0.75rem;
    height: var(--util-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-utility .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.util-left {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.util-left a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}
.util-left a:hover { color: #fff; }
.util-left i { font-size: 0.7rem; opacity: 0.65; }
.util-left span { display: flex; align-items: center; gap: 0.4rem; }
.util-divider { color: rgba(255,255,255,0.18); }

.util-social {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.util-social a {
    color: rgba(255,255,255,0.52);
    font-size: 0.75rem;
    transition: color 0.2s;
    text-decoration: none;
}
.util-social a:hover { color: #fff; }

/* ── Main nav ── */
.main-nav {
    background: #fff;
    height: var(--nav-height);
    border-bottom: 3px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 16px rgba(8,47,84,.10);
}
.main-nav .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    flex-shrink: 0;
}
.nav-brand img {
    height: 46px;
    width: auto;
    display: block;
}
.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-text {
    font-family: var(--font-display);
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--blue-900);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.brand-sub {
    font-family: var(--font-body);
    font-size: 0.63rem;
    color: var(--red);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    flex: 1;
    justify-content: center;
}
.nav-links li a {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 3px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    display: block;
}
.nav-links li a:hover {
    color: var(--red);
    background: transparent;
}
.nav-links li a.active {
    color: var(--red);
    font-weight: 700;
}

/* CTA cluster */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--red);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.48rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.nav-phone:hover { background: var(--red-dark); color: #fff; }
.nav-phone i { font-size: 0.8rem; }

.btn--wa.btn--sm {
    border-radius: 4px;
    background: var(--green);
    color: #04361F;
}
.btn--wa.btn--sm:hover { background: #1ec85d; color: #04361F; }

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    margin-left: auto;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blue-900);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* Mobile menu */
.nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--blue-950);
    z-index: 1100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--red); }
.nav-mobile-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0.25rem;
}
.nav-mobile-close:hover { color: #fff; }
.nav-mobile-cta {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 300px;
}
.nav-mobile-cta a {
    font-size: 1rem;
    text-align: center;
    border-radius: 4px;
    padding: 0.95rem;
    width: 100%;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .nav-utility { display: none; }
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
}
