/* =========================================================
   HOME | YPL Básculas y Maquinaria
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* =========================
   TOKENS LOCALES DEL HOME
========================= */

:root {
  --home-bg: #ffffff;
  --home-surface: #ffffff;
  --home-surface-soft: #f7faf8;
  --home-surface-soft-2: #eef4f0;
  --home-surface-soft-3: #e8f0eb;

  --home-text: #0c1610;
  --home-text-soft: #4d5d55;
  --home-text-muted: #738078;

  --home-border: rgba(12, 22, 16, 0.08);
  --home-border-strong: rgba(12, 22, 16, 0.14);

  --home-accent: #149155;
  --home-accent-strong: #0f7745;
  --home-accent-bright: #36d182;
  --home-accent-soft: rgba(20, 145, 85, 0.08);
  --home-accent-soft-2: rgba(20, 145, 85, 0.14);
  --home-accent-soft-3: rgba(20, 145, 85, 0.2);

  --home-shadow-xs: 0 4px 10px rgba(8, 18, 12, 0.035);
  --home-shadow-sm: 0 12px 28px rgba(8, 18, 12, 0.06);
  --home-shadow-md: 0 22px 48px rgba(8, 18, 12, 0.085);
  --home-shadow-lg: 0 34px 72px rgba(8, 18, 12, 0.12);
  --home-shadow-xl: 0 46px 96px rgba(8, 18, 12, 0.15);
  --home-shadow-accent: 0 18px 40px rgba(20, 145, 85, 0.22);

  --home-radius-sm: 16px;
  --home-radius-md: 24px;
  --home-radius-lg: 34px;
  --home-radius-xl: 44px;

  --home-max-text: 760px;
  --home-max-wide: 1200px;

  --home-transition-fast: 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  --home-transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --home-transition-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* =========================
   ANIMACIONES
========================= */

@keyframes fadeUpSoft {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroGlowFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.92;
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.018);
    opacity: 1;
  }
}

@keyframes buttonSheen {
  0% {
    transform: translateX(-170%) skewX(-18deg);
  }
  100% {
    transform: translateX(260%) skewX(-18deg);
  }
}

@keyframes ctaOrb {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-10px, -12px, 0) scale(1.04);
  }
}

/* =========================
   BASE
========================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--home-text);
  background: var(--home-bg);
}

main {
  background: var(--home-bg);
}

img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

a,
button,
input,
textarea,
select,
article,
div {
  -webkit-tap-highlight-color: transparent;
}

.section {
  position: relative;
  padding: 104px 0;
}

.container {
  width: min(var(--home-max-wide), calc(100% - 48px));
  margin-inline: auto;
}

.section-heading {
  max-width: var(--home-max-text);
  margin: 0 auto 3.1rem;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--home-text);
  font-size: clamp(2.05rem, 3.8vw, 3.15rem);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.section-heading p {
  margin: 1rem auto 0;
  max-width: 37rem;
  color: var(--home-text-soft);
  font-size: 1.02rem;
  line-height: 1.74;
}

.section-cta-center {
  display: flex;
  justify-content: center;
  margin-top: 2.6rem;
}

/* =========================
   INTERACTIVOS GLOBALES
========================= */

.hero .btn,
.section-cta-center .btn,
.cta-wrapper .btn,
.category-card,
.category-card a,
.category-card img,
.trust-item,
.service-feature {
  will-change: transform, box-shadow, border-color, background-color, filter, opacity;
}

.hero .btn,
.section-cta-center .btn,
.cta-wrapper .btn,
.category-card a {
  touch-action: manipulation;
}

/* =========================
   FOCUS ACCESSIBLE
========================= */

.hero .btn:focus-visible,
.section-cta-center .btn:focus-visible,
.category-card a:focus-visible,
.cta-wrapper .btn:focus-visible {
  outline: 2.5px solid var(--home-accent);
  outline-offset: 4px;
}

.category-card a:focus-visible {
  border-radius: var(--home-radius-md);
}

.hero .btn:focus:not(:focus-visible),
.section-cta-center .btn:focus:not(:focus-visible),
.category-card a:focus:not(:focus-visible),
.cta-wrapper .btn:focus:not(:focus-visible) {
  outline: none;
}

/* =========================
   BOTONES
========================= */

.hero .btn,
.section-cta-center .btn,
.cta-wrapper .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.85rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transition:
    transform var(--home-transition),
    background-color var(--home-transition),
    border-color var(--home-transition),
    box-shadow var(--home-transition),
    color var(--home-transition),
    opacity var(--home-transition),
    filter var(--home-transition);
}

.hero .btn::before,
.section-cta-center .btn::before,
.cta-wrapper .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.16), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--home-transition);
  z-index: 0;
}

.hero .btn::after,
.section-cta-center .btn::after,
.cta-wrapper .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -55%;
  width: 34%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.hero .btn > *,
.section-cta-center .btn > *,
.cta-wrapper .btn > * {
  position: relative;
  z-index: 1;
}

.hero .btn:active,
.section-cta-center .btn:active,
.cta-wrapper .btn:active {
  transform: translateY(0) scale(0.985);
}

.hero .btn-primary,
.cta-wrapper .btn-primary {
  color: #ffffff;
  background: linear-gradient(170deg, #36cf80 0%, #19a862 46%, #0f7e47 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    var(--home-shadow-accent),
    0 0 0 1px rgba(255,255,255,0.08) inset;
}

.hero .btn-secondary {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255,255,255,0.17) 0%, rgba(255,255,255,0.09) 100%);
  border: 1px solid rgba(255,255,255,0.26);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.section-cta-center .btn {
  color: var(--home-text);
  background: linear-gradient(180deg, #fbfcfb 0%, #e9f1ec 100%);
  border: 1px solid rgba(12, 22, 16, 0.1);
  box-shadow:
    0 10px 24px rgba(8, 18, 12, 0.05),
    0 0 0 1px rgba(255,255,255,0.78) inset;
}

.hero .btn:focus-visible,
.section-cta-center .btn:focus-visible,
.cta-wrapper .btn:focus-visible {
  box-shadow:
    0 0 0 4px rgba(20, 145, 85, 0.15),
    0 0 0 1px rgba(20, 145, 85, 0.22);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 90svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(
      100deg,
      rgba(5, 16, 10, 0.86) 0%,
      rgba(5, 16, 10, 0.66) 22%,
      rgba(5, 16, 10, 0.34) 50%,
      rgba(5, 16, 10, 0.1) 76%,
      rgba(5, 16, 10, 0) 100%
    ),
    url("../../img/hero/bg-hero.jpg") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 14% 18%, rgba(255,255,255,0.05), transparent 22%),
    radial-gradient(ellipse at 72% 16%, rgba(20, 145, 85, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.12) 100%);
  pointer-events: none;
  z-index: 0;
  animation: heroGlowFloat 9s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 132px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 730px;
  padding: 152px 0 132px;
}

.hero h1 {
  margin: 0;
  max-width: 13ch;
  opacity: 0;
  animation: fadeUpSoft 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
  font-family: var(--font-display);
  color: #ffffff;
  font-size: clamp(3rem, 5vw, 5.05rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.068em;
  text-wrap: balance;
  text-shadow: 0 12px 30px rgba(0,0,0,0.24);
}

.hero-description {
  margin: 1.35rem 0 0;
  max-width: 35rem;
  opacity: 0;
  animation: fadeUpSoft 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.15rem;
  opacity: 0;
  animation: fadeUpSoft 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.36s forwards;
}

/* =========================
   FRANJA DE CONFIANZA
========================= */

.trust-strip {
  padding-top: 10px;
  padding-bottom: 58px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.trust-item {
  position: relative;
  padding: 1.45rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow-xs);
  text-align: center;
  transform: translateZ(0);
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition),
    border-color var(--home-transition),
    background-color var(--home-transition),
    filter var(--home-transition);
}

.trust-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,0.75) inset;
  pointer-events: none;
}

.trust-item strong {
  display: block;
  margin-bottom: 0.36rem;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.26;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--home-text);
  transition: color var(--home-transition-fast);
}

.trust-item span {
  display: block;
  color: var(--home-text-soft);
  font-size: 0.95rem;
  line-height: 1.52;
  transition: color var(--home-transition-fast);
}

/* =========================
   CATEGORÍAS
========================= */

.categories-section {
  background:
    radial-gradient(ellipse at top, rgba(20, 145, 85, 0.07), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--home-surface-soft) 100%);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border: 1px solid var(--home-border);
  box-shadow: var(--home-shadow-sm);
  transform: translateZ(0);
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition),
    border-color var(--home-transition),
    background-color var(--home-transition);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,0.82) inset;
  pointer-events: none;
}

.category-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition:
    color var(--home-transition-fast),
    opacity var(--home-transition-fast);
}

.category-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  transform-origin: center center;
  transition:
    transform var(--home-transition-slow),
    filter var(--home-transition),
    opacity var(--home-transition);
}


.category-card h3 {
  margin: 0;
  padding: 1.2rem 1.15rem 0;
  font-family: var(--font-display);
  color: var(--home-text);
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.028em;
  text-wrap: balance;
  transition: color var(--home-transition-fast);
}

.category-card p {
  margin: 0.58rem 0 0;
  padding: 0 1.15rem 1.3rem;
  color: var(--home-text-soft);
  font-size: 0.94rem;
  line-height: 1.64;
  transition: color var(--home-transition-fast);
}

.category-card a:active img {
  transform: scale(1.02);
}

/* =========================
   SERVICIO TÉCNICO
========================= */

.services-highlight {
  background:
    radial-gradient(ellipse at top, rgba(20,145,85,0.045), transparent 32%),
    linear-gradient(180deg, #f7faf8 0%, #edf4ef 100%);
}

.services-highlight .section-heading {
  margin-bottom: 3.15rem;
}

.services-highlight__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-feature {
  position: relative;
  padding: 1.6rem 1.25rem;
  border-radius: 24px;
  border: 1px solid var(--home-border);
  background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
  box-shadow:
    var(--home-shadow-xs),
    0 0 0 1px rgba(255,255,255,0.82) inset;
  text-align: center;
  transform: translateZ(0);
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition),
    border-color var(--home-transition),
    background-color var(--home-transition),
    filter var(--home-transition);
}

.service-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,0.76) inset;
  pointer-events: none;
}

.service-feature h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--home-text);
  font-size: 1.04rem;
  line-height: 1.26;
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: color var(--home-transition-fast);
}

/* =========================
   CTA FINAL
========================= */

.cta-section {
  padding-top: 38px;
  padding-bottom: 110px;
  background: linear-gradient(180deg, #eef5f0 0%, #ffffff 100%);
}

.cta-wrapper {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4.25rem 2.15rem;
  border-radius: var(--home-radius-lg);
  color: #ffffff;
  background:
    radial-gradient(ellipse at top, rgba(70, 175, 116, 0.18), transparent 30%),
    linear-gradient(170deg, #152319 0%, #0b140f 100%);
  box-shadow:
    0 26px 62px rgba(5, 10, 8, 0.18),
    0 1px 0 rgba(255,255,255,0.04) inset;
  transform: translateZ(0);
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition),
    filter var(--home-transition);
}

.cta-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 16% 20%, rgba(255,255,255,0.05), transparent 22%),
    radial-gradient(ellipse at 84% 12%, rgba(20,145,85,0.2), transparent 26%);
  pointer-events: none;
}

.cta-wrapper::after {
  content: "";
  position: absolute;
  inset: auto -50px -70px auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,145,85,0.22), transparent 66%);
  pointer-events: none;
  animation: ctaOrb 8.5s ease-in-out infinite;
}

.cta-wrapper > * {
  position: relative;
  z-index: 1;
}

.cta-wrapper h2 {
  margin: 0;
  font-family: var(--font-display);
  color: #ffffff;
  font-size: clamp(2.05rem, 3.8vw, 3rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.cta-wrapper p {
  margin: 1rem auto 0;
  max-width: 38rem;
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  line-height: 1.74;
}

.cta-wrapper .btn {
  margin-top: 1.8rem;
}

/* =========================
   DESKTOP / DISPOSITIVOS CON HOVER REAL
========================= */

@media (hover: hover) and (pointer: fine) {
  .hero .btn:hover,
  .section-cta-center .btn:hover,
  .cta-wrapper .btn:hover {
    transform: translateY(-3px);
  }

  .hero .btn:hover::before,
  .section-cta-center .btn:hover::before,
  .cta-wrapper .btn:hover::before {
    opacity: 1;
  }

  .hero .btn:hover::after,
  .section-cta-center .btn:hover::after,
  .cta-wrapper .btn:hover::after {
    opacity: 1;
    animation: buttonSheen 0.9s ease;
  }

  .hero .btn-primary:hover,
  .cta-wrapper .btn-primary:hover {
    box-shadow:
      0 24px 50px rgba(20, 145, 85, 0.28),
      0 0 22px rgba(20, 145, 85, 0.13),
      0 0 0 1px rgba(255,255,255,0.1) inset;
    filter: saturate(1.03);
  }

  .hero .btn-secondary:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.14) 100%);
    border-color: rgba(255,255,255,0.38);
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.18),
      0 0 0 1px rgba(255,255,255,0.03) inset;
  }

  .section-cta-center .btn:hover {
    border-color: rgba(20, 145, 85, 0.2);
    box-shadow:
      0 16px 34px rgba(8, 18, 12, 0.08),
      0 0 0 1px rgba(255,255,255,0.82) inset;
  }

  .trust-item:hover {
    transform: translateY(-6px);
    border-color: rgba(20, 145, 85, 0.15);
    box-shadow: var(--home-shadow-sm);
    background: linear-gradient(180deg, #ffffff 0%, #f2f8f4 100%);
  }

  .trust-item:hover strong {
    color: var(--home-accent-strong);
  }

  .category-card:hover {
    transform: translateY(-9px);
    border-color: rgba(20, 145, 85, 0.16);
    box-shadow:
      var(--home-shadow-md),
      0 0 22px rgba(20, 145, 85, 0.05);
  }

  .category-card:hover img {
    transform: scale(1.02);
    filter: saturate(1.04) contrast(1.02);
  }

  .category-card:hover h3 {
    color: var(--home-accent-strong);
  }

  .service-feature:hover {
    transform: translateY(-6px);
    border-color: rgba(20,145,85,0.16);
    box-shadow: var(--home-shadow-sm);
    background: linear-gradient(180deg, #ffffff 0%, #eff7f1 100%);
  }

  .service-feature:hover h3 {
    color: var(--home-accent-strong);
  }

  .cta-wrapper:hover {
    transform: translateY(-4px);
    box-shadow:
      0 34px 78px rgba(5, 10, 8, 0.24),
      0 1px 0 rgba(255,255,255,0.05) inset;
  }
}

/* =========================
   TABLET / TÁCTIL / HOVER LIMITADO
========================= */

@media (hover: none), (pointer: coarse) {
  .hero .btn,
  .section-cta-center .btn,
  .cta-wrapper .btn {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      background-color 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      opacity 0.2s ease;
  }

  .hero .btn:active::before,
  .section-cta-center .btn:active::before,
  .cta-wrapper .btn:active::before {
    opacity: 1;
  }

  .hero .btn-primary:active,
  .cta-wrapper .btn-primary:active {
    box-shadow:
      0 14px 30px rgba(20, 145, 85, 0.22),
      0 0 0 1px rgba(255,255,255,0.08) inset;
    filter: brightness(0.98);
  }

  .hero .btn-secondary:active {
    background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.13) 100%);
    border-color: rgba(255,255,255,0.34);
  }

  .section-cta-center .btn:active {
    border-color: rgba(20, 145, 85, 0.18);
    box-shadow:
      0 10px 24px rgba(8, 18, 12, 0.06),
      0 0 0 1px rgba(255,255,255,0.78) inset;
  }

  .category-card:active {
    transform: translateY(-2px);
    box-shadow:
      0 16px 36px rgba(8, 18, 12, 0.08),
      0 0 0 1px rgba(255,255,255,0.5) inset;
  }

  .category-card a:active h3 {
    color: var(--home-accent-strong);
  }

  .category-card a:active p {
    color: var(--home-text);
  }

  .trust-item:active,
  .service-feature:active {
    transform: translateY(-2px);
  }

  .cta-wrapper:active {
    transform: translateY(-2px);
  }
}

/* =========================
   FOCUS STATES EXTRA
========================= */

.category-card a:focus-visible {
  box-shadow:
    0 0 0 4px rgba(20, 145, 85, 0.12),
    0 0 0 1px rgba(20, 145, 85, 0.2);
}

.category-card a:focus-visible h3 {
  color: var(--home-accent-strong);
}

.category-card a:focus-visible img {
  filter: saturate(1.06) contrast(1.02);
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .trust-strip__grid,
  .categories-grid,
  .services-highlight__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    background-position: center center;
  }

  .hero-content {
    max-width: 100%;
    padding: 132px 0 102px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 8vw, 4.2rem);
  }
}

@media (max-width: 820px) {
  .section {
    padding: 82px 0;
  }

  .container {
    width: min(var(--home-max-wide), calc(100% - 34px));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-wrapper {
    padding-inline: 1.6rem;
  }

  .hero .btn,
  .section-cta-center .btn,
  .cta-wrapper .btn {
    min-height: 54px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 70px 0;
  }

  .container {
    width: min(var(--home-max-wide), calc(100% - 26px));
  }

  .hero-content {
    padding: 110px 0 76px;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(2.25rem, 10.5vw, 3.2rem);
    line-height: 0.97;
  }

  .hero-description,
  .section-heading p,
  .cta-wrapper p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .trust-strip__grid,
  .categories-grid,
  .services-highlight__grid {
    grid-template-columns: 1fr;
    gap: 1.05rem;
  }

  .category-card,
  .trust-item,
  .service-feature {
    border-radius: 20px;
  }

  .cta-wrapper {
    padding: 2.9rem 1.35rem;
    border-radius: 26px;
  }

  .hero .btn,
  .section-cta-center .btn,
  .cta-wrapper .btn {
    min-height: 52px;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .hero-content {
    padding: 100px 0 62px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11.5vw, 2.82rem);
  }

  .section-heading h2,
  .cta-wrapper h2 {
    font-size: clamp(1.7rem, 7.5vw, 2.12rem);
  }
}