/* Explain: Styles for site components, including headers, cards, tables, and lightbox. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.9), rgba(250, 249, 246, 0.55));
    backdrop-filter: blur(18px);
    transition: background 300ms ease, box-shadow 300ms ease;
}

.site-header.is-scrolled {
    background: rgba(250, 249, 246, 0.97);
    box-shadow: 0 14px 40px rgba(31, 46, 35, 0.09);
}

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

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

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

.nav-dropdown {
    position: relative;
}

.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    background: none;
    padding: 0;
    color: var(--text-color);
    font: inherit;
    font-weight: 600;
    transition: color 300ms ease;
}

.nav-trigger:hover {
    color: var(--accent-color);
}

.nav-trigger i {
    font-size: 0.6rem;
    transition: transform 300ms ease;
}

.nav-dropdown.is-open .nav-trigger i {
    transform: rotate(180deg);
}

.nav-dropdown-panel {
    position: absolute;
    left: -1rem;
    top: 100%;
    display: none;
    min-width: 17rem;
    padding-top: 0.7rem;
}

.nav-dropdown.is-open .nav-dropdown-panel {
    display: block;
}

@media (hover: hover) and (min-width: 1024px) {
    .nav-dropdown:hover .nav-dropdown-panel {
        display: block;
    }

    .nav-dropdown:hover .nav-trigger i {
        transform: rotate(180deg);
    }
}

.nav-dropdown-inner {
    display: grid;
    gap: 0.1rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: var(--background-color);
    box-shadow: var(--shadow-soft);
    padding: 0.6rem;
}

.nav-dropdown-inner a {
    display: block;
    border-radius: 0.9rem;
    padding: 0.6rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    transition: background 200ms ease, color 200ms ease;
}

.nav-dropdown-inner a:hover {
    background: var(--secondary-color);
    color: var(--text-color);
}

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

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(250, 249, 246, 0.6);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(72vh, 700px);
    min-height: 480px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

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

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

.offer-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(250, 249, 246, 0.72);
    padding: 1.6rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.offer-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    box-shadow: 0 24px 60px rgba(31, 46, 35, 0.1);
    transform: translateY(-5px);
}

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

.chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.45rem 0.95rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    transition: border-color 250ms ease, color 250ms ease, background 250ms ease;
}

a.chip:hover,
.chip:hover {
    border-color: var(--accent-color);
    background: var(--secondary-color);
    color: var(--text-color);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip--price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    border-radius: 1.1rem;
    padding: 0.55rem 1rem;
}

.chip-size {
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.chip-price {
    color: var(--sage-dark);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.2;
}

.chip-note {
    margin-top: 0.9rem;
    max-width: 46rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.75);
    box-shadow: var(--shadow-soft);
}

.spec-table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.95rem 1.1rem;
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
    line-height: 1.6;
}

.spec-table thead th {
    color: var(--sage-dark);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.spec-table tbody tr:last-child td {
    border-bottom: 0;
}

.spec-table td:first-child {
    color: var(--text-color);
    font-weight: 600;
}

.spec-table td:nth-child(2) {
    color: var(--text-muted);
    white-space: nowrap;
}

.step-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.7rem;
    background: rgba(250, 249, 246, 0.72);
    padding: 1.8rem;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.step-card:hover {
    border-color: rgba(88, 129, 87, 0.5);
    box-shadow: var(--shadow-soft);
}

.step-number {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1;
}

.stat-card {
    height: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.7);
    padding: 1.4rem 1.5rem;
}

.gallery-tile {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.7rem;
    box-shadow: var(--shadow-soft);
}

.gallery-tile img {
    transition: transform 700ms ease;
}

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

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.6rem 1.2rem 1.1rem;
    background: linear-gradient(180deg, rgba(31, 46, 35, 0), rgba(31, 46, 35, 0.85));
    color: #faf9f6;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.5;
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 1.3rem;
    background: rgba(250, 249, 246, 0.75);
    padding: 0.2rem 1.3rem;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.faq-item[open] {
    border-color: rgba(88, 129, 87, 0.5);
    box-shadow: var(--shadow-soft);
}

.faq-item summary {
    display: flex;
    min-height: 3.6rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    list-style: none;
}

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

.faq-icon {
    flex-shrink: 0;
    color: var(--accent-color);
    font-size: 0.85rem;
    transition: transform 300ms ease;
}

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

.faq-answer {
    padding-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.85;
}

.note-panel {
    border: 1px dashed var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(233, 237, 223, 0.6);
    padding: 1.4rem 1.6rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.info-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(250, 249, 246, 0.75);
    padding: 1.4rem;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.info-card:hover {
    border-color: rgba(88, 129, 87, 0.5);
    box-shadow: var(--shadow-soft);
}

.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.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.form-status.success {
    color: #3f6249;
}

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

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

    .arch-frame-large,
    .arch-frame-medium {
        height: 480px;
        min-height: 0;
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 420px);
    }

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

.christmas-decor {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.christmas-decor__garland {
    width: 100%;
    max-width: 58rem;
}

.christmas-decor__wreath {
    width: clamp(6.5rem, 15vw, 8.5rem);
    margin-top: -0.5rem;
    transform-origin: 50% 0%;
    animation: christmas-sway 7s ease-in-out infinite;
}

@keyframes christmas-sway {
    0%,
    100% {
        transform: rotate(-1.5deg);
    }

    50% {
        transform: rotate(1.5deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .christmas-decor__wreath {
        animation: none;
    }
}

.spec-photo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    background: none;
    padding: 0;
    color: var(--sage-dark);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-underline-offset: 3px;
    transition: color 250ms ease;
}

.spec-photo-link:hover {
    color: var(--accent-color);
}

.spec-photo-link i {
    color: var(--accent-color);
    font-size: 0.78rem;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(20, 30, 22, 0.86);
    backdrop-filter: blur(6px);
}

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

.photo-lightbox__img {
    max-width: min(92vw, 68rem);
    max-height: 84vh;
    border-radius: 1.4rem;
    background: var(--surface-color);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transition: opacity 300ms ease;
}

.photo-lightbox__img.is-loading {
    opacity: 0.25;
}

.photo-lightbox__img.is-rotated {
    transform: rotate(180deg);
}

.photo-lightbox__close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(250, 249, 246, 0.4);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.14);
    color: #faf9f6;
    font-size: 1rem;
    transition: background 250ms ease;
}

.photo-lightbox__close:hover {
    background: rgba(250, 249, 246, 0.3);
}

.photo-lightbox__nav {
    position: absolute;
    top: 50%;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(250, 249, 246, 0.4);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.14);
    color: #faf9f6;
    font-size: 1rem;
    transform: translateY(-50%);
    transition: background 250ms ease;
}

.photo-lightbox__nav:hover {
    background: rgba(250, 249, 246, 0.3);
}

.photo-lightbox__nav.is-hidden {
    display: none;
}

.photo-lightbox__nav--prev {
    left: 1.2rem;
}

.photo-lightbox__nav--next {
    right: 1.2rem;
}

.photo-lightbox__counter {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    color: #faf9f6;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    transform: translateX(-50%);
}

@media (max-width: 640px) {
    .photo-lightbox__nav--prev {
        left: 0.6rem;
    }

    .photo-lightbox__nav--next {
        right: 0.6rem;
    }
}

@media (max-width: 640px) {
    .photo-lightbox {
        padding: 1rem;
    }

    .photo-lightbox__img {
        max-height: 78vh;
        border-radius: 1rem;
    }
}