/* ================= RESET GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --panel: #0f0f10;
  --muted: #9b9b9b;
  --accent: #ffd400;
  --white: #fff;
  --gap: clamp(18px, 2.6vw, 48px);
  --max-width: 1200px;
  --header-h: 84px;
  --transition: 520ms cubic-bezier(.2,.9,.3,1);
}

html, body {
  background-color: #000;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
   overflow-x: hidden;
}

/* ================= BODY ================= */
body {
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* ================= HEADER ================= */
header {
 
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

/* Logo */
.logo img {
  height: 64px;
  display: block;
}

/* ================= NAV DESKTOP ================= */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.desktop-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color .3s;
}

.desktop-nav a:hover {
  color: var(--accent);
}

/* ================= BOTÃO MOBILE ================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

/* ================= MIDBAR ================= */
.midbar {
  width: 100%;
  padding: 12px;
  display: flex;
  justify-content: center;
  background: #ffffff0c;
  position: sticky;
  top: 84px;
  z-index: 999;
}

.midbar nav a {
  margin: 0 30px;
  text-decoration: none;
  color: #ebebeb;
  transition: 0.3s;
}

.midbar nav a:hover {
  color: #df881f;
}

/* ================= CONTEÚDO ================= */
main, .main, .site-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 20px 0;
}

section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* ================= PROJETOS ================= */
.projetos {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #161616;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

/* ================= FORM ================= */
form {
  display: grid;
  gap: 15px;
  max-width: 1000px;
  margin: 60px auto;
}

form input,
form textarea {
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

form button {
  padding: 12px;
  background: var(--accent);
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: rgba(0,0,0,.95);
    transform: translateX(100%);
    transition: transform .4s ease;
    padding: calc(var(--header-h) + 20px) 20px;
    z-index: 1100;
  }

  .menu.active {
    transform: translateX(0);
  }

  .menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2.2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }

  .card {
    grid-template-columns: 1fr;
  }
}
/* =====================================================
   FIX DEFINITIVO — INSTAGRAM WEBVIEW + MOBILE
===================================================== */

/* Viewport real (corrige 100vh bugado do Instagram) */
:root {
  --real-vh: 100vh;
}

@supports (height: 100dvh) {
  :root {
    --real-vh: 100dvh;
  }
}

/* Header estável (Instagram bug fix) */
header {

  will-change: transform;
  backface-visibility: hidden;
}

/* Menu mobile só existe no mobile */
.menu {
  display: none;
}

@media (max-width: 768px) {
  .menu {
    display: block;
    height: var(--real-vh);
  }
}

/* Evita animação durante resize (estralo) */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Instagram dispara resize falso — trava animação */
@media (max-width: 768px) {
  .menu,
  header,
  .desktop-nav {
    transition-property: transform, opacity;
  }
}

/* Nunca mostrar menu-toggle fora do mobile */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }

  .menu {
    transform: translateX(100%) !important;
  }
}

/* Previne abertura acidental ao redimensionar */
.menu:not(.active) {
  pointer-events: none;
}

.menu.active {
  pointer-events: auto;
}



