/* Explain: App-specific layout utilities (add as needed) */
.wrap {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.wrap-narrow {
    max-width: 52rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--text-muted);
    padding: 0.5rem 0.15rem;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.mobile-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid transparent;
}

.mobile-panel.is-open {
    max-height: 40rem;
    border-top-color: var(--border-color);
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: #e8e6e1;
    padding: 3.5rem 0 2rem;
}

.site-footer h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
}

.footer-link {
    color: #bdbcb7;
    font-size: 0.92rem;
    display: block;
    padding: 0.22rem 0;
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: #fff;
}

/* Floating scroll top */
.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 40;
    cursor: pointer;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
}
