/* =========================================
   SAMWISE PLUMBING - NAVIGATION
   ========================================= */

/* Main navbar */
#header {
    background-color: #F0EBE1;
    padding: 12px 0;
    border-bottom: 1px solid rgba(32, 35, 32, 0.10);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1030;
}

/* Logo */
#header .navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 30px;
    padding: 0;
}

#header .navbar-brand img {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 55px;
    object-fit: contain;
}

/* Navigation alignment */
#header .navbar-collapse {
    justify-content: flex-end;
}

/* Navigation links */
#header .navbar-nav {
    align-items: center;
    gap: 8px;
}

#header .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: #202320;
    padding: 10px 12px;
    transition: color 0.25s ease;
}

/* Navigation hover and active states */
#header .nav-link:hover,
#header .nav-link:focus-visible,
#header .nav-link.active,
#header .nav-link[aria-current="page"] {
    color: #596447;
}

/* Dropdown menu */
#header .dropdown-menu {
    background-color: #F8F6F1;
    border: 1px solid rgba(32, 35, 32, 0.10);
    border-radius: 2px;
    padding: 8px 0;
    margin-top: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}

/* Dropdown links */
#header .dropdown-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #202320;
    padding: 10px 20px;
    transition: background-color 0.25s ease,
        color 0.25s ease;
}

#header .dropdown-item:hover,
#header .dropdown-item:focus-visible {
    background-color: #E5E6DC;
    color: #596447;
}

#header .dropdown-item.active {
    background-color: #596447;
    color: #fff;
}

/* Phone button */
#header .btn-primary {
    background-color: #596447;
    border: 1px solid #596447;
    color: #fff;
    font-family: 'Teko', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.04em;
    padding: 9px 20px 7px;
    border-radius: 2px;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

#header .btn-primary:hover,
#header .btn-primary:focus-visible {
    background-color: #424b35;
    border-color: #424b35;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Mobile menu toggle */
#header .navbar-toggler {
    border: 1px solid rgba(32, 35, 32, 0.25);
    border-radius: 2px;
    padding: 7px 10px;
    box-shadow: none;
}

#header .navbar-toggler:focus-visible {
    outline: 2px solid #596447;
    outline-offset: 3px;
}

#header .navbar-toggler-icon {
    width: 22px;
    height: 22px;
}

/* =========================================
   TABLET & MOBILE
   ========================================= */

@media (max-width: 991.98px) {

    #header {
        padding: 10px 0;
    }

    #header .navbar-brand img {
        max-width: 180px;
        max-height: 48px;
    }

    /* Collapsed navigation */
    #header .navbar-collapse {
        padding-top: 18px;
        padding-bottom: 12px;
    }

    #header .navbar-nav {
        align-items: stretch;
        gap: 0;
    }

    #header .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(32, 35, 32, 0.10);
    }

    /* Mobile dropdown */
    #header .dropdown-menu {
        margin-top: 0;
        margin-bottom: 8px;
        border: none;
        box-shadow: none;
        background-color: transparent;
        padding: 4px 0 4px 12px;
    }

    #header .dropdown-item {
        padding: 10px 12px;
    }

    /* Mobile phone button */
    #header .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        margin-top: 18px !important;
    }
}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 575.98px) {

    #header .navbar-brand img {
        max-width: 155px;
        max-height: 42px;
    }

    #header .nav-link {
        font-size: 0.9rem;
    }
}

/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    #header .nav-link,
    #header .dropdown-item,
    #header .btn-primary {
        transition: none;
    }

    #header .btn-primary:hover {
        transform: none;
    }
}