/* Explain: Styles for UI components like header, buttons, cards, gallery, lightbox, and form fields. */
.site-header {
    background: linear-gradient(180deg, rgba(241, 233, 226, 0.94), rgba(241, 233, 226, 0.7));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

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

.card-soft {
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.service-card {
    border-radius: 1.75rem;
    padding: 1.75rem;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.service-card:hover {
    border-color: rgba(130, 63, 2, 0.35);
    box-shadow: 0 26px 70px rgba(90, 60, 30, 0.14);
    transform: translateY(-6px);
}

.service-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--soft-tint);
    color: var(--primary-color);
    font-size: 1.1rem;
}

.filter-btn {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: transparent;
    padding: 0.55rem 1.15rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color 250ms ease, border-color 250ms ease, background 250ms ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.is-active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

.gallery-grid {
    columns: 2;
    column-gap: 0.75rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        columns: 3;
        column-gap: 1rem;
    }
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0.75rem;
    padding: 0;
    border: 0;
    break-inside: avoid;
    border-radius: 1.25rem;
    background: var(--secondary-color);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

@media (min-width: 768px) {
    .gallery-item {
        margin-bottom: 1rem;
    }
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    transition: transform 600ms ease;
}

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

.gallery-item-icon {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 300ms ease;
    backdrop-filter: blur(8px);
}

.gallery-item:hover .gallery-item-icon,
.gallery-item:focus-visible .gallery-item-icon {
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(56, 37, 26, 0.94);
    padding: 0.75rem;
    backdrop-filter: blur(6px);
}

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

.lightbox-figure {
    position: relative;
    display: flex;
    width: 100%;
    max-width: min(100%, 100rem);
    height: 92vh;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    border-radius: 1.5rem;
}

.lightbox-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1.5rem;
    transition: opacity 250ms ease;
}

@media (min-width: 768px) {
    .lightbox-figure {
        max-width: min(100%, 100rem);
    }
}

.lightbox-figure.is-loading img {
    opacity: 0;
}

.lightbox-figure.is-loading::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    margin: -1.375rem 0 0 -1.375rem;
    border: 3px solid rgba(241, 233, 226, 0.3);
    border-top-color: var(--background-color);
    border-radius: 999px;
    content: "";
    animation: lightbox-spin 900ms linear infinite;
}

@keyframes lightbox-spin {
    to {
        transform: rotate(360deg);
    }
}

.lightbox-close {
    position: absolute;
    z-index: 3;
    top: 1.25rem;
    right: 1.25rem;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-bg);
    color: var(--text-color);
    font-size: 1.15rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    border-radius: 1.25rem;
    background: var(--deep-tint);
    box-shadow: var(--shadow-soft);
}

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

@media (min-width: 1024px) {
    .video-frame {
        max-height: 76vh;
        margin-left: auto;
        margin-right: auto;
    }
}

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

.form-field {
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--field-bg);
    padding: 0.85rem 1.1rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-field:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(130, 63, 2, 0.12);
}

.form-field::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-status.success {
    color: var(--primary-color);
}

.form-status.error {
    color: #A23B2A;
}

.watermark-mark {
    position: absolute;
    left: 0.65rem;
    bottom: 0.65rem;
    z-index: 2;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(56, 37, 26, 0.5);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.watermark-mark--video {
    top: 0.65rem;
    bottom: auto;
}

.lightbox-watermark {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(56, 37, 26, 0.55);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.lightbox-figure.is-loading .lightbox-watermark {
    opacity: 0;
}

.gallery-item img,
.lightbox-figure img {
    -webkit-user-drag: none;
    user-select: none;
}

.gallery-item.is-static {
    cursor: default;
}

.legal-clause ul {
    display: grid;
    gap: 0.35rem;
    margin: 0.75rem 0 0;
    padding-left: 1.15rem;
    list-style: disc;
}

.legal-clause ul li::marker {
    color: var(--secondary-color);
}

.legal-clause strong {
    color: var(--text-color);
    font-weight: 600;
}

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

    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}