/* =========================================
   MKM PROMOTIONS - HEADER & FOOTER
   Professional Styling
   ========================================= */

/* ===================== BASE RESET ===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #334155;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================== CONTAINER ===================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== HEADER ===================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(18, 0, 1, 0.1);
    border-bottom-color: rgba(229, 1, 8, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    min-height: 70px;
    transition: all 0.3s ease;
}

.header.scrolled .header-inner {
    padding: 8px 0;
    min-height: 60px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    display: flex;
    align-items: center;
    position: relative;
}

.logo-icon img {
    height: 55px;
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

.header.scrolled .logo-icon img {
    height: 50px;
}

/* Hide dark logo by default, show light logo */
.logo-dark {
    display: none;
}

.logo-light {
    display: block;
}

/* Logo text fallback if image doesn't load */
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #120001;
}

.logo-text span {
    color: #e50108;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    color: #334155;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e50108, #6baa04);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #e50108;
    background: rgba(229, 1, 8, 0.05);
}

.nav-link:hover::after {
    width: calc(100% - 36px);
}

.nav-link.active {
    color: #e50108;
    font-weight: 600;
}

.nav-link.active::after {
    width: calc(100% - 36px);
}

/* Header CTA Button (if you want to add one) */
.header-cta {
    display: none;
    margin-left: 15px;
}

.header-cta .btn {
    padding: 10px 22px;
    font-size: 0.9rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1002;
    border-radius: 8px;
    border: none;
    background: transparent;
    transition: background 0.3s ease;
    position: relative;
}

.mobile-toggle:hover {
    background: rgba(229, 1, 8, 0.08);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #e50108;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 2.5px 0;
    transform-origin: center;
}

/* X animation when active */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #e50108;
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #e50108;
}

/* Mobile Menu Overlay Background */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 0, 1, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================== FOOTER ===================== */
.footer {
    background: #120001;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e50108, #6baa04, #e50108);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 50px;
    padding-bottom: 50px;
}

/* Footer Brand */
.footer-brand {
    padding-right: 30px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo .logo-icon img {
    height: 70px;
    width: auto;
    filter: brightness(1.1);
}

.footer-brand > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #6baa04;
    border-color: #6baa04;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(107, 170, 4, 0.3);
}

/* Footer Links */
.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, #6baa04, #8fd41a);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #6baa04;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #8fd41a;
    padding-left: 8px;
}

.footer-links a:hover::before {
    width: 100%;
}

/* Footer Contact */
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact li i {
    color: #6baa04;
    font-size: 1rem;
    margin-top: 4px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #8fd41a;
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom a {
    color: #6baa04;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #8fd41a;
}

/* ===================== RESPONSIVE DESIGN ===================== */

/* Large Tablets */
@media (max-width: 1200px) {
    .footer-grid {
        gap: 40px;
    }
    
    .nav-link {
        padding: 10px 14px;
    }
}

/* Tablets */
@media (max-width: 991px) {
    /* Show Mobile Toggle */
    .mobile-toggle {
        display: flex;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 100px 20px 40px;
        box-shadow: -10px 0 40px rgba(18, 0, 1, 0.15);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 16px 20px;
        text-align: center;
        font-size: 1.1rem;
        border-radius: 10px;
        justify-content: center;
        border-bottom: 1px solid #f1f5f9;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    }
    
    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Stagger animation for nav links */
    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(6) { transition-delay: 0.35s; }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(229, 1, 8, 0.08);
        color: #e50108;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-inner {
        min-height: 60px;
    }
    
    .logo-icon img {
        height: 45px;
    }
    
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact li {
        justify-content: center;
        text-align: left;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-brand > p {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-icon img {
        height: 40px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
}

/* ===================== UTILITY CLASSES ===================== */

/* Body overflow control for mobile menu */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
