/* Explain: Styles for page components, including gallery items and lightbox viewer. */
.site-header {
    background: linear-gradient(180deg, var(--background-color) 0%, var(--background-color) 52%, rgba(250, 249, 246, 0.82) 100%);
    backdrop-filter: blur(18px);
}

.logo-img {
    display: block;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.8), rgba(255, 255, 255, 0.5));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.photo-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.28);
    border-radius: 2rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo {
    aspect-ratio: 4 / 5;
    border-radius: 2.4rem;
}

.photo-tall {
    aspect-ratio: 4 / 5;
}

.hero-badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    display: inline-flex;
    max-width: calc(100% - 2.5rem);
    align-items: center;
    gap: 0.6rem;
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.95);
    padding: 0.7rem 1.1rem;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.stat-block {
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.62);
    padding: 1rem 0.75rem;
    text-align: center;
}

.stat-block strong {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.1;
}

.stat-block span {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.value-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.62);
    padding: 1.15rem;
    transition: border-color 300ms ease;
}

.value-row:hover {
    border-color: rgba(88, 129, 87, 0.55);
}

.value-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
}

.product-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: 1.9rem;
    padding: 1.25rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.product-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.11);
    transform: translateY(-6px);
}

.product-photo {
    aspect-ratio: 4 / 3;
    border-radius: 1.4rem;
}

.product-price {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: right;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--sage-soft);
    padding: 0.35rem 0.85rem;
    color: var(--sage-dark);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.animal-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(250, 249, 246, 0.66);
    padding: 1rem;
    text-align: center;
    transition: transform 300ms ease, border-color 300ms ease;
}

.animal-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    transform: translateY(-4px);
}

.animal-photo {
    aspect-ratio: 1 / 1;
    border-radius: 1.4rem;
}

.info-panel {
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: rgba(250, 249, 246, 0.74);
    padding: clamp(1.35rem, 4vw, 2.25rem);
    box-shadow: var(--shadow-soft);
}

.hours-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px dashed var(--glass-border);
    padding: 0.65rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hours-row strong {
    color: var(--text-color);
    font-weight: 600;
}

.hours-row:last-of-type {
    border-bottom: none;
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status {
    min-height: 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
}

.form-status.success {
    color: #4A6B53;
}

.form-status.error {
    color: #9B4A3D;
}

.mobile-order-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(250, 249, 246, 0.9);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.inquiry-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(31, 46, 35, 0.34);
    padding: 1rem;
}

.inquiry-overlay.is-open {
    display: block;
}

.inquiry-overlay-panel {
    min-height: calc(100vh - 2rem);
    border-radius: 2.4rem;
    background: var(--background-color);
    padding: clamp(1.35rem, 4vw, 2.25rem);
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.22);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .hero-photo {
        border-radius: 2rem;
    }

    .hero-badge {
        bottom: 0.9rem;
        left: 0.9rem;
        font-size: 0.74rem;
        padding: 0.6rem 0.9rem;
    }
}

.crop-menu-item {
    display: grid;
    width: 100%;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.62);
    padding: 0.95rem 1.15rem;
    text-align: left;
    transition: border-color 300ms ease, background 300ms ease, transform 300ms ease;
}

.crop-menu-item:hover,
.crop-menu-item.is-active {
    border-color: rgba(88, 129, 87, 0.55);
    background: rgba(233, 237, 223, 0.92);
    transform: translateX(4px);
}

.crop-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 2rem;
}

.crop-photo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 600ms ease;
}

.crop-photo-image.is-active {
    opacity: 1;
}

.story-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 2.4rem;
}

.story-photo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1100ms ease;
}

.story-photo-image.is-active {
    opacity: 1;
}

.story-photo-dots {
    position: absolute;
    right: 0;
    bottom: 1.1rem;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.55rem;
}

.story-photo-dot {
    height: 0.6rem;
    width: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    padding: 0;
    transition: background 300ms ease, transform 300ms ease;
}

.story-photo-dot:hover {
    background: rgba(255, 255, 255, 0.65);
}

.story-photo-dot.is-active {
    background: #ffffff;
    transform: scale(1.25);
}

.history-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 2.4rem;
}

.history-photo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1100ms ease;
}

.history-photo-image.is-active {
    opacity: 1;
    pointer-events: auto;
}

.history-photo-dots {
    position: absolute;
    right: 0;
    bottom: 1.1rem;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0.55rem;
}

.history-photo-dot {
    height: 0.6rem;
    width: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    padding: 0;
    transition: background 300ms ease, transform 300ms ease;
}

.history-photo-dot:hover {
    background: rgba(255, 255, 255, 0.65);
}

.history-photo-dot.is-active {
    background: #ffffff;
    transform: scale(1.25);
}

.people-photo {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 2.4rem;
}

.people-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1100ms ease;
}

.people-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.people-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 7000ms ease-out;
}

.people-slide.is-active .people-slide-image {
    transform: scale(1.05);
}

.people-slide.is-active .people-slide-image.is-close {
    transform: scale(1.14);
}

.people-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(14, 22, 16, 0.88));
    padding: 3.6rem 1.35rem 3.1rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.5;
}

.people-dots {
    position: absolute;
    right: 0;
    bottom: 1.15rem;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 0.55rem;
}

.people-dot {
    height: 0.62rem;
    width: 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    padding: 0;
    transition: background 300ms ease, transform 300ms ease;
}

.people-dot:hover {
    background: rgba(255, 255, 255, 0.65);
}

.people-dot.is-active {
    background: #ffffff;
    transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
    .people-slide,
    .people-slide-image {
        transition: none;
    }

    .people-slide.is-active .people-slide-image {
        transform: none;
    }
}

.hero-full {
    background: var(--hero-base);
}

.hero-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-mosaic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: hero-pan 26s ease-in-out infinite alternate;
}

.hero-mosaic-img:nth-child(2) {
    animation-duration: 32s;
}

.hero-mosaic-img:nth-child(3) {
    animation-duration: 29s;
}

.hero-mosaic-img:nth-child(4) {
    animation-duration: 35s;
}

@keyframes hero-pan {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1.14);
    }
}

.hero-scrim {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(180deg, var(--hero-scrim-top) 0%, var(--hero-scrim-mid) 45%, var(--hero-scrim-strong) 100%);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hero-kicker::before,
.hero-kicker::after {
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.55);
    content: "";
}

.hero-title {
    text-shadow: 0 10px 40px rgba(9, 16, 11, 0.5);
}

.hero-scroll-cue {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translate(-50%, 0);
    backdrop-filter: blur(10px);
    animation: cue-bounce 2.6s ease-in-out infinite;
}

@keyframes cue-bounce {
    0%,
    100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 7px);
    }
}

.pillar-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 1.9rem;
    background: rgba(250, 249, 246, 0.74);
    padding: clamp(1.35rem, 3vw, 1.9rem);
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, border-color 300ms ease;
}

.pillar-card:hover {
    border-color: rgba(88, 129, 87, 0.5);
    transform: translateY(-5px);
}

.pillar-icon {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-size: 1.15rem;
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.8);
    padding: 1.1rem 1.35rem;
    box-shadow: var(--shadow-soft);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    cursor: pointer;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.faq-question::-webkit-details-marker {
    display: none;
}

summary::marker {
    content: "";
}

.faq-chevron {
    color: var(--accent-color);
    transition: transform 300ms ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    margin: 0.9rem 0 0.15rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.9;
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: var(--surface-color);
    padding: 0;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease, filter 600ms ease;
}

.gallery-item img {
    filter: saturate(1.24) contrast(1.07) brightness(1.03);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.06);
}

.gallery-item:hover img {
    filter: saturate(1.42) contrast(1.1) brightness(1.05);
}

.gallery-item-video {
    background: linear-gradient(150deg, var(--primary-color), var(--hero-base));
}

.gallery-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    height: 3.4rem;
    width: 3.4rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(14, 22, 16, 0.42);
    color: #ffffff;
    font-size: 1rem;
    pointer-events: none;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(6px);
    transition: background 300ms ease, transform 300ms ease;
}

.gallery-item-video:hover .gallery-play-badge {
    background: rgba(14, 22, 16, 0.65);
    transform: translate(-50%, -50%) scale(1.08);
}

.gallery-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, transparent, rgba(14, 22, 16, 0.85));
    padding: 1.75rem 0.9rem 0.85rem;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(11, 18, 13, 0.9);
    padding: 1.25rem;
    backdrop-filter: blur(6px);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-stage {
    position: relative;
    display: flex;
    width: min(100%, 68rem);
    max-height: 100%;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    width: auto;
    max-width: 100%;
    max-height: 82vh;
    border-radius: 1.2rem;
    opacity: 0;
    filter: saturate(1.24) contrast(1.07) brightness(1.03);
    transition: opacity 300ms ease;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.lightbox-image.is-ready {
    opacity: 1;
}

.lightbox-video {
    width: min(100%, 68rem);
    max-width: 100%;
    max-height: 82vh;
    border-radius: 1.2rem;
    background: #000000;
    opacity: 0;
    transition: opacity 300ms ease;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.lightbox-video.is-ready {
    opacity: 1;
}

.lightbox-spinner {
    position: absolute;
    display: none;
    color: #ffffff;
    font-size: 1.9rem;
}

.lightbox-spinner.is-visible {
    display: block;
}

.lightbox-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(11, 18, 13, 0.88));
    padding: 2.5rem 1.25rem 1.1rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    border-radius: 0 0 1.2rem 1.2rem;
    pointer-events: none;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    height: 2.9rem;
    width: 2.9rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

@media (max-width: 639px) {
    .hero-mosaic {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-mosaic-img:nth-child(n + 2) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mosaic-img,
    .hero-slide,
    .hero-scroll-cue {
        animation: none;
    }
}

.hero-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2600ms ease-in-out;
    animation: hero-slide-zoom 30s ease-in-out infinite alternate;
    will-change: opacity, transform;
}

.hero-slide:nth-child(2) {
    animation-duration: 35s;
}

.hero-slide:nth-child(3) {
    animation-duration: 41s;
}

.hero-slide:nth-child(4) {
    animation-duration: 33s;
}

.hero-slide.is-active {
    opacity: 1;
}

@keyframes hero-slide-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.fact-band {
    border: 1px solid var(--glass-border);
    border-radius: 1.9rem;
    background: rgba(250, 249, 246, 0.85);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.fact-item {
    text-align: center;
}

.fact-item strong {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    font-weight: 600;
    line-height: 1.1;
}

.fact-item span {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.reveal-item {
    transition: opacity 700ms ease, transform 700ms ease;
}

.js-ready .reveal-item {
    opacity: 0;
    transform: translateY(28px);
}

.js-ready .reveal-item.is-visible {
    opacity: 1;
    transform: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-50%);
    transition: background 300ms ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav-prev {
    left: 1rem;
}

.lightbox-nav-next {
    right: 1rem;
}

@media (max-width: 639px) {
    .lightbox-nav {
        height: 2.6rem;
        width: 2.6rem;
    }

    .lightbox-nav-prev {
        left: 0.5rem;
    }

    .lightbox-nav-next {
        right: 0.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-item {
        transition: none;
    }

    .js-ready .reveal-item {
        opacity: 1;
        transform: none;
    }
}