﻿/* ==========================================================================
   Custom blue theme variables
   ========================================================================== */
:root {
    --primary: #0055A4; /* Main brand blue */
    --primary-light: #007BFF; /* Hover / buttons */
    --primary-extra-light: #E6F0FA; /* Light blue-gray accents */
    --gray-light: #f8f9fa; /* Body & light sections */
    --gray-medium: #e9ecef; /* Slightly darker sections */
    --gray-border: #dee2e6; /* Card borders, dividers */
    --dark: #0a1f44;
}

/* ==========================================================================
   Global layout fixes – minimal top space
   ========================================================================== */
body {
    padding-top: 0; /* Sticky bars handle spacing */
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: var(--gray-light);
}

/* ==========================================================================
   Top Utility Bar – Blue background, pipe-separated links, contact + icons
   ========================================================================== */
.top-utility-bar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background-color: var(--primary) !important; /* Blue background */
    color: #ffffff !important;
    font-size: 0.85rem;
    line-height: 1.4;
    padding: 0.25rem 0; /* Slim height */
    border-bottom: 1px solid #004080;
}

    .top-utility-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

/* Left: Links with pipe separators */
.utility-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem; /* Space around pipes */
}

    .utility-links a {
        color: #ffffff !important;
        text-decoration: none;
        white-space: nowrap;
        transition: color 0.2s ease;
    }

        .utility-links a:hover {
            color: var(--primary-light) !important;
        }

    .utility-links .separator {
        color: #ffffff88; /* Slightly transparent white pipe */
        font-weight: bold;
        padding: 0 0.3rem; /* Centers pipe between words */
    }

/* Right: Contact info + social icons */
.utility-contact {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    white-space: nowrap;
}

.contact-info a {
    color: #ffffff !important;
    text-decoration: none;
}

    .contact-info a:hover {
        color: var(--primary-light) !important;
    }

/* Social icons */
.utility-social a {
    font-size: 1rem;
    color: #ffffff !important;
    transition: color 0.2s ease;
}

    .utility-social a:hover {
        color: var(--primary-light) !important;
    }

/* Dropdown menu – blue bg, white text, hover highlight */
.top-utility-bar .dropdown-toggle {
    color: #ffffff !important;
    background: none;
    border: none;
    padding: 0;
}

    .top-utility-bar .dropdown-toggle::after {
        color: #ffffff;
        margin-left: 0.4rem;
    }

.top-utility-bar .dropdown-menu {
    background-color: #004080 !important; /* Dark blue dropdown */
    border: none;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    font-size: 0.85rem;
}

.top-utility-bar .dropdown-item {
    color: #ffffff !important;
}

    .top-utility-bar .dropdown-item:hover,
    .top-utility-bar .dropdown-item:focus {
        background-color: var(--primary-light) !important;
        color: #ffffff !important;
    }

/* Mobile: Stack vertically, center text */
@media (max-width: 992px) {
    .top-utility-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.4rem 1rem;
        text-align: center;
    }

    .utility-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .utility-contact {
        justify-content: center;
        gap: 1rem;
    }
}

/* ==========================================================================
   Main Navbar – White bg, logo white box, tight spacing
   ========================================================================== */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 3px solid var(--primary-extra-light);
    position: sticky;
    top: 32px; /* Matches utility bar height */
    z-index: 1040;
    padding: 0.4rem 1.5rem;
    margin-top: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.navbar-brand {
    padding: 0.25rem 0;
    margin-right: 1.5rem;
}

.navbar-nav {
    margin-left: auto;
}

.nav-link {
    color: #003366 !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

    .nav-link:hover,
    .nav-link:focus {
        color: var(--primary-light) !important;
    }

    .nav-link.active {
        color: var(--primary-light) !important;
        border-bottom: 3px solid var(--primary-light);
    }

.dropdown-menu {
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.dropdown-item {
    color: #003366;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: var(--primary-extra-light);
        color: var(--primary);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23003366' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   Logo – White box, no border or shadow (clean blend into navbar)
   ========================================================================== */
.logo-container {
    background-color: #ffffff !important;
    border-radius: 8px;
    padding: 5px 10px;
    /* No border, no shadow – seamless */
}

.logo-img {
    max-height: 58px;
    width: auto;
}

/* ==========================================================================
   Hero Sections – wider, pulled up to close gap
   ========================================================================== */
.hero, .fiber-hero, .wireless-hero, .phone-hero, .fax-hero, .about-hero, .faq-hero, .links-hero, .business-hero {
    background: linear-gradient(rgba(0, 85, 164, 0.75), rgba(0, 85, 164, 0.75)), url('/Images/[your-hero-image].jpg') center/cover no-repeat;
    color: white;
    padding: 8rem 0 6rem;
    margin-top: -32px; /* Pulls up to meet navbar */
    margin-bottom: 0;
}

.container {
    max-width: 1400px; /* Wider container */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==========================================================================
   Cards & Buttons
   ========================================================================== */
.card {
    border-color: var(--gray-border);
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    background-color: #ffffff;
}

.card-header {
    background-color: var(--primary-extra-light);
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: var(--primary);
        border-color: var(--primary);
        transform: translateY(-2px);
    }

/* ==========================================================================
   Sections – alternating gray/white
   ========================================================================== */
section.bg-light {
    background-color: var(--gray-medium) !important;
}

/* ==========================================================================
   General responsive
   ========================================================================== */
@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
    }

    .hero, .fiber-hero, .wireless-hero, .phone-hero, .fax-hero, .about-hero, .faq-hero, .links-hero, .business-hero {
        padding: 6rem 0 4rem;
        margin-top: -38px;
    }
}
