/*
Theme Name: Lumanest
Theme URI: http://localhost/lumanest/
Author: Kurt Atoat and Ralph Aure
Description: A Tailwind-powered WordPress theme.
Version: 1.0
Text Domain: lumanest
*/

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #C4682F;
    color: #ffffff;
}

/* Ensure Header and Footer have solid colors, and make Header sticky */
header.site-header,
.site-header {
    background-color: #ffffff !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
}

footer,
.site-footer {
    background-color: #142231 !important;
    color: #ffffff !important;
    position: relative !important;
    z-index: 20 !important;
}

#parallax-bg-layer {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

/* ==========================================================================
   Spawn Animations for About Page (Side Entrance)
   ========================================================================== */
@keyframes spawnLeft {
    0% {
        opacity: 0;
        transform: translateX(-32px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spawnRight {
    0% {
        opacity: 0;
        transform: translateX(32px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spawnUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-spawn-left {
    animation: spawnLeft 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.animate-spawn-right {
    animation: spawnRight 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.animate-spawn-up {
    animation: spawnUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Stagger animation delay helper classes */
.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Accessibility: respect user prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .animate-spawn-left,
    .animate-spawn-right,
    .animate-spawn-up {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ==========================================================================
   Navigation Active Underline (Matching Mockup)
   ========================================================================== */
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a,
.main-navigation ul li.current-contact > a {
    position: relative;
    color: #1C3146 !important;
    font-weight: 600;
}

.main-navigation ul li.current-menu-item > a::after,
.main-navigation ul li.current_page_item > a::after,
.main-navigation ul li.current-contact > a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2.5px;
    background-color: #C4682F;
    border-radius: 9999px;
}

/* Map pin pulse effect */
@keyframes pinPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(196, 104, 47, 0.45);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(196, 104, 47, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(196, 104, 47, 0);
    }
}

.map-pin-pulse {
    animation: pinPulse 2.5s infinite;
}
/* ==========================================================================
   Brand dot trail on section labels (sand -> gold -> orange, growing)
   ========================================================================== */
.eyebrow-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.eyebrow-dots::before {
    content: '';
    flex-shrink: 0;
    width: 30px;
    height: 10px;
    background:
        radial-gradient(circle at 3px 50%, #E0D0B5 2.5px, transparent 3px),
        radial-gradient(circle at 13px 50%, #E49D41 3.5px, transparent 4px),
        radial-gradient(circle at 25px 50%, #C4682F 4.5px, transparent 5px);
}

/* ==========================================================================
   Mobile Navigation Panel
   ========================================================================== */
.mobile-navigation ul li > a {
    display: block;
    padding: 0.9rem 0.25rem;
    color: #1C3146;
    text-decoration: none;
}

.mobile-navigation ul li.current-menu-item > a,
.mobile-navigation ul li.current_page_item > a {
    color: #A8561F;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #C4682F;
    padding-left: 0.85rem;
}

/* ==========================================================================
   Scroll Reveal Animations
   Add data-animate="up | from-left | from-right | zoom | fade" to an element;
   wrap siblings in data-animate-group to stagger them. Uses the individual
   translate/scale properties so it never fights Tailwind or parallax transforms.
   ========================================================================== */
.anim-ready [data-animate] {
    opacity: 0;
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        translate 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        scale 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--anim-delay, 0ms);
}

.anim-ready [data-animate="up"]         { translate: 0 28px; }
.anim-ready [data-animate="from-left"]  { translate: -40px 0; }
.anim-ready [data-animate="from-right"] { translate: 40px 0; }
.anim-ready [data-animate="zoom"]       { scale: 0.94; }

.anim-ready [data-animate].is-visible {
    opacity: 1;
    translate: 0 0;
    scale: 1;
}

/* Arrow nudge on buttons and links that contain a .btn-arrow */
.btn-arrow {
    display: inline-block;
    transition: translate 0.25s ease;
}

a:hover > .btn-arrow,
button:hover > .btn-arrow {
    translate: 4px 0;
}

/* ==========================================================================
   Brand Sweep (navy + orange bands with a dot trail) entrance animation
   ========================================================================== */
/* Hero brand sweep: bands glide in, then the dot trail pops in one by one */
.brand-sweep path {
    animation: sweepIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.brand-sweep path:nth-of-type(2) { animation-delay: 0.12s; }
.brand-sweep path:nth-of-type(3) { animation-name: sweepInRight; animation-delay: 0.3s; }
.brand-sweep circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: dotPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(0.55s + var(--i) * 70ms);
}

@keyframes sweepIn {
    from { opacity: 0; translate: -80px 0; }
    to   { opacity: 1; translate: 0 0; }
}

@keyframes sweepInRight {
    from { opacity: 0; translate: 80px 0; }
    to   { opacity: 1; translate: 0 0; }
}

@keyframes dotPop {
    from { opacity: 0; scale: 0; }
    to   { opacity: 1; scale: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .brand-sweep path,
    .brand-sweep circle { animation: none; }
}

/* ==========================================================================
   Leaflet map (Contact page): Tailwind's image reset breaks map tiles
   ========================================================================== */
.leaflet-container img {
    max-width: none !important;
    max-height: none !important;
}

.leaflet-container {
    font-family: 'Montserrat', sans-serif;
    /* Keep Leaflet's internal layers (z-index 400-1000) inside the map, so the
       map never draws over the sticky header or the mobile menu. */
    z-index: 0;
    isolation: isolate;
}

.lumanest-map-pin {
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background: #C4682F;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 8px rgba(28, 49, 70, 0.35);
}

/* ==========================================================================
   Legal pages (Privacy Policy, Terms of Use) body text (Tailwind resets paragraph and list styles)
   ========================================================================== */
.legal-body p {
    margin: 0 0 1em;
}

.legal-body p:last-child {
    margin-bottom: 0;
}

.legal-body ul {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

.legal-body li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.55em;
}

.legal-body li::before {
    content: '';
    position: absolute;
    left: 0.25em;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 9999px;
    background: #C4682F;
}

.legal-body strong {
    color: #1C3146;
    font-weight: 600;
}

.legal-body a {
    color: #A8561F;
    text-decoration: underline;
}

.legal-body a:hover {
    color: #8F4819;
}
