/* yellow - #e7c362 */
/* green - #86a51b */
:root {
  --font-primary: 'Inter', sans-serif;
  --color-dark-green: #1A361D;
  --color-green:#7b0003;
  --color-light-green: #071309;
}

body {
  font-family: var(--font-primary);
}

/* ==================== NAVBAR ==================== */

#site-header.scrolled {
  background-color: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
#site-header:not(.scrolled) {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 6.25rem;
    /* account for fixed mobile header height */
  }

  #site-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #navbar-container {
    gap: 0.75rem;
  }
}

#site-header.scrolled .nav-link,
#site-header.scrolled #mobile-toggle,
#site-header.scrolled .nav-link svg {
  color: rgb(58, 57, 57);

}

#site-header.scrolled .nav-link {
  text-shadow: none;
}

#site-header.scrolled .nav-link:hover {
  color: #1A361D;
}

#logo-wrap.scrolled {
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

/* Mobile: make hamburger and mobile menu text clearly visible */
@media (max-width: 768px) {

  /* Ensure hero sits below header on smaller devices (kept for safety) */
  .hero-section {
    padding-top: 6.25rem;
  }

  #site-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  #navbar-container {
    gap: 0.75rem;
  }

  #site-header:not(.scrolled) #mobile-toggle {
    color: #374151;
    /* neutral-700 */
  }

  /* Force SVG stroke and icon colors for the hamburger */
  #mobile-toggle,
  #mobile-toggle svg,
  #mobile-toggle svg path,
  #mobile-toggle svg line {
    color: #374151 !important;
    stroke: #374151 !important;
    fill: none !important;
  }

  /* Mobile menu text color */
  nav#mobile-menu,
  nav#mobile-menu a,
  nav#mobile-menu button,
  nav#mobile-menu .mobile-link {
    color: #374151 !important;
  }

  /* Ensure icons inside mobile menu also adapt */
  nav#mobile-menu svg,
  nav#mobile-menu path,
  nav#mobile-menu line {
    stroke: #374151 !important;
    color: #374151 !important;
  }
}

/* Desktop: ensure navbar link hover is brand green */
/* Desktop: navbar link hover — same color, thoda size increase */
@media (min-width: 768px) {
  #site-header .nav-link {
    transition: transform 0.25s ease, color 0.3s ease;
    display: inline-block;
    /* transform ke liye zaroori */
  }

  #site-header .nav-link:hover,
  #site-header .nav-link:hover svg,
  #site-header .nav-link:hover path {
    transform: scale(1.08);
  }
}

#site-header.scrolled .nav-link:hover,
#site-header.scrolled .nav-link:hover svg {
  transform: scale(1.08);
}

#quote-btn.scrolled {
  background-color: var(--color-dark-green);
  color: #ffffff;
  box-shadow: none;
}

#quote-btn.scrolled:hover {
  background-color: var(--color-green);
}

#quote-btn.not-scrolled {
  background-color: #ffffff;
  color: var(--color-dark-green);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#quote-btn.not-scrolled:hover {
  background-color: rgba(157, 201, 46, 0.2);
}

/* Products dropdown visible state */
#products-dropdown.open {
  pointer-events: auto;
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Mobile sidebar: keep the panel above the overlay and make its state explicit. */
#mobile-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  overscroll-behavior: contain;
  overflow: hidden;
}

#mobile-menu .mobile-sidebar-header {
  position: absolute;
}

#mobile-menu .mobile-sidebar-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 36, 26, 0.35) transparent;
}

#mobile-menu .mobile-quote-btn,
#mobile-menu .mobile-quote-btn:hover {
  color: #ffffff !important;
}

#mobile-menu .mobile-sidebar-logo img {
  max-width: 190px;
}

#mobile-menu.translate-x-full {
  visibility: hidden;
  pointer-events: none;
}

#mobile-menu.translate-x-0 {
  visibility: visible;
  pointer-events: auto;
}

#mobile-products-submenu.hidden {
  display: none;
}

@media (min-width: 768px) {
  #mobile-menu,
  #mobile-menu-overlay {
    display: none;
  }
}

/* ==================== HERO ==================== */

.bg-hero-lime {
  background-color: var(--color-light-green);
}

.text-hero-lime {
  color: var(--color-light-green);
}

.bg-hero-green {
  background-color: var(--color-green);
}

.achievements-strip {
  border-top: 3px solid var(--color-green);
  box-shadow: 0 -20px 50px rgba(18, 36, 26, 0.18);
}

/* Swiper pagination dots (custom, matches original hero-dot styling) */
.hero-dot {
  width: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.45);
  display: inline-block;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.hero-dot-active {
  width: 40px;
  background: var(--color-light-green);
}

.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

/* ==================== EXACT WRAP SECTION ==================== */

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ==================== PRODUCTS SLIDER ==================== */

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.product-card-link {
  flex-shrink: 0;
  width: 280px;
  height: 420px;
  position: relative;
  margin-top: 1rem;
  display: block;
  z-index: 20;
  will-change: transform, opacity;
}

@media (min-width: 768px) {
  .product-card-link {
    width: 300px;
  }
}

/* ==================== WHY US / FOOTER ==================== */

.plug-upper-part,
.plug-lower-part {
  transition: transform 0.35s ease-out;
}

.plug-lower-leg {
  transition: opacity 0.35s ease-out;
}

#plug-connect:hover .plug-upper-part {
  transform: translate(-2px, 2px);
}

#plug-connect:hover .plug-lower-part {
  transform: translate(2px, -2px);
}

#plug-connect:hover .plug-lower-leg {
  opacity: 0;
}

/* ==================== CUSTOM SUBSCRIBE SECTION ==================== */

.custom-email-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.custom-subscribe-form {
  transition: all 0.3s ease;
}

.custom-subscribe-form:focus-within {
  border-color: var(--color-light-green);
  box-shadow: 0 0 0 4px rgba(157, 201, 46, 0.15);
}

/* ==================== CUSTOM SUBSCRIBE SECTION UPDATES ==================== */

.custom-subscribe-form {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-primary);
}

.custom-subscribe-form:focus-within {
  border-color: var(--color-green);
  box-shadow: 0 10px 30px -5px rgba(52, 123, 54, 0.12), 0 0 0 4px rgba(157, 201, 46, 0.15);
}

.custom-email-input {
  caret-color: var(--color-green);
  font-family: var(--font-primary);
}

/* ==================== CONTACT SECTION & 45° LEAF ANIMATION ==================== */
.cc-contact-section {
  font-family: var(--font-primary);
}

.cc-contact-section select option {
  font-family: var(--font-primary);
}

/* Base styling for the leaf: positioned at top-right corner, rotated -45 degrees anti-clockwise */
.cc-floating-leaf {
  transform: rotate(-45deg);
  transform-origin: top right;
  animation: leafWindSway45 6s ease-in-out infinite;
  will-change: transform;
}

/* Gentle organic breeze animation centered around -45 degrees */
@keyframes leafWindSway45 {
  0% {
    transform: rotate(-45deg) translate(0px, 0px) skew(0deg, 0deg);
  }

  25% {
    transform: rotate(-41deg) translate(5px, -5px) skew(2deg, -1deg);
  }

  50% {
    transform: rotate(-48deg) translate(-4px, 4px) skew(-2deg, 2deg);
  }

  75% {
    transform: rotate(-43deg) translate(3px, -3px) skew(1deg, -1deg);
  }

  100% {
    transform: rotate(-45deg) translate(0px, 0px) skew(0deg, 0deg);
  }
}

.custom-slider-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.custom-slider-container::-webkit-scrollbar {
  display: none;
}

/* 1. Initial state of elements to be animated */
.scroll-animate-left,
.scroll-animate-right {
  opacity: 0;
  will-change: transform, opacity;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Specific directions */
.scroll-animate-left {
  transform: translateX(-50px);
}

.scroll-animate-right {
  transform: translateX(50px);
}

/* Optional delays for staggered effect */
.animation-delay-150 {
  transition-delay: 150ms;
}

/* 2. State when visible (added by JS) */
.scroll-animate-left.is-visible,
.scroll-animate-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-50px);
  will-change: transform, opacity;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.scroll-animate-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.sh-textured-bg {
  background-color: #fafaf9;
  background-image: repeating-linear-gradient(90deg,
      rgba(0, 0, 0, 0.025) 0px,
      rgba(0, 0, 0, 0.025) 1px,
      transparent 1px,
      transparent 3px);
}

.sh-crosshatch-bg {
  background-color: #fbfbfa;
  background-image:
    linear-gradient(45deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 8px 8px;
}

/* Shared styles for Product detail and Project detail specification sections */

/* ---------- Section layout ---------- */
.spec-section {
    width: 100%;
    background: #fff;
    padding: 56px 0;
    font-family: Georgia, "Times New Roman", serif;
}
.spec-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}
.spec-body { min-width: 0; }

/* ---------- Image ---------- */
.spec-media-card {
    background: linear-gradient(135deg, #f3f8ec 0%, #ffffff 50%, #eef6e0 100%);
    border: 1px solid rgba(71, 149, 48, .15);
    border-radius: 24px;
    padding: 24px;
}
.spec-media-frame {
    aspect-ratio: 4 / 3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spec-media-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; /* hides the white photo background */
}

/* ---------- Heading & text ---------- */
.spec-title {
    margin: 0 0 24px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: #171717;
}
.spec-content {
    color: #404040;
    font-size: 1.05rem;
    line-height: 1.75;
}
.spec-content h3 { margin: 1.25rem 0 .5rem; font-size: 1.5rem; font-weight: 600; color: #000; line-height: 1.3; }
.spec-content p  { margin: .75rem 0; }
.spec-content ul { list-style: disc; padding-left: 1.25rem; margin: .75rem 0; }
.spec-content li + li { margin-top: .35rem; }

/* ---------- Specification table ---------- */
/* !important overrides inline styles saved in the DB/editor HTML */
.spec-content table {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 1.25rem 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #dfe8d6 !important;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    font-size: .95rem !important;
    box-shadow: 0 1px 2px rgba(20, 40, 10, .05);
}
.spec-content th,
.spec-content td {
    border: 0 !important;
    border-bottom: 1px solid #e9efe3 !important;
    padding: 12px 18px !important;
    text-align: left !important;
    vertical-align: top !important;
    line-height: 1.5 !important;
    height: auto !important;
}
.spec-content tr:last-child th,
.spec-content tr:last-child td { border-bottom: 0 !important; }

/* header row (first row, whether <th> or <td>) */
.spec-content tr:first-child th,
.spec-content tr:first-child td,
.spec-content thead th,
.spec-content thead td {
    background: #479530 !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    border-right: 0 !important;
}

/* label column */
.spec-content tr:not(:first-child) td:first-child,
.spec-content tr:not(:first-child) th:first-child {
    width: 34%;
    font-weight: 600 !important;
    color: #1f3b14 !important;
    background: #f6faf1 !important;
    border-right: 1px solid #e9efe3 !important;
}
/* value column */
.spec-content tr:not(:first-child) td:last-child { color: #333; }
.spec-content tr:nth-child(even):not(:first-child) td:last-child { background: #fcfdfb; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 640px) {
    .spec-container { padding: 0 24px; }
    .spec-media-card { padding: 40px; }
    .spec-title { font-size: 1.85rem; }
    .spec-content { font-size: 1.125rem; }
}
@media (min-width: 768px) {
    .spec-section { padding: 80px 0; }
}
@media (min-width: 1024px) {
    .spec-container { padding: 0 32px; }
    .spec-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 48px;
    }
    .spec-media { position: sticky; top: 96px; }
    .spec-title { font-size: 2rem; }
}

/* ---------- Small phones ---------- */
@media (max-width: 640px) {
    .spec-content table { font-size: .875rem !important; }
    .spec-content th, .spec-content td { padding: 10px 12px !important; }
    .spec-content tr:not(:first-child) td:first-child { width: 40%; }
}