/* ============================================
   LOGAN VALLEY FARM CO. — Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --navy-950: #0a1628;
    --navy-900: #1e3a5f;
    --navy-800: #264a73;
    --navy-700: #2d5580;
    --navy-600: #346090;
    
    --gold-500: #d4a843;
    --gold-400: #e0b95e;
    --gold-300: #e8c97a;
    --gold-200: #f0db9a;
    --gold-100: #f8edc4;
    --gold-50: #fdf6e3;
    
    --warm-50: #faf8f5;
    --warm-100: #f5f0e8;
    --warm-200: #ede5d8;
    --warm-300: #e0d5c4;
    --warm-600: #8b7355;
    --warm-700: #6b5740;
    --warm-800: #4a3d2e;
    
    --white: #ffffff;
    --black: #0a0a0a;
    
    --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
    --shadow-md: 0 4px 16px rgba(30, 58, 95, 0.1);
    --shadow-lg: 0 8px 32px rgba(30, 58, 95, 0.12);
    --shadow-xl: 0 16px 48px rgba(30, 58, 95, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Nunito', system-ui, sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--warm-800);
    background-color: var(--warm-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Labels --- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--gold-500);
    border-radius: 2px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-600);
    max-width: 600px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-950);
    box-shadow: 0 4px 16px rgba(212, 168, 67, 0.35);
}

.btn-primary:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212, 168, 67, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--navy-900);
    border: 2px solid var(--navy-900);
}

.btn-outline:hover {
    background: var(--navy-900);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30, 58, 95, 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(--font-serif);
    font-size: 1.2rem;
    color: var(--navy-900);
    font-weight: 400;
}

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

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy-800);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    border-radius: 2px;
    transition: width var(--transition);
}

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

.nav-links a:hover {
    color: var(--navy-900);
}

.nav-cta {
    background: var(--navy-900);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    transition: all var(--transition);
}

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

.nav-cta:hover {
    background: var(--navy-800);
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy-900);
    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
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(46, 90, 130, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(10, 22, 40, 0.6) 0%, transparent 50%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a843' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 80%, rgba(212, 168, 67, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(212, 168, 67, 0.06) 0%, transparent 40%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: var(--gold-300);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: 0.04em;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-headline em {
    color: var(--gold-400);
    font-style: italic;
}

.hero-subheadline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--gold-400);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.4);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--warm-50);
}

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

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--warm-50);
}

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

.about-accent {
    position: absolute;
    top: -20px;
    right: 40%;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

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

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

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

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

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gold-50);
    border: 1px solid var(--gold-200);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
}

.about-feature h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--warm-600);
    line-height: 1.6;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: 100px 0;
    background: var(--white);
}

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

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

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

.product-card {
    background: var(--warm-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid rgba(30, 58, 95, 0.06);
}

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

.product-card-img {
    height: 200px;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-card-body {
    padding: 24px;
}

.product-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--navy-900);
    margin-bottom: 8px;
}

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

/* ============================================
   COMMUNITY
   ============================================ */
.community {
    padding: 100px 0;
    background: var(--navy-900);
    color: var(--white);
    overflow: hidden;
}

.community-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.community-content .section-label {
    color: var(--gold-400);
}

.community-content .section-title {
    color: var(--white);
}

.community-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.8;
}

.community-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.community-highlight {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.highlight-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
}

.community-highlight h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 4px;
}

.community-highlight p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.community-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.community-img-row {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.community-img-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

.visit-info {
    padding: 48px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.visit-text {
    font-size: 1.05rem;
    color: var(--warm-700);
    margin-bottom: 36px;
    line-height: 1.8;
}

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

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

.visit-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--navy-900);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
}

.visit-detail h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.visit-detail p {
    font-size: 0.9rem;
    color: var(--warm-600);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--navy-800);
    font-weight: 600;
}

.visit-detail a:hover {
    color: var(--gold-500);
}

.visit-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo svg {
    color: var(--gold-500);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: 300px;
}

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

.footer-links a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 6px 0;
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.55);
}

.footer-contact a:hover {
    color: var(--gold-400);
}

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

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

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
    color: var(--gold-400);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default visible state for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid,
    .community-layout,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-images {
        max-width: 500px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform var(--transition);
        z-index: 999;
    }
    
    .nav-links.open {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-stat-number {
        font-size: 1.4rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-info {
        padding: 28px;
    }
    
    .visit-cta {
        flex-direction: column;
    }
    
    .visit-cta .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .about-img-secondary {
        right: -12px;
        bottom: -20px;
    }
}
