/* ========================================
   Jamboree EJ — Styles
   Bold editorial: serif headlines + clean sans
   Palette: forest green + off-white
======================================== */

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

:root {
    --green-900: #0B3D2E;
    --green-800: #145A3D;
    --green-700: #1B7A4F;
    --green-600: #239B63;
    --green-500: #2DCC7E;
    --green-400: #5DD99A;
    --off-white: #F7F5F0;
    --off-white-light: #FBFAF7;
    --cream: #EDE9E0;
    --warm-gray: #6B6560;
    --dark: #1A1814;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--off-white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.5s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(247, 245, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 1px 0 rgba(11, 61, 46, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-serif);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--off-white);
    transition: color 0.5s var(--ease-out);
}

.logo-accent {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--green-400);
    transition: color 0.5s var(--ease-out);
}

.navbar.scrolled .logo-text {
    color: var(--green-900);
}

.navbar.scrolled .logo-accent {
    color: var(--green-700);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(247, 245, 240, 0.85);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--green-400);
    transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover {
    color: var(--off-white);
}

.nav-cta {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.8125rem !important;
    letter-spacing: 0.04em !important;
    transition: all 0.3s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: var(--off-white) !important;
}

.navbar.scrolled .nav-links a {
    color: var(--warm-gray);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--green-800);
}

.navbar.scrolled .nav-cta {
    background: var(--green-800);
    border-color: var(--green-800);
    color: var(--off-white) !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--off-white);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--off-white);
    transition: all 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background: var(--green-900);
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--green-900);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        transition: right 0.4s var(--ease-out);
        padding: 40px;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.125rem;
        color: rgba(247, 245, 240, 0.85) !important;
    }
    
    .nav-cta {
        background: var(--green-700) !important;
        border-color: var(--green-700) !important;
        color: var(--off-white) !important;
        padding: 12px 24px !important;
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .nav-overlay.show {
        display: block;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #0B3D2E 0%,
        #145A3D 25%,
        #1B7A4F 50%,
        #239B63 75%,
        #145A3D 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(45, 204, 126, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(29, 122, 79, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: 
        radial-gradient(circle at 25% 25%, white 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, white 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green-400);
    margin-bottom: 28px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--off-white);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.headline-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--green-400);
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: rgba(247, 245, 240, 0.75);
    max-width: 540px;
    margin: 0 auto 44px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--off-white);
    color: var(--green-900);
}

.btn-primary:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--off-white);
    border: 1.5px solid rgba(247, 245, 240, 0.35);
}

.btn-ghost:hover {
    border-color: var(--off-white);
    background: rgba(247, 245, 240, 0.08);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(247, 245, 240, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(247, 245, 240, 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.6); }
}

/* ---------- Marquee ---------- */
.marquee {
    background: var(--green-900);
    padding: 18px 0;
    overflow: hidden;
    border-top: 1px solid rgba(247, 245, 240, 0.08);
    border-bottom: 1px solid rgba(247, 245, 240, 0.08);
}

.marquee-track {
    display: flex;
    gap: 0;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(247, 245, 240, 0.7);
    white-space: nowrap;
    padding: 0 24px;
}

.marquee-dot {
    color: var(--green-500);
    font-size: 0.625rem;
    white-space: nowrap;
    padding: 0 12px;
    display: flex;
    align-items: center;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Section shared ---------- */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--green-900);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

/* ---------- Products ---------- */
.products {
    padding: 120px 0;
    background: var(--off-white);
}

.section-header {
    margin-bottom: 72px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--off-white-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    border: 1px solid rgba(11, 61, 46, 0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 64px rgba(11, 61, 46, 0.12);
}

.product-image {
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

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

.product-info {
    padding: 32px;
}

.product-info h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 12px;
}

.product-info p {
    font-size: 0.9375rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 7 / 9;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content .section-title {
    margin-bottom: 28px;
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(11, 61, 46, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--green-800);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

/* ---------- Visit ---------- */
.visit {
    padding: 120px 0;
    background: var(--off-white);
}

.visit-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.visit-content .section-header {
    margin-bottom: 56px;
}

.visit-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
    text-align: left;
}

.visit-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.visit-icon {
    width: 48px;
    height: 48px;
    background: var(--green-900);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-400);
}

.visit-item h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--green-900);
}

.visit-item p {
    font-size: 0.9375rem;
    color: var(--warm-gray);
    line-height: 1.6;
}

.visit-item a {
    color: var(--green-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

.visit-item a:hover {
    color: var(--green-900);
}

.visit-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(11, 61, 46, 0.1);
}

/* ---------- CTA ---------- */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #0B3D2E 0%,
        #145A3D 50%,
        #0B3D2E 100%
    );
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 60% at 30% 50%, rgba(45, 204, 126, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 70% 50%, rgba(29, 122, 79, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-title {
    color: var(--off-white);
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(247, 245, 240, 0.7);
    line-height: 1.7;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    padding: 72px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 56px;
}

.footer-brand .logo-text {
    color: var(--off-white);
}

.footer-brand .logo-accent {
    color: var(--green-500);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9375rem;
    color: rgba(247, 245, 240, 0.5);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.9375rem;
    color: rgba(247, 245, 240, 0.55);
    padding: 6px 0;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--green-400);
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(247, 245, 240, 0.55);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--green-400);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--green-500);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(247, 245, 240, 0.08);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(247, 245, 240, 0.3);
}

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 60px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        aspect-ratio: 4 / 3;
    }
    
    .about-stats {
        gap: 32px;
    }
    
    .visit-details {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .products, .about, .visit {
        padding: 80px 0;
    }
    
    .cta {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
