/* ===== EVT Engenharia ===== */
:root {
  --bg: #0b0f14;
  --bg-alt: #10161e;
  --surface: #161e28;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8edf2;
  --muted: #9aa7b4;
  --amber: #f5a623;
  --amber-2: #ff8a3d;
  --whats: #25d366;
  --radius: 14px;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92%); margin: 0 auto; }

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.grad {
  background: linear-gradient(100deg, var(--amber), var(--amber-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 14px;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-whats { background: var(--whats); color: #06281a; }
.btn-whats:hover { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.35); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #fff; background: rgba(255,255,255,0.04); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ===== Navegação ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.nav-inner {
  width: min(1160px, 92%);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:not(.btn):hover { opacity: 1; color: var(--amber); }
.nav-cta { padding: 9px 18px; font-size: 0.88rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,15,20,0.55) 0%, rgba(11,15,20,0.35) 45%, rgba(11,15,20,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; width: min(880px, 92%); padding: 120px 0 80px; }
.hero-content h1 { margin-bottom: 20px; text-shadow: 0 2px 30px rgba(0,0,0,0.5); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: #d3dbe3;
  max-width: 640px;
  margin: 0 auto 34px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 999px;
}
.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--amber);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ===== Stats ===== */
.stats { background: var(--bg-alt); border-block: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(100deg, var(--amber), var(--amber-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--muted); font-size: 0.88rem; }

/* ===== Seções ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 56px; }

/* ===== Sobre ===== */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.split-text p { color: var(--muted); margin-bottom: 16px; }
.split-text h2 { margin-bottom: 20px; }
.split-text strong { color: var(--text); }
.checklist { list-style: none; margin-top: 10px; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--text); font-weight: 500; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(100deg, var(--amber), var(--amber-2));
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}
.split-media { position: relative; }
.split-media > img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #10161e;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.split-badge img { width: 40px; height: 40px; }
.split-badge strong { display: block; font-size: 1rem; line-height: 1.2; }
.split-badge span { font-size: 0.78rem; color: #5c6773; }

/* ===== Serviços ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: rgba(245, 166, 35, 0.12);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; font-size: 1.12rem; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* ===== Portfólio ===== */
.case {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}
.case:last-child { margin-bottom: 0; }
.case-flip .case-media { order: 2; }
.case-media img {
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s;
}
.case-media:hover img { transform: scale(1.02); }
.case-text h3 { margin-bottom: 14px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.case-text p { color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 166, 35, 0.4);
  color: var(--amber);
}

/* ===== Galeria ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: 0.2s;
}
.filter:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.filter.active { background: linear-gradient(100deg, var(--amber), var(--amber-2)); border-color: transparent; color: #211403; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.g-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.g-item:hover img { transform: scale(1.06); }
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,15,20,0.55));
  opacity: 0;
  transition: opacity 0.3s;
}
.g-item:hover::after { opacity: 1; }
.g-item.hidden { display: none; }

/* ===== CTA ===== */
.cta {
  background:
    linear-gradient(100deg, rgba(245,166,35,0.16), rgba(255,138,61,0.10)),
    var(--bg-alt);
  border-block: 1px solid rgba(245, 166, 35, 0.25);
  padding: 80px 0;
  text-align: center;
}
.cta-inner h2 { margin-bottom: 12px; }
.cta-inner p { color: var(--muted); margin-bottom: 28px; }

/* ===== Contato ===== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  transition: transform 0.25s, border-color 0.25s;
}
.contact-card svg { color: var(--amber); margin-bottom: 6px; }
a.contact-card:hover { transform: translateY(-5px); border-color: rgba(245, 166, 35, 0.45); }
.contact-card strong { font-size: 1.05rem; }
.contact-card span { color: var(--muted); font-size: 0.9rem; word-break: break-word; }

/* ===== Rodapé ===== */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { text-align: center; }
.footer-logo { height: 40px; width: auto; margin: 0 auto 16px; opacity: 0.9; }
.footer p { color: var(--muted); font-size: 0.85rem; }
.footer-credit { margin-top: 14px; font-size: 0.78rem; opacity: 0.75; }
.footer-credit a { color: var(--amber); font-weight: 600; transition: opacity 0.2s; }
.footer-credit a:hover { opacity: 0.8; }

/* ===== WhatsApp flutuante ===== */
.whats-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whats);
  color: #06281a;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.whats-float:hover { transform: scale(1.08); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 11, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(245, 166, 35, 0.3); }
.lb-close { top: 20px; right: 20px; font-size: 1.8rem; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ===== Animações de scroll ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsivo ===== */
@media (max-width: 1000px) {
  .cards, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .split, .case { grid-template-columns: 1fr; gap: 36px; }
  .case-flip .case-media { order: 0; }
  .split-badge { left: 12px; bottom: -18px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(11, 15, 20, 0.98);
    width: min(300px, 80vw);
    height: calc(100vh - var(--nav-h));
    padding: 30px 28px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s;
    border-left: 1px solid var(--line);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
  .nav.menu-open { background: rgba(11, 15, 20, 0.98); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 460px) {
  .cards, .contact-grid { grid-template-columns: 1fr; }
}
