/*--------------------------------------------------------------
# Modern Header Styles
--------------------------------------------------------------*/
.modern-header {
    font-family: 'Inter', 'Poppins', sans-serif;
    box-shadow: 0 4px 20px -2px rgba(128, 0, 32, 0.15);
    background: white;
}

.top-bar {
    background: linear-gradient(135deg, #800020 0%, #5c0018 50%, #800020 100%);
    color: white;
    font-size: 0.875rem; /* text-sm */
}

    .top-bar .contact-link {
        display: flex;
        align-items: center;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        transition: all 0.3s ease;
        font-weight: 500;
    }

        .top-bar .contact-link:hover {
            color: white;
            transform: translateY(-1px);
        }

        .top-bar .contact-link i {
            margin-right: 0.5rem; /* mr-2 */
        }

    .top-bar .action-link {
        display: flex;
        align-items: center;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.3s ease;
        padding: 0.375rem 0.75rem;
        border-radius: 0.375rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

        .top-bar .action-link i {
            margin-right: 0.375rem; /* mr-1.5 */
        }

        .top-bar .action-link:hover {
            color: white;
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
        }

    .top-bar .cta-button {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: #92400e;
        font-weight: 600;
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        border-radius: 0.375rem;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
        text-transform: uppercase;
        letter-spacing: 0.025em;
    }

        .top-bar .cta-button:hover {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(251, 191, 36, 0.4);
        }

.main-header {
    background: white;
    border-bottom: 1px solid rgba(128, 0, 32, 0.1);
}

.logo-link:hover {
    transform: scale(1.05);
    display: inline-block; /* Needed for transform to work properly */
}

.logo {
    height: 3rem; /* 48px */
    width: auto;
    object-fit: contain;
}

.navbar-nav .nav-link {
    color: #374151; /* text-gray-700 */
    font-weight: 600;
    font-size: 0.875rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: #800020; /* Burgundy */
    }

    .navbar-nav .nav-link.featured {
        color: #800020;
    }

.new-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #92400e;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
    vertical-align: middle;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.navbar-nav .dropdown-menu {
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(128, 0, 32, 0.1);
    padding: 1rem;
    margin-top: 0.25rem; /* Adjusted for Bootstrap */
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 0.75rem;
    color: #374151;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background: rgba(128, 0, 32, 0.05);
        color: #800020;
        transform: translateX(4px);
    }

    .navbar-nav .dropdown-item.featured {
        background: rgba(251, 191, 36, 0.1);
        border: 1px solid rgba(251, 191, 36, 0.2);
    }

        .navbar-nav .dropdown-item.featured:hover,
        .navbar-nav .dropdown-item.featured:focus {
            background: rgba(251, 191, 36, 0.15);
        }

.dropdown-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #800020;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: 0.5rem 0.75rem; /* Added padding for title */
}

.navbar-nav .dropdown-divider {
    border-top: 1px solid rgba(128, 0, 32, 0.1);
    margin: 0.75rem 0;
}

/* Offcanvas Mobile Menu */
.offcanvas-header {
    border-bottom: 1px solid rgba(128, 0, 32, 0.1);
    background: rgba(128, 0, 32, 0.02);
}

.offcanvas-body .nav-link { /* For mobile links inside offcanvas */
    padding: 1rem 0;
    border-bottom: 1px solid rgba(128, 0, 32, 0.1);
    font-size: 1rem;
}

.offcanvas-body .dropdown-menu { /* For mobile submenus */
    box-shadow: none;
    border: none;
    padding: 0.5rem 0 0.5rem 1rem; /* Indent submenu */
    background-color: rgba(128,0,32,0.02);
}

.offcanvas-body .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.mobile-contact {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(128, 0, 32, 0.1);
}

.mobile-contact-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

    .mobile-contact-link:hover {
        color: #800020;
    }

    .mobile-contact-link i {
        margin-right: 0.5rem;
    }

/* Ensure Bootstrap dropdowns in navbar are positioned correctly */
.navbar-nav .dropdown-menu {
    position: absolute; /* Override Bootstrap's static if needed */
}

/* Adjust offcanvas width */
#mobileMenuOffcanvas {
    width: 280px;
}

/*--------------------------------------------------------------
# Modern Professional Footer
--------------------------------------------------------------*/
footer.site-footer { /* Added class for specificity */
    font-family: 'Inter', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #343a40 0%, #800020 50%, #343a40 100%); /* Dark grey to burgundy gradient */
    color: white;
    position: relative;
    overflow: hidden; /* For pseudo-elements */
}

    footer.site-footer::before { /* Decorative pattern */
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: radial-gradient(circle at 15% 25%, rgba(255,255,255,0.05) 2px, transparent 0), radial-gradient(circle at 85% 75%, rgba(255,255,255,0.05) 2px, transparent 0);
        background-size: 50px 50px;
        opacity: 0.5;
        pointer-events: none;
    }

    footer.site-footer h6 {
        font-family: 'Montserrat', sans-serif;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #f8f9fa; /* Lighter for headings */
        margin-bottom: 1rem; /* mb-4 */
    }

    footer.site-footer a {
        transition: color 0.3s ease, transform 0.3s ease;
        color: #adb5bd; /* Lighter gray for links */
        text-decoration: none;
    }

        footer.site-footer a:hover {
            color: #fbbf24; /* Gold hover for links */
            transform: translateY(-1px);
        }

    footer.site-footer .bi {
        transition: transform 0.3s ease;
    }

    footer.site-footer a:hover .bi {
        transform: scale(1.1);
    }

    footer.site-footer .social-icons a {
        width: 2.5rem; /* w-10 */
        height: 2.5rem; /* h-10 */
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%; /* rounded-full */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        footer.site-footer .social-icons a:hover {
            background-color: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px) scale(1.05);
        }

        footer.site-footer .social-icons a[href*="facebook.com"]:hover {
            background-color: #1877f2 !important;
            border-color: #1877f2 !important;
        }

        footer.site-footer .social-icons a[href*="linkedin.com"]:hover {
            background-color: #0077b5 !important;
            border-color: #0077b5 !important;
        }

    footer.site-footer .award-item {
        border: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(255, 255, 255, 0.03);
        border-radius: 0.5rem; /* rounded-lg */
        padding: 0.75rem; /* p-3 */
        text-align: center;
        transition: all 0.3s ease;
    }

        footer.site-footer .award-item:hover {
            background-color: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px) scale(1.02);
        }

        footer.site-footer .award-item .bi {
            font-size: 1.5rem; /* text-2xl */
            color: #fbbf24;
            margin-bottom: 0.25rem; /* mb-1 */
            display: block;
        }

        footer.site-footer .award-item span {
            font-size: 0.75rem; /* text-xs */
            color: #adb5bd; /* text-gray-300 */
        }

    footer.site-footer .case-study-info {
        background-color: rgba(255, 255, 255, 0.03); /* bg-white/5 */
        border: 1px solid rgba(255, 255, 255, 0.1); /* border-white/10 */
        border-radius: 0.5rem; /* rounded-lg */
        padding: 1rem; /* p-4 */
    }

        footer.site-footer .case-study-info .bi {
            color: #fbbf24;
            margin-right: 0.5rem; /* mr-2 */
        }

        footer.site-footer .case-study-info .text-sm {
            font-size: 0.875rem;
        }

        footer.site-footer .case-study-info .text-xs {
            font-size: 0.75rem;
            color: #adb5bd;
        }

    footer.site-footer .scroll-to-top {
        width: 3rem; /* w-12 */
        height: 3rem; /* h-12 */
        background-color: rgba(255, 255, 255, 0.1); /* bg-white/10 */
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        border-radius: 50%; /* rounded-full */
        transition: all 0.3s ease;
    }

        footer.site-footer .scroll-to-top:hover {
            background-color: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.35);
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            transform: scale(1.1) translateY(-2px);
        }

        footer.site-footer .scroll-to-top .bi {
            font-size: 1.25rem; /* text-lg */
        }

    footer.site-footer .copyright-bar {
        border-top: 1px solid rgba(255, 255, 255, 0.15); /* border-white/20 */
        padding-top: 2rem; /* pt-8 */
        margin-top: 3rem; /* mt-12 */
    }

        footer.site-footer .copyright-bar .text-sm {
            color: #adb5bd; /* text-gray-300 */
        }

        footer.site-footer .copyright-bar .text-xs {
            color: #6c757d; /* text-gray-400 */
        }

    footer.site-footer .whitelake-logo {
        height: 1.5rem; /* h-6 */
        margin-right: 0.75rem; /* mr-3 */
        filter: brightness(0) invert(1) opacity(0.7);
    }
