/* ============================================================
   CR Esquadrias de Alumínio — landing page
   Sistema: preto profundo + dourado metálico + prata alumínio
   ============================================================ */

:root {
  /* superfícies */
  --ink:      #050505;
  --ink-1:    #0b0b0c;
  --ink-2:    #111113;
  --ink-3:    #17171a;
  --line:     rgba(191, 192, 194, 0.14);
  --line-2:   rgba(191, 192, 194, 0.28);

  /* dourado */
  --gold-1:   #A87518;
  --gold-2:   #F1CE63;
  --gold-3:   #B7831D;
  --gold:     #C9972B;
  --gold-grad: linear-gradient(135deg, #A87518 0%, #F1CE63 46%, #B7831D 100%);
  --gold-text: linear-gradient(118deg, #E4B85C 0%, #F7E29C 48%, #D8A544 100%);

  /* prata / alumínio */
  --silver:   #BFC0C2;
  --silver-dim: #8E9093;

  /* texto */
  --white:    #FDFDFB;
  --paper:    #EDEDE8;
  --muted:    #A6A6A2;

  --wrap: 1160px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: #1b1204; padding: .55rem 1rem; border-radius: 4px;
  font-weight: 600; font-size: .85rem; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; letter-spacing: .003em; color: var(--white); }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 500; }
h1 em, h2 em {
  font-style: italic; font-weight: 500;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
h2 { font-size: clamp(1.95rem, 4.4vw, 3.1rem); }
h3 { font-size: 1.32rem; letter-spacing: .01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--silver);
}
.eyebrow.center { justify-content: center; }
.tick { width: 26px; height: 1px; background: var(--gold-grad); position: relative; flex: none; }
.tick::after { content: ""; position: absolute; right: 0; top: -2px; width: 5px; height: 5px; background: var(--gold-2); transform: rotate(45deg); }

/* ---------- botões ---------- */
.btn {
  --btn-py: .95rem; --btn-px: 1.7rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--f-body); font-weight: 600; font-size: .86rem;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: 2px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
  white-space: nowrap;
}
.btn-sm { --btn-py: .68rem; --btn-px: 1.15rem; font-size: .76rem; }
.btn-lg { --btn-py: 1.15rem; --btn-px: 2.3rem; font-size: .92rem; }
.btn-gold {
  background: var(--gold-grad); color: #1b1204;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 30px -12px rgba(201,151,43,.6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 18px 40px -12px rgba(201,151,43,.75); }
.btn-ghost {
  border: 1px solid var(--line-2); color: var(--paper); background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: var(--gold-2); color: var(--white); transform: translateY(-2px); }
.ico-wa { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6,6,7,.94);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--f-body); font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.brand-text em { font-style: normal; font-size: .66rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-2); }

.nav-list { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav-list a:not(.btn) {
  font-size: .8rem; font-weight: 500; letter-spacing: .03em; color: var(--muted); white-space: nowrap;
  position: relative; padding-block: .3rem; transition: color .2s;
}
.nav-list a:not(.btn):hover { color: var(--white); }
.nav-list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--gold-grad); transition: width .3s var(--ease);
}
.nav-list a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: min(88vh, 840px);
  padding-top: clamp(7rem, 15vw, 9rem); padding-bottom: clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 74% center; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,4,5,.62) 0%, rgba(4,4,5,0) 18%),
    linear-gradient(100deg, rgba(4,4,5,.9) 0%, rgba(4,4,5,.68) 34%, rgba(4,4,5,.32) 64%, rgba(4,4,5,.04) 100%),
    linear-gradient(0deg, rgba(4,4,5,.7) 0%, rgba(4,4,5,.12) 26%, transparent 46%);
}
.hero-edge {
  position: absolute; inset: clamp(14px, 2vw, 26px); z-index: 2; pointer-events: none;
  border: 1px solid rgba(241,206,99,.20);
}
.hero .wrap { position: relative; z-index: 3; width: 100%; }
.hero-copy { max-width: 40rem; }
.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .lead { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.hero-copy .eyebrow { margin-bottom: 1.6rem; }
.hero-copy h1 { margin-bottom: 1.5rem; }
.lead { font-size: 1.08rem; color: var(--paper); opacity: .9; max-width: 40ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.hero-trust { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--silver); }
.hero-trust strong { color: var(--white); font-size: 1rem; }
.stars { color: var(--gold-2); letter-spacing: .12em; font-size: .9rem; }

.frame-corner { position: absolute; width: 22px; height: 22px; border: 1.5px solid var(--gold-2); }
.frame-corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame-corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- faixa ---------- */
.strip { border-block: 1px solid var(--line); background: var(--ink-1); }
.strip-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem;
  padding-block: 1.1rem; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--silver-dim);
}
.strip .dot { width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); }

/* ---------- seções ---------- */
.section { padding-block: clamp(4rem, 10vw, 7.5rem); }
.section-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-sub { color: var(--muted); margin-top: 1rem; font-size: 1.02rem; }

.rule { display: flex; justify-content: center; }
.rule span {
  display: block; width: min(100%, var(--wrap)); margin-inline: var(--pad); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
  position: relative;
}
.rule span::after {
  content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px;
  transform: translateX(-50%) rotate(45deg); background: var(--gold-grad);
}

/* ---------- cards de serviço ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.card {
  position: relative; padding: 1.9rem 1.6rem 1.7rem;
  background: var(--ink-3); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card:hover::after { transform: scaleX(1); }
.card-ico { width: 46px; height: 46px; margin-bottom: 1.1rem; }
.card-ico svg { width: 100%; height: 100%; fill: none; stroke: var(--gold-2); stroke-width: 1.4; stroke-linecap: square; }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .92rem; color: var(--muted); flex: 1; margin-bottom: 1.3rem; }
.card-link { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); display: inline-flex; gap: .4rem; align-items: center; }
.card-link span { transition: transform .25s var(--ease); }
.card-link:hover span { transform: translateX(4px); }

.cards-6 { grid-template-columns: repeat(3, 1fr); }

/* ---------- linhas de alumínio ---------- */
.lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
.line {
  position: relative; padding: 1.7rem 1.5rem;
  background: var(--ink-3); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .7rem;
}
.line-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.line h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.02rem; color: var(--white); }
.line p { font-size: .9rem; color: var(--muted); }
.line-gauge { display: inline-flex; gap: 3px; flex: none; }
.line-gauge i { width: 5px; height: 14px; background: var(--line-2); display: block; }
.line-gauge i:nth-child(1) { background: var(--gold-2); }
.line:nth-child(2) .line-gauge i:nth-child(-n+2),
.line:nth-child(3) .line-gauge i:nth-child(-n+3),
.line:nth-child(4) .line-gauge i { background: var(--gold-2); }
.line-featured {
  border-color: transparent;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) padding-box,
    var(--gold-grad) border-box;
  border: 1px solid transparent;
}
.line-featured h3 { color: transparent; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; }
.lines-note {
  margin-top: 1.8rem; max-width: 60ch; font-size: .95rem; color: var(--muted);
  padding-left: 1rem; border-left: 2px solid var(--line-2);
}
.lines-note strong { color: var(--paper); font-weight: 600; }

/* ---------- como funciona ---------- */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid var(--line);
}
.step {
  position: relative; padding: 1.9rem 1.4rem;
  border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem;
}
.step:last-child { border-right: 0; }
.step-num {
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 500;
  color: transparent; background: var(--gold-text); -webkit-background-clip: text; background-clip: text;
  line-height: 1;
}
.step h3 { font-family: var(--f-body); font-weight: 600; font-size: .96rem; color: var(--white); }
.step p { font-size: .86rem; color: var(--muted); }
.steps-cta { margin-top: 2rem; }

/* ---------- manutenção ---------- */
.section-maint { background: var(--ink-1); border-block: 1px solid var(--line); }
.maint-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.maint-copy .eyebrow { margin-bottom: 1.1rem; }
.maint-copy h2 { margin-bottom: 1rem; }
.maint-copy .section-sub { margin-top: 0; margin-bottom: 1.8rem; }
.maint-list { list-style: none; display: flex; flex-direction: column; }
.maint-list li {
  position: relative; padding: 1rem 0 1rem 1.9rem; font-size: .98rem; color: var(--paper);
  border-bottom: 1px solid var(--line);
}
.maint-list li:first-child { padding-top: 0; }
.maint-list li:last-child { border-bottom: 0; }
.maint-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem; width: 8px; height: 8px;
  background: var(--gold-grad); transform: rotate(45deg);
}
.maint-list li:first-child::before { top: .3rem; }
.maint-list li strong { color: var(--white); font-weight: 600; }
.maint-desc {
  display: block; margin-top: .7rem; padding-top: .6rem;
  border-top: 1px dashed var(--line);
  font-size: .85rem; font-style: italic; line-height: 1.55; color: var(--muted);
}

/* ---------- diferenciais / spec sheet ---------- */
.specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 2px;
}
.spec {
  position: relative; padding: 2.1rem 2rem;
  border-bottom: 1px solid var(--line);
}
.spec:nth-child(odd) { border-right: 1px solid var(--line); }
.spec:nth-last-child(-n+2) { border-bottom: 0; }
.spec-mark { position: absolute; left: 0; top: 2.4rem; width: 3px; height: 26px; background: var(--gold-grad); }
.spec h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.02rem; letter-spacing: .01em; color: var(--white); margin-bottom: .55rem; }
.spec p { font-size: .92rem; color: var(--muted); }

/* ---------- projeto em destaque ---------- */
.section-project { background: var(--ink-1); border-block: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

/* antes / depois */
.ba {
  position: relative; overflow: hidden; border: 1px solid var(--line-2);
  aspect-ratio: 4 / 5; max-height: 640px; user-select: none; touch-action: pan-y;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 2px solid var(--gold-2); }
.ba-before-wrap .ba-img { width: 100vw; max-width: none; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(5,5,5,.78);
  border: 1.5px solid var(--gold-2); color: var(--gold-2);
  display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.ba-handle svg { width: 22px; height: 22px; }
.ba-tag {
  position: absolute; bottom: 12px; font-size: .64rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--white); background: rgba(5,5,5,.6);
  padding: .3rem .6rem; backdrop-filter: blur(3px);
}
.ba-tag-l { left: 12px; }
.ba-tag-r { right: 12px; }

.project-side { display: flex; flex-direction: column; gap: 1.4rem; }
.project-video { border: 1px solid var(--line); background: var(--ink-2); padding: 10px; }
.project-video video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #000; }
.project-video p { font-size: .82rem; color: var(--muted); margin-top: .7rem; }
.project-side .btn { width: 100%; }

/* ---------- depoimentos ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
.review {
  padding: 1.7rem 1.6rem; background: var(--ink-3); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .85rem;
}
.review-head { display: flex; align-items: center; gap: .8rem; }
.review-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--ink-2); }
.review-who { display: flex; flex-direction: column; line-height: 1.35; flex: 1; }
.review-who strong { font-family: var(--f-body); font-weight: 600; font-size: .92rem; color: var(--white); }
.review-who span { font-size: .74rem; color: var(--silver-dim); }
.review-g { width: 20px; height: 20px; flex: none; }
.review .stars { font-size: .82rem; }
.review p { font-size: .96rem; color: var(--paper); font-style: italic; }
.reviews-more { margin-top: 1.8rem; }
.reviews-more a { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); display: inline-flex; gap: .4rem; }

/* ---------- contato / mapa ---------- */
.section-contact { background: var(--ink-1); border-top: 1px solid var(--line); }
.contact-block { max-width: 34rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; }
.contact-list li { padding: 1.15rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; }
.contact-list li:first-child { padding-top: 0; }
.ci-label { font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.ci-value { font-size: .98rem; color: var(--paper); }
.ci-value a { border-bottom: 1px solid var(--line-2); }
.ci-value a:hover { color: var(--white); border-color: var(--gold-2); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.contact-actions .btn { min-width: 220px; }

/* ---------- CTA final ---------- */
.final-cta { padding-block: clamp(4rem, 10vw, 7rem); }
.final-cta-inner {
  position: relative; text-align: center; max-width: 640px;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--pad);
  border: 1px solid var(--line-2);
}
.final-cta-inner .eyebrow { margin-bottom: 1.1rem; }
.final-cta-inner h2 { margin-bottom: .9rem; }
.final-cta-inner p { color: var(--muted); margin-bottom: 2rem; }
.final-cta .frame-corner { width: 26px; height: 26px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); padding-top: clamp(3rem, 7vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.footer-brand strong { font-family: var(--f-body); font-weight: 700; letter-spacing: .04em; color: var(--white); }
.footer-brand p { font-size: .9rem; color: var(--muted); }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { font-size: .86rem; color: var(--muted); }
.footer-nav a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; font-size: .86rem; color: var(--muted); }
.footer-contact a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.4rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: .74rem; color: var(--silver-dim); }
.footer-bottom > p:first-child { flex: 1 1 auto; }
.footer-credit {
  margin-top: .6rem; padding-top: .8rem; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--silver-dim); display: inline-flex; align-items: center;
}
.footer-credit::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: .55rem; background: var(--gold-grad); transform: rotate(45deg); flex: none; }
.footer-credit:hover { color: var(--gold-2); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.55); transition: transform .25s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: waPulse 2.4s var(--ease) 1s 3;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- barra fixa mobile ---------- */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 95;
  padding: .7rem var(--pad) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(6,6,7,.96); border-top: 1px solid var(--line);
  display: none;
}
.mobile-bar .btn { width: 100%; }

/* ---------- reveal on scroll (só quando o JS marca html.js) ---------- */
.reveal { transition: opacity .55s var(--ease), transform .55s var(--ease); }
html.js .reveal:not(.in) { opacity: 0; transform: translateY(16px); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1080px) {
  .cards, .cards-6 { grid-template-columns: repeat(2, 1fr); }
  .lines { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-last-child(-n+1) { border-bottom: 0; }
}

@media (max-width: 1000px) {
  .lead { max-width: 46ch; }
  .project-grid { grid-template-columns: 1fr; }
  .maint-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-bg img { object-position: 68% center; }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2);
    position: relative; z-index: 210; background: rgba(5,5,5,.4);
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 18px; height: 1.5px; background: var(--paper); transition: transform .3s, opacity .3s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before { position: absolute; top: -6px; left: 0; }
  .nav-toggle-bar::after { position: absolute; top: 6px; left: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  /* cabeçalho fica opaco enquanto o menu está aberto */
  body.nav-open .site-header { background-color: #050506; }
  /* fundo escurecido atrás do painel — toca aqui = fecha */
  body.nav-open .nav::before {
    content: ""; position: fixed; inset: 0; z-index: 190;
    background: rgba(0,0,0,.55);
  }

  .nav-list {
    position: fixed; inset: 0 0 0 auto; z-index: 200; width: min(82vw, 320px);
    background: #08080a; border-left: 1px solid var(--line-2);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 5.5rem 1.8rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: -24px 0 60px rgba(0,0,0,.5);
  }
  .nav-list.open { transform: none; }
  .nav-list li { width: 100%; }
  .nav-list li:first-child a:not(.btn) { border-top: 1px solid var(--line-2); }
  .nav-list a:not(.btn) { display: block; padding: 1.05rem 0; border-bottom: 1px solid var(--line-2); font-size: .95rem; width: 100%; color: var(--paper); }
  .nav-list a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1.5rem; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 680px) {
  .cards, .cards-6 { grid-template-columns: 1fr; }
  .lines { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; }
  .step:last-child { border-bottom: 0; }
  .specs { grid-template-columns: 1fr; }
  .spec { padding: 1.7rem 1.4rem 1.7rem 1.6rem; }
  .spec:nth-child(odd) { border-right: 0; }
  .spec:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { align-items: center; }
  .footer-bottom { flex-direction: column; }
  /* deixa o rodapé livre da barra fixa dourada (mobile-bar) */
  .site-footer { padding-bottom: calc(7.5rem + env(safe-area-inset-bottom)); }
  .footer-bottom { padding-bottom: 0; }

  .mobile-bar { display: block; }
  .wa-float { display: none; }
  main { padding-bottom: 2rem; }
  h1 { font-size: clamp(2.3rem, 9vw, 3rem); }

  .hero { min-height: 84vh; }
  /* no celular o botão fixo dourado (mobile-bar) já é o CTA de orçamento —
     tira o "Solicitar orçamento" do hero pra não duplicar */
  .hero-actions { width: 100%; margin-bottom: 1.6rem; }
  .hero-actions .btn-gold { display: none; }
  .hero-actions .btn-ghost { flex: 1 1 100%; }
  .hero-copy h1 { margin-bottom: 1.35rem; }
  .hero-copy .lead { margin-bottom: 2rem; }
  .hero-bg img { object-position: 62% center; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(4,4,5,.42) 0%, rgba(4,4,5,.28) 26%, rgba(4,4,5,.66) 66%, rgba(4,4,5,.9) 100%);
  }
  .hero-edge { inset: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
