/* ============================================
   Spring Valley Farm Market — Stylesheet
   Classic & Elegant | Plum + Amber Palette
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --plum-deep: #4A2040;
    --plum: #6B3A6A;
    --plum-mid: #8B5A8B;
    --plum-light: #B88BB8;
    --plum-pale: #E8D5E8;
    --plum-bg: #FDF5FD;
    
    --amber: #C49A3C;
    --amber-light: #D4A04A;
    --amber-pale: #F5E6C8;
    --amber-bg: #FFFAF0;
    
    --cream: #FDF9F3;
    --warm-white: #FEFCF8;
    --warm-gray: #F5F0EB;
    --text-dark: #2A1A2A;
    --text-body: #4A3A4A;
    --text-muted: #7A6A7A;
    --text-light: #9A8A9A;
    
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Lato', 'Segoe UI', system-ui, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(74, 32, 64, 0.06);
    --shadow-md: 0 4px 20px rgba(74, 32, 64, 0.08);
    --shadow-lg: 0 8px 40px rgba(74, 32, 64, 0.12);
    --shadow-xl: 0 16px 60px rgba(74, 32, 64, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--sans);
    color: var(--text-body);
    background-color: var(--warm-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1.5px;
    background: var(--amber);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.title-accent {
    color: var(--plum);
    font-style: italic;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.8;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--plum);
    color: #fff;
    box-shadow: 0 4px 16px rgba(107, 58, 106, 0.3);
}

.btn-primary:hover {
    background: var(--plum-deep);
    box-shadow: 0 6px 24px rgba(107, 58, 106, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--plum);
    border: 1.5px solid var(--plum-light);
}

.btn-secondary:hover {
    background: var(--plum-pale);
    border-color: var(--plum);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 249, 243, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 58, 106, 0.08);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--plum);
}

.nav-logo-icon {
    color: var(--amber);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--plum);
    background: var(--plum-pale);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--plum);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--plum-bg) 50%, var(--amber-bg) 100%);
    padding: 120px 24px 160px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(107, 58, 106, 0.08);
    border: 1px solid rgba(107, 58, 106, 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--plum);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.headline-accent {
    color: var(--plum);
    font-style: italic;
    display: block;
}

.hero-subheadline {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-column {
    position: relative;
}

.hero-main-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 520/680;
}

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

/* ============================================
   FLOATING STAT CARDS
   ============================================ */
.hero-stats {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    justify-content: center;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    flex: 1;
    max-width: 280px;
    transition: all var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card--1 { order: 1; }
.stat-card--2 { order: 2; }
.stat-card--3 { order: 3; }

.stat-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    background: var(--amber-pale);
}

.stat-number {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--plum);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 160px 0 120px;
    background: var(--warm-white);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 480/560;
}

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid var(--warm-white);
    aspect-ratio: 320/280;
    width: 55%;
}

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

.about-accent-bar {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--plum);
    color: #fff;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.accent-bar-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.accent-year {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 700;
}

.accent-location {
    font-size: 0.8rem;
    opacity: 0.8;
}

.about-content {
    padding: 20px 0;
}

.about-body {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-values {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.value-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    background: var(--plum-pale);
}

.value-item strong {
    display: block;
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.value-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--warm-gray) 0%, var(--cream) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    overflow: hidden;
    aspect-ratio: 400/300;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-body {
    padding: 24px;
}

.product-body h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   VISIT SECTION
   ============================================ */
.visit {
    padding: 120px 0;
    background: var(--warm-white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.visit-info {
    padding: 20px 0;
}

.visit-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    background: var(--plum-pale);
}

.visit-detail strong {
    display: block;
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.visit-detail span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.visit-detail em {
    font-style: italic;
    color: var(--text-light);
}

.visit-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 480px;
}

.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--plum-deep) 0%, var(--plum) 100%);
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact .section-label {
    color: var(--amber-light);
}

.contact .section-label::before {
    background: var(--amber-light);
}

.contact .section-title {
    color: #fff;
}

.contact .title-accent {
    color: var(--amber-light);
}

.contact-body {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.85;
    margin-bottom: 32px;
}

.contact-direct {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-direct-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-direct-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-light);
    background: rgba(212, 160, 74, 0.15);
}

.contact-direct-item a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.contact-direct-item a:hover {
    color: var(--amber-light);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--sans);
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--amber-light);
    background: rgba(255, 255, 255, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-light);
    background: rgba(212, 160, 74, 0.15);
}

.form-success h4 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: var(--amber-light);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer h4 {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul,
.footer-hours ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--amber-light);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-hours li span:first-child {
    color: rgba(255, 255, 255, 0.75);
}

.footer-hours-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 12px;
    font-style: italic;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--amber-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-image-column {
        max-width: 500px;
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 48px;
        flex-direction: column;
        align-items: stretch;
        max-width: 480px;
    }
    
    .stat-card {
        max-width: 100%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-img-secondary {
        right: 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-map {
        min-height: 360px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 249, 243, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(107, 58, 106, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
        width: 100%;
    }
    
    .hero {
        padding: 100px 24px 80px;
        min-height: auto;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .hero-cta-group .btn {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 90px 16px 60px;
    }
    
    .about, .products, .visit, .contact {
        padding: 80px 0;
    }
    
    .about-img-main {
        aspect-ratio: 1/1;
    }
    
    .about-img-secondary {
        right: -10px;
        bottom: -20px;
    }
    
    .about-accent-bar {
        top: -10px;
        left: -10px;
    }
}
