/* Explain: Styles for UI components like cards, buttons, and navigation elements. */
.site-header {
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.9), rgba(11, 11, 13, 0.6));
    backdrop-filter: blur(18px);
    transition: background 300ms ease, box-shadow 300ms ease;
}

.site-header.is-scrolled {
    background: rgba(11, 11, 13, 0.96);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--accent-color);
    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(20, 20, 23, 0.92), rgba(20, 20, 23, 0.55));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(70vh, 660px);
    min-height: 440px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.hero-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--glass-border);
    border-radius: 2.4rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.hero-media::after {
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 1.7rem;
    content: "";
    pointer-events: none;
}

.arch-frame-medium {
    height: 580px;
    max-width: 430px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.floating-note {
    position: absolute;
    right: -1.5rem;
    bottom: 3rem;
    display: flex;
    max-width: 260px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.05rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.quiet-detail {
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    background: rgba(20, 20, 23, 0.5);
    padding: 1rem 1.1rem;
}

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

.service-card:hover {
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
    transform: translateY(-6px);
}

.service-icon {
    display: grid;
    width: 3.1rem;
    height: 3.1rem;
    place-items: center;
    border-radius: 1rem;
    background: var(--sage-soft);
    color: var(--accent-color);
    font-size: 1.1rem;
}

.filter-chip {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(20, 20, 23, 0.6);
    padding: 0.55rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 250ms ease, color 250ms ease, border-color 250ms ease;
}

.filter-chip:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.filter-chip[aria-pressed="true"] {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #0B0B0D;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.9rem;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.project-card:hover {
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
    transform: translateY(-5px);
}

.project-card.is-hidden {
    display: none;
}

.project-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.project-media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.project-card:hover .project-media img {
    transform: scale(1.05);
}

.project-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    border-radius: 999px;
    background: rgba(11, 11, 13, 0.86);
    padding: 0.35rem 0.85rem;
    color: var(--accent-color);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-meta dt {
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-meta dd {
    margin: 0.3rem 0 0;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

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

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

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.07);
}

.gallery-item::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5));
    content: "";
    opacity: 0;
    transition: opacity 300ms ease;
}

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

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    padding: 1rem;
    backdrop-filter: blur(6px);
}

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

.lightbox-figure {
    display: flex;
    width: 100%;
    max-width: 1080px;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.lightbox-stage {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 40vh;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-height: 74vh;
    max-width: 100%;
    width: auto;
    border-radius: 1rem;
    object-fit: contain;
    opacity: 0;
    transition: opacity 300ms ease;
}

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

.lightbox-caption {
    max-width: 46rem;
    color: rgba(239, 233, 220, 0.88);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.lightbox-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-loader.is-visible {
    display: flex;
}

.lightbox-spinner {
    width: 2.2rem;
    height: 2.2rem;
    border: 2px solid rgba(201, 162, 39, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 999px;
    animation: lightbox-spin 800ms linear infinite;
}

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

.lightbox-close,
.lightbox-nav {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 162, 39, 0.34);
    border-radius: 999px;
    background: rgba(11, 11, 13, 0.6);
    color: var(--accent-color);
    transition: background 250ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(201, 162, 39, 0.24);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 0.75rem;
}

.lightbox-next {
    right: 0.75rem;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(20, 20, 23, 0.6);
    padding: 1rem 1.15rem;
}

.contact-icon {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    place-items: center;
    border-radius: 0.9rem;
    background: var(--sage-soft);
    color: var(--accent-color);
    font-size: 0.95rem;
}

.inquiry-form {
    border-radius: 2.2rem;
    padding: clamp(1.5rem, 4vw, 2.4rem);
}

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

.form-status {
    min-height: 1.35rem;
    color: var(--text-muted);
}

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

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

.map-frame {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
}

.map-frame iframe {
    display: block;
    width: 100%;
    min-height: 280px;
    border: 0;
}

.mobile-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    display: flex;
    gap: 0.6rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(11, 11, 13, 0.92);
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

@media (min-width: 768px) {
    .mobile-contact-bar {
        display: none;
    }
}

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

    .arch-frame-large,
    .arch-frame-medium {
        height: 480px;
        min-height: 0;
    }

    .arch-frame-large {
        width: min(100%, 430px);
        margin-right: auto;
        margin-left: auto;
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: none;
        margin: -2.5rem auto 0;
    }

    .lightbox-nav {
        top: auto;
        bottom: 1rem;
        transform: none;
    }

    .lightbox-prev {
        left: 1rem;
    }

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