:root {
  --primary: #0c375d;
  --primary-light: #37A2B5;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #fafbfe;
  --card-shadow: 0 20px 40px -12px rgba(0,0,0,0.08);
  --radius: 20px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

/* HEADINGS = LATO | CONTENT = INTER — CONSISTENT ACROSS SITE */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif !important;
  font-weight: 900 !important;
  line-height: 1.2;
}

h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
h2 { font-size: clamp(2.2rem, 6vw, 3rem); color: var(--primary); text-align:center; }
h3 { font-size: clamp(1.8rem, 5vw, 2.4rem); color: var(--primary); line-height: 1.15; margin-bottom: 1rem; }

p, .section-title p, .card-content p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.8vw, 1.1rem);
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* HERO */
.hero {
  background: linear-gradient(rgba(30,60,90,0.9), rgba(20,40,70,0.94)),
              url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80') center/cover fixed;
  color: #fff;
  text-align: center;
  padding: 160px 20px 110px;
}
.hero p { max-width: 840px; margin: 20px auto 0; font-size: clamp(1.1rem, 3vw, 1.25rem); opacity: 0.95; }

/* SERVICES */
.services { padding: 40px 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 24px; }
.section-title p { max-width: 720px; margin: 8px auto 0; color: var(--text-light); }

.cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: stretch; /* ensure consistent widths */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.service-card {
  width: 100%;
  max-width: 1000px;
  min-height: 420px; /* desktop visual height */
  height: auto;
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  margin: 0 auto;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.14);
}

.service-card.reverse { flex-direction: row-reverse; }

.card-img {
  width: 50%;
  flex: 0 0 50%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  transition: transform 0.6s ease;
}

/* ensure inline <img> inside .card-img fills the area and keeps aspect */
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card:hover .card-img {
  transform: scale(1.04);
}

.card-content {
  width: 50%;
  padding: 9% 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-content p {
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  line-height: 1.8;
  color: #4a5568;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .service-card, .service-card.reverse {
    flex-direction: column !important;
    height: auto;
    min-height: auto;
    width: 100%;
  }
  .services { padding: 24px 0; }
  .card-img {
    width: 100%;
    height: 260px;
    flex: 0 0 auto;
    background-size: cover;
  }
  .card-content {
    width: 100%;
    padding: 10% 8%;
  }
  .cards-wrapper { gap: 40px; }
}

@media (max-width: 500px) {
  .card-img { height: 240px; }
  .card-content { padding: 12% 7%; }
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(74, 222, 128, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.24), transparent 36%),
    linear-gradient(135deg, #0b1f33 0%, #123554 52%, #0f5f77 100%);
  color: #f8fbff;
  text-align: center;
  padding: 88px 20px;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.cta::before {
  width: 320px;
  height: 320px;
  top: -160px;
  left: -90px;
  background: rgba(255, 255, 255, 0.06);
  filter: blur(8px);
}

.cta::after {
  width: 260px;
  height: 260px;
  right: -60px;
  bottom: -130px;
  background: rgba(56, 189, 248, 0.14);
  filter: blur(10px);
}

.cta .container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  padding: 48px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  box-shadow: 0 24px 70px rgba(4, 15, 28, 0.28);
  backdrop-filter: blur(8px);
}

.cta h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.cta h2::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ade80, #38bdf8);
}

.cta p {
  max-width: 620px;
  margin: 18px auto 34px;
  color: rgba(240, 248, 255, 0.88);
  font-size: clamp(1rem, 2.3vw, 1.14rem);
}

.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffffff, #dff6ff);
  color: #0c375d;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 30px rgba(5, 18, 33, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-light::after {
  content: "->";
  font-size: 0.95rem;
}

.btn-light:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 36px rgba(5, 18, 33, 0.28);
  background: linear-gradient(135deg, #ffffff, #c9f2ff);
}

@media (max-width: 700px) {
  .cta {
    padding: 64px 16px;
  }

  .cta .container {
    padding: 36px 22px;
    border-radius: 22px;
  }

  .cta p {
    margin-bottom: 28px;
  }
}
