/* Header Navigation */
body > header nav.tight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: var(--color-surface);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

body > header nav img {
    width: 5rem;
}

body > header nav h1 {
    margin: 0;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
}

body > header nav h1 a {
    display: flex;
    align-items: center;
    color: var(--color-text-primary);
    text-decoration: none;
}

/* Mobile Navigation */
.nav-toggle {
    font-size: 2rem;
    color: black;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 1rem;
    background: white;
    list-style: none;
}

.nav-links.active {
    display: block;
}

.nav-links li {
    position: relative;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.2s;
}

.nav-links li:hover {
    color: var(--color-accent-primary);
}

.nav-links li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--color-accent-primary);
    transition: width 0.2s ease-in-out;
}

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

.nav-links li a {
    color: inherit;
    text-decoration: none;
}

/* Header Button */
body > header nav .btn {
    padding: var(--btn-padding);
    background: var(--btn-secondary-bg);
    border-radius: 999px;
    color: var(--btn-secondary-color);
    font-family: 'Josefin Sans', sans-serif;
    font-weight: var(--btn-font-weight);
    text-decoration: none;
    transition: background 0.2s ease;
}

body > header nav .btn:hover {
    background: var(--color-accent-primary-dark);
}

@media (min-width: 64rem) {
    .nav-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        gap: 2rem;
        padding: 0;
        background: none;
        align-items: center;
        justify-content: center;
    }
}

/* Footer */
body > footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background: var(--color-accent-primary-light);
    font-size: 0.95rem;
}

body > footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

body > footer h3 {
    margin-bottom: 0.75rem;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

body > footer address,
body > footer ul {
    margin: 0;
    padding: 0;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    list-style: none;
}

body > footer ul li {
    margin: 0.4rem 0;
}

body > footer ul li a {
    color: var(--color-text);
    text-decoration: none;
}

body > footer ul li a:hover,
body > footer ul li a:focus {
    text-decoration: underline;
}

/* Social Links */
body > footer .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-text-secondary);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--color-accent-primary);
}

/* Footer Bottom */
body > footer hr {
    margin: 2rem 0 1rem;
    border: none;
    border-top: 2px solid var(--color-text-secondary);
}

body > footer section:last-child p,
body > footer small {
    display: block;
    margin: 0.3rem 0;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 0.85rem;
    color: var(--color-text);
    text-align: center;
}