/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', 'Poppins', sans-serif; color: #0F2540; background: #fff; -webkit-font-smoothing: antialiased; }
::selection { background: #16B364; color: #fff; }

/* ── Brand colours ───────────────────────────────────────────────────────── */
:root {
  --navy: #0F2540;
  --navy-dark: #0A2440;
  --teal: #16B364;
  --teal-mid: #0E8C6E;
  --teal-light: #E9F7F0;
  --teal-accent: #22D37D;
  --icon-grad-start: #0E8C7A;
  --icon-grad-end: #0B3D4A;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
#navbar { transition: box-shadow 0.3s ease; border-bottom: 1px solid #EEF1F4; }
#navbar.nav-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }

/* ── Hero gradient ───────────────────────────────────────────────────────── */
.hero-bg {
  background: linear-gradient(135deg, #0A2440 0%, #0E3358 55%, #0A2440 100%);
}

/* ── Stats bar ───────────────────────────────────────────────────────────── */
.stats-bg {
  background: linear-gradient(90deg, #0E8C6E 0%, #12A06B 100%);
}

/* ── Insurer section ─────────────────────────────────────────────────────── */
.insurer-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.insurer-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.375rem;
  padding: 0.5rem 1rem;
  border: 1px solid #DCE6EE;
  border-radius: 999px;
  background: #F7FAFC;
  color: #0F2540;
  font-size: 0.875rem;
  font-weight: 600;
}
.insurer-note {
  max-width: 26rem;
  color: #94A3B0;
  font-size: 0.84375rem;
  line-height: 1.6;
}
.insurer-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
}
.insurer-proof-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  background: #fff;
}
.insurer-proof-card.featured { grid-column: span 2; }
.insurer-proof-card img {
  display: block;
  width: 100%;
  height: 9.375rem;
  object-fit: cover;
  object-position: top;
}
.insurer-proof-card.featured img { height: 10.625rem; }
.insurer-proof-card figcaption {
  padding: 0.625rem 0.5rem 0;
  color: #5B6B7B;
  font-size: 0.84375rem;
  font-weight: 500;
}
@media (max-width: 640px) {
  .insurer-gallery { grid-template-columns: 1fr; }
  .insurer-proof-card.featured { grid-column: auto; }
  .insurer-proof-card img,
  .insurer-proof-card.featured img { height: 13rem; }
}

/* ── Service cards ───────────────────────────────────────────────────────── */
.service-card {
  background: #fff;
  border: 1px solid #EAEFF3;
  border-radius: 1.125rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(15,37,64,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15,37,64,.12);
}
.svc-icon {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--icon-grad-start), var(--icon-grad-end));
  color: #fff;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.svc-icon svg { width: 1.5rem; height: 1.5rem; }
.svc-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0F2540;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}
.svc-desc {
  font-size: 0.84375rem;
  color: #16B364;
  font-weight: 600;
  margin-bottom: 1.125rem;
  line-height: 1.5;
}
.svc-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6875rem;
}
.svc-benefits li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.90625rem; color: #42505E; line-height: 1.4; }
.check-icon { width: 1.0625rem; height: 1.0625rem; color: #16B364; flex-shrink: 0; margin-top: 0.125rem; }
.check-icon svg { width: 100%; height: 100%; }
.enquire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5625rem;
  padding: 0.75rem 1rem;
  border-radius: 0.6875rem;
  background: #16B364;
  color: #fff;
  font-size: 0.90625rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
  margin-top: auto;
}
.enquire-btn:hover { opacity: 0.88; }
.wa-icon { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.wa-icon svg { width: 100%; height: 100%; }

/* ── Why Choose Us ───────────────────────────────────────────────────────── */
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8125rem;
}
.why-icon {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 0.625rem;
  background: #E9F7F0;
  color: #0E8C6E;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-icon svg { width: 1.1875rem; height: 1.1875rem; }
.why-text {
  font-size: 0.96875rem;
  font-weight: 600;
  color: #27333F;
  line-height: 1.4;
  padding-top: 0.4375rem;
}

/* ── Process steps ───────────────────────────────────────────────────────── */
#process-steps {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  position: relative;
}
@media (min-width: 640px) { #process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { #process-steps { grid-template-columns: repeat(5, 1fr); } }

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.step-num {
  width: 3.625rem;
  height: 3.625rem;
  border-radius: 50%;
  background: linear-gradient(140deg, #13A06A, #0B5E54);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -8px rgba(11,94,84,0.7);
}
.step-connector {
  display: none;
  position: absolute;
  top: 1.8125rem;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #C9E9DD;
  z-index: 0;
}
@media (min-width: 1024px) { .step-connector { display: block; } }
.step-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.03125rem;
  font-weight: 600;
  color: #0F2540;
  margin-bottom: 0.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.step-desc { font-size: 0.84375rem; color: #6A7888; line-height: 1.5; }

/* ── Floating WhatsApp button ─────────────────────────────────────────────── */
#wa-float {
  position: fixed;
  bottom: 1.625rem;
  right: 1.625rem;
  z-index: 999;
  width: 3.625rem;
  height: 3.625rem;
  border-radius: 50%;
  background: #16B364;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 26px -8px rgba(22,179,100,0.8);
  animation: wa-pulse 2.5s infinite;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
#wa-float:hover { opacity: 0.88; transform: scale(1.06); }
#wa-float svg { width: 1.875rem; height: 1.875rem; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 26px -8px rgba(22,179,100,0.8); }
  50%       { box-shadow: 0 10px 32px -8px rgba(22,179,100,1), 0 0 0 10px rgba(22,179,100,0.08); }
}

/* ── Fade-in animation ────────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── CTA section gradient ─────────────────────────────────────────────────── */
.cta-bg {
  background: linear-gradient(135deg, #0A2440 0%, #0E3358 60%, #0A2440 100%);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer a { text-decoration: none; }
footer a:hover { color: #16B364; }

/* ── Utility: visually hidden ─────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Mobile polish */
@media (max-width: 640px) {
  html { scroll-padding-top: 4rem; }
  body { padding-bottom: 4.75rem; }

  #navbar .h-16 { height: 4rem; }
  #navbar .px-4 { padding-left: 1rem; padding-right: 1rem; }
  #lang-toggle { padding: 0.35rem 0.625rem; }

  #hero {
    min-height: auto !important;
    align-items: flex-start;
  }
  #hero .max-w-7xl {
    padding-top: 3.25rem !important;
    padding-bottom: 3.75rem !important;
  }
  #hero .grid {
    display: block !important;
  }
  #hero h1 {
    font-size: 2.42rem !important;
    line-height: 1.08 !important;
    margin-bottom: 1rem !important;
  }
  #hero p.text-lg {
    font-size: 1rem !important;
    line-height: 1.58 !important;
    margin-bottom: 1.35rem !important;
  }
  #hero .inline-flex.rounded-full {
    max-width: 100%;
    white-space: normal;
    align-items: flex-start;
    font-size: 0.8125rem !important;
    line-height: 1.3;
    margin-bottom: 1.25rem !important;
  }
  #hero .flex.flex-col {
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
  }
  #hero .flex.flex-col a {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.875rem 1rem !important;
  }

  .stats-bg { padding-top: 1.35rem !important; padding-bottom: 1.35rem !important; }
  .stats-bg .grid { gap: 1.125rem !important; }
  .stats-bg [data-i18n$="Val"] { font-size: 1.75rem !important; }
  .stats-bg [data-i18n$="Lbl"] { font-size: 0.8125rem !important; }

  section { scroll-margin-top: 4rem; }
  #insurers,
  #services,
  #why-us,
  #process,
  #contact {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
  #insurers .grid,
  #why-us .grid {
    display: block !important;
  }
  #insurers h2,
  #services h2,
  #why-us h2,
  #process h2,
  #contact h2 {
    font-size: 2rem !important;
    line-height: 1.16 !important;
  }
  #insurers p,
  #services p,
  #why-us p,
  #process p {
    font-size: 0.96875rem !important;
  }

  .insurer-chip-grid {
    gap: 0.5rem;
    margin-bottom: 1rem !important;
  }
  .insurer-chip {
    min-height: 2.125rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }
  .insurer-note {
    max-width: none;
    font-size: 0.78125rem !important;
    margin-bottom: 1.5rem;
  }
  .insurer-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(15.5rem, 78%);
    grid-template-columns: none;
    gap: 0.875rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0.25rem 1rem 0.85rem 0;
    margin-right: -1rem;
  }
  .insurer-proof-card,
  .insurer-proof-card.featured {
    grid-column: auto;
    scroll-snap-align: start;
  }
  .insurer-proof-card img,
  .insurer-proof-card.featured img {
    height: 9.75rem;
  }
  .insurer-proof-card figcaption {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
  }

  #services .text-center {
    margin-bottom: 2rem !important;
  }
  #services-grid {
    gap: 1rem !important;
  }
  .service-card {
    padding: 1.125rem;
    border-radius: 0.875rem;
  }
  .svc-icon {
    width: 2.65rem;
    height: 2.65rem;
    margin-bottom: 0.875rem;
  }
  .svc-name {
    font-size: 1.0625rem;
  }
  .svc-desc {
    margin-bottom: 0.75rem;
  }
  .svc-benefits {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .svc-benefits li {
    font-size: 0.84375rem;
  }
  .svc-benefits li:nth-child(n+4) {
    display: none;
  }
  .enquire-btn {
    padding: 0.7rem 0.875rem;
  }

  #whyus-grid {
    gap: 0.875rem !important;
  }
  .why-item {
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #EAEFF3;
    border-radius: 0.875rem;
    background: #fff;
  }
  .why-icon {
    width: 2.1rem;
    height: 2.1rem;
  }
  .why-text {
    font-size: 0.875rem;
    padding-top: 0.25rem;
  }

  #process .text-center {
    margin-bottom: 2rem !important;
  }
  #process-steps {
    gap: 1rem;
  }
  .step-item {
    align-items: flex-start;
    text-align: left;
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 0.875rem;
    padding: 1rem;
    border: 1px solid #EAEFF3;
    border-radius: 0.875rem;
    background: #fff;
  }
  .step-num {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    font-size: 0.9375rem;
    grid-row: span 2;
  }
  .step-title {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
  }
  .step-desc {
    font-size: 0.8125rem;
  }

  #contact .max-w-3xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #contact .wa-link {
    width: 100%;
    justify-content: center;
    font-size: 1rem !important;
  }

  footer {
    padding-bottom: 5.5rem !important;
  }
  footer .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  footer .border-t {
    align-items: flex-start !important;
    text-align: left !important;
  }

  #wa-float {
    width: 3.25rem;
    height: 3.25rem;
    right: 1rem;
    bottom: 1rem;
  }
  #wa-float svg {
    width: 1.65rem;
    height: 1.65rem;
  }
}
