/* Oporio visual revision: tighter headings, richer product layouts, delivery section, full photo archive. */

h1 {
    font-size: clamp(2.9rem, 5.4vw, 5.7rem);
}

h2 {
    font-size: clamp(2.25rem, 4vw, 4.05rem);
}

.site-nav {
    gap: clamp(12px, 1.45vw, 23px);
    font-size: 0.88rem;
}

/* Slightly richer motion without turning the page into an animation demo. */
[data-reveal] {
    transform: translateY(26px) scale(0.985);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.72,.2,1);
}

[data-reveal].is-visible {
    transform: translateY(0) scale(1);
}

.hero-media::before {
    animation: oporio-halo 8s ease-in-out infinite;
}

.hero-badge {
    animation: oporio-float 4.6s ease-in-out infinite;
}

.button,
.text-link {
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
    box-shadow: 0 10px 24px rgba(23, 63, 53, 0.14);
}

.button-review {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
    animation: oporio-review-pulse 5s ease-in-out infinite;
}

.button-review:hover,
.button-review:focus-visible {
    color: #fff;
    background: #b85d39;
}

.about-media,
.delivery-media,
.map-wrap {
    transition: transform 420ms cubic-bezier(.2,.72,.2,1), box-shadow 420ms ease;
}

.about-media:hover,
.delivery-media:hover,
.map-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 68px rgba(20, 43, 35, 0.16);
}

/* Fresh produce: section intro and lead product copy left, square image right. */
.produce-feature {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr);
    align-items: center;
    gap: clamp(42px, 6vw, 84px);
    margin-bottom: 24px;
}

.produce-feature-copy {
    max-width: 590px;
}

.produce-heading {
    max-width: 560px;
    margin-bottom: 34px;
}

.produce-lead-copy {
    max-width: 520px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.produce-lead-copy h3 {
    margin-bottom: 10px;
    font-size: clamp(1.55rem, 2vw, 2rem);
}

.produce-lead-copy p {
    margin-bottom: 0;
    color: var(--muted);
}

.produce-card-featured {
    overflow: hidden;
}

.produce-card-featured .card-image-wrap img {
    aspect-ratio: 1 / 1;
}

.produce-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.produce-grid-secondary .produce-card .card-image-wrap img {
    aspect-ratio: 1 / 1;
}

.produce-card {
    transition: transform 380ms cubic-bezier(.2,.72,.2,1), box-shadow 380ms ease;
}

.produce-card.is-visible:hover {
    transform: translateY(-5px) scale(1);
    box-shadow: 0 20px 46px rgba(20, 43, 35, 0.11);
}

.produce-grid-secondary > :nth-child(2)[data-reveal] {
    transition-delay: 80ms;
}

.deli-heading {
    max-width: 900px;
}

/* Delicatessen: 10 cards arranged 3 / 2 / 2 / 3 on desktop. */
.deli-grid-expanded {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
}

.deli-grid-expanded .deli-card-expanded:nth-child(-n+3),
.deli-grid-expanded .deli-card-expanded:nth-child(n+8) {
    grid-column: span 2;
}

.deli-grid-expanded .deli-card-expanded:nth-child(n+4):nth-child(-n+7) {
    grid-column: span 3;
}

.deli-card-expanded {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream-2);
    box-shadow: 0 12px 35px rgba(20, 43, 35, 0.055);
}

.deli-card-expanded[data-reveal] {
    transform: translateY(26px) scale(0.985) !important;
}

.deli-card-expanded[data-reveal].is-visible {
    transform: translateY(0) scale(1) !important;
}

.deli-card-expanded[data-reveal].is-visible:hover {
    transform: translateY(-5px) scale(1) !important;
    box-shadow: 0 20px 46px rgba(20, 43, 35, 0.11);
}

.deli-grid-expanded > :nth-child(3n+2)[data-reveal] {
    transition-delay: 60ms;
}

.deli-grid-expanded > :nth-child(3n+3)[data-reveal] {
    transition-delay: 120ms;
}

.deli-card-expanded .deli-card-media {
    overflow: hidden;
}

.deli-card-expanded img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    opacity: 1;
    transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.deli-card-expanded:hover img {
    transform: scale(1.045);
    opacity: 1;
}

.deli-card-copy {
    padding: 22px 22px 25px;
}

.deli-card-copy h3 {
    margin-bottom: 9px;
    font-size: clamp(1.35rem, 1.7vw, 1.7rem);
}

.deli-card-copy p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.juice-item {
    transition: padding-left 220ms ease, background 220ms ease;
}

.juice-item:hover {
    padding-left: 10px;
    background: rgba(255,255,255,.035);
}

.gallery .section-heading {
    max-width: 900px;
}

/* Gallery: deliberately square thumbnails. Full uncropped image opens in the lightbox. */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item,
.gallery-item-1,
.gallery-item-2,
.gallery-item-3 {
    display: block;
    width: 100%;
    margin: 0;
    grid-column: auto;
}

.gallery-grid > :nth-child(4n+2)[data-reveal] {
    transition-delay: 45ms;
}

.gallery-grid > :nth-child(4n+3)[data-reveal] {
    transition-delay: 90ms;
}

.gallery-grid > :nth-child(4n+4)[data-reveal] {
    transition-delay: 135ms;
}

.gallery-lightbox-trigger {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--cream-2);
    cursor: zoom-in;
    transition: transform 320ms cubic-bezier(.2,.72,.2,1), box-shadow 320ms ease;
}

.gallery-lightbox-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 25, 20, 0);
    transition: background 220ms ease;
    pointer-events: none;
}

.gallery-lightbox-trigger:hover,
.gallery-lightbox-trigger:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20, 43, 35, 0.13);
}

.gallery-lightbox-trigger:hover::after {
    background: rgba(8, 25, 20, 0.08);
}

.gallery-lightbox-trigger:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.gallery-lightbox-trigger:hover img {
    transform: scale(1.04);
}

body.lightbox-open {
    overflow: hidden;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 18px;
    padding: clamp(20px, 3vw, 42px);
    background: rgba(7, 18, 15, 0.94);
    cursor: zoom-out;
}

.gallery-lightbox-dialog {
    display: flex;
    min-width: 0;
    max-height: calc(100vh - 84px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.gallery-lightbox-image-wrap {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.gallery-lightbox-image-wrap img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.gallery-lightbox-caption {
    max-width: 900px;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    line-height: 1.5;
    text-align: center;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    appearance: none;
    border: 0;
    color: #fff;
    background: rgba(7, 18, 15, 0.74);
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: rgba(7, 18, 15, 0.94);
}

.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.85rem;
    line-height: 1;
}

.gallery-lightbox-nav {
    width: 54px;
    height: 54px;
    justify-self: center;
    border-radius: 50%;
    font-size: 2.4rem;
    line-height: 1;
}

.gallery-lightbox-nav:active,
.gallery-lightbox-close:active {
    transform: scale(0.96);
}

.delivery {
    background: var(--cream);
}

.delivery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(44px, 7vw, 96px);
}

.delivery-media {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--white);
}

.delivery-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.delivery-copy {
    max-width: 620px;
}

.delivery-copy > p:not(.eyebrow) {
    margin-bottom: 30px;
    color: var(--muted);
}

@keyframes oporio-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes oporio-halo {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
    50% { transform: translate3d(-8px, 8px, 0) scale(1.045); opacity: .82; }
}

@keyframes oporio-review-pulse {
    0%, 82%, 100% { box-shadow: 0 0 0 0 rgba(201, 108, 69, 0); }
    88% { box-shadow: 0 0 0 7px rgba(201, 108, 69, 0.12); }
    94% { box-shadow: 0 0 0 0 rgba(201, 108, 69, 0); }
}

@media (max-width: 1100px) {
    .deli-grid-expanded {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .deli-grid-expanded .deli-card-expanded:nth-child(n) {
        grid-column: auto;
    }

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

@media (max-width: 980px) {
    .produce-feature,
    .delivery-grid {
        grid-template-columns: 1fr;
    }

    .produce-feature-copy,
    .produce-heading,
    .delivery-copy {
        max-width: 720px;
    }

    .produce-card-featured {
        max-width: 720px;
    }
}

@media (max-width: 760px) {
    h1 {
        font-size: clamp(2.65rem, 12vw, 4.15rem);
    }

    h2 {
        font-size: clamp(2.15rem, 9.5vw, 3.3rem);
    }

    .produce-grid-secondary,
    .deli-grid-expanded {
        grid-template-columns: 1fr;
    }

    .produce-card-featured .card-image-wrap img,
    .produce-grid-secondary .produce-card .card-image-wrap img {
        aspect-ratio: 1 / 1;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gallery-lightbox {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        gap: 7px;
        padding: 20px 8px;
    }

    .gallery-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 2rem;
    }

    .gallery-lightbox-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        font-size: 1.65rem;
    }

    .gallery-lightbox-image-wrap,
    .gallery-lightbox-image-wrap img {
        max-height: calc(100vh - 170px);
    }

    .gallery-lightbox-caption {
        margin-top: 10px;
        padding: 0 4px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-lightbox {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 4px;
    }

    .gallery-lightbox-nav {
        width: 34px;
        height: 34px;
        font-size: 1.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media::before,
    .hero-badge,
    .button-review {
        animation: none !important;
    }
}
