/* =====================================================
   EletriCRI - Landing page
   Paleta extraída da logo: preto, amarelo e branco.
   ===================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --black: #000;
  --graphite: #171717;
  --line-dark: #2c2c2c;
  --yellow: #FFC20E;
  --yellow-deep: #E0A400;
  --white: #fff;
  --paper: #F3F3F0;
  --line-light: #D9D9D3;
  --text-soft: #4d5158;
  --text-soft-dark: #b3b6bc;

  --font-display: "Exo 2", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
}

/* ---------- 2. RESET E BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--paper);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico--lg { width: 34px; height: 34px; }

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

/* ---------- 3. TIPOGRAFIA ---------- */
h1, h2, h3, .btn, .quote__title, .result__value {
  font-family: var(--font-display);
  font-style: italic;
}
.h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.h2--light { color: var(--white); }
.lead {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--text-soft);
  font-size: 1.125rem;
}
.lead--light { color: var(--text-soft-dark); }

/* ---------- 4. BOTÕES (paralelogramo, ecoa o itálico da logo) ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--black);
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform .15s ease;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--yellow);
  border-radius: 6px;
  transform: skewX(-10deg);
  transition: background .15s ease;
}
.btn:hover::before { background: #ffd04a; }
.btn:active { transform: translateY(1px); }
.btn--dark { color: var(--yellow); }
.btn--dark::before { background: var(--black); }
.btn--dark:hover::before { background: var(--graphite); }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--lg { padding: 18px 32px; font-size: 1.15rem; }
.btn--block { width: 100%; }

.link-quiet {
  color: var(--white);
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
}
.link-quiet:hover { text-decoration-color: var(--white); }

/* ---------- 5. HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
  padding-top: env(safe-area-inset-top, 0px);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px;
}
.header__logo img { height: 40px; width: auto; }
.header__nav { display: none; gap: 28px; }
.header__nav a {
  color: var(--text-soft-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
}
.header__nav a:hover { color: var(--white); }
@media (min-width: 900px) {
  .header__nav { display: flex; margin-left: auto; }
  .header__logo img { height: 44px; }
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  padding: clamp(96px, 14vw, 120px) 0 clamp(56px, 9vw, 112px);
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  display: flex;
  align-items: center;
}
@media (min-width: 960px) { .hero { padding-top: 112px; min-height: 640px; } }
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 68% 22%;
  z-index: 0;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.82) 32%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.32) 100%),
    linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%);
}
@media (min-width: 960px) {
  .hero__bg { background-position: 66% 24%; }
}
.hero__air {
  position: absolute;
  top: 6px; right: 0;
  width: 100%;
  height: 96px;
  pointer-events: none;
  animation: air-in 1.4s cubic-bezier(.2, .7, .2, 1) .1s both;
  z-index: 2;
}
@media (min-width: 960px) {
  .hero__air { top: 20px; width: min(640px, 44vw); height: 200px; }
}
.air--yellow { opacity: .95; }
@keyframes air-in {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__copy { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 15ch;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero__sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.15rem;
  color: #eceded;
}
.hero__actions {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
}
.ticks { margin-top: 32px; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; color: #f0f1f1; }
.ticks .ico { color: var(--yellow); flex: none; }


/* Cartão de orçamento */
.quote {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 32px);
  border-top: 6px solid var(--yellow);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.quote__title { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.quote__sub { margin-top: 4px; color: var(--text-soft); }
.quote form { margin-top: 20px; display: grid; gap: 14px; }
.quote__note { font-size: .85rem; color: var(--text-soft); text-align: center; }

/* Campos */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 10px;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--black);
  background: var(--white);
}
.field--dark label { color: var(--white); }
.field--dark input, .field--dark select {
  background: var(--graphite);
  border-color: var(--line-dark);
  color: var(--white);
}
.field--dark input:focus, .field--dark select:focus {
  border-color: var(--yellow);
  background: var(--black);
}
.form-error { color: #b3261e; font-weight: 600; font-size: .95rem; }

/* ---------- 7. MARCAS QUE TRABALHAMOS (carrossel horizontal) ---------- */
.brands-marquee {
  background: var(--yellow);
  color: var(--black);
  overflow: hidden;
  padding-block: 16px 14px;
}
.marquee-title {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  margin-bottom: 12px;
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
@media (hover: hover) and (pointer: fine) {
  .marquee:hover { animation-play-state: paused; }
}
.marquee__track {
  display: flex;
  align-items: center;
  flex: none;
  gap: 28px;
  padding-inline-end: 28px;
}
.marquee__track li.dot {
  font-size: 1.1rem;
  line-height: 1;
  opacity: .45;
}
.marquee__track img {
  height: 20px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.12));
}
@media (min-width: 640px) {
  .marquee__track img { height: 26px; }
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
  .brands-marquee { overflow-x: auto; }
}

/* ---------- 7b. BANNER PROMOCIONAL ---------- */
.promo-banner { background: var(--black); line-height: 0; }
.promo-banner img { width: 100%; height: auto; display: block; }


/* ---------- 8. SEÇÕES (espaçamento base) ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }

/* ---------- 9. SERVIÇOS ---------- */
.services { background: var(--paper); }
.services__grid {
  margin-top: 48px;
  display: grid;
  gap: 28px;
}
.service-main {
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  min-height: 400px;
}
.service-main h3 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; line-height: 1.1; }
.service-main p { margin-top: 14px; max-width: 44ch; color: var(--text-soft-dark); }
.service-main .btn { align-self: flex-start; }

/* Carrossel de marcas */
.brands { position: relative; }
.brands__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
  border-radius: 10px;
  scrollbar-width: none;
}
.brands__track::-webkit-scrollbar { display: none; }
.brands__track li {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--graphite);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  overflow: hidden;
}
.brands__track img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.brands__track span {
  display: block;
  padding: 10px 14px;
  font-weight: 700;
  font-size: .95rem;
}
.brands__arrow {
  position: absolute;
  top: calc(50% - 14px);
  transform: translateY(-50%);
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .6);
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--white);
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, color .15s ease;
}
.brands__arrow svg { width: 18px; height: 18px; }
.brands__arrow--prev { left: 8px; }
.brands__arrow--next { right: 8px; }
.brands__arrow:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.brands__dots {
  display: flex; justify-content: center; align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.brands__dots button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: var(--line-dark);
  cursor: pointer;
  transition: background .15s ease, width .15s ease;
}
.brands__dots button[aria-selected="true"] { background: var(--yellow); width: 22px; }
.tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  font-weight: 600;
  font-size: .92rem;
  padding: 6px 14px;
  border: 1.5px solid var(--yellow);
  color: var(--yellow);
  border-radius: 999px;
}
.service-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-light);
}
.service-list li:first-child { padding-top: 6px; }
.service-list li:last-child { border-bottom: 0; }
.service-list .ico { color: var(--black); margin-top: 2px; }
.service-list h3 { font-size: 1.35rem; font-weight: 800; }
.service-list p { margin-top: 6px; color: var(--text-soft); max-width: 46ch; }
.service-list a { font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .services__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}

/* ---------- 10. CALCULADORA ---------- */
.calc { background: var(--graphite); color: var(--white); }
.calc__grid { display: grid; gap: 40px; align-items: start; }
.calc__form { margin-top: 32px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.calc__form .field:last-child { grid-column: 1 / -1; }
.result {
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 14px;
}
.result__label { font-weight: 700; }
.result__value {
  font-size: clamp(3rem, 8vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.result__value small { font-size: .32em; font-weight: 800; letter-spacing: 0; white-space: nowrap; }
.result__text { font-size: 1.05rem; }
.result__note { font-size: .85rem; opacity: .75; }
@media (min-width: 960px) {
  .calc__grid { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
}

/* ---------- 11. COMO FUNCIONA ---------- */
.steps { background: var(--white); }
.steps__list {
  margin-top: 48px;
  display: grid;
  gap: 32px;
  counter-reset: none;
}
.steps__list li { border-top: 4px solid var(--black); padding-top: 20px; }
.steps__n {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 14px;
  background: var(--yellow);
  border-radius: 8px;
  font-family: var(--font-display);
  font-style: italic; font-weight: 900; font-size: 1.4rem;
}
.steps__list h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.steps__list p { margin-top: 8px; color: var(--text-soft); }
@media (min-width: 640px) { .steps__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps__list { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

/* ---------- 12. POR QUE ESCOLHER ---------- */
.why { background: var(--black); color: var(--white); }
.why__grid { display: grid; gap: 48px; align-items: start; }
.why .btn { margin-top: 32px; }
.why__list { display: grid; gap: 28px; }
.why__list li { padding-left: 22px; border-left: 4px solid var(--yellow); }
.why__list h3 { font-size: 1.25rem; font-weight: 800; }
.why__list p { margin-top: 6px; color: var(--text-soft-dark); max-width: 52ch; }
@media (min-width: 960px) {
  .why__grid { grid-template-columns: 1fr 1fr; gap: 88px; }
}

/* ---------- 13. DEPOIMENTOS ---------- */
.proof { background: var(--paper); }
.proof__grid { margin-top: 44px; display: grid; gap: 32px; }
.quote-big {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 48px);
  border-left: 8px solid var(--yellow);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.quote-big p {
  font-family: var(--font-display);
  font-style: italic; font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.25;
}
.quote-big figcaption { color: var(--text-soft); font-weight: 600; }
.quote-side { display: grid; gap: 24px; align-content: start; }
.quote-side figure { border-top: 4px solid var(--black); padding-top: 18px; }
.quote-side p { font-size: 1.1rem; }
.quote-side figcaption { margin-top: 10px; color: var(--text-soft); font-weight: 600; font-size: .95rem; }
.stars { color: var(--yellow-deep); letter-spacing: 2px; font-size: 1rem; margin-bottom: 12px; }
figcaption span { font-weight: 500; color: var(--text-soft); }
@media (min-width: 900px) {
  .proof__grid { grid-template-columns: 1.3fr 1fr; gap: 56px; }
}

/* ---------- 14. CTA FINAL ---------- */
.cta { background: var(--yellow); padding-block: clamp(40px, 7vw, 80px); }
.cta__inner {
  display: grid;
  gap: 32px;
  justify-items: center;
  text-align: center;
}
.cta__banner {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

/* ---------- 15. FAQ ---------- */
.faq { background: var(--white); }
.faq__grid { display: grid; gap: 32px; align-items: start; }
.faq__items details { border-bottom: 1px solid var(--line-light); }
.faq__items details:first-child { border-top: 1px solid var(--line-light); }
.faq__items summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.faq__items summary::-webkit-details-marker { display: none; }
.faq__items summary::after {
  content: "+";
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--yellow);
  border-radius: 6px;
  font-size: 1.4rem; line-height: 1; font-weight: 700;
}
.faq__items details[open] summary::after { content: "\2212"; }
.faq__items details p { padding: 0 52px 24px 0; color: var(--text-soft); max-width: 62ch; }
.faq__items a { font-weight: 600; }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: .7fr 1.3fr; gap: 72px; }
}

/* ---------- 16. FOOTER ---------- */
.footer { background: var(--black); color: var(--text-soft-dark); padding-top: clamp(48px, 7vw, 80px); }
.footer__grid { display: grid; gap: 36px; }
.footer__brand img { width: 200px; height: auto; }
.footer__brand p { margin-top: 16px; max-width: 34ch; }
.footer h3 { color: var(--white); font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.footer p + p { margin-top: 4px; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.footer__social .ico { width: 18px; height: 18px; }
.footer__social a:hover { color: var(--yellow); }
.footer a { text-underline-offset: 3px; }
.footer a:hover { color: var(--yellow); }
.footer__legal {
  margin-top: 48px;
  padding: 22px 0 calc(22px + 72px);
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: .9rem;
}
@media (min-width: 800px) {
  .footer__grid { grid-template-columns: 1.3fr .8fr .8fr .8fr; gap: 48px; }
  .footer__legal { padding-bottom: 22px; }
}

/* ---------- 17. BOTÃO FIXO WHATSAPP (mobile) ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.wa-float .ico { width: 30px; height: 30px; }
@media (min-width: 900px) { .wa-float { display: none; } }

/* ---------- 18. MOVIMENTO REDUZIDO ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__air { animation: none; }
  .btn, .btn::before { transition: none; }
}
