/* Arraia Clean — limpeza de placas solares
   Paleta extraida da logomarca: vermelho + azul-marinho + agua */
:root {
  --red:        #C81E2D;
  --red-dark:   #8E1420;
  --red-light:  #EF4444;
  --navy:       #0B1F3A;
  --navy-2:     #13294B;
  --cyan:       #22A8D6;
  --cyan-light: #67D3F0;
  --green:      #16A34A;
  --green-light:#22C55E;

  --bg:        #FAFBFC;
  --bg-soft:   #F1F6FA;      /* azul agua bem claro */
  --bg-deep:   #0B1F3A;      /* faixa escura */
  --card:      #FFFFFF;
  --border:    #E5E7EB;
  --text:      #0F172A;
  --text-2:    #334155;
  --muted:     #64748B;
  --danger:    #DC2626;
  --warn:      #D97706;

  --radius:    16px;
  --shadow-sm: 0 2px 8px rgba(11,31,58,.06);
  --shadow:    0 10px 30px rgba(11,31,58,.10);
  --shadow-lg: 0 20px 50px rgba(11,31,58,.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
body { padding-bottom: env(safe-area-inset-bottom, 0); }
@supports (backdrop-filter: blur(12px)) {
  @media (min-width: 861px) {
    .site-header { backdrop-filter: blur(12px); background: rgba(255,255,255,.92); }
  }
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  color: var(--text); font-weight: 800; letter-spacing: -.2px;
}
.brand img { height: 54px; width: auto; border-radius: 8px; }
.brand div { line-height: 1.15; }
.brand small {
  display: block; font-size: 11.5px; color: var(--muted);
  font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
}
nav.main { display: flex; align-items: center; }
nav.main a {
  color: var(--text-2); margin-left: 26px; font-weight: 600; font-size: 15px;
  position: relative;
}
nav.main a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--red); transition: width .2s;
}
nav.main a:hover { color: var(--text); }
nav.main a:hover::after { width: 100%; }

.hamburger {
  display: none; background: transparent; border: none; cursor: pointer;
  padding: 8px; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.hamburger span {
  display: block; width: 26px; height: 3px;
  background: var(--navy); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
body.no-scroll { overflow: hidden; }

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  font-weight: 700; cursor: pointer; border: none; transition: all .2s;
  font-size: 15px; letter-spacing: .2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: #fff; box-shadow: 0 6px 20px rgba(200,30,45,.35);
}
.btn-primary:hover {
  transform: translateY(-2px); color: #fff;
  box-shadow: 0 10px 28px rgba(200,30,45,.45);
}
.btn-navy {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: #fff; box-shadow: 0 6px 20px rgba(11,31,58,.35);
}
.btn-navy:hover { transform: translateY(-2px); color: #fff; }
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  color: #fff; box-shadow: 0 6px 20px rgba(34,168,214,.35);
}
.btn-cyan:hover { transform: translateY(-2px); color: #fff; }
.btn-whats {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: #fff; box-shadow: 0 6px 20px rgba(22,163,74,.35);
}
.btn-whats:hover { transform: translateY(-2px); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--text); border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-ghost-light {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }

/* --- Hero --- */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 84px;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(200,30,45,.35), transparent 60%),
    radial-gradient(700px 460px at -5% 20%, rgba(34,168,214,.28), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #071528 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(500px) rotateX(58deg) translateY(30%);
  transform-origin: bottom;
  opacity: .5; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  font-size: 12.5px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  font-size: 54px; line-height: 1.08; margin: 0 0 22px;
  font-weight: 800; letter-spacing: -1px; color: #fff;
}
.hero h1 .red {
  background: linear-gradient(135deg, #FF6B6B, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .water {
  background: linear-gradient(135deg, var(--cyan-light), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 19px; color: rgba(255,255,255,.85); max-width: 660px; margin: 0 0 36px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px; margin-top: 62px;
}
.metric strong {
  display: block; font-size: 38px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #FF6B6B, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric span { color: rgba(255,255,255,.7); font-size: 14px; font-weight: 500; }

/* --- Sections --- */
section.block { padding: 80px 0; }
section.block.alt  { background: var(--bg-soft); }
section.block.deep { background: var(--bg-deep); color: #fff; }
section.block.deep h2, section.block.deep h3 { color: #fff; }
section.block.deep .sub { color: rgba(255,255,255,.65); }
section.block h2 {
  font-size: 38px; margin: 0 0 14px; font-weight: 800; letter-spacing: -.5px;
}
section.block .sub {
  color: var(--muted); margin-bottom: 48px; max-width: 680px; font-size: 17px;
}
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* --- Cards --- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: rgba(200,30,45,.35);
}
.deep .card {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
}
.deep .card p { color: rgba(255,255,255,.72); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(200,30,45,.28);
}
.card.cyan  .icon { background: linear-gradient(135deg, var(--cyan-light), var(--cyan)); box-shadow: 0 8px 20px rgba(34,168,214,.28); }
.card.navy  .icon { background: linear-gradient(135deg, var(--navy-2), var(--navy));     box-shadow: 0 8px 20px rgba(11,31,58,.28); }
.card.green .icon { background: linear-gradient(135deg, var(--green-light), var(--green)); box-shadow: 0 8px 20px rgba(22,163,74,.28); }
.card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.card p  { margin: 0; color: var(--text-2); font-size: 15px; }
.card ul { margin: 14px 0 0; padding-left: 0; list-style: none; }
.card ul li {
  position: relative; padding-left: 24px; margin-bottom: 8px;
  font-size: 14.5px; color: var(--text-2);
}
.card ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 800;
}
.deep .card ul li { color: rgba(255,255,255,.75); }

/* --- Passo a passo --- */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; background: var(--card);
        border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-light), var(--red));
  color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(200,30,45,.3);
}
.step h4 { margin: 10px 0 8px; font-size: 17px; }
.step p { margin: 0; font-size: 14.5px; color: var(--text-2); }

/* --- Antes / depois e galeria --- */
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--card); border: 1px solid var(--border);
}
.g-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.g-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px; font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(11,31,58,.85));
}

/* --- Simulador --- */
.calc-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.calc-box, .result-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm);
}
.result-box.filled {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; border-color: transparent; box-shadow: var(--shadow);
}
.result-price {
  font-size: 46px; font-weight: 800; line-height: 1.1; margin: 6px 0 2px;
  background: linear-gradient(135deg, #FF6B6B, var(--red-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result-line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14.5px;
}
.result-line:last-child { border-bottom: none; }
.result-line span { color: rgba(255,255,255,.65); }
.result-line strong { font-weight: 700; }
.badge-eco {
  display: inline-block; margin-top: 16px; padding: 10px 14px; border-radius: 12px;
  background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.35);
  color: #86EFAC; font-size: 13.5px; font-weight: 600;
}

/* --- Forms --- */
.form-row { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row label {
  display: block; font-size: 14px; color: var(--text-2);
  margin-bottom: 7px; font-weight: 600;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: #fff; border: 1.5px solid var(--border);
  color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(200,30,45,.12);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.flash { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.flash.success { background: #DCFCE7; border: 1px solid var(--green-light); color: #14532D; }
.flash.error   { background: #FEE2E2; border: 1px solid var(--danger);      color: #7F1D1D; }

/* --- FAQ --- */
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--text-2); font-size: 15px; }

/* --- CTA faixa --- */
.cta-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 46px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 30px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }

/* --- Footer --- */
footer {
  border-top: 4px solid var(--red);
  padding: 44px 0 30px; margin-top: 0;
  background: var(--navy); color: rgba(255,255,255,.65); font-size: 14px;
}
footer .inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 26px; }
footer a { color: rgba(255,255,255,.8); }
footer a:hover { color: #fff; }
footer strong { color: #fff; }

/* --- Botao flutuante WhatsApp --- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(18,140,126,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* --- Tabelas (admin) --- */
table { width: 100%; border-collapse: collapse; background: var(--card);
        border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
th, td { padding: 12px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-soft); font-weight: 700; color: var(--text-2); font-size: 13px;
     text-transform: uppercase; letter-spacing: .4px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFBFC; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px;
        font-size: 12px; font-weight: 700; }
.pill.novo, .pill.pendente     { background: #FEE2E2; color: #991B1B; }
.pill.negociando, .pill.contato{ background: #FEF3C7; color: #92400E; }
.pill.fechado, .pill.ganho     { background: #DCFCE7; color: #166534; }
.pill.perdido, .pill.descartado{ background: #E2E8F0; color: #475569; }

/* --- Admin bar --- */
.admin-bar { background: var(--navy); color: #F1F5F9; border-bottom: 3px solid var(--red); }
.admin-bar .container { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 10px 24px; }
.admin-bar a { color: #CBD5E1; font-weight: 600; font-size: 14px; padding: 4px 0;
               border-bottom: 2px solid transparent; }
.admin-bar a:hover { color: #fff; border-bottom-color: var(--red); }
.stat-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 30px; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.stat strong { display: block; font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* --- Responsivo --- */
@media (max-width: 980px) {
  .calc-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero { padding: 66px 0 58px; }
  .hero h1 { font-size: 36px; }
  .hero::before { opacity: .25; }
  section.block { padding: 58px 0; }
  section.block h2 { font-size: 28px; }
  .brand img { height: 42px; }
  .brand small { display: none; }
  .brand div { font-size: 14px; }

  .hamburger { display: flex; }
  nav.main {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 80vw; max-width: 320px;
    background: #fff; flex-direction: column;
    padding: 80px 24px 30px;
    box-shadow: -10px 0 30px rgba(0,0,0,.25);
    transform: translateX(100%); transition: transform .3s ease;
    z-index: 60; align-items: stretch; overflow-y: auto;
  }
  nav.main.open { transform: translateX(0); }
  nav.main a { margin: 0 0 18px 0; padding: 12px 0; font-size: 17px;
               border-bottom: 1px solid var(--border); }
  nav.main a::after { display: none; }
  nav.main .btn { margin: 8px 0; width: 100%; text-align: center; }

  .grid, .grid-2, .form-grid { grid-template-columns: 1fr !important; }
  .cta-band { padding: 32px; }
  table { font-size: 13px; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 16px; }
  section.block h2 { font-size: 24px; }
  .result-price { font-size: 36px; }
  .btn { padding: 12px 20px; font-size: 14px; }
}
