﻿/* ========================================
   LAYOUT STYLES
   Header, Navigation, and Footer
   ======================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-dark-red: #003366;
    --light-red: #0055AA;
    --dark-black: #003366;
    --light-text: #f5f5f5;
    --accent-gold: #FFB700;
    --border-gray: #e0e0e0;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.custom-header {
    background: linear-gradient(90deg, #003366, #003366);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
    border-bottom: 3px solid var(--primary-dark-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

    .navbar-brand:hover {
        opacity: 0.8;
        transform: translateY(-2px);
    }

    .navbar-brand img {
        transition: all 0.3s ease;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

        .navbar-brand img:hover {
            transform: scale(1.05);
        }

    .navbar-brand span {
        color: var(--accent-gold);
        font-weight: 700;
        letter-spacing: 0.5px;
    }

@media (max-width: 992px) {
    .navbar-brand span {
        display: none;
    }
}

/* ===== NAVIGATION MENU ===== */
.navbar-nav {
    gap: 5px;
}

    .navbar-nav .nav-link {
        color: var(--light-text) !important;
        font-weight: 500;
        padding: 0.75rem 1rem !important;
        position: relative;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 0.9rem;
    }

        .navbar-nav .nav-link::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background-color: var(--accent-gold);
            transform: translateX(-50%);
            transition: width 0.3s ease;
        }

        .navbar-nav .nav-link:hover {
            color: var(--accent-gold) !important;
        }

            .navbar-nav .nav-link:hover::before {
                width: 80%;
            }

            .navbar-nav .nav-link.active {
                color: var(--accent-gold) !important;
                background-color: rgba(139, 0, 0, 0.1);
                border-radius: 4px;
            }

            .navbar-nav .nav-link.active::before {
                width: 80%;
            }

.navbar .nav-link[aria-current="page"] {
    color: inherit !important;
    font-weight: normal !important;
}

/* ===== NAVBAR TOGGLER ===== */
.navbar-toggler {
    border: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    }

.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='%23D4AF37' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== NAVBAR COLLAPSE ===== */
.navbar-collapse {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
    min-height: calc(100vh - 400px);
}

.container-fluid {
    padding: 0;
}

/* ========================================
   FOOTER SECTION
   ======================================== */

footer {
    background-color: var(--dark-black);
    color: var(--light-text);
    border-top: 3px solid var(--primary-dark-red);
    margin-top: 0px;
}

    footer .container-fluid {
        padding: 0;
    }

    footer.bg-dark {
        background-color: #003366;
    }

    footer h5 {
        color: var(--accent-gold);
        font-weight: 700;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }

        footer h5::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background-color: var(--primary-dark-red);
        }

    /* ===== FOOTER LINKS ===== */
    footer .list-unstyled li {
        margin-bottom: 8px;
    }

    footer .list-unstyled a {
        color: #aaa;
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.95rem;
    }

        footer .list-unstyled a:hover {
            color: var(--accent-gold);
            margin-left: 5px;
        }

    /* ===== FOOTER ADDRESS ===== */
    footer p {
        color: #aaa;
        font-size: 0.95rem;
        line-height: 1.8;
    }

    footer .text-md-start {
        text-align: start !important;
    }

    /* ===== FOOTER SOCIAL ICONS ===== */
    footer a[href*="facebook"],
    footer a[href*="instagram"],
    footer a[href*="youtube"],
    footer a[href*="twitter"],
    footer a[href*="whatsapp"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background-color: rgba(212, 175, 55, 0.1);
        color: var(--accent-gold);
        border-radius: 50%;
        transition: all 0.3s ease;
        margin-right: 10px;
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

        footer a[href*="facebook"]:hover,
        footer a[href*="instagram"]:hover,
        footer a[href*="youtube"]:hover,
        footer a[href*="twitter"]:hover,
        footer a[href*="whatsapp"]:hover {
            background-color: var(--primary-dark-red);
            color: var(--white);
            transform: translateY(-3px);
            box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
        }

    /* ===== FOOTER HR ===== */
    footer hr {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin: 30px 0;
    }

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
}

    .footer-bottom p {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 0;
    }

/* ===== FOOTER COLUMN SPACING ===== */
.row [class*='col-'] {
    margin-bottom: 30px;
}

footer .row:last-child [class*='col-'] {
    margin-bottom: 0;
}

/* ========================================
   PRELOADER
   ======================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-black), #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

    #preloader img {
        width: 150px;
        height: 150px;
        animation: pulse-scale 1.5s ease-in-out infinite;
        filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    }

@keyframes pulse-scale {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark-red);
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--light-red);
    }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .custom-header {
        padding: 0.5rem 0;
    }

    .navbar-brand img {
        height: 60px;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem;
    }

    footer .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    footer h5 {
        font-size: 0.95rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .custom-header {
        padding: 0.5rem 0;
    }

    .navbar-brand img {
        height: 50px;
    }

    .navbar-nav {
        gap: 0;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

        .navbar-nav .nav-link {
            padding: 0.75rem 0 !important;
            font-size: 0.9rem;
            text-transform: none;
        }

    footer .col-md-4 {
        text-align: center;
        margin-bottom: 30px;
    }

    footer h5 {
        text-align: center;
    }

        footer h5::after {
            left: 50%;
            transform: translateX(-50%);
        }

    .text-md-start {
        text-align: center !important;
    }

    footer a[href*="facebook"],
    footer a[href*="instagram"],
    footer a[href*="youtube"],
    footer a[href*="twitter"],
    footer a[href*="whatsapp"] {
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .custom-header {
        padding: 0.3rem 0;
    }

    .navbar-brand img {
        height: 40px;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
        font-size: 0.8rem;
    }

        .navbar-nav .nav-link::before {
            display: none;
        }

    footer h5 {
        font-size: 0.9rem;
    }

    footer p {
        font-size: 0.85rem;
    }

    #preloader img {
        width: 100px;
        height: 100px;
    }

    main {
        min-height: calc(100vh - 500px);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.navbar-nav .nav-link:focus,
footer a:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

.navbar-toggler:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-dark-red);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

    .skip-to-main:focus {
        top: 0;
    }
/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-dark-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
}

    .scroll-to-top:hover {
        background-color: var(--light-red);
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(139, 0, 0, 0.4);
    }

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}
