/* Shared CSS stylesheet for Gurkha Memorial Museum website */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* Hero Overlay Gradients */
.hero-overlay {
    background: linear-gradient(to right, rgba(27, 43, 30, 0.85) 0%, rgba(27, 43, 30, 0.4) 100%);
}

.hero-overlay-vertical {
    background: linear-gradient(to bottom, rgba(27, 43, 30, 0.4), rgba(27, 43, 30, 0.8));
}

.hero-gradient {
    background: linear-gradient(to right, rgba(27, 43, 30, 0.85) 0%, rgba(27, 43, 30, 0.4) 100%);
}

/* Layout & Grid Helpers */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-item-1 {
    grid-column: span 12;
}

.bento-item-2 {
    grid-column: span 12;
}

@media (min-width: 768px) {
    .bento-item-1 {
        grid-column: span 8;
    }

    .bento-item-2 {
        grid-column: span 4;
    }
}

.bento-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-card:hover {
    transform: translateY(-8px);
}

.filter-btn.active {
    background-color: #C62828;
    color: white;
    border-color: #C62828;
}

.transition-standard {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shimmer Effect for CTAs */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Shader Background (Depth effect) */
.shader-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(27, 43, 30, 0.03) 0%, rgba(249, 247, 242, 1) 100%);
    opacity: 0.6;
    pointer-events: none;
}

/* Scroll Entrance Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Visit Page Specific Utilities */
.heritage-border {
    border: 1px solid rgba(27, 43, 30, 0.1);
}

.tonal-layer {
    background-color: #F9F7F2;
}

.decorative-divider::after {
    content: '⚔️';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #F9F7F2;
    padding: 0 1rem;
    font-size: 1.5rem;
}

/* Mobile Menu overrides */
#mobile-menu.hidden {
    display: none !important;
}

#mobile-menu {
    display: flex !important;
    background-color: #1B2B1E !important; /* Solid Regimental Green */
}

/* Responsive Heading overrides for Mobile and Tablet Devices */
@media (max-width: 768px) {
    .text-display-lg {
        font-size: 1.875rem !important; /* 30px */
        line-height: 2.25rem !important;
    }
    .text-headline-lg {
        font-size: 1.5rem !important; /* 24px */
        line-height: 2rem !important;
    }
    .text-headline-md {
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.75rem !important;
    }
    .text-headline-sm {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.5rem !important;
    }
    .text-body-lg {
        font-size: 1rem !important; /* 16px */
        line-height: 1.5rem !important;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .text-display-lg {
        font-size: 2.5rem !important; /* 40px */
        line-height: 3rem !important;
    }
    .text-headline-lg {
        font-size: 2rem !important; /* 32px */
        line-height: 2.5rem !important;
    }
    .text-headline-md {
        font-size: 1.625rem !important; /* 26px */
        line-height: 2.125rem !important;
    }
    .text-headline-sm {
        font-size: 1.375rem !important; /* 22px */
        line-height: 1.875rem !important;
    }
}

/* Safe bottom inset for mobile navigation bar */
.safe-bottom {
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}