/* Bertacini Sistemas Elétricos
   Plano: vinho profundo da marca, branco e prata; circuito como textura; títulos pesados em Montserrat. */
:root {
  --wine-900: #2B050D;
  --wine-800: #4A0A17;
  --wine-700: #6E1223;
  --wine-500: #A81F35;
  --white: #FFFFFF;
  --silver: #C9C9CE;
  --muted: #E3C9CE;
  --line: rgba(255, 255, 255, .16);
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--white);
  background: linear-gradient(180deg, var(--wine-700) 0%, var(--wine-800) 38%, var(--wine-900) 100%);
  background-color: var(--wine-800); overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; position: relative; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--wine-800); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

.pill { display: inline-block; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 5px 16px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* Cabeçalho */
.top { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(10px); background: rgba(43,5,13,.78); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: .98rem; line-height: 1.2; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.top nav { display: flex; align-items: center; gap: 26px; font-size: .9rem; font-weight: 500; }
.top nav a { text-decoration: none; color: var(--muted); padding-block: 6px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--white); }
.top nav a[aria-current="page"] { border-bottom: 2px solid var(--white); }
.top nav a.cta { color: var(--wine-800); background: var(--white); padding: 9px 18px; border-radius: 999px; font-weight: 700; border-bottom: 0; }
.top nav a.cta:hover { background: var(--silver); }
.burger { display: none; background: transparent; border: 1px solid var(--line); border-radius: 10px; color: #fff; width: 46px; height: 46px; cursor: pointer; }
.burger svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 88px 104px; }
.circuit { position: absolute; inset: -40px 0; width: 100%; height: calc(100% + 80px); pointer-events: none; }
.circuit path.tr { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.circuit circle.nd { fill: var(--wine-800); stroke: rgba(255,255,255,.4); stroke-width: 1.6; }
.circuit circle.pulse { fill: #fff; filter: drop-shadow(0 0 6px #fff); }
.hero .wrap { z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.8rem); line-height: 1; max-width: 13ch; margin-top: 28px; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero h1 .w > span { display: inline-block; }
.hero .lead { margin-top: 28px; max-width: 46ch; font-size: 1.15rem; color: var(--muted); font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: .95rem; padding: 15px 28px; border-radius: 999px; border: 2px solid var(--white); transition: background-color .2s, color .2s; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn.solid { background: var(--white); color: var(--wine-800); }
.btn.solid:hover { background: var(--silver); border-color: var(--silver); }
.btn.line { background: transparent; color: var(--white); }
.btn.line:hover { background: rgba(255,255,255,.12); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.hero-facts span { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }

/* Cabeçalho de páginas internas */
.page-head { position: relative; overflow: hidden; padding-block: 72px 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.03; margin-top: 18px; max-width: 18ch; }
.page-head p.lead { margin-top: 20px; max-width: 56ch; color: var(--muted); font-size: 1.1rem; font-weight: 500; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Seções */
section.block { padding-block: 96px 0; }
.head { max-width: 760px; }
.head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; margin-top: 18px; }
.head p { margin-top: 18px; color: var(--muted); font-size: 1.08rem; max-width: 56ch; }
.band { margin-top: 96px; padding-block: 72px; background: rgba(0,0,0,.22); border-block: 1px solid var(--line); }

/* Serviços (home) */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.svc { position: relative; padding: 34px 32px 36px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); overflow: hidden; }
.svc:nth-child(1), .svc:nth-child(4) { background: linear-gradient(160deg, var(--wine-500), var(--wine-700)); border-color: rgba(255,255,255,.28); }
.svc svg { width: 64px; height: 64px; display: block; margin-bottom: 26px; }
.svc svg * { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.svc h3 { font-size: 1.7rem; }
.svc p { margin-top: 10px; color: var(--muted); max-width: 40ch; }
.svc:nth-child(1) p, .svc:nth-child(4) p { color: #FFE9EC; }
.svc a.more { display: inline-block; margin-top: 18px; font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.6); }
.svc a.more:hover { border-color: #fff; }

/* Serviços (página) */
.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; padding-block: 56px; border-bottom: 1px solid var(--line); }
.svc-detail:first-of-type { padding-top: 72px; }
.svc-detail h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.05; }
.svc-detail .ico { width: 64px; height: 64px; margin-bottom: 20px; }
.svc-detail .ico * { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.svc-detail p.sum { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.checks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.14) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat; }

/* Explicadores */
.lab { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.stage { border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(120% 120% at 20% 0%, rgba(255,255,255,.1), rgba(255,255,255,.02)); padding: 12px; }
.stage svg { display: block; width: 100%; height: auto; }
.side h3 { font-size: 1.6rem; line-height: 1.15; }
.side p { margin-top: 12px; color: var(--muted); }
.switch { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.switch button { font: inherit; font-weight: 700; font-size: .9rem; color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.5); border-radius: 999px; padding: 11px 20px; cursor: pointer; transition: background-color .2s, color .2s; }
.switch button:hover { background: rgba(255,255,255,.12); }
.switch button[aria-pressed="true"] { background: #fff; color: var(--wine-800); border-color: #fff; }
.side p.verdict { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--line); font-weight: 600; min-height: 4.2em; color: #fff; }
.sk-bg { fill: rgba(255,255,255,.14); }
.sk-win { fill: rgba(255,255,255,.3); }
.sk-win.lit { fill: #fff; }
.t { fill: #fff; font-family: var(--font); font-weight: 600; font-size: 14px; }
.t.mute { fill: var(--muted); font-weight: 500; font-size: 12.5px; }
.stroke { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Segmentos */
.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.seg { padding: 30px 28px; border-radius: 22px; border: 1px solid var(--line); background: rgba(0,0,0,.2); transition: background-color .35s; }
.seg:hover { background: rgba(255,255,255,.08); }
.seg h3 { font-size: 1.5rem; }
.seg p { margin-top: 10px; color: var(--muted); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.post-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); text-decoration: none; transition: border-color .25s, background-color .25s; }
.post-card:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.1); }
.post-card .tag { align-self: flex-start; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 4px 12px; }
.post-card h3 { font-size: 1.35rem; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: .95rem; }
.post-card .meta { margin-top: auto; font-size: .85rem; color: var(--muted); }
article.post { width: min(760px, 100% - 40px); margin: 0 auto; padding-block: 64px 0; }
article.post h2 { font-size: 1.8rem; line-height: 1.12; margin: 48px 0 14px; }
article.post p { margin: 0 0 18px; font-size: 1.08rem; line-height: 1.75; color: #F6E8EB; }
article.post ul { margin: 0 0 22px; padding-left: 22px; display: grid; gap: 8px; font-size: 1.08rem; line-height: 1.7; color: #F6E8EB; }
article.post .callout { margin: 28px 0; padding: 20px 24px; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid var(--line); font-weight: 600; }
.post-meta { color: var(--muted); font-size: .9rem; margin-top: 18px; }
.post-cta { margin-top: 56px; padding: 32px; border-radius: 22px; background: linear-gradient(135deg, var(--wine-500), var(--wine-700)); }
.post-cta h2 { margin: 0 0 10px; font-size: 1.6rem; }
.post-cta p { color: #FFE9EC; }

/* FAQ */
.faq { margin-top: 40px; max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 700; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 500; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 66ch; }

/* Avaliações */
.rating-box { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 40px; padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: rgba(0,0,0,.22); }
.rating-box .num { font-size: 3.4rem; font-weight: 800; line-height: 1; }
.stars { display: flex; gap: 4px; margin-top: 8px; }
.stars svg { width: 22px; height: 22px; fill: #fff; }
.stars.off svg { fill: none; stroke: rgba(255,255,255,.5); stroke-width: 1.6; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.review { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); }
.review blockquote { margin: 14px 0 18px; font-size: 1.05rem; }
.review cite { font-style: normal; font-weight: 700; }
.review small { display: block; color: var(--muted); }
.empty { margin-top: 32px; padding: 32px; border-radius: 22px; border: 2px dashed rgba(255,255,255,.35); }
.empty h3 { font-size: 1.4rem; }
.empty p { margin-top: 10px; color: var(--muted); max-width: 56ch; }

/* Contato */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; padding-block: 72px 0; align-items: start; }
form.lead { display: grid; gap: 18px; }
form.lead label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
form.lead input, form.lead select, form.lead textarea { font: inherit; color: #fff; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.3); border-radius: 12px; padding: 13px 16px; width: 100%; }
form.lead textarea { min-height: 140px; resize: vertical; }
form.lead select option { color: #111; }
form.lead .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
form.lead .ok-line { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted); }
form.lead .ok-line input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.form-msg { padding: 14px 18px; border-radius: 12px; font-weight: 600; display: none; }
.form-msg.show { display: block; background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.info-list { display: grid; gap: 16px; }
.info-list div { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: rgba(0,0,0,.2); }
.info-list h3 { font-size: 1.1rem; }
.info-list p, .info-list a { color: var(--muted); }

/* Final e rodapé */
.final { margin-top: 112px; padding-block: 88px; background: linear-gradient(135deg, var(--wine-500), var(--wine-700)); position: relative; overflow: hidden; }
.final h2 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.02; max-width: 16ch; margin-top: 18px; }
.final p { margin-top: 18px; max-width: 48ch; color: #FFE9EC; font-size: 1.08rem; }
.final .btn-row { margin-top: 32px; }
footer.foot { padding-block: 56px 28px; background: var(--wine-900); }
footer.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
footer.foot h3 { font-size: 1rem; margin-bottom: 12px; }
footer.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.foot a { color: var(--muted); text-decoration: none; }
footer.foot a:hover { color: #fff; text-decoration: underline; }
footer.foot p { color: var(--muted); max-width: 40ch; margin-top: 14px; }
footer.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Consentimento */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin-inline: auto; padding: 20px 22px; border-radius: 18px; background: #fff; color: #2B050D; box-shadow: 0 12px 40px rgba(0,0,0,.45); display: none; gap: 14px; }
.consent.show { display: grid; }
.consent p { font-size: .92rem; line-height: 1.5; }
.consent a { color: var(--wine-700); font-weight: 700; }
.consent .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.consent button { font: inherit; font-weight: 700; padding: 11px 22px; border-radius: 999px; border: 2px solid var(--wine-700); cursor: pointer; }
.consent .yes { background: var(--wine-700); color: #fff; }
.consent .no { background: #fff; color: var(--wine-700); }

@media (max-width: 860px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: var(--wine-900); border-bottom: 1px solid var(--line); }
  .top nav.open { display: flex; }
  .top nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .top nav a.cta { margin-top: 14px; text-align: center; }
  .services, .segments, .posts, .reviews { grid-template-columns: 1fr; }
  .lab, .contact, .svc-detail { grid-template-columns: 1fr; }
  footer.foot .cols { grid-template-columns: 1fr; }
  form.lead .row { grid-template-columns: 1fr; }
  .hero { padding-block: 56px 72px; }
  section.block { padding-block: 72px 0; }
  .rating-box { grid-template-columns: 1fr; }
  .t { font-size: 17px; }
  .t.mute { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
