@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

/* --- Design tokens --- */
:root {
  --background: 0 0% 100%;
  --foreground: 215 28% 12%;
  --card: 0 0% 100%;
  --card-foreground: 215 28% 12%;
  --primary: 215 90% 42%;
  --primary-foreground: 0 0% 100%;
  --primary-glow: 215 80% 55%;
  --secondary: 150 50% 95%;
  --secondary-foreground: 150 60% 28%;
  --muted: 215 14% 96%;
  --muted-foreground: 215 10% 46%;
  --accent: 150 70% 38%;
  --accent-foreground: 0 0% 100%;
  --border: 215 13% 91%;
  --input: 215 13% 91%;
  --ring: 215 90% 42%;
  --radius: 0.75rem;
  --section-alt: 215 20% 98%;
  --hero-gradient: linear-gradient(135deg, hsl(215 30% 97%) 0%, hsl(0 0% 100%) 40%, hsl(150 30% 97%) 100%);
  --card-shadow: 0 4px 24px -4px hsl(215 28% 12% / 0.08);
  --card-shadow-hover: 0 12px 40px -8px hsl(215 90% 42% / 0.15);
  --nav-h: 5rem;
  --content-max: 1400px;
  --gutter: 1.5rem;
  --gutter-lg: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 800;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  margin: 0 0 0.75rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

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

.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-gradient-primary {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-gradient {
  background: var(--hero-gradient);
}

.section-alt {
  background: hsl(var(--section-alt));
}

.card-elevated {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: var(--card-shadow);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-elevated:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.bg-gradient-cta {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
}

.container {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--gutter-lg);
    padding-right: var(--gutter-lg);
  }
}

.section {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 7rem 0;
  }
}

.kicker {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}

.section__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.section__header h2 {
  font-size: 1.875rem;
  margin: 0.5rem 0 1rem;
}

@media (min-width: 768px) {
  .section__header h2 {
    font-size: 2.25rem;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  line-height: 1.2;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  background: hsl(var(--primary) / 0.9);
}

.btn--outline {
  background: transparent;
  color: hsl(var(--accent));
  border-color: hsl(var(--accent));
}

.btn--outline:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn--lg {
  padding: 1.1rem 2rem;
  font-size: 1rem;
  box-shadow: 0 10px 15px -3px hsl(215 90% 42% / 0.2);
}

.btn--white {
  background: hsl(var(--background));
  color: hsl(var(--primary));
}

.btn--white:hover {
  background: hsl(var(--background) / 0.9);
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  border: 0;
}

.btn--whatsapp:hover {
  background: #1ebe57;
  color: #fff;
}

.btn--block {
  width: 100%;
}

.btn--rounded-xl {
  border-radius: 0.75rem;
}

/* --- Site header & nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  background: hsl(var(--background) / 0.95);
  border-color: hsl(var(--border));
  box-shadow: 0 1px 3px hsl(215 28% 12% / 0.08);
}

.nav {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}

@media (min-width: 1024px) {
  .nav {
    padding: 0 var(--gutter-lg);
  }
}

.nav__brand img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 768px) {
  .nav__brand img {
    height: 3rem;
  }
}

.nav__toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.nav__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

@media (min-width: 1024px) {
  .nav__burger {
    display: none;
  }
}

.nav__inner {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  overflow: auto;
  max-height: calc(100vh - var(--nav-h));
  padding: 1.5rem var(--gutter) 2rem;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__toggle:checked ~ .nav__inner {
  display: flex;
}

@media (min-width: 1024px) {
  .nav__inner {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    max-height: none;
    border: none;
    padding: 0;
    background: transparent;
    overflow: visible;
  }
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  padding: 0.75rem 0;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: hsl(var(--primary));
}

.nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  flex: 1;
}

@media (min-width: 1024px) {
  .nav__links {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 1.75rem;
    flex: initial;
  }
}

/* Mobile-only insurance group */
.nav__sublabel {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
  margin: 0.75rem 0 0.2rem;
  font-weight: 600;
}

.nav__sublink {
  padding-left: 0.35rem;
  font-size: 0.9rem;
}

@media (min-width: 1024px) {
  .nav__sublabel,
  .nav__sublink {
    display: none;
  }
}

/* Desktop Insurance dropdown */
.nav-dd {
  position: relative;
  display: none;
}

@media (min-width: 1024px) {
  .nav-dd {
    display: block;
  }
}

.nav-dd__btn {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  cursor: default;
  padding: 0;
  margin: 0;
}

.nav-dd:hover .nav-dd__btn,
.nav-dd__btn[aria-current="true"] {
  color: hsl(var(--primary));
}

.nav-dd__chev {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.2s;
}

.nav-dd:hover .nav-dd__chev {
  transform: rotate(180deg);
}

.nav-dd__drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.5rem;
  z-index: 60;
  min-width: 20rem;
}

.nav-dd:hover .nav-dd__drop,
.nav-dd:focus-within .nav-dd__drop {
  display: block;
}

/* Mega links */
.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mega-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: inherit;
  transition: background 0.2s;
}

.mega-list a:hover {
  background: hsl(var(--secondary));
}

.mega-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: hsl(var(--primary));
}

.mega-ico--accent {
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
}

.mega-text strong {
  display: block;
  font-size: 0.875rem;
}

.mega-text span {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
}

.nav-dd__drop .mega-list {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  box-shadow: 0 20px 40px -10px hsl(215 28% 12% / 0.2);
  padding: 0.5rem;
}

/* --- Main offset for fixed header --- */
main {
  padding-top: var(--nav-h);
}

.page-hero {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero--gradient .page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-gradient);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 2.25rem;
  margin: 0.5rem 0 1.25rem;
}

@media (min-width: 768px) {
  .page-hero h1 {
    font-size: 3rem;
  }
}

/* --- Grids --- */
.grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .grid-2--split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.grid-3 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3--services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-4--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Hero home --- */
.hero-home {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0 3rem;
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-gradient);
}

.hero-home__glow1 {
  position: absolute;
  top: 5rem;
  right: 0;
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  border-radius: 50%;
  background: hsl(var(--primary) / 0.05);
  filter: blur(64px);
}

.hero-home__glow2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: hsl(var(--accent) / 0.05);
  filter: blur(64px);
}

.hero-home__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .hero-home__inner {
    padding: 0 var(--gutter-lg);
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid hsl(var(--primary) / 0.2);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: 2.25rem;
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.5rem;
  }
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.7);
}

.hero__checks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  position: relative;
  display: none;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero__visual {
    display: flex;
  }
}

.hero__frame {
  position: relative;
  width: min(460px, 100%);
  height: 520px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px hsl(215 28% 12% / 0.25);
  border: 4px solid hsl(var(--background));
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__float {
  position: absolute;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--card-shadow);
  min-width: 180px;
  animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero__float--tr {
  top: -1rem;
  right: -2rem;
  animation-delay: 0.2s;
}

.hero__float--bl {
  bottom: -1.5rem;
  left: -2.5rem;
  animation-duration: 2.8s;
  animation-delay: 0.8s;
}

.hero__float--mr {
  top: 42%;
  right: -3rem;
  animation-duration: 3.2s;
  animation-delay: 0.4s;
}

.hero__stat-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  margin-top: 1rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 1024px) {
  .hero__stat-row {
    display: none;
  }
}

.stat-card {
  flex: 0 0 140px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: var(--card-shadow);
}

.stat-card__v {
  font-size: 1.125rem;
  font-weight: 800;
}

/* --- Testimonials --- */
.t-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
}

.t-card__text {
  font-style: italic;
  margin: 0 0 1.5rem;
  line-height: 1.6;
  color: hsl(var(--foreground) / 0.9);
}

.stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
  color: hsl(var(--accent));
}

.t-card__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.t-card__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
}

/* --- FAQ (details) --- */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.75rem;
  padding: 0 1.25rem;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 1.1rem 0;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: hsl(var(--primary));
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1.1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

/* --- CTA block --- */
.cta-box {
  position: relative;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
  padding: 3rem 2rem;
  text-align: center;
  color: hsl(var(--primary-foreground));
  overflow: hidden;
}

@media (min-width: 1024px) {
  .cta-box {
    padding: 4rem 5rem;
  }
}

.cta-box h2 {
  color: inherit;
  font-size: 1.75rem;
  margin: 0 0 1.25rem;
}

@media (min-width: 768px) {
  .cta-box h2 {
    font-size: 2.25rem;
  }
}

.cta-box p {
  opacity: 0.85;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.cta-box__btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-box__btns {
    flex-direction: row;
    justify-content: center;
  }
}

/* --- WhatsApp float --- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 45;
  display: flex;
  align-items: flex-end;
}

.whatsapp-float__btn {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -5px hsl(150 60% 28% / 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px -5px hsl(150 60% 28% / 0.5);
}

/* --- Footer --- */
.site-footer {
  background: hsl(var(--foreground));
  color: hsl(var(--background) / 0.8);
  padding: 4rem 0 2rem;
}

.site-footer a:hover {
  color: hsl(var(--background));
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
  }
}

.site-footer .logo-footer {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-socials a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: hsl(var(--background) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-socials a:hover {
  background: hsl(var(--background) / 0.2);
}

.footer-cols h4 {
  color: hsl(var(--background));
  font-size: 1.125rem;
  margin: 0 0 1rem;
}

.footer-cols a {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
}

.site-footer__bottom {
  border-top: 1px solid hsl(var(--background) / 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* --- Blog & prose --- */
.breadcrumb {
  background: hsl(var(--muted) / 0.35);
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.9rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.breadcrumb a:hover {
  color: hsl(var(--primary));
}

.breadcrumb span:last-child {
  color: hsl(var(--foreground));
  font-weight: 500;
}

.layout-blog {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
}

@media (min-width: 1024px) {
  .layout-blog {
    padding: 3rem var(--gutter-lg) 5rem;
  }
}

@media (min-width: 1024px) {
  .layout-blog__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
  }
}

.prose-article h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.prose-article h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
}

.prose-article p,
.prose-article li {
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}

.prose-article p {
  margin-bottom: 0.9rem;
}

.prose-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  overflow: hidden;
}

.prose-article th,
.prose-article td {
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.65rem 0.9rem;
  text-align: left;
}

.prose-article th {
  background: hsl(var(--muted) / 0.5);
  font-weight: 700;
  color: hsl(var(--foreground));
}

/* --- 404 --- */
.nf {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted));
  padding: 2rem;
  text-align: center;
}

.nf h1 {
  font-size: 4rem;
  margin: 0 0 0.5rem;
}

/* --- How it works steps (connecting line for lg) --- */
.steps-row {
  display: grid;
  gap: 2rem;
  position: relative;
}

@media (min-width: 1024px) {
  .steps-row--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-node {
  text-align: center;
  position: relative;
}

@media (min-width: 1024px) {
  .steps-row--4 .step-node:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.4rem;
    left: 55%;
    width: 80%;
    height: 2px;
    background: hsl(var(--border));
  }
}

.step-icon-wrap {
  position: relative;
  display: inline-flex;
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.1);
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
}

.step-num {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Subtle page shell --- */
.muted-box {
  background: hsl(var(--secondary));
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
}

/* Testimonials: 2×2 on md+ */
.t-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .t-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Featured row: 1 col mobile, 2 col desktop */
.feat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 1rem;
}

@media (min-width: 1024px) {
  .feat-row {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* --- Why section image + overlay card --- */
.why-image-wrap {
  position: relative;
  margin-bottom: 3.5rem;
}

.why-image-wrap img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 16px 40px -10px hsl(215 28% 12% / 0.2);
}

.why-badges {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: -1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}

/* --- Service icon color helpers --- */
.ico-bg-p {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}
.ico-bg-a {
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
}

.svc-ico {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.2s;
}

.service-card {
  display: block;
  height: 100%;
  padding: 2rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.service-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-top: 1rem;
}
