/* 
 * Custom Color Scheme
 * RAL Water Blue (RAL 5021) & RAL Zinc Yellow (RAL 1018)
 * Applied to: Header, Footer, and Buttons ONLY
 */

:root {
    --ral-water-blue: #1A7A8A;
    --ral-water-blue-dark: #145A66;
    --ral-water-blue-light: #2A9AAA;
    --ral-zinc-yellow: #F3DA0B;
    --ral-zinc-yellow-dark: #D4BC09;
    --ral-zinc-yellow-light: #F8E84D;
}

/* Global Activation */
body {
    background-color: white;
    color: var(--bodyTextColor, inherit);
}

a {
    transition: all 0.3s ease;
}

a:hover {
    color: var(--bodyLinkHoverColor);
}


/* ========================================
   HEADER / NAVIGATION STYLES
   ======================================== */

/* Top Bar - Water Blue Background */
.top-bar {
    background-image: none !important;
    background-color: var(--topHeaderBgColor, var(--ral-water-blue));
    border-bottom: 3px solid var(--ral-zinc-yellow);
}

.top-bar .text-primary,
.top-bar .contact-item,
.top-bar .social-icon {
    color: white !important;
}

.top-bar .social-icon:hover {
    color: var(--ral-zinc-yellow-light) !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Main Navigation - Background Activation */
body .navbar,
body .navbar.sticky-top {
    background: var(--headerBgColor, linear-gradient(135deg, var(--ral-water-blue) 0%, var(--ral-water-blue-dark) 100%)) !important;
    background-color: var(--headerBgColor) !important;
    border-bottom: 4px solid var(--ral-zinc-yellow);
    box-shadow: 0 4px 15px rgba(26, 122, 138, 0.3) !important;
    backdrop-filter: none !important;
}

/* Navigation Links */
body .navbar .nav-link,
body .navbar .navbar-nav .nav-link {
    color: var(--headerTextColor, #ffffff) !important;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--ral-zinc-yellow) !important;
}

/* Active/Hover underline effect */
.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ral-water-blue), var(--ral-zinc-yellow));
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: 80%;
}

/* Dropdown Menu Styling */
.navbar .dropdown-menu {
    border: 3px solid var(--ral-zinc-yellow);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(26, 122, 138, 0.3);
    background: var(--headerBgColor, linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%)) !important;
}

.navbar .dropdown-item {
    color: var(--headerTextColor, var(--ral-water-blue)) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: linear-gradient(135deg, var(--ral-zinc-yellow) 0%, var(--ral-zinc-yellow-dark) 100%);
    color: var(--ral-water-blue) !important;
    border-left: 4px solid var(--ral-water-blue);
}

/* Submenu Styling */
.navbar .dropdown-submenu .submenu {
    border: 3px solid var(--ral-zinc-yellow);
    background: var(--headerBgColor, linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%)) !important;
}

.navbar .submenu .dropdown-item:hover {
    background: var(--headerBgColor, linear-gradient(135deg, var(--ral-water-blue) 0%, var(--ral-water-blue-dark) 100%)) !important;
    color: var(--headerTextColor, #ffffff) !important;
    border-left-color: var(--ral-zinc-yellow);
}

.navbar .submenu .dropdown-item:before {
    background: linear-gradient(135deg, var(--ral-zinc-yellow), var(--ral-water-blue));
}

/* Mobile Toggle Button */
.navbar-toggler {
    border: 2px solid var(--ral-zinc-yellow) !important;
    background: rgba(243, 218, 11, 0.1);
}

.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='%23F3DA0B' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

/* Footer Background - Base Activation */
body .footer {
    background: var(--footerBgColor, linear-gradient(135deg, rgb(20, 90, 102) 0%, rgb(33, 140, 139) 100%)) !important;
    background-color: var(--footerBgColor, rgb(33, 140, 139)) !important;
    border-top: 5px solid var(--ral-zinc-yellow);
    position: relative;
}

/* Footer overlay adjustment - Ensure it doesn't black out the footer */
body .footer::before {
    background: var(--footerBgColor, transparent) !important;
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    opacity: 0.1 !important;
    /* Subtle overlay if color is set */
    z-index: 0 !important;
}

/* Footer Titles */
.footer .footer-title {
    color: var(--footerTextColor, var(--ral-zinc-yellow)) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--ral-zinc-yellow);
    padding-bottom: 10px;
    display: inline-block;
}

.footer .footer-title i {
    color: var(--ral-zinc-yellow) !important;
}

/* Footer Links */
.footer .footer-link {
    color: var(--footerTextColor, #ffffff) !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.footer .footer-link:hover {
    color: var(--ral-zinc-yellow) !important;
    transform: translateX(8px);
    text-decoration: none;
}

.footer .footer-link i {
    color: var(--ral-zinc-yellow) !important;
    transition: all 0.3s ease;
}

.footer .footer-link:hover i {
    color: var(--ral-zinc-yellow-light) !important;
    transform: scale(1.2);
}

/* Footer Contact Links */
.footer .contact-link {
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .contact-link:hover {
    color: var(--ral-zinc-yellow) !important;
}

.footer .contact-link i {
    color: var(--ral-zinc-yellow) !important;
}

/* Copyright Section */
.footer .copyright-section {
    border-top: 2px solid var(--ral-zinc-yellow) !important;
    background: rgba(0, 0, 0, 0.2);
}

.footer .copyright-text,
.footer .developer-text {
    color: #ffffff !important;
}

.footer .developer-link {
    color: var(--ral-zinc-yellow) !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .developer-link:hover {
    color: var(--ral-zinc-yellow-light) !important;
    text-decoration: underline;
}

.footer .developer-link i {
    color: var(--ral-zinc-yellow) !important;
}

/* ========================================
   BUTTON STYLES
   ======================================== */

/* Primary Buttons - Water Blue background with Yellow accents */
.btn-primary {
    background: var(--buttonBgColor, linear-gradient(135deg, var(--ral-water-blue) 0%, var(--ral-water-blue-dark) 100%)) !important;
    border: 2px solid var(--ral-zinc-yellow) !important;
    color: var(--buttonTextColor, #ffffff) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 122, 138, 0.3);
    border-radius: 10px !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--ral-zinc-yellow) 0%, var(--ral-zinc-yellow-dark) 100%) !important;
    border-color: var(--ral-water-blue) !important;
    color: var(--ral-water-blue) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 218, 11, 0.4);
}

/* Outline Primary Buttons */
.btn-outline-primary {
    background: transparent !important;
    border: 2px solid var(--ral-water-blue) !important;
    color: var(--ral-water-blue) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 10px !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: linear-gradient(135deg, var(--ral-water-blue) 0%, var(--ral-water-blue-dark) 100%) !important;
    border-color: var(--ral-zinc-yellow) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 122, 138, 0.4);
}

/* Light Buttons (used in overlays) */
.btn-light {
    background: #ffffff !important;
    border: 2px solid var(--ral-water-blue) !important;
    color: var(--ral-water-blue) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 10px !important;
}

.btn-light:hover,
.btn-light:focus {
    background: linear-gradient(135deg, var(--ral-zinc-yellow) 0%, var(--ral-zinc-yellow-dark) 100%) !important;
    border-color: var(--ral-water-blue) !important;
    color: var(--ral-water-blue) !important;
    transform: scale(1.05);
}

/* Secondary Buttons */
.btn-secondary {
    background: linear-gradient(135deg, var(--ral-zinc-yellow) 0%, var(--ral-zinc-yellow-dark) 100%) !important;
    border: 2px solid var(--ral-water-blue) !important;
    color: var(--ral-water-blue) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 10px !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: linear-gradient(135deg, var(--ral-water-blue) 0%, var(--ral-water-blue-dark) 100%) !important;
    border-color: var(--ral-zinc-yellow) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
}

/* Badge Primary - Uniform Section Subtitles */
.badge.bg-primary-subtle {
    background: var(--titleBgColor, linear-gradient(135deg, var(--ral-water-blue-light) 0%, var(--ral-water-blue) 100%)) !important;
    color: var(--titleText, #ffffff) !important;
    border: 2px solid var(--ral-zinc-yellow);
    min-width: 240px;
    /* Uniform Width */
    padding: 12px 25px !important;
    font-size: 0.9rem !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(26, 122, 138, 0.2);
    transition: all 0.3s ease;
}

@media (max-width: 576px) {
    .badge.bg-primary-subtle {
        min-width: 200px;
        font-size: 0.8rem !important;
        padding: 10px 15px !important;
    }
}

.badge.bg-primary-subtle i,
.badge.bg-primary-subtle .text-primary {
    color: var(--ral-zinc-yellow) !important;
}

/* Text Primary Color */
.text-primary {
    color: var(--ral-water-blue) !important;
}

/* Swiper Navigation Buttons */
.products-swiper-button-next,
.products-swiper-button-prev,
.swiper-button-next,
.swiper-button-prev {
    color: var(--ral-water-blue) !important;
    background: linear-gradient(135deg, #ffffff 0%, var(--ral-zinc-yellow-light) 100%) !important;
    border: 2px solid var(--ral-water-blue) !important;
}

.products-swiper-button-next:hover,
.products-swiper-button-prev:hover,
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: linear-gradient(135deg, var(--ral-water-blue) 0%, var(--ral-water-blue-dark) 100%) !important;
    color: var(--ral-zinc-yellow) !important;
    border-color: var(--ral-zinc-yellow) !important;
}

/* Contact CTA Section */
.contact-cta-section {
    background: linear-gradient(135deg, var(--ral-water-blue) 0%, var(--ral-water-blue-dark) 100%) !important;
    border-top: 5px solid var(--ral-zinc-yellow);
    border-bottom: 5px solid var(--ral-zinc-yellow);
}

.contact-cta-section .cta-title {
    color: #ffffff !important;
}

.contact-cta-section .cta-title i {
    color: var(--ral-zinc-yellow) !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    background: linear-gradient(135deg, var(--ral-water-blue) 0%, var(--ral-water-blue-dark) 100%) !important;
    border: 3px solid var(--ral-zinc-yellow) !important;
    color: var(--ral-zinc-yellow) !important;
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--ral-zinc-yellow) 0%, var(--ral-zinc-yellow-dark) 100%) !important;
    border-color: var(--ral-water-blue) !important;
    color: var(--ral-water-blue) !important;
    transform: translateY(-5px);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 991.98px) {

    /* Mobile Navigation */
    .navbar .navbar-collapse {
        background: linear-gradient(135deg, var(--ral-water-blue-dark) 0%, var(--ral-water-blue) 100%);
        border: 3px solid var(--ral-zinc-yellow);
        border-radius: 12px;
        padding: 15px;
        margin-top: 15px;
    }

    .navbar .nav-link::after {
        display: none;
    }
}

/* ========================================
   ANIMATION ENHANCEMENTS
   ======================================== */

@keyframes waterBlueGlow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(26, 122, 138, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(26, 122, 138, 0.8), 0 0 30px rgba(243, 218, 11, 0.3);
    }
}

.btn-primary:hover,
.btn-outline-primary:hover {
    animation: waterBlueGlow 2s ease-in-out infinite;
}