/* KILL BLUE HIGHLIGHTS & OUTLINES */
* { -webkit-tap-highlight-color: transparent !important; outline: none !important; }

/* ----- 1. BASE & RESET ----- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: system-ui, -apple-system, sans-serif; 
    padding-top: 150px; 
    overflow-x: hidden;
    width: 100%;
}

.entry-header { display: none !important; }
.site-content, .content-area, article { padding: 0; margin: 0; }
.entry-content > * { margin-top: 0 !important; margin-bottom: 0 !important; }
img, .wp-block-cover, .wp-block-image { display: block; width: 100%; height: auto; margin: 0 !important; }

/* ----- 2. HEADER STRUCTURE ----- */
.site-header {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%;
    background: #cc0033 !important; 
    height: 150px;
    z-index: 99999; 
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), height 0.3s ease;
    transform: translateY(0);
}

/* Sticky State - Fixed at top */
.site-header.is-sticky {
    position: fixed;
    height: 50px !important;
    transform: translateY(0);
}

/* Hidden State - Slid up out of view */
.site-header.is-hidden {
    position: fixed; 
    transform: translateY(-100%);
    transition: transform 0.1s linear; 
}

.header-inner {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
    height: 100%;
    position: relative;
}

.logo { 
    height: 80%; 
    display: flex; 
    align-items: center; 
    transition: all 0.3s ease-in-out;
    flex-shrink: 0; 
}
.logo a { display: block; height: 100%; }
.logo img { height: 100%; width: auto; display: block; }

.site-header.is-sticky .logo { height: 35px; }

/* ----- 3. NAVIGATION (Desktop & Landscape) ----- */
.main-nav { display: flex; margin-left: auto; align-items: center; gap: 15px; }
.nav-menu { list-style: none; display: flex; gap: 5px; align-items: center; }
.nav-menu li { display: flex; align-items: center; }

.nav-menu li:not(:last-child)::after {
    content: "|"; color: #ffffff; font-size: 16px; margin-left: 5px; display: inline-block; opacity: 0.5;
}

.nav-menu li a { 
    text-decoration: none; font-size: 18px; color: #ffffff !important; 
    display: flex; align-items: center; justify-content: center;
    line-height: 1; height: 34px; padding: 0 8px;
    border-radius: 4px; border: 2px solid transparent; 
}

.nav-menu li.current-menu-item a, .nav-menu li a.is-clicked { 
    background: rgba(255, 255, 255, 0.9) !important; color: #000000 !important; 
}

.mobile-call-button, .menu-footer-text { display: none; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-shrink: 0; width: 35px; padding: 0; }
.hamburger-line { display: block; width: 100%; height: 3px; background: white; margin: 6px 0; transition: all 0.3s ease-in-out; }

/* ----- 4. VERTICAL MODE (Portrait) ----- */
@media (orientation: portrait) {
    body { padding-top: 50px; } 
    .site-header { height: 50px; position: absolute; }
    .logo { height: 35px; max-width: calc(100% - 60px); } 
    
    .site-header.menu-open { height: 150px !important; position: fixed !important; transform: translateY(0) !important; }
    .site-header.menu-open .logo { height: 80px !important; }

    .menu-toggle { 
        display: block; position: absolute; right: 20px; top: 25px; 
        transform: translateY(-50%); z-index: 100000;
    }
    
    .main-nav {
        display: flex !important; flex-direction: column;
        visibility: hidden; opacity: 0;
        position: fixed; top: 50px; left: 0; width: 100%;
        height: calc(100vh - 50px); background: #cc0033;
        transition: all 0.3s ease-in-out; z-index: 9999; 
        overflow-y: auto; padding-bottom: 40px; 
    }

    .menu-open .main-nav { visibility: visible; opacity: 1; top: 150px; height: calc(100vh - 150px); }

    .nav-menu { flex-direction: column !important; padding: 20px 0 10px 0; gap: 15px !important; width: 100%; }
    .nav-menu li { width: 100%; }
    .nav-menu li::after { display: none !important; }
    
    .nav-menu li a { 
        font-size: 24px !important; padding: 18px !important; height: auto !important; 
        display: block; width: 90%; margin: 0 auto; text-align: center; 
        background: #b3002d; border: 1px solid rgba(255, 255, 255, 0.2); 
    }

    .mobile-call-button {
        display: flex; align-items: center; justify-content: center;
        width: 70%; margin: 20px auto 10px auto; padding: 15px 20px;
        background: #000000; border-radius: 50px; border: 4px solid #ff0000;
        gap: 12px; text-decoration: none; flex-shrink: 0;
        animation: box-glow 2s infinite ease-in-out; 
    }

    .call-text { color: #ff0000 !important; text-shadow: 0 0 10px rgba(255, 0, 0, 0.9); font-size: 24px; font-weight: 900; }
    .call-icon { width: 28px !important; height: 28px !important; animation: ring-shake 0.5s infinite ease-in-out; }

    .menu-footer-text {
        display: block; color: #ffffff; font-size: 14px; font-weight: bold; text-align: center;
        width: 100%; margin-top: 15px; opacity: 0.8; padding: 0 20px;
    }

    .menu-open .hamburger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-open .hamburger-line:nth-child(2) { opacity: 0; }
    .menu-open .hamburger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ----- 5. LANDSCAPE FIX ----- */
@media (orientation: landscape) {
    .menu-toggle { display: none !important; }
    .main-nav { 
        display: flex !important; visibility: visible !important; opacity: 1 !important; 
        position: static !important; width: auto !important; height: auto !important; 
        background: none !important; align-items: center;
    }
    body { padding-top: 50px; } 
    .site-header { height: 50px; position: absolute; }
    .logo { height: 35px; }
    .nav-menu { gap: 5px; }
    .nav-menu li a { padding: 0 8px; font-size: 16px; }
    .mobile-call-button {
        display: flex; align-items: center; justify-content: center;
        background: #000000; padding: 6px 15px; border-radius: 25px; 
        border: 2px solid #ff0000; text-decoration: none; gap: 8px; margin-left: 10px;
        animation: box-glow 2s infinite ease-in-out;
    }
    .call-text { color: #ff0000 !important; font-size: 14px; font-weight: 900; }
    .call-icon { width: 16px !important; height: 16px !important; animation: ring-shake 0.5s infinite ease-in-out; }
    .menu-footer-text { display: none !important; }
}

@keyframes box-glow { 0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); } 50% { box-shadow: 0 0 20px 5px rgba(255, 0, 0, 0.8); } }
@keyframes ring-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(15deg); } 50% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }