/* ───────────────────────────────────────────
   Stringtown Grocery — Styles
   Palette: Burgundy (#722F37) + Blush (#F4C2C2)
   Fonts: Playfair Display + DM Sans
──────────────────────────────────────────── */

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

:root {
    --burgundy: #722F37;
    --burgundy-deep: #5A242B;
    --blush: #F4C2C2;
    --blush-light: #FCE8E8;
    --blush-pale: #FFF5F5;
    --cream: #FFFAF8;
    --white: #FFFFFF;
    --dark: #1A0A0C;
    --text: #2D1518;
    --text-light: #6B4448;
    --text-muted: #9A7276;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(114, 47, 55, 0.06);
    --shadow-md: 0 8px 32px rgba(114, 47, 55, 0.10);
    --shadow-lg: 0 16px 64px rgba(114, 47, 55, 0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* ── Background Shapes ── */
.bg-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 194, 194, 0.25) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(114, 47, 55, 0.06) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
    border-radius: 50%;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 194, 194, 0.2) 0%, transparent 70%);
    top: 50%;
    right: 5%;
    border-radius: 50%;
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 250, 248, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(114, 47, 55, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--burgundy);
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--burgundy);
    border-radius: 10px;
    position: relative;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.logo-mark::after {
    content: '';
    position: absolute;
    inset: 8px;
    background: var(--blush);
    border-radius: 4px;
}

.logo-text {
    font-size: 1.15rem;
}

.logo .dot {
    color: var(--blush);
    font-weight: 300;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.main-nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--burgundy);
    background: var(--blush-pale);
}

.nav-cta {
    background: var(--burgundy) !important;
    color: var(--white) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--burgundy-deep) !important;
    color: var(--white) !important;
}

/* Nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    padding: 4px 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--burgundy);
    border-radius: 2px;
    transition: 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);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(114, 47, 55, 0.25);
}

.btn-primary:hover {
    background: var(--burgundy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(114, 47, 55, 0.3);
}

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

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

.btn-directions {
    margin-top: 16px;
}

/* ── Section Shared ── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--blush);
    border-radius: 2px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    line-height: 1.7;
}

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

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

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--white);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.badge-line {
    width: 8px;
    height: 8px;
    background: var(--burgundy);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

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

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 24px;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--blush);
}

/* Hero Image */
.hero-image-wrap {
    position: relative;
}

.hero-image-shape {
    position: absolute;
    width: 90%;
    height: 90%;
    top: 8%;
    left: 5%;
    background: var(--blush);
    border-radius: var(--radius-xl);
    z-index: -1;
    transform: rotate(3deg);
}

.hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.hero-float-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

.float-card-icon {
    width: 40px;
    height: 40px;
    background: var(--blush-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    flex-shrink: 0;
}

.float-card-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.float-card-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}

/* Hero geometric accent */
.hero-geo {
    position: absolute;
    top: 15%;
    right: -40px;
    z-index: 0;
}

.geo-circle {
    width: 120px;
    height: 120px;
    border: 2px solid var(--blush);
    border-radius: 50%;
}

.geo-cross {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.geo-cross::before,
.geo-cross::after {
    content: '';
    position: absolute;
    background: var(--burgundy);
}

.geo-cross::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.geo-cross::after {
    height: 2px;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

/* ── About ── */
.about {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

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

.about-visual {
    position: relative;
}

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

.about-img-block img {
    width: 100%;
    height: auto;
    aspect-ratio: 5/6;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    z-index: 2;
}

.accent-dot {
    width: 48px;
    height: 48px;
    background: var(--burgundy);
    border-radius: 50%;
}

.accent-line {
    width: 4px;
    height: 80px;
    background: var(--blush);
    border-radius: 4px;
}

.accent-square {
    width: 48px;
    height: 48px;
    background: var(--blush);
    border-radius: var(--radius-sm);
    transform: rotate(15deg);
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-content > p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

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

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

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

.feature-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Products ── */
.products {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    background: var(--white);
}

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

.product-card {
    position: relative;
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
}

.card-burgundy {
    background: var(--burgundy);
    color: var(--white);
}

.card-blush {
    background: var(--blush);
    color: var(--dark);
}

.card-geo {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.15;
}

.card-burgundy .card-geo {
    background: var(--white);
}

.card-blush .card-geo {
    background: var(--burgundy);
}

.card-number {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.12;
    line-height: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-burgundy .card-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.card-blush .card-icon {
    background: rgba(114, 47, 55, 0.12);
    color: var(--burgundy);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
}

/* ── Gallery ── */
.gallery {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item--wide {
    grid-column: span 7;
    aspect-ratio: 2/1;
}

.gallery-item:not(.gallery-item--wide) {
    aspect-ratio: 1/1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(to top, rgba(26, 10, 12, 0.7), transparent);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ── Visit ── */
.visit {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    background: var(--white);
}

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

.visit-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

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

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.5;
}

.contact-value a {
    color: var(--burgundy);
    transition: var(--transition);
}

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

/* Map placeholder */
.map-placeholder {
    background: var(--blush-pale);
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.map-geo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-dot {
    width: 16px;
    height: 16px;
    background: var(--burgundy);
    border-radius: 50%;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
}

.map-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--blush);
    border-radius: 50%;
}

.map-ring--2 {
    width: 80px;
    height: 80px;
    margin-top: -40px;
    margin-left: -40px;
}

.map-ring {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;
}

.map-info {
    text-align: center;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.map-label {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.map-address {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Footer ── */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand .logo-mark {
    background: var(--blush);
}

.footer-brand .logo-mark::after {
    background: var(--burgundy);
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact a {
    color: var(--blush);
    transition: var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

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

/* ── Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }

    .about-grid {
        gap: 48px;
    }

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

    .visit-grid {
        gap: 48px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

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

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 100px 32px 32px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-nav a {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        text-align: center;
        margin-top: 12px;
    }

    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(26, 10, 12, 0.4);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-image-wrap {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-float-card {
        left: 0;
        bottom: 20px;
    }

    .hero-stats {
        gap: 16px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        max-width: 400px;
        margin: 0 auto;
    }

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

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

    .gallery-item--wide {
        grid-column: span 2;
        aspect-ratio: 16/9;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-stats {
        flex-wrap: wrap;
    }

    .stat-divider {
        display: none;
    }

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

    .gallery-item--wide {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }

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