/* ==================
   MAIN CARDS SECTION
   ================== */
.card-custom {
  background: var(--surface-gray-100);
  border-radius: 20px;
  border: 2px solid transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1);
}

.card-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #5fa00a 0%, #003c30 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-custom:hover {
  transform: translateY(-12px);
  border-color: rgba(95, 160, 10, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(95, 160, 10, 0.1);
}

.card-custom:hover::before {
  transform: scaleX(1);
}

.icon-circle {
  width: 85px;
  height: 85px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 100%);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.icon-circle::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5fa00a 0%, #003c30 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.icon-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #003c30 0%, #5fa00a 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-custom:hover .icon-circle {
  transform: translateY(-8px) scale(1.15) rotate(-5deg);
}

.card-custom:hover .icon-circle::before,
.card-custom:hover .icon-circle::after {
  opacity: 1;
}

.icon-circle img {
  position: relative;
  z-index: 1;
  transition: filter 0.4s ease;
}

.card-custom:hover .icon-circle img {
  filter: brightness(0) invert(1);
}

/* ==================
   ADDITIONAL SERVICES SECTION
   ================== */
.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  border: 2px solid #e9ecef;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #5fa00a 0%, #003c30 100%);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 160, 10, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  font-size: 60px;
  color: var(--color-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.service-card:hover .service-icon {
  color: #5fa00a;
  transform: scale(1.1) rotate(-5deg);
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  text-align: center;
  line-height: 1.3;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  text-align: center;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.service-card:hover .service-detail,
.service-card.active .service-detail {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.8rem;
}

/* Hard-disable AOS on this page to prevent blank content if JS fails */
[data-aos],
.aos-init,
.aos-animate {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* CTA styles moved to index.css (homepage shared). Old .services-cta removed. */

/* ==================
   BUTTON STYLING
   ================== */
.card-custom .btn {
  border-radius: 50px !important;
  padding: 0.65rem 1.8rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px;
  transition: all 0.3s ease !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(95, 160, 10, 0.2);
}

.card-custom .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(95, 160, 10, 0.3);
}

.card-custom .d-grid {
  margin-top: 1.5rem;
}

.card-custom .d-grid .btn {
  margin: 0.3rem;
}

/* ==================
   RESPONSIVE DESIGN
   ================== */

/* Large Desktops (1200px+) */
@media (max-width: 1199px) {
  .card-custom {
    padding: 2rem 1.5rem;
  }
}

/* Tablets (992px - 1199px) */
@media (max-width: 991px) {
  .icon-circle {
    width: 75px;
    height: 75px;
  }

  .service-icon {
    font-size: 50px;
  }
}

/* Mobile Landscape & Small Tablets (768px - 991px) */
@media (max-width: 767px) {
  .icon-circle {
    width: 70px;
    height: 70px;
  }

  .icon-circle img {
    width: 45px;
    height: 45px;
  }

  .service-icon {
    font-size: 45px;
  }

  .service-title {
    font-size: 1.05rem;
    min-height: auto;
  }
}

/* Mobile Portrait (576px - 767px) */
@media (max-width: 576px) {
  .card-custom {
    padding: 1.75rem 1.5rem;
  }

  .icon-circle {
    width: 65px;
    height: 65px;
    margin-bottom: 1.2rem;
  }

  .icon-circle img {
    width: 40px;
    height: 40px;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-icon {
    font-size: 40px;
  }

  .service-title {
    font-size: 1rem;
  }

  .service-detail {
    font-size: 0.9rem;
  }

  .card-custom .btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .icon-circle {
    width: 60px;
    height: 60px;
  }

  .card-custom {
    padding: 1.5rem 1.25rem;
  }

  .service-icon {
    font-size: 35px;
  }
}

/* ==================
   UTILITY CLASSES
   ================== */
html {
  scroll-behavior: smooth;
}

/* ==================
   HERO (match Tools & About)
   ================== */
.services-hero {
  background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 100%);
  padding: 80px 0 60px 0;
  margin-top: 0 !important;
  position: relative;
  overflow: hidden;
  animation: fadeInDown 0.8s cubic-bezier(0.4,0,0.2,1);
  min-height: 500px;
  display: flex;
  align-items: center;
}

.services-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 60, 48, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.services-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(95, 160, 10, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(0, 60, 48, 0.95),
    rgba(0, 60, 48, 0.85)
  );
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 60, 48, 0.2);
}
.services-hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", Times, serif;
}
.hero-highlight {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-hover)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #666;
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto 24px;
}
.hero-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-hero-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 60, 48, 0.3);
}
.btn-hero-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-on-primary);
  transform: translateY(-2px);
}
.btn-hero-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-hero-secondary:hover {
  background: var(--color-secondary-hover);
  color: #fff;
  transform: translateY(-2px);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}
.stat-item i {
  font-size: 1.75rem;
  /* Color set by .stat-theme for theme icons */
}
/* Theme color for stat icons in hero */
.stat-theme {
  color: var(--color-primary) !important;
}
.stat-number {
  font-weight: 800;
  color: var(--color-primary);
}
.stat-label {
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 576px) {
  .services-hero-title {
    font-size: 1.75rem;
  }
}

/* Modern Animations for Hero and Cards */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-32px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.animate-fadeInUp {
  animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1);
}
.animate-fadeInDown {
  animation: fadeInDown 0.8s cubic-bezier(0.4,0,0.2,1);
}


/* ==================
   Unified Section Header Styling
   ================== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 64%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-primary-hover)
  );
  transform: translateX(-50%);
  border-radius: 4px;
}
.section-header p,
.section-header p.lead {
  font-size: 1.05rem;
  color: #555;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.7;
}
@media (max-width: 767px) {
  .section-header h2 {
    font-size: 1.8rem;
  }
}
@media (max-width: 576px) {
  .section-header h2 {
    font-size: 1.6rem;
  }
}

/* (Pruned) Removed unused .solution-card styles & animations for leaner CSS */

/* ==================
   ADDITIONAL SERVICES SECTION
   ================== */
.additional-services-section {
  padding: 100px 0;
  background: #f8faf9;
  border-top: 1px solid #e9ecef;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  height: 100%;
  border: 2px solid #e9ecef;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #5fa00a 0%, #003c30 100%);
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(95, 160, 10, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 100%);
  border: 2px solid #e9ecef;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon-wrapper i {
  font-size: 32px;
  color: var(--color-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon-wrapper {
  background: linear-gradient(135deg, #003c30 0%, #5fa00a 100%);
  border-color: #5fa00a;
  transform: rotate(10deg) scale(1.1);
}

.service-card:hover .service-icon-wrapper i {
  color: #ffffff;
  transform: scale(1.15);
}

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  text-align: center;
  line-height: 1.3;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* ==================
   CTA SECTION
   ================== */
.services-cta-section {
  padding: 100px 0;
  background: var(--color-on-primary);
  border-top: 1px solid #e9ecef;
}

.cta-card {
  background: var(--color-on-primary);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 60px rgba(0, 60, 48, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(95, 160, 10, 0.15) 0%,
    transparent 70%
  );
  top: -250px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.cta-description {
  font-size: 1.1rem;
  color: var(--color-primary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-features {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-weight: 600;
}

.feature-item i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/* ==================
   RESPONSIVE DESIGN
   ================== */

/* Large Desktops (1200px+) */
@media (max-width: 1199px) {
  .services-hero h1 {
    font-size: 2.8rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .solution-card {
    padding: 2rem 1.5rem;
  }
}

/* Tablets (992px - 1199px) */
@media (max-width: 991px) {
  .services-hero {
    padding: 70px 0 50px;
    min-height: 450px;
  }

  .services-hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .main-services-section,
  .additional-services-section,
  .services-cta-section {
    padding: 80px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .solution-card h3 {
    font-size: 1.35rem;
  }

  .card-description {
    min-height: auto;
  }

  .cta-card {
    padding: 3rem 2.5rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-buttons {
    margin-top: 2rem;
  }
}

/* Mobile Landscape & Small Tablets (768px - 991px) */
@media (max-width: 767px) {
  .services-hero {
    padding: 60px 0 40px;
    min-height: 400px;
  }

  .services-hero h1 {
    font-size: 2.2rem;
  }

  .hero-badge {
    font-size: 0.9rem;
    padding: 8px 20px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .main-services-section,
  .additional-services-section,
  .services-cta-section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .solution-card {
    padding: 2rem;
  }

  .solution-icon {
    width: 75px;
    height: 75px;
  }

  .solution-icon img {
    width: 45px;
    height: 45px;
  }

  .solution-card h3 {
    font-size: 1.25rem;
  }

  .solution-actions {
    flex-direction: row;
  }

  .btn-solution {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .service-card {
    padding: 1.75rem 1.25rem;
  }

  .service-icon-wrapper {
    width: 65px;
    height: 65px;
  }

  .service-icon-wrapper i {
    font-size: 28px;
  }

  .service-card h4 {
    font-size: 1.05rem;
    min-height: auto;
  }

  .cta-card {
    padding: 2.5rem 2rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-features {
    gap: 1.5rem;
  }
}

/* Mobile Portrait (576px - 767px) */
@media (max-width: 576px) {
  .services-hero {
    padding: 60px 0 40px;
  }

  .services-hero h1 {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .main-services-section,
  .additional-services-section,
  .services-cta-section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .solution-card {
    padding: 1.75rem 1.5rem;
  }

  .solution-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
  }

  .solution-icon img {
    width: 40px;
    height: 40px;
  }

  .solution-card h3 {
    font-size: 1.2rem;
  }

  .card-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .solution-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-solution {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .service-icon-wrapper i {
    font-size: 26px;
  }

  .service-card h4 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .cta-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .cta-features {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons {
    margin-top: 1.5rem;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .services-hero h1 {
    font-size: 1.75rem;
  }

  .hero-badge {
    font-size: 0.85rem;
    padding: 7px 16px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .solution-card {
    padding: 1.5rem 1.25rem;
  }

  .solution-icon {
    width: 65px;
    height: 65px;
  }

  .solution-card h3 {
    font-size: 1.15rem;
  }

  .cta-title {
    font-size: 1.35rem;
  }

  .feature-item {
    font-size: 0.9rem;
  }
}
