/* ==========================================================================
   ALEX RESFRIAR — Design System
   Conceito: painel técnico de refrigeração. A "assinatura" visual é a linha
   pontilhada com nós (circuito de refrigerante) que conecta ícones e divide
   seções — remete a um diagrama de tubulação/circuito de gás refrigerante.
   ========================================================================== */

:root {
  /* Cor */
  --ink:        #081418;   /* texto principal, petróleo bem escuro */
  --bg:         #E4EDED;   /* fundo em tom acinzentado-teal, mais denso que branco-gelo */
  --panel:      #F3F8F8;
  --primary:    #0B6068;   /* teal mais profundo */
  --primary-dk: #06181C;   /* petróleo quase preto — header/footer/CTA */
  --accent:     #E5501C;   /* laranja mais queimado */
  --steel:      #435559;   /* texto secundário, mais escuro */
  --line:       #C3D4D4;   /* divisores */
  --whatsapp:   #1FA855;

  /* Tipografia */
  --f-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --f-body:    'IBM Plex Sans', Arial, sans-serif;
  --f-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius: 10px;
  --shadow: 0 12px 30px -14px rgba(10, 46, 51, 0.28);
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--steel); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--primary-dk); color: #EAF3F3; }
.section--dark p { color: #B9D3D3; }
.section--panel { background: var(--panel); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.section--dark .eyebrow { color: #6FE0E8; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-whats {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(34,195,94,.6);
}
.btn-whats:hover { box-shadow: 0 14px 26px -10px rgba(34,195,94,.75); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: inherit;
}
.section:not(.section--dark) .btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-icon { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(228,237,237,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
/* Altura fixa + largura automática = a logo nunca fica esmagada,
   seja ela quadrada, comprida ou alta. Para aumentar/diminuir,
   mude APENAS o valor de "height" abaixo. */
.brand .logo-mark { height: 52px; width: auto; max-width: 240px; flex: none; display: block; object-fit: contain; }
.brand small { display: block; font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: .1em; color: var(--steel); font-weight: 400; }
@media (max-width: 600px) { .brand .logo-mark { height: 40px; max-width: 170px; } }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink); position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }
.nav-drop { position: relative; }
.nav-drop-panel {
  position: absolute; top: 130%; left: 50%; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; min-width: 280px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .15s ease;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; }
.nav-drop-panel a { display: block; padding: 8px 10px; border-radius: 6px; font-size: 0.85rem; }
.nav-drop-panel a:hover { background: var(--bg); color: var(--primary); }
.nav-drop-panel a::after { display: none; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link { font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink); display: none; }
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer; width: 30px; height: 22px;
  flex-direction: column; justify-content: space-between; padding: 0;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (min-width: 860px) { .phone-link { display: inline-block; } }

.header-social { display: none; align-items: center; gap: 8px; }
.header-social a {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--steel);
  transition: border-color .15s ease, color .15s ease;
}
.header-social a:hover { border-color: var(--primary); color: var(--primary); }
.header-social svg { width: 14px; height: 14px; }
@media (min-width: 1080px) { .header-social { display: flex; } }

/* ---------- Marcas atendidas ---------- */
.brands-block { margin: 28px 0; }
.brands-block h4 { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: 12px; font-weight: 500; }
.brand-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chip {
  font-family: var(--f-body); font-size: 0.85rem; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px;
}
.brands-note { font-size: 0.78rem; color: var(--steel); margin-top: 12px; }

/* ---------- Watermark de ícone no hero das páginas de serviço ---------- */
.service-hero { position: relative; overflow: hidden; }
.service-watermark {
  position: absolute; top: 50%; right: -60px; transform: translateY(-50%);
  width: 480px; height: 480px; color: var(--ink); opacity: 0.05; pointer-events: none; z-index: 0;
}
.service-watermark svg { width: 100%; height: 100%; }
.service-hero .container { position: relative; z-index: 1; }
@media (max-width: 900px) { .service-watermark { width: 340px; height: 340px; right: -100px; } }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.hero-badge {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .05em;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--steel);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

/* ---------- Gauge stats ---------- */
.gauge-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -1px; }
.gauge-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 20px; position: relative;
}
.gauge-card::before {
  content: ""; position: absolute; top: 10px; right: 12px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.gauge-num { font-family: var(--f-mono); font-size: 1.9rem; color: var(--primary); font-weight: 700; }
.gauge-label { font-size: 0.82rem; color: var(--steel); margin-top: 4px; }

/* ---------- Circuito divisor (assinatura visual) ---------- */
.circuit-divider { display: flex; align-items: center; gap: 10px; margin: 8px 0 44px; color: var(--line); }
.circuit-divider::before, .circuit-divider::after {
  content: ""; flex: 1; height: 0; border-top: 1px dashed var(--line);
}
.circuit-divider .node { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.section--dark .circuit-divider,
.section--dark .circuit-divider::before,
.section--dark .circuit-divider::after { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.18); }

/* ---------- Cards de serviço ---------- */
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-icon { width: 46px; height: 46px; color: var(--primary); margin-bottom: 16px; }
.service-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.service-card p { font-size: 0.92rem; margin-bottom: 18px; flex: 1; }
.service-link { font-family: var(--f-mono); font-size: 0.8rem; color: var(--accent); font-weight: 600; }

/* ---------- Por que escolher ---------- */
.grid-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-icon { width: 34px; height: 34px; color: var(--accent); flex: none; }
.why-item h4 { margin-bottom: 4px; font-size: 1rem; }
.why-item p { font-size: 0.88rem; margin: 0; }

/* ---------- CTA banda ---------- */
.cta-band { border-radius: 18px; background: var(--primary-dk); padding: 46px 40px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 6px; color: #fff; }
.cta-band p { color: #B9D3D3; margin: 0; }

/* ---------- Página de serviço ---------- */
.service-hero { padding: 46px 0 10px; }
.service-hero .lead { font-size: 1.08rem; color: var(--ink); max-width: 62ch; }
.benefits-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 26px 0 8px; }
.benefits-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.benefits-list svg { width: 20px; height: 20px; color: var(--primary); flex: none; margin-top: 2px; }

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; font-family: var(--f-body);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--f-mono); font-size: 1.3rem; color: var(--primary); flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq p { padding-bottom: 16px; margin: 0; }

.related-services { display: flex; flex-wrap: wrap; gap: 10px; }
.related-services a {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 0.85rem;
}
.related-services a:hover { border-color: var(--primary); color: var(--primary); }

.breadcrumb { font-family: var(--f-mono); font-size: 0.76rem; color: var(--steel); margin-bottom: 18px; }
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Formulário de contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  font-family: var(--f-body); font-size: 0.95rem; background: var(--panel); color: var(--ink);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.contact-info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info-item svg { width: 24px; height: 24px; color: var(--primary); flex: none; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.map-frame iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dk); color: #B9D3D3; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--f-mono); margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
/* Mesma regra do topo: mude só o "height" para ajustar o tamanho. */
.footer-brand .logo-mark { height: 48px; width: auto; max-width: 220px; display: block; object-fit: contain; }
.footer-brand span { font-family: var(--f-display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.social-row svg { width: 16px; height: 16px; }
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(34,195,94,.65);
}
.whats-float svg { width: 30px; height: 30px; color: #fff; }
.whats-float .pulse {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp);
  animation: pulse-ring 2.2s cubic-bezier(.4,0,.3,1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whats-float .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .gauge-row { grid-template-columns: repeat(3, 1fr); }
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .grid-why { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px);
    background: var(--bg); flex-direction: column;
    align-items: flex-start; padding: 24px; gap: 18px; transform: translateX(100%);
    transition: transform .25s ease; overflow-y: auto; z-index: 200; }
  .nav.is-open { transform: translateX(0); }
  .nav-drop-panel { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: none; grid-template-columns: 1fr; display: none; }
  .nav-drop.is-open .nav-drop-panel { display: grid; }
  .menu-toggle { display: flex; }
  .header-cta .btn-whats span { display: none; }
  .gauge-row { grid-template-columns: 1fr; }
  .grid-services { grid-template-columns: 1fr; }
  .grid-why { grid-template-columns: 1fr; }
  .benefits-list { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Processo (como funciona) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.process-step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.process-step .step-num {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--accent);
  display: block; margin-bottom: 8px;
}
.process-step h4 { font-family: var(--f-display); font-size: 1.02rem; margin: 0 0 6px; color: var(--ink); }
.process-step p { font-size: .88rem; color: var(--steel); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- Sinais de alerta (checklist) ---------- */
.signs-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.signs-list li {
  display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.signs-list li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 8px;
  background: var(--accent); border-radius: 50%;
}
@media (max-width: 760px) { .signs-list { grid-template-columns: 1fr; } }

/* ---------- Áreas atendidas ---------- */
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.area-chip {
  font-size: .85rem; color: var(--ink); border: 1px solid var(--line);
  background: var(--panel); border-radius: 6px; padding: 7px 13px;
}

/* ---------- Bloco de texto longo (SEO/AEO) ---------- */
.prose { max-width: 68ch; }
.prose p { color: var(--steel); margin: 0 0 16px; line-height: 1.75; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose h3 {
  font-family: var(--f-display); font-size: 1.15rem; color: var(--ink);
  margin: 28px 0 10px;
}

/* ---------- Destaque de resposta direta (AEO) ---------- */
.answer-box {
  border-left: 3px solid var(--accent); background: var(--panel);
  padding: 18px 22px; margin: 26px 0; border-radius: 0 8px 8px 0;
}
.answer-box p { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.65; }
.answer-box .answer-label {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 8px;
}
