/* Explain: App-specific layout utilities and header/footer styling. */
.container-spa {
    width: 100%;
    max-width: 78rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.section {
    padding-block: 4.5rem;
}

.section-alt {
    background: var(--surface-color);
}

.section-head {
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 3rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(197, 163, 90, 0.12);
    border: 1px solid rgba(197, 163, 90, 0.28);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 12, 14, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    background: rgba(10, 10, 12, 0.96);
}

.top-bar {
    background: #08080a;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.top-bar-dot {
    color: var(--primary-color);
    opacity: 0.6;
}

.logo-mark {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1rem;
    object-fit: contain;
    flex: none;
}

@media (max-width: 640px) {
    .logo-mark {
        width: 5rem;
        height: 5rem;
    }
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--text-color);
}

.nav-link {
    padding: 0.55rem 0.8rem;
    border-radius: 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--surface-alt);
}

.nav-toggle {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    border: 1px solid var(--border-color);
    background: var(--surface-alt);
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.mobile-nav {
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
    padding: 0.75rem 1rem 1.25rem;
}

.mobile-link {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    font-weight: 600;
}

.mobile-link:hover {
    background: var(--surface-alt);
    color: var(--primary-color);
}

.mobile-group-title {
    padding: 0.75rem 1rem 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: #08080a;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-title {
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 0.9rem;
}

.footer-list {
    display: grid;
    gap: 0.6rem;
    font-size: 0.92rem;
}

.footer-list a {
    transition: color 0.25s ease;
}

.footer-list a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll reveal */
.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.site-credit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 46px;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(197, 163, 90, 0.45);
    background: rgba(197, 163, 90, 0.1);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.site-credit-btn:hover {
    background: var(--primary-color);
    color: #171208;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.site-credit-btn i:last-child {
    font-size: 0.78rem;
    opacity: 0.8;
}

@media (max-width: 640px) {
    .section {
        padding-block: 3rem;
    }
}