/* Landing Header Styles extracted from header_landing.php */
/* Base styles */
html, body { height: 100%; }
body { display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }

/* Splash overlay */
#splash-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #223f78 0%, #e71c26 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}
#splash-overlay::after {
    /* subtle vignette for depth */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
}
.splash-content {
    position: relative;
    text-align: center;
    color: #ffffff;
    padding: 0 1rem;
    max-width: 960px;
}
.splash-brand {
    font-weight: 600;
    letter-spacing: 0.06em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}
.slogan {
    font-size: clamp(24px, 4.6vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0,0,0,0.25);
    animation: floatIn 900ms ease-out both;
}
.splash-accent, .slogan-accent {
    display: block;
    height: 4px;
    width: 0;
    margin: 14px auto 0;
    background: linear-gradient(90deg, #e71c26, #223f78);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    animation: sweep 1800ms cubic-bezier(.2,.8,.2,1) 400ms forwards;
}
.caret {
    display: inline-block;
    width: 0.06em;
    margin-left: 0.08em;
    height: 1em;
    background: #ffffff;
    vertical-align: -0.1em;
    animation: blink 900ms step-end infinite;
}
@keyframes floatIn {
    from { opacity: 0; transform: translateY(14px) scale(0.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sweep {
    from { width: 0; opacity: 0.6; }
    60%  { width: 62%; opacity: 1; }
    to   { width: 86%; opacity: 1; }
}
@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Hide the main content until splash is done */
body.splash-active #site-content { visibility: hidden; }
body.splash-done #splash-overlay { display: none; }

/* Jaguar eyes mini (in navbar brand) */
.brand-with-eyes { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.brand-with-eyes .brand-text { margin-top: 4px; }
.navbar-brand .jaguar-eyes-mini {
    display: inline-flex;
    gap: 16px;
    height: 18px;
    align-items: center;
    margin-top: 2px;
}
@media (min-width: 992px) {
    .navbar-brand .jaguar-eyes-mini { height: 22px; gap: 18px; }
}
.jaguar-eyes-mini .eye {
    position: relative;
    width: 28px; height: 16px;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse at 50% 60%, #0b0b0b 0%, #000 70%);
    box-shadow: 0 0 8px rgba(0,0,0,0.45) inset;
    overflow: hidden;
}
@media (min-width: 992px) {
    .jaguar-eyes-mini .eye { width: 34px; height: 20px; }
}
.jaguar-eyes-mini .eye .iris {
    position: absolute; top: 50%; left: 50%;
    width: 9px; height: 9px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #ffee58 0%, #f4d03f 55%, #8a6f00 75%, #3a3000 100%);
    box-shadow: 0 0 6px rgba(255, 230, 0, 0.35);
}
@media (min-width: 992px) {
    .jaguar-eyes-mini .eye .iris { width: 11px; height: 11px; }
}
.jaguar-eyes-mini .eye .pupil {
    position: absolute; top: 50%; left: 50%;
    width: 3px; height: 10px;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #000 0%, #111 100%);
    border-radius: 40px;
    box-shadow: 0 0 3px rgba(0,0,0,0.8) inset;
}
@media (min-width: 992px) {
    .jaguar-eyes-mini .eye .pupil { height: 12px; }
}
.jaguar-eyes-mini .eye .lid {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.55) 100%);
    border-radius: inherit;
    transform-origin: top;
    animation: mini-blink 3.6s ease-in-out infinite;
    mix-blend-mode: multiply;
}
.jaguar-eyes-mini .eye.right .lid { animation-delay: 1.4s; }
@keyframes mini-blink {
    0%, 86%, 100% { clip-path: inset(0 0 0 0 round 50% 50% 45% 45%); }
    90% { clip-path: inset(48% 0 0 0 round 50% 50% 45% 45%); }
    94% { clip-path: inset(0 0 60% 0 round 50% 50% 45% 45%); }
    96% { clip-path: inset(0 0 0 0 round 50% 50% 45% 45%); }
}
@media (prefers-reduced-motion: reduce) {
    .jaguar-eyes-mini .eye .lid { animation: none; }
}

/* Jaguar eyes for splash overlay */
.jaguar-eyes-splash {
    display: inline-flex;
    gap: 42px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}
.jaguar-eyes-splash .eye {
    position: relative;
    width: 120px; height: 70px;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse at 50% 60%, #0b0b0b 0%, #000 70%);
    box-shadow: 0 0 20px rgba(0,0,0,0.45) inset;
    overflow: hidden;
}
@media (min-width: 768px) {
    .jaguar-eyes-splash .eye { width: 150px; height: 86px; }
}
.jaguar-eyes-splash .iris {
    position: absolute; top: 50%; left: 50%;
    width: 28px; height: 28px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, #ffee58 0%, #f4d03f 55%, #8a6f00 75%, #3a3000 100%);
    box-shadow: 0 0 12px rgba(255, 230, 0, 0.35);
}
@media (min-width: 768px) {
    .jaguar-eyes-splash .iris { width: 34px; height: 34px; }
}
.jaguar-eyes-splash .pupil {
    position: absolute; top: 50%; left: 50%;
    width: 8px; height: 34px;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #000 0%, #111 100%);
    border-radius: 40px;
    box-shadow: 0 0 6px rgba(0,0,0,0.8) inset;
}
@media (min-width: 768px) {
    .jaguar-eyes-splash .pupil { height: 42px; }
}
.jaguar-eyes-splash .lid {
    content: "";
    position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.55) 100%);
    border-radius: inherit;
    transform-origin: top;
    animation: splash-blink 3.2s ease-in-out infinite;
    mix-blend-mode: multiply;
}
.jaguar-eyes-splash .eye.right .lid { animation-delay: 1s; }
@keyframes splash-blink {
    0%, 86%, 100% { clip-path: inset(0 0 0 0 round 50% 50% 45% 45%); }
    90% { clip-path: inset(52% 0 0 0 round 50% 50% 45% 45%); }
    94% { clip-path: inset(0 0 62% 0 round 50% 50% 45% 45%); }
    96% { clip-path: inset(0 0 0 0 round 50% 50% 45% 45%); }
}
@media (prefers-reduced-motion: reduce) {
    .jaguar-eyes-splash .lid { animation: none; }
}

/* Mega menu styles */
.navbar-dark .navbar-nav .dropdown-menu.mega-menu {
    background-color: #111;
    color: #fff;
}
.navbar-dark .dropdown-menu.mega-menu .dropdown-item {
    color: #e8e8e8;
}
.navbar-dark .dropdown-menu.mega-menu .dropdown-item:hover,
.navbar-dark .dropdown-menu.mega-menu .dropdown-item:focus {
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}
.navbar-dark .dropdown-menu.mega-menu h6,
.navbar-dark .dropdown-menu.mega-menu p {
    color: #cfcfcf;
}
.navbar .dropdown.position-static .dropdown-menu.mega-menu {
    left: 0;
    right: 0;
}
/* RTL correction: ensure mega-menu stretches full width and aligns visually to the right when dir=rtl */
html[dir="rtl"] .navbar .dropdown.position-static .dropdown-menu.mega-menu {
    left: 0;
    right: 0;
    text-align: right;
}
html[dir="rtl"] .navbar .dropdown.position-static .dropdown-menu.mega-menu .dropdown-item {
    text-align: right;
}
/* swap margins around icons inside rtl menus */
html[dir="rtl"] .dropdown-menu .bi { margin-right: 0 !important; margin-left: .5rem !important; }
/* Mobile adjustments: stack as normal dropdown width */
@media (max-width: 991.98px) {
    .navbar .dropdown.position-static .dropdown-menu.mega-menu {
        position: static;
        width: 100%;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1050;
        padding: 0.75rem 1rem; /* tighten padding on mobile */
    }
    /* Hide Services menu entirely on mobile */
    #navbarSupportedContent .nav-item.dropdown.position-static,
    #megaServices { display: none !important; }
    /* keep the form compact on small screens */
    .mega-menu form .form-control-lg { font-size: 1rem; padding: .5rem .75rem; }
    .mega-menu form .btn-lg { font-size: 1rem; padding: .5rem .75rem; }
    /* increase navbar default collapsed height if different */
    @media (min-width: 576px) and (max-width: 991.98px) {
        .navbar .dropdown.position-static .dropdown-menu.mega-menu {
            max-height: calc(100vh - 66px);
        }
    }
    html[dir="rtl"] .navbar .dropdown.position-static .dropdown-menu.mega-menu {
        text-align: right;
    }
}

/* Larger logo spacing inside dark navbar */
.navbar-dark .navbar-brand .brand-text { color: #fff; }
.navbar-dark .navbar-brand img { filter: drop-shadow(0 2px 2px rgba(0,0,0,0.3)); }

/* Topbar styles */
.topbar { background-color: #e61d27; }
.topbar .bi { font-size: 1rem; }
.topbar a { opacity: .95; }
.topbar a:hover, .topbar a:focus { opacity: 1; text-decoration: underline; }
/* RTL spacing adjustments */
html[dir="rtl"] .topbar .me-1 { margin-right: 0 !important; margin-left: .25rem !important; }
html[dir="rtl"] .topbar .topbar-left { flex-direction: row-reverse; }
html[dir="rtl"] .topbar .topbar-right { flex-direction: row-reverse; }
