/* style.css - main entry point */
/* Import sections */
@import url('navbar.css');
@import url('before-after.css');
@import url('feedback.css'); /* ← ADD THIS LINE */
@import url('solution.css');
@import url('why-us.css');
@import url('process.css');
@import url('faq.css');
@import url('contact-form.css');
@import url('testimonials.css');


/* Set box-sizing globally for predictable layout */
*,
*::before,
*::after {
  box-sizing: border-box; /* This is the fix for padding/border overflow issues */
}

/* Global styles (optional) */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #fff;
  /* NEW: Prevent horizontal scrolling/overflow */
  overflow-x: hidden; 
  /* NEW: Reset default body margin */
  margin: 0; 
  padding: 0;
}




/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #2E8B57;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.show {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

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

.scroll-to-top:hover {
  background: #26734d;
  transform: translateY(-2px);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 44px !important;  /* Use !important to override any other styles */
    height: 44px !important;
    bottom: 20px !important;
    right: 20px !important;
  }
  
  .scroll-to-top svg {
    width: 20px !important;
    height: 20px !important;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .scroll-to-top {
    width: 40px !important;
    height: 40px !important;
    bottom: 15px !important;
    right: 15px !important;
  }
  
  .scroll-to-top svg {
    width: 18px !important;
    height: 18px !important;
  }

  
}


/* TEMPORARY: Force button to be visible for debugging */
#scrollToTopBtn {
    display: flex !important;
    opacity: 1 !important;
    background: rgb(16, 141, 68) !important; /* Make it bright red so it's obvious */
    bottom: 30px !important;
    right: 30px !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 9999 !important;
}






/* =============================================
   COOKIES POPUP STYLES
   ============================================= */

/* Cookies Popup Overlay */
.cookies-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookies-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Cookies Popup Container */
.cookies-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 420px; /* Default for mobile/tablet */
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 24px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookies-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Close Button */
.cookies-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-size: 18px;
}

.cookies-close:hover {
  background: #e9ecef;
  color: #333;
  transform: rotate(90deg);
}

/* Cookies Content */
.cookies-content {
  text-align: center;
  padding-right: 8px; /* Space for close button */
}

.cookies-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: #2E8B57;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.cookies-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cookies-text {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-bottom: 24px;
}

.cookies-text a {
  color: #2E8B57;
  text-decoration: underline;
}

/* Cookies Buttons */
.cookies-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.cookies-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  max-width: 140px;
}

.cookies-btn.accept {
  background: #2E8B57;
  color: white;
}

.cookies-btn.accept:hover {
  background: #26734d;
  transform: translateY(-1px);
}

.cookies-btn.settings {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #e9ecef;
}

.cookies-btn.settings:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

/* Laptop/Desktop Styles - Wider Box */
@media (min-width: 1024px) {
  .cookies-popup {
    max-width: 520px; /* Wider for laptops */
    padding: 28px;
  }
  
  .cookies-content {
    padding-right: 12px;
  }
  
  .cookies-title {
    font-size: 22px;
  }
  
  .cookies-text {
    font-size: 15px;
    margin-bottom: 28px;
  }
  
  .cookies-buttons {
    gap: 16px;
  }
  
  .cookies-btn {
    padding: 14px 28px;
    max-width: 160px;
    font-size: 15px;
  }
}

/* Large Desktop Styles */
@media (min-width: 1440px) {
  .cookies-popup {
    max-width: 560px; /* Even wider for large screens */
  }
}

/* Tablet Styles */
@media (max-width: 1023px) and (min-width: 769px) {
  .cookies-popup {
    max-width: 480px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookies-popup {
    bottom: 20px;
    padding: 20px;
    max-width: 90%;
  }
  
  .cookies-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  
  .cookies-content {
    padding-right: 4px;
  }
  
  .cookies-title {
    font-size: 18px;
  }
  
  .cookies-text {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .cookies-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .cookies-btn {
    max-width: 100%;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .cookies-popup {
    bottom: 15px;
    padding: 16px;
    border-radius: 12px;
  }
  
  .cookies-close {
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  
  .cookies-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .cookies-title {
    font-size: 16px;
  }
  
  .cookies-text {
    font-size: 12px;
  }
}

/* Cookies Settings (Advanced) */
.cookies-settings {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  text-align: left;
}

.cookies-settings.active {
  display: block;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f8f9fa;
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-label {
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 500;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #2E8B57;
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Laptop settings adjustments */
@media (min-width: 1024px) {
  .cookies-settings {
    margin-top: 24px;
    padding-top: 24px;
  }
  
  .setting-item {
    padding: 14px 0;
  }
  
  .setting-label {
    font-size: 15px;
  }
}





/* --- SCROLL REVEAL BASE STYLES 

/* 1. Initial State: Hidden and slightly moved down 
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px); /* Start 30px below its final position 
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  /* Set a transition duration that works for all elements 
}

/* 2. Final State: Visible and in final position 
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

*/



/* --- Active Nav Link Styling (in your style.css) --- */

.nav-link.active-link {
    /* Example styles: change color, add an underline/border */
    color: var(--primary-color, #709395) !important; 
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color, #709395);
    padding-bottom: 5px; /* To prevent border from touching the text */
}

/* Optional: To make the text slightly stand out */
.nav-link:not(.active-link) {
    opacity: 0.7; 
    transition: opacity 0.3s ease;
}
