/* ==========================================================================
   JG Construtora — estilos
   Mobile first · Paleta da marca: azul-marinho #13213c e laranja #faa413
   ========================================================================== */

:root {
  /* Identidade JG: azul-marinho + laranja da logo */
  --ink: #13213c;
  --navy: #13213c;
  --navy-2: #1b2d50;
  --navy-deep: #0d172b;
  --stone: #6b7180;
  --concrete: #d6d8dc;
  --concrete-2: #e7e8ea;
  --paper: #f2f2f1;
  --white: #fbfbfa;
  --accent: #faa413;
  --accent-hover: #e6920a;
  --accent-dark: #a86400;   /* laranja escurecido para textos pequenos em fundo claro */
  --accent-light: #faa413;  /* laranja em fundo escuro */

  --text: #283247;
  --text-soft: #586074;
  --line: rgba(19, 33, 60, .13);
  --line-light: rgba(255, 255, 255, .16);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Saira Condensed", "Arial Narrow", sans-serif;

  --gutter: 1.25rem;
  --max: 1280px;
  --header-h: 72px;
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 2.5rem; --header-h: 84px; }
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--white);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.ico { width: 1.1em; height: 1.1em; flex: none; }

/* Tipografia ------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}
.eyebrow-light { color: var(--accent-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.3rem, 6.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
.section-title em,
.hero-title em {
  font-style: italic;
  color: var(--accent-dark);
}

.section-sub {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-soft);
}

.section-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head-center { text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .section-title { margin-inline: auto; }

@media (min-width: 960px) {
  .section-head-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4rem;
  }
  .section-head-split .section-title { max-width: 40rem; }
  .section-head-split .section-sub { margin-top: 0; max-width: 24rem; }
}

/* Botões ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 52px;
  padding: .9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }

.btn-ghost-light { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-outline-light { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline-light:hover { border-color: var(--accent-light); color: var(--accent-light); }

.btn-sm { min-height: 44px; padding: .7rem 1.2rem; font-size: .72rem; }
.btn-lg { min-height: 60px; padding: 1.1rem 2rem; font-size: .82rem; }
.btn-lg .ico { width: 1.35em; height: 1.35em; }
.btn-block { width: 100%; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease), height .45s var(--ease);
}
/* O fundo desfocado fica numa camada própria: backdrop-filter no próprio header
   prenderia o menu mobile (position: fixed) dentro da altura do cabeçalho. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(251, 251, 250, .95);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled { color: var(--ink); }
.site-header.is-scrolled::before { opacity: 1; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  position: relative;
  z-index: 2;
}
.brand-mark {
  width: 58px;
  height: 43px;
  flex: none;
  --logo-letters: currentColor;
}
.brand-name {
  font-family: var(--font-brand);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--accent);
  padding-top: .45rem;
}
.site-header .brand { color: var(--white); }
.site-header.is-scrolled .brand { color: var(--navy); }
.menu-open .site-header .brand { color: var(--white); }

.brand-footer {
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
}
.brand-footer .brand-mark { width: 92px; height: 68px; }
.brand-footer .brand-name { font-size: 1.9rem; letter-spacing: .24em; padding-top: .2rem; }
.brand-tagline {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

.main-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--header-h) + 1.75rem) var(--gutter) 2.5rem;
  background: var(--navy);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.main-nav ul { display: flex; flex-direction: column; gap: .1rem; }
.main-nav ul a {
  display: block;
  padding: .35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7.6vw, 2.5rem);
  line-height: 1.2;
  transform: translateY(14px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), color .3s;
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--accent-light); }
.mobile-nav-footer {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  transform: translateY(14px);
  opacity: 0;
  transition: transform .5s var(--ease) .24s, opacity .5s var(--ease) .24s;
}
.menu-open .mobile-nav-footer { transform: none; opacity: 1; }
.mobile-nav-footer .btn { width: 100%; margin-bottom: 1.4rem; }
.mobile-nav-contact { display: grid; gap: .55rem; }
.mobile-nav-contact a { display: inline-flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.85); }
.mobile-nav-contact a:hover { color: var(--accent-light); }
.mobile-nav-contact svg { width: 18px; height: 18px; flex: none; color: var(--accent-light); }

.menu-open .main-nav { opacity: 1; visibility: visible; }
.menu-open .main-nav ul a { transform: none; opacity: 1; }
.menu-open .main-nav li:nth-child(2) a { transition-delay: .04s; }
.menu-open .main-nav li:nth-child(3) a { transition-delay: .08s; }
.menu-open .main-nav li:nth-child(4) a { transition-delay: .12s; }
.menu-open .main-nav li:nth-child(5) a { transition-delay: .16s; }
.menu-open .main-nav li:nth-child(6) a { transition-delay: .2s; }
.menu-open .site-header { color: var(--white); }
.menu-open .site-header::before { opacity: 0; }
.menu-open { overflow: hidden; }

.header-cta { display: none; white-space: nowrap; }

/* Acesso ao painel administrativo (canto superior direito) */
.header-admin {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  height: 40px;
  min-width: 40px;
  padding: 0 .7rem;
  border: 1px solid currentColor;
  border-radius: 40px;
  opacity: .8;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: opacity .3s, color .3s, border-color .3s, background-color .3s;
}
.header-admin svg { width: 17px; height: 17px; flex: none; }
.header-admin:hover { opacity: 1; color: var(--accent); border-color: var(--accent); }
.header-admin-label { display: none; }
@media (min-width: 1400px) { .header-admin-label { display: inline; } }
@media (max-width: 1239px) { .header-admin { padding: 0; width: 40px; } }

.menu-toggle {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.menu-open .menu-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

@media (min-width: 1240px) {
  .menu-toggle, .mobile-nav-footer { display: none; }
  .header-cta { display: inline-flex; }
  .main-nav {
    position: static;
    padding: 0;
    background: none;
    color: inherit;
    opacity: 1;
    visibility: visible;
    flex-direction: row;
  }
  .main-nav ul { flex-direction: row; gap: clamp(1.1rem, 1.6vw, 2.1rem); }
  .main-nav ul a {
    position: relative;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    transform: none;
    opacity: .9;
  }
  .main-nav ul a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
  }
  .main-nav ul a:hover, .main-nav ul a.is-active { color: inherit; opacity: 1; }
  .main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
}

/* Hero: obra 3D -------------------------------------------------------- */
.obra {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
}
.obra-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

/* Foto (plano B e enquanto o 3D carrega) */
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: -3;
  transition: opacity 1s var(--ease);
}
.hero-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  animation: heroZoom 2.4s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.obra-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: none;
}
.obra-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,17,33,.55) 0%, rgba(9,17,33,.1) 30%, rgba(9,17,33,.35) 60%, rgba(9,17,33,.88) 100%),
    linear-gradient(90deg, rgba(9,17,33,.6) 0%, rgba(9,17,33,0) 65%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.hero-grid-lines span { border-left: 1px solid rgba(255,255,255,.07); }
.hero-grid-lines span:last-child { border-right: 1px solid rgba(255,255,255,.07); }

.obra-intro {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
  will-change: opacity, transform;
}
.hero-title {
  max-width: 15ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  line-height: 1;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero-title em { color: var(--accent-light); }
.hero-lead {
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,.85);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.5rem;
}
@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
}

.hero-bottom { border-top: 1px solid var(--line-light); position: relative; }
.hero-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding-block: 1.1rem;
}
.hero-tags {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.hero-tags i { font-style: normal; color: var(--accent-light); margin-inline: .4em; }

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  flex: none;
}
.scroll-hint-label {
  display: none;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.scroll-cue {
  flex: none;
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 12px;
  position: relative;
  display: none;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: var(--accent-light);
  border-radius: 2px;
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }
@media (min-width: 768px) {
  .scroll-cue { display: block; }
  .obra-intro { padding-bottom: 5rem; }
}

/* Etapas e chamada final (só no modo 3D) */
.obra-steps,
.obra-final { display: none; }

/* ---- Modo 3D ativo (classe adicionada por js/obra3d.js) ---- */
.obra-3d .obra { height: 300vh; }
.obra-3d .obra-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}
.obra-3d .obra-canvas { display: block; }
.obra-ready .hero-fallback { opacity: 0; }
.obra-3d .obra-shade {
  background:
    linear-gradient(180deg, rgba(9,17,33,.65) 0%, rgba(9,17,33,0) 26%, rgba(9,17,33,0) 62%, rgba(9,17,33,.75) 100%);
}
.obra-3d .obra-intro {
  margin-bottom: auto;
  padding-top: calc(var(--header-h) + 1.75rem);
}
.obra-3d .hero-title { font-size: clamp(2.5rem, 10vw, 5.4rem); }
.obra-3d .hero-lead { font-size: 1rem; margin-top: 1.1rem; }
.obra-3d .hero-actions { margin-top: 1.6rem; }
.obra-3d .scroll-hint-label { display: inline; }
.obra-3d .hero-tags { display: none; }
.obra-3d .hero-bottom-inner { justify-content: flex-start; }

.obra-3d .obra-steps {
  display: block;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(72px + 1.25rem);
  padding-top: 1rem;
  opacity: var(--obra-steps, 0);
  pointer-events: none;
}
.obra-steps-bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: rgba(255,255,255,.16);
}
.obra-steps-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--obra-p, 0));
}
.obra-steps li { display: none; }
.obra-steps li.is-active { display: grid; grid-template-columns: auto 1fr; gap: .1rem .9rem; align-items: baseline; }
.os-num {
  font-family: var(--font-brand);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
}
.os-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.1;
}
.os-cap {
  grid-column: 2;
  font-size: .85rem;
  line-height: 1.5;
  color: rgba(255,255,255,.78);
}

.obra-3d .obra-final {
  display: block;
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--header-h) + 1.75rem);
  opacity: 0;
}
.obra-final-title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 4.8rem);
  font-weight: 500;
  line-height: 1.02;
  margin-bottom: 1.75rem;
}
.obra-final-title em { color: var(--accent); }

@media (min-width: 768px) {
  .obra-3d .obra { height: 380vh; }
  .obra-3d .hero-tags { display: block; }
  .obra-3d .hero-bottom-inner { justify-content: space-between; }
  .obra-3d .obra-shade {
    background:
      linear-gradient(90deg, rgba(9,17,33,.78) 0%, rgba(9,17,33,.35) 32%, rgba(9,17,33,0) 55%),
      linear-gradient(180deg, rgba(9,17,33,.5) 0%, rgba(9,17,33,0) 22%, rgba(9,17,33,0) 75%, rgba(9,17,33,.6) 100%);
  }
  .obra-3d .obra-intro { margin-block: auto; padding-top: var(--header-h); padding-bottom: 0; }
  .obra-3d .obra-intro .hero-lead { max-width: 30rem; }
  .obra-3d .hero-title { max-width: 16ch; }

  .obra-3d .obra-steps {
    left: auto;
    bottom: auto;
    top: 50%;
    right: var(--gutter);
    width: 16.5rem;
    transform: translateY(-50%);
    padding: 0 0 0 1.6rem;
  }
  .obra-steps-bar { right: auto; bottom: 0; width: 2px; height: auto; }
  .obra-steps-bar span { transform-origin: top; transform: scaleY(var(--obra-p, 0)); }
  .obra-steps li,
  .obra-steps li.is-active {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    gap: 0 .4rem;
    padding: .55rem 0;
    color: rgba(255,255,255,.4);
    transition: color .5s var(--ease);
  }
  .obra-steps .os-num { color: rgba(255,255,255,.4); transition: color .5s var(--ease); }
  .obra-steps .os-title { font-size: 1.3rem; }
  .obra-steps .os-cap {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .6s var(--ease), opacity .6s var(--ease), margin .6s var(--ease);
  }
  .obra-steps li.is-done,
  .obra-steps li.is-done .os-num { color: rgba(255,255,255,.72); }
  .obra-steps li.is-active { color: var(--white); }
  .obra-steps li.is-active .os-num { color: var(--accent); }
  .obra-steps li.is-active .os-cap { max-height: 5rem; opacity: 1; margin-top: .35rem; }

  .obra-3d .obra-final {
    top: 0;
    bottom: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: var(--header-h);
  }
}

/* Faixa de serviços (marquee) ------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: 1.5rem;
  background: var(--navy);
  color: var(--white);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span,
.marquee i { margin-right: 2.25rem; }
.marquee span {
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 4.2vw, 2.7rem);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.1;
}
.marquee span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.6);
}
.marquee i {
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* A JG ------------------------------------------------------------------ */
.about-grid {
  display: grid;
  gap: 4rem;
}
.about-body { margin-top: 2rem; max-width: 36rem; }
.about-body p + p { margin-top: 1.25rem; color: var(--text-soft); }
.lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink);
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pillars li {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink);
  transition: background-color .4s var(--ease);
}
.pillars li:hover { background: var(--paper); }
.pillars svg { width: 32px; height: 32px; color: var(--accent); }

.about-figure { position: relative; }
.about-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--concrete);
}
.about-img img { position: relative; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.about-frame { position: relative; isolation: isolate; }
.about-frame::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--accent);
  z-index: -1;
}
.about-figure { margin-right: 1.25rem; }
.about-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.25rem;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}

@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(4rem, 8vw, 8rem);
    align-items: center;
  }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .pillars li { padding: 1.5rem 1.1rem; }
}

/* Serviços -------------------------------------------------------------- */
.services { background: var(--paper); }

.services-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}
.services-head {
  background: var(--paper);
  padding: 0 0 3rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: 2rem 1.75rem;
  background: var(--paper);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.service-num {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--stone);
}
.service-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  transition: transform .6s var(--ease);
}
.service-card h3 {
  margin-top: 2.25rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  transition: color .5s var(--ease);
}
.service-card p {
  margin-top: .75rem;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text-soft);
  transition: color .5s var(--ease);
}
.service-card:hover { background: var(--navy); }
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover h3 { color: var(--white); }
.service-card:hover p { color: rgba(255,255,255,.68); }
.service-card:hover .service-icon { transform: translateY(-4px); color: var(--accent-light); }

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-head { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .services-head {
    grid-column: span 2;
    padding: 0 4rem 3rem 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
}

/* Tipos de obras -------------------------------------------------------- */
.types-grid {
  display: grid;
  gap: 1.25rem;
}
.type-card {
  position: relative;
  min-height: 28rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
}
.type-img { position: absolute; inset: 0; z-index: -2; }
.type-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(9,17,33,0) 30%, rgba(9,17,33,.85) 100%);
  transition: background-color .6s var(--ease);
}
.type-body { padding: 2rem 1.75rem; }
.type-index {
  display: block;
  margin-bottom: .75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-light);
}
.type-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.2rem;
  line-height: 1.05;
}
.type-card p {
  max-width: 22rem;
  margin-top: .9rem;
  font-size: .95rem;
  color: rgba(255,255,255,.8);
}
.type-card:hover .type-img img { transform: scale(1.05); }

@media (min-width: 900px) {
  .types-grid { grid-template-columns: repeat(3, 1fr); }
  .type-card { min-height: 36rem; }
  .type-card:nth-child(2) { margin-top: 4rem; }
}

/* Projetos -------------------------------------------------------------- */
.projects { background: var(--white); padding-top: 0; }
.projects .section-head { padding-top: var(--section-y); border-top: 1px solid var(--line); }

.projects-grid {
  display: grid;
  gap: 1.25rem;
}
.project-card { position: relative; }
.project-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.035) 14px 15px),
    var(--concrete-2);
}
.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter .8s var(--ease);
  filter: saturate(.9);
}
.project-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9,17,33,.18);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.project-card:hover .project-img img { transform: scale(1.045); filter: saturate(1); }
.project-card:hover .project-img::after { opacity: 1; }

.project-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 .5rem;
  border-bottom: 1px solid var(--line);
}
.project-info h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ink);
}
.project-note {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}

@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
}
@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(12, 1fr); gap: 3.5rem 2rem; }
  .project-lg { grid-column: span 7; }
  .project-sm { grid-column: span 5; }
  .project-lg .project-img { aspect-ratio: 16 / 11; }
  .project-sm .project-img { aspect-ratio: 16 / 13.2; }
  .project-sm { margin-top: 5rem; }
  .project-card:nth-child(4) { grid-column: 6 / span 7; grid-row: 2; }
  .project-card:nth-child(3) { grid-column: 1 / span 5; grid-row: 2; margin-top: 0; }
}

/* Como trabalhamos ------------------------------------------------------ */
.process { background: var(--paper); }
.process .section-title { max-width: 18ch; }

.timeline {
  position: relative;
  display: grid;
  gap: 2.75rem;
  padding-left: 2.5rem;
  counter-reset: step;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: .5rem; bottom: .5rem;
  width: 1px;
  background: var(--concrete);
}
.step { position: relative; }
.step-dot {
  position: absolute;
  left: calc(-2.5rem + 1px);
  top: .45rem;
  width: 11px;
  height: 11px;
  border: 1px solid var(--accent);
  background: var(--paper);
  transform: rotate(45deg);
  transition: background-color .5s var(--ease);
}
.step.is-visible .step-dot { background: var(--accent); transition-delay: .3s; }
.step-num {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--accent-dark);
}
.step h3 {
  margin-top: .25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--ink);
}
.step p {
  max-width: 28rem;
  margin-top: .6rem;
  font-size: .95rem;
  color: var(--text-soft);
}

@media (min-width: 960px) {
  .timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem;
    padding-left: 0;
    padding-top: 0;
  }
  .timeline::before {
    left: 0; right: 0;
    top: calc(2.5rem + 5px); bottom: auto;
    width: auto;
    height: 1px;
  }
  .step { padding-top: 0; }
  .step-num { line-height: 1.5rem; height: 1.5rem; }
  .step-dot {
    position: relative;
    left: auto; top: auto;
    display: block;
    margin: 1rem 0 2rem 2px;
  }
}

/* Formas de contratação ------------------------------------------------- */
.models {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.models::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.models .container { position: relative; }
.models .section-title { color: var(--white); }

.models-grid {
  display: grid;
  gap: 1.25rem;
}
.model-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.75rem;
  border: 1px solid var(--line-light);
  background: rgba(255,255,255,.02);
  transition: border-color .5s var(--ease), background-color .5s var(--ease);
}
.model-card:hover { border-color: rgba(250,164,19,.55); background: rgba(255,255,255,.04); }
.model-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.model-card h3 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  line-height: 1.05;
}
.model-card > p {
  margin-top: 1.25rem;
  color: rgba(255,255,255,.72);
}
.model-points {
  margin: 2rem 0 2.5rem;
  border-top: 1px solid var(--line-light);
}
.model-points li {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: .9rem;
  color: rgba(255,255,255,.85);
}
.model-points li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}
.model-card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 479px) {
  .model-card .btn { align-self: stretch; }
}
@media (min-width: 900px) {
  .models-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .model-card { padding: 3.5rem 3rem; }
}

/* Região ---------------------------------------------------------------- */
.region-grid {
  display: grid;
  gap: 3.5rem;
}
.region-text > p:not(.eyebrow) {
  max-width: 32rem;
  margin-top: 1.75rem;
  color: var(--text-soft);
}
.city-list {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.city-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ink);
}
.city-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: .25rem;
  border-radius: 50%;
  background: var(--accent);
}
.city-list li span { margin-right: auto; }
.city-list small {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.region-maps {
  display: grid;
  gap: 1rem;
}
.map-card {
  position: relative;
  padding: 1.25rem 1.25rem 2.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--stone);
}
.map-card figcaption {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}
.map-gridbg { color: var(--stone); }
.mg-shape {
  fill: var(--concrete-2);
  stroke: var(--ink);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.region-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.region-pulse {
  fill: var(--accent);
  opacity: .14;
  transform-origin: 377px 334px;
  animation: pulse 3.2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .28; } 100% { transform: scale(1.5); opacity: 0; } }
.map-dots circle { fill: var(--ink); }
.map-dots .dot-hq { fill: var(--accent-dark); }

.detail-links path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: .7;
}
.detail-points circle { fill: var(--ink); }
.detail-points text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  fill: var(--ink);
}
.detail-points .hq circle:first-child { fill: var(--accent); }
.detail-points .hq-ring { fill: none !important; stroke: var(--accent); stroke-width: 1; }
.detail-points .hq text { font-weight: 700; }
.north path { fill: var(--ink); }
.north text { font-family: var(--font-body); font-size: 11px; font-weight: 600; fill: var(--ink); }

@media (min-width: 640px) {
  .region-maps { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
  .map-card { display: flex; align-items: center; }
}
@media (min-width: 1024px) {
  .region-grid { grid-template-columns: .75fr 1.25fr; gap: 4.5rem; align-items: center; }
  .region-maps { grid-template-columns: 1.25fr 1fr; }
}

/* Diferenciais ---------------------------------------------------------- */
.values { background: var(--white); padding-top: 0; }
.values-grid {
  display: grid;
  gap: 3rem;
  padding-top: var(--section-y);
  border-top: 1px solid var(--line);
}
.values-list { border-top: 1px solid var(--ink); }
.values-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: .25rem 1rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .5s var(--ease);
}
.values-list li:hover { padding-left: .75rem; }
.v-num {
  grid-row: span 2;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--accent-dark);
  padding-top: .6rem;
}
.values-list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--ink);
}
.values-list p { color: var(--text-soft); font-size: .95rem; }

@media (min-width: 960px) {
  .values-grid { grid-template-columns: .9fr 1.1fr; gap: 6rem; align-items: start; }
  .values-head { position: sticky; top: calc(var(--header-h) + 3rem); }
  .values-list li { grid-template-columns: 4rem 13rem 1fr; align-items: baseline; padding: 2rem 0; }
  .v-num { grid-row: auto; }
}

/* CTA ------------------------------------------------------------------- */
.cta {
  position: relative;
  padding-block: clamp(6rem, 14vw, 11rem);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.cta-media { position: absolute; inset: -12% 0; z-index: -2; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9,17,33,.72);
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.cta-content > p {
  max-width: 32rem;
  margin: 1.5rem auto 0;
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,.82);
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.75rem;
}
.cta-phone {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--accent-light);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.cta-phone:hover { border-color: currentColor; }
@media (max-width: 479px) {
  .cta-actions .btn { width: 100%; }
}

/* Contato --------------------------------------------------------------- */
.contact { background: var(--paper); }
.contact-grid {
  display: grid;
  gap: 3.5rem;
}
.contact-info .section-title { max-width: 14ch; }
.contact-list {
  margin-top: 2.75rem;
  border-top: 1px solid var(--line);
}
.contact-list li {
  display: flex;
  gap: 1.1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: .2rem;
  color: var(--accent);
}
.c-label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}
.contact-list a, .contact-list address {
  font-size: 1.05rem;
  color: var(--ink);
  word-break: break-word;
}
.contact-list a { transition: color .3s; }
.contact-list a:hover { color: var(--accent-dark); }

.contact-form {
  padding: 2rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
}
.form-hint {
  margin-bottom: 1.75rem;
  font-size: .88rem;
  color: var(--text-soft);
}
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: .8rem 1rem;
  border: 1px solid var(--concrete);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(250,164,19,.25);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--stone);
  border-bottom: 1.5px solid var(--stone);
  transform: rotate(45deg);
  pointer-events: none;
}
.select-wrap select { padding-right: 2.5rem; cursor: pointer; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #a5432f; }
.field-error {
  display: block;
  min-height: 0;
  margin-top: .35rem;
  font-size: .8rem;
  color: #a5432f;
}
.field-error:empty { display: none; }
.form-status {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--accent-dark);
}
.form-status:empty { display: none; }
.form-consent { margin-top: .9rem; font-size: .78rem; line-height: 1.5; color: var(--text-soft); }
.form-consent a { color: var(--accent-dark); text-decoration: underline; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer-legal { margin-left: .5rem; text-decoration: underline; color: rgba(255,255,255,.7); }
.footer-legal:hover { color: var(--white); }

@media (min-width: 640px) {
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
  .contact-form { padding: 2.75rem; }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 6rem; align-items: start; }
}

/* Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  gap: 2.75rem;
  padding-block: 4.5rem 3rem;
}
.brand-footer { color: var(--white); margin-bottom: 1.5rem; }
.footer-brand p {
  max-width: 22rem;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.9;
}
.footer-title {
  margin-bottom: 1rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.footer-col li + li { margin-top: .5rem; }
.footer-col a { transition: color .3s; word-break: break-word; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem 6rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .8rem;
}
.to-top:hover { color: var(--white); }
.footer-access { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-access a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.7);
  transition: color .3s;
}
.footer-access a:hover { color: var(--accent); }
.footer-access svg { width: 15px; height: 15px; }
@media (min-width: 640px) { .footer-access { margin-left: auto; margin-right: 2rem; } }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding-bottom: 1.75rem; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 3rem; }
}

/* WhatsApp flutuante ---------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1f8f4e;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transition: transform .4s var(--ease), background-color .3s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px); background: #187a42; }
.wa-tip {
  position: absolute;
  right: calc(100% + .75rem);
  white-space: nowrap;
  padding: .45rem .8rem;
  background: var(--ink);
  color: var(--white);
  font-size: .75rem;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: none; }
@media (min-width: 768px) {
  .wa-float { right: 1.75rem; bottom: 1.75rem; width: 62px; height: 62px; }
}

/* Apresentação em vídeo ------------------------------------------------- */
.presentation { background: var(--paper); }
.presentation-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.video-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  overflow: hidden;
  background: var(--navy);
  outline: 1px solid var(--accent);
  outline-offset: 14px;
  box-shadow: 0 40px 70px -30px rgba(19,33,60,.55);
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(9,17,33,.05) 30%, rgba(9,17,33,.6) 100%);
  color: var(--white);
  cursor: pointer;
}
.video-play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  animation: playPulse 2.4s var(--ease) infinite;
  transition: transform .4s var(--ease);
}
.video-play-icon::after {
  content: "";
  margin-left: 6px;
  border-left: 22px solid var(--navy);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.video-play:hover .video-play-icon { transform: scale(1.08); }
.video-play-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.is-playing .video-play { display: none; }
@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(250,164,19,.55); }
  70% { box-shadow: 0 0 0 22px rgba(250,164,19,0); }
  100% { box-shadow: 0 0 0 0 rgba(250,164,19,0); }
}
.presentation-text > p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-soft);
}
.presentation-quote {
  margin: 2.25rem 0 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}
.presentation-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  line-height: 1.2;
  color: var(--ink);
}
.presentation-quote cite {
  display: block;
  margin-top: .8rem;
  font-size: .7rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}
@media (min-width: 960px) {
  .presentation-grid { grid-template-columns: minmax(300px, 400px) 1fr; gap: 7rem; }
  .video-frame { margin-inline: 14px 0; }
}

/* Ajustes de enquadramento das fotos reais */
.img-top { object-position: 50% 18% !important; }
.img-bottom { object-position: 50% 72% !important; }
.img-center { object-position: 50% 42% !important; }

/* Projetos: imagens clicáveis */
a.project-img { display: block; cursor: zoom-in; }

/* Galeria da obra em andamento ------------------------------------------ */
.obra-gallery { margin-top: clamp(4rem, 8vw, 6.5rem); }
.obra-gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.obra-gallery-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.obra-gallery-head p { font-size: .95rem; color: var(--text-soft); }
.obra-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.og-item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--concrete-2);
}
.og-item img,
.og-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.og-video { grid-row: span 2; aspect-ratio: auto; }
a.og-item { cursor: zoom-in; }
a.og-item::after {
  content: "+";
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
a.og-item:hover img { transform: scale(1.05); }
a.og-item:hover::after,
a.og-item:focus-visible::after { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .obra-gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}

/* Visualização ampliada (lightbox) -------------------------------------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(9,17,33,.96);
  color: var(--white);
}
.lightbox[open] {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.lightbox::backdrop { background: rgba(9,17,33,.6); }
.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 4.5rem 0 3rem;
  min-width: 0;
}
.lb-img {
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  object-fit: contain;
  transition: opacity .3s var(--ease);
}
.lightbox.is-loading .lb-img { opacity: 0; }
.lb-caption {
  margin-top: 1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.lb-prev,
.lb-next,
.lb-close {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 1rem;
  padding: 0 0 4px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.lb-prev:hover, .lb-next:hover, .lb-close:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { position: absolute; top: 1rem; right: 0; z-index: 2; }
@media (max-width: 639px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-figure { padding-inline: .75rem; }
  .lb-prev, .lb-next { position: absolute; bottom: 1rem; z-index: 2; }
  .lb-prev { left: 0; }
  .lb-next { right: 0; }
}
.lightbox.is-single .lb-prev,
.lightbox.is-single .lb-next { visibility: hidden; }

/* Botão "ver todas as obras" na home */
.projects-more { margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.project-info h3 a { transition: color .3s; }
.project-info h3 a:hover { color: var(--accent-dark); }
.link-arrow { color: var(--accent-dark); font-weight: 600; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* Páginas de obras (obras.html e obra.html) ------------------------------ */
.obras-hero {
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5rem);
  background:
    linear-gradient(135deg, rgba(13,23,43,.96), rgba(19,33,60,.88)),
    url("../assets/img/projetos/fachada-residencial-noite.jpg") center 60% / cover;
  color: var(--white);
}
.obras-title {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
}
.obras-lead { max-width: 36rem; margin-top: 1.25rem; font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,.82); }
.obras-list { padding-top: clamp(2.5rem, 6vw, 4rem); }
.obras-filters { display: grid; gap: .75rem; margin-bottom: 2rem; }
.obras-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.obras-chip {
  padding: .55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: transparent;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.obras-chip:hover { border-color: var(--ink); }
.obras-chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.obras-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .obras-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .obras-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.obras-loading, .obra-empty { grid-column: 1 / -1; padding: 3rem 0; text-align: center; color: var(--text-soft); }
.obra-card a { display: block; height: 100%; }
.obra-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--concrete-2); }
.obra-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.obra-card a:hover .obra-card-img img { transform: scale(1.05); }
.obra-card-ph { display: grid; place-items: center; width: 100%; height: 100%; background: var(--navy); color: rgba(255,255,255,.85); }
.obra-card-ph svg { width: 34%; height: auto; aspect-ratio: 830 / 605; }
.obra-card-body { padding: 1.1rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.obra-card-meta { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
.obra-card h2 { margin-top: .4rem; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; line-height: 1.12; color: var(--ink); }
.obra-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .9rem; }
.obra-status {
  display: inline-flex;
  padding: .25rem .7rem;
  border-radius: 40px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--concrete-2);
  color: var(--ink);
}
.obra-status-em_andamento { background: #fff1d6; color: #7a4d00; }
.obra-status-concluida { background: #e2f2e8; color: #1f6e45; }
.obra-progress { position: relative; flex: 1; min-width: 90px; height: 6px; border-radius: 6px; background: var(--concrete-2); overflow: hidden; }
.obra-progress span { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 6px; }
.obra-progress-label { font-size: .75rem; font-weight: 600; color: var(--text-soft); }

.obras-cta { padding: clamp(3.5rem, 8vw, 5.5rem) 0; background: var(--navy); color: var(--white); }
.obras-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.obras-cta h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; line-height: 1.05; }
.obras-cta p { margin-top: .6rem; color: rgba(255,255,255,.78); }

.obra-hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + clamp(3rem, 9vw, 7rem)) 0 clamp(2.5rem, 6vw, 4rem); color: var(--white); background: var(--navy-deep); }
.obra-hero-media { position: absolute; inset: 0; z-index: -2; }
.obra-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.obra-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,17,33,.55) 0%, rgba(9,17,33,.35) 45%, rgba(9,17,33,.9) 100%); }
.obra-back { display: inline-block; margin-bottom: 1.5rem; font-size: .8rem; letter-spacing: .08em; color: rgba(255,255,255,.8); }
.obra-back:hover { color: var(--accent); }
.obra-hero-status { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; max-width: 30rem; margin-top: 1.5rem; }
.obra-hero-status .obra-progress { background: rgba(255,255,255,.2); }
.obra-hero-status .obra-progress-label { color: rgba(255,255,255,.85); }
.obra-body { padding-top: clamp(3rem, 7vw, 5rem); }
.obra-detail { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .obra-detail { grid-template-columns: 1fr 320px; gap: 4rem; align-items: start; } }
.obra-desc p { font-size: 1.08rem; color: var(--text); }
.obra-desc p + p { margin-top: 1rem; }
.obra-sub { margin: 2.5rem 0 1.25rem; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 500; color: var(--ink); }
.obra-detail-main > .obra-sub:first-child { margin-top: 0; }
.obra-etapas { display: grid; gap: .5rem; counter-reset: etapa; }
.obra-etapas li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--concrete);
  font-weight: 500;
}
.obra-etapas li em { font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.obra-etapas li.is-concluida { border-left-color: #1f6e45; }
.obra-etapas li.is-concluida em { color: #1f6e45; }
.obra-etapas li.is-em_andamento { border-left-color: var(--accent); background: #fffaf0; }
.obra-etapas li.is-em_andamento em { color: var(--accent-dark); }
.obra-aside { padding: 1.5rem; border: 1px solid var(--line); background: var(--paper); }
.obra-aside dl { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.25rem; margin: 0 0 1.5rem; }
.obra-aside dt { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); padding-top: .2rem; }
.obra-aside dd { margin: 0; color: var(--ink); }
.obra-aside .btn { width: 100%; }
.obra-gallery-detail .og-item img { cursor: zoom-in; }
.og-video-tile { aspect-ratio: 3 / 4; background: #000; }
.og-video-tile video { width: 100%; height: 100%; object-fit: contain; }
.obra-more { margin-top: 3rem; text-align: center; }
.obra-status-projeto { background: #e6eefb; color: #2b4f8a; }
.obra-timeline { display: grid; gap: clamp(2.25rem, 5vw, 3.25rem); }
.obra-fase { position: relative; padding-left: 1.5rem; border-left: 1px solid var(--line); }
.obra-fase::before {
  content: "";
  position: absolute;
  left: -6px; top: .35rem;
  width: 11px; height: 11px;
  background: var(--accent);
  transform: rotate(45deg);
}
.obra-fase-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1rem; }
.obra-fase-data { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-dark); }
.obra-fase h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--ink); }
.obra-gallery-detail { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .obra-gallery-detail { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .obra-gallery-detail { grid-template-columns: repeat(4, 1fr); } }
.obra-gallery-detail .og-item { aspect-ratio: 3 / 4; }

/* Páginas de texto (privacidade) --------------------------------------- */
.legal-body { max-width: 760px; }
.legal-date { font-size: .8rem; color: var(--stone); margin-bottom: 2rem; }
.legal-body h2 { margin: 2.25rem 0 .75rem; font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--ink); }
.legal-body p, .legal-body li { color: var(--text); }
.legal-body p + p { margin-top: .8rem; }
.legal-body ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .45rem; margin: .5rem 0 .8rem; }
.legal-body a { color: var(--accent-dark); text-decoration: underline; }
.notfound { min-height: 70vh; display: flex; align-items: center; }

/* Títulos revelados por palavra ----------------------------------------- */
.js .split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .08em .2em 0;
  margin: 0 -.08em -.2em 0;
}
.js .split .wi {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--wi, 0) * 55ms);
}
.js .split.is-visible .wi { transform: none; }

/* Imagens reveladas por máscara ---------------------------------------- */
.about-img { position: relative; }
/* "cortina" na cor do fundo que desliza para revelar a foto
   (sem clip-path: assim a foto continua carregando e sendo detectada normalmente) */
.js .clip-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--white);
  transform-origin: top;
  transition: transform 1.2s var(--ease);
  pointer-events: none;
}
.js .clip-reveal.is-visible::before { transform: scaleY(0); }
.js .clip-reveal img:not([data-parallax]) { transform: scale(1.12); }
.js .clip-reveal.is-visible img:not([data-parallax]) { transform: scale(1); }

/* Cursor (apenas mouse) -------------------------------------------------- */
.cursor-ring {
  position: fixed;
  left: 0; top: 0;
  z-index: 300;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s var(--ease), opacity .3s;
}
.cursor-ring.is-visible { opacity: .9; }
.cursor-ring.is-hover {
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  background: rgba(250,164,19,.12);
}
.magnetic { will-change: transform; }

/* Lenis (rolagem suave) -------------------------------------------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Animações de entrada -------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .split .wi { transform: none; }
  .js .clip-reveal::before { display: none; }
  .js .clip-reveal img:not([data-parallax]) { transform: none; }
  .marquee-track { animation: none; }
  .video-play-icon { animation: none; }
}

/* Ajustes finos no celular */
@media (max-width: 639px) {
  .project-info { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .project-info h3 { font-size: 1.45rem; }
  .obra-etapas li { flex-direction: column; gap: .2rem; }
  .obra-etapas li em { font-size: .68rem; }
  .obra-aside dl { grid-template-columns: 1fr; gap: .15rem; }
  .obra-aside dd { margin-bottom: .6rem; }
  .wa-float { width: 52px; height: 52px; right: .75rem; bottom: .75rem; }
  .wa-float svg { width: 25px; height: 25px; }
  .footer-bottom { flex-direction: column; }
}

/* Hero 3D no desktop: título também se ajusta à ALTURA da tela (notebooks / janelas baixas) */
@media (min-width: 768px) {
  .obra-3d .hero-title { font-size: min(5.4rem, 7.2vw, 10.5vh); }
  .obra-3d .obra-intro {
    margin-block: auto;
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 1.5rem;
  }
  .obra-3d .obra-intro .eyebrow { margin-bottom: 1rem; }
}
@media (min-width: 768px) and (max-height: 700px) {
  .obra-3d .hero-lead { font-size: .92rem; margin-top: .8rem; }
  .obra-3d .hero-actions { margin-top: 1.1rem; }
  .obra-3d .hero-actions .btn { min-height: 46px; padding: .7rem 1.3rem; }
}
