/* ==========================================================================
   Abatec Dedetizadora - estilos do site (mobile first)
   Bootstrap 5 fornece reset, grid e utilitários. Aqui ficam tema e componentes.
   ========================================================================== */

:root {
  --brand: #005cbf;
  --brand-dark: #00479a;
  --brand-darker: #001b3d;
  --brand-soft: #e8f1fc;
  --accent: #ee0402;
  --accent-strong: #c40302; /* versão com contraste AA para texto branco */
  --whatsapp: #0b7a3b;      /* verde escuro: contraste AA com texto branco */
  --whatsapp-hover: #096532;
  --ink: #0f1b2d;
  --muted: #4a5a70;
  --line: #e3e9f2;
  --surface: #ffffff;
  --surface-tint: #f5f8fc;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 2px 8px rgba(0, 27, 61, 0.06);
  --shadow: 0 12px 32px rgba(0, 27, 61, 0.1);
  --shadow-lg: 0 24px 60px rgba(0, 27, 61, 0.18);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-primary: var(--brand);
  --bs-primary-rgb: 0, 92, 191;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 0, 92, 191;
}

/* Sem rolagem horizontal em nenhuma largura */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.bi {
  flex-shrink: 0;
  vertical-align: -0.125em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: var(--brand-darker);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Botões ---------- */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-brand:active {
  transform: translateY(0);
}

.btn-brand--lg {
  min-height: 56px;
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

.btn-brand--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 92, 191, 0.3);
}

.btn-brand--primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-brand--whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 122, 59, 0.3);
}

.btn-brand--whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #fff;
}

.btn-brand--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-brand--ghost:hover {
  background: #fff;
  color: var(--brand-darker);
}

.btn-brand--light {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: var(--shadow);
}

.btn-brand--light:hover {
  color: var(--brand-darker);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}

.brand img {
  display: block;
  width: auto;
  height: 52px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-darker);
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: inline-flex;
}

/* Menu mobile: painel que desce abaixo do header (sem deslocamento lateral) */
.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 1rem 1.25rem 1.5rem;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.site-nav__link {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--brand);
}

.site-nav__cta {
  width: 100%;
}

@media (min-width: 992px) {
  :root {
    --header-h: 84px;
  }

  .brand img {
    height: 62px;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list {
    display: flex;
    gap: 0.25rem;
    margin: 0;
  }

  .site-nav__link {
    position: relative;
    padding: 0.5rem 0.75rem;
    border: 0;
  }

  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }

  .site-nav__link:hover::after {
    transform: scaleX(1);
  }

  .site-nav__cta {
    width: auto;
    min-height: 44px;
    padding: 0.6rem 1.2rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
  color: #fff;
  overflow: hidden;
  background: var(--brand-darker);
}

.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__bg {
  z-index: -2;
}

.hero__bg img {
  object-fit: cover;
  object-position: 35% center;
  animation: hero-zoom 18s var(--ease) both;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 27, 61, 0.75) 0%, rgba(0, 27, 61, 0.6) 45%, rgba(0, 27, 61, 0.92) 100%);
}

@media (min-width: 992px) {
  .hero::before {
    background:
      linear-gradient(90deg, rgba(0, 27, 61, 0.94) 0%, rgba(0, 35, 80, 0.78) 45%, rgba(0, 27, 61, 0.15) 100%);
  }
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero__badge .bi {
  color: #ff6b6a;
}

.hero__title {
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
}

.text-highlight {
  background: linear-gradient(transparent 68%, rgba(238, 4, 2, 0.85) 68%, rgba(238, 4, 2, 0.85) 90%, transparent 90%);
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero__lead {
  max-width: 36rem;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 576px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__trust .bi {
  color: #7fd6a0;
}

/* ---------- Diferenciais (sobrepostos ao hero) ---------- */
.highlights {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
}

.highlights__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 1.25rem;
  list-style: none;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

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

.highlight {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.5rem;
}

.highlight__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.highlight__title {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.highlight__text {
  margin: 0;
  font-size: 0.925rem;
  color: var(--muted);
}

/* ---------- Seções ---------- */
.section {
  padding: 5rem 0;
}

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

.section--tinted {
  background: var(--surface-tint);
}

.section--dark {
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgba(0, 92, 191, 0.45), transparent 60%),
    radial-gradient(40rem 24rem at 0% 100%, rgba(238, 4, 2, 0.18), transparent 60%),
    var(--brand-darker);
  color: #fff;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 38rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.section-heading--light .eyebrow {
  color: #ff8a89;
}

.section-heading--light .section-lead {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Sobre ---------- */
.about__text {
  color: var(--muted);
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

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

.check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 600;
}

.check-list .bi {
  margin-top: 0.3em;
  color: var(--brand);
}

.about__media {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2rem;
  padding: 0 0.75rem 0.75rem 0;
}

.about__media img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about__media::before {
  content: "";
  position: absolute;
  inset: 1.25rem 0 0 1.25rem;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  opacity: 0.9;
}

.about__badge {
  position: absolute;
  left: 1rem;
  bottom: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 2rem);
  padding: 0.9rem 1.2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  line-height: 1.3;
}

.about__badge .bi {
  color: var(--accent);
}

.about__badge strong {
  display: block;
  color: var(--brand-darker);
}

/* ---------- Serviços ---------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 92, 191, 0.25);
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.service-card__text {
  flex-grow: 1;
  color: var(--muted);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  min-height: 44px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.service-card__link .bi {
  transition: transform 0.25s var(--ease);
}

.service-card__link:hover .bi {
  transform: translateX(4px);
}

/* ---------- Como funciona ---------- */
.steps__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

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

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

.step {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
  overflow: hidden;
}

.step__number {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(0, 92, 191, 0.1);
}

.step__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.step__title {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.step__text {
  margin: 0;
  color: var(--muted);
}

/* ---------- Depoimentos ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), background-color 0.35s;
}

.testimonial:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
}

.testimonial__quote {
  color: #ff6b6a;
  opacity: 0.85;
}

.testimonial__stars {
  display: flex;
  gap: 0.2rem;
  margin: 0.75rem 0 1rem;
  color: #ffc83d;
}

.testimonial__text {
  flex-grow: 1;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.testimonial__text p {
  margin: 0;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  line-height: 1.3;
}

.testimonial__author small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
}

.testimonial__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 800;
}

/* ---------- Faixa de CTA ---------- */
.cta-band {
  padding: 0 0 1rem;
  background: linear-gradient(var(--brand-darker) 50%, #fff 50%);
}

.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, var(--accent-strong), #9d0201);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 992px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 3.5rem;
  }
}

.cta-band__title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.cta-band__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.cta-band .btn-brand {
  flex-shrink: 0;
}

/* ---------- Contato ---------- */
.contact-info {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

a.contact-item:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.contact-item__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.contact-item__icon--green {
  background: #e3f6ea;
  color: var(--whatsapp);
}

.contact-item__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item__value {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
}

.contact-form .form-label {
  font-weight: 600;
}

.contact-form .form-control,
.contact-form .form-select {
  min-height: 48px;
  border-color: #c9d4e3;
  border-radius: 0.75rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.25rem rgba(0, 92, 191, 0.2);
}

.contact-form__note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.map-wrapper {
  position: relative;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-tint);
}

@media (min-width: 992px) {
  .map-wrapper {
    height: 100%;
    min-height: 560px;
  }
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  margin-top: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 4.5rem 0 0;
  background: #0a1626;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-brand {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: #fff;
}

.footer-brand img {
  display: block;
  width: 180px;
  height: auto;
}

.footer-text {
  max-width: 22rem;
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.footer-list {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-style: normal;
}

.footer-list a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-list a:hover {
  color: #fff;
}

.footer-contact .bi {
  margin-top: 0.3em;
  color: #ff6b6a;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 3.5rem;
  padding: 1.5rem 0 calc(1.5rem + 64px); /* espaço para o botão flutuante no mobile */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
  }
}

/* Crédito discreto do desenvolvedor */
.credit {
  letter-spacing: 0.02em;
}

.credit a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, var(--brand), var(--accent)) no-repeat left bottom / 0 1px;
  transition: background-size 0.35s var(--ease), color 0.2s;
}

.credit a:hover {
  color: #fff;
  background-size: 100% 1px;
}

/* ---------- Botões flutuantes ---------- */
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1020;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 122, 59, 0.45);
  transition: transform 0.25s var(--ease);
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: pulse 2.4s ease-out infinite;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.06);
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.5); opacity: 0; }
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 5.5rem;
  z-index: 1020;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Páginas de erro ---------- */
.error-page {
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
}

.error-page__code {
  margin-bottom: 0.5rem;
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Animações de entrada ----------
   Só escondem o conteúdo quando o JS está ativo (classe .js no <html>).
   Usamos apenas deslocamento vertical para nunca gerar rolagem horizontal. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js .delay-1 { transition-delay: 0.1s; }
.js .delay-2 { transition-delay: 0.2s; }
.js .delay-3 { transition-delay: 0.3s; }

/* Hover dos cards não deve herdar o atraso da animação de entrada */
.js .service-card.is-visible,
.js .testimonial.is-visible {
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

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