/* BS Engenharia — versão HTML/CSS/JS/PHP (espelha o design da versão React) */
:root {
  --background: oklch(0.16 0.008 180);
  --foreground: oklch(0.96 0.01 180);
  --card: oklch(0.19 0.009 190);
  --primary: oklch(0.72 0.055 175);
  --primary-foreground: oklch(0.15 0.01 180);
  --muted-foreground: oklch(0.68 0.015 190);
  --border: oklch(1 0 0 / 8%);
  --radius: 0.5rem;
  --gradient-hero: linear-gradient(180deg, oklch(0.16 0.008 180 / 0) 0%, oklch(0.16 0.008 180 / 0.7) 60%, oklch(0.16 0.008 180) 100%);
  --gradient-sunset: linear-gradient(135deg, oklch(0.16 0.008 180 / 0.85) 0%, oklch(0.28 0.05 200 / 0.55) 50%, oklch(0.16 0.008 180 / 0.9) 100%);
  --shadow-card: 0 20px 60px -20px oklch(0 0 0 / 0.6);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted-foreground); }
.section { padding: 5rem 0; }
.section--alt { border-top: 1px solid var(--border); background: color-mix(in oklab, var(--card) 30%, transparent); }
.section--line { border-top: 1px solid var(--border); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0; font-weight: 700; }
.h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.text-primary { color: var(--primary); }
.pre-line { white-space: pre-line; }

/* Label de seção */
.label {
  display: flex; align-items: center; gap: .75rem;
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.label::before { content: ""; height: 1px; width: 2.5rem; background: var(--primary); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary); color: var(--primary-foreground);
  border: 0; border-radius: var(--radius); cursor: pointer;
  padding: .85rem 1.5rem; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  transition: opacity .2s;
}
.btn:hover { opacity: .9; }
.btn--sm { padding: .55rem 1rem; font-size: .7rem; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 75%, transparent);
  backdrop-filter: blur(16px);
}
.header__inner { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.header__logo img { height: 2.5rem; width: auto; }
.nav { display: none; gap: 2rem; }
.nav a { font-size: .875rem; color: var(--muted-foreground); }
.nav a:hover { color: var(--foreground); }
@media (min-width: 900px) { .nav { display: flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-top: 4rem; min-height: 90vh; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.hero__veil { position: absolute; inset: 0; background: var(--gradient-sunset); }
.hero__fade { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero__inner { position: relative; padding: 6rem 1.5rem 8rem; max-width: var(--max); margin: 0 auto; }
.hero__logo {
  display: block; width: fit-content; background: #fff; padding: 1rem;
  border-radius: .75rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); margin: 0 auto 1.5rem;
}
.hero__logo img { max-width: 240px; }
.hero p { max-width: 36rem; margin-top: 2rem; font-size: 1.1rem; color: var(--muted-foreground); }
@media (min-width: 1024px) { .hero__logo { margin-left: 0; } }

/* Grids e cards */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.gap-lg { gap: 4rem; }

.card {
  border: 1px solid var(--border); border-radius: .75rem;
  background: var(--card); box-shadow: var(--shadow-card);
  overflow: hidden; transition: border-color .2s;
}
.card:hover { border-color: color-mix(in oklab, var(--primary) 40%, transparent); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.5rem; }
.card__body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.card__body p { margin: 0 0 0 0; font-size: .9rem; color: var(--muted-foreground); }

.valor { border-top: 1px solid color-mix(in oklab, var(--primary) 40%, transparent); padding-top: 1rem; }
.valor strong { display: block; font-size: .9rem; }
.valor p { margin: .5rem 0 0; font-size: .875rem; color: var(--muted-foreground); }

.dif { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.dif__n { font-size: .75rem; letter-spacing: .25em; color: var(--primary); }
.dif h3 { margin-top: 1rem; font-size: 1.05rem; }
.dif p { color: var(--muted-foreground); font-size: .9rem; }

.feature { display: flex; gap: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 1.5rem; }
.feature svg { flex: 0 0 auto; color: var(--primary); }

.video-frame { border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; background: #000; box-shadow: var(--shadow-card); }

/* Filtros da galeria */
.filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filtro {
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  background: color-mix(in oklab, var(--card) 50%, transparent);
  color: var(--muted-foreground); padding: .5rem 1rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.filtro:hover { color: var(--foreground); border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.filtro.is-active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.projeto { cursor: pointer; text-align: left; padding: 0; width: 100%; background: var(--card); }
.projeto .badge {
  position: absolute; left: .75rem; top: .75rem; border-radius: 999px;
  background: color-mix(in oklab, var(--background) 80%, transparent);
  padding: .25rem .6rem; font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; backdrop-filter: blur(6px);
}
.projeto .cat {
  display: inline-flex; border-radius: 999px; background: var(--primary); color: var(--primary-foreground);
  padding: .2rem .6rem; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}

/* Catálogos */
.catalogo { display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; }
.catalogo__meta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-foreground); }
.catalogo__meta .pdf { background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--primary); padding: .25rem .5rem; border-radius: 3px; }
.catalogo h3 { margin-top: 1.5rem; font-size: 1.4rem; }
.catalogo .dl { margin-top: 2rem; color: var(--primary); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* CTA */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--border); text-align: center; }
.cta__veil { position: absolute; inset: 0; background: var(--gradient-sunset); opacity: .7; }
.cta .container { position: relative; padding-top: 6rem; padding-bottom: 6rem; }
.cta .label { justify-content: center; }

/* Rodapé */
.footer { border-top: 1px solid var(--border); background: color-mix(in oklab, var(--card) 50%, transparent); }
.footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding: 3.5rem 0; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; font-size: .9rem; color: var(--muted-foreground); }
.footer a:hover { color: var(--foreground); }
.footer__bottom { border-top: 1px solid var(--border); padding: 1.5rem 0 2.5rem; font-size: .75rem; color: var(--muted-foreground); display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--background) 95%, transparent); backdrop-filter: blur(16px);
}
.lightbox.is-open { display: flex; }
.lightbox__stage { max-width: 72rem; width: 100%; padding: 4rem 1.5rem; text-align: center; }
.lightbox__media { max-height: 65vh; margin: 0 auto; border-radius: .75rem; object-fit: contain; }
.lightbox__thumbs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.lightbox__thumbs button { width: 5rem; height: 3.5rem; overflow: hidden; border-radius: 6px; border: 1px solid var(--border); background: none; cursor: pointer; opacity: .6; padding: 0; }
.lightbox__thumbs button.is-active { border-color: var(--primary); opacity: 1; }
.lightbox__thumbs img, .lightbox__thumbs video { width: 100%; height: 100%; object-fit: cover; }
.lightbox__nav, .lightbox__close {
  position: absolute; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: color-mix(in oklab, var(--card) 70%, transparent);
  color: var(--foreground); padding: .75rem; line-height: 0;
}
.lightbox__close { right: 1.25rem; top: 1.25rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* Modal de orçamento */
.modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(0,0,0,.7); }
.modal.is-open { display: flex; }
.modal__box { width: 100%; max-width: 34rem; max-height: 90vh; overflow: auto; background: var(--card); border: 1px solid var(--border); border-radius: .75rem; padding: 2rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .8rem; color: var(--muted-foreground); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--background); color: var(--foreground);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .65rem .8rem; font: inherit;
}
.hp { position: absolute; left: -9999px; }
.erro { background: color-mix(in oklab, red 20%, var(--card)); border: 1px solid var(--border); border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: 1.5rem; font-size: .9rem; }
