/* ═══ NAVBAR ═══ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 1rem 0;
    transition: all 0.6s var(--ease);
}

.nav.scrolled {
    padding: 0.18rem 0;
    background: rgba(251, 247, 242, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-a);
}

[data-theme="dark"] .nav.scrolled {
    background: rgba(26, 19, 22, 0.9);
}

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

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.nav__mono {
    width: 46px;
    height: 46px;
    border: 1.5px solid var(--rose);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--burgundy);
    transition: all 0.5s var(--ease);
}

.nav__logo {
    height: 216px;
    width: auto;
    transition: all 0.4s var(--ease);
}

.nav.scrolled .nav__logo {
    height: 88px;
}

.nav.scrolled .nav__name {
    font-size: 0.95rem;
}

.nav.scrolled .nav__links {
    gap: 1.5rem;
}

.nav.scrolled .nav__link {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.nav.scrolled .theme-toggle {
    width: 36px;
    height: 36px;
}

.nav.scrolled .theme-toggle svg {
    width: 16px;
    height: 16px;
}

.nav.scrolled .nav__actions {
    gap: 0.45rem;
}

.nav.scrolled .nav__actions .btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.72rem;
}

.nav__brand:hover .nav__logo {
    transform: scale(1.05);
}

.nav__brand:hover .nav__mono {
    background: var(--burgundy);
    color: var(--gold-light);
    border-color: var(--burgundy);
    transform: rotate(-5deg);
}

[data-theme="dark"] .nav__mono {
    color: var(--rose-light);
    border-color: var(--rose-light);
}

.nav__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.01em;
}

.nav__links {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .nav__links {
        display: flex;
    }
}

.nav__link {
    position: relative;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-sec);
    transition: color 0.4s;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--rose);
    transition: width 0.5s var(--ease);
}

.nav__link:hover {
    color: var(--text);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sec);
    transition: all 0.4s var(--ease);
    border: 1px solid var(--border);
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--rose);
    background: rgba(196, 146, 138, 0.08);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* ═══ FOOTER ═══ */
.footer {
    padding: clamp(2.5rem, 4vw, 4rem) 0 calc(6.5rem + env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(1200px 500px at 10% 0%, rgba(232, 98, 134, 0.13), transparent 60%),
        radial-gradient(900px 500px at 100% 10%, rgba(227, 180, 77, 0.12), transparent 58%),
        color-mix(in srgb, var(--bg-alt) 82%, var(--bg));
    position: relative;
    overflow: clip;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), transparent 18%),
        repeating-linear-gradient(
            120deg,
            rgba(255,255,255,0.02) 0 1px,
            transparent 1px 14px
        );
    opacity: 0.7;
}

.footer__panel {
    position: relative;
    z-index: 1;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.15));
    border-radius: 28px;
    padding: clamp(1.25rem, 2vw, 1.8rem);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(14px) saturate(130%);
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: start;
}

.footer__brand {
    display: grid;
    gap: 1rem;
}

.footer__brand-row {
    align-items: flex-start;
    gap: 1rem;
}

.footer .nav__logo {
    height: 168px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.12));
}

.footer__brand-copy {
    min-width: 0;
    display: grid;
    gap: 0.55rem;
}

.footer__brand-name {
    display: block;
    font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
    color: var(--text);
}

.footer__tagline {
    margin: 0;
    color: var(--text-sec);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 34ch;
}

.footer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.footer__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.08));
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    color: var(--text-sec);
    font-size: 0.82rem;
    line-height: 1.2;
    transition: all 0.25s var(--ease);
}

.footer__chip:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--rose) 45%, var(--border));
    transform: translateY(-1px);
}

.footer__chip--static:hover {
    transform: none;
}

.footer__chip .material-symbols-rounded {
    font-size: 1rem;
    color: var(--rose);
}

.footer__col {
    border-left: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    padding-left: clamp(0.75rem, 1.4vw, 1rem);
}

.footer__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
}

.footer__list {
    display: grid;
    gap: 0.55rem;
}

.footer__list a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-sec);
    font-size: 0.9rem;
    line-height: 1.35;
    transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer__list a:hover {
    color: var(--text);
    transform: translateX(2px);
}

.footer__list .material-symbols-rounded {
    font-size: 1rem;
    color: color-mix(in srgb, var(--rose) 75%, var(--gold));
}

.footer__bottom {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
}

.footer__copy,
.footer__credit {
    margin: 0;
    color: var(--text-sec);
    font-size: 0.82rem;
    line-height: 1.45;
}

.footer__credit a {
    color: var(--text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--rose) 55%, transparent);
    text-underline-offset: 0.16em;
}

.footer__credit a:hover {
    color: var(--rose);
}

[data-theme="dark"] .footer__panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        color-mix(in srgb, var(--surface) 84%, rgba(0,0,0,0.12));
    box-shadow:
        0 24px 70px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

[data-theme="dark"] .footer__chip {
    background: color-mix(in srgb, var(--surface) 74%, rgba(255,255,255,0.01));
}

@media (max-width: 1200px) {
    .nav__logo {
        height: 192px;
    }

    .nav.scrolled .nav__logo {
        height: 78px;
    }

    .footer__grid {
        grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    }

    .footer__col:last-child {
        grid-column: span 2;
    }

    .footer .nav__logo {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .nav__logo {
        height: 168px;
    }

    .nav.scrolled .nav__logo {
        height: 68px;
    }

    .nav.scrolled .nav__name {
        font-size: 0.88rem;
    }

    .nav.scrolled .nav__actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }

    .footer {
        padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
    }

    .footer__panel {
        border-radius: 22px;
        padding: 1rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer__col {
        border-left: 0;
        padding-left: 0;
        padding-top: 0.9rem;
        border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    }

    .footer__col:last-child {
        grid-column: auto;
    }

    .footer .nav__logo {
        height: 132px;
    }

    .footer__brand-row {
        align-items: center;
    }

    .footer__tagline {
        max-width: none;
        font-size: 0.9rem;
    }

    .footer__meta {
        gap: 0.5rem;
    }

    .footer__chip {
        font-size: 0.78rem;
        min-height: 34px;
        padding: 0.4rem 0.65rem;
    }

    .footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .nav__name {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .footer .nav__logo {
        height: 116px;
    }

    .footer__brand-row {
        gap: 0.75rem;
    }

    .footer__brand-name {
        font-size: 1.05rem;
    }

    .footer .nav__name {
        display: block;
    }

    .footer__copy,
    .footer__credit {
        font-size: 0.78rem;
    }

    .nav__name {
        display: none;
    }

    .nav__actions .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.75rem;
    }

    .nav.scrolled .nav__actions .btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.68rem;
    }

    .nav.scrolled .theme-toggle {
        width: 34px;
        height: 34px;
    }
}
