/* =========================================================
   Support Equipamentos e Engenharia — estilo principal
   Tema: vermelho Support (#ED1C24) + grafite
   ========================================================= */

:root {
  --red: #ed1c24;
  --red-dark: #c4121a;
  --red-soft: rgba(237, 28, 36, .12);
  --ink: #1c1c23;
  --ink-2: #2b2b35;
  --ink-3: #3a3a46;
  --text: #4d4d57;
  --muted: #7a7a86;
  --line: #e7e7ec;
  --gray: #f5f5f7;
  --white: #fff;
  --wa: #25d366;
  --wa-dark: #1ebe5b;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(20, 20, 30, .06);
  --shadow: 0 12px 32px -8px rgba(20, 20, 30, .18);
  --shadow-lg: 0 30px 60px -20px rgba(20, 20, 30, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 78px;
  --container: 1200px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); -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;
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

/* ---------- Botões ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after { /* brilho que atravessa no hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px var(--shadow-c, rgba(237, 28, 36, .6)); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover > .ico:last-child:not(:first-child) { transform: translateX(4px); }
.btn--lg { padding: 1em 1.8em; font-size: 1rem; }
.btn--primary:hover { --bg: var(--red-dark); }
.btn--dark { --bg: var(--ink-2); --shadow-c: rgba(20, 20, 30, .5); }
.btn--dark:hover { --bg: var(--red); --shadow-c: rgba(237, 28, 36, .5); }
.btn--ghost { --bg: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); --shadow-c: rgba(0,0,0,.4); }
.btn--ghost:hover { --bg: #fff; --fg: var(--ink); border-color: #fff; }
.btn--wa { --bg: var(--wa); --shadow-c: rgba(37, 211, 102, .55); }
.btn--wa:hover { --bg: var(--wa-dark); }
.btn--light { --bg: #fff; --fg: var(--red); --shadow-c: rgba(0,0,0,.35); }
.btn--outline-light { --bg: transparent; border-color: rgba(255,255,255,.7); --shadow-c: rgba(0,0,0,.3); }
.btn--outline-light:hover { --bg: #fff; --fg: var(--red); }

/* ---------- Tipografia de seção ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .8em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--red); }
.eyebrow--light { color: #fff; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--gray { background: var(--gray); }
.section--dark { background: var(--ink); color: #c9c9d3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; }
.section__sub { color: var(--muted); margin: 0; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #b9b9c4; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar__phones { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.topbar__phones a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar__phones a:hover { color: #fff; }
.topbar__phones .ico { color: var(--red); }
.social { display: flex; gap: 6px; }
.social a {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.social a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.social .ico { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(28, 28, 35, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s, background-color .3s;
}
.header.is-scrolled { background: rgba(28, 28, 35, .94); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .3s var(--ease); }
.header.is-scrolled .header__inner { height: 66px; }
.brand img { width: auto; height: 52px; transition: height .3s var(--ease); }
.header.is-scrolled .brand img { height: 44px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a {
  position: relative; display: block; padding: 8px 12px;
  color: #e4e4ea; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  transition: color .2s;
}
.nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--red); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav ul a:hover, .nav ul a.is-active { color: #fff; }
.nav ul a:hover::after, .nav ul a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: .7em 1.2em; font-size: .85rem; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; padding: 0; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh - 42px, 900px); min-height: max(620px, min(calc(100svh - 42px), 900px));
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; overflow: hidden; background: var(--ink); margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.14) translate(1%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
.hero__overlay {
  background:
    linear-gradient(90deg, rgba(20,20,26,.92) 0%, rgba(20,20,26,.7) 45%, rgba(20,20,26,.25) 100%),
    linear-gradient(0deg, rgba(20,20,26,.85) 0%, transparent 40%);
}
.hero__content { position: relative; z-index: 2; padding-block: 60px 170px; }
.hero__title { color: #fff; font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; max-width: 14ch; }
.hero__title .hl { color: var(--red); position: relative; white-space: nowrap; }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: #d4d4dc; max-width: 560px; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__caption { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 3; display: flex; justify-content: flex-end; }
.hero__card {
  position: relative; display: flex; align-items: center; gap: 22px;
  width: min(440px, 100%); padding: 18px 18px 22px 22px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius); overflow: hidden;
}
.hero__card-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.hero__card-text strong { font-family: var(--font-head); font-size: 1rem; }
.hero__card-text span:last-child { font-size: .85rem; color: #cfcfd8; }
.hero__card-tag { font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .15em; color: var(--red); }
.hero__card-text.is-changing { animation: capIn .6s var(--ease); }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero__nav { display: flex; gap: 8px; }
.hero__btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: transparent; color: #fff; display: grid; place-items: center; transition: background-color .25s, border-color .25s;
}
.hero__btn:hover { background: var(--red); border-color: var(--red); }
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.hero__progress span { display: block; height: 100%; width: 0; background: var(--red); }
.hero__progress span.run { animation: progress var(--dur, 7s) linear forwards; }
@keyframes progress { to { width: 100%; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 40px; z-index: 3; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px; display: none;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Entrada do hero */
.anim-in { opacity: 0; transform: translateY(26px); animation: fadeUp .9s var(--ease) var(--d, 0s) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Números ---------- */
.stats { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.stats::before { /* textura diagonal sutil */
  content: ""; position: absolute; inset: 0; opacity: .08;
  background: repeating-linear-gradient(-45deg, #000 0 2px, transparent 2px 14px);
}
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 20px; text-align: center; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.2); }
.stat strong { font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1; }
.stat > span { font-size: .85rem; opacity: .9; line-height: 1.4; }

/* ---------- Empresa ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.about__media::before {
  content: ""; position: absolute; inset: -18px auto auto -18px; width: 55%; height: 60%;
  border: 3px solid var(--red); border-radius: var(--radius-lg); z-index: -1;
}
.about__badge {
  position: absolute; right: -14px; bottom: 28px; display: grid; gap: 2px;
  background: var(--ink-2); color: #fff; padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 190px; animation: float 5s ease-in-out infinite;
}
.about__badge strong { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--red); }
.about__badge span { font-size: .85rem; line-height: 1.4; }
@keyframes float { 50% { transform: translateY(-10px); } }
.credibility {
  display: flex; gap: 16px; align-items: flex-start; margin: 28px 0 32px;
  padding: 20px 22px; border-radius: var(--radius); background: var(--gray); border-left: 4px solid var(--red);
}
.credibility > .ico { width: 34px; height: 34px; color: var(--red); }
.credibility h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2em; }
.credibility p { margin: 0; }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.step__img { position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.step__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.step:hover .step__img img { transform: scale(1.08); }
.step__num {
  position: absolute; left: 18px; bottom: -1px; padding: 6px 14px 4px;
  background: var(--red); color: #fff; border-radius: 10px 10px 0 0;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
}
.step__body { padding: 26px 26px 30px; }
.step__body h3 { font-size: 1.25rem; }
.step__body p { margin: 0; font-size: .95rem; }

/* ---------- Equipamentos ---------- */
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 400px at 90% 0%, rgba(237,28,36,.14), transparent 60%);
}
.section--dark > .container { position: relative; }
.equip {
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.equip:hover { transform: translateY(-6px); border-color: rgba(237,28,36,.5); box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); }
.equip__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.equip__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.equip:hover .equip__media img { transform: scale(1.06); }
.equip__tag {
  position: absolute; top: 18px; left: 18px; padding: 4px 12px; border-radius: 999px;
  background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
}
.equip__body { padding: 30px; }
.equip__body h3 { font-size: 1.4rem; }
.equip--featured { display: grid; grid-template-columns: 1fr 1.1fr; margin-bottom: 28px; }
.equip--featured .equip__media { aspect-ratio: auto; min-height: 100%; }
.equip--featured .equip__body { padding: clamp(28px, 4vw, 48px); }
.equip--featured h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.equip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.tabs__list { display: inline-flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.06); border-radius: 999px; margin: 8px 0 22px; }
.tabs__list button {
  border: 0; background: transparent; color: #c9c9d3; padding: 8px 18px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; transition: background-color .25s, color .25s;
}
.tabs__list button[aria-selected="true"] { background: var(--red); color: #fff; }
.tabs__panel { animation: capIn .45s var(--ease); }

.specs { display: grid; grid-template-columns: 1fr; gap: 0 24px; margin: 0; }
@media (min-width: 1180px) { .equip--featured .specs { grid-template-columns: 1fr 1fr; } .equip--featured .specs dd { white-space: nowrap; } }
.specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.12); font-size: .9rem; }
.specs dt { color: #a3a3b0; }
.specs dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.specs--compact { grid-template-columns: 1fr; margin-top: 18px; }
.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.checklist .ico { color: var(--red); margin-top: .3em; stroke-width: 3; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gallery__item {
  display: block; position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--gray); box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(237,28,36,.75), rgba(28,28,35,.15));
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery__item .ico {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 46px; height: 46px; padding: 11px;
  background: #fff; color: var(--red); border-radius: 50%;
  transform: translate(-50%, -30%) scale(.7); opacity: 0; transition: transform .4s var(--ease), opacity .4s;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover .ico { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery__item.is-hidden { display: none; }
.gallery__item.reveal-in { animation: fadeUp .7s var(--ease) both; }
.gallery__more { text-align: center; margin-top: 24px; }

/* ---------- Equipe ---------- */
.team { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.member {
  display: flex; gap: 26px; align-items: flex-start; background: #fff; padding: 30px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s;
}
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member__photo {
  width: 120px; height: 120px; flex: none; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--red);
}
.member__photo--initial {
  display: grid; place-items: center; background: linear-gradient(135deg, var(--ink-2), var(--ink-3));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 2.8rem;
}
.member h3 { font-size: 1.4rem; margin-bottom: .4em; }
.member p { font-size: .95rem; }
.member__link { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 500; font-size: .9rem; overflow-wrap: anywhere; }
.member__link:hover { text-decoration: underline; }

/* ---------- Catálogo ---------- */
.catalog { background: linear-gradient(120deg, var(--red) 0%, #b80f16 100%); color: #fff; position: relative; overflow: hidden; }
.catalog::before, .catalog::after {
  content: ""; position: absolute; border-radius: 50%; border: 60px solid rgba(255,255,255,.06);
}
.catalog::before { width: 420px; height: 420px; right: -120px; top: -200px; animation: spin 40s linear infinite; }
.catalog::after { width: 300px; height: 300px; left: -140px; bottom: -180px; }
@keyframes spin { to { transform: rotate(360deg); } }
.catalog__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(48px, 7vw, 80px); }
.catalog h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
.catalog p { margin: 0; opacity: .9; }
.catalog .eyebrow { opacity: 1; }
.catalog .eyebrow::before { background: #fff; }
.catalog__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.form { background: var(--gray); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { position: relative; margin-bottom: 18px; }
.field input, .field textarea {
  width: 100%; padding: 24px 16px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: .95rem; color: var(--ink); resize: vertical; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; }
.field label {
  position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: .95rem; pointer-events: none;
  transform-origin: left top; transition: transform .2s var(--ease), color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: var(--red); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); background: #fff6f6; }
.form__error { color: var(--red-dark); font-size: .9rem; font-weight: 500; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.contact__info { display: grid; gap: 16px; }
.info-card {
  display: flex; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.info-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateX(4px); }
.info-card__ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.info-card__ico .ico { width: 22px; height: 22px; }
.info-card h3 { font-size: 1rem; margin-bottom: .3em; }
.info-card ul, .info-card address { font-size: .93rem; }
.info-card a:not(.link):hover { color: var(--red); }
.info-card ul a { word-break: break-all; }
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--red); font-weight: 600; font-size: .9rem; }
.link:hover .ico { transform: translateX(3px); }
.link .ico { transition: transform .25s var(--ease); }

.map { margin-top: 40px; height: 380px; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray); display: grid; place-items: center; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.25); }
.map__placeholder { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0; }

/* ---------- Rodapé ---------- */
.footer { background: var(--ink); color: #a7a7b3; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 40px; padding-block: 72px 48px; }
.footer__brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1.1em; position: relative; padding-bottom: .6em; }
.footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; background: var(--red); border-radius: 3px; }
.footer__col li { margin-bottom: 8px; }
.footer__col a { transition: color .2s, padding-left .25s var(--ease); }
.footer__col a:hover { color: #fff; padding-left: 4px; }
.social--footer { margin-top: 18px; }
.social--footer a { width: 38px; height: 38px; background: rgba(255,255,255,.06); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 20px; font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* ---------- Flutuantes ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 25px -5px rgba(37,211,102,.6);
  transition: transform .3s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float .ico { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float__tip {
  position: absolute; right: 74px; white-space: nowrap; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px;
  font-weight: 600; font-size: .85rem; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none;
}
.wa-float__tip::after { content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-right: 0; border-left-color: #fff; }
.wa-float:hover .wa-float__tip, .wa-float.show-tip .wa-float__tip { opacity: 1; transform: none; }

.to-top {
  position: fixed; right: 30px; bottom: 96px; z-index: 89; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--ink-2); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(12,12,16,.94); backdrop-filter: blur(6px); padding: 60px 70px; animation: lbIn .3s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-height: 100%; }
.lightbox__figure img { max-width: 100%; max-height: calc(100svh - 140px); width: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: lbImg .4s var(--ease); }
.lightbox__figure img.is-loading { opacity: .3; }
@keyframes lbImg { from { opacity: 0; transform: scale(.96); } }
.lightbox__figure figcaption { color: #bdbdc7; font-size: .85rem; letter-spacing: .1em; }
.lightbox button { position: absolute; border: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background-color .25s; }
.lightbox button:hover { background: var(--red); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }
.lightbox .ico { width: 24px; height: 24px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal--left { transform: translateX(-50px); }
.js .reveal--right { transform: translateX(50px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (min-width: 992px) and (min-height: 700px) { .hero__scroll { display: block; } }

@media (max-width: 1100px) {
  .nav ul a { padding: 8px 8px; font-size: .85rem; }
  .nav { gap: 14px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  :root { --header-h: 68px; }
  .topbar__phones li:nth-child(n+3) { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; height: calc(100svh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: 24px 20px 40px; background: var(--ink); overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility .5s;
  }
  .nav.is-open { clip-path: inset(0); visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul li { opacity: 0; transform: translateY(-10px); transition: opacity .4s, transform .4s var(--ease); }
  .nav.is-open ul li { opacity: 1; transform: none; }
  .nav.is-open ul li:nth-child(2) { transition-delay: .05s; } .nav.is-open ul li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open ul li:nth-child(4) { transition-delay: .15s; } .nav.is-open ul li:nth-child(5) { transition-delay: .2s; }
  .nav.is-open ul li:nth-child(6) { transition-delay: .25s; } .nav.is-open ul li:nth-child(7) { transition-delay: .3s; }
  .nav ul a { font-size: 1.2rem; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav ul a::after { display: none; }
  .nav__cta { padding: 1em; font-size: 1rem; }
  .header.is-scrolled .header__inner, .header__inner { height: var(--header-h); }
  .brand img, .header.is-scrolled .brand img { height: 42px; }

  .about, .contact, .equip--featured, .team { grid-template-columns: 1fr; }
  .equip--featured .equip__media { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .step:last-child { grid-column: span 2; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.2); }
  .catalog__inner { flex-direction: column; align-items: flex-start; }
  .about__media { margin: 0 14px 0 18px; }
}

@media (max-width: 680px) {
  body { font-size: .95rem; }
  .topbar__inner { justify-content: center; }
  .topbar .social { display: none; }
  .hero__content { padding-block: 40px 190px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__caption { bottom: 20px; }
  .hero__card { padding: 14px 14px 18px 16px; gap: 12px; }
  .steps, .equip-grid, .form__row, .specs { grid-template-columns: 1fr; }
  .steps .step:last-child { grid-column: auto; }
  .equip__body { padding: 24px; }
  .member { flex-direction: column; padding: 24px; }
  .member__photo { width: 96px; height: 96px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery__item { border-radius: 10px; }
  .member__link { font-size: .82rem; }
  .form__actions .btn { flex: 1 1 100%; }
  .catalog__actions, .catalog__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .about__badge { right: -8px; bottom: 16px; padding: 14px 18px; }
  .about__badge strong { font-size: 1.9rem; }
  .lightbox { padding: 60px 8px 80px; }
  .lightbox__arrow { top: auto; bottom: 16px; }
  .lightbox__arrow--prev { left: calc(50% - 60px); }
  .lightbox__arrow--next { right: calc(50% - 60px); }
  .map { height: 300px; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .to-top { right: 22px; bottom: 84px; }
}

/* Acessibilidade: menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
