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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(4, 120, 87, 0.15);
    color: #064e3b;
}

/* ===== NAVIGATION ===== */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-fixed.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(4, 120, 87, 0.08);
}

.nav-link {
    position: relative;
}

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

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

.nav-fixed .nav-link {
    color: rgba(87, 83, 78, 0.7);
}

.nav-fixed.scrolled .nav-link {
    color: #78716c;
}

.nav-fixed.scrolled .nav-link:hover {
    color: #047857;
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    display: block;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
}

.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(2, 44, 34, 0.82) 0%,
        rgba(6, 78, 59, 0.72) 50%,
        rgba(4, 120, 87, 0.62) 100%
    );
}

.hero-title {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Buttons */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 60px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 60px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Floating Stat Cards */
.stat-card {
    animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
    animation-delay: -2s;
}

.stat-card:nth-child(3) {
    animation-delay: -4s;
}

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

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.4;
        transform: scaleY(0.7);
    }
}

/* ===== SECTION LABELS ===== */
.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #047857;
}

/* ===== DIVIDER ===== */
.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #d6d3d1, transparent);
}

/* ===== COLLECTION CARDS ===== */
.collection-card {
    position: relative;
}

.collection-card-img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover .collection-card-img {
    transform: scale(1.05);
}

/* ===== PHILOSOPHY CARDS ===== */
.philosophy-card {
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.philosophy-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: #047857;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 60px;
    border: 1px solid #047857;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: #065f46;
    border-color: #065f46;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: transparent;
    color: #047857;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-radius: 60px;
    border: 1px solid #d1fae5;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    transform: translateY(-2px);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

/* These are progressive enhancement — content is visible by default,
   JS adds the animated states for users with JS enabled */
.reveal-up.animated {
    transform: translateY(32px);
    opacity: 0;
}

.reveal-left.animated {
    transform: translateX(-32px);
    opacity: 0;
}

.reveal-right.animated {
    transform: translateX(32px);
    opacity: 0;
}

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

.reveal-left.visible {
    transform: translateX(0);
    opacity: 1;
}

.reveal-right.visible {
    transform: translateX(0);
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title span {
        display: inline;
    }
    
    .section-label {
        font-size: 0.625rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
    
    .font-serif.text-5xl {
        font-size: 2.25rem;
    }
}

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

/* ===== REDUCED MOTION ===== */
@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-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
    
    .stat-card {
        animation: none;
    }
    
    .scroll-line {
        animation: none;
        opacity: 0.6;
    }
}
