/* CSS Custom Properties */
:root {
    /* Colors - warm, inviting grocery store palette */
    --color-primary: #d4542c;
    --color-primary-dark: #b84424;
    --color-primary-light: #f5e6e1;
    --color-secondary: #2c5d3f;
    --color-secondary-light: #e8f0eb;
    --color-accent: #f4a83a;
    --color-text: #1a1a1a;
    --color-text-muted: #5a5a5a;
    --color-text-light: #8a8a8a;
    --color-bg: #fefcfa;
    --color-bg-alt: #f8f5f2;
    --color-white: #ffffff;
    --color-overlay: rgba(15, 12, 10, 0.75);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

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

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

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

/* Typography */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.75rem);
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

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

.section-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

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

.btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

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

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 12, 10, 0.4) 0%,
        rgba(15, 12, 10, 0.6) 50%,
        rgba(15, 12, 10, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-xl);
    max-width: 600px;
}

.hero__badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(212, 84, 44, 0.9);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 2.5rem + 4vw, 6rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hero__rating-text {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 600;
}

.hero__rating-count {
    font-weight: 400;
    opacity: 0.8;
}

.hero__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    opacity: 0.7;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: opacity var(--transition-base);
}

.hero__scroll:hover {
    opacity: 1;
}

.hero__scroll svg {
    width: 32px;
    height: 32px;
}

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

/* ==================== GALLERY ==================== */
.gallery {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
}

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

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery__item--featured {
    aspect-ratio: 16/10;
}

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

.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery__item:hover img {
    transform: scale(1.08);
}

.gallery__item:hover::after {
    opacity: 1;
}

/* ==================== REVIEWS ==================== */
.reviews {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-alt);
}

.reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.review {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.review:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.review__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.review__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.review__meta {
    flex: 1;
}

.review__author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.review__stars {
    display: flex;
    gap: 1px;
}

.review__stars svg {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
}

.review__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    font-style: italic;
    border: none;
    padding: 0;
}

/* ==================== CONTACT ==================== */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-lg);
}

.hours-table td {
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.hours-table tr:last-child td {
    border-bottom: none;
}

.hours-table td:first-child {
    font-weight: 500;
    color: var(--color-text);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.hours-table__sunday td:first-child {
    color: var(--color-primary);
}

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

.contact__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

a.contact__item:hover {
    background: var(--color-primary-light);
    transform: translateX(4px);
}

.contact__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact__icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
}

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

.contact__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
}

.contact__value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer__tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.9rem;
}

.footer__link {
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-white);
}

.footer__divider {
    color: rgba(255,255,255,0.3);
}

.footer__address {
    color: rgba(255,255,255,0.7);
}

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

.footer__copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox__close svg {
    width: 24px;
    height: 24px;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav svg {
    width: 28px;
    height: 28px;
}

.lightbox__nav--prev {
    left: var(--space-lg);
}

.lightbox__nav--next {
    right: var(--space-lg);
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox__image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    opacity: 0;
    transform: scale(0.95);
    transition: all var(--transition-base);
}

.lightbox.active .lightbox__image {
    opacity: 1;
    transform: scale(1);
}

/* ==================== RESPONSIVE ==================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
    .hero__cta {
        flex-direction: row;
    }

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

    .gallery__item--featured {
        grid-column: span 2;
    }

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

    .reviews__grid .review:last-child {
        grid-column: span 2;
        max-width: 50%;
        justify-self: center;
    }

    .contact__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4xl);
    }

    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery__item--featured {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: auto;
    }

    .reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews__grid .review:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

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

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero__bg {
        animation: none;
    }

    .hero__scroll {
        animation: none;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}
