/* ========================================
   Green Apple Garden — Custom Styles
   Charcoal + Coral | Clean Minimalist
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --charcoal: #2C2C2C;
    --charcoal-light: #3D3D3D;
    --coral: #FF6B6B;
    --coral-light: #FF8E8E;
    --coral-dark: #E55A5A;
    --cream: #FAFAF8;
    --white: #FFFFFF;
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: var(--coral);
    color: var(--white);
}

/* --- Section Label --- */
.section-label {
    display: inline-block;
}

/* --- Navbar Scroll State --- */
#navbar.scrolled {
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(44, 44, 44, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: var(--charcoal);
}

#navbar.scrolled .menu-line {
    background-color: var(--charcoal);
}

/* --- Hero Decorative Elements --- */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.deco-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.deco-2 {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: -50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

.deco-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.deco-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* --- Scroll Indicator --- */
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Hero Animations --- */
.hero-tagline {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-headline {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

/* --- Product Cards --- */
.product-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:nth-child(2) { transition-delay: 0.15s; }
.product-card:nth-child(3) { transition-delay: 0.3s; }

/* --- Testimonial Cards --- */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-card:nth-child(3) { transition-delay: 0.3s; }

/* --- Feature Items --- */
.feature-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:nth-child(2) { transition-delay: 0.1s; }
.feature-item:nth-child(3) { transition-delay: 0.2s; }
.feature-item:nth-child(4) { transition-delay: 0.3s; }

/* --- Contact Info Items --- */
.contact-info-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.contact-info-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-info-item:nth-child(2) { transition-delay: 0.1s; }
.contact-info-item:nth-child(3) { transition-delay: 0.2s; }

/* --- Form Inputs --- */
.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: var(--coral) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* --- Mobile Menu --- */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

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

/* --- Mobile Menu Links Animation --- */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

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

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

/* --- Hamburger Animation --- */
.menu-line {
    transition: transform 0.4s var(--ease-out), opacity 0.3s ease, width 0.4s var(--ease-out);
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- About Image --- */
.about-image-wrapper {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.about-image-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Utility --- */
@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;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .deco-circle {
        display: none;
    }
}
