/* Fontes hospedadas no próprio domínio (antes: Google Fonts, bloqueava a renderização) */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/archivo-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/archivo-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/outfit-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/outfit-latin-wght-normal.woff2') format('woff2'); }
/* Ícones SVG (substituem o Font Awesome) */
.fa-solid, .fa-brands { display: inline-block; line-height: 1; font-style: normal; }
.fa-i { height: 1em; fill: currentColor; vertical-align: -0.125em; overflow: visible; display: inline-block; }

/* ==========================================================================
   MASTER ENGENHARIA E FUNDAÇÕES - LANDING PAGE ESTACA HÉLICE CONTÍNUA
   Design System & Style Engine
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & DESIGN SYSTEM TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Figma Design System — Primitives */
  --navy-900: #0B1930;
  --navy-800: #10233F;
  --navy-700: #14294B;
  --navy-600: #1D3A66;
  --navy-500: #2C4F82;
  --gold-600: #B9821E;
  --gold-500: #E8A93D;
  --gold-300: #F3CD85;
  --green-600: #1DA851;
  --green-500: #25D366;
  --gray-900: #12151A;
  --gray-800: #1F242C;
  --gray-700: #333A45;
  --gray-600: #4A515C;
  --gray-500: #6B7280;
  --gray-400: #9AA1AC;
  --gray-300: #C7CCD3;
  --gray-200: #E4E7EB;
  --gray-100: #F2F4F6;

  /* Brand Palette (semantic aliases used throughout the file) */
  --primary-navy: var(--navy-700);
  --primary-deep: var(--navy-900);
  --primary-blue: var(--navy-500);
  --accent-yellow: var(--gold-500);
  --accent-gold: var(--gold-600);

  /* Neutral Tones */
  --bg-white: #FFFFFF;
  --bg-light: var(--gray-100);
  --bg-card: #FFFFFF;
  --bg-dark: var(--navy-900);
  --bg-dark-elevated: var(--navy-800);

  /* Text Colors */
  --text-main: var(--gray-900);
  --text-muted: var(--gray-600);
  --text-light: var(--gray-400);
  --text-on-dark: #FFFFFF;

  /* Borders & Shadows */
  --border-light: var(--gray-200);
  --border-accent: rgba(232, 169, 61, 0.4);
  --shadow-sm: 0 2px 8px rgba(11, 25, 48, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 25, 48, 0.1);
  --shadow-lg: 0 20px 40px rgba(11, 25, 48, 0.16);

  /* Typography */
  --font-family: 'Archivo', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Gold accent (Figma) */
  --gold: #E8A93D;

  /* Layout Dimensions */
  --header-height: 80px;
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-navy);
}

.text-highlight {
  color: var(--primary-navy);
  background: linear-gradient(120deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 193, 7, 0.6) 100%);
  padding: 0 6px;
  border-radius: 4px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title-group {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px auto;
}

.section-title-group h2 {
  font-size: 2.25rem;
  color: var(--primary-navy);
  margin-bottom: 16px;
}

.section-title-group p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

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

/* --------------------------------------------------------------------------
   3. SCROLLFLOW NAVIGATION LAYOUT
   -------------------------------------------------------------------------- */
.scroll-flow-container {
  width: 100%;
}

.scroll-section {
  position: relative;
  width: 100%;
  padding: 90px 0;
  background-color: var(--bg-white);
  transition: opacity var(--transition-smooth);
}

.scroll-section:nth-child(even) {
  background-color: var(--bg-light);
}

.scroll-section.dark-section {
  background-color: var(--primary-navy);
  color: var(--text-on-dark);
}

.scroll-section.dark-section h2,
.scroll-section.dark-section h3 {
  color: var(--bg-white);
}

.scroll-section.dark-section .section-title-group p {
  color: #CBD5E1;
}


/* --------------------------------------------------------------------------
   3.5 SKIP LINK
   -------------------------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 10000;
  background: var(--primary-navy);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   4. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-sede {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 1px solid var(--border-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-navy);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-yellow);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cta-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all var(--transition-smooth);
}

.btn-cta-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
  color: var(--primary-navy);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (#hero)
   -------------------------------------------------------------------------- */
.hero-bleed {
  position: relative;
  color: var(--bg-white);
  padding: 72px 0 100px 0;
  /* visible on desktop so .quality-seal--corner can hang off the bottom
     edge into #clientes below; the video/scrim/loading overlay are all
     inset (top/bottom/left/right), so they don't rely on this clipping
     to stay put. Reset to hidden for mobile/tablet (max-width:768px),
     where the corner stamp doesn't exist. */
  overflow: visible;
  min-height: 620px;
  display: flex;
  /* Desktop: vertically centered in the hero's height instead of
     hugging the top edge right under the header. Mobile keeps
     flex-start (see the max-width:768px override) — that vertical
     rhythm was already approved as-is. */
  align-items: center;
}

.hero-video {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 25%;
  width: 75%;
  height: 100%;
  object-fit: cover;
  object-position: 95% center;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-video.hero-video-ready {
  opacity: 1;
}

/* Brief branded loading state instead of a static poster image that
   visibly swaps to the video once it starts — this covers the video
   until it's ready, then fades out (see initHeroLoading in script.js). */
.hero-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-navy);
  transition: opacity 0.4s ease;
}

.hero-loading.hero-loading-done {
  opacity: 0;
  pointer-events: none;
}

.hero-loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 193, 7, 0.25);
  border-top-color: var(--accent-yellow);
  border-radius: 50%;
  animation: heroSpin 0.7s linear infinite;
}

@keyframes heroSpin {
  to {
    transform: rotate(360deg);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
      rgba(5, 24, 53, 1) 0%,
      rgba(5, 24, 53, 1) 45%,
      rgba(5, 24, 53, 0.85) 60%,
      rgba(5, 24, 53, 0.35) 80%,
      rgba(5, 24, 53, 0) 95%);
  pointer-events: none;
}

.hero-bleed .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero-content .eyebrow {
  margin-bottom: 32px;
}

.hero-content h1 {
  font-size: 3.75rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content h2.hero-subtitle {
  font-size: 1.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.15rem;
  color: #E2E8F0;
  margin-bottom: 36px;
  max-width: 620px;
}

/* Quality seal — "stamped" badge carrying the same message as the old
   plain-text trust line ("Atendemos obras em todo o Brasil · Há 35
   anos"). Two variants share the same <symbol> markup (see the <use> in
   index.html) and toggle by breakpoint instead of repositioning one
   element across very different layouts. Both are direct children of
   #hero (not nested in .container), so they position relative to the
   whole section and can hang off its bottom edge into #clientes:
   --inline: mobile/tablet, centered on the seam with #clientes.
   --corner: desktop, stamped over the hero's bottom-right corner,
   overlapping into #clientes below it (see .hero-bleed's overflow). */
.quality-seal {
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45));
}

.quality-seal--inline {
  display: none;
  position: absolute;
  left: 50%;
  bottom: -50px;
  z-index: 5;
  width: 140px;
  transform: translateX(-50%) rotate(-9deg);
  /* Own keyframes (below) because the entrance animation replaces the
     whole transform each frame — it needs the translateX(-50%) baked
     in too, or the centering is lost the moment the animation starts. */
  animation: sealStampInCentered 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.quality-seal--corner {
  display: block;
  position: absolute;
  right: 64px;
  bottom: -50px;
  z-index: 5;
  width: 180px;
  transform: rotate(-9deg);
  animation: sealStampIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.quality-seal-svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes sealStampIn {
  0% {
    opacity: 0;
    transform: rotate(-9deg) scale(1.6);
  }

  70% {
    opacity: 1;
    transform: rotate(-9deg) scale(0.94);
  }

  100% {
    opacity: 1;
    transform: rotate(-9deg) scale(1);
  }
}

@keyframes sealStampInCentered {
  0% {
    opacity: 0;
    transform: translateX(-50%) rotate(-9deg) scale(1.6);
  }

  70% {
    opacity: 1;
    transform: translateX(-50%) rotate(-9deg) scale(0.94);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) rotate(-9deg) scale(1);
  }
}

.btn-primary-wpp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
  color: #FFFFFF;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-smooth);
}

#hero .btn-primary-wpp {
  font-size: 1.18rem;
  padding: 9px 20px;
  gap: 8px;
  width: fit-content;
}

.btn-primary-wpp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
}

/* --------------------------------------------------------------------------
   6. CLIENTS (#clientes)
   -------------------------------------------------------------------------- */
#clientes {
  padding: 60px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.marquee-header {
  text-align: center;
  margin-bottom: 28px;
}

.marquee-header h2 {
  font-size: 1.5rem;
  color: var(--primary-navy);
}

.clients-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: clientsMarquee 28s linear infinite;
}

.clients-marquee-track.paused {
  animation-play-state: paused;
}

.clients-marquee-wrapper:hover .clients-marquee-track {
  animation-play-state: paused;
}

@keyframes clientsMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.client-logo-item {
  /* Altura fixa com largura livre (padrão de qualquer faixa de "logos de
     clientes"): as marcas têm proporções muito diferentes entre si (de
     ~1.2:1 até quase 7:1), então forçar todas numa caixa idêntica
     encolhia demais as mais estreitas para caber. Com altura igual pra
     todas e um teto de largura só pra não deixar a mais "larga" dominar
     a fileira, cada marca preenche o espaço no seu próprio formato e
     continua legível. */
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Tall enough for the tallest logo (Usina Ipê, boosted below) — a
     fixed-height flex item clips an overflowing taller child instead of
     growing to fit it, and the marquee wrapper's overflow:hidden (needed
     for the edge fade/loop) would crop it otherwise. */
  height: 66px;
}

.client-logo-item img {
  /* max-height/max-width (not a fixed box) so the browser scales each
     logo down only as much as its own shape requires to fit — a wide
     wordmark hits max-width and ends up a bit shorter, a tall/square
     mark hits max-height and stays full height, with no invisible
     letterboxing gap either way. */
  max-height: 52px;
  max-width: 150px;
  width: auto;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

/* Usina Ipê's mark reads noticeably smaller than the rest even at the
   shared max-height (it's a near-square logo, so it never benefits from
   the extra width the wordmark-style logos get) — sized up on its own. */
.client-logo-item img[alt="Usina Ipê"] {
  max-height: 66px;
}

.client-logo-item:hover img,
.client-logo-item.active img {
  filter: grayscale(0%);
  opacity: 1;
}

.marquee-disclaimer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 24px;
  font-style: normal;
}

.works-disclaimer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--green-600);
  font-weight: 600;
  margin-top: 24px;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   7. TECHNICAL DIFFERENTIALS (#diferenciais)
   -------------------------------------------------------------------------- */
#diferenciais {
  background-color: var(--bg-light);
  padding-bottom: 0;
}

.diff-carousel {
  position: relative;
  margin-bottom: 24px;
}

.diff-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-anchor: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}

.diff-carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  background: var(--primary-navy);
  color: var(--accent-yellow);
}

.carousel-arrow.prev {
  left: -22px;
}

.carousel-arrow.next {
  right: -22px;
}

/* Obras keeps its plain desktop grid — carousel chrome only shows up
   once the mobile breakpoint switches .works-grid to a swipeable
   track (see @media max-width:1024px below). */
.works-carousel .carousel-arrow,
#worksDots {
  display: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50px;
  background: var(--gray-300);
  transition: all var(--transition-fast);
}

.carousel-dots .dot.active {
  width: 22px;
  background: var(--accent-gold);
}

.card-diff {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  min-height: 340px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  flex: 0 0 280px;
  scroll-snap-align: start;
}

.card-diff::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-500), var(--accent-yellow));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card-diff:hover {
  transform: translateY(-8px);
  background-color: var(--bg-dark-elevated);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-yellow);
}

.card-diff:hover::before {
  opacity: 1;
}

.card-diff .icon-box {
  width: 64px;
  height: 64px;
  background-color: var(--gray-100);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  font-size: 1.75rem;
  margin-bottom: 24px;
  transition: color var(--transition-fast);
}

.card-diff:hover .icon-box {
  color: var(--accent-yellow);
}

.card-diff h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary-navy);
  transition: color var(--transition-fast);
}

.card-diff:hover h3 {
  color: var(--gold);
}

.card-diff p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color var(--transition-fast);
}

.card-diff:hover p {
  color: var(--gray-300);
}

/* Desktop entrance: each card fades/slides in from the left, one after
   another, as the section scrolls into view. (The mobile breakpoint
   below overrides this with its own sticky-stack reveal instead.) */
html.reveal-ready .card-diff {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.reveal-ready .card-diff.in-view {
  opacity: 1;
  transform: translateX(0);
}

.diff-carousel-track .card-diff:nth-child(1) {
  transition-delay: 0ms;
}

.diff-carousel-track .card-diff:nth-child(2) {
  transition-delay: 150ms;
}

.diff-carousel-track .card-diff:nth-child(3) {
  transition-delay: 300ms;
}

.diff-carousel-track .card-diff:nth-child(4) {
  transition-delay: 450ms;
}

.diff-carousel-track .card-diff:nth-child(5) {
  transition-delay: 600ms;
}

/* Centered CTA Callout Band */
.cta-banner-card {
  background: var(--bg-light);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.cta-banner-card h3 {
  color: var(--primary-navy);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.cta-banner-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta-banner-card.dark {
  background: var(--bg-dark);
}

.cta-banner-card.dark h3 {
  color: #FFFFFF;
}

.cta-banner-card.dark p {
  color: var(--gray-300);
}

/* Textured CTA variant: static blueprint/graph-paper grid + scroll-in fade.
   A solid panel centered on top holds the text, so the grid only "shows
   through" on the sides. */
.cta-textured {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 0;
  background-color: var(--gray-200);
  background-image:
    linear-gradient(rgba(11, 37, 69, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 69, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  padding: 56px 24px;
  display: block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.cta-textured.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Dark full-bleed variant (Obras section's "Sua obra pode ser a
   próxima") — same grid-paper texture as .cta-textured, inverted for a
   dark navy background, and edge-to-edge since it sits outside .container. */
.cta-textured-dark {
  width: 100%;
  margin-top: 62px;
  border-radius: 0;
  background-color: var(--primary-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  padding: 56px 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.cta-textured-dark.in-view {
  opacity: 1;
  transform: translateY(0);
}

.cta-textured-dark h3 {
  color: #FFFFFF;
}

.cta-textured-dark p {
  color: var(--gray-300);
}

.cta-content-panel {
  max-width: 640px;
  margin: 0 auto;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   8. MONITORING & TELEMETRY GRAPH SECTION (#monitoramento)
   -------------------------------------------------------------------------- */
#monitoramento {
  background-color: var(--bg-dark);
}

#monitoramento p {
  color: var(--gray-300);
}

.eyebrow-dark {
  color: var(--gold-300);
}

.telemetry-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Grid items default to min-width:auto, which can let content with a
   large intrinsic size force this whole column wider than the viewport
   on mobile. min-width:0 lets each column shrink down to its track. */
.telemetry-layout>div {
  min-width: 0;
}

.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 4px;
  background: var(--accent-yellow);
  vertical-align: -0.1em;
  animation: typewriterBlink 0.8s step-start infinite;
}

@keyframes typewriterBlink {
  50% {
    opacity: 0;
  }
}

.sensor-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.sensor-card {
  background: var(--bg-dark-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: all var(--transition-fast);
}

/* Antes era um rótulo pequeno acima de um termo grande (ex.: "Torque de
   perfuração" / "Contínuo"). O termo foi removido a pedido do cliente —
   este rótulo herdou a fonte grande que o termo tinha, pra não perder o
   destaque visual do card. 1.125rem (18px) é o maior tamanho que ainda
   cabe em 1 linha para o rótulo mais longo ("Pressão de concretagem")
   na largura mais estreita do card (2 colunas, ~257px). */
.sensor-card .sensor-label {
  font-size: 1.125rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.sensor-card p {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* Hover: same lift/glow treatment as the Diferenciais cards, in yellow —
   all 4 cards behave identically now (no permanent gold card). */
.sensor-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-md);
}

.sensor-card:hover .sensor-label {
  color: var(--accent-yellow);
}

/* Scroll entrance, custom order: Torque → Consumo → Profundidade →
   Pressão (not DOM order), replaying every time the section re-enters
   view (cardObserver toggles .in-view, see script.js). */
html.reveal-ready .sensor-card {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.reveal-ready .sensor-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.sensor-cards-grid .sensor-card:nth-child(1) {
  transition-delay: 0ms;
}

/* Torque de perfuração */
.sensor-cards-grid .sensor-card:nth-child(2) {
  transition-delay: 300ms;
}

/* Profundidade */
.sensor-cards-grid .sensor-card:nth-child(3) {
  transition-delay: 450ms;
}

/* Pressão de concretagem */
.sensor-cards-grid .sensor-card:nth-child(4) {
  transition-delay: 150ms;
}

/* Consumo de concreto */

/* Interactive Telemetry Graphic Dashboard */
.telemetry-graph-box {
  background: var(--bg-dark-elevated);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
}

.telemetry-graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.telemetry-graph-header h3 {
  color: var(--accent-yellow);
  font-size: 1.1rem;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #4ADE80;
  text-transform: uppercase;
  font-weight: 700;
}

.live-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: #4ADE80;
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

.graph-visualization {
  /* Bleeds to the card's edge — the image already has its own dark
     frame/border baked in, so nesting it inside the box's 24px padding
     read as a "box within a box". */
  position: relative;
  margin: 0 -24px;
  border-radius: 8px;
  overflow: hidden;
}

.graph-visualization-img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: inset(0 0 100% 0);
  opacity: 0.4;
  transition: clip-path 4.5s cubic-bezier(0.45, 0, 0.2, 1), opacity 2s ease;
}

/* Draws in top-to-bottom, very slowly — like a polygraph/seismograph
   writing out live data, as if the monitoring were happening right as
   the reader scrolls to it. A soft gold scan-line rides along the
   reveal edge to sell the "active sensor" feel. */
.graph-visualization.in-view .graph-visualization-img {
  clip-path: inset(0 0 0% 0);
  opacity: 1;
}

.graph-visualization::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3%;
  background: linear-gradient(to bottom, transparent, rgba(255, 193, 7, 0.55), transparent);
  opacity: 0;
  pointer-events: none;
}

.graph-visualization.in-view::after {
  opacity: 1;
  animation: graphScanLine 4.5s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

@keyframes graphScanLine {
  from {
    top: 0%;
  }

  to {
    top: 97%;
  }
}

.graph-legend {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-top: 16px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   9. TECHNICAL SPECS & CALCULATOR (#especificacoes)
   -------------------------------------------------------------------------- */
#especificacoes {
  background-color: var(--bg-light);
  padding-bottom: 40px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.spec-item-card {
  background: var(--primary-navy);
  padding: 28px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-navy);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.spec-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
}

.spec-item-card .value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-yellow);
  margin-bottom: 4px;
}

.spec-item-card .label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
}

.specs-note {
  text-align: center;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.specs-note strong {
  color: var(--primary-navy);
}

.specs-topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto 32px;
}

.specs-topics li {
  position: relative;
  padding-left: 24px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.specs-topics li strong {
  color: var(--primary-navy);
  font-weight: 700;
}

.specs-topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background-color: var(--accent-yellow);
}

/* --------------------------------------------------------------------------
   10. FEATURED PROJECTS / CASES DE SUCESSO (#obras)
   -------------------------------------------------------------------------- */
#obras {
  background-color: var(--bg-white);
  padding-top: 40px;
  padding-bottom: 0;
}

/* Softens the hard seam where Especificações' light-gray background
   meets Obras' white one — a gradient blend instead of an abrupt cut. */
#obras::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--bg-light), var(--bg-white));
  pointer-events: none;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card-work {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.card-work:hover,
.card-work.auto-active {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-work-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.5s var(--transition-smooth), filter var(--transition-smooth);
}

.card-work:hover .card-work-img img,
.card-work.auto-active .card-work-img img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.card-work-body {
  padding: 24px;
}

.card-work-body h3 {
  font-size: 1.35rem;
  color: var(--accent-yellow);
  margin-bottom: 6px;
  transition: color var(--transition-fast);
}

.card-work:hover .card-work-body h3,
.card-work.auto-active .card-work-body h3 {
  color: var(--accent-yellow);
}

.card-work-body .location-tag {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.card-work-body .client-tag {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. INSTITUTIONAL / ABOUT MASTER (#sobre)
   -------------------------------------------------------------------------- */
.scroll-section.about-bleed {
  background-color: var(--primary-navy);
  padding: 0;
}

/* True 50/50 split: left half is a solid navy panel (text + stats side
   by side), right half holds the photo contained and centered rather
   than stretched full-bleed — keeps it sharp instead of upscaled/cropped. */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 480px;
}

.about-panel {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 64px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.about-text h2 {
  color: #FFFFFF;
}

.about-text p {
  color: var(--gray-300);
}

.about-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.about-stats li {
  position: relative;
  padding-left: 20px;
  font-size: 1rem;
  color: #FFFFFF;
}

.about-stats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-yellow);
}

.about-photo-half {
  position: relative;
  background-color: var(--primary-navy);
  overflow: hidden;
}

/* Fades using the SAME navy as .about-panel's own background (not the
   hero's darker tone) so the seam between the two columns disappears —
   starts fully opaque at the seam and stretches the fade further out
   for a softer, more gradual transition into the photo. */
.about-photo-half::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
      rgba(20, 41, 75, 1) 0%,
      rgba(20, 41, 75, 0.85) 18%,
      rgba(20, 41, 75, 0.55) 38%,
      rgba(20, 41, 75, 0.2) 58%,
      rgba(20, 41, 75, 0) 78%);
  pointer-events: none;
}

.about-photo-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 68%;
}

/* --------------------------------------------------------------------------
   13. FAQ ACCORDION (#faq)
   -------------------------------------------------------------------------- */
#faq {
  background-color: var(--bg-light);
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
  border-top: 2px solid var(--accent-yellow);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  margin: 0 -20px;
  transition: background-color var(--transition-fast);
}

.faq-item.active {
  background-color: var(--gray-200);
  border-bottom-color: transparent;
}

.faq-item.active .faq-button {
  color: var(--primary-navy);
}

.faq-item.active .faq-content {
  color: var(--text-muted);
}

.faq-button {
  width: 100%;
  padding: 24px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--accent-gold);
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-item.active .faq-content {
  padding: 0 0 24px 0;
}

/* --------------------------------------------------------------------------
   14. FINAL CTA BANNER & FOOTER (#cta-final & #rodape)
   -------------------------------------------------------------------------- */
#cta-final {
  background: linear-gradient(135deg, #061529 0%, #0B2545 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 100px 0;
}

#cta-final h2 {
  color: #FFFFFF;
  font-size: 2.75rem;
  margin-bottom: 16px;
}

#cta-final h3 {
  color: var(--accent-yellow);
  font-size: 1.35rem;
  font-weight: 500;
  max-width: 720px;
  margin: 0 auto 36px auto;
}

.trust-badge-band {
  background-color: var(--navy-900);
  color: var(--gray-400);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 20px 24px;
}

.footer {
  background-color: var(--navy-700);
  color: var(--gray-300);
  padding: 64px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col img {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
  /* Logo file is navy/color for light backgrounds; force it white here
     since the footer is dark. */
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.footer-contact-item:hover {
  color: var(--accent-yellow);
}

.footer-contact-item:first-child {
  margin-top: 0;
}

/* Hollow/outline treatment for the contact icons — a bordered badge
   reads as "vazado" consistently, regardless of which icons Font
   Awesome Free actually ships a regular (outline) weight for. */
.footer-icon-badge {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--accent-yellow);
  margin-top: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--accent-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dev-attribution {
  display: flex;
  align-items: center;
}

.dev-attribution img {
  height: 18px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.dev-attribution a:hover img {
  opacity: 1;
}

/* Floating WhatsApp Widget */
.floating-wpp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s ease;
}

.floating-wpp-btn:hover {
  transform: scale(1.12);
}

/* Barra fixa mobile: ligar + WhatsApp (substitui o botão flutuante) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: none;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 10px;
  text-decoration: none;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  position: relative;
  color: #FFFFFF;
}

.mobile-bar-icon-wrapper {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  font-size: 1.1rem;
}

.mobile-bar-btn.btn-wa {
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
}

.mobile-bar-btn.btn-wa .mobile-bar-icon-wrapper {
  color: var(--green-600);
}

/* --------------------------------------------------------------------------
   15. SCROLLYTELLING FULL-SCREEN — BLOCO 7 (#processo)
   -------------------------------------------------------------------------- */

/* Outer section: white bg, with generous bottom padding separating from next section */
.scrolly-outer-section {
  background: #FFFFFF;
  padding: 0 0 40px 0;
  border-bottom: 1px solid var(--border-light);
}

/* Section header — text block above the sticky layout */
.scrolly-section-header {
  padding: 80px 0 40px;
  text-align: center;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

.scrolly-section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--primary-navy);
  margin: 12px 0 10px;
}

.scrolly-section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

.scrolly-inner-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  gap: 0;
}

/* ── RIGHT: sticky visual column ── */
.scrolly-sticky-col {
  order: 2;
  position: sticky;
  top: calc(var(--header-height) + 16px);
  padding: 0 0 0 32px;
}

/* Visual card container */
.scrolly-visual-card {
  background: var(--primary-navy);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 193, 7, 0.15);
  max-width: 440px;
  margin: 0 auto;
}

/* Step 1: the helix trail "grows" down through the whole hole depth and
   retracts, on a loop — reads as the auger continuously drilling, the
   same top-to-bottom fill technique used for the concrete pour. */
.scrolly-visual-card.step-1-active #augerRevealRect {
  animation: augerDrillReveal 2.6s ease-in-out infinite;
}

@keyframes augerDrillReveal {
  0% {
    height: 0;
  }

  45% {
    height: 360px;
  }

  60% {
    height: 360px;
  }

  100% {
    height: 0;
  }
}

/* Header row: pill + live dot */
.scrolly-vis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  gap: 10px;
  flex-wrap: wrap;
}

.scrolly-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 193, 7, 0.18);
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: 999px;
  padding: 5px 14px 5px 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-num {
  background: var(--accent-yellow);
  color: var(--primary-navy);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
  transition: background 0.4s ease;
}

.pill-text {
  color: #FFF8E1;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.4s ease;
}

.scrolly-live-dot {
  color: #EF4444;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.scrolly-live-dot i {
  animation: blinkRed 0.5s step-start infinite;
  font-size: 0.5rem;
}

@keyframes blinkRed {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

/* SVG container */
.scrolly-svg-stage {
  padding: 12px 18px;
  display: flex;
  justify-content: center;
}

.scrolly-svg {
  width: 100%;
  max-width: 310px;
  border-radius: 10px;
  display: block;
}

/* Sensor row */
.scrolly-sensor-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sensor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

.sensor-item:last-child {
  border-right: none;
}

.sensor-item i {
  font-size: 1rem;
  color: var(--accent-yellow);
}

.sensor-item .s-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748B;
  font-weight: 600;
  white-space: nowrap;
}

.sensor-item .s-value {
  font-size: 0.92rem;
  font-weight: 800;
  color: #F8FAFC;
  font-family: 'Courier New', monospace;
  transition: all 0.4s ease;
  white-space: nowrap;
}

.sensor-item .s-value.flash {
  color: var(--accent-yellow);
}

/* ── LEFT: steps/narrative column ── */
.scrolly-steps-wrap {
  order: 1;
  padding: 0 40px 0 0;
  border-right: 2px solid var(--border-light);
}

.scrolly-steps-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Manual prev/next nav for the steps text box — centered below the
   steps (fixed, not part of the mobile horizontal scroller) so it stays
   put as a constant affordance showing the box changes. */
.scrolly-steps-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.scrolly-nav-arrow {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scrolly-nav-arrow:hover {
  background: var(--primary-navy);
  color: var(--accent-yellow);
  border-color: var(--primary-navy);
}

.scrolly-steps-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-family: 'Courier New', monospace;
}

.scrolly-step {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 0;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: relative;
}

.scrolly-step:hover:not(.active) {
  opacity: 0.8;
}

.scrolly-step.active {
  opacity: 1;
  transform: translateX(4px);
}

/* Step number pill */
.step-number-pill {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  margin-left: -27px;
  position: relative;
  z-index: 2;
}

.scrolly-step.active .step-number-pill {
  background: var(--primary-navy);
  border-color: var(--accent-yellow);
  color: var(--accent-yellow);
  box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.15);
}

/* Step body — desktop card layout */
@media (min-width: 1025px) {
  .step-body {
    flex: 1;
    background: #F8FAFC;
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
  }

  .scrolly-step.active .step-body {
    background: #FFFFFF;
    border-color: rgba(232, 169, 61, 0.7);
    box-shadow: 0 10px 28px rgba(11, 25, 48, 0.08), 0 0 0 1px rgba(232, 169, 61, 0.3);
  }

  .scrolly-step:not(.active) .step-body h3 {
    color: var(--gray-600);
  }

  .scrolly-step.active .step-body h3 {
    color: var(--primary-navy);
  }

  .scrolly-step:not(.active) .step-body p {
    color: var(--gray-500);
  }

  .step-body h3 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.25;
    transition: color 0.3s ease;
  }

  .step-body p {
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
    transition: color 0.3s ease;
  }
}

.step-body p {
  color: var(--gray-800);
  line-height: 1.75;
  margin-bottom: 0;
  font-size: 1.02rem;
}

.step-body strong {
  color: var(--primary-navy);
  font-weight: 700;
}


/* Step chips */
.step-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  color: var(--primary-blue);
  border: 1px solid rgba(0, 86, 179, 0.18);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s;
}

.step-chips .chip i {
  color: #10B981;
  font-size: 0.75rem;
}

.scrolly-step.active .chip {
  background: var(--primary-navy);
  color: #FFF8E1;
  border-color: rgba(255, 193, 7, 0.3);
}

.scrolly-step.active .chip i {
  color: var(--accent-yellow);
}

/* Step 3 CTA box */
.step-cta-box {
  margin-top: 28px;
  background: linear-gradient(135deg, #EFF6FF 0%, #FFF8E1 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.step-cta-box p {
  margin: 0;
  font-weight: 600;
  color: var(--primary-navy);
  font-size: 0.95rem;
}

/* ── Step active visual transition on card ── */
.scrolly-visual-card[data-step="1"] .scrolly-svg {
  filter: hue-rotate(0deg);
}

.scrolly-visual-card[data-step="2"] .scrolly-svg {
  filter: brightness(1.05);
}

.scrolly-visual-card[data-step="3"] .scrolly-svg {
  filter: brightness(1.1);
}

/* --------------------------------------------------------------------------
   16.5 SCROLL REVEAL — fade/slide-in per section as it enters the viewport.
   Gated behind html.reveal-ready (added by JS on load) so content never gets
   stuck invisible if script.js fails to run. #processo is intentionally
   excluded — its own sticky scrollytelling animation stays untouched.
   -------------------------------------------------------------------------- */
html.reveal-ready #clientes .container,
html.reveal-ready #diferenciais .container,
html.reveal-ready #monitoramento .container,
html.reveal-ready #especificacoes .container,
html.reveal-ready #obras .container,
html.reveal-ready .about-split,
html.reveal-ready #faq .container,
html.reveal-ready #cta-final .container {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

html.reveal-ready #clientes .container.in-view,
html.reveal-ready #diferenciais .container.in-view,
html.reveal-ready #monitoramento .container.in-view,
html.reveal-ready #especificacoes .container.in-view,
html.reveal-ready #obras .container.in-view,
html.reveal-ready .about-split.in-view,
html.reveal-ready #faq .container.in-view,
html.reveal-ready #cta-final .container.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Elegant staggered entrance for each section's own intro text (eyebrow
   → heading → paragraph) and small list items — reads as the copy
   settling into place one line at a time, rather than popping in as one
   flat block. Kept subtle on purpose (small rise, no scale/rotation). */
html.reveal-ready #diferenciais .section-title-group>*,
html.reveal-ready #especificacoes .section-title-group>*,
html.reveal-ready #faq .section-title-group>*,
html.reveal-ready .about-text>*,
html.reveal-ready .about-stats li,
html.reveal-ready .specs-topics li,
html.reveal-ready .cta-content-panel>div>*,
html.reveal-ready .cta-textured-dark>div>* {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

html.reveal-ready #diferenciais .container.in-view .section-title-group>*,
html.reveal-ready #especificacoes .container.in-view .section-title-group>*,
html.reveal-ready #faq .container.in-view .section-title-group>*,
html.reveal-ready .about-split.in-view .about-text>*,
html.reveal-ready .about-split.in-view .about-stats li,
html.reveal-ready .container.in-view .specs-topics li,
html.reveal-ready .cta-textured.in-view .cta-content-panel>div>*,
html.reveal-ready .cta-textured-dark.in-view>div>* {
  opacity: 1;
  transform: translateY(0);
}

#diferenciais .section-title-group>*:nth-child(1),
#especificacoes .section-title-group>*:nth-child(1),
#faq .section-title-group>*:nth-child(1),
.about-text>*:nth-child(1),
.cta-content-panel>div>*:nth-child(1),
.cta-textured-dark>div>*:nth-child(1) {
  transition-delay: 0ms;
}

#diferenciais .section-title-group>*:nth-child(2),
#especificacoes .section-title-group>*:nth-child(2),
#faq .section-title-group>*:nth-child(2),
.about-text>*:nth-child(2),
.about-stats li:nth-child(1),
.specs-topics li:nth-child(1),
.cta-content-panel>div>*:nth-child(2),
.cta-textured-dark>div>*:nth-child(2) {
  transition-delay: 130ms;
}

#diferenciais .section-title-group>*:nth-child(3),
#especificacoes .section-title-group>*:nth-child(3),
#faq .section-title-group>*:nth-child(3),
.about-text>*:nth-child(3),
.about-stats li:nth-child(2),
.specs-topics li:nth-child(2) {
  transition-delay: 260ms;
}

.about-stats li:nth-child(3) {
  transition-delay: 390ms;
}

.about-stats li:nth-child(4) {
  transition-delay: 520ms;
}

/* The CTA button gets its own slightly-later, slightly-firmer entrance
   (a small scale-in) so it reads as the destination of the sequence —
   without any exaggerated bounce or pulse. */
html.reveal-ready .cta-banner-card .btn-primary-wpp {
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transition: opacity 0.5s ease 340ms, transform 0.5s ease 340ms;
}

html.reveal-ready .cta-textured.in-view .btn-primary-wpp,
html.reveal-ready .cta-textured-dark.in-view .btn-primary-wpp {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Obras gets a bigger, punchier entrance than the shared fade above —
   title settles in with more travel + a soft overshoot, and each card
   pops in on its own with a staggered bounce (back-out easing). */
html.reveal-ready #obras .section-title-group {
  opacity: 0;
  transform: translateY(46px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.reveal-ready #obras .container.in-view .section-title-group {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html.reveal-ready .card-work {
  opacity: 0;
  transform: translateY(70px) scale(0.82) rotate(-4deg);
  transition: opacity 0.75s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.reveal-ready .card-work.in-view {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
}

.works-grid .card-work:nth-child(1) {
  transition-delay: 0ms;
}

.works-grid .card-work:nth-child(2) {
  transition-delay: 90ms;
}

.works-grid .card-work:nth-child(3) {
  transition-delay: 180ms;
}

.works-grid .card-work:nth-child(4) {
  transition-delay: 270ms;
}

.works-grid .card-work:nth-child(5) {
  transition-delay: 360ms;
}

.works-grid .card-work:nth-child(6) {
  transition-delay: 450ms;
}

/* --------------------------------------------------------------------------
   16. RESPONSIVE MEDIA QUERIES (Breakpoints)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .telemetry-layout {
    grid-template-columns: 1fr;
  }

  /* Stack the split vertically — panel on top, photo below. The fixed
     480px height is a desktop-only side-by-side measurement; stacked
     content needs to grow past it, or it overflows into the next
     section (the About photo was bleeding into #processo's header). */
  .about-split {
    grid-template-columns: 1fr;
    height: auto;
  }

  .about-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 40px 24px;
    gap: 28px;
  }

  .about-photo-half {
    height: 280px;
  }

  .specs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-diff {
    flex: 0 0 260px;
  }

  /* Obras: real swipeable horizontal carousel on mobile (no more
     sticky-stacking) — one project at a time, next one peeking at the
     edge, dots + arrows via the shared carousel JS (initCarousel). */
  .works-carousel {
    position: relative;
  }

  .works-grid {
    display: flex;
    grid-template-columns: unset;
    gap: 20px;
    /* No horizontal padding here on purpose: padding on the scroll
       container shrinks its own content box, which then shrinks a
       %-based card flex-basis a SECOND time (percentages compound),
       leaving the first/last card short of true center. The "peek"
       space instead comes from margin on the first/last card (which
       resolves against the container's — now full — content box) plus
       scroll-padding-inline below (a snap-only hint that doesn't
       affect layout), so both stay in exact sync. */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 6%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .works-grid::-webkit-scrollbar {
    display: none;
  }

  .card-work {
    flex: 0 0 88%;
    scroll-snap-align: center;
  }

  .card-work:first-child {
    margin-left: 6%;
  }

  .card-work:last-child {
    margin-right: 6%;
  }

  /* No hover on touch — show each project's photo in full color rather
     than leaving it permanently desaturated with no way to reveal it. */
  .card-work-img img {
    filter: grayscale(0%);
  }

  .works-carousel .carousel-arrow,
  #worksDots {
    display: flex;
  }

  .cta-banner-card {
    padding: 36px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  /* Scrollytelling: visual shrinks + stays static on top, steps become a
     horizontal drag/swipe carousel instead of a long vertical scroll. */
  .scrolly-inner-wrapper {
    grid-template-columns: 1fr;
    /* Back to two separate boxes (not merged into one navy card) — the
       image card keeps its own navy background, the text card below it
       is plain white/black like the rest of the page. Bottom padding
       here (not on the outer section) is what keeps this whole block
       from touching the next section directly below it. */
    margin: 0 24px;
    padding-bottom: 32px;
  }

  .scrolly-sticky-col {
    order: 1;
    position: relative;
    top: auto;
    padding: 20px 0 0;
  }

  .scrolly-steps-wrap {
    order: 2;
    padding: 0;
    border-right: none;
    /* Without this, the wrap (now the actual grid item, with the
       horizontally-scrolling .scrolly-steps-col nested one level inside
       it instead of being the grid item itself) reports its intrinsic
       min-width as the FULL unscrolled width of all 3 step cards side by
       side, stretching the grid track past 100vw and opening a page-wide
       horizontal scrollbar that shifted the whole section (and the
       header/next section) sideways. */
    min-width: 0;
  }

  .scrolly-visual-card {
    max-width: none;
    margin: 0 0 20px;
    /* Radius was noticeably larger here than the rest of the site's
       cards (24px) for how small this card is now — scaled down to
       match .radius-md used elsewhere. */
    border-radius: var(--radius-md);
  }

  .scrolly-svg-stage {
    padding: 4px 8px;
  }

  .scrolly-svg {
    max-width: 128px;
  }

  .scrolly-vis-header {
    padding: 10px 14px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
  }

  .sensor-item {
    padding: 8px 6px;
  }

  .scrolly-steps-col {
    padding: 4px 0 4px;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .scrolly-steps-col::-webkit-scrollbar {
    display: none;
  }

  .step-number-pill {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
    margin-left: 0;
  }

  .scrolly-step {
    min-height: 0;
    flex: 0 0 92%;
    scroll-snap-align: center;
    transform: none;
    padding: 4px 4px 4px 0;
    gap: 14px;
  }

  .scrolly-step:first-child {
    margin-left: 4%;
  }

  .scrolly-step:last-child {
    margin-right: 4%;
  }

  .step-body h3 {
    font-size: 1.15rem;
    color: var(--primary-navy);
    margin-bottom: 4px;
  }

  .step-body p {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 0;
    color: var(--text-muted);
  }

  .scrolly-step.active {
    transform: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .hero-bleed {
    padding: 100px 0 64px;
    min-height: 520px;
    align-items: flex-start;
  }

  .hero-video {
    left: 0;
    width: 100%;
    object-position: center center;
  }

  /* Swap to the centered seal stamped on the seam with #clientes — the
     corner stamp only makes sense with a distinct video/text two-column
     layout with real space in a bottom corner, which mobile doesn't
     have. */
  .quality-seal--inline {
    display: block;
  }

  .quality-seal--corner {
    display: none;
  }

  /* Mobile: diagonal fade (bottom-left → top-right) instead of the
     desktop's left→right scrim, same navy but lighter overall opacity. */
  .hero-scrim {
    background: linear-gradient(to top right,
        rgba(5, 24, 53, 0.9) 0%,
        rgba(5, 24, 53, 0.6) 45%,
        rgba(5, 24, 53, 0.3) 75%,
        rgba(5, 24, 53, 0) 100%);
  }

  .hero-content {
    text-align: center;
  }

  .hero-content .eyebrow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(5, 24, 53, 0.95);
  }

  .hero-content h1 {
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(5, 24, 53, 0.95);
  }

  .hero-content h2.hero-subtitle {
    font-size: 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(5, 24, 53, 0.95);
  }

  #hero .btn-primary-wpp {
    padding: 8px 18px;
    font-size: 1.05rem;
    font-weight: 800;
    width: fit-content;
  }

  /* .quality-seal is display:block (so it always breaks onto its own
     line below the button, however wide the column is), which means the
     text-align:center above doesn't reach it — margin:auto centers it
     the same way as everything else in the centered mobile hero. */
  .quality-seal {
    margin: 20px auto 0;
  }

  .brand-sede {
    font-size: 0.7rem;
    padding-left: 8px;
  }

  /* Header: collapse full nav + text CTA into hamburger + icon button */
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all var(--transition-fast);
  }

  #siteNav.open .nav-menu {
    max-height: 400px;
    opacity: 1;
    padding: 16px 24px 24px;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .btn-cta-header {
    display: none;
  }

  .btn-nav-toggle {
    display: flex;
  }

  /* Barra fixa substitui o botão flutuante no mobile */
  .mobile-bottom-bar {
    display: flex;
  }

  .floating-wpp-btn {
    display: none !important;
  }

  body {
    padding-bottom: 64px;
  }

  .section-title-group h2 {
    font-size: 1.6rem;
  }

  /* Differentials: Figma stacks cards vertically on mobile — no carousel controls */
  .diff-carousel-track {
    flex-direction: column;
    overflow-x: visible;
    gap: 16px;
  }

  .card-diff {
    flex: 1 1 auto;
    scroll-snap-align: none;
    position: sticky;
    top: 76px;
  }

  html.reveal-ready .card-diff {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  html.reveal-ready .card-diff.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  /* Mobile has no hover — apply the same dark/gold treatment ONLY to
     the one card currently stuck at the sticky point (.stack-active,
     set by initStackActiveHighlight() in script.js using a narrow
     rootMargin band), not every card that's merely on screen. */
  .card-diff.stack-active {
    background-color: var(--bg-dark-elevated);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-yellow);
  }

  .card-diff.stack-active::before {
    opacity: 1;
  }

  .card-diff.stack-active .icon-box {
    color: var(--accent-yellow);
  }

  .card-diff.stack-active h3 {
    color: var(--gold);
  }

  .card-diff.stack-active p {
    color: var(--gray-300);
  }

  /* Diferenciais switches to sticky-stack on mobile (no swipe), so its
     carousel chrome is irrelevant there. Obras does the opposite (see
     .works-carousel rules below) — full swipeable carousel on mobile,
     plain grid on desktop — so its controls are scoped separately. */
  .diff-carousel .carousel-arrow,
  #diffDots {
    display: none;
  }

  .clients-marquee-track {
    gap: 36px;
    animation-duration: 20s;
  }

  .client-logo-item {
    height: 53px;
  }

  .client-logo-item img {
    max-height: 42px;
    max-width: 120px;
  }

  .client-logo-item img[alt="Usina Ipê"] {
    max-height: 53px;
  }

  .specs-grid,
  .sensor-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .about-stats li {
    font-size: 0.98rem;
  }

  #cta-final h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .btn-primary-wpp {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
  }

  #hero .btn-primary-wpp {
    width: fit-content;
    padding: 8px 16px;
    font-size: 1rem;
  }

  .specs-grid,
  .sensor-cards-grid {
    grid-template-columns: 1fr;
  }
}
/* width/height nas imagens: reserva espaço sem distorcer */
:where(img[height]) { height: auto; }
/* 3 cards de capacidade lado a lado no desktop */
@media (min-width: 768px) { .specs-grid { grid-template-columns: repeat(3, 1fr); } }


/* ---- LCP: a camada de carregamento do vídeo cobria o título e o botão até o vídeo
   ficar pronto (+1 s mínimo). Agora ela fica só sobre o vídeo, abaixo do texto. ---- */
.hero-loading { display: none; }
/* Poster visível desde o início (é o LCP); o vídeo entra por cima quando começa a tocar */
.hero-video { opacity: 1; }
/* Imagem fixa do hero = LCP estável; o vídeo é outro elemento e só aparece quando começa a tocar
   (trocar a fonte do mesmo elemento fazia o PageSpeed perder a medição: NO_LCP) */
#heroVideo { opacity: 0; transition: opacity 0.6s ease; }
#heroVideo.is-playing { opacity: 1; }

/* ---- Ajustes de contraste (PageSpeed / acessibilidade, 08/10/2026) ---- */
#processo .scrolly-section-header .eyebrow { color: #a15c00; }
.sensor-item .s-label { color: #94a3b8; }
.scrolly-step:not(.active) { opacity: 0.75; }
/* o seletor antigo [alt="Usina Ipê"] não pegava (o alt é "Logotipo da Usina Ipê") */
.client-logo-item img[alt*="Usina Ipê"] { max-height: 66px; }
.scrolly-step:not(.active) .step-number-pill { color: #374151; }

/* Contraste no desktop (PageSpeed 08/10) */
.scrolly-live-dot { color: #f87171; }
.scrolly-step:not(.active) .step-body p { color: #374151; }
