/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  /* Color Palette */
  --color-primary: #055346;      /* Deep forest green/teal */
  --color-primary-hover: #0c4839;
  --color-accent: #F6B69E;       /* Terracotta/coral for social background */
  --color-accent-hover: #d77e5d;
  --color-icon: #055346;         /* Dark brown/charcoal for social icons */
  --color-text-dark: #111827;    /* Slate black for names/titles */
  --color-text-gray: #333333;    /* Cool gray for descriptions */
  --color-text-light: #333333;   /* Muted gray for subtitles */
  --color-bg-page: #fff;      /* Off-white background */
  --color-bg-card: #fbfffd;      /* Pure white for card body */
  --color-border: #e2e8f0;       /* Very light gray for card outline */

  /* Fonts */
  --font-headers: "Saira", sans-serif;
  --font-body: "Poppins", sans-serif;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;

  /* Shadows */
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   SERVICES GRID & SECTIONS
   ========================================== */
.services-list-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 80px;
}

.service-section {
  display: flex;
  align-items: center;
  background-color: #f4f8f6; /* Soft light-green tint backdrop */
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 60px;
  gap: 60px;
  transition: var(--transition-smooth);
}

/* Alternating Rows (Even rows show image on left) */
.service-section:nth-child(even) {
  flex-direction: row-reverse;
}

.service-content {
  flex: 1.1;
  display: flex;
  flex-direction: column;
}

.service-title {
  font-family: var(--font-headers);
  font-size: 38px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.title-underline {
  width: 45px;
  height: 3px;
  background-color: var(--color-primary);
  margin-bottom: 24px;
  border-radius: 2px;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-gray);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Custom Check Icons for Service list */
.service-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 32px;
}

.service-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23055346'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Service Button with sliding arrow icon */
.service-btn {
  align-self: flex-start;
  background-color: var(--color-primary);
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.service-btn:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(5, 83, 70, 0.25);
  color: #ffffff !important;
}

.service-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Service Image Box */
.service-image-container {
  flex: 0.9;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

/* Service Card Hover Actions */
.service-section:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(5, 83, 70, 0.12);
}

.service-section:hover .service-image-container img {
  transform: scale(1.03);
}

/* Responsive Queries for Services */
@media (max-width: 1024px) {
  .service-section {
    padding: 40px;
    gap: 40px;
  }
  .service-title {
    font-size: 32px;
  }
  .service-image-container {
    height: 340px;
  }
}

@media (max-width: 768px) {
  .service-section,
  .service-section:nth-child(even) {
    flex-direction: column;
    padding: 30px;
    gap: 30px;
  }
  .service-image-container {
    width: 100%;
    height: 280px;
  }
  .service-title {
    font-size: 28px;
  }
}
