/* ========================================
   Coal Creek Family Farm — Stylesheet
   Bold Editorial | Plum + Amber Palette
   ======================================== */

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

:root {
    /* Plum palette */
    --plum-50: #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #6b21a8;
    --plum-900: #581c87;
    --plum-950: #3b0764;

    /* Amber palette */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;

    /* Neutrals */
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-400: #a8a29e;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    --neutral-950: #0c0a09;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-padding: clamp(1.25rem, 4vw, 3rem);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    line-height: 1.6;
    -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;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107, 33, 168, 0.08);
    transition: var(--transition-base);
}

.nav.scrolled {
    background: rgba(250, 250, 249, 0.95);
    box-shadow: 0 1px 20px rgba(107, 33, 168, 0.08);
}

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

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

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-700);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--plum-700);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-500);
    transition: var(--transition-base);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--plum-800);
    color: var(--neutral-50) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-base);
}

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

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

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--plum-900);
    border-radius: 2px;
    transition: var(--transition-base);
}

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

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

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

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(59, 7, 100, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-100);
    transition: var(--transition-fast);
}

.mobile-menu-link:hover {
    color: var(--amber-400);
}

.mobile-menu-phone {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--amber-300);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--plum-950) 0%,
        var(--plum-800) 25%,
        var(--plum-700) 45%,
        var(--amber-700) 70%,
        var(--amber-600) 85%,
        var(--amber-500) 100%
    );
    padding: 6rem var(--container-padding) 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 60% at 60% 40%,
        rgba(168, 85, 247, 0.4) 0%,
        transparent 70%
    ),
    radial-gradient(
        ellipse 60% 50% at 30% 70%,
        rgba(251, 191, 36, 0.3) 0%,
        transparent 60%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--amber-300) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--plum-300) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--amber-200);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--neutral-50);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(250, 250, 249, 0.8);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--amber-500);
    color: var(--neutral-950);
}

.btn-primary:hover {
    background: var(--amber-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--neutral-50);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-300);
}

.hero-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(250, 250, 249, 0.6);
    font-weight: 500;
}

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

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(250, 250, 249, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(250, 250, 249, 0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Common --- */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--plum-700);
    margin-bottom: 1rem;
    position: relative;
    padding: 0 1rem;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--amber-500);
}

.section-tag::before { left: -1rem; }
.section-tag::after { right: -1rem; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    color: var(--neutral-900);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--neutral-600);
    line-height: 1.7;
    font-weight: 300;
}

/* --- Products Section --- */
.products {
    background: var(--neutral-50);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--neutral-100);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(107, 33, 168, 0.12);
}

.product-card-img {
    position: relative;
    aspect-ratio: 3/2;
    background-size: cover;
    background-position: center;
}

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(59, 7, 100, 0.6), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.product-card-tag {
    background: var(--amber-500);
    color: var(--neutral-950);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card-body {
    padding: 1.75rem;
}

.product-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.product-card-desc {
    font-size: 0.95rem;
    color: var(--neutral-600);
    line-height: 1.7;
    font-weight: 300;
}

/* --- Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: var(--neutral-50);
}

.divider-icon {
    color: var(--amber-500);
    opacity: 0.6;
}

/* --- About Section --- */
.about {
    background: var(--neutral-100);
}

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

.about-image-col {
    position: relative;
}

.about-image-main {
    position: relative;
    aspect-ratio: 7/9;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(107, 33, 168, 0.15);
}

.about-image-accent {
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    pointer-events: none;
}

.about-image-float {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--neutral-100);
}

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

.about-text-col {
    padding: 1rem 0;
}

.about-text-col .section-title {
    text-align: left;
}

.about-body {
    font-size: 1.05rem;
    color: var(--neutral-600);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.about-value {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--plum-700), var(--plum-600));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-200);
}

.about-value-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.25rem;
}

.about-value-desc {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.6;
    font-weight: 300;
}

/* --- Quote Section --- */
.quote-section {
    background: linear-gradient(135deg, var(--plum-950), var(--plum-800));
    padding: clamp(4rem, 10vw, 7rem) 0;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle at 20% 50%, var(--amber-400) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

.quote-mark {
    color: var(--amber-500);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.quote-content blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    font-style: italic;
    color: var(--neutral-100);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.quote-attr {
    font-size: 0.9rem;
    color: var(--amber-400);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* --- Visit Section --- */
.visit {
    background: var(--neutral-50);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.visit-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--neutral-100);
    padding: 1.75rem;
    border-radius: 16px;
    transition: var(--transition-base);
}

.visit-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(107, 33, 168, 0.08);
}

.visit-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--plum-800), var(--plum-700));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-300);
}

.visit-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 0.35rem;
}

.visit-card-text {
    font-size: 0.95rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

.visit-card-text a {
    color: var(--plum-700);
    font-weight: 500;
    transition: var(--transition-fast);
}

.visit-card-text a:hover {
    color: var(--plum-600);
}

.visit-hours-note {
    font-size: 0.8rem;
    color: var(--neutral-500);
    font-style: italic;
}

.visit-map {
    border-radius: 20px;
    overflow: hidden;
}

.visit-map-placeholder {
    background: linear-gradient(135deg, var(--plum-100), var(--plum-200));
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.visit-map-placeholder svg {
    color: var(--plum-600);
    opacity: 0.6;
}

.visit-map-placeholder p {
    font-size: 1rem;
    color: var(--plum-800);
    font-weight: 500;
}

.btn-map {
    background: var(--plum-800);
    color: var(--neutral-50);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-map:hover {
    background: var(--plum-700);
    box-shadow: 0 8px 30px rgba(107, 33, 168, 0.3);
}

/* --- Footer --- */
.footer {
    background: var(--neutral-950);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--neutral-100);
    margin-bottom: 0.75rem;
}

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

.footer-tagline {
    font-size: 0.9rem;
    color: var(--neutral-500);
    max-width: 280px;
    line-height: 1.6;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--neutral-400);
    transition: var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--neutral-600);
}

.footer-bottom a {
    color: var(--amber-500);
    transition: var(--transition-fast);
}

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

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 8rem 1.5rem 4rem;
    }

    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.25rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-float {
        right: 0;
        bottom: -1.5rem;
    }

    .about-text-col .section-title {
        text-align: center;
    }

    .about-text-col .section-tag {
        display: block;
        text-align: center;
    }

    .about-body {
        text-align: center;
    }

    .visit-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
}
