/* Simple Roofing Header Styles */
:root {
    --sr-blue: #004a99;
    --sr-red: #e31e24;
    --sr-dark: #333333;
    --sr-light: #f8f9fa;
    --sr-white: #ffffff;
}

.sr-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
}

/* Top Bar */
.sr-top-bar {
    background-color: #000;
    color: var(--sr-white);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.sr-top-bar .container {
    /* This container no longer needs flexbox for this layout */
}

.sr-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sr-contact-info a,
.sr-contact-info-center a {
    color: var(--sr-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 19px;
    font-weight: 100;
}

/* Ensure the first contact info group doesn't have extra margin */
.sr-contact-info a {
    margin-right: 0; 
}

.sr-contact-info i {
    margin-right: 8px;
    color: var(--sr-red);
}

.sr-top-cta .btn-sr-quote {
    background-color: var(--sr-red);
    color: var(--sr-white);
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    transition: background-color 0.3s;
}

.sr-top-cta .btn-sr-quote:hover {
    background-color: #b3171b;
}

/* Main Navigation */
.sr-main-nav {
    background-color: var(--sr-white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sr-main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sr-logo img {
    width: 250px;
}

.sr-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sr-nav-menu li {
    margin-left: 25px;
}

.sr-nav-menu li a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 17px;
    transition: color 0.3s;
}

.sr-nav-menu li a:hover {
    color: var(--sr-blue);
}

.sr-nav-menu li.active a {
    color: var(--sr-red);
}

.nav-cta-btn {
    border: 2px solid var(--sr-red) !important;
    border-radius: 5px;
    padding: 8px 15px !important;
    margin-left: 10px;
    color: var(--sr-red) !important;
    display: inline-block;
}

.nav-cta-btn:hover {
    background-color: var(--sr-red) !important;
    color: var(--sr-white) !important;
}

/* Mobile Toggle */
.sr-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.sr-mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--sr-blue);
    border-radius: 3px;
    transition: 0.3s;
}

.sr-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.sr-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.sr-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}



@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .sr-logo img {
        width: 100px;
    }

    /* Sticky behavior */
    .sr-header.sticky {
        position: fixed;
        top: 0;
        width: 100%;
        animation: slideDown 0.3s ease-out;
        box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    }

    .sr-header.sticky .sr-top-bar {
        display: none;
    }

    .sr-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--sr-white);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .sr-nav-menu.active {
        display: flex;
    }

    .sr-nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .sr-nav-menu li a {
        padding: 15px 20px;
        display: block;
        text-align: left;
    }

    .sr-mobile-toggle {
        display: flex;
    }
}
@media (max-width: 580px) {
    .sr-logo img {
        width: 100px;
    }
}