/* System Font Fallbacks (when Google Fonts are not loaded) */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.font-display {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Custom Utilities */


.glass-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-header.scrolled {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hero-gradient {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scaleIn {
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Feature image overlay - improved readability */
.feature-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%);
}

#mobile-menu-button {
    position: relative;
    z-index: 70;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gallery Masonry Layout */
.gallery-masonry {
    column-count: 2;
    column-gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-masonry {
        column-count: 3;
    }
}

@media (min-width: 1024px) {
    .gallery-masonry {
        column-count: 4;
    }
}

.gallery-item {
    cursor: zoom-in;
    break-inside: avoid;
    break-inside: avoid-column;
    margin-bottom: 1rem;
    display: inline-block;
    /* Keep inline-block as it is often safer for masonry gaps, but ensure width is 100% */
    width: 100%;
    backface-visibility: hidden;
    /* Fix for Safari rendering issues */
}

.gallery-item img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    width: 100%;
    height: auto;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Pricing Toggle Simulation (optional UI) */
.pricing-shadow {
    box-shadow: 0 20px 40px -15px rgba(0, 90, 50, 0.1);
}


.pricing-card-featured {
    border: 2px solid var(--tw-brand-accent);
}

/* Testimonials */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 90, 50, 0.1);
}

/* Parallax Effect */
.parallax-bg {
    transform: translateY(0);
    will-change: transform;
}

/* Back to Top Button */
#back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(20px);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF9F6;
}

::-webkit-scrollbar-thumb {
    background: #005A32;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1A1C1A;
}

/* Cookie Banner Styles */
#cookie-banner {
    transition-property: transform, opacity, visibility;
    transition-duration: 500ms;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Menu Animations */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu:not(.invisible) .mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-watermark {
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}