/* ============================================================
   RFB ENGENHARIA — style.css
   Estética: Industrial Premium
   Fontes: Barlow Condensed (display) + Barlow (corpo)
   ============================================================ */

/* ---- Variáveis ---- */
:root {
  --graphite:     #1E2225;
  --concrete:     #2A2F34;
  --offwhite:     #F4F1EA;
  --lightgray:    #D8D5CE;
  --midgray:      #9A9690;
  --red:          #C41E1E;
  --red-hover:    #A51818;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --max-w: 1200px;
  --pad-x: clamp(20px, 5vw, 60px);
  --section-y: clamp(72px, 8vw, 120px);

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

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--graphite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
figure { margin: 0; }

/* ---- Container ---- */
.container {
  width: min(var(--max-w), 100% - var(--pad-x) * 2);
  margin-inline: auto;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97) translateY(1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.06);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
}

.btn-white {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.btn-white:hover, .btn-white:focus-visible {
  background: var(--offwhite);
  border-color: var(--offwhite);
}

.btn-lg  { padding: 16px 34px; font-size: 0.9rem; }
.btn-xl  { padding: 20px 44px; font-size: 1rem; font-weight: 700; }

/* ============================================================
   NAVEGAÇÃO
============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--graphite);
  border-bottom-color: rgba(255,255,255,0.07);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 40px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-rfb {
  color: var(--red);
  font-size: 2rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-eng {
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  transition: color 0.18s;
  position: relative;
}
.nav-links a:hover { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.18s;
}
.nav-phone:hover { color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--graphite);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 8px 0 20px;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile__link {
  padding: 14px var(--pad-x);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.18s, background 0.18s;
}
.nav-mobile__link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-mobile .btn {
  margin: 16px var(--pad-x) 0;
  width: calc(100% - var(--pad-x) * 2);
  justify-content: center;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(30,34,37,0.92) 0%, rgba(30,34,37,0.70) 60%, rgba(30,34,37,0.40) 100%),
    linear-gradient(to top, rgba(30,34,37,0.6) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 100px 40px;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  border-left: 3px solid var(--red);
  padding-left: 14px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
  display: none; /* badge already has the red bar */
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.8rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__title em {
  color: var(--red);
  font-style: normal;
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 44px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Services bottom strip */
.hero__strip {
  position: relative;
  z-index: 1;
  padding: 18px 0;
  background: rgba(0,0,0,0.28);
  border-top: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
}
.services-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.strip-sep {
  color: var(--red);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ============================================================
   SECTION COMUNS
============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-label--light { color: rgba(255,255,255,0.45); }

.section-header { margin-bottom: clamp(48px, 6vw, 80px); }
.section-header--light .section-title { color: #fff; }

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--graphite);
}
.section-title--light { color: #fff; }

.section-sub {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--midgray);
  line-height: 1.6;
}

/* ============================================================
   SCROLL REVEAL
============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity  0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger delays for list children */
.servicos-list [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.servicos-list [data-reveal]:nth-child(2) { transition-delay: 0.15s; }
.servicos-list [data-reveal]:nth-child(3) { transition-delay: 0.25s; }
.servicos-list [data-reveal]:nth-child(4) { transition-delay: 0.35s; }
.servicos-list [data-reveal]:nth-child(5) { transition-delay: 0.45s; }

.processo-item:nth-child(1) { transition-delay: 0.05s; }
.processo-item:nth-child(3) { transition-delay: 0.2s; }
.processo-item:nth-child(5) { transition-delay: 0.35s; }

.galeria-grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.galeria-grid [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.galeria-grid [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.galeria-grid [data-reveal]:nth-child(4) { transition-delay: 0.24s; }
.galeria-grid [data-reveal]:nth-child(5) { transition-delay: 0.32s; }
.galeria-grid [data-reveal]:nth-child(6) { transition-delay: 0.4s; }

/* ============================================================
   SERVIÇOS
============================================================ */
.servicos {
  padding-block: var(--section-y);
  background: var(--offwhite);
}

.servicos-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--lightgray);
}

.servico-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--lightgray);
  transition: background 0.2s;
}
.servico-item:hover { background: rgba(0,0,0,0.02); }

.servico-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.8rem;
  color: rgba(30,34,37,0.12);
  line-height: 1;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.servico-nome {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--graphite);
  margin-bottom: 6px;
  line-height: 1.1;
}

.servico-desc {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.65;
  max-width: 580px;
}

.servico-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, gap 0.2s;
  flex-shrink: 0;
}
.servico-cta:hover { border-bottom-color: var(--red); gap: 12px; }

/* ============================================================
   ANTES / DEPOIS
============================================================ */
.antes-depois {
  padding-block: var(--section-y);
  background: var(--graphite);
}

.ad-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.ad-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.ad-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 28px;
}

.ad-instruction {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.ad-instruction svg { opacity: 0.6; }

/* Before / After widget */
.before-after {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: col-resize;
  border: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 600px) {
  .before-after { aspect-ratio: 4/5; }
}

.ba-layer {
  position: absolute;
  inset: 0;
}
.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
}

.ba-layer--before {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0s; /* instant, driven by JS */
}

.ba-label {
  position: absolute;
  bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  color: #fff;
  pointer-events: none;
}
.ba-label--before { left: 16px; background: rgba(30,34,37,0.75); }
.ba-label--after  { right: 16px; background: var(--red); }

.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255,255,255,0.9);
  pointer-events: none;
  z-index: 3;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: col-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  pointer-events: none;
}

.ba-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: col-resize;
  z-index: 5;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* ============================================================
   DESTAQUE (FACHADAS / TELHADOS)
============================================================ */
.destaque { background: var(--offwhite); }
.destaque--rev { background: var(--graphite); }

.destaque__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.destaque--rev .destaque__grid { direction: rtl; }
.destaque--rev .destaque__grid > * { direction: ltr; }

.destaque__photo { overflow: hidden; }
.destaque__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s var(--ease-out);
}
.destaque__photo:hover img { transform: scale(1.05); }

.destaque__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(40px, 6vw, 80px) clamp(32px, 6vw, 80px);
}
.destaque__text--dark { background: var(--graphite); }

.destaque__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--graphite);
}
.destaque__heading--light { color: #fff; }

.destaque__text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #666;
  max-width: 440px;
}
.destaque__p--light { color: rgba(255,255,255,0.58) !important; }

.destaque__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0;
}
.destaque__list li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--graphite);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}
.destaque__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.destaque__list--light li { color: rgba(255,255,255,0.7); }

/* ============================================================
   GALERIA
============================================================ */
.galeria {
  padding-block: var(--section-y);
  background: #EDE9E1;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
}

.gal-item {
  overflow: hidden;
  background: var(--lightgray);
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  transition: transform 0.5s var(--ease-out);
}
.gal-item:hover img { transform: scale(1.06); }

.gal-item--wide {
  grid-column: span 2;
}
.gal-item--wide img { aspect-ratio: 16/9; }

/* ============================================================
   EQUIPE
============================================================ */
.equipe {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.equipe__media {
  position: absolute;
  inset: 0;
}
.equipe__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.equipe__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,34,37,0.92) 0%, rgba(30,34,37,0.5) 50%, rgba(30,34,37,0.15) 100%);
}

.equipe__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.equipe__content {
  color: #fff;
  padding-block: 64px;
  max-width: 680px;
}

.equipe__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.equipe__content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
  max-width: 480px;
}

/* ============================================================
   PROCESSO
============================================================ */
.processo {
  padding-block: var(--section-y);
  background: var(--concrete);
}

.processo-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  border: 1px solid rgba(255,255,255,0.08);
}

.processo-item {
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 48px);
  color: #fff;
}

.processo-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.1);
}

.processo-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.processo-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 12px;
}

.processo-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.7;
}

/* ============================================================
   CTA SECTION
============================================================ */
.cta-section {
  padding-block: clamp(72px, 8vw, 120px);
  background: var(--red);
  position: relative;
  overflow: hidden;
}

/* Subtle geometric background element */
.cta-section::before {
  content: 'RFB';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(12rem, 22vw, 26rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
  user-select: none;
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  max-width: 400px;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.cta-note {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--graphite);
}

.footer__inner {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  gap: 48px;
  padding-block: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__logo-wrap {
  display: inline-block;
  background: #fff;
  padding: 10px 14px 8px;
  margin-bottom: 16px;
}
.footer__logo { max-width: 110px; }

.footer__tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

.footer__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  transition: color 0.18s;
  text-decoration: none;
}
.footer__link:hover { color: #fff; }

.footer__info {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.9;
}

.footer__nav { display: flex; flex-direction: column; }

.footer__bottom {
  padding: 22px 0;
}
.footer__bottom p {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.22);
}

/* ============================================================
   WHATSAPP FLOAT
============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 150;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
}

/* ============================================================
   ANIMAÇÕES KEYFRAMES
============================================================ */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================================
   RESPONSIVIDADE
============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }

  .destaque__grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .destaque__photo { aspect-ratio: 16/9; }
  .destaque--rev .destaque__grid { direction: ltr; }

  .ad-grid { grid-template-columns: 1fr; gap: 48px; }
  .ad-text { max-width: 600px; }

  .processo-grid {
    grid-template-columns: 1fr;
  }
  .processo-divider { width: auto; height: 1px; align-self: auto; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }

  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-action { align-items: flex-start; }
  .cta-section::before { display: none; }

  .galeria-grid { grid-template-columns: 1fr 1fr; }
  .gal-item--wide { grid-column: span 2; }
}

/* Mobile */
@media (max-width: 640px) {
  /* Tipografia hero */
  .hero__title { font-size: clamp(2.8rem, 13vw, 3.8rem); }
  .hero__badge { font-size: 0.62rem; letter-spacing: 0.12em; flex-wrap: wrap; }
  .hero__actions { gap: 10px; flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Botões — sem nowrap no mobile para evitar overflow */
  .btn { white-space: normal; }
  .btn-lg { padding: 14px 20px; font-size: 0.85rem; }
  .btn-xl { padding: 16px 28px; font-size: 0.95rem; }

  /* Serviços */
  .servico-item {
    grid-template-columns: 44px 1fr;
    gap: 14px 16px;
    padding: 20px 0;
  }
  .servico-num { font-size: 2.2rem; }
  .servico-cta { display: none; }

  /* Destaque (fachadas / telhados) */
  .destaque__text {
    padding: 40px clamp(20px, 6vw, 32px);
  }
  .destaque__text .btn {
    width: 100%;
    justify-content: center;
  }

  /* Galeria */
  .galeria-grid { grid-template-columns: 1fr; gap: 6px; }
  .gal-item img { aspect-ratio: 4/3; }
  .gal-item--wide img { aspect-ratio: 4/3; }
  .gal-item--wide { grid-column: span 1; }

  /* Equipe */
  .equipe { min-height: 400px; }
  .equipe__content { padding-block: 44px; }

  /* Processo */
  .processo-grid { border: none; }
  .processo-item {
    padding: 28px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .processo-item:last-child { border-bottom: none; }
  .processo-divider { display: none; }
  .processo-num { font-size: 3rem; }

  /* CTA */
  .cta-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .cta-action { align-items: stretch; width: 100%; }
  .cta-action .btn { width: 100%; justify-content: center; }
  .cta-note { text-align: center; max-width: 100%; hyphens: auto; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .footer__link { word-break: break-word; overflow-wrap: break-word; }

  /* Antes/depois */
  .ad-grid { gap: 36px; }
}

@media (max-width: 400px) {
  .hero__title { font-size: clamp(2.6rem, 14vw, 3.2rem); }
  .hero__badge { font-size: 0.58rem; }
  .section-title { font-size: clamp(2rem, 12vw, 3rem); }
}

/* Focus visible (acessibilidade) */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
