/* =========================================================
   Higiecon Hidráulica — styles.css (versão corrigida)
   ========================================================= */

:root {
  --font-sans: 'Work Sans', system-ui, sans-serif;
  --font-display: 'Manrope', system-ui, sans-serif;

  --background: oklch(.995 .002 150);
  --foreground: oklch(.24 .025 164);
  --primary: oklch(.48 .095 162);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(.96 .008 150);
  --muted-foreground: oklch(.52 .017 160);
  --accent: oklch(.94 .023 150);
  --border: oklch(.9 .01 155);
  --inverse: oklch(1 0 0);
  --brand-dark: oklch(.28 .047 169);
  --brand-light: oklch(.86 .087 156);
  --whatsapp: #25D366;
  --hero-overlay: linear-gradient(90deg, oklch(.17 .025 166 / .94) 0%, oklch(.20 .026 166 / .85) 34%, oklch(.21 .025 166 / .35) 67%, oklch(.18 .02 166 / .05) 100%);
  --image-shade: linear-gradient(0deg, oklch(.18 .03 165 / .55), transparent 70%);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; overflow-x: clip; transform: none; filter: none; }
body { margin: 0; width: 100%; max-width: 100%; padding-top: 122px; overflow-x: clip; transform: none; filter: none; background: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--brand-light); color: var(--brand-dark); }
[hidden] { display: none !important; }

.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i.fill { fill: currentColor; }
.text-primary { color: var(--primary); }
.font-semibold { font-weight: 600; }
.mt-6 { margin-top: 24px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand-dark); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.site-container { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; font-weight: 600; font-size: 12px; white-space: nowrap; border: 1px solid transparent; transition: background .2s, transform .2s, box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { height: 48px; padding-inline: 24px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); height: 40px; padding-inline: 18px; }
.btn-primary:hover { background: color-mix(in oklch, var(--primary) 88%, black); }
.btn-hero { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 8px 20px color-mix(in oklch, var(--primary) 30%, transparent); }
.btn-hero:hover { background: color-mix(in oklch, var(--primary) 88%, black); }
.btn-glass { background: color-mix(in oklch, var(--inverse) 10%, transparent); color: var(--inverse); border-color: color-mix(in oklch, var(--inverse) 35%, transparent); backdrop-filter: blur(6px); }
.btn-glass:hover { background: color-mix(in oklch, var(--inverse) 20%, transparent); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }

/* ---------- Topbar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 34px; background: var(--brand-dark); color: var(--inverse); font-size: 11px; }
.topbar .site-container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar span, .topbar a { display: flex; align-items: center; gap: 7px; }
.topbar a { color: var(--inverse); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light); animation: pulse 2s infinite; }

/* ---------- Header ---------- */
.main-header { position: fixed; top: 34px; left: 0; right: 0; z-index: 49; background: var(--background); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.main-header.scrolled { box-shadow: 0 6px 20px color-mix(in oklch, var(--brand-dark) 10%, transparent); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; transition: height .3s; }
.main-header.scrolled .header-inner { height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand-dark); flex-shrink: 0; }
.brand-mark { width: 37px; height: 44px; }
.brand-name { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1.05; }
.brand-sub { display: block; font-size: 9px; letter-spacing: 3px; font-weight: 600; margin-top: 5px; }

/* Menu principal — mais visível */
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
  padding: 8px 2px;
  position: relative;
  transition: color .2s;
}
.desktop-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 2px; background: var(--primary); transition: width .25s; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }

.header-contact { display: flex; align-items: center; gap: 18px; min-width: 0; }
.header-phone { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.header-quote { font-size: 13px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--foreground); width: 40px; height: 40px; align-items: center; justify-content: center; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav { padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--border); font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--foreground); animation: slide-down .25s ease both; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 630px; display: flex; align-items: center; overflow: hidden; color: var(--inverse); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.06); animation: hero-zoom 14s ease-out both; }
.hero::after { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-content { position: relative; z-index: 1; padding-block: 64px 70px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-light); border: 1px solid color-mix(in oklch, var(--brand-light) 35%, transparent); border-radius: 4px; padding: 7px 10px; font-size: 10px; font-weight: 500; letter-spacing: 1.3px; }
.hero h1 { font-size: 56px; line-height: 1.13; font-weight: 700; margin: 24px 0 20px; max-width: 640px; }
.hero h1 span { color: var(--brand-light); }
.hero-copy { max-width: 560px; font-size: 18px; font-weight: 500; line-height: 1.7; color: var(--inverse); text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { display: flex; align-items: center; gap: 7px; margin-top: 17px; font-size: 11px; color: color-mix(in oklch, var(--inverse) 66%, transparent); }
.hero-metrics { display: flex; margin-top: 38px; gap: 34px; }
.metric { padding-right: 34px; border-right: 1px solid color-mix(in oklch, var(--inverse) 20%, transparent); }
.metric:last-child { border: 0; }
.metric strong { display: block; font: 700 27px var(--font-display); }
.metric span { display: block; font-size: 11px; color: color-mix(in oklch, var(--inverse) 65%, transparent); margin-top: 4px; }

/* ---------- Faixa de confiança ---------- */
.trust-band { background: var(--secondary); border-bottom: 1px solid var(--border); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 78px; align-items: center; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; font-weight: 500; }
.trust-item svg { width: 19px; height: 19px; color: var(--primary); }

/* ---------- Seções ---------- */
.section { padding-block: 92px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 1.7px; font-weight: 600; color: var(--primary); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.section h2 { font-size: 36px; line-height: 1.25; font-weight: 700; }
.section-lead { color: var(--muted-foreground); font-size: 14px; line-height: 1.8; margin-top: 16px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-heading .section-lead { margin-top: 12px; }
.text-action { color: var(--primary); font-size: 12px; display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.text-action svg { transition: transform .2s; }
.text-action:hover svg { transform: translate(3px, -3px); }

/* ---------- Serviços ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--background); transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px color-mix(in oklch, var(--brand-dark) 8%, transparent); }
.service-photo { height: 185px; overflow: hidden; position: relative; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover img { transform: scale(1.04); }
.service-photo::after { content: ''; position: absolute; inset: 0; background: var(--image-shade); }
.service-index { position: absolute; bottom: 16px; left: 20px; z-index: 1; color: var(--inverse); font-size: 11px; letter-spacing: 1px; }
.service-body { padding: 24px; }
.service-top { display: flex; align-items: center; justify-content: space-between; color: var(--primary); font-size: 9px; letter-spacing: 1px; margin-bottom: 12px; }
.service-card h3 { font-size: 19px; line-height: 1.4; font-weight: 700; min-height: 54px; }
.service-card p { color: var(--muted-foreground); font-size: 12px; line-height: 1.8; margin-top: 10px; min-height: 65px; }
.service-bottom { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--border); }
.service-card.compact .service-top { margin-bottom: 20px; }
.service-card.compact h3 { min-height: 27px; }

/* ---------- Sobre ---------- */
.about-section { background: var(--secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; height: 430px; object-fit: cover; border-radius: 6px; }
.about-photo-label { position: absolute; bottom: 24px; left: 24px; right: 24px; display: flex; align-items: center; gap: 18px; background: var(--background); padding: 20px 24px; border-radius: 4px; }
.about-photo-label strong { color: var(--primary); font: 800 37px var(--font-display); }
.about-photo-label span { font-size: 12px; line-height: 1.6; }
.about-list { display: flex; flex-direction: column; gap: 18px; margin: 24px 0 28px; }
.about-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; line-height: 1.7; }
.about-list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--primary); }

/* ---------- Área de atendimento ---------- */
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.neighborhoods { display: grid; grid-template-columns: repeat(3, 1fr); }
.neighborhood { display: flex; align-items: center; gap: 8px; padding: 17px 5px; border-bottom: 1px solid var(--border); font-size: 12px; transition: padding-left .2s, color .2s; }
.neighborhood:hover { padding-left: 10px; color: var(--primary); }
.neighborhood svg { color: var(--primary); width: 13px; }
.coverage-note { font-size: 12px; color: var(--muted-foreground); margin-top: 24px; display: flex; align-items: center; gap: 8px; }

/* ---------- Depoimentos ---------- */
.testimonials { background: var(--secondary); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.testimonial { border-top: 2px solid var(--primary); padding: 26px 24px; background: var(--background); border-radius: 0 0 6px 6px; }
.stars { color: var(--primary); display: flex; gap: 3px; }
.testimonial blockquote { font-size: 14px; line-height: 1.85; margin: 19px 0 24px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { height: 35px; width: 35px; border-radius: 50%; background: var(--accent); color: var(--primary); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.testimonial-author strong { font-size: 11px; display: block; }
.testimonial-author span { color: var(--muted-foreground); font-size: 10px; }
.sample-note { color: var(--muted-foreground); font-size: 10px; margin-top: 18px; }

/* ---------- Contato ---------- */
.contact-section { background: var(--brand-dark); color: var(--inverse); padding: 66px 0; }
.contact-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-section .eyebrow { color: var(--brand-light); }
.contact-section h2 { font-family: var(--font-display); font-size: 34px; max-width: 550px; line-height: 1.3; font-weight: 700; }
.contact-section p { font-size: 13px; line-height: 1.8; max-width: 490px; margin-top: 14px; color: color-mix(in oklch, var(--inverse) 70%, transparent); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; min-width: 230px; }

/* ---------- Rodapé ---------- */
.footer { padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 54px; padding-bottom: 45px; }
.footer-description { font-size: 12px; color: var(--muted-foreground); line-height: 1.8; max-width: 280px; margin-top: 17px; }
.footer h3 { font-size: 12px; font-weight: 700; margin: 3px 0 18px; }
.footer ul { display: flex; flex-direction: column; gap: 12px; font-size: 11px; color: var(--muted-foreground); }
.footer ul a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 22px; display: flex; justify-content: space-between; color: var(--muted-foreground); font-size: 10px; }

/* ---------- WhatsApp flutuante (sempre visível) ---------- */
.whatsapp-float {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: max(26px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important; /* impede data-reveal / .btn:hover de mover o botão */
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  animation: float-pulse 2.6s infinite;
}
.whatsapp-float:hover { scale: 1.08; }
.whatsapp-float svg { width: 28px; height: 28px; color: #fff; }

/* =========================================================
   ANIMAÇÕES
   ========================================================= */
.reveal { animation: reveal-in .7s ease both; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes reveal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--brand-light) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes float-pulse { 0%, 100% { box-shadow: 0 8px 20px rgba(0,0,0,.25), 0 0 0 0 color-mix(in oklch, var(--whatsapp) 55%, transparent); } 60% { box-shadow: 0 8px 20px rgba(0,0,0,.25), 0 0 0 14px transparent; } }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (min-width: 1450px) { .hero { min-height: 680px; } }
@media (max-width: 1100px) {
  .desktop-nav { gap: 20px; } .desktop-nav a { font-size: 14px; } .header-phone { display: none; } .header-inner { gap: 20px; }
  .about-grid { gap: 45px; } .coverage-grid { gap: 40px; }
}
@media (max-width: 800px) {
  .site-container { width: calc(100% - 40px); }
  .topbar { height: 31px; font-size: 9px; } body { padding-top: 105px; } .main-header { top: 31px; } .topbar-email { display: none !important; }
  .header-inner, .main-header.scrolled .header-inner { height: 74px; }
  .brand-name { font-size: 23px; } .brand-mark { width: 31px; } .brand-sub { font-size: 8px; }
  .desktop-nav { display: none; } .menu-toggle { display: inline-flex; } .header-contact { gap: 10px; }
  .header-quote { font-size: 11px; padding-inline: 12px; }
  .hero { min-height: 620px; } .hero-image { object-position: 63% center; }
  .hero::after { background: linear-gradient(90deg, oklch(.17 .025 166 / .94), oklch(.18 .025 166 / .74) 65%, oklch(.18 .025 166 / .35)); }
  .hero-content { padding-block: 46px; } .hero h1 { font-size: 43px; max-width: 540px; } .hero-copy { font-size: 16px; max-width: 480px; } .hero-eyebrow { font-size: 9px; }
  .hero-actions { gap: 10px; } .hero-actions a { font-size: 11px; padding-inline: 16px; } .hero-metrics { gap: 22px; } .metric { padding-right: 22px; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; padding-block: 24px; } .trust-item { justify-content: flex-start; font-size: 10px; gap: 7px; }
  .section { padding-block: 60px; } .section h2 { font-size: 29px; } .section-heading { align-items: flex-start; gap: 20px; } .section-heading > .text-action { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .service-body { padding: 20px; } .service-photo { height: 170px; } .service-card h3 { font-size: 17px; }
  .about-grid { grid-template-columns: 1fr; gap: 35px; } .about-photo img { height: 360px; } .coverage-grid { grid-template-columns: 1fr; gap: 30px; }
  .testimonial-grid { grid-template-columns: 1fr; gap: 16px; } .testimonial blockquote { margin-bottom: 16px; }
  .contact-grid { flex-direction: column; align-items: flex-start; } .contact-section h2 { font-size: 29px; } .contact-actions { width: 100%; flex-direction: row; } .contact-actions a { flex: 1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 35px; } .footer-bottom { gap: 20px; line-height: 1.7; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; line-height: 1.2; margin-block: 20px 16px; } .hero { min-height: 650px; } .hero-content { padding-block: 32px; }
  .hero-copy { font-size: 15px; line-height: 1.65; } .hero-metrics { gap: 18px; margin-top: 26px; } .metric { padding-right: 18px; }
  .metric strong { font-size: 22px; white-space: nowrap; } .metric span { font-size: 9px; } .hero-actions a { font-size: 10px; gap: 7px; padding-inline: 12px; }
  .service-grid { grid-template-columns: 1fr; } .service-card h3, .service-card p { min-height: 0; } .service-photo { height: 210px; } .service-card.compact .service-top { margin-bottom: 12px; }
  .neighborhoods { grid-template-columns: repeat(2, 1fr); } .contact-actions { flex-direction: column; }
  .footer-grid { gap: 30px 20px; } .footer-grid > div:first-child { grid-column: 1 / -1; } .footer-bottom { flex-direction: column; gap: 4px; }
}

/* =========================================================
   CORREÇÃO CELULAR: nada pode passar da largura da tela
   (se algo passar, o botão fixo do WhatsApp fica fora da tela)
   ========================================================= */
@media (max-width: 800px) {
  .whatsapp-float { animation: none; width: 54px; height: 54px; }
  .hero-metrics { flex-wrap: wrap; row-gap: 16px; }
  .header-inner { gap: 10px; }
  .brand { min-width: 0; }
}
@media (max-width: 480px) {
  .whatsapp-float { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .brand-name { font-size: 20px; } .brand-mark { width: 27px; height: 34px; } .brand-sub { font-size: 7px; letter-spacing: 2px; }
  .header-contact { gap: 6px; }
  .header-quote { font-size: 10px; padding-inline: 10px; height: 36px; }
  .header-quote svg { display: none; }
}
@media (max-width: 380px) {
  .header-quote { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}