:root {
    --color-primary: #b59d6a;
    --color-primary-dark: #9a8155;
    --color-secondary: #1b2c3c;
    --color-light: #ffffff;
    --color-muted: #798595;
    --color-background: #f7f8fb;
    --font-family: "Montserrat", "Segoe UI", sans-serif;
    --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--color-secondary);
    background: var(--color-background);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1100px, 90vw);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.5rem;
    border-radius: 999px;
    background: var(--color-secondary);
    color: var(--color-light);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-sg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.5rem;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-light);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: #14202e;
    transform: translateY(-1px);
}

.btn-sg:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-light {
    background: var(--color-light);
    color: var(--color-secondary);
}

.btn-light:hover {
    background: #eef1f5;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--color-secondary);
}

/* Top navigation */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.topbar-sg {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-secondary);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.topbar-sg .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-light);
    font-weight: 700;
    text-transform: uppercase;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--color-primary);
    font-weight: 700;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav {
    display: flex;
    gap: 1.5rem;
    font-weight: 600;
    color: var(--color-light);
}

.nav a:hover {
    opacity: 0.8;
}

.social {
    display: flex;
    gap: 0.75rem;
    color: var(--color-light);
    font-weight: 600;
}

.social .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-light);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.topbar.menu-open .nav-toggle span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
}

.topbar-sg.menu-open .nav-toggle span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
}

.topbar.menu-open .nav-toggle span:nth-of-type(3) {
    opacity: 0;
}

.topbar-sg.menu-open .nav-toggle span:nth-of-type(3) {
    opacity: 0;
}

.topbar.menu-open .nav-toggle span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
}

.topbar-sg.menu-open .nav-toggle span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: url('../images/photodump/501054755_722853523602222_925272875669321621_n.jpg') center/cover no-repeat;
    color: var(--color-light);
}

.hero-sg {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: url('../images/photodump/IMG_5482.jpg') center/cover no-repeat;
    color: var(--color-light);
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(27, 44, 60, 0.85), rgba(27, 44, 60, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
    max-width: 580px;
    padding: 5rem 0;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

/* About */
.about {
    padding: 6rem 0;
    background: var(--color-light);
}

.about-sg {
    padding: 6rem 0;
    background: var(--color-muted);
}

.about .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}


.about-sg .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-sg .section-tag{
    color: var(--color-light);
}


.about-image {
    position: relative;
}

.about-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.about-badge {
    position: absolute;
    top: -32px;
    left: -32px;
    background: var(--color-primary);
    color: var(--color-light);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: var(--shadow-soft);
}

.about-badge-sg {
    position: absolute;
    top: -32px;
    left: -32px;
    background: var(--color-secondary);
    color: var(--color-light);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: var(--shadow-soft);
}

.about-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 1.5rem;
}

.about-text p + p {
    margin-top: 1rem;
}

.pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    list-style: none;
}

.pillars li {
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: rgba(181, 157, 106, 0.18);
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 0.05em;
}

/* Promo */
.promo {
    position: relative;
    padding: 5rem 0;
    text-align: center;
    background: url('../images/photodump/097d2df6-04d9-4bdf-95bc-44ad2cbd24dd.jpeg') center/cover no-repeat;
    color: var(--color-light);
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 44, 60, 0.7);
}

.promo .container {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.promo h3 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 700;
}

/* Units */
.units {
    padding: 6rem 0;
    background: url('data:image/svg+xml,%3Csvg width="160" height="160" viewBox="0 0 160 160" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23e7eaef" fill-opacity="0.6"%3E%3Cpath d="M160 160h-40v-40h40v40zm-80 0H40v-40h40v40zm40-40h-40V80h40v40zM40 120H0V80h40v40zm40-40H40V40h40v40zM40 80H0V40h40v40zm40-40H40V0h40v40zm80 120h-40v-40h40v40zm-40-40h-40V80h40v40zm40-40h-40V40h40v40z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.unit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.unit-card {
    background: var(--color-light);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.unit-logo {
    width: 130px;
    height: 130px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 1.25rem;
}

.unit-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.unit-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.unit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.unit-link::after {
    content: "?";
    transition: transform 0.2s ease;
}

.unit-link:hover::after {
    transform: translateX(4px);
}

/* Join us */
.join-us {
    position: relative;
    padding: 6rem 0;
    background: var(--color-secondary);
    color: var(--color-light);
}

.join-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(27, 44, 60, 0.92), rgba(27, 44, 60, 0.75));
}

.join-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: stretch;
}

.join-content {
    display: grid;
    gap: 1.5rem;
}

.join-form {
    display: grid;
    gap: 1rem;
}

.join-form label {
    display: grid;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.join-form input,
.join-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    font-family: var(--font-family);
}

.join-form input:focus,
.join-form textarea:focus {
    outline: 3px solid rgba(255, 255, 255, 0.25);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.checkbox input {
    margin-top: 0.2rem;
}

.join-image {
    border-radius: 24px;
    background: url('../images/photodump/kasongo-bulobo-kw-234Tz-Nc-unsplash.jpg') center/cover no-repeat;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

/* Clients */
.clients {
    padding: 6rem 0;
    background: var(--color-light);
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.client-card {
    height: 80px;
    display: grid;
    place-items: center;
    place-self: center;
    padding: auto;
    font-weight: 600;
    color: var(--color-muted);
}

/* Footer */
.footer {
    background: var(--color-secondary);
    color: rgba(255, 255, 255, 0.95);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer h3 {
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer a {
    color: inherit;
}

.footer a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .social {
    gap: 1.25rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .topbar-links {
        gap: 1.75rem;
    }
}

@media (max-width: 992px) {
    .topbar .container {
        gap: 1.5rem;
    }
    
    .topbar-sg .container {
        gap: 1.5rem;
    }


    .nav {
        gap: 1rem;
    }

    .about .container,
    .join-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-sg .container,
    .join-wrapper {
        grid-template-columns: 1fr;
    }

    .about-badge {
        position: static;
        margin-bottom: 1.5rem;
        display: inline-block;
    }
    
    .about-badge-sg {
        position: static;
        margin-bottom: 1.5rem;
        display: inline-block;
    }

    .join-image {
        min-height: 320px;
    }
    .client-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .topbar-links {
        position: fixed;
        inset: 72px 0 0 0;
        width: 100%;
        background: rgba(27, 44, 60, 0.97);
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem 1.75rem 3rem;
        gap: 2rem;
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
        z-index: 99;
    }

    .topbar.menu-open .topbar-links {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .topbar-sg.menu-open .topbar-links {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav {
        width: 100%;
        flex-direction: column;
        gap: 1.5rem;
        font-size: 1.1rem;
    }

    .social {
        width: 100%;
        justify-content: flex-start;
        gap: 1rem;
    }

    .unit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .client-grid {
        grid-template-columns: repeat(2, minmax(0, 2fr));
    }

}

@media (max-width: 576px) {
    .unit-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 60vh;
    }

    .btn {
        width: 100%;
    }
    .client-grid {
        grid-template-columns: 1fr;
    }

}