/**
 * OEM Layout Styles - Header & Footer (Modernized)
 * @package OEM_System
 */

/* ============================================
   HEADER VARIABLES
   ============================================ */
:root {
    --header-height: 80px;
    --header-bg: #0b1612;
    --header-bg-card: #1a2520;
    --header-text: #e0e0e0;
    --header-accent: #d4af37;
    --header-border: rgba(212, 175, 55, 0.2);
    --z-header: 1000;
    --z-drawer: 2000;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   SITE HEADER - CORE
   ============================================ */

/* Base container class used throughout header */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-header {
    position: relative;
    z-index: var(--z-header);
    width: 100%;
    background: linear-gradient(135deg, #0b1612 0%, #1a2520 100%);
}

.site-header--sticky {
    position: sticky;
    top: 0;
}

.site-header.is-scrolled .site-header__main {
    background: rgba(11, 22, 18, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    padding-top: 12px;
    padding-bottom: 12px;
}

.site-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ============================================
   TOP BAR
   ============================================ */
.site-header__top {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
    font-size: 13px;
}

.site-header__top .site-header__container {
    justify-content: space-between;
}

.site-header__top-left {
    display: flex;
    align-items: center;
}

.site-header__top-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    padding: 6px 12px;
    border-radius: 6px;
}

.top-link:hover {
    color: var(--header-accent);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.top-link__icon {
    font-size: 16px;
    color: var(--header-accent);
    transition: transform 0.3s var(--transition-smooth);
}

.top-link:hover .top-link__icon {
    transform: scale(1.15);
}

/* ============================================
   MAIN HEADER SECTION
   ============================================ */
.site-header__main {
    padding: 18px 0;
    border-bottom: 1px solid var(--header-border);
    background: linear-gradient(135deg, #0b1612 0%, #1a2520 100%);
    transition: all 0.4s var(--transition-smooth);
}

/* Logo */
.site-header__logo .logo-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s var(--transition-smooth);
}

.site-header__logo .logo-link:hover {
    transform: scale(1.02);
}

.site-header__logo .logo-text {
    font-size: 26px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-header__logo svg,
.site-header__logo img {
    height: 45px;
    width: auto;
    transition: all 0.3s var(--transition-smooth);
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Fix for custom HTML logos that might have internal styles */
.site-header__logo .brand-main {
    display: flex;
    align-items: center;
}

.site-header.is-scrolled .site-header__logo svg,
.site-header.is-scrolled .site-header__logo img {
    transform: scale(0.92);
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */
.desktop-only {
    display: none;
}

@media (min-width: 1025px) {
    .desktop-only {
        display: block;
    }
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.main-nav>ul>li>a {
    display: block;
    padding: 12px 18px;
    color: var(--header-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
}

.main-nav>ul>li>a::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--header-accent);
    transition: transform 0.3s var(--transition-smooth);
}

.main-nav>ul>li>a:hover {
    color: var(--header-accent);
    background: rgba(212, 175, 55, 0.12);
    transform: translateY(-2px);
}

.main-nav>ul>li>a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.main-nav>ul>li.current-menu-item>a {
    color: var(--header-accent);
    background: rgba(212, 175, 55, 0.15);
}

.main-nav>ul>li.current-menu-item>a::before {
    transform: translateX(-50%) scaleX(1);
}

/* Dropdown */
.main-nav li {
    position: relative;
}

.main-nav li.menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    opacity: 0.7;
    transition: all 0.3s var(--transition-smooth);
}

.main-nav li.menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
    opacity: 1;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(26, 37, 32, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--header-border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s var(--transition-smooth);
    z-index: 100;
}

.main-nav li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s var(--transition-smooth);
}

.sub-menu li a:hover {
    color: white;
    background: rgba(212, 175, 55, 0.2);
    padding-left: 20px;
}

/* ============================================
   ACTIONS (Search, Mobile Toggle)
   ============================================ */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.header-search-trigger {
    display: flex;
    align-items: center;
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

@media (min-width: 1025px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle__bar {
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border-radius: 2px;
    transition: all 0.3s var(--transition-smooth);
    transform-origin: center;
}

.mobile-toggle:hover .mobile-toggle__bar {
    background: linear-gradient(135deg, #f0c24a 0%, #d4af37 100%);
}

/* ============================================
   MOBILE DRAWER
   ============================================ */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: var(--z-drawer);
    visibility: hidden;
    transition: visibility 0.4s;
}

.mobile-drawer.is-active {
    visibility: visible;
}

.mobile-drawer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.mobile-drawer.is-active .mobile-drawer__overlay {
    opacity: 1;
}

.mobile-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: linear-gradient(135deg, #0b1612 0%, #1a2520 100%);
    transform: translateX(100%);
    transition: transform 0.4s var(--transition-smooth);
    border-left: 1px solid var(--header-border);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
}

.mobile-drawer.is-active .mobile-drawer__panel {
    transform: translateX(0);
}

.mobile-drawer__header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--header-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.mobile-drawer__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--header-accent);
    letter-spacing: 1px;
}

.mobile-drawer__close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.mobile-drawer__close:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.05) rotate(90deg);
}

.mobile-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Mobile Nav Structure */
.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav a {
    display: block;
    padding: 16px 12px;
    color: #eee;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: all 0.3s var(--transition-smooth);
}

.mobile-nav a:hover {
    color: var(--header-accent);
    padding-left: 20px;
}

/* Mobile Submenu Accordion */
.mobile-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: none;
    border-radius: 8px;
    border: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--transition-smooth);
}

.mobile-nav li.is-open>.sub-menu {
    max-height: 600px;
    padding: 10px 0;
}

.mobile-nav .sub-menu a {
    padding-left: 24px;
    font-size: 14px;
    color: #aaa;
}

/* Arrow rotation */
.mobile-nav .menu-item-has-children>a::after {
    content: '›';
    position: absolute;
    right: 12px;
    font-size: 24px;
    transform: rotate(90deg);
    transition: transform 0.3s var(--transition-smooth);
}

.mobile-nav li.is-open>a::after {
    transform: rotate(-90deg);
}

/* Body Scroll Lock */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   FOOTER STYLES (Preserved)
   ============================================ */

.oem-footer {
    background: linear-gradient(135deg, #0b1612 0%, #1a2520 100%);
    color: #e0e0e0;
}

/* SEO Section */
.oem-footer-seo {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 50px 0;
}

.footer-seo-title {
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff 0%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-seo-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    color: #c0c0c0;
}

.footer-seo-content p {
    margin-bottom: 15px;
}

.footer-seo-content strong {
    color: #d4af37;
}

.footer-seo-content a {
    color: #d4af37;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
}

.footer-seo-content a:hover {
    color: #fff;
    border-bottom-color: #d4af37;
}

/* Main Footer */
.oem-footer-main {
    padding: 60px 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

/* Brand Column */
.footer-brand {
    gap: 15px;
}

.footer-logo a {
    text-decoration: none;
}

.footer-tagline {
    color: #88928d;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

/* Contact Column */
.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #d4af37;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item p,
.footer-contact-item a {
    color: #c0c0c0;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: #d4af37;
}

/* Address link styling */
.footer-address-link {
    cursor: pointer;
    border-radius: 8px;
    padding: 10px;
    margin: -10px;
    transition: all 0.3s ease;
}

.footer-address-link:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(3px);
}

.footer-address-link:hover .contact-icon {
    color: #d4af37;
    animation: pulse 0.6s ease-in-out;
}

.footer-address-link:hover p {
    color: #d4af37;
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Links Column */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
    padding-left: 15px;
    position: relative;
}

.footer-menu a:before {
    content: '›';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-menu a:hover {
    color: #d4af37;
    padding-left: 20px;
}

.footer-menu a:hover:before {
    opacity: 1;
}

/* Social Column */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0c0c0;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: #d4af37;
    border-color: #d4af37;
    color: #0b1612;
    transform: translateY(-3px);
}

.social-whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

/* Copyright */
.oem-footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-copyright {
    text-align: center;
    color: #88928d;
    font-size: 13px;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .site-header__top {
        font-size: 12px;
        padding: 8px 0;
    }

    .top-link {
        padding: 4px 8px;
        font-size: 12px;
    }

    .site-header__main {
        padding: 14px 0;
    }

    .site-header__logo svg,
    .site-header__logo img {
        height: 36px;
    }
}