/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background-color: #065f46;
    color: #fefdf8;
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(6, 95, 70, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #065f46;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

#navbar.scrolled .nav-link {
    color: #292524;
}

#navbar.scrolled .nav-link:hover {
    color: #065f46;
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* ========== HERO ANIMATIONS ========== */
.hero-badge {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-badge,
#hero h1,
#hero p,
#hero .flex.flex-col,
#hero .flex.gap-10 {
    opacity: 0;
    transform: translateY(30px);
}

#hero h1 {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

#hero p {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

#hero .flex.flex-col {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

#hero .flex.gap-10 {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========== PRODUCT CARDS ========== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ========== MAP FILTER ========== */
iframe[src*="google.com/maps"] {
    filter: saturate(0.2) contrast(1.05) brightness(1.05);
    transition: filter 0.4s ease;
}

iframe[src*="google.com/maps"]:hover {
    filter: saturate(0.4) contrast(1.05) brightness(1.05);
}

/* ========== DECORATIVE UNDERLINE ========== */
h1 span.relative {
    position: relative;
    display: inline-block;
}

h1 span.relative svg {
    bottom: -4px;
}

/* ========== RESPONSIVE FINE-TUNING ========== */
@media (max-width: 767px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .absolute.-bottom-6.-left-6 {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1.5rem;
        max-width: 100%;
    }
    
    .absolute.-bottom-8.-right-8,
    .absolute.-top-8.-left-8 {
        display: none;
    }
    
    .absolute.-bottom-6.-right-6 {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1.5rem;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #065f46;
    outline-offset: 2px;
    border-radius: 4px;
}
