/* ======================================
   GLOBAL STYLES & VARIABLES
====================================== */
:root {
  --brand-green: #04a219;
  --brand-green-dark: #036c15;
  --brand-green-alt: #046019;
  --brand-green-alt-dark: #218838;
  --text-dark: #333;
  --text-muted: #666;
  --bg-light: #f9f9f9;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  background: #fff;
}

/* Links */
a {
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--brand-green);
}

/* ======================================
   NAVBAR
====================================== */
.custom-navbar {
  transition: all 0.4s ease-in-out;
  padding: 1rem 0;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}

.custom-navbar .nav-link {
  color: #fff;
  font-weight: 500;
  padding: 8px 15px;
  transition: color 0.3s ease;
}
.custom-navbar .nav-link:hover {
  color: var(--brand-green);
}
.custom-navbar .btn {
  transition: background 0.3s ease, color 0.3s ease;
}

/* ✅ Logo with fade effect */
.logo {
  width: auto;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.5s ease, transform 0.3s ease;
}
.logo-light {
  height: 100px;
  opacity: 1;
  position: relative;
  left: auto;
}
.logo-dark {
  height: 40px;
}

/* Navbar Scrolled State */
.custom-navbar.scrolled {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 0.6rem 0;
}
.custom-navbar.scrolled .nav-link {
  color: var(--text-dark);
}
.custom-navbar.scrolled .btn {
  background: var(--brand-green);
  color: #fff;
}
/* ✅ Fade between logos */
.custom-navbar.scrolled .logo-light {
  opacity: 0;
  position: absolute;
}
.custom-navbar.scrolled .logo-dark {
  opacity: 1;
  position: relative;
}

/* Dropdown */
.navbar .dropdown-menu {
  border: none;
  border-radius: 8px;
  margin-top: 0.6rem;
  padding: 0.4rem 0;
  background: #fff;
  min-width: 230px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.navbar .dropdown-item {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 12px 20px;
  line-height: 1.4;
  transition: all 0.25s ease;
}
.navbar .dropdown-item:hover {
  background: #e6f5ec;
  color: var(--brand-green);
  padding-left: 24px;
}

/* Dropdown caret */
.navbar .dropdown-toggle::after {
  content: "\f107"; /* fa-chevron-down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.75rem;       /* smaller & cleaner */
  margin-left: 0px;
  color: var(--brand-green);  /* default text color */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Rotate + recolor when open */
.navbar .dropdown.show .dropdown-toggle::after {
  transform: rotate(180deg);
  color: var(--brand-green); /* matches your theme */
}

.navbar .nav-link:focus,
.navbar .dropdown-toggle:focus,
.navbar .dropdown-menu:focus,
.navbar .dropdown-item:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ======================================
   SLIDER
====================================== */
#noventra-slider {
  position: relative;
  width: 100%;
  height: 100dvh; /* ✅ mobile-friendly */
  min-height: 500px;
  overflow: hidden;
  margin: 0;
  z-index: 1;
  background: #000;
}
#noventra-slider .carousel-inner {
  height: 100%;
  position: relative;
}
/* Crossfade */
#noventra-slider.carousel-fade .carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
  transform: none;
  backface-visibility: hidden;
  z-index: 1;
}
#noventra-slider.carousel-fade .carousel-item.active,
#noventra-slider.carousel-fade .carousel-item-next.carousel-item-start,
#noventra-slider.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  position: relative;
  z-index: 2;
}
#noventra-slider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#noventra-slider .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}
/* Captions */
#noventra-slider .carousel-caption {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  width: 100%;
  max-width: 900px;
  padding: 0 1rem;
  text-align: center;
  z-index: 3;
}
#noventra-slider h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
#noventra-slider p {
  font-size: 1.2rem;
  color: #f8f9fa;
  margin-bottom: 1.5rem;
}
#noventra-slider .custom-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--brand-green);
  color: #fff;
  border-radius: 50px;
  transition: background 0.3s ease;
}
#noventra-slider .custom-button:hover {
  background: var(--brand-green-dark);
}
/* Animations */
#noventra-slider .carousel-caption h2,
#noventra-slider .carousel-caption p,
#noventra-slider .carousel-caption .custom-button {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}
#noventra-slider .carousel-item.active h2 {
  animation: nov-fadeUp 1.9s ease forwards 0s;
}
#noventra-slider .carousel-item.active p {
  animation: nov-fadeUp 1.9s ease forwards 0.3s;
}
#noventra-slider .carousel-item.active .custom-button {
  animation: nov-fadeUp 1.9s ease forwards 0.6s;
}
@keyframes nov-fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #noventra-slider .carousel-item,
  #noventra-slider .carousel-item img {
    transition: none !important;
    animation: none !important;
  }
  #noventra-slider .carousel-caption h2,
  #noventra-slider .carousel-caption p,
  #noventra-slider .carousel-caption .custom-button {
    opacity: 1;
    transform: none;
  }
}

/* ======================================
   ABOUT
====================================== */
.about {
  padding: 80px 0;
  background-color: var(--bg-light);
}
.about .top-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
}
.about .top-text h1 span {
  color: var(--brand-green);
}
.about .top-text h4 {
  color: #777;
  font-weight: 400;
  margin-top: 10px;
}
.divider {
  margin: 20px auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.divider .outer-line {
  flex: 1;
  height: 2px;
  background: #ddd;
}
.divider .fa {
  color: var(--brand-green);
  font-size: 1.2rem;
}

/* Content */
.about-content h3.title-about {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}
.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-content .custom-button {
  display: inline-block;
  background: var(--brand-green);
  color: #fff;
  padding: 10px 25px;
  border-radius: 30px;
  transition: background 0.3s ease;
}
.about-content .custom-button:hover {
  background: var(--brand-green-dark);
  color: #fff;
}

/* Image + Overlay */
.full-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.full-image-container img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.6s ease;
}
.full-image-container:hover img {
  transform: scale(1.05);
}
/* Remove hover-only visibility */
.full-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 135, 84, 0.9);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 30px;
  opacity: 0; /* Start hidden */
  transform: translateY(30px); /* Slide up effect */
  transition: opacity 0.8s ease, transform 0.8s ease;
  border-radius: 10px;
}

/* AOS will add this when triggered */
.full-image-overlay.aos-animate {
  opacity: 1;
  transform: translateY(0);
}



/* Why list: hidden by default, visible when .visible added */
.list-why-choose-us li {
  opacity: 0;
  transform: translateY(20px); /* slide up into place */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Visible state */
.list-why-choose-us li.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .list-why-choose-us li,
  .list-why-choose-us li.visible {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ======================================
   SERVICES
====================================== */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 1rem;
}
.service-card {
  perspective: 1000px;
  height: 320px;
  border-radius: 1rem;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  will-change: transform;
  transform: none; /* default */
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}
.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  box-shadow: 0 6px 25px rgba(0,0,0,0.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.service-card-front { transform: rotateY(0deg); }
.service-card-back  { transform: rotateY(180deg); }


.service-card-front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dark);
}

.service-card-back {
  transform: rotateY(180deg);
  background: var(--bg-light);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ✅ When active, card flips */
.service-card-inner.flip {
  transform: rotateY(180deg);
}

.service-card-front h4 {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.service-card-front p {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.service-card-back {
  transform: rotateY(180deg);
  background: var(--bg-light);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.service-card-back p {
  font-size: 1rem;
  color: #444;
}


/* ======================================
   WHY NOVENTRA
====================================== */
.why-noventra {
  position: relative;
  padding: 80px 0;
  background: var(--bg-light);
  color: #222;
  overflow: hidden;
}
.why-noventra .why-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.why-noventra .why-box {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, box-shadow;
}
.why-noventra .why-box:hover {
  transform: translateY(-8px);
  box-shadow: 0px 10px 30px rgba(0,0,0,0.12);
}
.why-noventra .why-box .why-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-green);
  margin-bottom: 10px;
}

/* ======================================
   CONTACT
====================================== */
.contact-section {
  background-color: #f7f9fc;
  padding: 60px 0;
}
.divider {
  text-align: center;
  margin-bottom: 30px;
}
.divider .outer-line {
  display: inline-block;
  width: 80px;
  height: 2px;
  background: #ccc;
  margin: 0 10px;
  vertical-align: middle;
}
.divider h2 {
  font-size: 1.8rem;
  font-weight: 600;
  display: inline-block;
}
/* Contact Section */
.contact {
  background: #efefef;
  padding-bottom: 80px;
}

/* Map */
.info-map iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Info Boxes */
.info-map-boxes {
  margin-top: -80px;
  position: relative;
  z-index: 2;
}

.info-map-boxes-item {
  background: #fff;
  padding: 30px 25px;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.info-map-boxes-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Icons */
.info-map-boxes-item i {
  font-size: 50px;
  color: #006400;
  margin-bottom: 15px;
  display: block;
}

/* Headings */
.info-map-boxes-item h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #006400;
  text-transform: uppercase;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

/* Text */
.info-map-boxes-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.info-map-boxes-item a {
  color: #006400;
  font-weight: 600;
  text-decoration: none;
}

.info-map-boxes-item a:hover {
  text-decoration: underline;
}

/* Smooth form fields */
form .form-control {
  border-radius: 6px;
  padding: 12px 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
form .form-control:focus {
  border-color: var(--brand-green-alt);
  box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.25);
}
form .form-control:focus-visible {
  outline: 2px solid var(--brand-green-alt);
}
/* Submit button */
form .btn-submit {
  background: var(--brand-green-alt);
  border: none;
  color: #fff;
  padding: 12px 25px;
  border-radius: 6px;
  transition: background 0.3s ease;
}
form .btn-submit:hover {
  background: var(--brand-green-alt-dark);
}

/* ======================================
   FOOTER
====================================== */
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: #bbb;
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--brand-green-alt); }

/* ======================================
   BACK TO TOP BUTTON
====================================== */
#back-top-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#back-top-wrapper.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-green-alt);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}
.back-to-top-btn:hover {
  background: var(--brand-green-alt-dark);
  transform: translateY(-5px);
}
/* Brand tagline strip */
.brand-tagline {
  background: #e8f5e8; /* deep green for consistency */
  color: #029f02;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.brand-tagline i {
  margin-right: 10px;
  color: #8BC34A; /* lighter green accent */
  font-size: 16px;
}
/* Active nav link styling */
.navbar .nav-link.active,
.navbar .nav-item.show .nav-link,   /* when dropdown is open */
.navbar .dropdown-menu .dropdown-item.active {
  color: var(--brand-green-alt) !important;
  font-weight: 600;
}

/* Optional: underline or bottom border for extra clarity */
.navbar .nav-link.active {
  border-bottom: 2px solid var(--brand-green-alt);
}
.footer-links a.active {
  color: var(--brand-green);
  font-weight: 600;
}
.form-message {
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 6px;
  display: inline-block;
  transition: opacity 0.4s ease;
}

.form-message.success {
  background: #e6f9ed;
  color: #1a7f3d;
  border: 1px solid #1a7f3d;
}

.form-message.error {
  background: #fdeaea;
  color: #a94442;
  border: 1px solid #a94442;
}
