/* MF Solar — styles.css */
:root {
  --navy-950: #140D0A;
  --navy-900: #1E1511;
  --navy-800: #2A1E18;
  --navy-700: #3B2B22;
  --line: rgba(246,239,232,.10);
  --text: #F6EFE8;
  --text-muted: rgba(246,239,232,.62);
  --sun: #F6871A;
  --sun-glow: rgba(246,135,26,.45);
  --leaf: #4A9838;
  --core: #FFE3C2; /* núcleo claro do cabo de luz (tinta do --sun) */

  --f-title: 'Saira', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --max: 1240px;
  --gutter: 48px;
  --sec-pad: 96px;
  --r-card: 20px;
  --ease: cubic-bezier(.215,.61,.355,1);
}
@media (max-width: 767px) { :root { --gutter: 24px; --sec-pad: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--navy-950); color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sun); color: var(--navy-950); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- tipografia ---------- */
.eyebrow {
  font: 600 13px/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--sun);
  margin-bottom: 18px;
}
.h1, .h2, .h3, .stat__n, .sim__v { font-family: var(--f-title); letter-spacing: -.01em; }
.h1 { font-weight: 700; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; max-width: 20ch; }
.h2 { font-weight: 600; font-size: clamp(32px, 3.9vw, 58px); line-height: 1.08; }
.h3 { font-weight: 600; font-size: clamp(22px, 1.8vw, 25px); line-height: 1.2; }
.sun { color: var(--sun); }
.sub, .lead { color: var(--text-muted); max-width: 58ch; margin-top: 18px; }
.lead { font-size: 18px; max-width: 52ch; }
@media (max-width: 767px) { .h1 { font-size: 40px; } .h2 { font-size: 34px; } .lead { font-size: 16px; } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px;
  padding: 16px 28px; font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn .arr { font-style: normal; display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--sun); color: var(--navy-950); }
.btn--primary:hover { box-shadow: 0 0 32px var(--sun-glow); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: rgba(246,239,232,.06); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn__short { display: none; }

/* ---------- cartão ---------- */
.card {
  background: rgba(59,43,34,.6); border: 1px solid var(--line); border-radius: var(--r-card);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.card.is-active { border-color: var(--sun); box-shadow: 0 0 40px var(--sun-glow); }

/* ---------- cabeçalho ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s var(--ease), backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.hdr.is-solid { background: rgba(20,13,10,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.hdr__in { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand span { font: 600 20px/1 var(--f-title); letter-spacing: .02em; color: #fff; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color .25s; }
.nav a:hover, .nav a.is-current { color: var(--text); }
@media (max-width: 980px) { .nav { display: none; } .hdr .btn { margin-left: auto; } }
@media (max-width: 767px) { .hdr__in { padding: 12px var(--gutter); gap: 12px; } .hdr .brand span { display: none; } .hdr__cta { margin-left: auto; } }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--navy-950); z-index: 1; }
.hero__inner { position: absolute; inset: 0; transform-origin: 50% 45%; will-change: transform; }
.hero__dark { z-index: 3; }
.hero__media { position: absolute; inset: 0; transform-origin: 50% 60%; will-change: transform; }
.hero__img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 60% 55%; }
@keyframes kenburns {
  from { transform: scale(1.06) translate3d(0,0,0); }
  to   { transform: scale(1.2) translate3d(-2.5%, -1.5%, 0); }
}
.hero__lights { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }
.hero__lights path { fill: none; stroke-linecap: round; stroke-dasharray: 170 1000; stroke-dashoffset: 1170; animation: travel 6s linear infinite; }
.lights-halo path { stroke: var(--sun-glow); stroke-width: 16; opacity: .8; }
.lights-core path { stroke: url(#lg); stroke-width: 2.5; }
.hero__lights g path:nth-child(2) { animation-duration: 9s; animation-delay: -3s; }
.hero__lights g path:nth-child(3) { animation-duration: 8s; animation-delay: -5.5s; }
.hero__lights g path:nth-child(4) { animation-duration: 10s; animation-delay: -1.5s; }
.hero__lights g path:nth-child(5) { animation-duration: 11s; animation-delay: -7s; }
@keyframes travel { to { stroke-dashoffset: 0; } }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,13,10,.92) 0%, rgba(20,13,10,.78) 42%, rgba(20,13,10,.6) 75%, rgba(20,13,10,.64) 100%),
    linear-gradient(0deg, var(--navy-950) 0%, rgba(20,13,10,0) 40%),
    linear-gradient(180deg, rgba(20,13,10,.7) 0%, rgba(20,13,10,0) 22%);
}
.hero__dark { position: absolute; inset: 0; background: var(--navy-950); opacity: 0; pointer-events: none; }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 60px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; font-size: 13px; color: var(--text-muted); }
.hero__trust li { display: flex; align-items: center; gap: 10px; }
.hero__trust li::before { content: ""; width: 18px; height: 1px; background: rgba(246,239,232,.4); }
.hero__cue { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.hero__cue span { width: 1px; height: 44px; background: linear-gradient(var(--text-muted), transparent); position: relative; overflow: hidden; }
.hero__cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }
@media (max-width: 767px) { .hero__cue { display: none; } .hero__trust { margin-top: 32px; } }

/* ---------- seções ---------- */
.sec { position: relative; z-index: 2; }
.tone-a { background: var(--navy-900); }
.tone-b { background: var(--navy-800); }
/* camadas: cada seção passa por cima da anterior */
.numbers { z-index: 2; } .services { z-index: 3; } .solar { z-index: 5; } .contact { z-index: 6; } .foot { z-index: 7; }
/* entrada por máscara em degradê (--fade é animado pelo main.js até 0) */
.layer { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade, 0px)); mask-image: linear-gradient(180deg, transparent 0, #000 var(--fade, 0px)); }
/* fronteiras: degradê de 110 px a partir do tom da seção anterior */
.numbers::after, .services::after, .solar::after, .contact::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--next) 12%, transparent) 30%, color-mix(in srgb, var(--next) 40%, transparent) 55%, color-mix(in srgb, var(--next) 75%, transparent) 78%, var(--next) 100%);
}
.numbers { --next: var(--navy-800); } .services { --next: var(--navy-900); }
.solar { --next: var(--navy-900); } .contact { --next: var(--navy-950); }
.services > .wrap, .solar > .wrap { position: relative; z-index: 2; }

/* ---------- NÚMEROS ---------- */
.numbers { overflow: hidden; }
.numbers::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 260px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, var(--navy-950) 0%, color-mix(in srgb, var(--navy-950) 65%, transparent) 35%, color-mix(in srgb, var(--navy-950) 22%, transparent) 70%, transparent 100%); }
.numbers__stage { z-index: 2; }
.numbers__bg { position: absolute; inset: 0; opacity: .5; }
.numbers__bg img { width: 100%; height: 100%; object-fit: cover; }
.numbers__bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(30,21,17,.72) 0%, rgba(30,21,17,.93) 60%, var(--navy-900) 100%); }
.numbers__grid { position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 55%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 55%, #000 30%, transparent 100%);
}
.numbers__stage { position: relative; height: 100vh; min-height: 680px; }
.numbers__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.numbers__wires path { fill: none; stroke: rgba(246,239,232,.22); stroke-width: 1; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.numbers__title { position: absolute; inset: 0; margin: auto; height: fit-content; width: min(620px, 90vw); text-align: center; z-index: 2; }
.numbers__title .sub { margin-left: auto; margin-right: auto; max-width: 46ch; }
.stat { position: absolute; width: 290px; padding: 26px 28px; z-index: 3; }
.stat__n { font-weight: 600; font-size: clamp(52px, 4.4vw, 68px); line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
.stat__n em { font-style: normal; font-size: .42em; color: var(--text-muted); font-weight: 500; }
.stat__t { margin-top: 12px; color: var(--text-muted); font-size: 16px; line-height: 1.5; }
.stat--tl { left: 7%; top: 17%; }
.stat--tr { right: 7%; top: 17%; }
.stat--bl { left: 11%; bottom: 7%; }
.stat--br { right: 11%; bottom: 7%; }
@media (max-width: 1100px) and (min-width: 768px) {
  .stat { width: 240px; padding: 20px; }
  .stat--tl, .stat--bl { left: 3%; } .stat--tr, .stat--br { right: 3%; }
  .numbers__title { width: min(440px, 50vw); }
}
@media (max-width: 767px) {
  .numbers { padding: var(--sec-pad) 0; }
  .numbers__stage { height: auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 var(--gutter); }
  .numbers__wires { display: none; }
  .numbers__title { position: static; transform: none; width: auto; grid-column: 1 / -1; margin-bottom: 18px; text-align: left; }
  .numbers__title .sub { margin-left: 0; }
  .stat { position: static; width: auto; padding: 18px; }
  .stat__n { font-size: 40px; }
  .stat__t { font-size: 15px; }
}

/* ---------- SERVIÇOS (duas frentes) ---------- */
.services { padding: var(--sec-pad) 0; }
.services__head { max-width: 900px; }
.front { margin-top: 64px; }
.front + .front { margin-top: 88px; }
.front__band { position: relative; height: 260px; border-radius: var(--r-card); overflow: hidden; display: flex; align-items: flex-end; }
.front__band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: brightness(.72) contrast(1.15) saturate(.85); }
.front--eletrica .front__band img { filter: brightness(.5) contrast(1.25) saturate(.8); }
.front--solar .front__band img { filter: brightness(.95) contrast(1.15) saturate(.9); object-position: 50% 60%; }
.front__band::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,13,10,.92) 0%, rgba(20,13,10,.8) 45%, rgba(20,13,10,.62) 100%), linear-gradient(0deg, rgba(20,13,10,.35), rgba(20,13,10,0) 60%); }
.front__band-text { position: relative; z-index: 1; padding: 32px 36px; }
.front__tag { font: 600 13px/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--sun); margin-bottom: 8px; }
.front__title { font: 600 clamp(52px, 3.9vw, 58px)/1.08 var(--f-title); letter-spacing: -.01em; }
@media (max-width: 767px) { .front__title { font-size: 34px; } }
.front__lead { margin-top: 8px; color: var(--text-muted); max-width: 56ch; }
.sv-grid { display: grid; gap: 18px; margin-top: 18px; }
.sv-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sv { padding: 28px; }
.sv__ic { width: 32px; height: 32px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.sv__name { margin-top: 18px; font: 600 22px/1.25 var(--f-title); letter-spacing: -.01em; }
.sv p { margin-top: 8px; color: var(--text-muted); font-size: 16px; line-height: 1.55; }
.front__cta { margin-top: 22px; }
@media (max-width: 980px) { .sv-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .front { margin-top: 44px; } .front + .front { margin-top: 56px; }
  .front__band { height: 200px; }
  .front__band-text { padding: 22px; }
  .sv-grid--3 { grid-template-columns: 1fr; }
  .sv { padding: 22px; }
}

/* ---------- SOLAR ---------- */
.solar { padding: var(--sec-pad) 0; }
.solar__head { max-width: 900px; }
.solar__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; margin-top: 56px; align-items: start; }

.solar__photo { position: relative; height: 300px; border-radius: var(--r-card); overflow: hidden; margin-bottom: 18px; }
.solar__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.solar__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,13,10,.6), rgba(20,13,10,.6)); }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why__item { display: flex; gap: 16px; padding: 22px; }
.why__n { font: 600 14px/1.5 var(--f-title); color: var(--text-muted); letter-spacing: .1em; }
.why__item h3 { font: 600 22px/1.25 var(--f-title); }
.why__item p { margin-top: 6px; font-size: 16px; color: var(--text-muted); line-height: 1.5; }
.sim { padding: 34px; position: sticky; top: 110px; }
.sim .h3 { margin-bottom: 24px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 16px/1.4 var(--f-body); color: var(--text); background: rgba(20,13,10,.55);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color .25s, box-shadow .25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--navy-900); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(246,135,26,.18); }
#simBill { font: 600 28px/1.2 var(--f-title); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--sun); margin: 4px 0 24px; }
.sim__out { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.sim__k { font-size: 13px; color: var(--text-muted); }
.sim__v { font-weight: 600; font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; margin-top: 4px; }
.sim__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.sim__bar span { display: block; height: 100%; width: 0; background: var(--sun); box-shadow: 0 0 14px var(--sun-glow); transition: width .6s var(--ease); }
.sim__note { font-size: 16px; color: var(--text-muted); margin: 14px 0 22px; line-height: 1.5; }
@media (max-width: 980px) { .solar__grid { grid-template-columns: 1fr; } .sim { position: relative; top: 0; } }
@media (max-width: 767px) { .why { grid-template-columns: 1fr; } .sim { padding: 24px; } .sim__v { font-size: 24px; } .solar__grid { margin-top: 40px; } }

/* ---------- CONTATO ---------- */
.contact { padding: var(--sec-pad) 0; overflow: hidden; }
.contact__bg { position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.15) 120px, rgba(0,0,0,.6) 260px, #000 420px);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,.15) 120px, rgba(0,0,0,.6) 260px, #000 420px); }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,21,17,.97) 0%, rgba(30,21,17,.9) 50%, rgba(30,21,17,.8) 100%); }
.contact__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.info { margin-top: 44px; display: grid; gap: 22px; }
.info li { display: grid; gap: 4px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.info span { font: 600 13px/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); }
.info a { text-decoration: none; }
.info a:hover { text-decoration: underline; }
.form { padding: 34px; }
.form .h3 { margin-bottom: 22px; }
.form .btn { margin-top: 8px; border: 0; }
.form__ok { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; }
.form__ok svg { width: 20px; height: 20px; flex: none; }
.form__ok circle { fill: none; stroke: var(--leaf); stroke-width: 1.6; }
.form__ok path { fill: none; stroke: var(--leaf); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form__err { margin-top: 14px; font-size: 14px; color: var(--text); }
.form__ok[hidden], .form__err[hidden] { display: none; }
@media (max-width: 767px) { .contact::after { height: 120px; } }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: 40px; } .form { padding: 24px; } }

/* ---------- RODAPÉ ---------- */
.foot { position: relative; z-index: 7; background: var(--navy-950); padding: 56px 0 28px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; }
.foot__brand p { margin-top: 16px; color: var(--text-muted); font-size: 14px; }
.foot__nav { display: grid; gap: 10px; align-content: start; }
.foot__nav a { text-decoration: none; color: var(--text-muted); font-size: 14px; }
.foot__nav a:hover { color: var(--text); }
.foot__legal { color: var(--text-muted); font-size: 14px; display: grid; gap: 6px; align-content: start; }
.foot__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 13px; }
@media (max-width: 767px) { .foot__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- sem movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__img, .hero__lights path, .hero__cue span::after { animation: none !important; }
  * { transition-duration: .3s !important; }
}

/* ---------- LOGO (sem fundo; marinho em tom claro) ---------- */
.brand { flex: none; line-height: 0; }
.hdr .brand img { height: 68px; width: auto; }
.hdr__in { padding-top: 10px; padding-bottom: 10px; }
.foot__brand .brand img { height: 150px; width: auto; }
@media (max-width: 767px) { .hdr .brand img { height: 56px; } }

/* ---------- FOTOS DE SISTEMAS REAIS ---------- */
.obras { margin-top: 72px; }
.obras__t { font: 600 26px/1.2 var(--f-title); letter-spacing: -.01em; }
.obras__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: 16px; margin-top: 28px; }
.foto { position: relative; overflow: hidden; border-radius: var(--r-card); border: 1px dashed rgba(246,239,232,.28); background: rgba(59,43,34,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); font-size: 14px; }
.foto--g { grid-row: span 2; }
.foto svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.foto--ok { border-style: solid; border-color: var(--line); }
.foto__leg { position: absolute; inset: auto 0 0; padding: 44px 16px 13px; font-size: 14px; line-height: 1.35; color: #F6EFE8; background: linear-gradient(to top, rgba(20,13,10,.92) 25%, rgba(20,13,10,0)); }
.foto__leg strong { display: block; font: 600 18px/1.25 var(--f-title); color: #fff; }
.foto--g .foto__leg { padding: 64px 24px 20px; font-size: 16px; }
.foto--g .foto__leg strong { font-size: 28px; }
@media (max-width: 767px) { .foto .foto__leg { padding: 36px 12px 10px; font-size: 13px; } .foto--g .foto__leg strong { font-size: 22px; } }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .obras { margin-top: 48px; } .obras__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .foto--g { grid-column: 1 / -1; grid-row: auto; height: 220px; } .obras__grid { grid-auto-rows: auto; } .obras .obras__grid { grid-template-columns: 1fr; } .obras .foto { height: 220px; } }

/* ---------- BARRA ESCURA COM ETIQUETA BRANCA NA LOGO ---------- */
.hdr, .hdr.is-solid { background: rgba(20,13,10,.88); border-bottom-color: var(--line); }
.hdr__in { padding-top: 0; padding-bottom: 0; min-height: 100px; }
.hdr .brand { align-self: flex-start; display: flex; align-items: center; justify-content: center; width: 132px; height: 100px; background: #fff; border-radius: 0 0 16px 16px; }
.hdr .brand img { height: 74px; }
.foot__brand .brand { display: inline-flex; align-items: center; justify-content: center; width: 186px; height: 186px; background: #fff; border-radius: 20px; }
.foot__brand .brand img { height: 146px; }
@media (max-width: 767px) { .hdr__in { min-height: 76px; padding-top: 0; padding-bottom: 0; } .hdr .brand { width: 94px; height: 76px; } .hdr .brand img { height: 54px; } .hdr .btn { padding: 16px 17px; } }

/* ---------- SERVICOS ELETRICOS: 7 cartoes (3 + 4) ---------- */
.sv-grid--7 { grid-template-columns: repeat(12, 1fr); }
.sv-grid--7 > li { grid-column: span 4; }
.sv-grid--7 > li:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1180px) { .sv-grid--7 { grid-template-columns: 1fr 1fr; } .sv-grid--7 > li:nth-child(n) { grid-column: auto; } .sv-grid--7 > li:last-child { grid-column: 1 / -1; } }
@media (max-width: 767px) { .sv-grid--7 { grid-template-columns: 1fr; } }

.sv-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .sv-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .sv-grid--4 { grid-template-columns: 1fr; } }

.field select:invalid { color: var(--text-muted); }
.field select option, .field select optgroup { color: var(--text); background: var(--navy-900); }
.field input, .field select { min-width: 0; width: 100%; }
.field, .contact__grid > * { min-width: 0; }
.field { grid-template-columns: minmax(0, 1fr); }
.reviews { overflow-x: clip; }

/* ---------- WHATSAPP FIXO E INSTAGRAM ---------- */
.zap { position: fixed; right: 28px; bottom: 28px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(20,13,10,.5); transition: transform .3s var(--ease); }
.zap svg { width: 32px; height: 32px; fill: #fff; }
.zap:hover { transform: scale(1.07); }
.zap:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.social { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.social a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.35; }
.social svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--sun); stroke-width: 1.6; }
.social em { display: block; font-style: normal; font-size: 13px; color: var(--text-muted); }
.social a:hover em { color: var(--text); }
@media (max-width: 767px) { .zap { right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 56px; height: 56px; } .foot__bottom { padding-right: 90px; padding-bottom: 34px; } }

/* ---------- ENGENHEIRO RESPONSAVEL ---------- */
.eng { padding: var(--sec-pad) 0; z-index: 5; }
.eng__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.eng__foto { aspect-ratio: 4 / 5; }
.eng__foto svg { width: 64px; height: 64px; }
.eng__cargo { margin-top: 14px; font: 600 20px/1.35 var(--f-title); color: var(--text); }
.eng__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.eng__ig { display: inline-flex; align-items: center; gap: 10px; }
.eng__ig svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--sun); stroke-width: 1.8; }
@media (max-width: 900px) { .eng__grid { grid-template-columns: 1fr; gap: 40px; } .eng__foto { max-width: 480px; width: 100%; } }

/* ---------- MENU NO CELULAR ---------- */
.menu-btn, .cta-curto { display: none; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(246,239,232,.28); border-radius: 50%; background: transparent; cursor: pointer; }
  .menu-btn i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease); }
  .hdr.menu-open .menu-btn i:first-child { transform: translateY(4.5px) rotate(45deg); }
  .hdr.menu-open .menu-btn i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu-btn:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
  .hdr .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px var(--gutter) 20px; max-height: calc(100vh - 100px); overflow-y: auto; background: var(--navy-950); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(20,13,10,.6); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .hdr.menu-open .nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .hdr .nav a { padding: 18px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }
  .hdr .nav a:last-child { border-bottom: 0; }
  .hdr .nav a.is-current { color: var(--sun); }
  .hdr__in { gap: 12px; }
}
@media (max-width: 767px) { .cta-longo { display: none; } .cta-curto { display: inline; } }
@media (max-width: 350px) { .hdr .btn .arr { display: none; } .hdr__in { gap: 8px; padding-left: 16px; padding-right: 16px; } .solar__grid > * { min-width: 0; } .sim.card { padding-left: 18px; padding-right: 18px; } .sim .btn { padding-left: 14px; padding-right: 14px; } }

/* ---------- AVALIACOES DO GOOGLE ---------- */
.reviews { padding: var(--sec-pad) 0; z-index: 5; }
.reviews[hidden] { display: none; }
.reviews__slot { margin-top: 48px; min-height: 220px; }
.solar:has(+ .reviews:not([hidden])) { --next: var(--navy-800); }
.stat .stat__n--txt { display: block; font-size: 32px; line-height: 1.15; }
@media (max-width: 767px) { .stat .stat__n--txt { font-size: 24px; } }

/* ---------- SIMULADOR ---------- */
.sim__sel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 4px; }
@media (max-width: 480px) { .sim__sel { gap: 0 10px; } .sim__sel .field select { padding-left: 12px; padding-right: 28px; font-size: 16px; background-position: calc(100% - 17px) 52%, calc(100% - 11px) 52%; } }
.sim__cmp { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 14px; padding: 18px 0 16px; border-top: 1px solid var(--line); }
.sim__cmp .arr { color: var(--sun); font-style: normal; font-size: 24px; line-height: 1.4; }
.sim__cmp .sim__v--off { color: var(--text-muted); }
.sim__cmp .sim__v { font-size: 36px; white-space: nowrap; }
.sim #simRes .sim__out { border-top: 0; padding: 18px 0 4px; gap: 14px 20px; }
.sim__msg { padding: 18px; border-radius: 14px; border: 1px solid var(--line); line-height: 1.5; }
.sim #simRes + .sim__msg + .sim__note { font-size: 14px; margin: 12px 0 18px; }
@media (max-width: 767px) { .sim__cmp .sim__v { font-size: 28px; } .sim__cmp { gap: 10px; } }
@media (max-width: 350px) { .sim__sel { grid-template-columns: 1fr; } .sim__cmp .sim__v { font-size: 23px; } .sim .sim__out .sim__v { font-size: 20px; } }
@media (min-width: 981px) and (max-height: 970px) { .sim { position: relative; top: 0; } }
