/* Reusable Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(14, 95, 59, 0.2);
}

.btn-primary:hover {
  background: var(--dark-green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 95, 59, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-outline:hover {
  background: var(--primary-green);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

/* Floating Buttons */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.btn-float {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.btn-float:hover {
  transform: scale(1.1);
  color: var(--white);
}

.btn-whatsapp {
  background: #25D366;
}

.btn-whatsapp:hover {
  background: #128C7E;
}

.btn-call-float {
  background: var(--primary-green);
}

.btn-call-float:hover {
  background: var(--dark-green);
}

/* Cards */
.card-base {
  background: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(14, 95, 59, 0.05);
}

.card-base:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(14, 95, 59, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

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

.service-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.testimonial-card {
  background: var(--bg-alt);
  padding: 35px;
  border-radius: 24px;
}

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

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-green);
  font-size: 32px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary-green);
  color: var(--white);
  transform: scale(1.1);
}

.process-card {
  position: relative;
  padding: 40px 30px;
  text-align: center;
  z-index: 1;
}

.process-step-num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--green-grad-1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  border: 4px solid var(--white);
}

/* Header Navbar */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--dark-green);
}

.logo img {
  height: 75px;
  transition: var(--transition);
}

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

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-dark);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-green);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--dark-green);
  cursor: pointer;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  min-width: 500px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  padding: 15px 0;
  border: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 25px;
  color: var(--text-dark);
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background: var(--bg-alt);
  color: var(--primary-green);
  padding-left: 30px;
}

/* Slide-out Sub-dropdown Menu Styles */
.dropdown-menu li {
  position: relative;
}

.sub-dropdown-menu {
  position: absolute;
  top: -15px;
  left: 100%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  min-width: 260px;
  max-height: 400px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(15px);
  transition: all 0.3s ease;
  padding: 10px 0;
  border: 1px solid rgba(8, 61, 40, 0.05);
  margin: 0;
  z-index: 100;
  display: block;
}

.dropdown-menu li.has-submenu:hover > .sub-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.sub-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.sub-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.02);
  border-radius: 4px;
}
.sub-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(39, 174, 96, 0.2);
  border-radius: 4px;
}
.sub-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(39, 174, 96, 0.4);
}


/* Footer */
footer.main-footer {
  background: var(--dark-green);
  color: var(--white);
  padding: 80px 0 0;
  margin-bottom: 0 !important;
}

.footer-widget {
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-logo img {
  height: 75px;
  filter: brightness(0) invert(1);
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
}

.footer-title {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--accent-green);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-green);
  transform: translateX(5px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  color: var(--accent-green);
  font-size: 20px;
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
  margin-top: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* Premium Transparent Header & Overlay System */
.transparent-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.transparent-header .logo {
  color: #ffffff !important;
}

.transparent-header .logo img {
  filter: brightness(0) invert(1) !important;
}

.transparent-header .logo i {
  color: #ffffff !important;
}

.transparent-header .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
}

.transparent-header .nav-link::after {
  background: #ffffff !important;
}

.transparent-header .nav-link:hover,
.transparent-header .nav-link.active {
  color: #ffffff !important;
}

.transparent-header .mobile-menu-btn {
  color: #ffffff !important;
}

/* Scrolled Active Glassmorphism State */
.transparent-header.scrolled {
  background: rgba(8, 61, 40, 0.92) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 10px 0 !important;
}

.transparent-header.scrolled .logo,
.transparent-header.scrolled .logo i,
.transparent-header.scrolled .nav-link,
.transparent-header.scrolled .mobile-menu-btn {
  color: #ffffff !important;
}

.transparent-header.scrolled .logo img {
  filter: brightness(0) invert(1) !important;
  height: 65px;
}

.transparent-header.scrolled .nav-link::after {
  background: var(--accent-green) !important;
}

.transparent-header.scrolled .nav-link:hover,
.transparent-header.scrolled .nav-link.active {
  color: var(--accent-green) !important;
}
