/* ===== Basic styles for buttons ===== */
.cta-button-purple, 
.cta-button-green, 
.cta-button-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  border-radius: 40px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 20px;
  font-family: 'Poppins', sans-serif;
}

.cta-button-purple {
  background-color: #9c6bff;
  color: white;
}

.cta-button-purple:hover {
  background-color: #A3D069;
  color: white;
  text-decoration: none;
}

.cta-button-green {
  background-color: #A3D069;
  color: #333;
}

.cta-button-green:hover {
  background-color: #9c6bff;
  color: white;  
  text-decoration: none;
}

.cta-button-white {
  background-color: #fff;
  color: #333;
}

.cta-button-white:hover {
  background-color: #A3D069;
  color: white;
  text-decoration: none;
}

/* ===== Hero section ===== */
.hero-section {
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: visible;
  font-family: 'Poppins', sans-serif;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  flex-wrap: wrap;
  position: relative;
}

.hero-left {
  flex: 1;
  min-width: 300px;
  color: #fff;
}

.hero-left h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 15px;
  margin-right: 15px;
  line-height: 130%;
  color: white;
}

.hero-left p {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 25px;
  color: #A3D069;
}

.hero-right {
  flex: 1;
  min-width: 300px;
  background: #f7f4fb;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  top: 50px;
}

.hero-right h3 {
  color: #333;
  font-size: 24px;
  line-height: 130%;
  font-weight: 600;
  text-align: center;
  padding-bottom: 25px;
}

/* ===== CF7 Form Grid Layout ===== */
.quote-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  text-align: center;
}

.quote-form .col-md-6 {
  width: calc(50% - 8px);
  margin: 0;
}

.quote-form .col-lg-12 {
  width: 100%;
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: #9c6bff;
}

.quote-form input[type="submit"] {
  background-color: #A3D069;
  color: #333;
  font-weight: 600;
  padding: 15px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.3s;
  width: 100%;
}

.quote-form input[type="submit"]:hover {
  background-color: #9c6bff;
  color: white;
}

@media (max-width: 768px) {
  .quote-form .col-md-6 {
    width: 100%;
  }
}
/* ===== Areas we serve section ===== */
.areas-we-serve {
  background-color: #f8f4fc;
  padding: 60px 0;
}

.areas-we-serve h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 130%;
  color: #333;
  margin-bottom: 24px;
}

.areas-we-serve ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.areas-we-serve li {
  margin-bottom: 12px;
}

.areas-we-serve a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 150%;
  transition: all 0.2s ease;
  padding: 4px 0;
}

.areas-we-serve a:hover {
  text-decoration: underline;
  color: #6c4da1;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .areas-we-serve {
    padding: 40px 0;
  }
  
  .areas-we-serve h2 {
    text-align: center;
  }
  
  .areas-we-serve .row > .col-md-8 {
    margin-top: 16px;
  }
  
  /* Force 2 columns layout on mobile */
  .areas-we-serve .col-md-8 .row > div {
    width: 50%;
    flex: 0 0 50%;
  }
}

@media (max-width: 575.98px) {
  .areas-we-serve img {
    width: 20px;
  }
}

/* ===== Image with text section ===== */
.image-with-text {
  padding: 100px;
  display: flex;
  justify-content: center;
}

.section-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
  align-items: center;
}

.section-image {
  flex: 1 1 50%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  box-shadow: 10px 10px 0 #A3D069;
  overflow: hidden;
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.section-content {
  flex: 1 1 50%;
  max-width: 600px;
  margin-left: 50px;
}

.section-content h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.section-content .section-text {
  font-size: 16px;
  color: #777;
  margin-bottom: 30px;
  line-height: 1.6;
}

.section-container.reverse {
  flex-direction: row-reverse;
}

/* ===== Services hover section ===== */
.services-hover-v2 {
  background-color: #A3D069;
  padding: 80px 0;
}

.services-hover-v2 h2 {
  font-size: 36px;
  color: #333;
  font-weight: 600;
  margin-bottom: 20px;
}

.services-hover-box-vertical {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 300px;
  margin-bottom: 30px;
}

.services-hover-link {
  display: block;
  position: relative;
  background-size: cover;
  background-position: center;
  height: 100%;
  text-decoration: none;
}

.services-hover-overlay {
  background-color: rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start; 
  text-align: left; 
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-hover-title {
  font-size: 22px;
  margin: 0 0 15px 0; 
  color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  width: 100%;
  padding-right: 20px; 
}

.services-hover-link-text {
  margin-top: 0; 
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  position: absolute;
  bottom: 30px;
  left: 30px; 
  right: auto; 
  text-align: left; 
}

.services-hover-box-vertical:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.services-hover-link:hover .services-hover-overlay {
  background-color: rgba(149, 105, 208, 0.9); 
  justify-content: flex-start; 
  padding-top: 40px; 
}

.services-hover-link:hover .services-hover-title {
  transform: translateY(0); 
  margin-top: 0;
}

.services-hover-link:hover .services-hover-link-text {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .services-hover-box-vertical {
    height: 250px;
  }
  
  .services-hover-overlay {
    padding: 20px;
  }
  
  .services-hover-link-text {
    left: 20px;
    bottom: 20px;
  }
}

@media (max-width: 768px) {
  .services-hover-box-vertical {
    height: 200px;
    margin-bottom: 15px;
  }
  
  .services-hover-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .services-hover-overlay {
    padding: 15px;
  }
  
  .services-hover-link:hover .services-hover-overlay {
    padding-top: 30px;
  }
  
  .services-hover-link-text {
    left: 15px;
    bottom: 15px;
    font-size: 12px;
  }
}

/* ===== Icons section ===== */
.icons-section-2 {
  padding: 100px 0;
}

.icon-box {
  border: 2px solid #A3D069;
  border-radius: 24px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.icon-img {
  max-width: 100px;
  margin-bottom: 10px;
}

.icon-title {
  font-size: 20px;
  color: #333;
  margin: 0;
  font-weight: 600;
}

/* ===== Banner section ===== */
.banner-section {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 150px 0;
  color: #fff;
}

.banner-overlay {
  background: linear-gradient(rgba(149, 105, 208, 0.3), rgba(149, 105, 208, 0.3)),
              linear-gradient(rgba(51, 51, 51, 0.7), rgba(51, 51, 51, 0.7));
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.banner-section .container {
  position: relative;
  padding-top: 80px;
}

.banner-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 30px;
  color: white;
}

/* ===== Badge section ===== */
.custom-badge-section {
  background-color: #A3D069;
  border-radius: 20px;
  padding: 50px 30px;
  margin: 80px auto;
  max-width: 1200px;
}

.custom-badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.badge-image img {
  max-width: 300px;
  height: auto;
  display: block;
}

.badge-content {
  max-width: 600px;
}

.badge-content h3 {
  font-size: 36px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.badge-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* ===== Experts section ===== */
.experts-section {
  padding: 100px 0;
  background-color: #9b6bcc;
}

.experts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  justify-content: space-between;
}

.experts-content {
  flex: 1;
  min-width: 320px;
  color: #fff;
}

.experts-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #fff;
}

.experts-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #fff;
}

.phone-feature {
  background-color: #fff;
  border-radius: 50px;
  padding: 15px 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: #000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.phone-icon img {
  width: 20px;
  height: 20px;
}

.experts-features {
  flex: 1.5;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.feature-item {
  background-color: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.feature-icon img {
  width: 56px;
  height: 56px;
  margin-bottom: 15px;
  filter: brightness(0) saturate(100%) invert(66%) sepia(50%) saturate(300%) hue-rotate(30deg);
}

.feature-text h3 {
  font-size: 20px;
  color: #333;
  font-weight: 600;
  margin: 0;
}

/* ===== Quote Section ===== */
.quote-section {
  padding: 100px 0;
  background-color: #9569D0;
  color: #fff;
}

.quote-section h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.quote-section p {
  font-size: 16px;
  color: white;
  margin-bottom: 30px;
}

.form-wrapper {
  background-color: #f8f5fb;
  padding: 40px;
  border-radius: 20px;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 100px 0;
  background-color: #f9f9f9;
}

.faq-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.faq-header {
  flex: 0 0 25%;
  min-width: 250px;
}

.faq-header h2 {
  font-size: 42px;
  color: #333;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0;
}

.faq-content {
  flex: 0 0 calc(75% - 40px);
}

.faq-item {
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
  transition: all 0.4s ease;
}

.faq-item.active {
  border-bottom-color: #A3D069;
}

.faq-question {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  padding-right: 30px;
  cursor: pointer;
}

.faq-question:after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 24px;
  color: #A3D069;
  transition: transform 0.4s ease;
}

.faq-item.active .faq-question:after {
  content: '-';
  transform: rotate(180deg);
}

.faq-answer {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease,
              padding 0.4s ease;
  padding: 0 10px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-top: 10px;
  padding-bottom: 5px;
}

.hidden-schema {
  display: none !important;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1380px) {
  .section-content {
    margin-left: 0;
  }
}

@media (max-width: 992px) {
  .experts-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-right {
    top: 30px;
  }
  
  .image-with-text {
    padding: 100px 50px;
  }
  
  .faq-section {
    padding: 60px 0;
  }
  
  .faq-header, 
  .faq-content {
    flex: 0 0 100%;
  }
  
  .faq-header h2 {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  .experts-section {
    padding: 60px 20px;
  }

  .experts-container {
    flex-direction: column;
  }

  .experts-content h2 {
    font-size: 28px;
  }

  .experts-features {
    grid-template-columns: 1fr;
  }
  
  .custom-badge-container {
    flex-direction: column;
    text-align: center;
  }

  .badge-image img {
    margin: 0 auto;
  }
}
