/* ==========================================================================
   Shared Navigation — Gemélia Learn
   All pages should <link> this file and use the standard nav HTML template.
   ========================================================================== */

/* ---- Navbar ---- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 248, .92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background .3s ease, border .3s ease;
}

[data-theme="dark"] .nav {
    background: rgba(10, 9, 14, .88);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .nav {
        background: rgba(10, 9, 14, .88);
    }
}

.nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.nav__brand {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.2rem;
    color: var(--text, #1a1a1a);
    text-decoration: none;
    font-weight: 400;
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__links {
    display: flex;
    gap: 4px;
}

.nav__links a {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-muted, #7a776d);
    padding: 6px 14px;
    border-radius: 8px;
    transition: all .2s;
    text-decoration: none;
}

.nav__links a:hover {
    background: rgba(196, 152, 90, .08);
    color: var(--accent, #9E7C1A);
}

/* ---- Theme Toggle ---- */
.nav__theme {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border, #d8d5cc);
    border-radius: 10px;
    background: var(--surface, #eae8e1);
    cursor: pointer;
    color: var(--text-muted, #7a776d);
    transition: all .2s;
}

.nav__theme:hover {
    border-color: var(--accent, #9E7C1A);
    color: var(--accent, #9E7C1A);
}

.nav__theme svg {
    width: 18px;
    height: 18px;
}

[data-theme="light"] .ico-sun {
    display: none
}

[data-theme="dark"] .ico-moon {
    display: none
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .ico-moon {
        display: none
    }
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .ico-sun {
        display: none
    }
}

/* ---- Vertical separator before icon cluster ---- */
.nav__sep {
    width: 1px;
    height: 20px;
    background: var(--border, #d8d5cc);
    margin: 0 8px;
    flex-shrink: 0;
}

/* ---- Social icons (nav) — borderless ---- */
.nav__socials {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--text-muted, #7a776d);
    text-decoration: none;
    transition: color .2s;
    background: transparent;
    border: none;
}

.nav__social-link:hover {
    color: var(--text, #1a1a1a);
}

.nav__social-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* ---- Social icons (footer) — borderless, centred column ---- */
.footer__socials {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted, #7a776d);
    text-decoration: none;
    transition: color .2s;
    background: transparent;
}

.footer__social-link:hover {
    color: var(--text, #1a1a1a);
}

.footer__social-link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ---- Hamburger (mobile) ---- */
.ham {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 9px;
    background: none;
    border: 1px solid var(--border, #d8d5cc);
    border-radius: 10px;
    cursor: pointer;
}

.ham span {
    display: block;
    height: 2px;
    background: var(--text, #1a1a1a);
    border-radius: 2px;
    transition: .25s;
}

.ham[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.ham[aria-expanded="true"] span:nth-child(2) {
    opacity: 0
}

.ham[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* ---- Mobile Menu ---- */
.mob-menu {
    display: none;
    padding: 8px 40px 24px;
    background: var(--nav-bg, rgba(250, 250, 248, .92));
    border-bottom: 1px solid var(--border, #d8d5cc);
}

.mob-menu.open {
    display: block;
}

.mob-menu a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text, #1a1a1a);
    text-decoration: none;
    border-bottom: 1px solid var(--border, #d8d5cc);
}

.mob-menu a:last-child {
    border: none;
}

.mob-menu__socials {
    display: flex;
    gap: 20px;
    padding: 16px 0 4px;
}

.mob-menu__socials a {
    font-size: .88rem;
    color: var(--text-muted, #7a776d);
    text-decoration: none;
    border-bottom: none !important;
}

.mob-menu__socials a:hover {
    color: var(--accent, #9E7C1A);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav__socials { display: none; }
    .nav__sep { display: none; }
}

@media (max-width: 640px) {
    .nav__links {
        display: none
    }

    .ham {
        display: flex
    }

    .nav__inner {
        padding: 0 20px
    }
}

/* ================================================================
   Shared Footer — Gemélia Learn
   ================================================================ */

.site-footer {
    border-top: 1px solid var(--border, #d8d5cc);
    padding: 32px 0 28px;
    background: var(--bg, #faf9f6);
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Top row: brand | centred socials | nav */
.site-footer__top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.site-footer__brand {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text, #1a1a1a);
    text-decoration: none;
    letter-spacing: .02em;
    white-space: nowrap;
}

.footer__socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted, #7a776d);
    text-decoration: none;
    transition: color .2s;
    background: transparent;
}

.footer__social-link:hover {
    color: var(--text, #1a1a1a);
}

.footer__social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.site-footer__nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-footer__nav a {
    font-size: .84rem;
    color: var(--text-muted, #7a776d);
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}

.site-footer__nav a:hover {
    color: var(--text, #1a1a1a);
}

.site-footer__divider {
    border: none;
    border-top: 1px solid var(--border, #d8d5cc);
    margin: 20px 0 16px;
}

.site-footer__copy {
    font-size: .78rem;
    color: var(--text-muted, #7a776d);
    opacity: .65;
    margin: 0;
}

@media (max-width: 640px) {
    .site-footer__inner { padding: 0 20px; }

    .site-footer__top {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 16px;
    }

    .footer__socials {
        justify-content: flex-start;
    }

    .site-footer__nav {
        justify-content: flex-start;
        gap: 14px;
    }
}