/* ============================================================
   shared.css — Altaz
   Common styles across all pages: variables, reset,
   typography, navigation, footer, responsive nav
   ============================================================ */

/* ── Variables ───────────────────────────────────────────── */
:root {
    color-scheme: light;
    --primary-dark:          #6B7B9E;
    --primary-blue:          #A8C5E6;
    --accent-peach:          #FFB5A7;
    --accent-peach-light:    #FFF5F0;
    --accent-peach-mid:      #FFD9CC;
    --accent-lavender:       #C4A9D8;
    --accent-lavender-light: #E8D5F2;
    --accent-mint:           #B8E6D5;
    --background-cream:      #FFF9F5;
    --background-light:      #F5F0EB;
    --neutral-100:           #FEFEFE;
    --neutral-200:           #F0EBE3;
    --neutral-700:           #6B7280;
    --neutral-900:           #4A5568;
    --neutral-950:           #2D2D2D;
}

/* ── Reset ───────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--neutral-900);
    line-height: 1.6;
    background: var(--background-cream);
    overflow-x: hidden;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ── Navigation ──────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    padding: 0 2rem 0.3rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

nav.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    transition: all 0.3s ease;
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
}

footer a {
    color: var(--accent-mint);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ── Responsive: Navigation ──────────────────────────────── */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem;
        gap: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 640px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}
