/* ─────────────────────────────────────────────────────────────────
   showcase.css — Home page 3-card photo block ("Pastatai / Sandėlys
   / Gamyba") with optional per-card slideshow. Variant A: gold-dot
   eyebrow above card, 1.5px green outlined frame around photo (radius
   20px), white pill dots overlaid at photo bottom, hover lifts the
   card + zooms photo 1.02×. Crossfade autoplay 5 s when >1 image.
   ───────────────────────────────────────────────────────────────── */

.showcase {
    padding-block: clamp(3.5rem, 7vw, 6rem);
    position: relative;
    /* Very gentle "well" — a wide ellipse of green-mist pooled at centre,
       fading to transparent past 70%, so the section reads as a contained
       feature without a hard block edge. Hairline borders at top/bottom
       give the same subtle separation the rest of the site uses between
       sections without dominating the photos inside. */
    background:
        radial-gradient(ellipse 90% 60% at 50% 50%,
            var(--color-green-mist) 0%,
            transparent 72%
        );
    border-block: 1px solid color-mix(in srgb, var(--color-green) 6%, transparent);
}

[data-theme="dark"] .showcase {
    /* In dark mode --color-green-mist is already very deep — pull intensity
       down further so the section blends with the page rather than glowing. */
    background:
        radial-gradient(ellipse 90% 60% at 50% 50%,
            color-mix(in srgb, var(--color-green-mist) 70%, var(--color-bg)) 0%,
            transparent 72%
        );
    border-block-color: color-mix(in srgb, var(--color-green) 12%, transparent);
}

.showcase-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2.25rem);
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 899px) { .showcase-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; } }

.showcase-card-public {
    display: flex; flex-direction: column; gap: 0.85rem;
}

.showcase-card-public__eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding-inline-start: 2px;
    font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; color: var(--color-green-dark, #006B31);
    font-family: var(--font-heading);
}
.showcase-card-public__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-gold, #B0913D); flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(176, 145, 61, 0.18);
}
/* Faint gold lead-line, matching the reference's "·—  PASTATAI" dash. */
.showcase-card-public__eyebrow::before {
    content: ""; width: 1.5rem; height: 1px;
    background: var(--color-gold, #B0913D); opacity: 0.5;
}

.showcase-frame {
    position: relative;
    border: 1.5px solid var(--color-green, #009A44);
    border-radius: 20px; padding: 10px; overflow: hidden;
    background: var(--color-bg, #fff);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* Inline variant — used inside product cards. The card already provides its
   own frame; a nested green border looks fussy at thumbnail size. Strip the
   chrome but keep the cross-fade. */
.showcase-frame--card {
    border: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    transform: none !important;
    box-shadow: none !important;
    background: transparent;
}
.showcase-frame--card .showcase-slides {
    border-radius: 0;
    aspect-ratio: 4 / 3;
}
.showcase-card-public:hover .showcase-frame,
.showcase-card-public:focus-within .showcase-frame {
    transform: translateY(-4px);
    border-color: var(--color-green-dark, #006B31);
    box-shadow: 0 12px 32px rgba(0, 154, 68, 0.18);
}

.showcase-slides {
    position: relative; width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px; overflow: hidden;
    background: var(--color-green-mist, #F1F9F4);
}
.showcase-slide {
    position: absolute; inset: 0; margin: 0;
    opacity: 0; transition: opacity 0.6s ease;
    pointer-events: none;
}
.showcase-slide.is-active { opacity: 1; pointer-events: auto; }
.showcase-slide img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .6s ease;
}
.showcase-card-public:hover .showcase-slide.is-active img { transform: scale(1.02); }

/* Slideshow toggles — minimalist row floating bare over the photo bottom.
   No background pill, no shadow, no green pill on active. Just small
   white pill-segments at low opacity, with a slightly opaque active one
   to signal current frame. Subtle, doesn't compete with the photo. */
.showcase-dots {
    position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
    display: inline-flex; gap: 5px;
    padding: 0;
    background: transparent;
    z-index: 2;
}
.showcase-dot {
    width: 14px; height: 3px; padding: 0; border: 0; border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer; transition: background .18s ease, width .22s ease;
    appearance: none;
}
.showcase-dot:hover { background: rgba(255, 255, 255, 0.75); }
.showcase-dot.is-active {
    background: rgba(255, 255, 255, 0.95);
    width: 22px;
}
.showcase-dot:focus-visible { outline: 1.5px solid rgba(255, 255, 255, 0.9); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .showcase-slide { transition: none; }
    .showcase-card-public:hover .showcase-frame { transform: none; }
    .showcase-card-public:hover .showcase-slide.is-active img { transform: none; }
}

[data-theme="dark"] .showcase-frame { background: var(--color-bg, #18201A); }
/* Dark mode keeps the same white-on-photo treatment for dots — works
   because dots sit *on top of* the image, not the page background. */
