/* --- CONTAINER STRUCTURE --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--px-mobile);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--px-desktop);
    }
}

section {
    padding: 60px 0;
    position: relative;
}

@media (min-width: 1024px) {
    section {
        padding: 80px 0;
    }
}

/* --- HEADER --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 32px 0;
    background: transparent;
    transition: var(--trans-smooth);
}

.site-header.scrolled {
    padding: 20px 0;
    background: rgba(251, 249, 246, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--clr-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand img {
    height: 72px;
    width: auto;
    transition: height var(--trans-fast);
}

.site-header.scrolled .brand img {
    height: 56px;
}

/* --- DESKTOP NAV --- */
.nav-desktop {
    display: none;
    gap: clamp(16px, 2.5vw, 48px);
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--clr-text-main);
    opacity: 0.7;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--clr-text-main);
    transition: var(--trans-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: none;
    gap: 16px;
    align-items: center;
}

@media (min-width: 1150px) {

    .nav-desktop,
    .header-actions {
        display: flex;
    }

    .mobile-menu-btn {
        display: none !important;
    }
}

/* --- MOBILE MENU --- */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1002;
    color: var(--clr-text-main);
    transition: var(--trans-smooth);
}

.site-header.menu-open .mobile-menu-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.8);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--clr-bg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: var(--trans-smooth);
    clip-path: circle(0% at top right);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    clip-path: circle(150% at top right);
}

.mobile-menu-close {
    position: absolute;
    top: 32px;
    right: var(--px-mobile);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--clr-text-main);
    z-index: 1002;
    opacity: 0;
    transform: translateY(-20px) rotate(-90deg);
    transition: var(--trans-smooth);
    transition-delay: 0.1s;
}

@media (min-width: 768px) {
    .mobile-menu-close {
        right: var(--px-desktop);
    }
}

.mobile-menu.active .mobile-menu-close {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

.mobile-menu-close:hover {
    color: var(--clr-primary);
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--clr-text-main);
    font-weight: 400;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--trans-smooth);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger mobile links */
.mobile-menu.active .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-link:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-link:nth-child(6) {
    transition-delay: 0.35s;
}

.mobile-menu.active .mobile-link:nth-child(7) {
    transition-delay: 0.4s;
}

.mobile-link:hover {
    color: var(--clr-primary);
    font-style: italic;
}

/* --- FOOTER --- */
.site-footer {
    padding: 80px 0 40px;
    background: var(--clr-surface-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-light);
}

.site-footer .footer-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--clr-surface);
    display: block;
    margin-bottom: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 64px;
    }
}

.footer-desc {
    max-width: 400px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--trans-smooth);
}

.footer-socials a:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    transform: translateY(-4px);
}

.footer-links h4 {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-surface);
    margin-bottom: 32px;
    font-family: var(--font-body);
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--trans-fast);
}

.footer-links a:hover {
    color: var(--clr-surface);
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--clr-border-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ─── MOBILE (< 768px) — Footer centering ─────────── */
@media (max-width: 767px) {
    .footer-grid>div {
        text-align: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
        opacity: 0.85;
    }
}