
/* ============================================================
   Joseph Mwanamvekha — Official Personal Website
   Design system: restrained luxury · institutional gravitas
   ============================================================ */

:root {
    --navy: #10271f;
    --navy-mid: #17372c;
    --navy-soft: #214638;
    --ivory: #f8f5ef;
    --ivory-deep: #f0ebe1;
    --paper: #ffffff;
    --ink: #121a2b;
    --ink-soft: #2a3448;
    --muted: #5c667a;
    --muted-light: #8b93a5;
    --accent: #b52b36;
    --accent-bright: #d64b55;
    --accent-deep: #84202a;
    --line: rgba(181, 43, 54, 0.28);
    --line-soft: rgba(18, 26, 43, 0.08);
    --shadow: 0 24px 64px rgba(16, 39, 31, 0.12);
    --shadow-lg: 0 40px 80px rgba(16, 39, 31, 0.22);
    --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 72px;
    --max: 1120px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: inherit;
    transition: color 0.25s var(--ease);
}

button {
    font-family: inherit;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--navy);
    padding: 10px 18px;
    z-index: 200;
    font-weight: 600;
    text-decoration: none;
}

    .skip-link:focus {
        left: 16px;
        top: 16px;
    }

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 32px);
}

/* ---------- NAV ---------- */
nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(20px, 4vw, 40px);
    background: rgba(16, 39, 31, 0.72);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

    nav.scrolled {
        background: rgba(16, 39, 31, 0.94);
        border-bottom-color: rgba(181, 43, 54, 0.15);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    }

    nav .brand {
        font-family: var(--serif);
        font-size: 1.35rem;
        font-weight: 600;
        text-decoration: none;
        letter-spacing: 0.03em;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        nav .brand::before {
            content: "";
            width: 6px;
            height: 6px;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 0 3px rgba(181, 43, 54, 0.25);
        }

    nav ul {
        display: flex;
        gap: 4px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

        nav ul a {
            text-decoration: none;
            font-size: 0.78rem;
            font-weight: 500;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.78);
            padding: 10px 14px;
            border-radius: 2px;
            position: relative;
            transition: color 0.25s;
        }

            nav ul a:hover,
            nav ul a.active {
                color: #fff;
            }

            nav ul a::after {
                content: "";
                position: absolute;
                left: 14px;
                right: 14px;
                bottom: 6px;
                height: 1.5px;
                background: var(--accent);
                transform: scaleX(0);
                transform-origin: center;
                transition: transform 0.3s var(--ease);
            }

            nav ul a:hover::after,
            nav ul a.active::after {
                transform: scaleX(1);
            }

.burger {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    padding: calc(var(--nav-h) + 48px) max(24px, calc((100vw - var(--max)) / 2)) 80px;
    background: radial-gradient(ellipse 80% 60% at 85% 15%, rgba(181, 43, 54, 0.08), transparent 50%), radial-gradient(ellipse 100% 80% at 10% 90%, rgba(21, 37, 64, 0.9), transparent 45%),
    /*    linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-soft) 100%);*/
    /*    linear-gradient(160deg, #050505 0%, #111111 55%, #1c1c1c 100%);*/
    linear-gradient(160deg, #0B1F3A 0%, #142D4E 55%, #1D3F66 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
        pointer-events: none;
        opacity: 0.5;
    }

.hero-text {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 20px;
}

    .eyebrow::before {
        content: "";
        width: 28px;
        height: 1px;
        background: var(--accent);
    }

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 1.0;
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}

.role {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 500;
    color: var(--accent-bright);
    margin: 0 0 24px;
    letter-spacing: 0.01em;
}

.tagline {
    max-width: 480px;
    color: rgba(207, 214, 228, 0.92);
    font-size: 1.08rem;
    line-height: 1.75;
    font-weight: 400;
}

.cta {
    display: flex;
    gap: 14px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    background: var(--accent);
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1.5px solid var(--accent);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

    .btn:hover {
        background: var(--accent-bright);
        border-color: var(--accent-bright);
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(181, 43, 54, 0.3);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn.ghost {
        background: transparent;
        color: #fff;
        border-color: rgba(255, 255, 255, 0.35);
    }

        .btn.ghost:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: rgba(181, 43, 54, 0.08);
            box-shadow: none;
        }

.hero-img {
    position: relative;
    z-index: 1;
    justify-self: end;
    max-width: 420px;
    width: 100%;
}

    .hero-img::before {
        content: "";
        position: absolute;
        inset: 22px -22px -22px 22px;
        border: 1px solid var(--accent);
        z-index: 0;
        opacity: 0.7;
    }

    .hero-img::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(16, 39, 31, 0.35) 0%, transparent 40%);
        z-index: 2;
        pointer-events: none;
    }

    .hero-img img {
        position: relative;
        z-index: 1;
        width: 100%;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        box-shadow: var(--shadow-lg);
    }

/* ---------- SECTIONS ---------- */
section {
    padding: clamp(72px, 12vw, 120px) 0;
    position: relative;
}

    section.alt {
        background: var(--paper);
    }

    section .kicker {
        font-size: 0.72rem;
        letter-spacing: 0.28em;
        text-transform: uppercase;
        color: var(--accent);
        font-weight: 600;
        margin: 0 0 12px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

        section .kicker::before {
            content: "";
            width: 20px;
            height: 1px;
            background: var(--accent);
        }

h2 {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4.2vw, 3.15rem);
    line-height: 1.12;
    margin: 0 0 48px;
    max-width: 720px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.015em;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: clamp(40px, 6vw, 72px);
    align-items: start;
}

.prose p {
    margin: 0 0 20px;
    font-size: 1.06rem;
    color: var(--ink-soft);
    line-height: 1.8;
}

    .prose p:last-child {
        margin-bottom: 0;
    }

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

.stat {
    background: var(--navy);
    color: #fff;
    padding: 28px 22px;
    border-bottom: 3px solid var(--accent);
    transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

    .stat:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(16, 39, 31, 0.25);
    }

    .stat b {
        display: block;
        font-family: var(--serif);
        font-size: clamp(2rem, 3vw, 2.6rem);
        color: var(--accent);
        line-height: 1;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .stat span {
        font-size: 0.8rem;
        color: rgba(195, 202, 219, 0.9);
        line-height: 1.45;
        display: block;
    }

/* ---------- TIMELINE ---------- */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 1.5px solid var(--line);
    position: relative;
}

    .timeline li {
        display: grid;
        grid-template-columns: 160px 1fr;
        gap: 28px;
        padding: 0 0 40px 36px;
        position: relative;
    }

        .timeline li:last-child {
            padding-bottom: 0;
        }

        .timeline li::before {
            content: "";
            position: absolute;
            left: -5.5px;
            top: 10px;
            width: 10px;
            height: 10px;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 0 4px var(--paper);
            transition: transform 0.3s, box-shadow 0.3s;
        }

section.alt .timeline li::before {
    box-shadow: 0 0 0 4px var(--paper);
}

.timeline li:hover::before {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(181, 43, 54, 0.2);
}

.yr {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-deep);
    line-height: 1.3;
}

.timeline h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.timeline p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ---------- PRIORITY CARDS ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.card {
    background: var(--paper);
    padding: 36px 28px 32px;
    border-top: 3px solid var(--accent);
    box-shadow: 0 4px 24px rgba(16, 39, 31, 0.04);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

    .card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(181, 43, 54, 0.04), transparent 60%);
        opacity: 0;
        transition: opacity 0.4s;
    }

    .card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow);
    }

        .card:hover::before {
            opacity: 1;
        }

.num {
    font-family: var(--serif);
    font-size: 2.4rem;
    color: var(--accent);
    font-weight: 600;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
    opacity: 0.85;
}

.card h3 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- NEWS ---------- */
.news article {
    padding: 28px 0;
    border-bottom: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0 28px;
    transition: background 0.25s;
}

    .news article:first-child {
        padding-top: 0;
    }

    .news article:last-child {
        border-bottom: 0;
    }

.news time {
    color: var(--accent-deep);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    grid-row: span 2;
    padding-top: 4px;
}

.news h3 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

    .news h3 a {
        text-decoration: none;
        transition: color 0.25s;
    }

        .news h3 a:hover {
            color: var(--accent-deep);
        }

.news p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

/* ---------- GALLERY ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

    .gallery figure {
        margin: 0;
        overflow: hidden;
    }

    .gallery img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        cursor: zoom-in;
        transition: transform 0.5s var(--ease), filter 0.4s;
    }

    .gallery figure:hover img {
        transform: scale(1.04);
        filter: brightness(0.92);
    }

    .gallery figcaption {
        font-size: 0.84rem;
        color: var(--muted);
        padding-top: 10px;
        letter-spacing: 0.01em;
    }

/* ---------- LIGHTBOX ---------- */
.lb {
    position: fixed;
    inset: 0;
    background: rgba(16, 39, 31, 0.94);
    display: grid;
    place-items: center;
    z-index: 200;
    cursor: zoom-out;
    padding: 40px;
    animation: fadeIn 0.25s ease;
}

    .lb img {
        max-height: 90vh;
        max-width: 92vw;
        object-fit: contain;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---------- CONTACT ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 72px);
    align-items: start;
}

.clist {
    list-style: none;
    padding: 0;
    margin: 24px 0 28px;
}

    .clist li {
        margin-bottom: 18px;
    }

    .clist b {
        display: block;
        font-size: 0.7rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 4px;
        font-weight: 600;
    }

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

    .links a {
        font-weight: 500;
        font-size: 0.95rem;
        text-decoration: none;
        color: var(--ink-soft);
        border-bottom: 1px solid transparent;
        padding-bottom: 2px;
        transition: color 0.25s, border-color 0.25s;
    }

        .links a:hover {
            color: var(--accent-deep);
            border-bottom-color: var(--accent);
        }

form label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: var(--navy);
}

    form label span {
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
        color: var(--muted);
        font-size: 0.85em;
    }

form input,
form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 13px 16px;
    border: 1px solid #d4cdc0;
    background: var(--ivory);
    font: inherit;
    font-size: 0.98rem;
    color: var(--ink);
    transition: border-color 0.25s, box-shadow 0.25s;
    border-radius: 0;
}

    form input:focus,
    form textarea:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(181, 43, 54, 0.18);
    }

form textarea {
    resize: vertical;
    min-height: 120px;
}

#fmsg {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 14px;
    min-height: 1.4em;
}

    #fmsg.ok {
        color: #2d6a4f;
    }

    #fmsg.err {
        color: #9b2226;
    }

/* ---------- FOOTER ---------- */
footer {
    background: var(--navy);
    color: var(--muted-light);
    padding: 36px clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--flag-black, #101820), var(--flag-red, #b52b36), var(--flag-green, #21834a)) 1;
    position: relative;
}

    footer p {
        margin: 0;
    }

    footer .footer-brand {
        font-family: var(--serif);
        font-size: 1.05rem;
        color: rgba(255, 255, 255, 0.85);
        font-weight: 500;
    }

    footer a {
        color: var(--muted-light);
        text-decoration: none;
        transition: color 0.25s;
    }

        footer a:hover {
            color: var(--accent);
        }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .hero,
    .about-grid,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 36px);
        padding-bottom: 56px;
        text-align: left;
    }

    .hero-img {
        max-width: 340px;
        justify-self: start;
        order: -1;
    }

    .stats {
        position: static;
    }

    .timeline li,
    .news article {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .news time {
        grid-row: auto;
        margin-bottom: 4px;
    }

    .burger {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(16, 39, 31, 0.98);
        flex-direction: column;
        padding: 16px 24px 28px;
        gap: 4px;
        border-bottom: 1px solid rgba(181, 43, 54, 0.15);
    }

    body.open nav ul {
        display: flex;
    }

    nav ul a {
        padding: 14px 12px;
        font-size: 0.85rem;
    }

        nav ul a::after {
            display: none;
        }

    section {
        padding: 64px 0;
    }

    h2 {
        margin-bottom: 36px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.6rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .cta {
        flex-direction: column;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn:hover, .card:hover, .stat:hover {
        transform: none;
    }

    .gallery img {
        transition: none;
    }
}


/* Malawi-inspired executive identity and responsive refinements */
:root {
    --flag-green: #21834a;
    --flag-red: #b52b36;
    --flag-black: #101820;
    --sun-gold: #d5ad55;
}

nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    background: linear-gradient(90deg, var(--flag-black) 0 33.33%, var(--flag-red) 33.33% 66.66%, var(--flag-green) 66.66% 100%);
    opacity: .95;
}

.hero {
    background-color: var(--navy);
}

    .hero h1 {
        text-shadow: 0 3px 24px rgba(0,0,0,.22);
    }

        .hero h1::after {
            content: "";
            display: block;
            width: clamp(76px,10vw,118px);
            height: 4px;
            margin-top: 20px;
            background: linear-gradient(90deg, var(--flag-black) 0 33.33%, var(--flag-red) 33.33% 66.66%, var(--flag-green) 66.66% 100%);
            border-radius: 2px;
        }

section {
    isolation: isolate;
    background-color: var(--ivory);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

    section.alt {
        background-color: var(--paper);
    }

    section.has-page-background {
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

        section.has-page-background .wrap {
            position: relative;
            z-index: 1;
        }

    section .kicker {
        color: var(--flag-red);
        letter-spacing: .22em;
    }

    section h2 {
        position: relative;
        display: table;
        max-width: min(100%, 900px);
        padding: 0 0 17px;
        margin-bottom: 44px;
        color: #12291f;
        text-wrap: balance;
    }

        section h2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: clamp(76px,12vw,128px);
            height: 4px;
            border-radius: 3px;
            background: linear-gradient(90deg, var(--flag-red) 0 58%, var(--flag-green) 58% 100%);
        }

.hero.has-page-background {
    background-position: center;
    background-size: cover;
}

.btn {
    background: var(--flag-red);
    border-color: var(--flag-red);
    color: #fff;
}

    .btn:hover {
        background: #98232d;
        border-color: #98232d;
        box-shadow: 0 12px 28px rgba(181,43,54,.22);
    }

    .btn.ghost:hover {
        color: #fff;
        border-color: var(--sun-gold);
        background: rgba(213,173,85,.12);
    }

.stat {
    border-bottom-color: var(--flag-red);
}

    .stat b {
        color: var(--sun-gold);
    }

::selection {
    background: rgba(181,43,54,.2);
    color: var(--navy);
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
    }

    .hero-img {
        max-width: min(72vw,340px);
    }
}

@media (max-width: 600px) {
    :root {
        --nav-h: 64px;
    }

    nav {
        padding-inline: 16px;
    }

        nav .brand {
            font-size: 1.12rem;
            max-width: calc(100% - 54px);
        }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
        gap: 28px;
    }

        .hero h1 {
            font-size: clamp(2.45rem,11vw,3.4rem);
        }

    .hero-img::before {
        inset: 12px -10px -12px 10px;
    }

    section {
        padding: 58px 0;
    }

    .wrap {
        padding-inline: 20px;
    }

    section h2 {
        font-size: clamp(1.9rem,8vw,2.6rem);
        margin-bottom: 30px;
    }

    .cta {
        gap: 10px;
    }

    .btn {
        min-height: 48px;
        padding: 13px 20px;
    }

    .gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-img {
        max-width: 84vw;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SOCIAL MEDIA ICONS — NEW ADDITION
   These styles are for social links inside the EXISTING footer.
   They do not create another footer.
   ============================================================ */

footer .social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

footer .social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s ease;
}

    footer .social-link:hover {
        color: #ffffff;
        background: var(--flag-red);
        border-color: var(--flag-red);
        transform: translateY(-4px);
    }

    footer .social-link:focus-visible {
        outline: 2px solid #ffffff;
        outline-offset: 4px;
    }

@media (max-width: 600px) {
    footer {
        justify-content: center;
        text-align: center;
    }

        footer .social-links {
            width: 100%;
        }
}

/* END SOCIAL MEDIA ICONS — NEW ADDITION */
