:root {
  --primary-color: #009245;
  --complementary: #920048;
  --accent1: #924700;
  --accent2: #004892;
  --light-green: #e0f5e9;
  --dark-green: #006731;
  --text-color: #333;
  --background-color: #fff;
  --header-height: 80px;
  --footer-height: 60px;
  --max-width: 100vw;
  --height: 100vh;
  --spacing: 2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul{
  margin-bottom: .75rem;
}


body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

input[type="checkbox"] {
      zoom: 2;
}

.container {
  width: 100%;
  margin: 0 auto;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.header-section {
  position: relative;
  background: linear-gradient(135deg, var(--light-green), #fff);
  padding: 2rem 0;
  overflow: hidden;
  max-width: 100vw;
}

.header-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent2));
}

.logo-container {
  padding: var(--spacing) 0;
  text-align: center;
  position: relative;
}

.legal-info {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 768px) {
    .logo-container::before,
    .logo-container::after {
        content: '';
        position: absolute;
        width: 200px;
        height: 2px;
        background: var(--primary-color);
        top: 50%;
        transform: translateY(-50%);
    }

    .logo-container::before {
        left: max(20px, calc((100% - var(--max-width)) / 2));
    }

    .logo-container::after {
        right: max(20px, calc((100% - var(--max-width)) / 2));
    }
}

.logo {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 146, 69, 0.2));
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: var(--spacing);
  padding: 1rem;
  background: linear-gradient(90deg, rgba(0, 146, 69, 0.1), rgba(0, 72, 146, 0.1));
  border-radius: 50px;
  max-width: fit-content;
  max-height: fit-content;
  margin: 0 auto 2rem;
  border: solid 4px rgba(0, 146, 69, 0.2);
  box-shadow: 0 4px 12px rgba(0, 146, 69, 0.1);
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
  background-color: rgba(0, 146, 69, 0.1);
  transform: translateY(-2px);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover::after {
  width: 80%;
}

.nav-menu span.active {
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  position: relative;
  font-weight: 600;
  color: var(--primary-color);
}

.green-text {
  color: var(--primary-color);
  font-weight: 500;
}

.content {
  padding: 0;
  background-color: var(--background-color);
}

.content-section {
  padding: 2rem 0;
  position: relative;
}

.content-section:nth-child(even) {
  background: linear-gradient(135deg, rgba(0, 146, 69, 0.05), rgba(0, 72, 146, 0.05));
}

.content-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height:100%;
  z-index: 10000;
  background: linear-gradient(180deg, var(--primary-color), var(--accent2));
}

.header-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height:100%;
  z-index: 10000;
  background: linear-gradient(180deg, var(--primary-color), var(--accent2));
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.sub-hero-header{
  text-align: center;
}

.content-header {
  font-size: 2.5rem;
  color: var(--dark-green);
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.content-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent2));
}

.content-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  padding: 0 var(--spacing);
  margin-bottom: 3rem;
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 146, 69, 0.1);
}

.content-text p {
  margin-bottom: .75rem;
}

.content-text p:last-child {
  margin-bottom: 0;
}

.content-text ul{
  padding-left: 2em;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: var(--spacing);
  max-width: var(--max-width);
  margin: 0 auto;
}

.image-grid a {
  display: block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.image-grid a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 146, 69, 0.2), rgba(0, 72, 146, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.image-grid a:hover {
  transform: translateY(-10px);
}

.image-grid a:hover::before {
  opacity: 1;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.image-grid a:hover img {
  transform: scale(1.05);
}

.carouselbuttoncontainer {
  display: flex;
  justify-content: center;
}

footer {
  position: relative;
  bottom: 0;
  text-align: center;
  padding: var(--spacing);
  margin-top: auto;
  background: linear-gradient(135deg, var(--primary-color), var(--accent2));
  color: white;
  width: 100%;
  flex-shrink: 0;
}

footer::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent1), var(--complementary));
}

footer a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
}

footer a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Contact page specific styles */
.contact-info {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 146, 69, 0.05), rgba(0, 72, 146, 0.05));
  border-radius: 15px;
  border: 1px solid rgba(0, 146, 69, 0.1);
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-info strong {
  color: var(--primary-color);
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.contact-icon {
  display: inline-block;
  width: 24px;
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Contact info hover effect */
.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 146, 69, 0.1);
  transition: all 0.3s ease;
}

/* Certificate page specific styles */
.certificate-info {
  text-align: center;
}

.certificate-content {
  position: relative;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(0, 146, 69, 0.05), rgba(0, 72, 146, 0.05));
  border-radius: 15px;
  border: 1px solid rgba(0, 146, 69, 0.1);
}

.certificate-content::before {
  content: '✓';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 8px rgba(0, 146, 69, 0.2);
}

.certificate-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: .75rem;
}

.certificate-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.certificate-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 146, 69, 0.2);
}

/* Impressions page specific styles */
.subnav-menu {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem auto;
  padding: 1rem;
  max-width: fit-content;
}

.subnav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.3rem 1rem;
  border-radius: 15px;
  background: rgba(0, 146, 69, 0.1);
}

.subnav-menu a:hover {
  color: white;
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.subnav-menu span.active {
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
}

.impressions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  padding: var(--spacing);
}

.impression-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.impression-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.impression-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 146, 69, 0.9), transparent);
  padding: 2rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.impression-overlay span {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
}

.impression-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 146, 69, 0.2);
}

.impression-item:hover img {
  transform: scale(1.05);
}

.impression-item:hover .impression-overlay {
  transform: translateY(0);
}

/* Product page specific styles */
.product-hero {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 3rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 146, 69, 0.15);
}

.product-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.product-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 146, 69, 0.1);
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 2rem 0;
  color: var(--text-color);
}

/* Before-After Slider */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin: 2rem auto;
  box-shadow: 0 15px 30px rgba(0, 146, 69, 0.15);
}

.ba-slider img {
  width: 100%;
  display: block;
}

.resize {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}

.handle {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  margin-left: -2px;
  background: var(--primary-color);
  cursor: ew-resize;
}

.handle:after {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  content: '↔';
  color: white;
  font-weight: bold;
  font-size: 20px;
  text-align: center;
  line-height: 44px;
  background: var(--primary-color);
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.handle:hover:after {
  background: var(--dark-green);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: var(--spacing);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 146, 69, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

.lightbox:target {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox .box {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  margin: 2rem auto;
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox .content {
  margin: 1rem 0;
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  margin: auto;
}

.lightbox .close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  text-align: center;
  line-height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.lightbox .prev,
.lightbox .next {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin: 1rem;
  transition: all 0.3s ease;
}

.lightbox .prev:hover,
.lightbox .next:hover {
  background: var(--dark-green);
  transform: translateY(-2px);
}

.clear {
  clear: both;
}

@media (max-width: 825px) {
  .impressions-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .subnav-menu {
    flex-direction: row;
    align-items: center;
  }
  
  .impression-overlay {
    transform: translateY(0);
    padding: 1rem;
  }
  
  .product-hero,
  .product-content {
    border-radius: 0;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .lightbox .box {
    max-width: 95%;
    margin: 1rem;
  }
}

/* Hamburger menu icon */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}


.application-img {
  border: 4px solid #ccc;
  border-radius: 15px;
  margin-bottom: 20px;
  max-height: 50vh;
  width: auto;
  max-width: 90vw;
  display: block;

}

.application-img:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(0, 146, 69, 0.2);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

@media (max-width: 825px) {
  :root {
    --spacing: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 1.2rem;
  }

  .nav-menu a:hover {
    color: rgb(0, 175, 9);
    transform: translateY(0);
  }

  /* Hamburger menu animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .content-header {
    font-size: 1.5rem;
  }

  .sub-hero-header{
    text-align: center;
    font-size: 1rem;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  /* Add overlay when menu is open */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .menu-overlay.active {
    display: block;
  }



}