/* ============================================
   Snow Grown Buds — Custom Styles
   ============================================ */

/* ---------- Base ---------- */
*, *::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: rgba(16, 185, 129, 0.2);
    color: #064E3B;
}

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857 0%, #065F46 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #059669;
    padding: 14px 28px;
    border-radius: 60px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid rgba(5, 150, 105, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-secondary:hover {
    background: rgba(5, 150, 105, 0.06);
    border-color: rgba(5, 150, 105, 0.6);
    transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
#navbar {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(110, 231, 183, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    box-shadow: 0 4px 30px rgba(6, 78, 59, 0.06);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.active .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

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

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ---------- Hero Animations ---------- */
.hero-content {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(32px);
}

.hero-image {
    animation: fadeRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    opacity: 0;
    transform: translateX(32px);
}

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

@keyframes fadeRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- Scroll Indicator ---------- */
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 200%; opacity: 0; }
}

/* ---------- Section Animations ---------- */
.about-image {
    animation: fadeLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.about-text {
    animation: fadeRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
    opacity: 0;
    transform: translateX(32px);
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- Product Cards ---------- */
.product-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card.visible {
    animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ---------- Feature Cards ---------- */
.feature-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.visible {
    animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ---------- Visit Section ---------- */
.visit-text {
    animation: fadeLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.visit-map {
    animation: fadeRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
    opacity: 0;
    transform: translateX(32px);
}

/* ---------- Contact Section ---------- */
.contact-text {
    animation: fadeLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.contact-form {
    animation: fadeRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
    opacity: 0;
    transform: translateX(32px);
}

/* ---------- Form Styles ---------- */
#contact-form input,
#contact-form textarea {
    font-family: 'Inter', system-ui, sans-serif;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ---------- Utility: Scroll-triggered animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    #hero h1 span.align-middle {
        font-size: 2rem !important;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    
    #hero h1 span.align-middle {
        font-size: 1.75rem !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 22px;
        font-size: 0.85rem;
    }
}

/* ---------- Focus visible for accessibility ---------- */
*:focus-visible {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* ---------- Print styles ---------- */
@media print {
    #navbar,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
