/* Explain: Styles for various site components and layout variations. */
.site-header {
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.9), rgba(13, 13, 13, 0.55));
    backdrop-filter: blur(18px);
}

.logo-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: #ffffff;
    padding: 0.4rem 0.7rem;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.45);
}

.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(23, 23, 23, 0.85), rgba(23, 23, 23, 0.55));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

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

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

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

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

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.6rem 1.1rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.quiet-detail,
.feature-row {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 1.25rem;
}

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

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

.service-card {
    min-height: 360px;
    border-radius: 2.2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(-6px);
}

.service-badge {
    display: inline-flex;
    border-radius: 999px;
    background: var(--sage-soft);
    padding: 0.5rem 1rem;
    color: var(--sage-dark);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.feature-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    transition: border-color 300ms ease;
}

.feature-dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.45rem var(--terracotta-soft);
}

.media-frame-tall {
    height: 660px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 3rem 999px 999px 3rem;
    box-shadow: var(--shadow-soft);
}

.area-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.55rem 1rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 300ms ease, color 300ms ease;
}

.area-pill:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.1rem 1.4rem;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.faq-item:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: var(--shadow-soft);
}

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

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

.faq-chevron {
    flex-shrink: 0;
    transition: transform 300ms ease;
}

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

.quote-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

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

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

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

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

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    min-height: 100dvh;
    flex-direction: column;
    overflow-y: auto;
    background: var(--background-color);
    color: var(--text-color);
}

.nav-overlay.is-open {
    display: flex;
}

.quote-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.68);
    padding: 1rem;
}

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

.quote-overlay-panel {
    min-height: calc(100vh - 2rem);
    border-radius: 2.4rem;
    background: var(--background-color);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

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

    .arch-frame-large,
    .arch-frame-medium,
    .media-frame-tall {
        height: 510px;
        min-height: 0;
    }

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

    .media-frame-tall {
        border-radius: 999px 999px 2rem 2rem;
    }
}

@media (min-width: 1024px) {
    .nav-overlay.is-open {
        display: none;
    }
}