/* Design System */
:root {
  --primary: #8DBB2E;
  /* Lime / Olive from image */
  --primary-hover: #7ba328;
  --secondary: #2D2D2D;
  /* Dark Charcoal */
  --bg-light: #F8F9FA;
  --bg-dark: #1A1A1A;
  --white: #FFFFFF;
  --text-main: #333333;
  --text-light: #B0B0B0;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-anchor: none;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

main {
  overflow-x: hidden;
  width: 100%;
}

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

h1,
h2,
h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  word-wrap: break-word;
}

p, li, span {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section.section-padding {
  padding: 120px 0;
}

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

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

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

.text-white {
  color: var(--white);
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(26, 43, 13, 0.75);
  /* 75% opacity green */
  border-bottom: 2px solid var(--primary);
  /* 100% green line */
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(26, 43, 13, 0.95);
  height: 75px;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 40px;
  /* Reduced from 50 */
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}
.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* Consolidated navbar.scrolled below */

.btn-cta {
  background: linear-gradient(180deg, #c5eb75 0%, #8DBB2E 100%);
  color: #1a2b0d;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  display: inline-block;
  white-space: nowrap;
}

.mobile-only-cta {
  display: none !important;
}

@media (max-width: 991px) {
  .mobile-only-cta {
    display: inline-block !important;
    margin-top: 20px;
    width: 100%;
    text-align: center;
  }
  .nav-right .btn-cta {
    display: none !important;
  }
}

.btn-cta:hover {
  background: linear-gradient(180deg, #d4f48e 0%, #a3d34b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(141, 187, 46, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  font-size: 1.8rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex !important;
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: url('images/bannerbackhero.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  /* Back to centered */
}

/* Removed slider specific styles */

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
  color: var(--white);
  max-width: 1100px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 25px;
  line-height: 1.1;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
}

.text-green {
  color: var(--primary);
  font-weight: 700;
}

.text-white {
  color: var(--white);
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin: 0 auto 40px;
  max-width: 800px;
  opacity: 0.85;
  font-weight: 300;
  line-height: 1.5;
}

.btn-hero {
  display: inline-block;
  background-color: var(--primary);
  color: #1a1a1a;
  padding: 14px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-hero:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(141, 187, 46, 0.4);
}

.hero-kpis {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 43, 13, 0.85);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 10;
  border-top: 2px solid var(--primary);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.kpi-item {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px;
}

.kpi-item:last-child {
  border-right: none;
}

.kpi-item .number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.kpi-item .label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Common Section Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-2 > div {
  min-width: 0; /* Prevents grid blowout on mobile */
  width: 100%;
}

.section-title {
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  letter-spacing: -1px;
  margin-bottom: 30px;
  color: var(--secondary);
  position: relative;
  line-height: 1;
}

.section-title.text-green {
  color: var(--primary);
}

.nosotros.section-padding {
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-title-dist {
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 5px;
  color: #A3914D;
  /* Olive / Gold */
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.distribucion .subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0;
}

.dist-flex-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.dist-cards-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

.distribucion {
  padding: 60px 0 120px;
}

.instalaciones {
  background-color: #F2F2F2;
  padding: 160px 0 !important;
}

@media (max-width: 991px) {
  .dist-flex-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.dist-card-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 30px;
  border: 4px solid var(--primary);
  border-radius: 15px;
  background: white;
  color: #A3914D;
  font-weight: 700;
  font-size: clamp(1rem, 4vw, 1.5rem);
  transition: var(--transition);
  cursor: pointer;
}

.dist-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(141, 187, 46, 0.2);
  background-color: #f9fff0;
}

.dist-card-item .icon {
  font-size: 2.22rem;
  display: flex;
  align-items: center;
}

.arrow-container {
  color: #A3914D;
  font-size: 2rem;
}

/* Nosotros */
.nosotros .image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
}

/* Removed old distribution styles */

.instalaciones {
  background-color: #F2F2F2;
}

.title-split {
  font-size: 4.5rem;
  line-height: 0.9;
  display: flex;
  flex-direction: column;
}

.text-olive {
  color: #A3914D;
}

/* Installations Carousel */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 25px;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.carousel-card {
  min-width: calc(33.333% - 17px);
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(141, 187, 46, 0.4);
}

.carousel-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #D1D1D1;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
}

@media (max-width: 991px) {
  .title-split {
    font-size: 3.5rem;
  }
  .carousel-card {
    min-width: calc(50% - 13px);
  }
  .carousel-container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .carousel-card {
    min-width: 100%;
  }
}

/* Logística */
.logistica {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/Fondo_Logistica.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  padding: 160px 0 !important;
}

.logistics-img {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  cursor: pointer;
}

.text-white {
  color: var(--white);
}

/* Product Carousel */
.custom-bullets {
  list-style: none;
  padding-left: 0;
}

.custom-bullets li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #555;
}

.custom-bullets li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.product-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
}

.prod-viewport {
  overflow: hidden;
  width: 100%;
  max-width: 400px; /* Single card view */
}

.prod-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.prod-card {
  min-width: 100%;
  background: white;
  border: 4px solid var(--primary); /* Green border from image */
  border-radius: 30px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.prod-img-box {
  position: relative;
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  height: 250px;
}

.prod-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prod-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #8C9B4D; /* Olive green from image */
  color: white;
  padding: 8px 25px;
  border-radius: 20px 20px 0 0;
  width: 80%;
  font-weight: 600;
  font-size: 1rem;
}

.prod-specs {
  list-style: none;
  text-align: left;
  display: inline-block;
}

.prod-specs li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
  font-weight: 500;
  color: #444;
}

.prod-specs li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #333;
}

.prod-description {
  margin-top: 15px;
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
  padding: 0 10px;
}

.prod-btn {
  position: absolute;
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.prod-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(141, 187, 46, 0.4);
}

.prod-btn.prev { left: 0; }
.prod-btn.next { right: 0; }

.prod-dots {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.prod-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: var(--transition);
}

.prod-dot.active {
  background-color: var(--primary);
}

/* Certifications */
.certs-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.certs-logos img {
  height: 60px;
  filter: grayscale(1);
  opacity: 0.7;
  transition: var(--transition);
}

.certs-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.nature-banner {
  border-radius: 30px;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.nature-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Brands / Marcas */
.marcas {
  background: linear-gradient(rgba(26, 43, 13, 0.8), rgba(26, 43, 13, 0.8)), url('images/Fondo_Logistica.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  padding: 120px 0;
}

.marcas .subtitle {
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto 50px;
}

.brand-card {
  min-width: calc(25% - 19px); /* 4 logos per view on desktop */
  aspect-ratio: 3 / 2;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.brand-card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: var(--transition);
}

.brand-card:hover img {
  transform: scale(1.1);
}

@media (max-width: 1200px) {
  .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 991px) {
  .hero h1 { font-size: 2.8rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .section-title { font-size: 2.8rem; }
  .brand-card { min-width: calc(33.333% - 17px); }
  .navbar .container { padding: 0 30px; }
  .section-title-footer {
    font-size: 2.5rem;
  }
  .contact-flex-container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }
  .contact-col {
    width: 100%;
    padding: 20px 0;
  }
  .contact-col.separator {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
  .contact-item {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  section.section-padding { padding: 80px 0; }
  .hero h1 { font-size: 2.22rem; }
  .brand-card { min-width: calc(50% - 13px); }
  .deco-line-top, .deco-line-bottom {
    width: 120px;
  }
  .section-title-norm {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 1.8rem; }
  .brand-card { min-width: 100%; }
}

/* Contact / Footer */
.contacto {
  background-color: var(--primary);
  color: white;
  padding: 80px 0;
}

.section-title-footer {
  font-size: 4rem; /* Matching the big title in image */
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
}

.subtitle-footer {
  font-size: 1.1rem;
  margin-bottom: 60px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-flex-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-col {
  flex: 1;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-col.separator {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  font-size: 2.5rem; /* Larger icons like in the image */
  width: 50px;
  text-align: center;
}

.phones {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 1.2rem;
}

@media (max-width: 991px) {
  .section-title-footer {
    font-size: 2.5rem;
  }
  .contact-flex-container {
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
  }
  .contact-col {
    width: 100%;
    padding: 20px 0;
  }
  .contact-col.separator {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }
  .contact-item {
    justify-content: center;
  }
}

.footer-bottom {
  background-color: var(--secondary);
  color: rgba(255, 255, 255, 0.6);
  padding: 20px 0;
  font-size: 0.9rem;
}

/* Animations */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal-left {
  transform: translateX(-50px);
}

.reveal-right {
  transform: translateX(50px);
}

.active-scroll {
  opacity: 1;
  transform: translate(0, 0);
}

/* Mobile Menu Toggle Styling */
.navbar .container {
  position: relative;
}

/* Sustentabilidad y Normatividad */
.sustentabilidad {
  position: relative;
  overflow: hidden;
  background-color: var(--white);
}

.deco-line-top {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  z-index: 1;
  pointer-events: none;
}

.deco-line-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  z-index: 1;
  pointer-events: none;
}

.section-title-norm {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 30px;
  position: relative;
  z-index: 5;
}

.description-norm {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #555;
  line-height: 1.6;
}

.certs-logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.cert-logo-item img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

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

.rounded-20 {
  border-radius: 20px;
}

.norm-content p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .deco-line-top, .deco-line-bottom {
    width: 120px;
  }
  .section-title-norm {
    font-size: 2.2rem;
  }
  .certs-logos-row {
    gap: 30px;
  }
}

/* Modal Lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2100;
}

.modal-close:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 20px;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 2100;
}

.modal-btn:hover {
  background: var(--primary);
  color: #1a1a1a;
}

.modal-prev { left: 40px; }
.modal-next { right: 40px; }

/* Responsive Optimization */
@media (max-width: 1200px) {
  .hero h1 { font-size: 3.5rem; }
  .container { padding: 0 40px; }
}

@media (max-width: 1024px) {
  .hero { 
    height: auto; 
    min-height: 100vh; 
    padding: 120px 0 0; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .hero-content { 
    max-width: 100%; 
    padding: 40px 20px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 3rem); }
  
  .hero-kpis { 
    position: relative !important; 
    left: 0 !important; 
    bottom: 0 !important; 
    width: 100% !important; 
    background: #1a2b0d !important; 
    margin-top: 40px;
    padding: 20px 0 !important;
  }
  .kpi-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
  .product-carousel-container { 
    padding: 0 40px; 
    margin: 40px 0; 
  }
  .prod-viewport { max-width: 100% !important; }
  
  .navbar .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 90px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 90px);
    background: #1a2b0d;
    padding: 30px;
    transition: all 0.4s ease;
    z-index: 9991;
    text-align: left;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  }

  .navbar .nav-links.nav-links-mobile {
    left: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    display: block;
    opacity: 1 !important;
  }

  .menu-toggle { display: flex !important; }
  .nav-right { display: none !important; }
  .mobile-only-cta { display: inline-block !important; margin-top: 20px; width: 100%; text-align: center; }

  .section-title { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.2; padding: 0 10px; }
  .title-split { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .dist-cards-container { 
    justify-content: center; 
    width: 100%; 
    flex-direction: column; 
    align-items: center; 
  }
  .arrow-container { transform: rotate(90deg); margin: 15px 0; }
  
  /* Text align fixes for mobile */
  .grid-2 .content { text-align: left; }
  .grid-2 .section-title { text-align: center; margin-bottom: 25px; }
}

@media (max-width: 768px) {
  section.section-padding { padding: 60px 0; }
  .kpi-grid { grid-template-columns: 1fr !important; }
  .kpi-item { border: none !important; padding: 15px 0; } /* Hide floating borders */
  .dist-flex-layout { flex-direction: column; gap: 30px; }
  .norm-content { padding-bottom: 80px; } /* Add clearance for corner image */
  .carousel-container { padding: 0 40px; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1.2rem; }
  .brand-card { min-width: calc(50% - 13px); }
  .certs-logos-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    justify-items: center;
  }
  .cert-logo-item img { height: 50px; }
  .carousel-btn { width: 35px; height: 35px; font-size: 1rem; }
  .carousel-btn.prev { left: 5px; }
  .carousel-btn.next { right: 5px; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.95rem; }
  .btn-hero { width: auto; min-width: 250px; max-width: 90%; padding: 12px 30px; font-size: 0.9rem; }
  .brand-card { min-width: 100%; }
  
  /* Product Carousel Fixes */
  .product-carousel-container { padding: 0 20px; }
  .prod-viewport { max-width: 100%; }
  .prod-card { padding: 15px 10px; }
  .prod-img-box { height: 180px; }
  .prod-label { padding: 5px 15px; font-size: 0.9rem; }
  .prod-description { font-size: 0.85rem; padding: 0 5px; }
  .prod-btn { width: 35px; height: 35px; font-size: 1rem; }
}

/* Base reveal transition */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: all 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }

.active-scroll {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}