/* =============================================================
   JCR Desentupimentos — Landing Page (Google Ads)
   CSS mobile-first. Breakpoints: 560px, 768px, 1024px.
   ============================================================= */

/* ---------- 1. Variáveis (cores da marca) ---------- */
:root {
  --brand: #F5B70A;          /* amarelo/dourado da logo */
  --brand-dark: #D99E00;
  --dark: #111111;           /* preto/grafite */
  --dark-2: #1C1C1C;
  --white: #FFFFFF;
  --whatsapp: #25D366;       /* verde WhatsApp */
  --whatsapp-hover: #1EBE5A;
  --on-whatsapp: #0B1F12;    /* texto escuro no verde (contraste acessível) */
  --call: #2E5E86;           /* azul ligação */
  --call-hover: #244C6E;
  --text: #444444;           /* cinza texto */
  --muted: #6B6B6B;
  --bg-soft: #F6F5F1;
  --border: #E6E3DA;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 6px 24px rgba(17, 17, 17, .08);
  --header-h: 64px;
  --gutter: 16px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--dark); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

.ico { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--brand); color: var(--dark); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ---------- 3. Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 12px 22px;
  border-radius: 999px; border: 0;
  font: 700 1rem/1.2 var(--font);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 60px; padding: 16px 28px; font-size: 1.08rem; }
.btn--lg .ico { width: 1.45em; height: 1.45em; }

.btn--whatsapp { background: var(--whatsapp); color: var(--on-whatsapp); box-shadow: 0 8px 22px rgba(37, 211, 102, .35); }
.btn--whatsapp:hover { background: var(--whatsapp-hover); }
.btn--call { background: var(--call); color: var(--white); box-shadow: 0 8px 22px rgba(46, 94, 134, .35); }
.btn--call:hover { background: var(--call-hover); }

.cta-group { display: flex; flex-direction: column; gap: 12px; }
.cta-group .btn { width: 100%; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 3px solid var(--brand);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }

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

.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* Logos: altura fixa, largura proporcional; max-width evita empurrar o telefone no celular */
.logo-header { height: 40px; width: auto; max-width: 140px; object-fit: contain; object-position: left center; }
.logo-footer { height: 48px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }

.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); text-decoration: none; font-weight: 700; font-size: .98rem; white-space: nowrap;
  background: var(--call); padding: 8px 14px; border-radius: 999px;
}
.header__phone:hover { background: var(--call-hover); }
.header__phone .ico { width: 18px; height: 18px; }
.header__phone-text { line-height: 1.15; }
.header__phone-text small { display: none; font-weight: 500; font-size: .7rem; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- 5. Hero ---------- */
/* HERO: trocar imagem em assets/img/hero/hero-bg.jpg e ajustar --hero-overlay para a imagem aparecer mais ou menos */
.hero {
  --hero-overlay: .80;       /* 0.70 = imagem mais visível | 0.88 = quase só textura */
  --hero-brightness: .85;    /* escurece a própria foto antes do overlay (1 = original) */

  position: relative;
  isolation: isolate;        /* camadas ::before/::after ficam atrás do conteúdo */
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: var(--dark); /* fallback enquanto a imagem carrega */
  padding: 48px 0 56px;
}

/* Camada 1: a foto de fundo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/hero/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(var(--hero-brightness)) saturate(.85);
}

/* Placeholder: o main.js adiciona esta classe se hero-bg.jpg não existir.
   Quando a imagem real estiver na pasta, o placeholder deixa de ser usado sozinho. */
.hero--placeholder::before {
  background-image: url("https://placehold.co/1920x1080/111111/F5B70A?text=HERO");
}

/* Camada 2: overlay escuro, um pouco mais forte embaixo para os botões saltarem */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, var(--hero-overlay)) 0%,
    rgba(17, 17, 17, calc(var(--hero-overlay) + .08)) 100%
  );
}

.hero__inner { max-width: 860px; text-align: center; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--brand);
  background: rgba(245, 183, 10, .12); border: 1px solid rgba(245, 183, 10, .35);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); animation: pulse 2s infinite; }

.hero__title { color: var(--white); font-size: clamp(1.85rem, 7vw, 3.2rem); letter-spacing: -.01em; margin-bottom: 16px; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hl { color: var(--brand); }

.hero__subtitle { font-size: clamp(1rem, 2.8vw, 1.18rem); color: rgba(255, 255, 255, .88); max-width: 680px; margin: 0 auto 28px; }

.seals { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 24px; font-size: .9rem; font-weight: 500; }
.seals li { display: inline-flex; align-items: center; gap: 6px; }
.seals .ico { color: var(--brand); width: 18px; height: 18px; }

/* ---------- 6. Barra de diferenciais ---------- */
.features { background: var(--brand); }
.features__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding-top: 22px; padding-bottom: 22px; }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--dark); font-weight: 700; font-size: .92rem; line-height: 1.25; }
.feature__ico { width: 34px; height: 34px; }

/* ---------- 7. Seções genéricas ---------- */
.section { padding: 56px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 8px; }

/* ---------- 8. Serviços ---------- */
.services { background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(17, 17, 17, .12); }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--dark); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.card__body p { font-size: .93rem; flex: 1; }
.card__cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-weight: 700; font-size: .95rem; color: var(--dark); text-decoration: none;
  border-bottom: 2px solid var(--whatsapp); padding: 4px 0;
}
.card__cta .ico { color: #128C4A; }
.card__cta:hover { color: #128C4A; }

.card--cta { background: var(--dark); border-color: var(--dark); color: rgba(255, 255, 255, .85); }
.card--cta .card__body { justify-content: center; padding: 26px 22px; }
.card--cta h3 { color: var(--white); font-size: 1.3rem; }
.card--cta__ico { width: 40px; height: 40px; color: var(--brand); margin-bottom: 12px; }
.card--cta .btn { margin-top: 4px; }

/* ---------- 9. Por que escolher / depoimentos ---------- */
.why__inner { display: grid; gap: 32px; }
.checklist { display: grid; gap: 12px; margin-top: 18px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ico { width: 22px; height: 22px; margin-top: 2px; padding: 4px; border-radius: 50%; background: var(--brand); color: var(--dark); }
.checklist strong { color: var(--dark); }

.why__reviews { display: grid; gap: 16px; }
.review {
  margin: 0; padding: 22px; background: var(--white);
  border: 1px solid var(--border); border-left: 5px solid var(--brand); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.review__stars { display: flex; gap: 2px; color: var(--brand); margin-bottom: 10px; }
.review__stars .ico { width: 18px; height: 18px; }
.review blockquote { margin: 0 0 14px; color: var(--dark); font-size: 1rem; }
.review blockquote p { margin: 0; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--brand); }
.review__author strong { display: block; color: var(--dark); line-height: 1.2; }
.review__author small { color: var(--muted); font-size: .82rem; }

/* ---------- 10. CTA final ---------- */
.final-cta { background: var(--brand); padding: 56px 0; text-align: center; }
.final-cta__inner { max-width: 820px; }
.final-cta h2 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); }
.final-cta p { color: var(--dark); font-weight: 500; margin-bottom: 26px; }
.final-cta .btn--whatsapp { box-shadow: 0 8px 22px rgba(17, 17, 17, .2); }

/* ---------- 11. Rodapé ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .78); padding: 44px 0 96px; font-size: .95rem; }
.footer__inner { display: grid; gap: 28px; }
.footer__brand p { margin: 12px 0 0; max-width: 320px; }
.footer__contact { display: grid; gap: 12px; }
.footer__contact li { display: flex; align-items: center; gap: 10px; word-break: break-word; }
.footer__contact .ico { color: var(--brand); }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { color: var(--brand); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); color: var(--white);
  transition: background-color .15s ease, color .15s ease;
}
.footer__social a:hover { background: var(--brand); color: var(--dark); border-color: var(--brand); }
.footer__copy { max-width: 1180px; margin: 32px auto 0; padding: 20px var(--gutter) 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; text-align: center; }

/* ---------- 12. WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  animation: pulse 2.4s infinite;
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 32px; height: 32px; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- 13. Responsivo ---------- */
@media (min-width: 400px) {
  .header__phone-text small { display: block; }
}

@media (min-width: 560px) {
  .cta-group { flex-direction: row; justify-content: center; }
  .cta-group .btn { width: auto; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  :root { --header-h: 76px; --gutter: 24px; }
  .logo-header { height: 52px; max-width: 220px; }
  .logo-footer { height: 55px; max-width: 220px; }
  .header__phone { font-size: 1.1rem; padding: 10px 20px; }
  .hero { padding: 88px 0 96px; }
  .features__list { grid-template-columns: repeat(4, 1fr); }
  .feature { flex-direction: row; justify-content: center; text-align: left; font-size: 1rem; gap: 10px; }
  .section { padding: 80px 0; }
  .final-cta { padding: 80px 0; }
  .footer__inner { grid-template-columns: 1.3fr 1fr auto; align-items: start; }
  .site-footer { padding-bottom: 32px; }
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .why__inner { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
  /* Hero ocupa a tela toda no desktop (descontando o header); no mobile a altura segue o conteúdo */
  .hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
  .wa-float { right: 24px; bottom: 24px; width: 64px; height: 64px; }
}

/* Respeita quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
