/* ==========================================================================
   Efiservice — Serviços e Instalações
   ========================================================================== */

:root {
  --blue: #313E95;
  --blue-dark: #232B68;
  --blue-deep: #1A2050;
  --blue-soft: #E9EBF7;
  --red: #ED3137;
  --red-dark: #C9242A;
  --ink: #1D2237;
  --ink-soft: #575E78;
  --line: #E3E6F0;
  --bg: #FFFFFF;
  --bg-alt: #F5F6FB;
  --white: #FFFFFF;
  --whats: #23A455;
  --whats-dark: #1B8A46;

  --font-head: "Archivo", sans-serif;
  --font-body: "Manrope", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(29, 34, 55, 0.06);
  --shadow-md: 0 12px 34px rgba(29, 34, 55, 0.10);
  --shadow-lg: 0 24px 60px rgba(26, 32, 80, 0.16);

  --header-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

section[id] { scroll-margin-top: var(--header-h); }

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}

.section__kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
}

.section__lead {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section__head--light .section__title { color: var(--white); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

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

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(237, 49, 55, 0.28);
}
.btn--primary:hover { background: var(--red-dark); }

.btn--whatsapp {
  background: var(--whats);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(35, 164, 85, 0.32);
}
.btn--whatsapp:hover { background: var(--whats-dark); }

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

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

/* --------------------------------------------------------------------------
   1. Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(26, 32, 80, 0);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
  background: rgba(26, 32, 80, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(15, 19, 51, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.header__brand img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--white);
  padding: 3px;
}

.header__brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}

.header__brand-text em {
  font-style: normal;
  color: #FF6B70;
  display: inline;
}

.header__brand-text small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

/* trick: keep "Efi" + "service" on one line */
.header__brand-text { display: block; }
.header__brand-text small { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav__link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav__link:hover,
.nav__link.is-active { color: var(--white); }

.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { padding: 0.65rem 1.25rem; font-size: 0.9rem; }

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 70;
}

.header__toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 3px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--blue-deep);
  color: var(--white);
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 480px at 82% 8%, rgba(49, 62, 149, 0.55), transparent 65%),
    radial-gradient(560px 420px at 4% 92%, rgba(237, 49, 55, 0.14), transparent 60%),
    linear-gradient(160deg, var(--blue-deep) 0%, var(--blue-dark) 55%, var(--blue-deep) 100%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 75%, transparent);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.3rem;
}

.hero__text {
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3.5vw, 3rem);
}

.hero__stats li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__stats strong {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
}

.hero__stats span {
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
  border-left: 2px solid rgba(237, 49, 55, 0.7);
  padding-left: 0.75rem;
}

/* Hero visual — mosaico de produtos (eco da identidade dos banners) */

.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(140px, 1fr);
  gap: 1rem;
  max-width: 460px;
  margin-left: auto;
}

.hero__tile {
  background: linear-gradient(165deg, #FFFFFF 0%, #EEF0FA 100%);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: tile-float 7s ease-in-out infinite;
}

.hero__tile img {
  max-height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(26, 32, 80, 0.18));
}

.hero__tile--a { animation-delay: 0s; }
.hero__tile--b { animation-delay: 1.6s; transform: translateY(14px); }
.hero__tile--c { animation-delay: 0.8s; }
.hero__tile--d { animation-delay: 2.4s; transform: translateY(14px); }

@keyframes tile-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

.hero__card {
  position: absolute;
  left: -1.6rem;
  bottom: -1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  color: var(--blue-deep);
  border-radius: var(--radius);
  padding: 0.8rem 1.15rem;
  box-shadow: var(--shadow-lg);
}

.hero__card svg { color: var(--whats); flex-shrink: 0; }

.hero__card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero__card span {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   3. Serviços
   -------------------------------------------------------------------------- */

.services { background: var(--bg-alt); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(49, 62, 149, 0.25);
}

.service-card figure {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: linear-gradient(170deg, #F7F8FC 0%, #EEF0F9 100%);
  margin-bottom: 1.15rem;
  overflow: hidden;
}

.service-card figure img {
  max-height: 120px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

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

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 0.45rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.service-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  transition: background-color 0.25s ease, gap 0.2s ease, transform 0.25s ease;
}

.service-card__link:hover,
.service-card:hover .service-card__link {
  background: var(--red);
  gap: 0.7rem;
}

.service-card__link:active { transform: scale(0.98); }

/* Promo — fechadura + instalação */

.promo {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 90%);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.promo::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 49, 55, 0.28), transparent 70%);
  top: -160px;
  right: -110px;
  pointer-events: none;
}

.promo__kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #FF9A9D;
  margin-bottom: 0.8rem;
}

.promo h3 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.promo h3 em {
  font-style: normal;
  color: #FF6B70;
}

.promo__text {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.6rem;
  max-width: 30rem;
}

.promo__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.promo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* --------------------------------------------------------------------------
   4. Sobre
   -------------------------------------------------------------------------- */

.about { background: var(--bg); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.6rem clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* imagem começa no topo da seção e desce acompanhando o scroll */
.about__media {
  grid-column: 1;
  grid-row: 1 / 3;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.about__content,
.about__values { grid-column: 2; }

.about__media figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}

.about__media::before {
  content: "";
  position: absolute;
  inset: 2rem -1.4rem -1.4rem 2rem;
  border: 2px solid var(--blue-soft);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__badge {
  position: absolute;
  right: -1rem;
  bottom: 2rem;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--red);
}

.about__badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.about__badge span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
  display: block;
}

.about__content .section__head { margin-bottom: 1.25rem; }

.about__content > p {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  max-width: 36rem;
}

.about__content > p strong { color: var(--blue-deep); }

.about__values {
  display: grid;
  gap: 1rem;
}

.about__values li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.about__values li:hover {
  transform: translateX(6px);
  border-color: rgba(49, 62, 149, 0.3);
}

.about__values svg {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 3px;
}

.about__values strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--blue-deep);
  margin-bottom: 0.15rem;
}

.about__values span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   5. Diferenciais
   -------------------------------------------------------------------------- */

.features {
  background:
    radial-gradient(640px 420px at 90% 0%, rgba(49, 62, 149, 0.5), transparent 65%),
    var(--blue-deep);
  color: var(--white);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.feature {
  position: relative;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem 1.8rem;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.feature:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(237, 49, 55, 0.55);
}

.feature__num {
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
}

.feature svg { color: #FF6B70; margin-bottom: 1.05rem; }

.feature h3 {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   6. Contato
   -------------------------------------------------------------------------- */

.contact { background: var(--bg-alt); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact__info .section__head { margin-bottom: 2rem; }

.contact__list { display: grid; gap: 1.1rem; }

.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.contact__list li:hover .contact__icon {
  background: var(--blue);
  color: var(--white);
}

.contact__list strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 0.1rem;
}

.contact__list a,
.contact__list div > span {
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.contact__list a:hover { color: var(--red); }

.contact__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: var(--radius-lg);
  padding: clamp(1.7rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.contact__panel h3 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.contact__panel h3 em {
  font-style: normal;
  color: var(--red);
}

.contact__panel > p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.3rem;
}

.contact__perks {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
}

.contact__perks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.contact__perks svg { color: var(--whats); flex-shrink: 0; }

.contact__panel small {
  display: block;
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.72);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}

.footer__logo {
  display: inline-block;
  background: var(--white);
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 1.1rem;
  transition: transform 0.25s ease;
}

.footer__logo:hover { transform: translateY(-3px); }

.footer__logo img { width: 52px; height: 52px; }

.footer__brand p {
  font-size: 0.9rem;
  max-width: 20rem;
  margin-bottom: 1.4rem;
}

.footer__social {
  display: flex;
  gap: 0.7rem;
}

.footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.footer__social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-3px);
}

.footer__col h4 {
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.1rem;
}

.footer__col a,
.footer__col address {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

nav.footer__col a:hover {
  color: var(--white);
  padding-left: 5px;
}

div.footer__col a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.3rem 0;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.footer__dev {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease, transform 0.25s ease;
}

.footer__dev img {
  height: 37px;
  width: auto;
}

.footer__dev:hover {
  color: var(--white);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Botão flutuante WhatsApp
   -------------------------------------------------------------------------- */

.whats-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 55;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whats);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(35, 164, 85, 0.45);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.whats-fab:hover {
  transform: scale(1.08);
  background: var(--whats-dark);
}

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

@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Animações de entrada (scroll reveal)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 110ms);
}

.reveal[data-delay="1"] { --d: 1; }
.reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; }
.reveal[data-delay="4"] { --d: 4; }
.reveal[data-delay="5"] { --d: 5; }

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

/* --------------------------------------------------------------------------
   Menu mobile + responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .header__toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    background: var(--blue-deep);
    box-shadow: -20px 0 60px rgba(10, 13, 38, 0.5);
    transform: translateX(105%);
    transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 65;
  }

  .nav.is-open { transform: translateX(0); }

  .nav__link { font-size: 1.15rem; }

  .nav__cta { margin-top: 0.5rem; }

  .hero__grid { grid-template-columns: 1fr; }

  .hero__visual {
    max-width: 420px;
    margin: 0 auto;
    grid-auto-rows: minmax(120px, 1fr);
  }

  .hero__card { left: 0; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  /* ordem no mobile: descrição → imagem → missão/visão/valores */
  .about__content {
    order: 1;
    grid-column: auto;
  }

  .about__media {
    order: 2;
    grid-column: auto;
    grid-row: auto;
    max-width: 480px;
    position: relative;
    top: auto;
  }

  .about__values {
    order: 3;
    grid-column: auto;
    margin-top: 1rem;
  }

  .about__badge { right: 1rem; }

  .contact__grid { grid-template-columns: 1fr; }

  .contact__panel { position: static; }

  .promo { grid-template-columns: 1fr; }

  .promo__media { order: -1; }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }

  .service-card { padding: 1.1rem 1.1rem 1.2rem; }

  .service-card__link {
    font-size: 0.84rem;
    padding: 0.6rem 0.8rem;
    white-space: nowrap;
  }

  .service-card figure { height: 154px; }

  .service-card figure img { max-height: 132px; }

  .features__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }

  .hero__stats { display: none; }

  .promo .btn { width: 100%; }

  .hero__tile img { max-height: 122px; }

  .hero__card { bottom: -2.4rem; }

  .whats-fab { width: 54px; height: 54px; right: 1rem; bottom: 1rem; }
}

@media (max-width: 420px) {
  .services__grid { grid-template-columns: 1fr; }

  .hero__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Acessibilidade — usuários que preferem menos movimento
   -------------------------------------------------------------------------- */

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__tile { animation: none; }

  .whats-fab::before { animation: none; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
