/* ============================================================
   Alfa HP Tecnologia — estilos (mobile-first)
   Paleta: azul dominante + turquesa da marca (acento)
   ============================================================ */

:root {
  --navy:      #0A2E52;   /* azul escuro dominante */
  --blue:      #0B5FA5;   /* azul principal */
  --blue-600:  #0E6DB8;
  --blue-500:  #1E88E5;   /* azul claro / destaque */
  --sky:       #E8F1FA;   /* azul bem claro (fundos) */
  --teal:      #2BBEBE;   /* turquesa da marca (acento) */
  --teal-600:  #1C9AA0;
  --teal-050:  #E3F7F6;   /* turquesa bem claro (fundos) */
  --amber:     #2BBEBE;   /* alias -> turquesa (mantém compat.) */
  --amber-600: #1C9AA0;
  --wa:        #25D366;   /* verde WhatsApp */
  --wa-dark:   #1EBE5A;

  --ink:       #16202B;   /* texto principal */
  --muted:     #5B6B7B;   /* texto secundário */
  --line:      #E1E7ED;
  --white:     #ffffff;
  --bg-soft:   #F6F9FC;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(10, 46, 82, .10);
  --shadow-sm: 0 4px 14px rgba(10, 46, 82, .08);
  --container:  1180px;

  --ff-head: "Poppins", "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.2; color: var(--navy); font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-body); font-weight: 600; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: #fff; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center; line-height: 1.1;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 95, 165, .28); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.btn--wa { --btn-bg: var(--wa); }
.btn--wa:hover { background: var(--wa-dark); box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn--outline {
  background: transparent; color: var(--navy); border-color: var(--blue);
}
.btn--outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 8px 20px rgba(10,46,82,.25); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #cfe0f0; font-size: .86rem; }
.topbar__inner { display: flex; gap: 22px; align-items: center; justify-content: center; min-height: 38px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #cfe0f0; }
.topbar__item:hover { color: #fff; }
.topbar__item svg { width: 16px; height: 16px; fill: var(--amber); }
.topbar__item--email { display: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand__logo { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-weight: 600; color: var(--navy); padding: 10px 14px; border-radius: 8px; font-size: .96rem;
  transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--blue); background: var(--sky); }
.nav__cta { margin-left: 8px; padding: 10px 18px; font-size: .92rem; }

/* Mobile nav */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; background: var(--navy);
  min-height: calc(100vh - 106px); min-height: calc(100dvh - 106px);
  display: flex; align-items: center;
}

/* Carrossel infinito (crossfade) — cada imagem preenche todo o fundo */
.hero__slideshow { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: heroFade 30s infinite; will-change: opacity, transform;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide:nth-child(4) { animation-delay: 18s; }
.hero__slide:nth-child(5) { animation-delay: 24s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.12); }
  3%   { opacity: 1; }
  18%  { opacity: 1; }
  21%  { opacity: 0; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1.06); }
}

/* Sombreamento (scrim) sobre as imagens para leitura do texto */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(1200px 620px at 50% 45%, rgba(7,26,46,.30), rgba(7,26,46,.58) 85%),
    linear-gradient(180deg, rgba(7,26,46,.55) 0%, rgba(10,46,82,.40) 50%, rgba(7,26,46,.60) 100%);
}

.hero__inner { position: relative; z-index: 2; padding: 64px 20px 68px; }
.hero__content { max-width: 760px; margin-inline: auto; text-align: center; }
.hero__eyebrow {
  display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 15px; border-radius: 999px; font-size: .85rem; font-weight: 500; margin-bottom: 20px;
}
.hero__title { font-size: clamp(2rem, 7vw, 3.4rem); color: #fff; font-weight: 800; letter-spacing: -.5px; line-height: 1.12; }
.hero__title span { color: var(--amber); display: block; }
.hero__text { font-size: clamp(1.02rem, 2.5vw, 1.22rem); color: #dbe7f4; margin: 20px auto 30px; max-width: 640px; }
.hero__actions { display: flex; flex-direction: column; gap: 16px; align-items: center; margin-top: 38px; }
.hero__actions .btn--outline { color: #fff; border-color: rgba(255,255,255,.6); }
.hero__actions .btn--outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; justify-content: center; }
.hero__badge { font-size: .88rem; color: #cfe0f0; font-weight: 500; }

/* ---------- Stats ---------- */
.stats { background: var(--navy); }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.08); }
.stats__grid--3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--navy); padding: 26px 16px; text-align: center; }
.stat__num { display: block; font-family: var(--ff-head); font-size: clamp(1.7rem, 6vw, 2.5rem); font-weight: 800; color: var(--amber); }
.stat__label { display: block; color: #b9cbdd; font-size: .84rem; margin-top: 4px; letter-spacing: .3px; }

/* ---------- Sections ---------- */
.section { padding: 62px 0; }
.section__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section__tag {
  display: inline-block; color: var(--blue); background: var(--sky);
  font-weight: 700; font-size: .8rem; letter-spacing: .8px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section__title { font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 700; }
.section__subtitle { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Serviços ---------- */
.services { background: var(--bg-soft); }
.services__cols { display: grid; gap: 22px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.svc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.svc-card--solar::before { background: linear-gradient(90deg, var(--amber), #ffd27a); }
.svc-card--industrial::before { background: linear-gradient(90deg, var(--blue), var(--blue-500)); }
.svc-card__icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.svc-card--solar .svc-card__icon { background: #FFF4E0; }
.svc-card--industrial .svc-card__icon { background: var(--sky); }
.svc-card__icon svg { width: 30px; height: 30px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-card--solar .svc-card__icon svg { stroke: var(--amber-600); }
.svc-card--industrial .svc-card__icon svg { stroke: var(--blue); fill: var(--blue); stroke: none; }
.svc-card__eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.svc-card--solar .svc-card__eyebrow { color: var(--amber-600); }
.svc-card__title { font-size: 1.4rem; margin: 4px 0 10px; }
.svc-card__desc { color: var(--muted); margin-bottom: 18px; }
.svc-list { display: grid; gap: 11px; margin-bottom: 24px; }
.svc-list li { position: relative; padding-left: 28px; font-size: .96rem; color: var(--ink); }
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  background: no-repeat center/contain;
}
.svc-card--solar .svc-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23E0910C'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.svc-card--industrial .svc-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230B5FA5'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.svc-card__cta { width: 100%; }

/* ---------- Grid de 6 serviços (home) ---------- */
.svc-grid { display: grid; gap: 18px; }
.svc-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.svc-tile__icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--teal-050);
  display: grid; place-items: center; margin-bottom: 16px;
}
.svc-tile__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--teal-600); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc-tile h3 { font-size: 1.18rem; margin-bottom: 8px; }
.svc-tile p { color: var(--muted); font-size: .95rem; flex: 1; margin-bottom: 16px; }
.svc-tile__link {
  font-weight: 700; color: var(--blue); font-size: .92rem; display: inline-flex; align-items: center; gap: 6px;
}
.svc-tile__link svg { width: 16px; height: 16px; fill: currentColor; transition: transform .18s; }
.svc-tile:hover .svc-tile__link svg { transform: translateX(4px); }
.services__foot { text-align: center; margin-top: 34px; }

/* ---------- Segmentos no hero ---------- */
.hero__segments { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 6px; }
.hero__seg {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); color: #fff;
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.hero__seg svg { width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Serviços por segmento (público) ---------- */
.seg-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.seg-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.seg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.seg-card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--teal-050); display: grid; place-items: center; margin-bottom: 16px; }
.seg-card__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--teal-600); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.seg-card__tag { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--teal-600); background: var(--teal-050); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.seg-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.seg-card ul { display: grid; gap: 10px; margin-bottom: 22px; }
.seg-card li { position: relative; padding-left: 26px; font-size: .96rem; color: var(--ink); }
.seg-card li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231C9AA0'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}
.seg-card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.seg-card__link { font-weight: 700; color: var(--blue); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.seg-card__link svg { width: 15px; height: 15px; fill: currentColor; transition: transform .18s; }
.seg-card:hover .seg-card__link svg { transform: translateX(4px); }
.seg-card__foot .btn { width: 100%; }

/* ---------- Quem somos ---------- */
.about__grid { display: grid; gap: 34px; }
.about__media {
  position: relative; min-height: 260px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.about__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__badge-year {
  position: absolute; bottom: 18px; left: 18px; background: #fff; color: var(--navy);
  border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); text-align: center; z-index: 2;
}
.about__badge-year strong { display: block; font-family: var(--ff-head); font-size: 1.7rem; color: var(--blue); line-height: 1; }
.about__badge-year span { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.about__content p { color: var(--muted); margin-bottom: 16px; }
.about__content p strong { color: var(--ink); }
.about__clients { margin-top: 26px; }
.about__clients-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.clients-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.client-logo {
  height: 66px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  display: grid; place-items: center; background: #fff; padding: 10px; overflow: hidden;
}
.client-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- Depoimentos (Google Reviews) ---------- */
.testimonials { margin-top: 54px; padding-top: 40px; border-top: 1px solid var(--line); }
.gr-head {
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 28px;
}
.gr-rating { display: flex; align-items: center; gap: 14px; }
.gr-rating__logo { width: 40px; height: 40px; flex: none; }
.gr-rating__score { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.gr-rating__num { font-family: var(--ff-head); font-size: 2rem; font-weight: 800; color: var(--navy); }
.gr-stars { display: inline-flex; gap: 2px; }
.gr-stars svg { width: 20px; height: 20px; fill: #FBBC05; }
.gr-rating__label { font-size: .86rem; color: var(--muted); margin-top: 2px; }
.gr-cta {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem;
  color: var(--blue); border: 1px solid var(--line); background: #fff; padding: 10px 18px; border-radius: 999px;
  transition: .18s;
}
.gr-cta:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Cards de depoimento */
.gr-cards { display: grid; gap: 18px; }
.gr-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.gr-card__top { display: flex; align-items: center; gap: 12px; }
.gr-card__avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 1.1rem; overflow: hidden;
}
.gr-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.gr-card__meta { display: flex; flex-direction: column; }
.gr-card__name { font-weight: 700; color: var(--navy); font-size: .98rem; }
.gr-card__date { font-size: .8rem; color: var(--muted); }
.gr-card__stars { display: inline-flex; gap: 1px; }
.gr-card__stars svg { width: 17px; height: 17px; fill: #FBBC05; }
.gr-card__text { color: var(--ink); font-size: .96rem; line-height: 1.6; }
.gr-card__gicon { width: 20px; height: 20px; margin-left: auto; }

/* Área alternativa: widget de avaliações (embed) */
.gr-embed {
  border: 2px dashed var(--teal); background: var(--teal-050); border-radius: var(--radius);
  padding: 24px; text-align: center; color: var(--muted); font-size: .9rem; margin-top: 18px;
}

@media (min-width: 620px) {
  .gr-head { flex-direction: row; justify-content: center; gap: 28px; }
}
@media (min-width: 620px) {
  .gr-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .gr-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Diferenciais ---------- */
.diff { background: var(--bg-soft); }
.diff__grid { display: grid; gap: 18px; }
.diff-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.diff-card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--sky);
  display: grid; place-items: center; margin-bottom: 16px;
}
.diff-card__icon svg { width: 27px; height: 27px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.diff-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.diff-card p { color: var(--muted); font-size: .96rem; }
.diff-card p strong { color: var(--ink); }

/* ---------- Faixa CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #fff; }
.cta-band__inner { padding: 44px 20px; display: grid; gap: 22px; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 4vw, 2rem); }
.cta-band p { color: #d5e3f2; margin-top: 8px; }
.cta-band__actions { display: flex; justify-content: center; }

/* ---------- Contato ---------- */
.contact__grid { display: grid; gap: 28px; max-width: 640px; margin-inline: auto; }
.contact__item {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.contact__item:hover .contact__ico { background: var(--blue); }
.contact__item:hover .contact__ico svg { fill: #fff; }
.contact__ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--sky);
  display: grid; place-items: center; transition: background .2s;
}
.contact__ico svg { width: 22px; height: 22px; fill: var(--blue); transition: fill .2s; }
.contact__item span:last-child { display: flex; flex-direction: column; font-size: 1rem; color: var(--muted); }
.contact__item strong { color: var(--navy); font-family: var(--ff-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.contact__cta-group { margin-top: 22px; display: grid; gap: 12px; }
.contact__cta-title { font-weight: 600; color: var(--navy); }
.contact__cta-group .btn { width: 100%; }

/* Formulário / Agendor */
.contact__form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.contact__form-title { font-size: 1.3rem; }
.contact__form-sub { color: var(--muted); margin: 6px 0 20px; font-size: .96rem; }
/* Formulário de contato (leads -> Agendor) */
.lead-form { display: grid; gap: 16px; }
.lead-form__row { display: grid; gap: 16px; }
.lead-form__field { display: grid; gap: 6px; }
.lead-form__label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.lead-form__req { color: var(--teal-600); margin-left: 2px; }
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%; font-family: var(--ff-body); font-size: .96rem; color: var(--ink);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.lead-form textarea { resize: vertical; min-height: 96px; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #9aa8b6; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 95, 165, .14);
}
.lead-form input:user-invalid,
.lead-form select:user-invalid,
.lead-form textarea:user-invalid { border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217, 83, 79, .12); }
.lead-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); line-height: 1.45; cursor: pointer; }
.lead-form__consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.lead-form__submit { width: 100%; justify-content: center; margin-top: 4px; }
.lead-form__submit[disabled] { opacity: .7; cursor: progress; }
.lead-form__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: leadSpin .7s linear infinite; }
.lead-form.is-loading .lead-form__spinner { display: inline-block; }
@keyframes leadSpin { to { transform: rotate(360deg); } }
.lead-form__feedback { font-size: .92rem; margin: 0; min-height: 1.2em; }
.lead-form__feedback.is-success { color: var(--teal-600); font-weight: 600; }
.lead-form__feedback.is-error { color: #d9534f; font-weight: 600; }
@media (min-width: 620px) {
  .lead-form__row--2 { grid-template-columns: 1fr 1fr; }
}

.contact__map { margin: 34px auto 0; max-width: 640px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Redes sociais ---------- */
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social-link {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: .2s;
}
.social-link svg { width: 21px; height: 21px; fill: #cfe0f0; transition: fill .2s; }
.social-link:hover { transform: translateY(-3px); }
.social-link--fb:hover { background: #1877F2; border-color: #1877F2; }
.social-link--ig:hover { background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF); border-color: transparent; }
.social-link--in:hover { background: #0A66C2; border-color: #0A66C2; }
.social-link:hover svg { fill: #fff; }

/* redes sociais na seção de contato (fundo claro) */
.contact__socials { margin-top: 24px; }
.contact__socials-label { font-weight: 600; color: var(--navy); margin-bottom: 12px; display: block; }
.contact__socials .social-link { background: var(--sky); border-color: var(--line); }
.contact__socials .social-link svg { fill: var(--blue); }
.contact__socials .social-link:hover svg { fill: #fff; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy); color: #b9cbdd; padding-top: 48px; }
.footer__grid { display: grid; gap: 30px; padding-bottom: 34px; }
.footer__logo { height: 42px; width: auto; margin-bottom: 14px; }
.footer__about { font-size: .92rem; max-width: 320px; margin-bottom: 18px; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 9px; }
.footer__col a:hover { color: var(--amber); }
.footer__col li { font-size: .92rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .84rem; }
.footer__bottom .container { text-align: center; }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(43,190,190,.30), transparent 60%),
    linear-gradient(155deg, var(--navy) 0%, var(--blue) 100%);
}
.page-hero__inner { position: relative; z-index: 1; padding: 44px 20px 50px; }
.page-hero__grid { display: grid; gap: 32px; align-items: center; }
.breadcrumb { font-size: .86rem; color: #bcd0e6; margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: var(--teal); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 5.5vw, 2.8rem); font-weight: 800; }
.page-hero p { color: #d5e3f2; margin-top: 14px; max-width: 560px; font-size: 1.05rem; }
.page-hero__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .carousel { box-shadow: 0 20px 50px rgba(0,0,0,.35); }
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 44px; }
  .page-hero__inner { padding: 56px 20px 62px; }
}

/* Índice de serviços (chips) */
.svc-index { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.svc-index__inner { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 20px; justify-content: center; max-width: 940px; margin-inline: auto; }
.svc-chip {
  font-size: .88rem; font-weight: 600; color: var(--navy); background: #fff;
  border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; transition: .18s;
  text-align: center; white-space: nowrap;
}
.svc-chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (min-width: 620px) {
  .svc-index__inner { display: grid; grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .svc-index__inner { grid-template-columns: repeat(3, 1fr); }
}

/* Seções de detalhe de serviço */
.svc-detail { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.svc-detail:nth-child(even) { background: var(--bg-soft); }
.svc-detail__grid { display: grid; gap: 30px; align-items: center; }
.svc-detail__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sky); }
.svc-detail__media img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; display: block; }
.svc-detail__media--icon { display: grid; place-items: center; aspect-ratio: 16/11; background: linear-gradient(155deg, var(--teal-050), #fff); }
.svc-detail__media--icon img { max-height: 150px; width: auto; object-fit: contain; }
.svc-detail__num {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--teal-600);
  text-transform: uppercase; font-size: .8rem; letter-spacing: .8px; margin-bottom: 8px;
}
.svc-detail__num b { font-family: var(--ff-head); font-size: 1.4rem; color: var(--teal); }
.svc-detail h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 12px; }
.svc-detail__desc { color: var(--muted); margin-bottom: 18px; }
.svc-detail ul { display: grid; gap: 10px; margin-bottom: 24px; }
.svc-detail ul li { position: relative; padding-left: 28px; color: var(--ink); font-size: .97rem; }
.svc-detail ul li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px;
  background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231C9AA0'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  .svc-detail__grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .svc-detail:nth-child(even) .svc-detail__media { order: 2; }
}

/* ---------- Carrossel de imagens ---------- */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.carousel__viewport { position: relative; width: 100%; aspect-ratio: 16 / 10; }
.carousel__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
}
.carousel__slide.is-active { opacity: 1; visibility: visible; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 22px 20px; color: #fff;
  background: linear-gradient(transparent, rgba(10,46,82,.35) 40%, rgba(10,46,82,.9));
}
.carousel__cap span { display: inline-block; background: var(--teal); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 4px 11px; border-radius: 999px; margin-bottom: 8px; }
.carousel__cap h3 { color: #fff; font-size: clamp(1.1rem, 2.6vw, 1.4rem); }
.carousel__dots { position: absolute; bottom: 16px; right: 18px; display: flex; gap: 8px; z-index: 3; }
.carousel__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: .25s; }
.carousel__dot.is-active { background: #fff; width: 26px; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); display: grid; place-items: center; transition: .2s; opacity: .85;
}
.carousel__arrow:hover { background: #fff; opacity: 1; }
.carousel__arrow svg { width: 22px; height: 22px; fill: var(--navy); }
.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }

.works { background: var(--bg-soft); }
.works .section__head { max-width: 100%; }
.works .section__title { font-size: clamp(1.7rem, 4.6vw, 2.7rem); }
.works .section__subtitle { font-size: 1.12rem; }
@media (min-width: 760px) { .works .section__title { white-space: nowrap; } }

/* ---------- FAQ (perguntas frequentes) ---------- */
.faq-sec { background: var(--bg-soft); }
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--ff-head); font-weight: 600;
  font-size: 1.02rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color .15s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.7rem; line-height: 1; color: var(--teal); font-weight: 300; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--blue); }
.faq__item[open] summary { color: var(--blue); }
.faq__a { padding: 2px 22px 20px; color: var(--muted); line-height: 1.65; }
.faq__a p { margin-bottom: 10px; }
.faq__foot { text-align: center; margin-top: 30px; color: var(--muted); }
.faq__foot a { color: var(--blue); font-weight: 700; }

/* ---------- Bloco de parceria (ABZ) ---------- */
.partner-sec { background: var(--bg-soft); }
.partner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 30px 26px; display: grid; gap: 22px;
  align-items: center; text-align: center; max-width: 920px; margin-inline: auto;
}
.partner__logo { display: grid; place-items: center; }
.partner__logo img { width: 150px; height: auto; }
.partner__tag { display: inline-block; color: var(--teal-600); background: var(--teal-050); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.partner h2 { font-size: clamp(1.3rem, 3.5vw, 1.7rem); margin-bottom: 10px; }
.partner p { color: var(--muted); }
.partner p strong { color: var(--ink); }
@media (min-width: 700px) {
  .partner { grid-template-columns: 170px 1fr; text-align: left; gap: 36px; padding: 36px; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: waPulse 2.4s infinite;
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float:hover { background: var(--wa-dark); transform: scale(1.06); }
@keyframes waPulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */
@media (min-width: 560px) {
  .topbar__item--email { display: inline-flex; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 18px; }
  .contact__cta-group .btn { width: auto; }
  .clients-logos { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .stats__grid--3 { grid-template-columns: repeat(3, 1fr); }
  .services__cols { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .diff__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .about__media { height: 420px; min-height: 0; align-self: center; }
  .cta-band__inner { grid-template-columns: 1fr auto; text-align: left; align-items: center; padding: 52px 20px; }
  .cta-band__actions { justify-content: flex-end; }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

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

/* ---------- Menu mobile (nav colapsado) ---------- */
@media (max-width: 860px) {
  /* remove o backdrop-filter no mobile: ele criava um "containing block" que
     prendia o menu fixed dentro da altura do header (bug do menu). */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav-toggle { display: flex; position: relative; z-index: 101; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; height: 100dvh; width: min(82%, 320px);
    background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 96px 22px 30px; gap: 6px; box-shadow: -10px 0 40px rgba(10,46,82,.18);
    transform: translateX(100%); transition: transform .3s ease; z-index: 100;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: 14px 12px; border-radius: 10px; border-bottom: 1px solid var(--line); }
  .nav__link:last-of-type { border-bottom: 0; }
  .nav__cta { margin: 12px 0 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(10,46,82,.5); z-index: 98;
  }
}
