:root {
  --accent: #d71920;
  --accent-dark: #a60d13;
  --imss: #006b3f;
  --imss-dark: #004f2e;
  --black: #0b0b0d;
  --ink: #17171b;
  --muted: #626a75;
  --soft: #f5f6f8;
  --line: #e8ebef;
  --white: #ffffff;
  --gold: #c7a14a;
  --shadow: 0 18px 45px rgba(12, 12, 14, 0.12);
  --shadow-soft: 0 10px 24px rgba(12, 12, 14, 0.08);
  --radius: 8px;
  --container: 1160px;
}

body.imss-theme {
  --accent: var(--imss);
  --accent-dark: var(--imss-dark);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom);
}

body.nav-open {
  overflow: hidden;
}

img,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--black);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(232, 235, 239, 0.9);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(12, 12, 14, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  border: 1px solid rgba(12, 12, 14, 0.08);
  object-fit: cover;
}

.brand span {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: var(--radius);
  color: #2e333a;
  font-size: 0.9rem;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: var(--radius);
  flex: 0 0 44px;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(780px, 78svh);
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(0.82) contrast(1.08);
  opacity: 0.26;
  transform: scale(1.04);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 7, 9, 0.97) 0%, rgba(9, 9, 11, 0.86) 58%, rgba(128, 9, 15, 0.5) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.68));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding-block: clamp(64px, 9vw, 116px);
}

.service-hero .hero-content {
  width: min(760px, 100%);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker::before,
.eyebrow::before {
  width: 30px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero-title,
h1 {
  margin: 0;
  font-size: clamp(2.55rem, 10vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.service-hero h1 {
  font-size: clamp(2.1rem, 8vw, 4.75rem);
}

.hero-copy {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2.6vw, 1.28rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--accent) 30%, transparent);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px color-mix(in srgb, var(--accent) 38%, transparent);
}

.btn-dark {
  color: var(--white);
  background: var(--black);
}

.btn-light {
  color: var(--ink);
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline {
  color: var(--accent);
  background: var(--white);
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}

.btn-small {
  min-height: 40px;
  padding: 9px 12px;
  font-size: 0.84rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-row li,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.section {
  padding-block: clamp(46px, 8vw, 88px);
}

.section-tight {
  padding-block: clamp(34px, 6vw, 62px);
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.18), transparent 44%),
    var(--black);
}

.section-header {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header.center .eyebrow {
  justify-content: center;
}

.section-header.center .eyebrow::before {
  display: none;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header p,
.lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-dark .section-header p,
.section-dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.benefit-card,
.proof-card,
.step-card,
.testimonial-card,
.info-card,
.requirement-card,
.phone-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
  box-shadow: var(--shadow);
}

.service-card picture {
  aspect-ratio: 1 / 0.8;
  overflow: hidden;
  background: var(--soft);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.service-card h3,
.benefit-card h3,
.proof-card h3,
.step-card h3,
.info-card h3,
.requirement-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.25;
}

.service-card p,
.benefit-card p,
.proof-card p,
.step-card p,
.info-card p,
.requirement-card p,
.testimonial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-card .btn {
  margin-top: auto;
}

.benefit-grid,
.proof-grid,
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefit-card,
.proof-card,
.requirement-card {
  padding: 18px;
}

.benefit-card strong,
.proof-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--white);
  background: var(--accent);
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 22px;
  padding: clamp(24px, 4vw, 36px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.9), rgba(15, 15, 18, 0.96)),
    var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.imss-theme .cta-band {
  background:
    linear-gradient(135deg, rgba(0, 107, 63, 0.95), rgba(15, 15, 18, 0.96)),
    var(--black);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta-phone {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.cta-phone span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cta-phone a {
  color: var(--white);
  font-size: clamp(1.55rem, 6vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
}

.testimonial-slider {
  position: relative;
}

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-height: 210px;
  padding: 20px;
  scroll-snap-align: start;
}

.testimonial-card p {
  color: #3a4048;
  font-size: 0.96rem;
}

.testimonial-card footer {
  margin-top: 18px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.testimonial-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.slider-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 6px;
}

.slider-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.content-copy p {
  color: var(--muted);
}

.content-copy p:first-of-type {
  margin-top: 0;
}

.info-card {
  padding: 22px;
}

.info-card ul,
.check-list,
.footer-list {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.info-card li,
.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: #3e454e;
  font-size: 0.94rem;
}

.info-card li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 16px;
  height: 16px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  padding: 18px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, white);
  border-radius: var(--radius);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  padding: 17px 18px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-list details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.source-note,
.legal-note {
  margin-top: 18px;
  padding: 14px 16px;
  color: #4a515a;
  background: color-mix(in srgb, var(--accent) 7%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  border-radius: var(--radius);
  font-size: 0.88rem;
}

.source-note a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.phone-card {
  padding: 16px;
}

.phone-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.phone-card a {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
}

.phone-card.primary {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.phone-card.primary span,
.phone-card.primary a {
  color: var(--white);
}

.site-footer {
  padding: 42px 0 96px;
  color: rgba(255, 255, 255, 0.8);
  background: #08080a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 900;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

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

.footer-list li {
  margin-bottom: 8px;
}

.footer-bottom {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  color: var(--white);
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.34);
  font-weight: 900;
}

.mobile-sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 69;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.mobile-sticky-cta .btn {
  min-height: 48px;
  padding-inline: 10px;
  font-size: 0.86rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 980px) {
  .header-actions {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 1080px) {
  .service-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 979px) {
  .nav-toggle {
    display: inline-flex !important;
    position: relative;
    top: auto;
    right: auto;
    z-index: 80;
  }

  .nav-menu {
    position: fixed;
    top: 82px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 6px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-left: 0;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    justify-content: space-between;
    min-height: 46px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 72svh;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(7, 7, 9, 0.94) 0%, rgba(7, 7, 9, 0.9) 58%, rgba(128, 9, 15, 0.62) 100%);
  }

  .benefit-grid,
  .proof-grid,
  .requirements-grid,
  .phone-grid,
  .content-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band {
    gap: 18px;
  }

  .wa-float {
    display: none;
  }

  .mobile-sticky-cta {
    display: grid;
  }

  .site-footer {
    padding-bottom: 132px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 24px), 366px);
    margin-left: 12px;
    margin-right: auto;
  }

  .navbar {
    min-height: 68px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand small {
    display: none;
  }

  .hero-content {
    padding-block: 52px 60px;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 34ch;
  }

  .trust-row {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .trust-row::-webkit-scrollbar {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .service-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card picture {
    aspect-ratio: 1 / 0.72;
  }

  .testimonial-track {
    grid-auto-columns: 88%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
