/*
Theme Name: Media Assist Custom
Theme URI: https://mediaassist.net
Author: Media Assist Limited
Description: Custom theme for Media Assist Limited — professional security services (construction, static sites, commercial properties, warehouses & logistics, and Film & TV security).
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: media-assist-custom
*/

/* Tailwind CDN handles utility styling. This file covers the few things
   Tailwind's CDN build can't do inline: the scroll-reveal transition,
   and the mobile nav slide. */

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0E0E10;
}

/* Mobile off-canvas nav drawer */
.ma-mobile-drawer {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.ma-mobile-drawer.menu-open {
    transform: translateX(0);
}

.ma-mobile-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.ma-mobile-overlay.menu-open {
    opacity: 1;
    pointer-events: auto;
}

body.ma-scroll-lock {
    overflow: hidden;
}

/* Gallery lightbox */
.ma-lightbox {
    display: none;
}

.ma-lightbox.is-open {
    display: flex;
}

/* Staggered fade-in for the mobile drawer's nav links + Book Now button.
   Scoped to .menu-open so it re-triggers every time the drawer opens,
   rather than finishing invisibly in the background on page load. */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ma-stagger {
    opacity: 0;
}

.ma-mobile-drawer.menu-open .ma-stagger {
    animation: slideUpFadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ma-stagger,
    .ma-mobile-drawer.menu-open .ma-stagger {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
