/* 
   Griffith Lawns & Removals - Global CSS Foundation
   Based on the "Verdant Craft" Design System
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    /* Brand Palette */
    --forest-dark: #081C15;
    --growth-vibrant: #2D6A4F;
    --growth-light: #52B788;
    --earth-sand: #E9C46A;
    --earth-sand-dark: #D4A373;
    --slate-text: #262A30;
    
    /* Surface Hierarchy */
    --surface: #f8f9fa;
    --surface-bright: #f8f9fa;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f3f4f5;
    --surface-container: #edeeef;
    --surface-container-high: #e7e8e9;
    --surface-container-highest: #e1e3e4;
    --on-surface: #191c1d;
    --on-surface-variant: #414844;
    
    /* Layout & Elevation */
    --section-gap: 80px;
    --container-padding: 24px;
    --base-radius: 8px;
    --large-radius: 16px;
    
    /* Custom Ambient Shadows */
    --shadow-sm: 0 4px 12px rgba(8, 28, 21, 0.03);
    --shadow-md: 0 10px 24px rgba(8, 28, 21, 0.05);
    --shadow-lg: 0 20px 40px rgba(8, 28, 21, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--surface-container-low);
}
::-webkit-scrollbar-thumb {
    background: var(--growth-vibrant);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--forest-dark);
}

/* Custom selection */
::selection {
    background-color: var(--growth-light);
    color: white;
}

/* Scroll reveal states */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Hero Entrance Animation */
@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-entrance {
    animation: heroEntrance 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Bento Card Hover Lift */
.bento-hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Glassmorphism Navigation Drawer */
.glass-drawer {
    background: rgba(248, 249, 250, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Before-After Slider Component */
.before-after-slider {
    position: relative;
    overflow: hidden;
    user-select: none;
    cursor: ew-resize;
}

.before-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid white;
    z-index: 5;
}

.before-image {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.after-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: white;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(8, 28, 21, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: var(--growth-vibrant);
}

/* FAQ Accordion Styling */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding-bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
    max-height: 200px; /* Safe upper bound */
    padding-bottom: 24px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Material Icons Integration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Pulse highlight effect */
.pulse-gentle {
    box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.4);
    animation: pulse-gentle 2.5s infinite;
}

@keyframes pulse-gentle {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.4);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 12px rgba(45, 106, 79, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 106, 79, 0);
    }
}
