/* ============================================================
   Services Page — CSS
   ============================================================ */

/* ── Services Hero ───────────────────────────────────────── */
.services-hero {
  background: linear-gradient(135deg, #001122 0%, #001933 50%, #003366 100%);
  color: #fff;
  text-align: center;
  padding: calc(6rem + var(--navbar-height)) 2rem 5rem;
  position: relative;
  overflow: hidden;
}

.services-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(0, 102, 204, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.services-hero > .container {
  position: relative;
  z-index: 1;
}

.services-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.services-hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.88;
  line-height: 1.7;
}


/* ── Services Section ────────────────────────────────────── */
.services-section {
  background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
  padding: 5rem 2rem;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Grid Layout */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Service Card */
.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 32, 80, 0.07),
              0 1px 4px rgba(0, 32, 80, 0.05);
  border: 1px solid rgba(0, 64, 128, 0.06);
  padding: 2.5rem;
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(50% - 2rem);
  width: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 56px rgba(0, 32, 80, 0.14),
              0 6px 16px rgba(0, 32, 80, 0.08);
}

.service-card p {
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
  display: block;
  line-height: 1.8;
  color: #3a3a3a;
  margin-bottom: 1.5rem;
  font-size: 0.97rem;
}

.service-card h3 {
  color: #003366;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.service-card h3::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, #004080, #0066cc);
  border-radius: 2px;
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}

.service-card h4 {
  color: #0066cc;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
}

/* Card button */
.service-card .btn {
  display: inline-block;
  background: linear-gradient(135deg, #003366, #004080);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 64, 128, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  align-self: center;
  margin-top: auto;
}

.service-card .btn:hover {
  background: linear-gradient(135deg, #004080, #0066cc);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 64, 128, 0.3);
}

/* Free Consultation Card */
.free-consultation-card {
  flex: 1 1 100%;
  max-width: 600px;
  margin: 0 auto;
}


/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #001122 0%, #001933 60%, #003366 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 102, 204, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.88;
  font-size: 1.05rem;
  max-width: 100%;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #0052a3, #0066cc);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-btn:hover {
  background: linear-gradient(135deg, #004080, #0052a3);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.5);
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .services-hero {
    padding: calc(4rem + var(--navbar-height)) 1.5rem 3rem;
  }

  .services-section {
    padding: 4rem 1.5rem;
  }

  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-height: auto;
  }

  .free-consultation-card {
    max-width: 100%;
  }

  .service-card .btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
  }

  .cta-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .cta-section {
    padding: 4rem 1.5rem;
  }
}

.inline-contact-link {
  color: #3d74b8;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-weight: 600;
  transition: color 0.2s ease;
}

.inline-contact-link:hover {
  color: #1385eb;
}

@media (max-width: 480px) {
  .services-section {
    padding: 3rem 0.5rem;
  }

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