/* ============================================
   Country Line Creek General Store — Styles
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a2e;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 2.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* --- Navigation --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    background-color: rgba(59, 7, 100, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #ffffff;
}

.nav-brand-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #3b0764;
    flex-shrink: 0;
}

.nav-brand-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link--cta {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #3b0764;
    font-weight: 600;
    margin-left: 0.5rem;
}

.nav-link--cta:hover {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    color: #3b0764;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #3b0764 0%,
        #581c87 20%,
        #7e22ce 45%,
        #9333ea 60%,
        #a855f7 75%,
        #d97706 90%,
        #f59e0b 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(59, 7, 100, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(245, 158, 11, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    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='%23ffffff' fill-opacity='1'%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");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 8rem 1.5rem 4rem;
    color: #ffffff;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(251, 191, 36, 0.9);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-headline em {
    font-style: italic;
    color: #fde68a;
}

.hero-subhead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-meta-item a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.hero-meta-item a:hover {
    color: #fde68a;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #3b0764;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    box-shadow: 0 6px 28px rgba(245, 158, 11, 0.45);
    transform: translateY(-2px);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn--amber {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #3b0764;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn--amber:hover {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    box-shadow: 0 6px 28px rgba(245, 158, 11, 0.45);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

/* --- Section base --- */
.section {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

/* --- Section header --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #d97706;
    margin-bottom: 1rem;
}

.section-label--light {
    color: #fbbf24;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.section-title.section--light {
    color: #ffffff;
}

.section--dark .section-title {
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #6b7280;
}

.section-subtitle.section-subtitle--light {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Section backgrounds --- */
.section--plum-dark {
    background: linear-gradient(135deg, #3b0764, #581c87);
    color: #ffffff;
}

.section--plum-dark .section-label {
    color: #fbbf24;
}

.section--plum-dark .section-title {
    color: #ffffff;
}

.section--plum-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.section--cream {
    background: #faf5ff;
}

.section--dark {
    background: #1a1a2e;
    color: #ffffff;
}

.section--dark .section-label {
    color: #fbbf24;
}

.section--dark .section-title {
    color: #ffffff;
}

.section--dark .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.section--plum-light {
    background: linear-gradient(135deg, #f3e8ff, #faf5ff);
}

/* --- Products grid --- */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.product-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fcd34d;
    margin-bottom: 1.25rem;
}

.product-card-title {
    font-size: 1.1875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.product-card-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
}

/* --- About --- */
.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

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

.about-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    box-shadow: 0 20px 60px rgba(88, 28, 135, 0.2);
}

.about-image-accent {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 60%;
    height: 40%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
}

.about-content {
    max-width: 520px;
}

.about-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e9d5ff;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.about-stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 900;
    color: #7e22ce;
    line-height: 1;
}

.about-stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
}

/* --- Quote --- */
.quote-block {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.quote-block-quote {
    color: #a855f7;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.quote-block-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.55;
    color: #581c87;
    margin-bottom: 1.5rem;
}

.quote-block-attr {
    font-size: 0.875rem;
    font-weight: 600;
    color: #9333ea;
    letter-spacing: 0.05em;
}

/* --- Visit / Contact --- */
.visit-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 900px) {
    .visit-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
    }
}

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

.visit-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: background-color 0.2s ease;
}

.visit-info-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.visit-info-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.08));
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    flex-shrink: 0;
}

.visit-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.35rem;
}

.visit-info-value {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
}

.visit-info-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
}

.visit-map-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.visit-map-link {
    position: relative;
    display: block;
}

.visit-map {
    width: 100%;
    height: auto;
    min-height: 350px;
    display: block;
}

.visit-map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visit-map-link:hover .visit-map-overlay {
    opacity: 1;
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, #7e22ce, #9333ea, #d97706);
    padding: 5rem 0;
}

.cta-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cta-banner-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 2rem;
}

.cta-banner-text strong {
    font-weight: 700;
    color: #fde68a;
}

.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* --- Footer --- */
.footer {
    background: #0f0f1a;
    color: #ffffff;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr;
        gap: 2rem;
    }
}

.footer-brand-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: #3b0764;
    flex-shrink: 0;
}

.footer-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.3;
    color: #ffffff;
}

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

.footer-nav-label,
.footer-contact .footer-nav-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1rem;
}

.footer-nav-list,
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-nav-list a,
.footer-contact-list a,
.footer-contact-list li {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav-list a:hover,
.footer-contact-list a:hover {
    color: #fbbf24;
}

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

.footer-copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-location {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Hover underline utilities --- */
.hover-underline {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.hover-underline:hover {
    text-decoration-color: currentColor;
}

.hover-underline-light {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.hover-underline-light:hover {
    text-decoration-color: #fbbf24;
}

/* --- Mobile navigation --- */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, #3b0764, #581c87);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0.25rem;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: 10px;
    }

    .nav-link--cta {
        margin-left: 0;
        margin-top: 0.75rem;
        text-align: center;
        justify-content: center;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}

/* --- Scroll reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 1px) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* --- Mobile adjustments --- */
@media (max-width: 639px) {
    .hero-content {
        padding: 7rem 1.25rem 3rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .about-stats {
        gap: 1.5rem;
    }

    .about-stat-number {
        font-size: 1.75rem;
    }

    .cta-banner {
        padding: 3.5rem 0;
    }
}
