/* ============================================================
   TRO ENGENHARIA — Design System
   Azul institucional / Preto técnico / Cinza neutro
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Orbitron:wght@600;700;800;900&display=swap');

:root{
  --black: #05070b;
  --panel: #0c111a;
  --panel-2: #10161f;
  --navy: #0f2743;
  --navy-2: #0a1c33;
  --blue: #2f7cc9;
  --blue-bright: #4ea3f5;
  --blue-dim: #1c4d7a;
  --grey: #8a94a3;
  --grey-light: #c3cad4;
  --line: rgba(255,255,255,0.10);
  --white: #f4f7fb;
  --input-bg: #05070b;
  --contact-end: #0a1c33;
  --card-shadow: none;

  --gold: #f5c518;

  --font: 'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;
  --container: 1144px;
  --radius: 12px;
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* ============================================================
   TEMA CLARO — versão clean com fundo branco
   O Hero, o menu mobile e o lightbox permanecem propositalmente
   escuros nas duas versões (contraste sobre foto / overlay).
   ============================================================ */
:root[data-theme="light"]{
  --black: #ffffff;
  --panel: #f3f6fa;
  --panel-2: #ffffff;
  --blue: #0f4d82;
  --blue-bright: #135f9e;
  --blue-dim: #bcd7ef;
  --grey: #6b7280;
  --grey-light: #3f4753;
  --line: rgba(15,25,40,0.10);
  --white: #161c24;
  --input-bg: #f7f9fb;
  --contact-end: #e8f1fb;
  --card-shadow: 0 2px 14px rgba(20,40,70,0.05);
  --shadow: 0 16px 40px rgba(20,40,70,0.12);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0; padding:0;
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
.icon{ width:22px; height:22px; }
.container{ width:100%; max-width: var(--container); margin:0 auto; padding:0 22px; }
section{ position:relative; }

/* ---------- utility ---------- */
.eyebrow{ font-size:12px; letter-spacing:3px; color:var(--blue-bright); font-weight:700; text-transform:uppercase; }
.section-head{ max-width:680px; margin-bottom:44px; }

.section-head-row{ display:flex; align-items:center; justify-content:space-between; gap:36px; }
.section-head-row .section-head{ margin-bottom:44px; min-width:0; }

/* ---------- Ilustrações ao lado dos títulos ---------- */
.section-art-wrap{ display:none; }

@media (min-width: 1024px){
  .section-art-wrap{
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0; width:315px; margin-bottom:44px;
  }
  .section-art{ width:100%; height:auto; }
}

@media (min-width: 1280px){
  .section-art-wrap{ width:390px; }
}
.section-head h2{ font-size:34px; font-weight:800; color:var(--white); margin-top:10px; line-height:1.2; }
.section-head p{ color:var(--grey-light); font-size:15.5px; margin-top:12px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 30px; border-radius:8px; font-weight:700; font-size:14.5px;
  letter-spacing:0.3px; cursor:pointer; border:none; transition: all .25s ease;
  white-space:nowrap;
}
.btn-primary{ background: linear-gradient(135deg, var(--blue-bright), var(--blue)); color:#fff; box-shadow:0 12px 30px rgba(47,124,201,0.35); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow:0 16px 38px rgba(47,124,201,0.5); }
.btn-outline{ background:transparent; border:1.5px solid rgba(255,255,255,0.25); color:#fff; }
.btn-outline:hover{ border-color: var(--blue-bright); color: var(--blue-bright); }
.btn-whatsapp{ background:#25D366; color:#07310f; }
.btn-whatsapp:hover{ transform: translateY(-2px); box-shadow:0 14px 30px rgba(37,211,102,0.4); }
.btn-block{ width:100%; }

/* ---------- reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-stagger > *{ opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-stagger.is-visible > *{ opacity:1; transform:none; }
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay: .15s; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay: .25s; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay: .35s; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay: .45s; }
.reveal-stagger.is-visible > *:nth-child(6){ transition-delay: .55s; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:fixed; top:0; left:0; width:100%; z-index:100;
  padding:18px 0; transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled{ background: rgba(5,7,11,0.92); backdrop-filter: blur(10px); box-shadow:0 2px 20px rgba(0,0,0,0.4); padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.1); }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:10px; }
.brand-logo-frame{
  display:flex; align-items:center; justify-content:center;
  background:#fff; border-radius:5px; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  padding:6px;
}
.brand-logo-frame img{ display:block; height:52px; width:auto; }
/* A altura da moldura do logo do rodapé é sincronizada via JS com a altura do texto ao
   lado (evita o "loop" de altura em porcentagem que o flexbox cria com imagens). */
.footer-brand .brand-logo-frame{ padding:10px; box-sizing:border-box; height:138px; }
.footer-brand .brand-logo-frame img{ height:100%; width:auto; }

.nav-links{ display:none; align-items:center; gap:32px; }
.nav-links a{ font-size:14px; font-weight:600; color:#c3cad4; transition:color .2s; position:relative; }
.nav-links a:hover{ color:#fff; }
.header-actions{ display:flex; align-items:center; gap:16px; }
.header-actions .btn{ display:none; }
.hamburger{ display:flex; background:none; border:none; color:#fff; cursor:pointer; padding:6px; }
.hamburger .icon{ width:26px; height:26px; }

/* Cabeçalho no tema claro: só troca para texto escuro depois de rolar a página
   (antes disso ele fica transparente sobre a foto escura do hero). */
:root[data-theme="light"] .site-header.scrolled{ background: rgba(255,255,255,0.92); box-shadow:0 2px 20px rgba(20,40,70,0.08); border-bottom:1px solid rgba(15,25,40,0.08); }
:root[data-theme="light"] .site-header.scrolled .nav-links a{ color:#3f4753; }
:root[data-theme="light"] .site-header.scrolled .nav-links a:hover{ color:#135f9e; }
:root[data-theme="light"] .site-header.scrolled .hamburger{ color:#161c24; }

.mobile-menu{
  position:fixed; inset:0; z-index:200; background:#0a0e14;
  display:flex; flex-direction:column; padding:24px 22px;
  transform: translateX(100%); transition: transform .35s ease;
}
.mobile-menu.open{ transform: translateX(0); }
.mobile-menu .close-btn{ align-self:flex-end; background:none; border:none; color:#fff; cursor:pointer; }
.mobile-menu nav{ margin-top:40px; display:flex; flex-direction:column; gap:26px; }
.mobile-menu nav a{ font-size:22px; font-weight:700; color:#fff; }
.mobile-menu .btn{ margin-top:36px; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  min-height:100vh; display:flex; align-items:center; position:relative;
  padding:140px 0 90px;
  background-size:cover; background-position:center;
}
.hero::before{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(5,7,11,0.55) 0%, rgba(5,7,11,0.75) 55%, #05070b 100%),
    linear-gradient(90deg, rgba(10,28,51,0.85) 0%, rgba(10,28,51,0.35) 60%, rgba(10,28,51,0.1) 100%);
}
.hero .container{ position:relative; z-index:2; }
.hero-content{ max-width:720px; }
/* O Hero sempre usa a foto escura com overlay, nas duas versões do site —
   por isso as cores abaixo são fixas e não seguem as variáveis de tema. */
.hero-content .eyebrow{ display:inline-block; margin-bottom:20px; color:#4ea3f5; }
.hero-content h1{ font-family:'Orbitron', var(--font); font-size:36px; font-weight:800; line-height:1.3; letter-spacing:0.5px; color:#fff; }
.hero-content p{ margin-top:20px; font-size:16.5px; color:#c3cad4; max-width:560px; }
.hero-actions{ display:flex; gap:16px; margin-top:34px; margin-bottom:56px; flex-wrap:wrap; }
.hero-scroll{ position:absolute; bottom:34px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:8px; color:#c3cad4; font-size:11px; letter-spacing:2px; z-index:2; }
.hero-scroll .dot{ width:1px; height:34px; background:linear-gradient(180deg, #4ea3f5, transparent); animation: scrolldown 1.8s infinite; }
@keyframes scrolldown{ 0%{opacity:0; transform:translateY(-6px);} 50%{opacity:1;} 100%{opacity:0; transform:translateY(10px);} }

/* ============================================================
   SOBRE
   ============================================================ */
.about{ padding:100px 0; background: linear-gradient(180deg, var(--black), var(--panel) 100%); }
.about-grid{ display:grid; gap:50px; }
.about-text p{ color:var(--grey-light); font-size:15.5px; margin-top:16px; }
.stats-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-top:20px; }
.stat-card{ background:var(--panel-2); box-shadow: var(--card-shadow); border:1px solid var(--line); border-radius:var(--radius); padding:26px 20px; text-align:center; }
.stat-card .num{ font-size:36px; font-weight:800; color:var(--blue-bright); }
.stat-card .lbl{ margin-top:6px; font-size:12.5px; color:var(--grey-light); text-transform:uppercase; letter-spacing:0.5px; }

/* ============================================================
   SERVICOS
   ============================================================ */
.services{ padding:100px 0; background:var(--panel); }
.services-grid{ display:grid; gap:22px; grid-template-columns:1fr; }
.service-card{
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--card-shadow);
  border:1px solid var(--line); border-radius:var(--radius); padding:32px 26px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position:relative; overflow:hidden;
}
.service-card::before{ content:""; position:absolute; top:0; left:0; width:100%; height:3px; background:linear-gradient(90deg, var(--blue-bright), transparent); }
.service-card:hover{ transform: translateY(-6px); border-color: var(--blue-dim); box-shadow: var(--shadow); }
.service-top{ display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.service-icon{ flex:0 0 50px; width:50px; height:50px; border-radius:12px; background:rgba(47,124,201,0.12); border:1px solid var(--blue-dim); display:flex; align-items:center; justify-content:center; }
.service-icon .icon{ width:25px; height:25px; color: var(--blue-bright); }
.service-card h3{ font-size:17.5px; font-weight:700; color:var(--white); line-height:1.3; max-width:130px; }
.service-card p{ margin-top:0; font-size:14px; color:var(--grey); line-height:1.6; }

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.differentiators{ padding:100px 0; background: var(--black); }
.dif-grid{ display:grid; gap:20px; grid-template-columns:1fr; }
.dif-card{ padding:22px; background:var(--panel-2); box-shadow: var(--card-shadow); border:1px solid var(--line); border-radius:var(--radius); }
.dif-top{ display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.dif-icon{ flex:0 0 46px; width:46px; height:46px; border-radius:10px; background:rgba(47,124,201,0.12); border:1px solid var(--blue-dim); display:flex; align-items:center; justify-content:center; }
.dif-icon .icon{ width:22px; height:22px; color:var(--blue-bright); }
.dif-card h4{ font-size:15.5px; color:var(--white); font-weight:700; line-height:1.3; max-width:125px; }
.dif-card p{ margin-top:0; font-size:13.5px; color:var(--grey); }

/* ============================================================
   PROCESSO (timeline)
   ============================================================ */
.process{ padding:100px 0; background: var(--panel); }
.timeline{ display:grid; gap:26px; grid-template-columns:1fr; position:relative; }
.tl-step{ position:relative; padding-left:60px; }
.tl-step .tl-num{
  position:absolute; left:0; top:0; width:44px; height:44px; border-radius:50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--navy)); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:800; font-size:16px;
  box-shadow:0 8px 20px rgba(47,124,201,0.4); z-index:2;
}
.tl-step::before{ content:""; position:absolute; left:21px; top:44px; width:2px; height:calc(100% + 10px); background: var(--line); }
.tl-step:last-child::before{ display:none; }
.tl-step h4{ font-size:16.5px; color:var(--white); font-weight:700; }
.tl-step p{ margin-top:6px; font-size:13.5px; color:var(--grey); max-width:460px; }

/* ============================================================
   GALERIA
   ============================================================ */
.gallery{ padding:100px 0; background: var(--black); }
.gallery-grid{ display:grid; grid-template-columns: repeat(2,1fr); gap:14px; }
.gallery-item{ position:relative; border-radius:10px; overflow:hidden; cursor:pointer; aspect-ratio: 4/3; background:var(--panel-2); }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-item::after{ content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(5,7,11,0.85) 100%); opacity:0; transition:opacity .3s ease; }
.gallery-item:hover::after{ opacity:1; }
.gallery-cap{ position:absolute; left:14px; right:14px; bottom:12px; font-size:12.5px; color:#fff; font-weight:600; opacity:0; transform:translateY(8px); transition: all .3s ease; z-index:2; }
.gallery-item:hover .gallery-cap{ opacity:1; transform:none; }

.lightbox{ position:fixed; inset:0; z-index:300; background:rgba(2,3,6,0.94); display:none; align-items:center; justify-content:center; padding:30px; }
.lightbox.open{ display:flex; }
.lightbox-inner{ position:relative; display:inline-flex; flex-direction:column; align-items:center; max-width:100%; max-height:100%; }
.lightbox-inner img{ max-width:100%; max-height:78vh; border-radius:10px; box-shadow:0 30px 80px rgba(0,0,0,0.6); display:block; }
.lightbox-close{ position:absolute; top:-16px; right:-16px; background:#181f29; border:1px solid rgba(255,255,255,0.15); color:#fff; border-radius:50%; width:36px; height:36px; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 8px 20px rgba(0,0,0,0.45); padding:0; }
.lightbox-close .icon{ width:18px; height:18px; }
.lightbox-cap{ margin-top:16px; text-align:center; color:#c3cad4; font-size:14px; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact{ padding:100px 0; background: linear-gradient(180deg, var(--panel), var(--contact-end) 140%); }
.contact-grid{ display:grid; gap:36px; grid-template-columns:1fr; }
.contact-info{ display:flex; flex-direction:column; gap:18px; }
.contact-info-card{
  background: var(--panel-2); box-shadow: var(--card-shadow); border:1px solid var(--line); border-radius:var(--radius); padding:22px;
  display:grid; grid-template-columns:22px 1fr; column-gap:16px; row-gap:4px; align-items:center;
}
.contact-info-card .ci-icon-main{ color: var(--blue-bright); width:22px; height:22px; }
.contact-info-card .ci-icon-arrow{ color: var(--blue-dim); width:13px; height:13px; }
.contact-info-card h4{ font-size:14px; color:var(--white); font-weight:700; }
.contact-info-card p{ font-size:13.5px; color:var(--grey-light); }

.google-review-card{
  margin-top:auto;
  background: linear-gradient(155deg, var(--navy), var(--navy-2));
  border:1px solid rgba(255,255,255,0.08);
  border-left:3px solid var(--gold);
  border-radius:var(--radius); padding:22px;
}
.google-review-card h4{ font-size:12px; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:#4ea3f5; }
.google-review-card p{ font-size:13.5px; color:#c3cad4; margin-top:10px; line-height:1.6; }
.google-review-rating{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:16px; }
.google-review-rating .google-g{ width:18px; height:18px; }
.google-review-rating .stars{ color:var(--gold); letter-spacing:1px; font-size:14px; }
.google-review-rating strong{ color:#f4f7fb; font-size:14px; }
.google-review-rating .rating-detail{ color:#8a94a3; font-size:12.5px; }

.contact-form{ background: var(--panel-2); border:1px solid var(--line); border-radius:16px; padding:32px; box-shadow: var(--shadow); display:flex; flex-direction:column; }
.contact-form-intro{
  background: linear-gradient(155deg, var(--navy), var(--navy-2));
  border-radius:12px; padding:18px 20px; margin-bottom:22px;
}
.contact-form-eyebrow{ display:block; font-size:11px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; color:var(--gold); margin-bottom:8px; }
.contact-form-title{ font-size:20px; font-weight:800; text-transform:uppercase; letter-spacing:0.3px; color:#ffffff; line-height:1.3; margin:0; }
.form-row{ display:grid; gap:16px; grid-template-columns:1fr; margin-bottom:16px; }
.form-row-grow{ flex:1; display:flex; }
.form-row-grow .form-group{ flex:1; display:flex; flex-direction:column; }
.form-row-grow textarea{ flex:1; }
.form-group label{ display:block; font-size:12.5px; color:var(--grey-light); margin-bottom:8px; font-weight:600; letter-spacing:0.3px; }
.form-group input, .form-group select, .form-group textarea{
  width:100%; background: var(--input-bg); border:1px solid var(--line); border-radius:8px;
  padding:13px 14px; color:var(--white); font-family:var(--font); font-size:14px; transition:border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ outline:none; border-color: var(--blue-bright); }
.form-group textarea{ resize:vertical; min-height:110px; }
.form-msg{
  margin-bottom:20px; font-size:13.5px; padding:14px 16px; border-radius:10px;
  display:none; align-items:center; gap:10px;
}
.form-msg.show{ display:flex; animation: form-msg-in .35s ease; }
@keyframes form-msg-in{ from{ opacity:0; transform:translateY(-8px); } to{ opacity:1; transform:translateY(0); } }
.form-msg.ok{ background:rgba(78,203,138,0.12); color:#7bdaa6; border:1px solid rgba(78,203,138,0.3); }
.form-msg.err{ background:rgba(220,90,90,0.12); color:#f0a0a0; border:1px solid rgba(220,90,90,0.3); }
.hp-field{ position:absolute; left:-9999px; opacity:0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background: var(--black); border-top:1px solid var(--line); padding:60px 0 26px; }
.footer-grid{ display:grid; gap:36px; grid-template-columns:1fr; margin-bottom:40px; }
/* Quadro de destaque da marca: sempre no azul-marinho institucional da TRO,
   independente do tema claro/escuro do site, para se destacar no rodapé. */
.footer-brand{
  background: linear-gradient(155deg, var(--navy), var(--navy-2));
  border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;
  padding:26px;
  display:flex; align-items:center; gap:22px;
}
.footer-brand .brand{ flex-shrink:0; }
.footer-brand-text{ display:flex; flex-direction:column; }
.footer-brand p{ color:#aebdd1; font-size:13.5px; max-width:280px; line-height:1.6; }
.footer-social{ display:flex; gap:10px; margin-top:16px; }
.footer-social a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  display:flex; align-items:center; justify-content:center; color:#dbe4f0; transition: all .2s ease;
}
.footer-social a:hover{ color:#fff; border-color:var(--blue-bright); background:var(--blue-bright); }
.footer-social .icon{ width:17px; height:17px; }
.footer-col h5{ font-size:13px; color:var(--white); letter-spacing:1px; text-transform:uppercase; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul a{ color:var(--grey); font-size:13.5px; transition:color .2s; }
.footer-col ul a:hover{ color: var(--blue-bright); }
.footer-bottom{ border-top:1px solid var(--line); padding-top:22px; display:flex; flex-direction:column; gap:10px; align-items:center; text-align:center; color:var(--grey); font-size:12.5px; }
.footer-bottom a{ color:var(--grey); }

/* whatsapp floating button */
.wa-float{
  position:fixed; bottom:22px; right:22px; z-index:90; width:58px; height:58px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 12px 30px rgba(0,0,0,0.4);
  transition: transform .25s ease;
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float .icon{ width:28px; height:28px; color:#07310f; }

/* ---------- Widget de preferências (tema + idioma) ---------- */
.pref-widget{ position:fixed; bottom:22px; left:22px; z-index:95; }
.pref-toggle{
  width:52px; height:52px; border-radius:50%; background:var(--panel-2); border:1px solid var(--line);
  color:var(--blue-bright); display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:0 12px 30px rgba(0,0,0,0.25); transition: transform .25s ease;
}
.pref-toggle:hover{ transform: scale(1.06); }
.pref-toggle .icon{ width:24px; height:24px; }
.pref-panel{
  position:absolute; bottom:64px; left:0; width:220px;
  background:var(--panel-2); border:1px solid var(--line); border-radius:14px;
  padding:16px; box-shadow:0 20px 50px rgba(0,0,0,0.3);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.pref-widget.open .pref-panel{ opacity:1; visibility:visible; transform:none; }
.pref-group{ margin-bottom:14px; }
.pref-group:last-child{ margin-bottom:0; }
.pref-label{ display:block; font-size:10.5px; letter-spacing:1.5px; text-transform:uppercase; color:var(--grey); font-weight:700; margin-bottom:9px; }
.pref-options{ display:flex; gap:8px; }
.pref-opt{
  flex:1; display:flex; align-items:center; justify-content:center; gap:6px;
  background:var(--input-bg); border:1px solid var(--line); border-radius:8px;
  color:var(--grey-light); font-size:12px; font-weight:700; font-family:var(--font);
  padding:9px 6px; cursor:pointer; transition: all .2s ease;
}
.pref-opt .icon{ width:15px; height:15px; }
.pref-opt:hover{ border-color: var(--blue-dim); color: var(--white); }
.pref-opt.active{ background: var(--blue-bright); border-color: var(--blue-bright); color:#fff; }
.pref-opt .pref-icon-off{ display:none; }
.pref-opt.muted{ opacity:.55; }
.pref-opt.muted .pref-icon-on{ display:none; }
.pref-opt.muted .pref-icon-off{ display:inline-block; }

/* ============================================================
   RESPONSIVE — Tablet (≥ 640px)
   ============================================================ */
@media (min-width: 640px){
  .hero-content h1{ font-size:42px; }
  .stats-grid{ grid-template-columns:repeat(4,1fr); }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .dif-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(3,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — Desktop (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px){
  .nav-links{ display:flex; }
  .hamburger{ display:none; }
  .header-actions .btn{ display:inline-flex; }

  .hero-content h1{ font-size:50px; }
  .about-grid{ grid-template-columns: 1fr 1fr; align-items:center; }
  .services-grid{ grid-template-columns:repeat(4,1fr); }
  .dif-grid{ grid-template-columns:repeat(4,1fr); }

  .timeline{ grid-template-columns:repeat(4,1fr); }
  .tl-step{ padding-left:0; padding-top:60px; }
  .tl-step .tl-num{ left:50%; transform:translateX(-50%); top:0; }
  .tl-step::before{ left:0; top:21px; width:100%; height:2px; }
  .tl-step:first-child::before{ left:50%; width:50%; }
  .tl-step:last-child::before{ width:50%; }
  .tl-step h4, .tl-step p{ text-align:center; margin-left:auto; margin-right:auto; }

  .gallery-grid{ grid-template-columns:repeat(4,1fr); }
  .contact-grid{ grid-template-columns:0.9fr 1.1fr; }
  .form-row.cols-2{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1.4fr 1fr 1fr 1fr; }
}

@media (min-width:1024px) and (min-height:1px){
  .hero{ background-attachment: fixed; }
}

/* ============================================================
   PAVIMENTADORA — elemento de motion vinculado à rolagem
   Visível apenas em telas bem largas (há espaço reservado
   fora do container, à direita, criado ao reduzir --container).
   ============================================================ */
.road-track{ display:none; }

@media (min-width: 1360px){
  .road-track{
    display:block;
    position:absolute;
    top:0; left: calc(50% + 582px);
    width:86.4px;
    box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(10,20,35,0.18);
    z-index:1;
  }
  .road-track-bg{
    position:absolute; left:0; right:0; top:0;
    background-repeat:repeat-y;
    background-size:86.4px 86.4px;
    background-position: 0 0;
  }
  /* Estrada "ruim" (rachada): cobre toda a faixa por padrão, sempre parada (sem rolagem da textura). */
  .road-track-bg-ruim{
    bottom:0;
  }
  /* Estrada "boa" (recapeada): revelada por cima conforme a pavimentadora avança;
     a altura é controlada via JS para acompanhar a posição da máquina. A textura em si
     fica parada — só a máquina se move — para não distorcer as rachaduras desenhadas. */
  .road-track-bg-boa{
    height:0;
  }
  /* A máquina é posicionada via JS (mesma matemática de um "sticky": fica grudada no meio
     vertical da tela enquanto a faixa rola por baixo dela) — feito via transform, e não
     via CSS position:sticky puro, para garantir que ela sempre termine de descer até o
     fim exato da estrada, em sincronia com o recapeamento (sem o navegador "liberar" a
     máquina cedo demais quando o rodapé é curto). */
  .paver{
    position:absolute; left:50%; top:0;
    width:90px;
    transform: translate(-50%, 0);
    will-change: transform;
  }
  .paver-img{ width:100%; height:auto; display:block; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.4)); }

  .paver-smoke{ position:absolute; top:16%; left:50%; width:1px; height:1px; }
  .smoke-puff{
    position:absolute; bottom:0; left:0;
    width:10px; height:10px; border-radius:50%;
    background: radial-gradient(circle, rgba(230,232,236,0.85), rgba(230,232,236,0));
    opacity:0;
    animation: smoke-rise 3.2s ease-out infinite;
  }
  .smoke-puff:nth-child(1){ animation-delay:0s;    top:0; }
  .smoke-puff:nth-child(2){ animation-delay:0.53s; top:2px;  width:8px;  height:8px; }
  .smoke-puff:nth-child(3){ animation-delay:1.06s; top:-2px; width:12px; height:12px; }
  .smoke-puff:nth-child(4){ animation-delay:1.6s;  top:3px;  width:9px;  height:9px; }
  .smoke-puff:nth-child(5){ animation-delay:2.13s; top:-3px; width:11px; height:11px; }
  .smoke-puff:nth-child(6){ animation-delay:2.66s; top:1px;  width:7px;  height:7px; }

  .road-track{ cursor:pointer; }
}

@keyframes smoke-rise{
  0%{ opacity:0; transform: translate(0,0) scale(0.4); }
  15%{ opacity:0.7; }
  100%{ opacity:0; transform: translate(-60px,-14px) scale(1.6); }
}

@media (prefers-reduced-motion: reduce){
  .smoke-puff{ animation:none !important; display:none; }
  .paver, .road-track-bg{ transition:none !important; }
}
