/* ============================================
   Mt. Olive Corner Store — Brand Styles
   Palette: Burgundy (#7B2D3B) + Blush (#F5E6E0)
   Fonts: Playfair Display (headlines) + Inter (body)
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-burgundy: #7B2D3B;
    --color-burgundy-dark: #5C1F2B;
    --color-burgundy-deeper: #3D141C;
    --color-blush: #F5E6E0;
    --color-blush-light: #FBF5F3;
    --color-blush-mid: #EFD6CE;
    --color-cream: #FDF8F6;
    --color-white: #FFFFFF;
    --color-text-dark: #1A0A0D;
    --color-text-body: #3D2028;
    --color-text-muted: #6B4450;
    --color-text-light: #F5E6E0;

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

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(123, 45, 59, 0.08);
    --shadow-md: 0 4px 16px rgba(123, 45, 59, 0.10);
    --shadow-lg: 0 8px 32px rgba(123, 45, 59, 0.14);
    --shadow-xl: 0 16px 48px rgba(123, 45, 59, 0.16);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- 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-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-body);
    background-color: var(--color-cream);
    -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;
}

ul {
    list-style: none;
}

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-sm);
}

/* --- Section Heading --- */
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-burgundy);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    background-color: var(--color-burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    background-color: transparent;
    color: var(--color-burgundy);
    border: 1.5px solid var(--color-burgundy);
}

.btn--ghost:hover {
    background-color: var(--color-burgundy);
    color: var(--color-white);
}

.btn--light {
    background-color: var(--color-white);
    color: var(--color-burgundy);
    box-shadow: var(--shadow-md);
}

.btn--light:hover {
    background-color: var(--color-blush);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline-light {
    background-color: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn--outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(253, 248, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transition: box-shadow var(--transition-base);
}

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

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.nav__logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-burgundy);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

.nav__logo-text {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-burgundy);
    transition: width var(--transition-base);
}

.nav__link:hover {
    color: var(--color-burgundy);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__cta {
    padding: 0.5rem 1.25rem;
    background-color: var(--color-burgundy);
    color: var(--color-white) !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav__cta:hover {
    background-color: var(--color-burgundy-dark);
    transform: translateY(-1px);
}

.nav__cta::after {
    display: none;
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav__toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-dark);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

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

.nav__toggle.active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: var(--color-cream);
    padding: var(--space-xl) var(--space-md);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--transition-base), transform var(--transition-base);
    pointer-events: none;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 400px;
    margin: 0 auto;
}

.mobile-menu__link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(123, 45, 59, 0.1);
    transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
    color: var(--color-burgundy);
}

.mobile-menu__cta {
    margin-top: var(--space-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: var(--color-burgundy);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-align: center;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 72px;
    background-color: var(--color-cream);
    overflow: hidden;
}

.hero__split--left {
    display: flex;
    align-items: center;
    padding: var(--space-2xl) var(--space-xl);
    padding-left: calc(var(--space-xl) + 2rem);
}

.hero__content {
    max-width: 520px;
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-burgundy);
    margin-bottom: var(--space-md);
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
}

.hero__headline em {
    font-style: italic;
    color: var(--color-burgundy);
}

.hero__subheadline {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    max-width: 440px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.hero__trust-item svg {
    color: var(--color-burgundy);
}

.hero__split--right {
    position: relative;
    overflow: hidden;
}

.hero__image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.hero__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        var(--color-cream) 0%,
        transparent 25%,
        transparent 75%,
        rgba(123, 45, 59, 0.06) 100%
    );
    pointer-events: none;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__image-col img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about__content-col {
    padding: var(--space-md) 0;
}

.about__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-body);
    margin-bottom: var(--space-md);
}

.about__stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(123, 45, 59, 0.12);
}

.about__stat {
    text-align: center;
    flex: 1;
}

.about__stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-burgundy);
    line-height: 1;
    margin-bottom: 0.375rem;
}

.about__stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

.about__stat-divider {
    width: 1px;
    height: 48px;
    background-color: rgba(123, 45, 59, 0.15);
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: var(--space-3xl) 0;
    background-color: var(--color-cream);
}

.products__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-xl);
}

.products__lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

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

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

.product-card__img-wrap {
    overflow: hidden;
    height: 200px;
}

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

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

.product-card__body {
    padding: var(--space-md);
}

.product-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.375rem;
}

.product-card__desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

/* ============================================
   COMMUNITY
   ============================================ */
.community {
    padding: var(--space-3xl) 0;
    background-color: var(--color-burgundy);
    color: var(--color-text-light);
}

.community__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.community__text .section-eyebrow {
    color: var(--color-blush-mid);
}

.community__text .section-heading {
    color: var(--color-white);
}

.community__body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(245, 230, 224, 0.85);
    margin-bottom: var(--space-md);
}

.community__image-col img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   VISIT
   ============================================ */
.visit {
    padding: var(--space-3xl) 0;
    background-color: var(--color-white);
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.visit__info {
    padding: var(--space-lg) 0;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.visit__detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.visit__detail svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--color-burgundy);
}

.visit__detail strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}

.visit__detail span,
.visit__detail a {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.visit__detail a:hover {
    color: var(--color-burgundy);
    text-decoration: underline;
}

.visit__detail span + span {
    display: block;
}

.visit__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 480px;
    box-shadow: var(--shadow-lg);
}

.visit__map iframe {
    width: 100%;
    height: 100%;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, var(--color-burgundy-deeper) 0%, var(--color-burgundy) 50%, var(--color-burgundy-dark) 100%);
    color: var(--color-white);
    text-align: center;
}

.cta__inner {
    max-width: 640px;
    margin: 0 auto;
}

.cta__eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-blush-mid);
    margin-bottom: var(--space-sm);
}

.cta__heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-burgundy-deeper);
    color: var(--color-text-light);
    padding: var(--space-2xl) 0 var(--space-md);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(245, 230, 224, 0.12);
}

.footer__brand .nav__logo-mark {
    margin-bottom: var(--space-sm);
}

.footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(245, 230, 224, 0.7);
    max-width: 300px;
}

.footer__quick-links strong,
.footer__contact strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-blush-mid);
    margin-bottom: var(--space-sm);
}

.footer__quick-links ul,
.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__quick-links a,
.footer__contact a {
    font-size: 0.9rem;
    color: rgba(245, 230, 224, 0.65);
    transition: color var(--transition-fast);
}

.footer__quick-links a:hover,
.footer__contact a:hover {
    color: var(--color-white);
}

.footer__contact li:not(:last-child) {
    display: block;
}

.footer__bottom {
    padding-top: var(--space-md);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 230, 224, 0.4);
}

/* ============================================
   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);
    }
}

/* For browsers that don't support prefers-reduced-motion,
   the .reveal class is added via JS for progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero__split--left {
        padding-left: var(--space-xl);
    }

    .products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .community__image-col img {
        height: 360px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }

    /* Nav */
    .nav__menu {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__split--left {
        padding: var(--space-xl) var(--space-md);
        padding-left: var(--space-md);
        order: 2;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__split--right {
        order: 1;
        min-height: 50vh;
    }

    .hero__image-wrap {
        min-height: 50vh;
    }

    .hero__image-accent {
        background: linear-gradient(
            180deg,
            transparent 60%,
            var(--color-cream) 100%
        );
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        justify-content: center;
    }

    /* About */
    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__image-col img {
        height: 280px;
    }

    .about__stats {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .about__stat-divider {
        width: 48px;
        height: 1px;
    }

    /* Products */
    .products__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Community */
    .community__image-col img {
        height: 280px;
    }

    /* Visit */
    .visit__grid {
        grid-template-columns: 1fr;
    }

    .visit__map {
        height: 320px;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .hero__headline {
        font-size: 2rem;
    }

    .hero__split--right {
        min-height: 40vh;
    }

    .hero__image-wrap {
        min-height: 40vh;
    }

    .section-heading {
        font-size: 1.75rem;
    }
}
