/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    overflow-x: hidden;
}

:root {
--g2: linear-gradient(45deg, #8cb500, #0047aa);
}

/* HERO SECTION WITH BLACK TINT */
.hero {
    position: relative;
    min-height: 100vh;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), 
        url('assets/images/solutionsbg.png');
    background-size: cover;
    background-position: center;
    color: white;
    overflow: hidden;
}

/* NAV */
nav {
    position: absolute;        /* 🔥 key fix */
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 20;
}

.nav-spacer {
    flex: 1;
}

.logo img {
    width: 300px;
    border-radius: 12px;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-links > li > a {
    position: relative;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: .4s ease;
    box-shadow: 0 0 10px #0047aa40;
}

/* RIPPLE */
.nav-links > li > a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--g2);
    opacity: .85;
    border-radius: inherit;
    transform: scale(0);
    transition: .5s ease;
    z-index: -1;
}

.nav-links > li > a:hover::after {
    transform: scale(1);
}

/* DROPDOWN */
.nav-item {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 170%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    padding: .75rem;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .35s ease;

    display: grid;
    grid-template-columns: 1fr; /* default: single column */
    gap: .25rem;
    min-width: 160px;
}

/* 🔥 If dropdown has MORE THAN 3 items → 2 columns */
.dropdown:has(a:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    min-width: 340px;
}


/* ✅ ONLY JS CONTROLS VISIBILITY */
.nav-item.open .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown a {
    display: block;
    padding: .75rem 1.25rem;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: .3s ease;
}

.dropdown a:hover {
    background: var(--g2);
    transform: translateX(4px);
}


/* HERO CONTENT WRAPPER */
.hero-content {
    position: relative;
    height: 100%;
    padding-top: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TEXT */
.hero-text {
    max-width: 900px;
    text-align: center;
    margin-bottom: 4rem;
}

.hero-text h1 {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CARDS CONTAINER */
.hero-cards {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 420px;
    display: flex;
    justify-content: center;
    gap: 3rem;
    z-index: 5;
}

/* COMMON CARD */
.info-card {
    border-radius: 28px;
    padding: 2rem;
    color: #000;
    width: 220px;
}

/* GLASS CARDS */
.glass-card {
    width: 240px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px rgba(0,0,0,.25);
    margin-top: -3rem
}

.glass-card.left {
    align-self: flex-start;
}

.glass-card.right {
    align-self: center;
    background: rgba(255,255,255,0.25);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    margin-bottom: 5.5rem;
}

.glass-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.glass-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* STAT */
.stat {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem;
}

/* PILL */
.pill {
    display: inline-block;
    background: rgba(0,0,0,0.25);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* FEATURE CARD */
.feature-card {
    width: 260px;
    background: #fff;
    box-shadow: 0 40px 80px rgba(0,0,0,.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(40px);
}

.feature-card img {
    width: 100%;
    border-radius: 20px;
    margin-top: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

/* SLANTED BASE */
.hero-base {
    position: absolute;
    bottom: -1px;
    width: 100%;
    height: 200px;
    background: #fff;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    z-index: 1;
}

/* WRAPPER */
.impact-wrapper {
    background: #e9e0d6;
    padding-bottom: 5rem;
    position: relative;
}

/* TOP CARD */
.impact-top-card {
    background: #fff;
    margin-top: 90px;
    max-width: 1600px;
    padding: 4rem 5rem;
    border-radius: 26px;
    position: relative;
    transform: translateY(-120px);
    height: 700px;
}


/* TEXT */
.impact-top-card h2 {
    margin-top: -3rem;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #000;
}

.impact-top-card .lead {
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
    color: #444;
    margin-bottom: 2rem;
}

.impact-top-card .body {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
    color: #555;
}

/* IMPACT CONTENT */
.impact-content {
    position: relative;
    margin-top: -22rem;
    margin-left: 10rem;
    max-width: 1200px;
    padding: 0 4rem;
}

.impact-content h3 {
    color: #7a4a12;
    font-size: 3.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.impact-underline {
    display: block;
    width: 100px;
    height: 4px;
    background: #7a4a12;
    margin-bottom: 2.5rem;
}

/* IMPACT CARDS */
.impact-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-left: -12rem;
    margin-bottom: 2.5rem;
}

.impact-card {
    background: #d7b773;
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
    height: 280px;
    width: 280px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.impact-card h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.impact-card p {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

/* FOOTER TEXT */
.impact-footer {
    font-size: 0.95rem;
    color: #444;
    max-width: 900px;
}



/* ================= FOOTER ================= */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 50px 80px;
    background: linear-gradient(145deg, #5a3a1e, #3f2714);
    color: #fff;
    font-family: "Poppins", sans-serif;
    position: relative;
}

/* LEFT SIDE */
.footer-left h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
}

.footer-badges {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #00d063;
    border-radius: 50%;
    margin-right: 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    font-size: 15px;
    line-height: 1.9;
}

.footer-links li {
    cursor: pointer;
    transition: opacity 0.2s;
}

.footer-links li:hover {
    opacity: 0.7;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.85;
}

/* RIGHT SIDE */
.footer-right {
    width: 40%;
    text-align: right;
    margin-right: 60px;
}

.footer-desc {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 50px;
}

.footer-btn {
    padding: 10px 22px;
    border-radius: 30px;
    background: #fff;
    color: #003579;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: 0.3s;
}

.footer-btn:hover {
    transform: translateX(3px);
}

.arrow {
    margin-left: 6px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 20px 0;
}

.footer-logo img {
    width: 250px;
    margin-right: 15px;
    border-radius: 12px;
}

.footer-logo-text h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.footer-logo-text p {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.85;
}

.footer-legal {
    margin-top: 25px;
}

.footer-legal a {
    color: #fff;
    font-size: 13px;
    margin-left: 20px;
    text-decoration: none;
    opacity: 0.85;
}

.footer-legal a:hover {
    opacity: 1;
}

/* FLOATING ICONS */
.footer-floating-icons {
    position: absolute;
    right: 40px;
    top: 80px;
}

.circle-btn {
    width: 45px;
    height: 45px;
    background: #004fbb;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    margin-bottom: 15px;
}

.side-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #c89b6a;
    padding: 12px;
    border-radius: 30px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    background: #3f2714;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 18px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .indigenous-cards {
        grid-template-columns: 1fr;
    }

    .indigenous-header h1 {
        font-size: 4.5rem;
    }

    .indigenous-header h2 {
        font-size: 2.4rem;
    }

    .indigenous-header h3 {
        font-size: 2rem;
    }
}
