/* RR Materiais Elétricos — "Corrente Contínua"
   Fontes: https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@600;700;800&family=Work+Sans:wght@400;500;600&display=swap (carregadas no <head>) */

:root {
  --ink: #15181D;        /* grafite: texto e blocos escuros */
  --deep: #1F3FBF;       /* azul cobalto: blocos e ações secundárias */
  --deep-2: #18329A;
  --mid: #5B6573;        /* texto de apoio (6:1 sobre branco) */
  --accent: #FFC629;     /* amarelo de sinalização: só como fundo de texto escuro ou fio decorativo */
  --accent-2: #FFD65C;
  --paper: #F2F4F7;
  --white: #FFFFFF;
  --line: #D9DEE6;
  --dash: #C6CDD8;
  --on-ink: #C3CAD4;
  --on-deep: #DCE3FF;
  --erro: #B42318;
  --display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--deep); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; }
.hero :focus-visible, .sec-ink :focus-visible, .sec-cobalto .orc-copy :focus-visible, .footer :focus-visible, .wa-fab:focus-visible {
  outline-color: var(--accent);
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 16px; }

/* ── Botões ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: .02em;
  text-decoration: none; text-align: center; line-height: 1.1;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.22rem; }
.btn-full { width: 100%; }
.btn-sinal { background: var(--accent); color: var(--ink); }
.btn-sinal:hover { background: var(--accent-2); }
.btn-linha { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-linha:hover { background: var(--white); color: var(--ink); }
.btn-cobalto { background: var(--deep); color: var(--white); }
.btn-cobalto:hover { background: var(--deep-2); }

/* ── Navbar ─────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: border-color .2s ease;
}
.navbar.scrolled { border-bottom-color: var(--ink); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--display); font-weight: 700; font-size: 1.28rem; letter-spacing: .01em; white-space: nowrap; }
.brand-text span { font-size: .76rem; color: var(--mid); white-space: nowrap; }

.nav-toggle {
  display: none; width: 46px; height: 46px; flex: none;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.nav-links a:not(.btn):hover { color: var(--deep); text-decoration: underline; }
.nav-cta { margin-left: 10px; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--ink); color: var(--white); padding: 64px 0 104px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-pre { color: var(--on-ink); font-size: .95rem; border-left: 3px solid var(--accent); padding-left: 12px; margin-bottom: 22px; }
.hero h1 { font-weight: 800; font-size: clamp(2.75rem, 6.4vw, 5.1rem); line-height: .94; letter-spacing: -.005em; }
.hero-line { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--accent); line-height: 1.1; margin: .55em 0 .7em; }
.hero-text { color: #D5DAE2; max-width: 34em; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-art { position: relative; padding-bottom: 170px; }
.hero-art picture { display: block; }
.hero-photo { width: 100%; border-radius: var(--r); }
.slip {
  position: absolute; right: -12px; bottom: 0;
  width: min(340px, 78%);
  background: var(--white); color: var(--ink);
  border-top: 5px solid var(--deep); border-radius: 2px 2px 4px 4px;
  padding: 14px 18px 0;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .38);
  transform: rotate(-1.6deg);
}
.slip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.slip-head span:first-child { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.slip-head span:last-child { font-size: .74rem; color: var(--mid); }
.slip ul { list-style: none; margin: 0; padding: 0; }
.slip li { display: grid; grid-template-columns: 3.4em 1fr; align-items: baseline; font-size: .86rem; line-height: 1.35; padding: 6px 0; border-bottom: 1px dashed var(--dash); }
.slip li:last-child { border-bottom: 0; }
.slip b { font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--deep); }
.slip-foot {
  display: flex; align-items: center; gap: 8px;
  margin: 8px -18px 0; padding: 10px 18px;
  background: var(--accent); color: var(--ink);
  font-weight: 600; font-size: .86rem;
}

.fio { position: absolute; left: 0; bottom: 14px; width: 100%; height: 40px; display: block; }

/* ── Faixa de diferenciais ──────────────────────────────────────────── */
.faixa { background: var(--deep); color: var(--white); }
.faixa-grid { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.faixa-grid li { padding: 30px 24px; border-left: 1px solid rgba(255, 255, 255, .2); }
.faixa-grid li:first-child { border-left: 0; padding-left: 0; }
.faixa-grid strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.32rem; line-height: 1.1; margin-bottom: 6px; }
.faixa-grid span { color: var(--on-deep); font-size: .93rem; line-height: 1.5; }

/* ── Seções ─────────────────────────────────────────────────────────── */
.sec { padding: 88px 0; }
.sec-paper { background: var(--paper); }
.sec-ink { background: var(--ink); color: var(--white); }
.sec-cobalto { background: var(--deep); color: var(--white); }
.sec-head { max-width: 46rem; margin-bottom: 32px; }
.sec h2 { font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.3rem); margin-bottom: .32em; }
.sec-head p { color: var(--mid); font-size: 1.05rem; }
.sec-ink .sec-head p { color: var(--on-ink); }

/* ── Catálogo com filtro ────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 44px; padding: 0 20px;
  font: 600 .95rem var(--body); color: var(--ink);
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.chip:hover { background: #E4E8EE; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.chip[aria-pressed="true"]::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.cat-count { color: var(--mid); font-size: .9rem; margin: 14px 0 22px; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cat-pic { aspect-ratio: 16 / 8; background: var(--deep); border-bottom: 4px solid var(--accent); display: grid; place-items: center; }
.cat-pic svg { width: 58%; height: auto; max-height: 84%; }
.cat-body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.cat h3 { font-weight: 700; font-size: 1.55rem; margin-bottom: .35em; }
.cat-body > p { font-size: .95rem; color: #2E343D; margin-bottom: 0; }
.cat-body > p.cat-uso { margin-top: auto; padding-top: 14px; font-size: .82rem; color: var(--mid); }
.cat-add {
  display: none; align-self: flex-start; margin-top: 12px;
  min-height: 44px; padding: 0 16px;
  font: 700 1.04rem var(--display); letter-spacing: .02em;
  color: var(--deep); background: transparent; border: 2px solid var(--deep); border-radius: 4px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.js .cat-add { display: inline-flex; align-items: center; }
.cat-add:hover { background: var(--deep); color: var(--white); }

/* ── Balcão do profissional ─────────────────────────────────────────── */
.pro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.pro-photo { position: relative; isolation: isolate; }
.pro-photo img { width: 100%; border-radius: var(--r); }
.pro-photo::after {
  content: ''; position: absolute; z-index: -1;
  left: -16px; bottom: -16px; width: 46%; height: 42%;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, var(--ink) 12px 24px);
  border-radius: 2px;
}
.lead { font-size: 1.08rem; }
.pro-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 28px 0 34px; }
.pro-list div { border-top: 3px solid var(--accent); padding-top: 12px; }
.pro-list dt { font-family: var(--display); font-weight: 700; font-size: 1.24rem; line-height: 1.1; }
.pro-list dd { margin: 6px 0 0; color: var(--mid); font-size: .95rem; }

/* ── Como comprar ───────────────────────────────────────────────────── */
.passos { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; position: relative; }
.passos::before { content: ''; position: absolute; top: 27px; left: 28px; right: 28px; height: 3px; background: var(--accent); }
.passos li { position: relative; }
.passo-n {
  display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--accent); color: var(--ink); border: 5px solid var(--ink); border-radius: 50%;
  font-family: var(--display); font-weight: 800; font-size: 1.6rem; position: relative;
}
.passos h3 { font-weight: 700; font-size: 1.7rem; margin: 18px 0 8px; }
.passos p { color: var(--on-ink); max-width: 26em; }

/* ── Depoimentos ────────────────────────────────────────────────────── */
.depo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.depo { margin: 0; padding: 28px 26px; background: var(--paper); border-left: 4px solid var(--deep); border-radius: 0 var(--r) var(--r) 0; display: flex; flex-direction: column; }
.depo blockquote { margin: 0 0 20px; font-size: 1.04rem; line-height: 1.6; }
.depo figcaption { margin-top: auto; }
.depo figcaption strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.depo figcaption span { color: var(--mid); font-size: .9rem; }
.nota { color: var(--mid); font-size: .85rem; margin: 20px 0 0; }

/* ── Montador de orçamento ──────────────────────────────────────────── */
.orc-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.orc-copy p { color: var(--on-deep); font-size: 1.04rem; }
.orc-copy .orc-dica { color: var(--white); border-left: 3px solid var(--accent); padding-left: 12px; margin-top: 24px; }
.orc-copy a { color: var(--white); font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.orc-form { background: var(--white); color: var(--ink); padding: 28px; border-radius: var(--r); border-top: 8px solid var(--accent); }
.orc-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 16px; }
.opc { font-weight: 400; color: var(--mid); }
.orc-form input, .orc-form textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 46px; padding: 10px 12px;
  font: 400 1rem var(--body); color: var(--ink);
  background: var(--white); border: 1.5px solid #9AA3B0; border-radius: 4px;
}
.orc-form input:focus, .orc-form textarea:focus { border-color: var(--deep); }
.orc-form textarea { min-height: 92px; resize: vertical; }
.orc-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.orc-tabela { margin: 4px 0 20px; }
.orc-th { display: grid; grid-template-columns: 1fr 88px; gap: 8px; padding: 0 0 6px 36px; border-bottom: 2px solid var(--ink); font-family: var(--display); font-weight: 700; font-size: 1rem; }
#orcItens { list-style: none; margin: 0; padding: 0; }
.orc-item { display: grid; grid-template-columns: 28px 1fr 88px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--dash); }
.orc-item .n { font-family: var(--display); font-weight: 700; color: var(--mid); text-align: right; padding-right: 4px; }
.orc-item input { margin-top: 0; }
.orc-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.btn-add {
  min-height: 44px; padding: 0 18px;
  font: 700 1.04rem var(--display); letter-spacing: .02em;
  color: var(--deep); background: var(--white); border: 2px dashed var(--deep); border-radius: 4px; cursor: pointer;
}
.btn-add:hover { background: #EEF1FC; }
.btn-add.cheio { opacity: .45; cursor: not-allowed; }
#addNota { color: var(--mid); font-size: .86rem; }
.orc-erro { margin: 0 0 14px; padding: 10px 12px; background: #FEF3F2; color: var(--erro); border-left: 4px solid var(--erro); font-weight: 600; font-size: .93rem; }

/* ── Contato ────────────────────────────────────────────────────────── */
.contato-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contato-item {
  display: block; padding: 22px 24px; min-height: 44px;
  border: 2px solid var(--ink); border-radius: var(--r);
  color: var(--ink); text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.contato-item span { display: block; color: var(--mid); font-size: .88rem; margin-bottom: 4px; }
.contato-item strong { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; overflow-wrap: anywhere; }
.contato-item:hover { background: var(--ink); color: var(--white); }
.contato-item:hover span { color: var(--on-ink); }
.contato-item.ct-wa { background: var(--accent); border-color: var(--accent); }
.contato-item.ct-wa span { color: #3D3520; }
.contato-item.ct-wa:hover { background: var(--accent-2); color: var(--ink); }
.contato-item.ct-wa:hover span { color: #3D3520; }

/* ── Páginas legais ─────────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }
html:not(.js) .page:target { display: block; }
.legal { max-width: 780px; padding-top: 40px; padding-bottom: 88px; }
.legal h1 { font-weight: 800; font-size: clamp(2.3rem, 6vw, 3.2rem); margin: 16px 0 10px; }
.legal h2 { font-weight: 700; font-size: 1.5rem; margin: 1.8em 0 .45em; }
.legal p, .legal li { color: #2A3039; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal-meta { color: var(--mid); font-size: .9rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.back-link::before { content: ''; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 10px; }

/* ── Rodapé ─────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--on-ink); padding: 56px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 44px; height: 44px; flex: none; }
.footer-brand strong { color: var(--white); font-family: var(--display); font-size: 1.25rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 4px; }
.footer a { color: #E3E7ED; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid #2B313A; font-size: .84rem; }
.footer-legal p { margin: .25em 0; }

/* ── WhatsApp flutuante ─────────────────────────────────────────────── */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 8px 20px rgba(21, 24, 29, .3);
  transition: background-color .15s ease;
}
.wa-fab:hover { background: var(--accent-2); }

/* ── Revelação ──────────────────────────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* ── Responsivo ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 2px solid var(--ink);
    padding: 8px 20px 18px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: flex; min-height: 48px; padding: 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 960px) {
  .hero { padding: 44px 0 96px; }
  .hero-grid, .pro-grid, .orc-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 620px; padding-bottom: 0; }
  .slip { position: relative; right: auto; bottom: auto; margin: -56px 0 0 16px; width: min(340px, calc(100% - 32px)); }
  .faixa-grid { grid-template-columns: 1fr 1fr; }
  .faixa-grid li { padding: 24px 20px 24px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  .faixa-grid li:nth-child(-n+2) { border-top: 0; }
  .faixa-grid li:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .2); }
  .cat-grid, .depo-grid { grid-template-columns: 1fr 1fr; }
  .pro-photo { max-width: 560px; }
  .contato-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .sec { padding: 64px 0; }
  .passos { grid-template-columns: 1fr; gap: 28px; }
  .passos::before { top: 28px; bottom: 28px; left: 26px; right: auto; width: 3px; height: auto; }
  .passos li { padding-left: 78px; min-height: 56px; }
  .passo-n { position: absolute; left: 0; top: 0; }
  .passos h3 { margin-top: 10px; }
  .cat-grid, .depo-grid, .contato-grid, .pro-list, .orc-campos { grid-template-columns: 1fr; }
  .orc-form { padding: 22px 18px; }
  #orcamento { padding-bottom: 96px; }
  .footer { padding-bottom: 96px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .faixa-grid { grid-template-columns: 1fr; }
  .faixa-grid li, .faixa-grid li:nth-child(even) { padding: 20px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  .faixa-grid li:first-child { border-top: 0; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .brand-text strong { font-size: 1.12rem; }
  .brand-text span { font-size: .7rem; }
  .orc-th { grid-template-columns: 1fr 70px; padding-left: 30px; }
  .orc-item { grid-template-columns: 22px 1fr 70px; gap: 6px; }
  .orc-item input { padding: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
