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

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

body {
    overflow-x: hidden;
}

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

/* ========== NAV ========== */
.nav-header {
    transition: padding 0.3s ease, background 0.3s ease;
}

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

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

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

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

.mobile-link {
    transition: padding-left 0.2s ease;
}

.mobile-link:hover {
    padding-left: 0.5rem;
}

/* ========== HERO SHAPES ========== */
.hero-shapes {
    pointer-events: none;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(254, 252, 232, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.geo-tri {
    position: absolute;
    width: 0;
    height: 0;
}

.geo-tri-1 {
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(245, 158, 11, 0.08);
    top: 20%;
    left: 5%;
    transform: rotate(-15deg);
    animation: float-slow 7s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 120px;
    height: 120px;
    opacity: 0.3;
    background-image: radial-gradient(circle, rgba(254, 252, 232, 0.4) 2px, transparent 2px);
    background-size: 16px 16px;
    animation: float-slow 9s ease-in-out infinite reverse;
}

.geo-stripe {
    position: absolute;
    height: 3px;
    border-radius: 2px;
}

.geo-stripe-1 {
    width: 200px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
    bottom: 30%;
    left: 0;
    transform: rotate(-5deg);
    animation: stripe-drift 6s ease-in-out infinite;
}

.geo-stripe-2 {
    width: 150px;
    background: linear-gradient(90deg, transparent, rgba(254, 252, 232, 0.15), transparent);
    top: 40%;
    right: 0;
    transform: rotate(5deg);
    animation: stripe-drift 8s ease-in-out infinite reverse;
}

/* ========== HERO PHOTOS ========== */
.hero-photos {
    pointer-events: none;
}

.hero-photo-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    overflow: hidden;
}

.hero-photo-left {
    left: 0;
}

.hero-photo-right {
    right: 0;
}

.hero-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: saturate(0.6);
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.85) 0%, rgba(6, 78, 59, 0.6) 100%);
}

/* ========== HERO ANIMATIONS ========== */
.hero-badge {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

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

.hero-subtext {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(254, 252, 232, 0.5), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

/* ========== BUTTONS ========== */
.btn-cta-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #064e3b;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.btn-cta-secondary {
    background: transparent;
    color: #fefce8;
    border: 2px solid rgba(254, 252, 232, 0.4);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cta-secondary:hover {
    background: rgba(254, 252, 232, 0.1);
    border-color: rgba(254, 252, 232, 0.7);
    transform: translateY(-2px);
}

/* ========== BADGES ========== */
.badge-emerald {
    background: rgba(6, 95, 70, 0.1);
    color: #065f46;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.badge-cream {
    background: rgba(254, 252, 232, 0.15);
    color: #fefce8;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* ========== BAKE CARDS ========== */
.bake-card {
    background: rgba(254, 252, 232, 0.05);
    border: 1px solid rgba(254, 252, 232, 0.1);
    border-radius: 1.5rem;
    padding: 0.5rem;
    transition: all 0.4s ease;
}

.bake-card:hover {
    background: rgba(254, 252, 232, 0.1);
    border-color: rgba(254, 252, 232, 0.2);
    transform: translateY(-4px);
}

.bake-card-tag {
    margin: 0 1rem;
    margin-top: 0.5rem;
}

/* ========== HERITAGE ========== */
.heritage-geo {
    animation: float-slow 12s ease-in-out infinite;
}

.heritage-geo-2 {
    animation: float-slow 8s ease-in-out infinite reverse;
}

.heritage-photo-wrap {
    box-shadow: 0 25px 60px rgba(6, 78, 59, 0.25);
}

/* ========== GROCERY ========== */
.grocery-geo {
    animation: float-slow 10s ease-in-out infinite;
}

.grocery-geo-2 {
    animation: float-slow 7s ease-in-out infinite reverse;
}

.grocery-item {
    transition: transform 0.2s ease;
}

.grocery-item:hover {
    transform: translateX(4px);
}

.grocery-photo-float {
    box-shadow: 0 15px 40px rgba(6, 78, 59, 0.2);
}

/* ========== VISIT CARDS ========== */
.visit-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

.visit-card:hover {
    transform: translateY(-4px);
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* ========== KEYFRAMES ========== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes stripe-drift {
    0%, 100% { transform: translateX(0) rotate(-5deg); opacity: 0.3; }
    50% { transform: translateX(20px) rotate(-5deg); opacity: 0.5; }
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-photo-panel {
        width: 45%;
    }

    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }

    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }

    .geo-tri-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(245, 158, 11, 0.08);
    }

    .heritage-accent {
        width: 24px;
        height: 24px;
        -webkit-mask-size: contain;
        mask-size: contain;
    }

    .heritage-dots {
        width: 16px;
        height: 16px;
    }

    .grocery-photo-float {
        width: 5rem;
        height: 5rem;
        -webkit-mask-size: contain;
        mask-size: contain;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

@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.reveal-hidden {
        opacity: 1;
        transform: none;
    }
}
