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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== SECTION COMMON ===== */
.section-header {
    opacity: 1;
}

.section-tag {
    letter-spacing: 0.02em;
}

.section-title {
    line-height: 1.15;
}

.section-subtitle {
    line-height: 1.7;
}

/* ===== NAVBAR ===== */
.nav {
    will-change: box-shadow;
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(5, 150, 105, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    border-radius: 1px;
    transition: width 0.25s ease;
}

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

/* ===== HERO ===== */
.hero {
    background: linear-gradient(160deg, #fefce8 0%, #ecfdf5 50%, #d1fae5 100%);
    position: relative;
}

.hero-blob {
    animation: blob-float 8s ease-in-out infinite;
}

.blob-1 {
    animation-delay: 0s;
}

.blob-2 {
    animation-delay: -3s;
}

.blob-3 {
    animation-delay: -5s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}

.hero-badge {
    animation: fade-down 0.8s ease both;
}

.hero-title {
    animation: fade-up 0.8s ease 0.15s both;
}

.hero-subtitle {
    animation: fade-up 0.8s ease 0.3s both;
}

.hero-ctas {
    animation: fade-up 0.8s ease 0.45s both;
}

.hero-scroll {
    animation: fade-up 0.8s ease 0.7s both;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-down {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-img-wrap {
    transition: transform 0.5s ease;
}

/* ===== ABOUT ===== */
.about-image-wrap {
    position: relative;
}

.about-float-card {
    animation: float-card 4s ease-in-out infinite;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===== CTA SECTION ===== */
.cta-bg-circle {
    animation: cta-blob 10s ease-in-out infinite;
}

.cta-circle-1 {
    animation-delay: 0s;
}

.cta-circle-2 {
    animation-delay: -5s;
}

@keyframes cta-blob {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.cta-btn-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.cta-btn-outline {
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

/* ===== LOCATION ===== */
.location-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-3px);
}

.location-cta {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ===== FOOTER ===== */
.footer-grid > div {
    opacity: 1;
}

/* ===== MOBILE MENU ===== */
#mobile-menu.open {
    max-height: 400px;
}

.mobile-nav-link {
    position: relative;
}

/* ===== SCROLL REVEAL (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s 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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Reduced motion: ensure everything is visible */
@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;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .about-float-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem;
    }
}
