/* ============================================
   GREYSTONE BAKERY & GROCERIES
   Bold Editorial — Burgundy + Blush
   ============================================ */

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

:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5C1F2B;
    --burgundy-light: #9A3D4E;
    --blush: #F2D5D0;
    --blush-light: #FAEDE9;
    --blush-pale: #FFF5F3;
    --cream: #FDF8F6;
    --warm-white: #FEFCFB;
    --charcoal: #1A1414;
    --charcoal-light: #2D2222;
    --text-dark: #1A1414;
    --text-mid: #4A3535;
    --text-light: #7A6060;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--burgundy);
    color: #fff;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 252, 251, 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);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}

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

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

.logo-mark {
    color: var(--burgundy);
}

.logo-light {
    color: var(--blush);
}

.logo-light .logo-mark {
    color: var(--blush);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: 0.01em;
    transition: color var(--transition);
    position: relative;
}

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

.nav-list a:hover {
    color: var(--burgundy);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--burgundy);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background var(--transition), transform var(--transition) !important;
}

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

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

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--burgundy);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--burgundy);
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--charcoal);
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 20, 20, 0.82) 0%,
        rgba(123, 45, 59, 0.65) 50%,
        rgba(26, 20, 20, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.hero-headline br {
    display: block;
}

.hero-sub {
    font-size: clamp(1.0625rem, 2vw, 1.3125rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto var(--space-lg);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--burgundy);
    color: #fff;
    border-color: var(--burgundy);
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123, 45, 59, 0.35);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ---------- SCROLL INDICATOR ---------- */
.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ---------- MARQUEE ---------- */
.marquee {
    background: var(--burgundy);
    color: var(--blush);
    overflow: hidden;
    padding: 14px 0;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.marquee-track {
    display: flex;
    gap: var(--space-sm);
    animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}

.marquee-track span.dot {
    opacity: 0.5;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- SECTION COMMON ---------- */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

/* ---------- PRODUCTS ---------- */
.products {
    background: var(--warm-white);
}

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

.product-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(123, 45, 59, 0.12);
}

.product-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

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

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

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

.product-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.product-card-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* ---------- ABOUT ---------- */
.about {
    background: var(--blush-pale);
}

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

.about-images {
    position: relative;
    min-height: 600px;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 7 / 9;
}

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

.about-img-float {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(123, 45, 59, 0.2);
    border: 6px solid var(--blush-pale);
}

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

.about-content {
    padding: var(--space-md) 0 var(--space-md) var(--space-md);
}

.about-content .section-eyebrow {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: var(--space-sm);
}

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

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
}

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

/* ---------- GALLERY ---------- */
.gallery {
    background: var(--warm-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 6 / 5;
}

.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.06);
}

/* ---------- VISIT ---------- */
.visit {
    background: var(--cream);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: stretch;
}

.visit-info {
    padding: var(--space-lg) var(--space-md);
}

.visit-info .section-eyebrow {
    text-align: left;
}

.visit-info .section-title {
    text-align: left;
    margin-bottom: var(--space-md);
}

.visit-details {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.visit-field {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.visit-field a {
    color: var(--burgundy);
    transition: color var(--transition);
}

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

.visit-icon {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--burgundy);
}

.hours {
    background: var(--burgundy);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    color: #fff;
}

.hours-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--blush);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    font-size: 0.9375rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hours-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hours-day {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.hours-time {
    color: var(--blush);
    font-weight: 500;
}

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

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

/* ---------- CONTACT ---------- */
.contact {
    background: var(--burgundy);
    color: #fff;
}

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

.contact-text .section-eyebrow {
    color: var(--blush);
    text-align: left;
}

.contact-text .section-title {
    color: #fff;
    text-align: left;
    margin-bottom: var(--space-sm);
}

.contact-text p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blush);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blush);
    background: rgba(255, 255, 255, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: var(--radius-md);
    color: #81C784;
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-success svg {
    flex-shrink: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--charcoal);
    color: var(--blush);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(242, 213, 208, 0.12);
}

.footer-brand p {
    margin-top: var(--space-sm);
    font-size: 0.9375rem;
    color: rgba(242, 213, 208, 0.6);
    line-height: 1.65;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--blush);
    margin-bottom: var(--space-sm);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(242, 213, 208, 0.55);
    transition: color var(--transition);
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(242, 213, 208, 0.55);
    line-height: 1.5;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--burgundy-light);
}

.footer-contact a {
    color: rgba(242, 213, 208, 0.55);
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    font-size: 0.8125rem;
    color: rgba(242, 213, 208, 0.35);
    flex-wrap: wrap;
    gap: var(--space-xs);
}

/* ---------- REVEAL ANIMATIONS ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal[data-revealed="true"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-grid {
        gap: var(--space-lg);
    }

    .about-img-float {
        right: -10px;
        bottom: -20px;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--warm-white);
        padding: 100px var(--space-md) var(--space-md);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 99;
    }

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

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .nav-list a {
        font-size: 1.125rem;
    }

    .nav-cta {
        margin-top: var(--space-sm);
    }

    .hero-headline {
        font-size: clamp(2.75rem, 14vw, 4.5rem);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

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

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

    .about-images {
        min-height: 400px;
    }

    .about-content {
        padding: var(--space-md) 0 0;
    }

    .about-content .section-eyebrow,
    .about-content .section-title {
        text-align: center;
    }

    .about-content p {
        text-align: center;
    }

    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

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

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

    .visit-info {
        padding: var(--space-md) 0;
    }

    .visit-info .section-eyebrow,
    .visit-info .section-title {
        text-align: center;
    }

    .visit-details {
        align-items: center;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .contact-text .section-eyebrow,
    .contact-text .section-title {
        text-align: center;
    }

    .contact-text p {
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

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

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

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

    .product-card-body {
        padding: var(--space-sm);
    }
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 20, 20, 0.5);
    z-index: 98;
}

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