/* =========================================================
   Optec Engenharia — folha de estilos
   Cores da marca: grafite #3F4246 · vermelho #C4161C · azul petróleo #1F3A44
   ========================================================= */

:root {
  --ink: #12171a;
  --ink-2: #182024;
  --petrol: #1f3a44;
  --petrol-2: #22424d;
  --graphite: #3f4246;
  --text: #22272b;
  --muted: #5d656d;
  --muted-dark: #9aa5ad;
  --line: #e2e5e8;
  --line-dark: rgba(255, 255, 255, .09);
  --paper: #ffffff;
  --tint: #f3f4f5;
  --red: #c4161c;
  --red-600: #a51217;
  --red-soft: rgba(196, 22, 28, .1);
  --wa: #25d366;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-logo: "Orbitron", "Space Grotesk", sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 28, .05), 0 8px 24px -12px rgba(16, 24, 28, .18);
  --shadow-lg: 0 2px 4px rgba(16, 24, 28, .05), 0 24px 48px -20px rgba(16, 24, 28, .35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--f-body);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { flex: none; }
.hl { font-style: normal; color: var(--red); }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.35em; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 .95rem/1 var(--f-body); letter-spacing: .005em; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--red { --bg: var(--red); box-shadow: 0 10px 28px -10px rgba(196, 22, 28, .65); }
.btn--red:hover { --bg: var(--red-600); box-shadow: 0 14px 32px -10px rgba(196, 22, 28, .75); }
.btn--ghost { --bg: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.btn--ghost:hover { --bg: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.btn--outline { --bg: transparent; --fg: var(--text); border-color: var(--line); }
.btn--outline:hover { border-color: var(--text); }
.btn--outline-light { --bg: transparent; border-color: rgba(255, 255, 255, .25); }
.btn--outline-light:hover { border-color: #fff; }
.btn--lg { padding: 1.05em 1.6em; font-size: 1rem; }
.btn--sm { padding: .65em 1.05em; font-size: .88rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--red); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 1rem; font: 600 .78rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--dark { color: #ff6b70; }
.eyebrow:has(.pulse)::before { display: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #2fd47a; box-shadow: 0 0 0 0 rgba(47, 212, 122, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47, 212, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 212, 122, 0); } }

.h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 700; }

/* ---------- Logo / símbolo ---------- */
.cactus { display: block; height: auto; overflow: visible; }
.cactus .c-body { fill: var(--graphite); }
.cactus .c-lines { stroke: #fff; }
.cactus .c-dots { fill: #fff; }
.cactus .c-red { stroke: var(--red); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 800 1.45rem/1 var(--f-logo); letter-spacing: .04em; color: var(--red); }
.brand__sub { margin-top: 5px; font: 500 .58rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a:not(.btn) {
  padding: .55em .9em; border-radius: 999px; font-weight: 500; font-size: .93rem;
  color: rgba(255, 255, 255, .78); transition: color .2s, background .2s;
}
.nav__menu a:not(.btn):hover, .nav__menu a[aria-current] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__menu .btn { margin-left: 10px; }
.nav .brand__sub { color: rgba(255, 255, 255, .55); }
.nav .cactus .c-body { fill: #e8ebee; }
.nav .cactus .c-lines { stroke: var(--ink); }
.nav .cactus .c-dots { fill: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 10px; }
.nav__toggle-close { display: none; }

.nav.is-scrolled { height: 64px; background: rgba(18, 23, 26, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line-dark); }

@media (max-width: 920px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px; background: rgba(18, 23, 26, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
  }
  .nav.is-scrolled .nav__menu { top: 64px; }
  .nav__menu a:not(.btn) { padding: .9em 1em; font-size: 1.05rem; border-radius: 12px; }
  .nav__menu .btn { margin: 10px 0 0; padding: 1em; }
  .nav.is-open { background: rgba(18, 23, 26, .97); }
  .nav.is-open .nav__menu { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open .nav__toggle-open { display: none; }
  .nav.is-open .nav__toggle-close { display: inline; }
}
@media (max-width: 420px) { .brand__sub { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(31, 58, 68, .9), transparent 70%),
    radial-gradient(700px 400px at 10% 110%, rgba(196, 22, 28, .14), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 96px));
}
.hero__photo { position: absolute; inset: 0; z-index: -3; background: center/cover no-repeat; opacity: .22; filter: grayscale(.4); }
.hero__net { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .55; }
.hero__glow { position: absolute; inset: auto 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, rgba(18, 23, 26, .9)); }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(24px, 5vw, 72px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero__title { font-size: clamp(2.2rem, 1.2rem + 4vw, 4.1rem); font-weight: 700; letter-spacing: -.035em; max-width: 16ch; }
.hero__lead { margin: 1.4rem 0 2.2rem; max-width: 56ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: rgba(255, 255, 255, .74); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); margin: clamp(36px, 5vw, 56px) 0 0; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.stats__item dt { font: 700 clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem)/1 var(--f-display); letter-spacing: -.02em; }
.stats__item dd { margin: 6px 0 0; font-size: .86rem; color: var(--muted-dark); max-width: 18ch; line-height: 1.4; }

.hero__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero__ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); animation: spin 60s linear infinite; }
.hero__ring--2 { inset: 18%; border-style: solid; border-color: rgba(196, 22, 28, .22); animation-duration: 90s; animation-direction: reverse; }
.hero__ring::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px 4px rgba(196, 22, 28, .6); }
@keyframes spin { to { transform: rotate(1turn); } }
.cactus--hero { position: relative; width: 62%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); animation: float 7s ease-in-out infinite; }
.cactus--hero .c-body { fill: #e9ecef; }
.cactus--hero .c-lines { stroke: var(--ink); }
.cactus--hero .c-dots { fill: var(--ink); }
.cactus--hero .c-red { stroke: var(--red); stroke-dasharray: 300; stroke-dashoffset: 300; animation: trace 2.4s .6s var(--ease) forwards; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes trace { to { stroke-dashoffset: 0; } }

.marquee { position: relative; border-top: 1px solid var(--line-dark); padding: 22px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__item { font: 600 1.05rem/1 var(--f-display); letter-spacing: .02em; color: rgba(255, 255, 255, .5); white-space: nowrap; }
.marquee__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: min(240px, 60vw); margin-inline: auto; margin-bottom: -8px; }
  .hero__title { max-width: none; }
}

/* ---------- Seções ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--tint { background: var(--tint); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section__head--row > div { max-width: 680px; }
.section__intro { margin: 1.1rem 0 0; font-size: 1.1rem; color: var(--muted); }

/* Quem somos */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about .h2 { margin-bottom: 1.4rem; }
.lead-p { font-size: 1.08rem; color: var(--muted); }
.lead-p:first-of-type { color: var(--text); font-size: 1.15rem; }
.about__img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.terminal { border-radius: var(--radius); background: #0f1417; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .04) inset; overflow: hidden; transform: perspective(1200px) rotateY(-4deg); transition: transform .6s var(--ease); }
.terminal:hover { transform: none; }
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: #182024; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4349; }
.terminal__bar i:first-child { background: var(--red); }
.terminal__bar span { margin-left: 10px; font: 500 .78rem var(--f-mono); color: #6f7c85; }
.terminal__body { margin: 0; padding: 22px 22px 26px; font: 400 clamp(.7rem, .62rem + .3vw, .86rem)/1.75 var(--f-mono); color: #c9d2d8; overflow-x: auto; }
.t-p { color: #ff6b70; } .t-m { color: #6f7c85; } .t-ok { color: #3fdc8b; }
.t-cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -2px; background: #c9d2d8; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .terminal { transform: none; } }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.service {
  position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--red), transparent); opacity: 0; transition: opacity .35s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { opacity: 1; }
.service__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.service__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--ink); color: #fff; transition: background .3s; }
.service:hover .service__icon { background: var(--red); }
.service__tag { font: 600 .72rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .55em .9em; border: 1px solid var(--line); border-radius: 999px; }
.service__title { font-size: 1.45rem; font-weight: 600; margin-bottom: .5rem; }
.service__summary { color: var(--muted); }
.checklist { display: grid; gap: 10px; margin-top: 18px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; line-height: 1.5; }
.checklist .icon { margin-top: 3px; padding: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--red-soft); color: var(--red); stroke-width: 2.5; }
.checklist--lg li { font-size: 1.05rem; }

@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Diferenciais */
.section--dark {
  color: #fff; overflow: hidden;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(196, 22, 28, .16), transparent 70%),
    linear-gradient(160deg, var(--petrol) 0%, var(--ink) 75%);
}
.section--dark::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 30% 20%, #000, transparent 70%); pointer-events: none; }
.why { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.why__item { position: relative; padding: clamp(24px, 3vw, 36px); background: rgba(18, 23, 26, .55); backdrop-filter: blur(4px); transition: background .3s; }
.why__item:hover { background: rgba(31, 58, 68, .55); }
.why__num { position: absolute; top: 22px; right: 24px; font: 600 .8rem var(--f-mono); color: rgba(255, 255, 255, .3); }
.why__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 26px; color: #fff; background: linear-gradient(135deg, var(--red), #7d0d11); box-shadow: 0 10px 24px -10px rgba(196, 22, 28, .8); }
.why__title { font-size: 1.25rem; font-weight: 600; margin-bottom: .6rem; }
.why__text { color: rgba(255, 255, 255, .68); font-size: .97rem; margin: 0; }
@media (max-width: 1020px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* Portfólio */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.pcard { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard[hidden] { display: none; }
.pcard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--ink); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .35); background: radial-gradient(circle at 70% 30%, var(--petrol-2), var(--ink)); }
.pcard__cat { position: absolute; left: 14px; top: 14px; padding: .45em .8em; border-radius: 999px; font: 600 .72rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(18, 23, 26, .7); backdrop-filter: blur(6px); }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.pcard__title { font-size: 1.2rem; font-weight: 600; margin-bottom: .45rem; }
.pcard__summary { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.pcard__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .9rem; color: var(--red); }
.pcard__more .icon { transition: transform .25s var(--ease); }
.pcard:hover .pcard__more .icon { transform: translateX(4px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags li { padding: .38em .7em; border-radius: 6px; font: 500 .76rem/1 var(--f-mono); background: var(--tint); color: var(--graphite); }
@media (max-width: 980px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pgrid { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: .65em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font: 500 .92rem/1 var(--f-body); color: var(--text); cursor: pointer; transition: .2s; }
.chip span { font-size: .78rem; color: var(--muted); }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-active span { color: rgba(255, 255, 255, .6); }

.empty { text-align: center; max-width: 520px; margin: 0 auto; padding: 48px 0; }
.empty__icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--tint); color: var(--muted); margin-bottom: 20px; }
.empty h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.empty p { color: var(--muted); margin-bottom: 1.6rem; }

/* Cabeçalho de páginas internas */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(48px, 7vw, 88px);
  background: radial-gradient(800px 400px at 90% 0%, rgba(31, 58, 68, .95), transparent 70%), var(--ink);
}
.page-hero--full { min-height: 80vh; display: flex; align-items: center; }
.page-hero__title { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); font-weight: 700; max-width: 20ch; letter-spacing: -.03em; }
.page-hero__lead { margin: 1.2rem 0 2rem; max-width: 60ch; font-size: 1.15rem; color: rgba(255, 255, 255, .72); }
.page-hero--project .hero__photo { opacity: .28; }
.page-hero--project::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 20%, rgba(18, 23, 26, .5)); }
.back { display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 28px; font-weight: 500; font-size: .92rem; color: rgba(255, 255, 255, .65); transition: color .2s; }
.back:hover { color: #fff; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.meta li { display: inline-flex; align-items: center; gap: 8px; }
.meta .icon { color: #ff6b70; }

/* Estudo de caso */
.case { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.case__block { margin-bottom: 44px; }
.case__block p { font-size: 1.07rem; color: #3a4147; }
.case__h { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 12px; }
.case__h::before { content: ""; width: 4px; height: 1.1em; border-radius: 2px; background: var(--red); }
.case__h--gallery { margin: 16px 0 24px; }
.case__side { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 16px; }
.side-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.side-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.side-card .tags { margin: 0; }
.side-card--dark { color: #fff; border: 0; background: linear-gradient(160deg, var(--petrol), var(--ink)); }
.side-card--dark p { color: rgba(255, 255, 255, .7); font-size: .95rem; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } .case__side { position: static; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery__item { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); background: var(--tint); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap { position: absolute; inset: auto 0 0; padding: 28px 14px 12px; font-size: .86rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(10, 13, 15, .94); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 82vh; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { margin-top: 12px; text-align: center; color: rgba(255, 255, 255, .75); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .08); cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) { .lightbox__nav { top: auto !important; bottom: 18px; transform: none !important; } }

/* Chamada final / contato */
.cta {
  color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(700px 400px at 0% 100%, rgba(196, 22, 28, .22), transparent 70%),
    radial-gradient(800px 500px at 100% 0%, rgba(31, 58, 68, .9), transparent 70%),
    var(--ink);
}
.cta--page { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px)); min-height: 100vh; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cta__text { margin: 1.2rem 0 2rem; font-size: 1.15rem; color: rgba(255, 255, 255, .72); max-width: 46ch; }
.cta__channels { display: grid; gap: 12px; max-width: 440px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); transition: background .2s, border-color .2s, transform .25s var(--ease); }
a.channel:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); transform: translateX(4px); }
.channel strong { display: block; font-weight: 600; }
.channel small { display: block; color: var(--muted-dark); font-size: .88rem; word-break: break-word; }
.channel__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none; background: rgba(255, 255, 255, .07); color: #fff; }
.channel__icon--wa { background: var(--wa); color: #0b3d20; }
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; } }

.form, .sent { padding: clamp(24px, 3.5vw, 40px); border-radius: calc(var(--radius) + 4px); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); backdrop-filter: blur(10px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field > span { font-size: .84rem; font-weight: 500; color: rgba(255, 255, 255, .78); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85em 1em; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .25); color: #fff; font: 400 1rem/1.4 var(--f-body);
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, #9aa5ad 50%), linear-gradient(135deg, #9aa5ad 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--text); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(196, 22, 28, .2); background: rgba(0, 0, 0, .35); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { color: #ff8a8e; font-size: .84rem; }
.form__error--box { padding: 12px 14px; border-radius: 10px; background: rgba(196, 22, 28, .15); border: 1px solid rgba(196, 22, 28, .4); }
.form__note { margin: 0; font-size: .8rem; color: var(--muted-dark); text-align: center; }
.sent { text-align: center; }
.sent__icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; margin-bottom: 18px; background: rgba(47, 212, 122, .15); color: #3fdc8b; }
.sent h2 { font-size: 1.6rem; margin-bottom: .5rem; }
.sent p { color: rgba(255, 255, 255, .72); margin-bottom: 1.6rem; }
.cta--page .hero__net { opacity: .35; }

/* Rodapé */
.footer { background: #0d1113; color: rgba(255, 255, 255, .7); padding: clamp(56px, 7vw, 80px) 0 28px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer .cactus .c-body { fill: #e8ebee; }
.footer .cactus .c-lines, .footer .cactus .c-dots { stroke: #0d1113; }
.footer .cactus .c-dots { fill: #0d1113; }
.footer .brand__sub { color: rgba(255, 255, 255, .45); }
.footer__about { margin: 20px 0 0; max-width: 40ch; color: rgba(255, 255, 255, .55); }
.footer__title { font: 600 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__list { display: grid; gap: 10px; }
.footer__list a:hover { color: #fff; }
.footer__contact li, .footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .06); transition: background .2s; }
.footer__social a:hover { background: var(--red); color: #fff; }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-dark); }
.footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; font-size: .84rem; color: rgba(255, 255, 255, .4); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.6s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .cactus--hero .c-red { stroke-dashoffset: 0; }
}
