/* =========================================================
   HDM Engenharia — estilos (versão clara)
   Paleta: marinho #0A1A30 (logo) + azul #2F6BFF (portfólio)
   sobre fundo claro #F2F5FA. Fonte: Barlow (a do portfólio).
   ========================================================= */

:root {
  --bg:          #F2F5FA;
  --surface:     #FFFFFF;
  --ink:         #0A1A30;
  --ink-2:       #34425A;
  --muted:       #66748C;
  --line:        rgba(10, 26, 48, 0.10);
  --navy:        #0A1A30;
  --navy-2:      #10284D;
  --navy-3:      #173A7A;
  --blue:        #2F6BFF;
  --blue-ink:    #1E55E6;   /* azul p/ texto pequeno sobre fundo claro (contraste) */
  --blue-soft:   #8EAEFF;
  --blue-tint:   #E6EDFF;

  --sans: "Barlow", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --maxw: 1160px;
  --r-lg: 26px;
  --r-md: 18px;
  --shadow-sm: 0 4px 14px rgba(10, 26, 48, 0.06);
  --shadow: 0 18px 44px rgba(10, 26, 48, 0.12);
  --shadow-lg: 0 30px 70px rgba(10, 26, 48, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* brilho azul suave atrás do topo (como o degradê da referência) */
.page-glow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 88% 8%, rgba(47, 107, 255, 0.16), transparent 70%),
    radial-gradient(35% 40% at 5% 30%, rgba(47, 107, 255, 0.08), transparent 70%);
}

.eyebrow {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--blue-ink);
  margin-bottom: 10px;
}
.eyebrow-light { color: var(--blue-soft); }

.section { padding: 110px 0; }
.section-tight { padding: 40px 0; }
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Botões (pílulas) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 10px 24px rgba(10, 26, 48, 0.22); }
.btn-dark:hover { background: var(--navy-3); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 26px rgba(47, 107, 255, 0.35); }
.btn-blue:hover { background: #4A7DFF; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--blue); color: var(--blue-ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(10, 26, 48, 0.25); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: rgba(10, 26, 48, 0.3); }
.btn-block { width: 100%; }

/* =========================================================
   Header — transparente sobre a capa, escurece ao rolar
   ========================================================= */
.header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.header.scrolled {
  background: rgba(8, 20, 38, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
  border-bottom: 1px solid rgba(47, 107, 255, 0.2);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo-img {
  height: 52px;
  width: 213px; /* 52 * (820/200) — largura explícita p/ WebKit iOS */
  max-width: none;
  object-fit: contain;
  transition: height 0.4s var(--ease), width 0.4s var(--ease);
}
.header.scrolled .logo-img { height: 42px; width: 172px; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  position: relative;
  padding-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--blue);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 6px; }
.nav-cta a { padding: 12px 22px; }
.nav-cta a::after { display: none; }
/* hover do botão do menu: azul com texto branco (a regra .nav-links a:hover
   pintava o texto de branco sobre o fundo branco e o botão virava um borrão) */
.nav-links .nav-cta a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: 0.3s var(--ease); }

/* botões da capa: retos e em caixa alta, como no topo escuro */
.btn-hero-outline, .btn-hero-solid {
  border-radius: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn-hero-outline { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.45); }
.btn-hero-outline:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-hero-solid { color: #fff; background: var(--blue); border-color: var(--blue); }
.btn-hero-solid:hover { background: #4A7DFF; box-shadow: 0 10px 26px rgba(47, 107, 255, 0.35); }

/* =========================================================
   Hero — foto em tela cheia com overlay escuro
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}
/* imagem 30% mais alta que a seção (sobe 15%) pra o parallax nunca revelar as bordas */
.hero-media {
  position: absolute;
  top: -15%; left: 0;
  width: 100%;
  height: 130%;
  z-index: 0;
  background: url("../public/img/hero.jpg") center / cover no-repeat, #0a1826;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 26, 48, 0.95) 0%, rgba(10, 26, 48, 0.80) 36%, rgba(10, 26, 48, 0.35) 68%, rgba(10, 26, 48, 0.25) 100%),
    linear-gradient(180deg, rgba(10, 26, 48, 0.25) 0%, rgba(10, 26, 48, 0) 40%, rgba(10, 26, 48, 0.85) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; }
.hero-content { max-width: 660px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.hero-eyebrow::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--blue); }
.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero h1 .line-2 { color: #6D97FF; }
.hero-lead { max-width: 540px; margin: 0 0 40px; font-size: clamp(1.06rem, 1.6vw, 1.26rem); color: #A9B6C9; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* barra das áreas de atuação, sobreposta ao pé da capa */
.pillars { position: relative; z-index: 3; margin-top: -70px; }
.pillars-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  color: #fff;
  background: rgba(14, 34, 64, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(47, 107, 255, 0.28);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.pillar { display: flex; gap: 16px; align-items: flex-start; padding: 30px 26px; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.pillar:last-child { border-right: 0; }
.pillar-icon { flex: none; width: 50px; height: 50px; border-radius: 50%; background: #EEF2FA; display: grid; place-items: center; }
.pillar-icon svg { width: 23px; height: 23px; stroke: var(--navy-3); }
.pillar h3 { margin-bottom: 6px; font-size: 0.98rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pillar p { margin: 0; font-size: 0.92rem; color: #A9B6C9; }

.parallax-on [data-parallax] { will-change: transform; }
@media (max-width: 768px) { .hero-media { top: 0; height: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-media { top: 0; height: 100%; } }

/* =========================================================
   Sobre — cartão escuro com foto e número em destaque
   ========================================================= */
.about-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  padding: 28px;
  border-radius: var(--r-lg);
  color: #fff;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(47, 107, 255, 0.35), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  box-shadow: var(--shadow-lg);
}
.about-media { position: relative; }
.about-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--r-md);
}
.about-badge {
  position: absolute;
  right: -18px; bottom: 26px;
  padding: 16px 22px;
  text-align: center;
  background: rgba(10, 26, 48, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}
.about-badge .num { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.about-badge .num::first-letter { color: var(--blue-soft); }
.about-badge .lab { font-size: 0.86rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); margin-top: 6px; line-height: 1.25; }
.about-text { padding-right: 18px; }
.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.about-text p { color: rgba(255, 255, 255, 0.76); margin: 0 0 14px; font-size: 1.02rem; }
.about-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.about-mini b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.about-mini span { display: block; margin-top: 6px; font-size: 0.84rem; color: rgba(255, 255, 255, 0.7); }

/* =========================================================
   Serviços — acordeão
   ========================================================= */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  color: var(--ink);
}
.acc-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy);
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease);
}
.acc-icon svg { width: 21px; height: 21px; stroke: #fff; }
.acc-title { flex: 1; font-size: 1.24rem; font-weight: 700; }
.acc-chev {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}
.acc-chev::before {
  content: "";
  position: absolute;
  top: 11px; left: 12px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.acc-head:hover .acc-icon { background: var(--blue); }
.acc-item.open .acc-icon { background: var(--blue); }
.acc-item.open .acc-chev { transform: rotate(180deg); background: var(--surface); }

/* painel: abre/fecha animando a altura via grid-template-rows */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.acc-panel > .acc-media { overflow: hidden; min-height: 0; }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-media { position: relative; border-radius: var(--r-md); }
.acc-item.open .acc-media { margin-bottom: 22px; }
.acc-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--r-md);
}
.acc-caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 18px;
  padding: 16px 20px;
  color: #fff;
  background: rgba(10, 26, 48, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 14px;
}
.acc-caption p { margin: 0; font-size: 0.98rem; }
.acc-caption p + p { margin-top: 8px; }

/* =========================================================
   Obras — catálogo (título à esquerda, cartões altos à direita)
   ========================================================= */
.obras-section { background: linear-gradient(180deg, transparent, #E9EEF7 30%, #E9EEF7 70%, transparent); }
.catalogo {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 44px;
  align-items: start;
}
.catalogo-intro { position: sticky; top: 110px; padding-top: 6px; }
.catalogo-intro h2 {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 4.2vw, 3.3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.catalogo-intro > p { margin: 0 0 12px; color: var(--ink-2); font-size: 1.04rem; }
.catalogo-total { color: var(--muted) !important; font-size: 0.95rem !important; }
.catalogo-total b { color: var(--blue-ink); font-size: 1.15rem; }
.catalogo-intro .chips { margin-top: 22px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--ink); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.catalogo-lista { min-width: 0; }
.obras-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0 4px;
  scrollbar-width: none;
}
.obras-marquee::-webkit-scrollbar { display: none; }
.obras-track { display: flex; width: max-content; }
.obras-track .obra { flex: 0 0 260px; width: 260px; margin-right: 22px; }
.obras-track.sem-loop .obra[aria-hidden="true"] { display: none; }

/* card: só a foto arredondada + legenda embaixo (sem caixa, como no catálogo de referência) */
.obra { display: flex; flex-direction: column; cursor: pointer; }
.obra-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  min-height: 300px; /* fallback sem aspect-ratio (iOS antigo) */
  overflow: hidden;
  border-radius: 22px;
  background: #dfe6f2;
  box-shadow: 0 14px 32px rgba(10, 26, 48, 0.14);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.obra-cover {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.obra:hover .obra-photo { transform: translateY(-6px); box-shadow: 0 24px 46px rgba(10, 26, 48, 0.22); }
.obra:hover .obra-cover { transform: scale(1.06); }
/* leve escurecida na base da foto para as etiquetas ficarem legíveis */
.obra-photo::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(10, 26, 48, 0.25) 0%, transparent 28%, transparent 70%, rgba(10, 26, 48, 0.35) 100%);
  pointer-events: none;
}
.tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}
.status-selo {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  color: var(--navy);
  background: #FFC94D;
}
.gallery-count {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 2;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(10, 26, 48, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 999px;
}
.gallery-count svg { width: 14px; height: 14px; stroke: #fff; }

/* Legenda com alturas fixas (título sempre ocupa 2 linhas, local 1 linha)
   e o botão preso na base: textos e botões ficam alinhados entre os cards. */
.obra-body { flex: 1; padding: 16px 4px 0; display: flex; flex-direction: column; align-items: flex-start; }
.obra-cliente { margin: 0 0 3px; font-size: 0.82rem; font-weight: 700; color: var(--blue-ink); }
.obra-body h3 {
  min-height: 2.4em;          /* 2 linhas × line-height 1.2 */
  margin-bottom: 4px;
  font-size: 1.18rem;
  line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.25s var(--ease);
}
.obra:hover .obra-body h3 { color: var(--blue-ink); }
.obra-sub {
  width: 100%;
  min-height: 1.4em;
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.obra-ver {
  margin-top: auto;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(10, 26, 48, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.obra-ver span { display: inline-block; transition: transform 0.25s var(--ease); }
.obra:hover .obra-ver { background: var(--navy); border-color: var(--navy); color: #fff; }
.obra:hover .obra-ver span { transform: translateX(3px); }

/* setas embaixo, à direita: anterior clara, próxima escura (como na referência) */
.obras-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.obras-nav.oculto { display: none; }
.car-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(10, 26, 48, 0.25);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.car-btn svg { width: 20px; height: 20px; stroke: currentColor; }
.car-btn:hover { background: var(--surface); border-color: var(--navy); }
.car-next { background: var(--navy); border-color: var(--navy); color: #fff; }
.car-next:hover { background: var(--navy-3); border-color: var(--navy-3); }
.obras-vazio { display: none; color: var(--muted); padding: 50px 0; }

.clientes {
  margin-top: 56px;
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.clientes-label { flex: none; font-size: 0.86rem; font-weight: 700; color: var(--blue-ink); }
.clientes-lista { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.clientes-lista li { font-size: 1.06rem; font-weight: 700; color: var(--ink-2); }

/* =========================================================
   Chamada (CTA) — cartão escuro com imagem esmaecendo
   ========================================================= */
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(50% 90% at 0% 100%, rgba(47, 107, 255, 0.28), transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  box-shadow: var(--shadow-lg);
}
.cta-text { position: relative; z-index: 2; padding: 48px; }
.cta-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 26px; max-width: 460px; }
.cta-media { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; }
.cta-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  opacity: 0.9;
}

/* =========================================================
   Diferenciais — marca no centro, itens dos dois lados
   ========================================================= */
#diferenciais .section-head { text-align: center; }
.dif-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.dif-col { display: flex; flex-direction: column; gap: 34px; }
.dif-col li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--ink-2);
}
.dif-left li { justify-content: flex-end; text-align: right; }
.dif-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy);
  display: grid; place-items: center;
}
.dif-icon svg { width: 22px; height: 22px; stroke: #fff; }
.dif-center { display: grid; place-items: center; }
.dif-ring {
  position: relative;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg), 0 0 0 14px rgba(47, 107, 255, 0.07), 0 0 0 28px rgba(47, 107, 255, 0.04);
}
.dif-ring::before {
  content: "";
  position: absolute;
  top: -10px; right: -10px; bottom: -10px; left: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(47, 107, 255, 0.35);
  animation: gira 40s linear infinite;
}
.dif-ring img { width: 64%; height: auto; }
@keyframes gira { to { transform: rotate(360deg); } }

/* =========================================================
   Contato
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.contact-info > p { color: var(--ink-2); margin: 0 0 30px; font-size: 1.06rem; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.ci-icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--navy);
  display: grid; place-items: center;
}
.ci-icon svg { width: 21px; height: 21px; stroke: #fff; }
.ci-label { font-size: 0.84rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.ci-value { font-size: 1.06rem; color: var(--ink-2); }
.ci-value a { color: var(--ink); font-weight: 600; transition: color 0.25s var(--ease); }
.ci-value a:hover { color: var(--blue-ink); }

.form {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 0.88rem; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { text-align: center; font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  margin-top: 40px;
  padding: 64px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-logo { width: 200px; height: auto; }
.footer-brand p { margin: 18px 0 0; max-width: 300px; font-size: 0.98rem; }
.footer-col h4 { margin-bottom: 18px; font-size: 1rem; color: #fff; }
.footer-col li { margin-bottom: 10px; font-size: 0.98rem; }
.footer-col a { transition: color 0.25s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Botão flutuante de WhatsApp */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  background: #25D366;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* Mini aviso flutuante ("Link copiado!") */
.toast-mini {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  z-index: 260;
  padding: 12px 22px;
  font-size: 0.95rem; font-weight: 600;
  color: #fff; background: var(--navy);
  border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast-mini.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Lightbox + modal de detalhes da obra
   ========================================================= */
.lightbox {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  z-index: 240;
  display: none; align-items: center; justify-content: center;
  padding: 40px;
  background: rgba(6, 14, 28, 0.94);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--blue); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }
.lightbox-nav svg, .lightbox-close svg { width: 22px; height: 22px; stroke: #fff; }

.obra-modal {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 205;
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
  background: rgba(6, 14, 28, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.obra-modal.open { display: flex; }
.om-panel {
  position: relative; width: 100%; max-width: 780px; margin: auto;
  background: var(--surface);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.om-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); border: 0;
  color: var(--ink); font-size: 1rem; cursor: pointer;
  display: grid; place-items: center; transition: background 0.3s var(--ease);
}
.om-close:hover { background: var(--blue); color: #fff; }
.om-hero { position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: zoom-in; background: #dfe6f2; }
.om-hero img { width: 100%; height: 100%; object-fit: cover; }
.om-hero .status-selo { right: 68px; }
.om-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); border: 0;
  color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: background 0.3s var(--ease);
}
.om-nav:hover { background: var(--blue); color: #fff; }
.om-nav.prev { left: 14px; }
.om-nav.next { right: 14px; }
.om-counter {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  color: #fff; background: rgba(10, 26, 48, 0.72);
}
.om-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; background: var(--bg); }
.om-thumb {
  flex: 0 0 auto; width: 86px; height: 62px; padding: 0;
  border-radius: 10px; overflow: hidden; cursor: pointer; background: none;
  border: 2px solid transparent; transition: border-color 0.2s var(--ease);
}
.om-thumb img { width: 100%; height: 100%; object-fit: cover; }
.om-thumb:hover, .om-thumb.ativa { border-color: var(--blue); }
.om-info { padding: 26px 30px 30px; }
.om-info h3 { font-size: 1.7rem; margin: 0 0 10px; }
.om-info .obra-loc { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 0.95rem; color: var(--muted); }
.om-info .obra-loc svg { width: 15px; height: 15px; stroke: var(--blue-ink); }
.om-info .spec-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; padding: 0; list-style: none; }
.om-info .spec-list li {
  padding: 5px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--blue-tint);
  border-radius: 999px;
}
.om-desc { margin: 6px 0 24px; font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); white-space: pre-line; }
.om-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.om-actions .btn { flex: 1 1 auto; }
.om-actions .btn-solid { background: var(--navy); color: #fff; }
.om-actions .btn-solid:hover { background: var(--blue); }

/* =========================================================
   Animações de entrada (scroll)
   Por padrão tudo é visível; só esconde quando o JS coloca .anim
   no <html> (confirmou que o IntersectionObserver funciona).
   ========================================================= */
.anim .reveal { opacity: 0; translate: 0 34px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); }
.anim .reveal.vis { opacity: 1; translate: 0 0; }
.anim .obras-track .obra {
  opacity: 0; translate: 0 34px;
  transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.anim .obras-track .obra.vis { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .dif-ring::before { animation: none; }
  .acc-panel { transition: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1040px) {
  .pillars-inner { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .dif-grid { grid-template-columns: 1fr; justify-items: center; gap: 36px; }
  .dif-center { order: -1; }
  .dif-col { gap: 16px; width: 100%; max-width: 480px; }
  .dif-left li { justify-content: flex-end; text-align: left; flex-direction: row-reverse; }
}

@media (max-width: 900px) {
  .catalogo { grid-template-columns: 1fr; gap: 26px; }
  .catalogo-intro { position: static; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: auto;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    background: var(--navy-2);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { z-index: 120; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .about-card { grid-template-columns: 1fr; gap: 30px; padding: 20px; }
  .about-badge { right: 14px; }
  .about-text { padding: 0 6px 10px; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-media { width: 100%; opacity: 0.35; }
  .cta-text { padding: 40px 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 80px 0; }
}

@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .logo-img { height: 38px; width: 156px; }
  .hero .container { padding-bottom: 70px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pillars { margin-top: -30px; }
  .pillars-inner { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 20px; }
  .pillar:last-child { border-bottom: 0; }
  .about-mini b { font-size: 1.4rem; }
  .acc-title { font-size: 1.08rem; }
  .acc-media img { height: 300px; }
  .acc-caption { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; }
  .acc-caption p { font-size: 0.9rem; }
  .car-btn { width: 42px; height: 42px; }
  .obra-photo { border-radius: 18px; }
  .dif-ring { width: 230px; height: 230px; }
  .form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .obra-modal { padding: 16px 10px; }
  .om-info { padding: 22px 18px 26px; }
  .om-info h3 { font-size: 1.35rem; }
  .om-actions .btn { flex: 1 1 100%; }
  .lightbox { padding: 16px; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
