/* ================= SERVICES PAGE ================= */
.services-page {
  --primary: #f46f5d;
  --secondary: #f46f5d;
  --text: #0a1334;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666;
  --white: #fff;
  --transition: all 0.3s ease;
  --shadow: 0 4px 12px rgba(58, 13, 13, 0.1);
  --border-radius: 8px;
  --btn-cta-bg: var(--primary);
  --btn-cta-hover: #e05a48;
}

/* Footer */
.footer {
  background-color: #fff;
  padding: 3rem 0;
  border-top: 1px solid var(--medium-gray);
  text-align: center;
}

.footer__cta {
  margin-bottom: 2rem;
}

.footer__cta .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--btn-cta-bg);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(244, 111, 93, 0.3);
}

.footer__cta .btn-cta:hover {
  background-color: var(--btn-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 111, 93, 0.4);
}

.footer__copyright {
  color: var(--dark-gray);
  font-size: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--medium-gray);
}

/* Page Header */
.page-header {
  background: #f46f5d; /* Solid color instead of gradient */
  color: #ffffff;
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative ;
  margin: 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.page-header h1 {
  
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
  position: relative;
  z-index: 9;
  
}

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

/* Services Section */
.services-section {
  position: relative;
  padding: 6rem 0;
  background: #f8f9ff; /* Light blue background */
  overflow: hidden;
  color: var(--text);
}

/* Removed the overlay for a cleaner look */

.services-section > .container {
  position: relative;
  z-index: 2;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: center/cover;
  opacity: 0.1;
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow:0 2px 0 #131930;
  
}

.page-header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  min-height: 450px;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-card__media {
  height: 250px;
  overflow: hidden;
  position: relative;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain cover ;
  
  transition: transform 0.5s ease;
  display: block;
  position: relative;
  mix-blend-mode: multiply;
  padding: 0.5rem;
  box-sizing: border-box;
}

.service-card:hover .service-card__media img {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.service-card__content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.service-card h3 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.3;
  font-weight: 600;
}

.service-card p {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.service-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--medium-gray);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--text);
 padding: -2rem;
 
  color: var(--text);
  transition: all 0.3s ease;
}

.btn--outline:hover {
  background: var(--text);
  color: white;
  transform: translateY(-2px);
}

/* CTA Banner */
.cta-banner {
  background: var(--primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-primary {
  background: white; /* Changed from var(--secondary) */
  color: var(--text); /* Using the blue text color */
  padding: 0.875rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--primary); /* Added border to match the primary color */
}

.btn-primary:hover {
  background: var(--primary);
  color: white; /* White text on hover */
  transform: translateY(-2px);
}

/* Service Modal */
.svcmodal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
  overflow-y: auto;
}

.svcmodal.is-open {
  opacity: 1;
  visibility: visible;
}

.svcmodal__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: -1;
}

.svcmodal__dialog {
  background: white;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  display: flex;
  flex-direction: column;
}

.svcmodal.is-open .svcmodal__dialog {
  transform: translateY(0);
  opacity: 1;
}

.svcmodal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--dark-gray);
  cursor: pointer;
  z-index: 10;
  padding: 0.5rem;
  transition: all 0.2s ease;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.svcmodal__close:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg);
}

.svcmodal__media {
  position: relative;
  width: 500px;
  height: 250px;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.svcmodal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover contain ;
  object-position: contain ;
  transition: transform 0.5s ease;
}

.svcmodal__content {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.svcmodal__title {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  color: var(--primary);
  line-height: 1.3;
}

.svcmodal__lead {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.svcmodal__bullets {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.svcmodal__bullets li {
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.6;
}

.svcmodal__bullets li:before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -0.25rem;
}

.svcmodal__detail {
  background: #f9f9f9;
  border-left: 4px solid var(--primary);
  padding: 1.25rem;
  border-radius: 0 4px 4px 0;
  margin-top: 1.5rem;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  .svcmodal__dialog {
    flex-direction: row;
    max-height: 80vh;
  }
  
  .svcmodal__media {
    width: 50%;
    height: auto;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
  }
  
  .svcmodal__content {
    width: 55%;
    padding: 2.5rem;
  }
  
  .svcmodal__title {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 800px) {
  .svcmodal {
    padding: 0.5rem;
  }
  
  .svcmodal__dialog {
    width: 100%;
    max-height: 95vh;
  }
  
  .svcmodal__media {
    height: 200px;
    
  }
  
  
  .svcmodal__content {
    padding: 1.5rem;
  }
  
  .svcmodal__title {
    font-size: 1.5rem;
  }
  
  .svcmodal__lead {
    font-size: 1rem;
  }
}

.svcmodal__content {
  padding: 2.5rem;
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--medium-gray) transparent;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.svcmodal__content-inner {
  padding-right: 1rem;
}

.svcmodal__content::-webkit-scrollbar {
  width: 6px;
}

.svcmodal__content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.svcmodal__content::-webkit-scrollbar-thumb {
  background-color: var(--medium-gray);
  border-radius: 3px;
}

.svcmodal__content::-webkit-scrollbar-thumb:hover {
  background-color: var(--dark-gray);
}

.svcmodal__title {
  font-size: 2rem;
  margin: 0 0 1.25rem;
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.svcmodal__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.svcmodal__lead {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 2rem 0;
  line-height: 1.8;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
  font-weight: 400;
}

.svcmodal__bullets {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.svcmodal__bullets h4 {
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.svcmodal__bullets ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.svcmodal__bullets li {
  margin-bottom: 0.85rem;
  position: relative;
  padding-left: 2rem;
  line-height: 1.7;
  color: #444;
  font-size: 1.05rem;
}

.svcmodal__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--secondary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  background-color: var(--secondary);
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.svcmodal__detail {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border-radius: 8px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  background: #f9f9f9;
  border-left: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.svcmodal__detail::before {
  content: 'ℹ️';
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0.1;
  font-size: 4rem;
  line-height: 1;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .svcmodal__dialog {
    grid-template-columns: 1fr;
    max-width: 95%;
    max-height: 95vh;
  }
  
  .svcmodal__media {
    min-height: 250px;
    max-width: 250px;
  }
  
  .svcmodal__content {
    padding: 1.75rem 1.5rem;
    max-height: 60vh;
  }
  
  .svcmodal__title {
    font-size: 1.75rem;
  }
  
  .svcmodal__lead {
    font-size: 1.1rem;
    padding: 1.25rem;
  }
  
  .svcmodal__bullets li {
    font-size: 1rem;
    padding-left: 1.75rem;
  }
  
  .svcmodal__detail {
    padding: 1.5rem;
    font-size: 1rem;
  }
  
  .page-header h1 {
    font-size: 2.25rem;
  }
  
  .page-header p {
    font-size: 1.1rem;
  }
}

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

.service-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* Stagger animations */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }
.service-card:nth-child(9) { animation-delay: 0.9s; }
