/* Bene Teto Solar — estilos
   Paleta: grafite noturno + azul-vidro + amarelo-sol (ação, sempre com texto escuro). */

:root {
  --ink-950: #070B11;
  --ink-900: #0B1018;
  --ink-800: #121A26;
  --ink-700: #1B2636;
  --ink-600: #2A3648;
  --ink-500: #5A6B82;
  --ink-300: #A9B6C8;
  --ink-100: #E3E9F1;
  --paper: #F4F7FB;
  --white: #FFFFFF;

  --sky-300: #8FECFF;
  --sky-400: #46DFFC;
  --sky-600: #0B7FA3;
  --sun: #FFB020;
  --sun-600: #E89A00;
  --alert: #FF6B5A;

  --f-title: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 18px 50px -20px rgba(7, 11, 17, .45);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 1rem/1.65 var(--f-body);
  color: var(--ink-800);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-title); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); color: var(--ink-900); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; border-radius: 4px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 1rem/1 var(--f-body);
  padding: .95em 1.4em;
  border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg { width: 1.25em; height: 1.25em; }
.btn--sun { background: var(--sun); color: var(--ink-900); box-shadow: 0 10px 28px -10px rgba(255, 176, 32, .7); }
.btn--sun:hover { background: #FFC24D; transform: translateY(-1px); }
.btn--lg { font-size: 1.08rem; padding: 1.05em 1.6em; }
.btn--sm { font-size: .9rem; padding: .7em 1.1em; }
.btn--block { width: 100%; }

.tel { color: var(--ink-300); text-decoration: none; font-size: .98rem; }
.tel b { color: var(--white); font-weight: 600; }
.tel:hover b { text-decoration: underline; }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(11, 16, 24, .72);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.header.is-stuck { background: rgba(11, 16, 24, .94); border-color: var(--ink-700); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo__img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink-300); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--white); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-900); border-bottom: 1px solid var(--ink-700);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--ink-800); font-size: 1.05rem; }
  .nav__cta { margin-top: 16px; }
}

/* ---------- Capa ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-900); color: var(--ink-100);
  padding: 128px 0 26px;
}
.hero__sky {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(70, 223, 252, .28), transparent 70%),
    radial-gradient(30% 30% at 92% 8%, rgba(255, 176, 32, .35), transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--ink-950));
}
/* "moldura do teto solar" decorativa */
.hero__sky::after {
  content: ""; position: absolute; right: -6%; top: 18%;
  width: min(46vw, 560px); aspect-ratio: 1.25;
  border: 2px solid rgba(70, 223, 252, .14); border-radius: 36px;
  box-shadow: inset 0 0 0 18px rgba(70, 223, 252, .04);
  transform: perspective(900px) rotateX(48deg) rotateZ(-8deg);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--sky-300); background: rgba(70, 223, 252, .1); border: 1px solid rgba(70, 223, 252, .22); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 176, 32, .2); }

.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); color: var(--white); margin-bottom: .45em; }
.hl { background: linear-gradient(90deg, var(--sky-300), var(--sky-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--ink-300); max-width: 36em; }

.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 30px 0 28px; }
.hero__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li { font-size: .88rem; color: var(--ink-100); border: 1px solid var(--ink-600); border-radius: 999px; padding: 6px 13px 6px 30px; position: relative; }
.hero__chips li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 10px; height: 6px; border-left: 2px solid var(--sky-400); border-bottom: 2px solid var(--sky-400); transform: translateY(-70%) rotate(-45deg); }

/* ---------- Formulário ---------- */
.card-form {
  background: var(--white); color: var(--ink-800);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  position: relative;
}
.card-form::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--sky-400), var(--sun)); }
.card-form__t { font-size: 1.4rem; margin-bottom: .25em; }
.card-form__s { color: var(--ink-500); font-size: .93rem; margin-bottom: 18px; }
.card-form__nota { color: var(--ink-500); font-size: .82rem; margin: 12px 0 0; text-align: center; }

.fld { display: block; margin-bottom: 14px; }
.fld span { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.fld small { color: var(--ink-500); font-weight: 400; }
.fld input, .fld select, .fld textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink-900);
  padding: 12px 14px; border: 1.5px solid #CFD8E3; border-radius: var(--r-sm); background: var(--paper);
  transition: border-color .15s, background .15s;
}
.fld textarea { resize: vertical; min-height: 60px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--sky-600); background: var(--white); box-shadow: 0 0 0 3px rgba(70, 223, 252, .3); }
.fld .is-invalid { border-color: var(--alert); }
.form-erro { color: #C0392B; font-size: .9rem; font-weight: 600; margin: 0 0 12px; }

/* ---------- Seções ---------- */
.sec { padding: clamp(19px, 2.7vw, 34px) 0; }
.sec--soft { background: var(--paper); }
.sec--dark { background: var(--ink-900); color: var(--ink-300); }
.sec--dark h2, .sec--dark h3 { color: var(--white); }

.sec__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec__head h2, .drenos__txt h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.sec__sub { font-size: 1.08rem; color: var(--ink-500); }
.sec--dark .sec__sub { color: var(--ink-300); }
.kicker { font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-600); margin-bottom: .7em; }
.sec--dark .kicker { color: var(--sky-400); }

/* Sintomas */
.sintomas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sint {
  border: 1px solid var(--ink-100); border-radius: var(--r); padding: 26px 22px;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sint:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.sint__ico { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #E6F5FF, #CBE8FF); color: var(--sky-600); display: grid; place-items: center; margin-bottom: 18px; }
.sint__ico svg { width: 28px; height: 28px; }
.sint h3 { font-size: 1.12rem; }
.sint p { color: var(--ink-500); font-size: .95rem; flex: 1; }
.sint a { font-weight: 700; color: var(--sky-600); text-decoration: none; font-size: .93rem; }
.sint a:hover { text-decoration: underline; }

/* Serviços */
.servs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.serv { background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: var(--r); padding: 26px 24px; }
.serv h3 { font-size: 1.15rem; }
.serv p { margin: 0; font-size: .96rem; }
.serv--big {
  grid-row: span 2;
  background: linear-gradient(160deg, #173252 0%, var(--ink-800) 70%);
  border-color: rgba(70, 223, 252, .3);
  padding: 32px 28px;
}
.serv--big h3 { font-size: 1.6rem; }
.serv--big p { margin-bottom: 18px; font-size: 1.02rem; }
.serv--wide { grid-column: span 2; }
.tag { display: inline-block; background: var(--sun); color: var(--ink-900); font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 8px 0 8px 28px; position: relative; color: var(--ink-100); border-top: 1px solid rgba(255, 255, 255, .07); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 11px; height: 6px; border-left: 2px solid var(--sky-400); border-bottom: 2px solid var(--sky-400); transform: translateY(-70%) rotate(-45deg); }

/* Drenos */
.drenos { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.drenos__txt p { color: var(--ink-500); font-size: 1.04rem; }
.drenos__txt b { color: var(--ink-800); }
.aviso { border-left: 4px solid var(--alert); background: #FFF2F0; border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 18px; color: #5B2A24; font-size: .98rem; }
.aviso b { color: #A12A1C; }
.drenos__fig { margin: 0; background: var(--ink-900); border-radius: var(--r-lg); padding: 24px 24px 18px; box-shadow: var(--shadow); }
.drenos__fig svg { width: 100%; max-width: 340px; margin: 0 auto; }
.drenos__fig figcaption { color: var(--ink-300); font-size: .88rem; text-align: center; margin-top: 10px; }
.d-dreno { fill: none; stroke: #4D6A8C; stroke-width: 4; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .d-gotas { display: none; } }

/* Passos */
.passos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: p; position: relative; }
.passos::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--sky-400) 0 8px, transparent 8px 16px); opacity: .5; }
.passo { position: relative; }
.passo__n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-900); color: var(--sun); font: 800 1.35rem/1 var(--f-title); margin-bottom: 18px; box-shadow: 0 0 0 6px var(--paper); position: relative; }
.passo h3 { font-size: 1.12rem; }
.passo p { color: var(--ink-500); font-size: .96rem; margin: 0; }

/* Dicas */
.dicas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dica { padding: 22px 24px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--ink-100); color: var(--ink-500); }
.dica b { display: block; color: var(--ink-900); font-family: var(--f-title); font-size: 1.05rem; margin-bottom: 4px; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.faq details { background: var(--white); border: 1px solid var(--ink-100); border-radius: var(--r); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 20px 30px 20px 0; position: relative; color: var(--ink-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 600 1.5rem/1 var(--f-title); color: var(--sky-600); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-500); padding-bottom: 6px; }

/* CTA final */
.cta { background: var(--ink-900); color: var(--ink-300); padding: clamp(17px, 2.4vw, 26px) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 0%, rgba(70, 223, 252, .22), transparent 70%); pointer-events: none; }
.cta__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta p { max-width: 34em; margin: 0; }
.cta__acts { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tel--light { color: var(--white); font-weight: 600; font-size: 1.1rem; }

/* Rodapé */
.footer { background: var(--ink-950); color: var(--ink-500); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { color: var(--ink-300); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Revelar ao rolar */
html:not(.no-js) .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html:not(.no-js) .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .sintomas { grid-template-columns: repeat(2, 1fr); }
  .servs { grid-template-columns: repeat(2, 1fr); }
  .serv--big { grid-row: auto; grid-column: 1 / -1; }
  .serv--wide { grid-column: auto; }
}
@media (max-width: 900px) {
  .hero { padding: 104px 0 19px; }
  .hero__in, .drenos { grid-template-columns: 1fr; }
  .hero__sky::after { display: none; }
  .passos { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .passos::before { display: none; }
  .faq { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sintomas, .servs, .dicas, .passos { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; align-items: stretch; text-align: center; }
  .cta__in { flex-direction: column; align-items: stretch; text-align: center; }
  .cta__acts .btn { width: 100%; }
  .footer__in { flex-direction: column; text-align: center; }
}

/* Página 404 */
.p404 { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--ink-900); color: var(--ink-300); padding: 24px; }
.p404 h1 { color: var(--white); font-size: clamp(2rem, 6vw, 3rem); }

/* ---------- Abertura: teto solar abrindo (só com html.intro-on) ---------- */
.intro { display: none; }
.intro-on { overflow: hidden; }
.intro-on .intro {
  display: block; position: fixed; inset: 0; z-index: 200;
  pointer-events: auto; cursor: pointer; overflow: hidden;
}
.intro__cam { position: absolute; inset: 0; will-change: transform; }
.intro__svg {
  position: absolute; left: 50%; top: 45%;
  height: 78vh; height: 78svh; width: auto; aspect-ratio: 400 / 900;
  transform: translate(-50%, -50%);
  overflow: visible;
}
#intro-vidro { transform-box: view-box; }
.intro__marca {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom));
  width: min(240px, 60vw); height: auto; transform: translateX(-50%);
  opacity: 0;
}
.intro__pular {
  position: absolute; right: 18px; top: calc(18px + env(safe-area-inset-top));
  font: 600 .85rem/1 var(--f-body); color: var(--ink-100);
  background: rgba(11, 16, 24, .55); border: 1px solid rgba(255, 255, 255, .18);
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.intro__pular:hover { background: rgba(11, 16, 24, .8); }
/* o cabeçalho e o botão flutuante esperam a câmera entrar */
.intro-on .header, .intro-on .wa-float { opacity: 0; }
.intro__cortina { position: absolute; inset: 0; background: #05070A; pointer-events: none; }

/* ---------- Fotos reais ---------- */
.hero__foto {
  position: absolute; top: 0; right: 0; width: 62%; height: 100%;
  object-fit: cover; object-position: 75% 35%;
  opacity: .7;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 95%);
          mask-image: linear-gradient(to left, #000 35%, transparent 95%);
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero__foto {
    width: 100%; height: 70%; opacity: .32;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
  }
}

.serv--foto { overflow: hidden; }
.serv__foto {
  display: block; width: calc(100% + 56px); max-width: none; height: 190px;
  margin: -32px -28px 22px; object-fit: cover; object-position: 50% 42%;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.galeria { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: 240px; gap: 16px; }
.foto { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--ink-800); }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.foto:hover img { transform: scale(1.04); }
.foto figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px; color: var(--white); font-weight: 600; font-size: .95rem;
  background: linear-gradient(to top, rgba(7, 11, 17, .85), transparent);
}
.foto--alta { grid-row: span 2; }
.foto--larga { grid-column: span 2; }
@media (max-width: 900px) {
  .galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .foto--alta { grid-row: span 1; grid-column: span 2; }
}
@media (max-width: 600px) {
  .galeria { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .foto--alta, .foto--larga { grid-column: auto; }
}

.footer__creditos { flex-basis: 100%; font-size: .78rem; color: var(--ink-500); }
.footer__creditos a { color: var(--ink-500); }
.serv:not(.serv--big) .serv__foto { width: calc(100% + 48px); height: 150px; margin: -26px -24px 18px; }

.footer__logo { width: 150px; height: auto; }

/* Logo provisório em texto (trocar pelo logo oficial da Bene Teto Solar quando chegar) */
.logo__txt { font: italic 800 1.35rem/1 var(--f-title); letter-spacing: -.02em; color: var(--white); white-space: nowrap; }
.logo__txt b { color: var(--sky-400); font-weight: 800; }
.footer .logo__txt { font-size: 1.15rem; }
.intro__marca--txt { width: auto; margin: 0; text-align: center; white-space: nowrap; }
.intro__marca--txt .logo__txt { font-size: 1.7rem; }
.intro__marca--txt small { display: block; margin-top: 6px; font: 600 .72rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-300); }
