/* Explain: Styles for UI elements like cards, buttons, navigation, and media frames. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.94), rgba(250, 249, 246, 0.62));
    backdrop-filter: blur(18px);
}

.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.2em;
}

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

.paper-card {
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: linear-gradient(150deg, rgba(250, 249, 246, 0.86), rgba(255, 255, 255, 0.54));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.hero-frame {
    position: relative;
    width: 100%;
    height: min(72vh, 660px);
    min-height: 440px;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.34);
    aspect-ratio: 1 / 1;
    border-radius: 1.75rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

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

.hero-note {
    position: absolute;
    right: -1.25rem;
    bottom: 3rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.8rem;
    border-radius: 1.6rem;
    padding: 1rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.5;
}

.story-frame {
    height: 560px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 2.6rem 999px 999px 2.6rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

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

.detail-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.62);
    padding: 1.2rem 1.25rem;
}

.detail-card span {
    display: inline-flex;
    margin-bottom: 0.6rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
}

.detail-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

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

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

.dish-thumb {
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--surface-color);
}

.dish-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 500ms ease;
}

.dish-card:hover .dish-thumb img {
    transform: scale(1.04);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--sage-soft);
    padding: 0.34rem 0.85rem;
    color: var(--sage-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background 300ms ease, border-color 300ms ease;
}

a.badge-soft:hover {
    border-color: var(--glass-border);
    background: var(--secondary-color);
}

.price-tag {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.review-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(250, 249, 246, 0.68);
    padding: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.form-status {
    font-size: 0.875rem;
    line-height: 1.6;
    min-height: 1.4rem;
}

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

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

.gallery-tile {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: var(--surface-color);
    padding: 0;
    cursor: zoom-in;
}

.gallery-tile img {
    width: 100%;
    transition: transform 500ms ease;
}

.gallery-tile:hover img {
    transform: scale(1.05);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(31, 46, 35, 0.9);
    padding: 1.25rem;
}

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

.lightbox-figure {
    position: relative;
    display: flex;
    min-height: 14rem;
    max-width: min(100%, 1040px);
    max-height: 90vh;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin: 0;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 1.25rem;
    object-fit: contain;
}

.lightbox-caption {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-align: center;
}

.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(241, 244, 235, 0.42);
    border-radius: 999px;
    background: rgba(31, 46, 35, 0.62);
    color: #F1F4EB;
}

.lightbox-spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #F1F4EB;
    font-size: 1.6rem;
}

.lightbox.is-loading .lightbox-spinner {
    display: flex;
}

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

    .hero-frame,
    .story-frame {
        height: 420px;
        aspect-ratio: auto;
        min-height: 0;
        border-radius: 2rem 2rem 1.5rem 1.5rem;
    }

    .hero-frame {
        border-radius: 1.75rem;
    }

    .hero-note {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: 100%;
        margin: -2rem auto 0;
    }
}

.gallery-card {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.gallery-caption {
    margin-top: 0.75rem;
    padding: 0 0.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.manage-photo-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.68);
    padding: 1rem;
}

.manage-photo-thumb {
    overflow: hidden;
    border-radius: 1rem;
    background: var(--surface-color);
}

.manage-photo-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.manage-photo-caption {
    flex: 1;
    margin-top: 0.85rem;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.7;
}

.manage-photo-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.manage-photo-delete {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    border: 1px solid rgba(155, 74, 61, 0.35);
    border-radius: 999px;
    background: rgba(155, 74, 61, 0.08);
    padding: 0 1.1rem;
    color: #9B4A3D;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 300ms ease, border-color 300ms ease;
}

.manage-photo-delete:hover {
    background: rgba(155, 74, 61, 0.16);
    border-color: rgba(155, 74, 61, 0.5);
}

.manage-photo-delete:disabled {
    opacity: 0.6;
    cursor: default;
}