/* =========================================================
   SAVEL ENGENHARIA — site ver 02
   Paleta da logomarca: azul-marinho, azul e azul-claro.
   Tipografia: Barlow Condensed (títulos), IBM Plex Sans (texto),
   IBM Plex Mono (rótulos técnicos).
   ========================================================= */

:root{
  --navy: #073469;
  --navy-deep: #041e3c;
  --blue: #008bd4;
  --blue-dark: #0072b0;
  --blue-light: #46aae6;
  --ink: #0b1b30;
  --text: #33445a;
  --muted: #4a5a70;
  --on-navy: #c9d6e6;
  --line: #dfe5ee;
  --paper: #f3f5f8;
  --white: #ffffff;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --wrap: 1296px;
  --gutter: 72px;
  --header-h: 112px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p{ margin: 0; }
:focus-visible{ outline: 3px solid var(--blue-light); outline-offset: 3px; }

.container{
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Texturas de "prancha de projeto" ---------- */
.bp-dark{
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(rgba(70,170,230,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,170,230,.09) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bp-navy{
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(70,170,230,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,170,230,.10) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bp-light{
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(7,52,105,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,52,105,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---------- Tipografia ---------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--line::before{
  content: "";
  width: 44px; height: 2px;
  background: var(--blue);
}
.on-dark .eyebrow{ color: var(--blue-light); }

.display{
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  color: var(--navy);
}
.display--xl{ font-size: clamp(52px, 7vw, 92px); line-height: .92; }
.display--lg{ font-size: clamp(42px, 5vw, 72px); }
.display--md{ font-size: clamp(36px, 4.2vw, 60px); }
.on-dark .display{ color: var(--white); }
.display .accent{ color: var(--blue-light); }

.lead{ font-size: 19px; line-height: 1.6; color: var(--on-navy); max-width: 540px; }
.body-lg{ font-size: 17px; line-height: 1.7; color: var(--text); }
.on-dark .body-lg{ color: var(--on-navy); }

/* ---------- Botões ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn svg{ width: 20px; height: 20px; flex-shrink: 0; transition: transform .18s ease; }
.btn:hover svg.arrow{ transform: translateX(4px); }
.btn--blue{ background: var(--blue); color: var(--white); }
.btn--blue:hover{ background: var(--blue-dark); }
.btn--navy{ background: var(--navy); color: var(--white); }
.btn--navy:hover{ background: var(--navy-deep); }
.btn--white{ background: var(--white); color: var(--navy); }
.btn--white:hover{ background: #e6f2fa; }
.btn--ghost{ border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--ghost:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--outline{ border-color: var(--navy); color: var(--navy); }
.btn--outline:hover{ background: var(--navy); color: var(--white); }
.btn--sm{ min-height: 48px; padding: 0 22px; font-size: 15px; }

.link-arrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; color: var(--blue);
}
.link-arrow svg{ width: 18px; height: 18px; transition: transform .18s ease; }
.link-arrow:hover svg{ transform: translateX(4px); }

/* ---------- Cabeçalho ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled{ box-shadow: 0 8px 24px rgba(4,30,60,.12); }
.site-header .container{
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: height .2s ease;
}
.site-header.is-scrolled .container{ height: 84px; }
.brand img{ height: 92px; width: auto; transition: height .2s ease; }
.site-header.is-scrolled .brand img{ height: 68px; }

.main-nav{
  display: flex;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.main-nav a{
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover{ color: var(--blue); }
.main-nav a.is-active{ color: var(--blue); border-color: var(--blue); }

.header-cta{ display: flex; align-items: center; gap: 12px; }
.header-cta svg{ width: 18px; height: 18px; }

.nav-toggle{
  display: none;
  width: 48px; height: 48px;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 2px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span{ display: block; width: 22px; height: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.site-header.is-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2){ opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (página inicial) ---------- */
.hero{
  position: relative;
  overflow: hidden;
  min-height: 848px;
  color: var(--white);
}
.hero__photo, .hero__shade{
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 62.5%;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}
.hero__photo{ width: 62.5%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.05); }
.hero__shade{ background: linear-gradient(90deg, rgba(4,30,60,.55) 0%, rgba(4,30,60,0) 45%); }
.hero__slash{
  position: absolute;
  top: 0; bottom: 0;
  left: 37.5%;
  width: 25%;
  background: var(--blue);
  clip-path: polygon(94% 0, 100% 0, 6% 100%, 0 100%);
}
.hero__content{
  position: relative;
  padding-top: 72px;
  padding-bottom: 204px;
}
.hero__text{ max-width: 620px; display: flex; flex-direction: column; gap: 28px; }
.hero__actions{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

.stats{
  position: absolute;
  left: 0; right: 0; bottom: 0;
}
.stats__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white);
  color: var(--ink);
}
.stat{
  padding: 28px 32px;
  border-right: 1px solid #e3e8ef;
  display: flex; flex-direction: column; gap: 4px;
}
.stat__num{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  color: var(--navy);
}
.stat__label{ font-size: 14px; color: var(--muted); }
.stat--crea{
  background: var(--navy);
  border-right: none;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.stat--crea img{ height: 64px; width: auto; background: var(--white); padding: 6px; border-radius: 2px; }
.stat--crea span{ font-size: 15px; line-height: 1.45; color: var(--white); }
.stat--crea strong{ font-weight: 600; }

/* ---------- Hero das páginas internas ---------- */
.page-hero{
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.page-hero__photo, .page-hero__shade{
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46%;
  height: 100%;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}
.page-hero__photo{ object-fit: cover; }
.page-hero__shade{ background: linear-gradient(90deg, rgba(4,30,60,.6) 0%, rgba(4,30,60,.1) 50%); }
.page-hero__slash{
  position: absolute;
  top: 0; bottom: 0;
  left: 54%;
  width: 14%;
  background: var(--blue);
  clip-path: polygon(92% 0, 100% 0, 8% 100%, 0 100%);
  transform: translateX(-50%);
}
.page-hero .container{
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
}
.page-hero__text{ max-width: 600px; display: flex; flex-direction: column; gap: 22px; }
.breadcrumb{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-navy);
}
.breadcrumb a:hover{ color: var(--blue-light); }

/* ---------- Seções ---------- */
.section{ padding: 120px 0; }
.section--paper{ background: var(--paper); }
.section--tight{ padding: 88px 0; }

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 56px;
}
.section-head__title{ display: flex; flex-direction: column; gap: 16px; }
.section-head p{ max-width: 420px; font-size: 17px; line-height: 1.65; color: var(--muted); }
.on-dark .section-head p{ color: var(--on-navy); }

/* ---------- Cards de serviço (home) ---------- */
.svc-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.svc-card{
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: transform .25s ease, box-shadow .25s ease;
}
.svc-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 40px rgba(4,30,60,.14); }
.svc-card__media{ position: relative; height: 340px; overflow: hidden; }
.svc-card__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-card:hover .svc-card__media img{ transform: scale(1.05); }
.svc-card__body{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 32px 36px;
  border-top: 4px solid var(--blue);
}
.svc-card__body h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy);
}
.svc-card__body p{ font-size: 16px; line-height: 1.65; color: var(--text); }
.svc-card__body .link-arrow{ margin-top: auto; padding-top: 8px; }
.svc-card--navy{ background: var(--navy); }
.svc-card--navy .svc-card__body{ border-top-color: var(--blue-light); }
.svc-card--navy h3{ color: var(--white); }
.svc-card--navy p{ color: var(--on-navy); }
.svc-card--navy .link-arrow{ color: var(--blue-light); }

.chip{
  position: absolute;
  top: 20px; left: 20px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 12px;
}
.chip--blue{ background: var(--blue); }
.chip--bottom{ top: auto; bottom: 20px; }

/* ---------- Etapas (como trabalhamos) ---------- */
.steps{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.steps::before{
  content: "";
  position: absolute;
  top: 27px; left: 28px; right: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue-light) 0 10px, transparent 10px 18px);
}
.step{ position: relative; display: flex; flex-direction: column; gap: 18px; }
.step__num{
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 16px;
}
.step:last-child .step__num{ background: var(--white); color: var(--navy); }
.step h3{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  color: var(--white);
}
.step p{ font-size: 15px; line-height: 1.6; color: var(--on-navy); }

/* ---------- Galeria em mosaico ---------- */
.bento{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 300px;
  gap: 16px;
}
.bento figure{ margin: 0; position: relative; overflow: hidden; background: var(--navy-deep); }
.bento img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.bento figure:hover img{ transform: scale(1.05); }
.bento .is-big{ grid-column: span 2; grid-row: span 2; }
.bento .is-wide{ grid-column: span 2; }
.bento figcaption{
  position: absolute;
  left: 20px; bottom: 20px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 12px;
}

/* ---------- Quem somos (home) ---------- */
.about{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  align-items: center;
}
.about__media{ position: relative; height: 520px; }
.about__media img{ position: absolute; top: 0; left: 0; width: 84%; height: 440px; object-fit: cover; }
.about__badge{
  position: absolute;
  right: 0; bottom: 0;
  width: 260px; height: 220px;
  background: var(--navy);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.about__badge svg{ width: 40px; height: 50px; }
.about__badge span{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}
.about__text{ display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.crea-box{
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
}
.crea-box img{ height: 56px; width: auto; flex-shrink: 0; }
.crea-box p{ font-size: 15px; line-height: 1.5; color: var(--text); }
.crea-box strong{ color: var(--navy); font-weight: 600; }

/* ---------- Chamada final ---------- */
.cta-wrap{ background: linear-gradient(180deg, var(--paper) 0 55%, var(--navy-deep) 55% 100%); }
.cta-wrap--white{ background: linear-gradient(180deg, var(--white) 0 55%, var(--navy-deep) 55% 100%); }
.cta{
  position: relative;
  overflow: hidden;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  padding: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
}
.cta::after{
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 420px; height: 100%;
  background: var(--navy);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
}
.cta__text{ position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.cta__text p{ font-size: 17px; color: var(--white); }
.cta__actions{ position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Rodapé ---------- */
.site-footer{ background: var(--navy-deep); color: var(--on-navy); padding-top: 88px; }
.footer-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand{ display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.footer-brand img{ height: 120px; width: auto; background: var(--white); padding: 12px 16px; border-radius: 2px; }
.footer-brand p{ font-size: 14px; line-height: 1.6; color: #93a6bf; max-width: 280px; }
.footer-col{ display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col h4{
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 6px;
}
.footer-col a:hover{ color: var(--blue-light); }
.footer-col .note{ font-size: 13px; color: #7d90aa; margin-top: -8px; }
.footer-crea{ display: flex; align-items: center; gap: 12px; }
.footer-crea img{ height: 48px; width: auto; background: var(--white); padding: 4px; border-radius: 2px; }
.footer-crea span{ font-size: 14px; color: #93a6bf; }
.social{ display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.social svg{ width: 18px; height: 18px; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: 13px;
  color: #7d90aa;
}
.footer-bottom .mono{ font-family: var(--font-mono); }

/* ---------- Página Sobre ---------- */
.split{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: start;
}
.prose{ display: flex; flex-direction: column; gap: 20px; }
.prose p{ font-size: 17px; line-height: 1.75; color: var(--text); }
.prose strong{ color: var(--navy); }

.facts{ display: flex; flex-direction: column; gap: 12px; }
.fact{
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
}
.fact strong{ font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--navy); }

.pillars{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar{
  position: relative;
  background: var(--white);
  padding: 40px 32px 36px;
  border-top: 4px solid var(--blue);
  display: flex; flex-direction: column; gap: 14px;
}
.pillar__num{ font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--blue); }
.pillar h3{ font-family: var(--font-display); font-weight: 700; font-size: 32px; text-transform: uppercase; color: var(--navy); }
.pillar p{ font-size: 16px; line-height: 1.65; color: var(--text); }

.clients{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.clients li{
  background: var(--white);
  padding: 26px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--navy);
  display: flex; align-items: center; gap: 12px;
  transition: background .2s ease, color .2s ease;
}
.clients li::before{ content: ""; width: 8px; height: 8px; background: var(--blue); flex-shrink: 0; }
.clients li:hover{ background: var(--navy); color: var(--white); }

/* ---------- Página Serviços ---------- */
.svc-nav{
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 8px;
}
.svc-nav a{
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid rgba(255,255,255,.4);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white);
}
.svc-nav a:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }

.svc-detail{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  align-items: center;
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.svc-detail:first-child{ padding-top: 0; }
.svc-detail:last-child{ border-bottom: none; padding-bottom: 0; }
.svc-detail--flip .svc-detail__media{ order: 2; }
.svc-detail__media{ position: relative; }
.svc-detail__media img{ width: 100%; height: 480px; object-fit: cover; }
.svc-detail__media::after{
  content: "";
  position: absolute;
  right: -16px; bottom: -16px;
  width: 120px; height: 120px;
  border-right: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
  pointer-events: none;
}
.svc-detail--flip .svc-detail__media::after{ right: auto; left: -16px; border-right: none; border-left: 4px solid var(--blue); }
.svc-detail__text{ display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.svc-detail__text p{ font-size: 17px; line-height: 1.7; color: var(--text); }
.checklist{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  width: 100%;
}
.checklist li{
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15.5px; line-height: 1.5; color: var(--text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.checklist li::before{ content: ""; width: 8px; height: 8px; margin-top: 8px; background: var(--blue); flex-shrink: 0; }

.staffing{
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.staffing__intro{ display: flex; flex-direction: column; gap: 18px; }
.staffing__col h3{
  font-family: var(--font-mono); font-weight: 500;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-light);
  padding-bottom: 14px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.staffing__col li{
  font-family: var(--font-display); font-weight: 600;
  font-size: 26px; text-transform: uppercase; color: var(--white);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ---------- Página Obras ---------- */
.filters{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter{
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
  border-radius: 2px;
}
.filter:hover{ border-color: var(--navy); }
.filter.is-active{ background: var(--navy); border-color: var(--navy); color: var(--white); }

.works{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work{ margin: 0; position: relative; overflow: hidden; background: var(--navy-deep); aspect-ratio: 4 / 3; }
.work img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work:hover img{ transform: scale(1.05); }
.work figcaption{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 20px 18px;
  background: linear-gradient(180deg, rgba(4,30,60,0) 0%, rgba(4,30,60,.95) 38%);
  color: var(--white);
  display: flex; flex-direction: column; gap: 4px;
}
.work figcaption small{ font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-light); }
.work figcaption span{ font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; }
.work.is-hidden{ display: none; }

/* ---------- Contato / formulários ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.channels{ display: flex; flex-direction: column; gap: 16px; }
.channel{
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.channel:hover{ border-color: var(--blue); transform: translateX(4px); }
.channel__icon{
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
}
.channel__icon svg{ width: 22px; height: 22px; }
.channel small{ display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.channel strong{ display: block; font-size: 17px; font-weight: 600; color: var(--navy); word-break: break-word; }

.form-card{
  background: var(--white);
  border-top: 4px solid var(--blue);
  padding: 44px;
  box-shadow: 0 18px 40px rgba(4,30,60,.08);
}
.form-card h2{ margin-bottom: 8px; }
.form-card > p{ color: var(--muted); margin-bottom: 28px; }
.form-row{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-group{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label, .form-group .label{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}
.form-group input, .form-group select, .form-group textarea{
  width: 100%;
  min-height: 52px;
  border: 1.5px solid #cfd7e2;
  background: var(--white);
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border-radius: 2px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group textarea{ resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,139,212,.18);
}
.radio-row{ display: flex; flex-wrap: wrap; gap: 12px; }
.radio-row label{
  display: flex; align-items: center; gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1.5px solid #cfd7e2;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
}
.radio-row input{ accent-color: var(--blue); width: 18px; height: 18px; }
.form-note{
  font-size: 14px;
  color: var(--muted);
  background: var(--paper);
  border-left: 3px solid var(--blue);
  padding: 14px 16px;
  margin-bottom: 24px;
}
.form-success{
  display: none;
  margin-top: 20px;
  background: #e6f4ec;
  border-left: 3px solid #1e8a53;
  color: #145c38;
  padding: 14px 16px;
  font-size: 14.5px;
}

.audience{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.audience__card{
  position: relative;
  padding: 40px 36px;
  background: var(--white);
  border-top: 4px solid var(--blue);
  display: flex; flex-direction: column; gap: 14px;
}
.audience__card--navy{ background: var(--navy); border-top-color: var(--blue-light); }
.audience__card small{ font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.audience__card--navy small{ color: var(--blue-light); }
.audience__card h3{ font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.05; text-transform: uppercase; color: var(--navy); }
.audience__card--navy h3{ color: var(--white); }
.audience__card p{ font-size: 16px; line-height: 1.65; color: var(--text); }
.audience__card--navy p{ color: var(--on-navy); }

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float{
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(4,30,60,.3);
  transition: transform .2s ease, background .2s ease;
}
.wa-float:hover{ transform: scale(1.06); background: var(--blue-dark); }
.wa-float svg{ width: 28px; height: 28px; }

/* ---------- Animação de entrada ---------- */
.js .reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .js .reveal{ opacity: 1; transform: none; transition: none; }
  *{ transition: none !important; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1240px){
  :root{ --gutter: 40px; }
  .main-nav{ gap: 24px; }
  .header-cta .btn span{ display: none; }
  .header-cta .btn{ padding: 0 14px; }
}

@media (max-width: 1080px){
  :root{ --header-h: 88px; }
  .brand img{ height: 68px; }
  .site-header.is-scrolled .brand img{ height: 58px; }
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .site-header.is-open .main-nav{
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--blue);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 32px rgba(4,30,60,.12);
  }
  .site-header.is-open .main-nav a{ padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-header.is-open .main-nav a.is-active{ border-bottom-color: var(--blue); }

  .hero{ min-height: 0; }
  .hero__photo, .hero__shade{ width: 100%; clip-path: none; }
  .hero__shade{ background: linear-gradient(180deg, rgba(4,30,60,.72) 0%, rgba(4,30,60,.9) 100%); }
  .hero__slash{ display: none; }
  .hero__content{ padding-top: 64px; padding-bottom: 48px; }
  .stats{ position: relative; }
  .stats .container{ padding: 0; }
  .stats__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat{ border-bottom: 1px solid #e3e8ef; }

  .page-hero__photo, .page-hero__shade{ width: 100%; clip-path: none; }
  .page-hero__shade{ background: linear-gradient(180deg, rgba(4,30,60,.78) 0%, rgba(4,30,60,.92) 100%); }
  .page-hero__slash{ display: none; }

  .section{ padding: 88px 0; }
  .section-head{ flex-direction: column; align-items: flex-start; gap: 20px; }
  .svc-cards{ grid-template-columns: 1fr; }
  .svc-card__media{ height: 280px; }
  .steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before{ display: none; }
  .bento{ grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
  .about, .split, .contact-grid, .svc-detail{ grid-template-columns: 1fr; gap: 48px; }
  .svc-detail--flip .svc-detail__media{ order: 0; }
  .svc-detail__media img{ height: 360px; }
  .about__media{ height: 440px; }
  .about__media img{ height: 360px; }
  .cta{ flex-direction: column; align-items: flex-start; padding: 56px 40px; }
  .cta::after{ display: none; }
  .footer-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars{ grid-template-columns: 1fr; }
  .clients{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staffing{ grid-template-columns: 1fr 1fr; }
  .staffing__intro{ grid-column: 1 / -1; }
  .works{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  :root{ --gutter: 16px; --header-h: 76px; }
  .brand img{ height: 58px; }
  .header-cta .btn{ display: none; }
  .hero__actions .btn, .cta__actions .btn{ width: 100%; }
  .cta__actions{ width: 100%; }
  .stats__grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat{ padding: 20px 12px; }
  .stat__num{ font-size: 38px; }
  .stat__label{ font-size: 12.5px; line-height: 1.35; }
  .stat--crea{ grid-column: 1 / -1; }
  .section{ padding: 72px 0; }
  .steps{ grid-template-columns: 1fr; }
  .bento{ grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .bento .is-big, .bento .is-wide{ grid-column: auto; grid-row: auto; }
  .about__media{ height: auto; display: flex; flex-direction: column; }
  .about__media img{ position: static; width: 100%; height: 280px; }
  .about__badge{ position: static; width: 100%; height: auto; gap: 16px; }
  .cta{ padding: 40px 20px; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; }
  .clients{ grid-template-columns: 1fr; }
  .checklist{ grid-template-columns: 1fr; }
  .staffing{ grid-template-columns: 1fr; }
  .works{ grid-template-columns: 1fr; }
  .form-card{ padding: 28px 20px; }
  .form-row{ grid-template-columns: 1fr; gap: 0; }
  .audience{ grid-template-columns: 1fr; }
  .svc-detail__media img{ height: 260px; }
  .svc-detail__media::after{ display: none; }
  .wa-float{ right: 16px; bottom: 16px; width: 56px; height: 56px; }
}

/* =========================================================
   Modelo para celular (até 640px): mais compacto, carrosséis
   com deslize lateral e barra de contato fixa no rodapé.
   ========================================================= */
.mobile-bar{ display: none; }

@media (max-width: 640px){
  :root{ --header-h: 68px; }
  body{ padding-bottom: 68px; }
  .brand img{ height: 52px; }
  .site-header.is-scrolled .container{ height: 60px; }
  .site-header.is-scrolled .brand img{ height: 46px; }

  .wa-float{ display: none; }
  .mobile-bar{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    height: 68px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(4,30,60,.12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a{
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: 12px; font-weight: 600; color: var(--navy);
  }
  .mobile-bar a svg{ width: 22px; height: 22px; }
  .mobile-bar a.is-wa{ background: var(--blue); color: var(--white); }

  /* Tipografia e espaçamentos */
  .display--xl{ font-size: 44px; }
  .display--lg{ font-size: 36px; }
  .display--md{ font-size: 30px; }
  .lead{ font-size: 16px; }
  .section{ padding: 56px 0; }
  .section-head{ margin-bottom: 28px; gap: 14px; }
  .section-head p{ font-size: 15px; }
  .eyebrow{ font-size: 11px; }
  .body-lg, .prose p, .svc-detail__text p{ font-size: 16px; }

  /* Topo */
  .hero__content{ padding-top: 36px; padding-bottom: 32px; }
  .hero__text{ gap: 18px; }
  .hero__actions{ gap: 10px; }
  .page-hero .container{ padding-top: 44px; padding-bottom: 44px; }
  .page-hero__text{ gap: 14px; }

  /* Carrosséis com deslize lateral */
  .svc-cards, .bento{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .svc-cards::-webkit-scrollbar, .bento::-webkit-scrollbar{ display: none; }
  .svc-card{ flex: 0 0 84%; scroll-snap-align: start; }
  .svc-card:hover{ transform: none; box-shadow: none; }
  .svc-card__media{ height: 200px; }
  .svc-card__body{ padding: 22px 20px 24px; gap: 12px; }
  .svc-card__body h3{ font-size: 26px; }
  .svc-card__body p{ font-size: 15px; }
  .bento figure{ flex: 0 0 84%; height: 260px; scroll-snap-align: start; }
  .swipe-hint{
    display: flex; align-items: center; gap: 8px;
    margin-top: 12px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted);
  }
  .on-dark .swipe-hint{ color: var(--on-navy); }

  /* Etapas em 2 colunas */
  .steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .step{ gap: 10px; }
  .step__num{ width: 44px; height: 44px; font-size: 14px; }
  .step h3{ font-size: 22px; }
  .step p{ font-size: 13.5px; }

  /* Quem somos */
  .about{ gap: 28px; }
  .about__media img{ height: 230px; }
  .about__badge{ display: none; }
  .about__text{ gap: 18px; }
  .crea-box{ padding: 14px 16px; gap: 14px; }
  .crea-box img{ height: 44px; }
  .crea-box p{ font-size: 14px; }

  /* Chamada final */
  .cta{ padding: 32px 20px; gap: 24px; }
  .cta__text p{ font-size: 15px; }

  /* Rodapé */
  .site-footer{ padding-top: 56px; }
  .footer-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-bottom: 36px; }
  .footer-brand{ grid-column: 1 / -1; }
  .footer-brand img{ height: 88px; padding: 8px 12px; }
  .footer-col{ font-size: 14px; gap: 10px; }
  .footer-grid > .footer-col:nth-child(2){ grid-column: 1 / -1; }
  .footer-crea{ align-items: flex-start; }
  .footer-crea img{ height: 40px; }
  .footer-crea span{ font-size: 13px; }

  /* Páginas internas */
  .svc-nav a{ min-height: 40px; padding: 0 14px; }
  .svc-detail{ padding: 44px 0; gap: 24px; }
  .svc-detail__media img{ height: 220px; }
  .checklist li{ font-size: 15px; padding-bottom: 10px; }
  .staffing{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .staffing__col li{ font-size: 20px; padding: 6px 0; }
  .facts{ gap: 10px; }
  .fact{ padding: 14px 16px; }
  .fact strong{ font-size: 18px; text-align: right; }
  .pillar{ padding: 28px 22px; }
  .pillar h3{ font-size: 26px; }
  .clients{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients li{ font-size: 15px; padding: 16px 12px; gap: 8px; }
  .works{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work figcaption{ padding: 28px 10px 10px; }
  .work figcaption small{ font-size: 9px; }
  .work figcaption span{ font-size: 15px; }
  .filters{ gap: 8px; margin-bottom: 24px; }
  .filter{ padding: 0 14px; }
  .audience__card{ padding: 28px 22px; }
  .audience__card h3{ font-size: 26px; }
  .channel{ padding: 16px; gap: 14px; }
  .channel__icon{ width: 44px; height: 44px; }
  .channel strong{ font-size: 15px; }
}
@media (min-width: 641px){
  .swipe-hint{ display: none; }
}
