:root {
    --green-dark: #1f4d2e;
    --green-main: #2d6a4f;
    --green-light: #40916c;
    --green-soft: #edf7ef;
    --text-dark: #2d2d2d;
    --text-muted: #6c757d;
}

/* =========================
   BASE
========================= */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

/* =========================
   TOP BAR
========================= */
.topbar {
    background-color: var(--green-dark);
    color: #dfeee3;
    font-size: 0.92rem;
}

.topbar-contact span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar i {
    color: #ffffff;
}

.topbar-social a {
    color: #dfeee3;
    text-decoration: none;
    margin-left: 14px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.topbar-social a:hover {
    color: #ffffff;
}

/* =========================
   MAIN NAVBAR
========================= */
.main-navbar {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    z-index: 1030;
    background-color: #ffffff;
}

.navbar-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: 0.4px;
    color: var(--green-main) !important;
}

.brand-main {
    color: var(--green-dark);
}

.brand-accent {
    color: var(--green-main);
}

.navbar .nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark);
    padding-left: 1rem;
    padding-right: 1rem;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--green-main);
}

.navbar .dropdown-menu {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
    padding: 12px 0;
    margin-top: 14px;
    min-width: 260px;
}

.navbar .dropdown-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 11px 20px;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--green-soft);
    color: var(--green-main);
}

.navbar-toggler {
    border: 0;
    box-shadow: none !important;
}

/* =========================
   BUTTONS
========================= */
.btn-success-custom {
    background-color: var(--green-main);
    border: 1px solid var(--green-main);
    color: #fff;
    text-decoration: none;
    display: inline-block;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-success-custom:hover {
    background-color: #24563f;
    border-color: #24563f;
    color: #fff;
}

.btn-outline-success-custom {
    color: var(--green-main);
    border: 1px solid var(--green-main);
    background-color: transparent;
    text-decoration: none;
    display: inline-block;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    padding: 0.375rem 0.75rem;
}

.btn-outline-success-custom:hover {
    background-color: var(--green-main);
    color: #fff;
}

/* =========================
   OPTIONAL HERO
========================= */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(rgba(22, 55, 33, 0.72), rgba(22, 55, 33, 0.72)),
        url("../img/hero.jpg") center center / cover no-repeat;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero p {
    max-width: 720px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
}

/* =========================
   GENERAL SECTIONS
========================= */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto;
}

.bg-soft-green {
    background-color: var(--green-soft);
}

/* =========================
   CARDS
========================= */
.category-card,
.info-card,
.product-card,
.service-card,
.project-card {
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    transition: all 0.25s ease;
    height: 100%;
    overflow: hidden;
}

.category-card:hover,
.info-card:hover,
.product-card:hover,
.service-card:hover,
.project-card:hover {
    transform: translateY(-6px);
}

.category-card {
    padding: 30px 24px;
    text-align: center;
}

.category-icon,
.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--green-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--green-main);
    margin-bottom: 18px;
}

/* =========================
   IMAGES
========================= */
.product-img,
.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card .card-body,
.project-card .card-body {
    padding: 24px;
}

/* =========================
   BADGES
========================= */
.mini-badge {
    display: inline-block;
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 30px;
    font-weight: 700;
}

.badge-green {
    background-color: #d8f3dc;
    color: #1b4332;
}

.badge-gray {
    background-color: #e9ecef;
    color: #495057;
}

.badge-yellow {
    background-color: #fff3cd;
    color: #856404;
}

.badge-blue {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* =========================
   CTA
========================= */
.cta-box {
    border-radius: 24px;
    background: linear-gradient(135deg, var(--green-main), var(--green-light));
    color: #fff;
    padding: 50px 35px;
}

/* =========================
   FOOTER
========================= */
.footer {
    background-color: #173c24;
    color: #dfeee3;
}

.footer a {
    color: #dfeee3;
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff;
}

.footer .social a {
    font-size: 1.1rem;
    margin-right: 12px;
}

/* =========================
   MAIN SLIDER
========================= */
.main-slider {
    position: relative;
}

.slider-item {
    height: 65vh;
    min-height: 420px;
    max-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(22, 55, 33, 0.72), rgba(22, 55, 33, 0.72));
    z-index: 1;
}

.slider-item .container {
    position: relative;
    z-index: 2;
}

.slider-content {
    color: #fff;
    padding: 40px 0;
}

.slider-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.slider-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.slider-content p {
    max-width: 720px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 30px;
}

#homepageSlider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

#homepageSlider .carousel-control-prev,
#homepageSlider .carousel-control-next {
    width: 8%;
}

/* =========================
   TABLET
========================= */
@media (max-width: 991.98px) {
    .main-navbar {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar .nav-link {
        font-size: 1rem;
        padding: 0.75rem 0;
    }

    .navbar .dropdown-menu {
        box-shadow: none;
        border-radius: 12px;
        margin-top: 0;
        min-width: 100%;
        padding: 6px 0;
    }

    .navbar .dropdown-item {
        font-size: 0.96rem;
        padding: 9px 14px;
    }

    .hero {
        min-height: auto;
        padding: 110px 0 90px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .slider-item {
        height: 520px;
        min-height: 520px;
        max-height: 520px;
    }

    .slider-content {
        padding: 30px 0;
    }

    .slider-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .slider-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    #homepageSlider .carousel-control-prev,
    #homepageSlider .carousel-control-next {
        width: 10%;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.35rem;
    }

    .navbar .nav-link {
        font-size: 1rem;
        font-weight: 600;
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .navbar .dropdown-item {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .category-card {
        padding: 24px 18px;
    }

    .category-icon,
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 14px;
    }

    .product-img,
    .project-img {
        height: 210px;
    }

    .product-card .card-body,
    .project-card .card-body {
        padding: 20px;
    }

    .cta-box {
        padding: 35px 20px;
        border-radius: 20px;
    }

    .slider-item {
        height: 420px;
        min-height: 420px;
        max-height: 420px;
    }

    .slider-content {
        padding: 20px 0;
    }

    .slider-content h1 {
        font-size: 1.7rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .slider-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .slider-badge {
        font-size: 0.78rem;
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    #homepageSlider .carousel-control-prev,
    #homepageSlider .carousel-control-next {
        width: 12%;
    }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .hero {
        padding: 80px 0 70px;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .slider-item {
        height: 380px;
        min-height: 380px;
        max-height: 380px;
    }

    .slider-content h1 {
        font-size: 1.45rem;
    }

    .slider-content p {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .slider-badge {
        font-size: 0.72rem;
        padding: 6px 10px;
    }

    .product-img,
    .project-img {
        height: 190px;
    }

    .cta-box {
        padding: 28px 16px;
    }

    .footer .social a {
        margin-right: 10px;
    }
}
