/* ================== ROOT COLOR PALETTE (Brand Colors from Logo) ================== */
:root {
  --eco-green: #2f8c36;        /* Green from 'eco' */
  --eco-green-dark: #1c8a00;   /* Dark green from navbar text */
  --mountain-purple: #8b2ccf;  /* Purple from mountain graphic */
  --carbon-black: #111111;     /* Strong dark text */
  --soft-grey: #f3f3f3;        /* Light background */
  --white: #ffffff;            /* Pure white */
}

/* ===== Floating Navbar ===== -----------------------------------------------------------------------------------*/
.navbar {
  display: flex;
  font-family: "Poppins", sans-serif;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 25px;
  width: 92%;
  height: 50px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* ===== Logo ===== */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar .logo img {
  height: 60px;
  width: auto;
  display: block;
}

.navbar .logo a {
  text-decoration: none;
  font-size: 1.7em;
  font-weight: bold;
  color: var(--eco-green-dark);
  letter-spacing: 0.5px;
}

/* ===== Menu List ===== */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--eco-green);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--carbon-black);
  background: rgba(28, 138, 0, 0.1);
}

/* ===== Hamburger Icon ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle .bar {
  height: 3px;
  width: 22px;
  background-color: var(--eco-green-dark);
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 30vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 25px;
    gap: 25px;
    transition: right 0.3s ease;
    box-shadow: -3px 0 8px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .navbar {
    width: 85%;
    padding: 10px 15px;
  }

  .navbar .logo img {
    height: 50px;
  }

  .nav-menu {
    width: 220px;
  }
}
/* =========================
   WASTE CALCULATOR CSS
========================= */
.waste-section {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.waste-left, 
.waste-right {
    flex: 1;
}

.waste-left label {
    margin-top: 12px;
    display: block;
    font-weight: 600;
    color: #333;
}

.waste-left input,
.waste-left select {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

#calcBtn {
    margin-top: 18px;
    background: #2f8c36;
    color: #fff;
    border: none;
    padding: 12px;
    width: 100%;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

#calcBtn:hover {
    background: #26732d;
}

#resultBox {
    margin-top: 18px;
}

.chart-box {
    width: 260px;
    height: 260px;
    margin: auto;
}

#wasteChart {
    width: 100% !important;
    height: 100% !important;
}

.note {
    margin-top: 10px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media(max-width: 900px) {
    .waste-section {
        flex-direction: column;
        padding: 25px;
    }

    .chart-box {
        width: 220px;
        height: 220px;
    }
}
/* =========================
   CO2 CALCULATOR CSS
========================= */

.co2-section {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.co2-left, .co2-right {
    flex: 1;
}

.co2-left h2, .co2-right h2 {
    text-align: center;
    margin-bottom: 15px;
}

.tree-display {
    min-height: 150px;
    text-align: center;
    font-size: 32px;
}

.tree-icon {
    font-size: 34px;
    margin: 3px;
    display: inline-block;
}

.tree-note {
    text-align: center;
    margin-top: 10px;
    color: #555;
}

.co2-right input {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#calcCO2 {
    width: 100%;
    padding: 14px;
    background: #2f8c36;
    border-radius: 8px;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 20px;
}

.result-box {
    text-align: center;
    margin-top: 10px;
}

#bigTreeCount {
    font-size: 55px;
    font-weight: bold;
    color: #2f8c36;
    margin-top: 5px;
}

.base-note {
    text-align: center;
    margin-top: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .co2-section {
        flex-direction: column;
        padding: 25px;
    }

    .tree-display {
        min-height: 120px;
        font-size: 26px;
    }
}

/* MAIN WRAPPER */
.calc-tabs-container {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    font-family: "Segoe UI", sans-serif;
}

/* ===========================
   TABS
=========================== */
.calc-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.calc-tab-btn {
    background: var(--soft-grey);
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.25s;
    color: var(--carbon-black);
}

.calc-tab-btn.active {
    background: var(--eco-green);
    color: var(--white);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.calc-tabs-underline {
    height: 5px;
    width: 250px;
    margin: 0 auto 20px;
    border-radius: 10px;
    background: rgba(47,140,54,0.15);
}

/* ===========================
   TAB CONTENTS
=========================== */
.calc-tab-content {
    display: none;
}

.calc-tab-content.active {
    display: block;
}

/* ===========================
   SECTION CARD
=========================== */
#compost-section,
#biogas-section {
    background: var(--white);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

/* Title */
#compost-section h3,
#biogas-section h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--carbon-black);
    margin-bottom: 20px;
}

/* Inputs */
#compost-section input,
#biogas-section input {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: var(--soft-grey);
    font-size: 15px;
    margin-bottom: 16px;
    transition: 0.25s;
}

#compost-section input:focus,
#biogas-section input:focus {
    border-color: var(--eco-green);
    background: var(--white);
    box-shadow: 0 0 8px rgba(47,140,54,0.3);
}

/* Buttons */
#compCalcBtn,
#bioCalcBtn {
    width: 100%;
    padding: 14px;
    background: var(--eco-green);
    border-radius: 10px;
    color: var(--white);
    border: none;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 5px;
    transition: 0.25s;
}

#compCalcBtn:hover,
#bioCalcBtn:hover {
    background: var(--eco-green-dark);
}

/* Result Container */
#compost-section div:last-child,
#biogas-section div:last-child {
    background: var(--soft-grey);
    padding: 18px;
    border-radius: 12px;
    margin-top: 20px;
}

#compost-section p,
#biogas-section p {
    font-size: 16px;
    margin: 8px 0;
    color: var(--carbon-black);
}

#compost-section strong span,
#biogas-section strong span {
    color: var(--eco-green-dark);
    font-weight: 900;
}

/* Responsive */
@media(max-width:600px) {
    .calc-tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    #compost-section h3,
    #biogas-section h3 {
        font-size: 20px;
        text-align: center;
    }
}
.roi-wrapper {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fb;
}

.roi-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.roi-subtitle {
    color: #555;
    margin-bottom: 35px;
}

.roi-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.roi-box {
    background: white;
    padding: 25px;
    width: 45%;
    min-width: 320px;
    border-radius: 15px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
}

.box-title {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

#roiForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#roiForm input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#calcBtn {
    background: #31aa52;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
}

#calcBtn:hover {
    background: #249240;
}

.roi-output {
    text-align: center;
    margin-top: 20px;
}

#annualGain {
    color: #1ca64f;
    font-size: 28px;
    font-weight: bold;
}

.right {
    min-height: 420px;
}

.chart-note {
    margin-top: 10px;
    font-size: 13px;
    color: #444;
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .roi-box {
        width: 100%;
    }
}
/* ===============================
   Consultation Section
=============================== */
.eco-consult-section {
    background: #1F2A38;     /* Dark blue background */
    padding: 80px 20px;
    text-align: center;
}

.eco-consult-container {
    max-width: 850px;
    margin: auto;
}

.eco-consult-title {
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.eco-consult-subtext {
    color: #d9d9d9;
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.eco-consult-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.consult-btn,
.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    border: none;
}

.consult-btn {
    background: #34b754;
    color: #fff;
}

.consult-btn:hover {
    background: #2da148;
}

/* WhatsApp Button */
.wa-btn {
    background: #1bd741;
    color: #fff;
}

.wa-btn img {
    width: 18px;
}

.wa-btn:hover {
    background: #17c63a;
}

/* Responsive */
@media (max-width: 768px) {
    .eco-consult-title {
        font-size: 24px;
    }

    .consult-btn, .wa-btn {
        width: 100%;
        justify-content: center;
    }

    .eco-consult-buttons {
        gap: 12px;
    }
}
/* ================================
      Tree Planting Photo Gallery
================================ */
.tree-photo-section {
    background: #ffffff;
    padding: 10px;
}

.tree-photo-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #097f25;
}

/* Horizontal Row – No Gaps */
.tree-photo-row {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.tree-photo-row img {
    width: 380px;              /* You can change the width */
    height: 220px;             /* Uniform height */
    object-fit: cover;         /* No stretching */
    flex-shrink: 0;            /* Prevent images from shrinking */
    margin: 0;                 /* NO GAPS */
    padding: 0;                /* NO GAPS */
}

/* Hide Scrollbar (Optional) */
.tree-photo-row::-webkit-scrollbar {
    display: none;
}
.tree-photo-section {
    padding: 40px 0;
    background: #f5f5f5;
}

.tree-photo-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.tree-photo-slider {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
}

.tree-photo-track {
    display: flex;
    align-items: center;
    /* Important: smooth infinite scroll */
    animation: treeScroll 25s linear infinite;
}

.tree-photo-track img {
    width: 220px;              /* adjust as needed */
    height: 150px;             /* adjust as needed */
    object-fit: cover;
    margin-right: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Remove last margin on big screens (optional) */
.tree-photo-track img:last-child {
    margin-right: 0;
}

/* Keyframes for scrolling left */
@keyframes treeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move by half the track width because we duplicated the images */
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tree-photo-track img {
        width: 160px;
        height: 110px;
        margin-right: 12px;
    }
}
/* Dropdown container */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    top: 100%;
    left: 0;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 999;
}

.nav-menu .dropdown-menu li {
    list-style: none;
}

.nav-menu .dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

.nav-menu .dropdown-menu li a:hover {
    background: #f0f0f0;
}

/* Show on hover */
.nav-menu .dropdown:hover .dropdown-menu {
    display: block;
}
/* Arrow styling */
.nav-menu .dropdown .arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: 0.3s;
}

/* Rotate arrow on hover */
.nav-menu .dropdown:hover .arrow {
    transform: rotate(180deg);
}
