/* ==========================================
   Valley Edge Farms - Premium Coffee Design
   ========================================== */

/* Design Tokens */
:root {
    /* Green Plant Palette */
    --forest-green: #1a5928;
    --plant-green: #52b788;
    --light-green: #95d5b2;
    --pale-green: #d8f3dc;

    /* Coffee Browns */
    --coffee-dark: #4a3933;
    --coffee-medium: #6b5b52;
    --coffee-light: #d4a574;

    /* Neutrals */
    --cream: #f8f6f0;
    --white: #ffffff;
    --dark: #1b1b1b;
    --gray: #7a7a7a;

    /* Gradients */
    --gradient-green: linear-gradient(135deg, #1a5928 0%, #52b788 100%);
    --gradient-coffee: linear-gradient(135deg, #4a3933 0%, #6b5b52 100%);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(26, 89, 40, 0.1);
    --shadow-md: 0 4px 16px rgba(26, 89, 40, 0.15);
    --shadow-lg: 0 8px 32px rgba(26, 89, 40, 0.2);
    --shadow-xl: 0 16px 48px rgba(26, 89, 40, 0.25);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
}

.navbar.scrolled {
    background: rgba(248, 246, 240, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-green);
}

.logo-icon {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--duration) var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-green);
    transition: width var(--duration) var(--ease);
}

.nav-link:hover {
    color: var(--forest-green);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--forest-green);
    border-radius: 3px;
    transition: all var(--duration) var(--ease);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5928 0%, #2d7a3e 50%, #52b788 100%);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 89, 40, 0.3) 0%, rgba(26, 89, 40, 0.1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: var(--space-xl) var(--space-md);
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    color: var(--white);
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #d4a574 0%, #f8f6f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(-45deg);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--forest-green);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Section Styling */
section {
    padding: var(--space-xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--pale-green);
    color: var(--forest-green);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.section-title {
    color: var(--dark);
    margin-bottom: var(--space-md);
}

.section-description {
    color: var(--gray);
    font-size: 1.125rem;
}

/* Coffee Section */
.coffee-section {
    background: var(--white);
}

.coffee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.coffee-card {
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--duration) var(--ease);
    position: relative;
    transform-style: preserve-3d;
}

.coffee-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.coffee-card.featured {
    grid-column: span 2;
}

.coffee-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--coffee-light);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
}

.coffee-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--gradient-coffee);
    position: relative;
    overflow: hidden;
}

.coffee-beans-img {
    background: linear-gradient(135deg, rgba(74, 57, 51, 0.9), rgba(107, 91, 82, 0.8)),
        repeating-radial-gradient(circle at 30% 30%, transparent 0, transparent 20px, rgba(255, 255, 255, 0.05) 20px, rgba(255, 255, 255, 0.05) 40px);
}

.coffee-beans-img::after {
    content: '☕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    opacity: 0.3;
}

.green-beans-img {
    background: linear-gradient(135deg, rgba(26, 89, 40, 0.9), rgba(82, 183, 136, 0.8)),
        repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255, 255, 255, 0.05) 15px, rgba(255, 255, 255, 0.05) 30px);
}

.green-beans-img::after {
    content: '🌿';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    opacity: 0.3;
}

.reserve-img {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.9), rgba(107, 91, 82, 0.8)),
        repeating-conic-gradient(from 45deg, transparent 0deg 90deg, rgba(255, 255, 255, 0.05) 90deg 180deg);
}

.reserve-img::after {
    content: '⭐';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    opacity: 0.3;
}

.coffee-card-content {
    padding: var(--space-lg);
}

.coffee-card-content h3 {
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.coffee-card-content p {
    color: var(--gray);
    margin-bottom: var(--space-md);
}

.coffee-features {
    list-style: none;
    margin-bottom: var(--space-md);
}

.coffee-features li {
    padding: var(--space-xs) 0;
    color: var(--dark);
}

.coffee-notes {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.note {
    padding: var(--space-xs) var(--space-sm);
    background: var(--pale-green);
    color: var(--forest-green);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Story Section */
.story-section {
    background: var(--cream);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.story-text {
    color: var(--gray);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--forest-green);
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-visual {
    display: grid;
    gap: var(--space-md);
}

.location-card,
.process-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--duration) var(--ease);
    transform-style: preserve-3d;
}

.location-card:hover,
.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.location-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.location-card h4,
.process-card h4 {
    color: var(--forest-green);
    margin-bottom: var(--space-sm);
}

.location-card p {
    color: var(--gray);
}

.process-steps {
    display: grid;
    gap: var(--space-xs);
}

.step {
    color: var(--dark);
    padding: var(--space-xs) 0;
}

/* Contact Section */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

.contact-info {
    display: grid;
    gap: var(--space-md);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--cream);
    border-radius: 15px;
    transition: all var(--duration) var(--ease);
}

.info-item:hover {
    background: var(--pale-green);
    transform: translateX(5px);
}

.info-icon {
    font-size: 2rem;
}

.info-item h4 {
    color: var(--forest-green);
    margin-bottom: var(--space-xs);
}

.info-item p {
    color: var(--dark);
}

.contact-form {
    display: grid;
    gap: var(--space-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--light-green);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--duration) var(--ease);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--forest-green);
    box-shadow: 0 0 0 3px rgba(26, 89, 40, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--forest-green);
    color: var(--white);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section h4 {
    color: var(--plant-green);
    margin-bottom: var(--space-md);
}

.footer-section a,
.footer-section p {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: var(--space-xs);
    transition: color var(--duration) var(--ease);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--cream);
        flex-direction: column;
        padding: var(--space-xl);
        box-shadow: var(--shadow-lg);
        transition: left var(--duration) var(--ease);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content {
        padding: var(--space-lg) var(--space-md);
    }

    .coffee-card.featured {
        grid-column: span 1;
    }

    .story-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-xs);
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .story-stats {
        grid-template-columns: 1fr;
    }
}