/* =====================================================
   SMART NYUMBA SOLUTIONS
   LIGHT GREEN + WHITE + BLACK
===================================================== */

:root {
    --green: #8fcf9b;
    --green-dark: #163d2c;
    --green-light: #eef8f0;
    --black: #07110d;
    --white: #ffffff;
    --text: #18231e;
    --muted: #68746d;
    --border: #dce8df;
    --shadow: 0 18px 45px rgba(7, 27, 22, 0.10);
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 170px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav a {
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.nav a:hover {
    color: var(--green-dark);
}

.nav-whatsapp {
    background: var(--green-dark);
    color: white !important;
    padding: 11px 18px;
    border-radius: 50px;
}

.menu-btn {
    display: none;
    border: none;
    background: var(--green-dark);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 760px;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.82),
            rgba(0,0,0,0.48),
            rgba(0,0,0,0.20)
        );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    max-width: 800px;
}

.small-title {
    color: var(--green);
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 85px);
    line-height: 0.98;
    margin-bottom: 25px;
}

.hero h1 span,
.section-heading h2 span,
.intro-text h2 span,
.feature-content h2 span,
.cta h2 span,
.contact h2 span {
    color: var(--green-dark);
}

.hero h1 span {
    color: var(--green);
    display: block;
}

.hero-text {
    max-width: 650px;
    font-size: 19px;
    color: #edf4ef;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 25px;
    border-radius: 50px;
    font-weight: 800;
    transition: 0.3s;
}

.green-btn {
    background: var(--green);
    color: var(--black);
}

.green-btn:hover {
    transform: translateY(-3px);
}

.white-btn {
    background: white;
    color: var(--black);
}

.slider-btn {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.3);
    color: white;
    border-radius: 50%;
    cursor: pointer;
}

.slider-btn.prev {
    left: 25px;
}

.slider-btn.next {
    right: 25px;
}

.dots {
    position: absolute;
    z-index: 5;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    opacity: 0.5;
    cursor: pointer;
}

.dot.active {
    opacity: 1;
    background: var(--green);
}


/* =====================================================
   MOVING BAR
===================================================== */

.moving-bar {
    overflow: hidden;
    background: var(--black);
    color: white;
    padding: 14px 0;
    white-space: nowrap;
}

.moving-text {
    display: inline-block;
    animation: moveText 25s linear infinite;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.moving-text span {
    color: var(--green);
    margin: 0 15px;
}

@keyframes moveText {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =====================================================
   SECTIONS
===================================================== */

.section {
    padding: 100px 0;
}

.light-section {
    background: var(--green-light);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-label {
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-heading h2,
.intro-text h2,
.feature-content h2,
.contact h2 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    margin-bottom: 18px;
}

.section-heading h2 span,
.intro-text h2 span,
.feature-content h2 span,
.contact h2 span {
    display: block;
}

.section-heading p {
    color: var(--muted);
}


/* =====================================================
   INTRO
===================================================== */

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

.intro-text p {
    color: var(--muted);
    margin-bottom: 18px;
}

.learn-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 900;
    color: var(--green-dark);
}

.image-box {
    background: var(--green-light);
    padding: 15px;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.image-box img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 18px;
}


/* =====================================================
   PRODUCT SEARCH
===================================================== */

.product-search {
    max-width: 650px;
    margin: -20px auto 45px;
}

.product-search input {
    width: 100%;
    padding: 17px 22px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: white;
    color: var(--black);
    outline: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-search input:focus {
    border-color: var(--green);
}


/* =====================================================
   PRODUCTS
===================================================== */

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.35s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(7, 27, 22, 0.16);
}


/* IMPORTANT:
   IMAGE HAS ITS OWN SPACE/GAP
*/

.product-image {
    height: 250px;
    margin: 12px;
    padding: 18px;
    border-radius: 16px;
    background: #f4f8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-number {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--black);
    color: white;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.product-content {
    padding: 15px 22px 25px;
}

.product-content small {
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.product-content h3 {
    font-size: 21px;
    margin: 7px 0 15px;
    line-height: 1.2;
}

.spec-button {
    border: none;
    background: var(--black);
    color: white;
    padding: 10px 17px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 800;
}

.spec-button:hover {
    background: var(--green-dark);
}

.specs {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: var(--green-light);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
}

.specs.show {
    display: block;
}


/* =====================================================
   FEATURE
===================================================== */

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

.feature-image {
    padding: 15px;
    background: var(--green-light);
    border-radius: 25px;
}

.feature-image img {
    width: 100%;
    height: 520px;
    object-fit: contain;
    background: white;
    border-radius: 18px;
}

.feature-content > p {
    color: var(--muted);
}

.feature {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 25px 0;
}

.feature img {
    width: 85px;
    height: 85px;
    padding: 8px;
    object-fit: contain;
    background: var(--green-light);
    border-radius: 15px;
}

.feature h3 {
    margin-bottom: 4px;
}

.feature p {
    color: var(--muted);
}


/* =====================================================
   PRODUCT GRID
===================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-grid .product-card {
    padding-bottom: 15px;
}

.product-grid .product-image {
    height: 210px;
}


/* =====================================================
   HOTEL
===================================================== */

.hospitality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.hospitality-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hospitality-image {
    margin: 12px;
    height: 240px;
    padding: 15px;
    border-radius: 16px;
    background: #f4f8f5;
}

.hospitality-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hospitality-card > div:last-child {
    padding: 10px 22px 25px;
}

.hospitality-card small {
    color: var(--green-dark);
    font-weight: 900;
}

.hospitality-card h3 {
    margin: 7px 0;
}

.hospitality-card p {
    color: var(--muted);
}


/* =====================================================
   LOCKS
===================================================== */

.lock-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.lock-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
}

.lock-image {
    height: 190px;
    padding: 15px;
    background: #f4f8f5;
    border-radius: 13px;
    margin-bottom: 15px;
}

.lock-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lock-card h3 {
    font-size: 17px;
    padding: 0 7px;
}

.lock-card p {
    color: var(--muted);
    font-size: 14px;
    padding: 0 7px 10px;
}


/* =====================================================
   WHY US
===================================================== */

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-card {
    background: white;
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.why-card strong {
    color: var(--green-dark);
    font-size: 30px;
}

.why-card h3 {
    margin: 10px 0;
}

.why-card p {
    color: var(--muted);
}


/* =====================================================
   SERVICES
===================================================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    padding: 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.service-card span {
    font-size: 28px;
    font-weight: 900;
    color: var(--green-dark);
}

.service-card h3 {
    margin: 10px 0;
}

.service-card p {
    color: var(--muted);
}


/* =====================================================
   ABOUT
===================================================== */

.about {
    max-width: 900px;
}

.about > p {
    color: var(--muted);
    margin-bottom: 20px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 45px;
}

.mission-grid > div {
    background: var(--green-light);
    padding: 25px;
    border-radius: 18px;
}

.mission-grid p {
    color: var(--muted);
}


/* =====================================================
   GALLERY
===================================================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-item {
    height: 270px;
    padding: 10px;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* =====================================================
   CTA
===================================================== */

.cta {
    background: var(--black);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta img {
    width: 170px;
    margin: 0 auto 25px;
}

.cta h2 {
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1;
    margin: 15px 0;
}

.cta h2 span {
    color: var(--green);
}

.cta p {
    color: #c9d4cd;
}


/* =====================================================
   CONTACT
===================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-grid > div > p {
    color: var(--muted);
}

.address {
    margin-top: 30px;
    padding: 22px;
    background: var(--green-light);
    border-radius: 15px;
}

.contact-links {
    display: grid;
    gap: 15px;
}

.contact-links a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--green-light);
    border-radius: 15px;
    transition: 0.3s;
}

.contact-links a:hover {
    transform: translateX(6px);
}

.contact-links span {
    color: var(--muted);
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #020806;
    color: white;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-logo {
    width: 160px;
    margin-bottom: 20px;
}

.footer-grid p {
    color: #aebbb3;
}

.footer-grid h3 {
    margin-bottom: 15px;
}

.footer-grid a {
    display: block;
    color: #aebbb3;
    margin: 9px 0;
}

.footer-grid a:hover {
    color: var(--green);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 20px;
    color: #8d9b93;
}


/* =====================================================
   FLOATING WHATSAPP
===================================================== */

.floating-whatsapp {
    position: fixed;
    z-index: 999;
    right: 20px;
    bottom: 20px;
    background: var(--green-dark);
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 900;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 1000px) {

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

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

    .lock-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

}


@media (max-width: 768px) {

    .header {
        position: fixed;
    }

    .menu-btn {
        display: block;
    }

    .nav {
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        padding: 20px;
        background: white;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid var(--border);
        box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 10px;
    }

    .hero {
        min-height: 700px;
    }

    .hero-content {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .slider-btn {
        display: none;
    }

    .intro-grid,
    .feature-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .intro-grid,
    .feature-grid {
        gap: 40px;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

}


@media (max-width: 520px) {

    .section {
        padding: 70px 0;
    }

    .logo img {
        width: 140px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 16px;
    }

    .product-list,
    .product-grid,
    .service-grid,
    .why-grid,
    .gallery,
    .mission-grid {
        grid-template-columns: 1fr;
    }

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

    .product-image {
        height: 240px;
    }

    .image-box img,
    .feature-image img {
        height: 350px;
    }

    .gallery-item {
        height: 250px;
    }

    .floating-whatsapp {
        right: 12px;
        bottom: 12px;
        padding: 12px 16px;
    }

}