/* =========================================
   MAHAMBA - CSS DESIGN
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg: #08070a;
    --gold: #c9a84c;
    --gold-light: #e2c06a;
    --gold-dark: #a07c30;
    --text: #f0e6d2;
    --text-muted: rgba(240, 230, 210, 0.65);
    --border: rgba(201, 168, 76, 0.25);
    --section-bg: #0d0c0f;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- HEADER ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: rgba(8, 7, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo img {
    height: 36px;
}

.header-logo span {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 4px;
    font-weight: 500;
    text-transform: uppercase;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.header-nav a {
    color: rgba(240, 230, 210, 0.75);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--gold);
}

.header-nav a.active {
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

.header-lang {
    color: rgba(240, 230, 210, 0.7);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero_mahamba_new.png');
    background-size: cover;
    background-position: center 40%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(177deg, rgb(0 0 0 / 89%) 0%, rgb(0 0 0 / 85%) 45%, rgba(8, 7, 10, 0.80) 100%);
    z-index: 1;
}

/* Particle canvas */
#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 30px;
}

.hero-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 28px;
    filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.5));
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    background: linear-gradient(180deg, #e2c06a 0%, #c9a84c 50%, #a07c30 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.2em;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow:
        0 1px 0 #8a6d29,
        0 2px 0 #7a6025,
        0 3px 0 #6a5321,
        0 4px 0 #5a461d,
        0 10px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
    line-height: 1.1;
}

.hero-divider {
    width: 280px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0px 0px 19px 29px var(--gold), 0 0 5px #fff;
}


.hero-subtitle {
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    letter-spacing: 10px;
    color: var(--text);
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: rgba(240, 230, 210, 0.7);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}


.btn-hero {
    display: inline-block;
    padding: 12px 44px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    background: rgba(201, 168, 76, 0.07);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: rgba(201, 168, 76, 0.2);
    color: #fff;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.25);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: var(--gold);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

#particles-js {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}




/* ---- SECTIONS COMMON ---- */
.section-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 70px 50px;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
}

.section-label {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #e2c06a 0%, #c9a84c 50%, #a07c30 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
}

.section-caption {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ---- O QUE É MAHAMBA ---- */
.s-mahamba {
    background: var(--bg);
}

.mahamba-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.mahamba-left {
    padding-right: 80px;
    border-right: 1px solid rgba(201, 168, 76, 0.15);
}

.mahamba-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 10px;
}

.mf-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mf-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 3.5rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(201, 168, 76, 0.4));
    line-height: 1;
}

.mf-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.mf-desc {
    font-size: 0.8rem;
    color: rgba(240, 230, 210, 0.7);
    line-height: 1.6;
    font-weight: 300;
}

.mahamba-right {
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mahamba-right p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 18px;
    font-weight: 300;
}

.mahamba-right p strong {
    color: var(--gold);
    font-weight: 600;
}

/* ---- ECOSSISTEMA ---- */
.s-eco {
    background: var(--section-bg);
}

.eco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.eco-left {
    padding-right: 60px;
    border-right: 1px solid var(--border);
}

/* Diagram */
.eco-diagram {
    position: relative;
    width: 100%;
    height: 480px;
    margin-top: 20px;
}

.eco-diagram svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 1;
    pointer-events: none;
}

.eco-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%);
}

.eco-node-circle {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: rgba(13, 12, 15, 0.7);
    padding: 15px;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.eco-node-circle:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
    transform: scale(1.05);
}

.eco-node.center {
    width: 180px;
    height: 180px;
    background: transparent;
    box-shadow: none;
    border: none;
}

.eco-center-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px rgba(201, 168, 76, 0.6));
}

.eco-node-title {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.eco-node-desc {
    font-size: 0.5rem;
    color: rgba(240, 230, 210, 0.6);
    line-height: 1.3;
    max-width: 100px;
}

.eco-note {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 24px;
    letter-spacing: 1px;
}

/* Map side */
.eco-right {
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eco-right h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    letter-spacing: 3px;
    background: linear-gradient(180deg, #e2c06a 0%, #c9a84c 50%, #a07c30 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.eco-right p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 300;
}

.btn-saiba {
    display: inline-block;
    margin-top: 16px;
    margin-bottom: 30px;
    padding: 9px 28px;
    border: 1px solid rgba(240, 230, 210, 0.3);
    color: var(--text);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    width: fit-content;
}

.btn-saiba:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.map-wrap {
    position: relative;
}

.map-wrap img {
    width: 100%;
    opacity: 0.85;
}

.map-label {
    position: absolute;
    top: 60%;
    left: 55%;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.map-label i {
    color: var(--gold);
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--gold));
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.map-label-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 2px;
    font-weight: 600;
}


.map-label-text strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text);
    letter-spacing: 1px;
}

.map-label-text small {
    color: var(--text-muted);
}

/* ---- IDIA ---- */
.s-idia {
    background: var(--bg);
}

.idia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.idia-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 16px;
    margin-top: 32px;
}

.idia-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.idia-icon-item i {
    color: var(--gold);
    font-size: 1.6rem;
}

.idia-icon-item span {
    font-size: 0.62rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.5;
}

.idia-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    opacity: 0.75;
    filter: brightness(0.8) contrast(1.1);
    border: 1px solid var(--border);
}

/* ---- PARTNERS/SADC ---- */
.s-partners {
    background: var(--section-bg);
    border-top: 1px solid var(--border);
}

.partners-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 30px;
}

.partners-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    flex: 1;
    min-width: 80px;
}

.pi-item i {
    color: var(--gold);
    font-size: 1.5rem;
}

.pi-item span {
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.4;
}

.partner-logos {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
}

.pl-circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 1px solid rgba(240, 230, 210, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.3s;
}

.pl-circle:hover {
    border-color: var(--gold);
}

.pl-circle img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.pl-label {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
}

.pl-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- FOOTER ---- */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 50px 50px 24px;
    max-width: 100%;
}

.footer-inner {
    max-width: 1260px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-logo img {
    height: 40px;
}

.footer-logo-text .name {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 500;
}

.footer-logo-text .tagline {
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
}

.footer-quote {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gold);
    line-height: 1.8;
    font-weight: 300;
    font-style: italic;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0 30px;
}

.footer-contact {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 2;
}

.footer-contact div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-contact i {
    color: var(--gold);
    margin-top: 3px;
    min-width: 14px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    font-size: 0.62rem;
    color: rgba(240, 230, 210, 0.35);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social span {
    color: var(--text-muted);
    letter-spacing: 2px;
    font-size: 0.62rem;
    text-transform: uppercase;
}

.social-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.65rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--gold);
    color: var(--bg);
}

.footer-links a {
    color: rgba(240, 230, 210, 0.35);
    text-decoration: none;
    margin-left: 16px;
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {

    .mahamba-grid,
    .eco-grid,
    .idia-grid {
        grid-template-columns: 1fr;
    }

    .mahamba-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 40px;
    }

    .mahamba-right {
        padding-left: 0;
        padding-top: 40px;
    }

    .eco-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 40px;
    }

    .eco-right {
        padding-left: 0;
        padding-top: 40px;
    }

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

    .partner-logos {
        justify-content: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-quote {
        border: none;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-contact div {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .header-nav {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(8, 7, 10, 0.98);
        backdrop-filter: blur(20px);
        overflow: hidden;
        transition: height 0.4s ease;
        z-index: 1000;
    }

    .header-nav.active {
        height: calc(100vh - 64px);
    }

    .header-nav ul {
        flex-direction: column;
        padding: 40px;
        gap: 30px;
    }

    .header-nav a {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .menu-toggle {
        display: block;
    }

    .mahamba-features {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .idia-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .pi-item {
        min-width: 45%;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-divider {
        width: 200px;
    }

    .eco-node {
        width: 110px;
        height: 110px;
    }

    .eco-node-circle {
        padding: 10px;
    }

    .eco-node-title {
        font-size: 0.6rem;
    }

    .eco-node-desc {
        display: none;
    }

    .eco-diagram {
        min-height: 400px;
        height: 400px;
    }

    .section-inner {
        padding: 50px 24px;
    }
}

@media (max-width: 600px) {
    .idia-icons {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .section-label {
        font-size: 0.9rem;
    }

    .partner-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
}