/* =========================================================================
   BRASÃO AQUECEDORES — Assistência técnica de aquecedor de piscina
   Folha de estilo autocontida. Reconstruída do export Duda.
   ========================================================================= */

:root {
  --brand: #a32024;          /* vermelho principal */
  --brand-dark: #7d1a1d;
  --brand-grad-1: #c0392b;   /* gradiente dos botões */
  --brand-grad-2: #a0281b;
  --accent: #f08c29;         /* laranja de destaque */
  --wa-green: #1fbf52;       /* CTA WhatsApp */
  --wa-green-dark: #17a344;
  --ink: #23303a;
  --muted: #6c7a89;
  --line: #e7e9ee;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --dark: #1c1013;           /* fundo escuro (hero/sobre/footer) */
  --star: #fbbc04;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
section[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: #fff; }
.section-title { text-align: center; font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; letter-spacing: .5px; margin: 0 0 12px; line-height: 1.15; }
.section-title .hl { color: var(--brand); }
.section--dark .section-title .hl { color: var(--accent); }
.section-sub { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 40px; }
.section--dark .section-sub { color: #d7d2d3; }

/* ---------------- Botões ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .3px; text-decoration: none; padding: 14px 26px; border-radius: 10px; border: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .3s ease; }
.btn svg { width: 20px; height: 20px; }
.btn--wa { background: var(--wa-green); color: #fff; box-shadow: 0 8px 22px rgba(31, 191, 82, .35); }
.btn--wa:hover { background: var(--wa-green-dark); transform: translateY(-2px); }
.btn--brand { background: radial-gradient(circle, var(--brand-grad-1) 0%, var(--brand-grad-2) 100%); color: #fff; box-shadow: 0 8px 22px rgba(163, 32, 36, .3); }
.btn--brand:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(163, 32, 36, .45); }
.btn--sm { padding: 11px 18px; font-size: .82rem; }
.btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; max-width: var(--maxw); margin: 0 auto; }
.site-header__logo img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; transition: color .2s; }
.site-nav a:hover { color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; fill: var(--brand); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .site-header.open .site-nav { max-height: 360px; }
  .site-nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; background: linear-gradient(135deg, #2a1416, var(--dark) 60%, #120a0c); color: #fff; text-align: center; padding: 70px 20px 80px; overflow: hidden; }
.hero::after { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 32, 36, .5), transparent 70%); top: -160px; right: -120px; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero__logo { height: 96px; width: auto; margin-bottom: 4px; }
.hero__title { font-size: clamp(1.7rem, 4.6vw, 2.9rem); font-weight: 700; text-transform: uppercase; line-height: 1.12; margin: 0; }
.hero__title .accent { color: var(--accent); }
.hero__subtitle { font-size: 1.12rem; color: #ece7e8; margin: 0; max-width: 640px; }
.hero__bullets { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 0; margin: 6px 0 8px; }
.hero__bullets li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: #fff; }
.hero__bullets svg { width: 20px; height: 20px; fill: var(--wa-green); flex-shrink: 0; }

/* ---------------- Marcas autorizadas ---------------- */
.brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 44px; margin: 0 auto 36px; max-width: 1000px; }
.brands img { height: 60px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s, transform .3s; }
.brands img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.05); }

/* ---------------- Problemas ---------------- */
.problems-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.problem-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, border-color .3s; }
.problem-card:hover { transform: translateY(-6px); border-color: rgba(163, 32, 36, .3); box-shadow: 0 16px 34px rgba(0, 0, 0, .12); }
.problem-card__icon { width: 64px; height: 64px; object-fit: contain; }
.problem-card h3 { font-size: 1rem; text-transform: uppercase; margin: 0; letter-spacing: .4px; min-height: 2.4em; display: flex; align-items: center; }
.problem-card .btn { margin-top: auto; }

/* ---------------- Serviços (carrossel) ---------------- */
.svc-carousel { max-width: 1100px; margin: 0 auto; position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.svc-track { display: flex; transition: transform .6s cubic-bezier(.25, 1, .5, 1); }
.svc-slide { min-width: 100%; display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.svc-slide:nth-child(even) .svc-content { order: 2; }
.svc-content { background: var(--brand); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 44px; text-align: center; }
.svc-content h3 { font-size: 1.6rem; text-transform: uppercase; margin: 0; }
.svc-content p { margin: 0; max-width: 90%; color: #ffe9e9; }
.svc-image { background-size: cover; background-position: center; background-color: #e0e0e0; }
.svc-nav { display: flex; justify-content: center; gap: 10px; padding: 20px 0 0; }
.svc-dot { width: 12px; height: 12px; border-radius: 50%; background: #ccc; border: none; cursor: pointer; padding: 0; transition: background .3s, transform .3s; }
.svc-dot.active { background: var(--brand); transform: scale(1.2); }
.svc-intro { text-align: center; max-width: 780px; margin: 40px auto 0; }
.svc-intro strong { color: var(--brand); }
.svc-intro .lead { font-size: 1.25rem; font-weight: 600; }
.svc-intro .note { font-size: .85rem; color: var(--muted); }

/* ---------------- Benefícios piscina (3 ícones) ---------------- */
.pool-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pool-benefit { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pool-benefit svg { width: 68px; height: 68px; fill: var(--accent); }
.section--dark .pool-benefit svg { fill: var(--accent); }
.pool-benefit h3 { text-transform: uppercase; font-size: 1.15rem; margin: 0; }
.pool-benefit p { margin: 0; color: #d7d2d3; max-width: 300px; }

/* ---------------- Por que (4 cards) ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-card { background: #fff; border-radius: var(--radius); padding: 36px 26px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; transition: transform .3s, box-shadow .3s; }
.why-card:hover { transform: translateY(-8px); box-shadow: 0 18px 38px rgba(0, 0, 0, .1); }
.why-card__icon { width: 60px; height: 60px; color: var(--brand); margin-bottom: 18px; }
.why-card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { text-transform: uppercase; font-size: 1.1rem; margin: 0 0 12px; letter-spacing: .4px; }
.why-card p { color: var(--muted); font-size: .92rem; margin: 0 0 24px; flex-grow: 1; }

/* ---------------- Sobre ---------------- */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: center; }
.about__logo { justify-self: center; }
.about__logo img { max-width: 240px; }
.about h2 { text-transform: uppercase; font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 8px; }
.about .brand-name { color: var(--accent); font-weight: 700; text-transform: uppercase; margin: 0 0 18px; letter-spacing: 1px; }
.about p { color: #e6e0e1; margin: 0 0 16px; text-align: justify; }
.about p u { text-decoration-color: var(--accent); }

/* ---------------- Depoimentos (Google reviews marquee) ---------------- */
.reviews-mask { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.reviews-track { display: flex; gap: 20px; width: max-content; animation: reviews-scroll 40s linear infinite; }
.reviews-track:hover { animation-play-state: paused; }
@keyframes reviews-scroll { to { transform: translateX(calc(-50% - 10px)); } }
.review-card { width: 360px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); display: flex; flex-direction: column; gap: 12px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.review-user { flex-grow: 1; display: flex; flex-direction: column; line-height: 1.3; }
.review-user b { font-weight: 600; font-size: .95rem; }
.review-user span { color: var(--muted); font-size: .8rem; }
.review-g { width: 22px; height: 22px; flex-shrink: 0; }
.review-stars { display: flex; gap: 2px; color: var(--star); }
.review-stars svg { width: 17px; height: 17px; fill: currentColor; }
.review-text { color: var(--ink); font-size: .95rem; line-height: 1.55; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; font-size: 1.02rem; font-weight: 600; color: var(--brand); transition: background .25s; }
.faq-q:hover, .faq-item.active .faq-q { background: #fbf7f7; }
.faq-icon { font-size: 1.5rem; font-weight: 300; color: var(--brand); transition: transform .3s; line-height: 1; flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-a-wrap { max-height: 0; overflow: hidden; transition: max-height .35s ease; background: #fafafa; }
.faq-a { padding: 0 24px 22px; color: #444; font-size: .95rem; line-height: 1.7; }
.faq-a strong { color: var(--brand); }
.faq-a ul { margin: 10px 0 0; padding-left: 20px; }
.faq-a li { margin-bottom: 8px; }

/* ---------------- Footer ---------------- */
.site-footer { background: #140b0d; color: #cfc7c8; padding: 50px 20px 30px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer img.footer-logo { height: 70px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; text-transform: uppercase; font-size: 1rem; margin: 0 0 16px; letter-spacing: .5px; }
.site-footer a { color: #cfc7c8; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-contact p { margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }
.footer-bottom { max-width: var(--maxw); margin: 30px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; font-size: .82rem; color: #9a9092; }
.footer-bottom a { color: var(--accent); }

/* ---------------- Modal WhatsApp ---------------- */
.wa-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 99999; align-items: center; justify-content: center; padding: 16px; animation: wa-fade .3s ease; }
.wa-overlay.open { display: flex; }
@keyframes wa-fade { from { opacity: 0; } to { opacity: 1; } }
.wa-modal { width: 360px; max-width: 100%; background: #e5ddd5; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 40px rgba(0, 0, 0, .4); display: flex; flex-direction: column; animation: wa-up .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes wa-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.wa-head { background: #075e54; color: #fff; padding: 15px; display: flex; align-items: center; gap: 14px; position: relative; }
.wa-avatar { width: 42px; height: 42px; background: #fff; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-avatar img { width: 92%; height: 92%; object-fit: contain; }
.wa-head h4 { margin: 0; font-size: 16px; }
.wa-head p { margin: 0; font-size: 12px; color: #d1d1d1; }
.wa-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.wa-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #e5ddd5; }
.wa-msg { background: #fff; padding: 12px 15px; border-radius: 0 10px 10px 10px; font-size: 14px; color: #333; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); line-height: 1.45; }
.wa-form { display: flex; flex-direction: column; gap: 10px; }
.wa-input { padding: 12px; border: 1px solid #ccc; border-radius: 20px; outline: none; font-size: 14px; font-family: inherit; }
.wa-input:focus { border-color: var(--wa-green); }
.wa-submit { background: var(--wa-green); color: #fff; border: none; padding: 13px; border-radius: 20px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .3s; }
.wa-submit:hover { background: var(--wa-green-dark); }
.wa-submit:disabled { opacity: .7; cursor: default; }
.wa-watermark { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 11px; color: #666; }
.wa-watermark img { height: 30px; width: auto; }

/* ---------------- Responsivo ---------------- */
@media (max-width: 1024px) {
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .svc-slide { grid-template-columns: 1fr; }
  .svc-slide:nth-child(even) .svc-content { order: 0; }
  .svc-image { min-height: 240px; }
  .pool-benefits { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about__logo img { max-width: 180px; }
  .about p { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-contact p { justify-content: center; }
}
@media (max-width: 600px) {
  .problems-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .brands img { height: 46px; }
}
