:root{
  --purple: #870801;
  --purple-deep: #4c0602;
  --green: #E9CD87;
  --red: #098D90;
  --red-2: #A71F11;
  --yellow: #E9CD87;
  --teal: #098D90;
  --teal-2: #1F494C;
  --cream: #E9CD87;
  --ink: #870801;

  --font-display: 'Momo Trust Display', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-especial: 'Anton SC', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  overscroll-behavior: none; /* Impede o efeito elástico e o efeito de puxar para recarregar */
  overflow-x: hidden;
  margin:0;
  font-family: var(--font-body);
  background: var(--red-2);
  color: var(--ink);
  line-height: 1.6;
}

h1{ font-family: var(--font-display); margin:0; line-height: 1.1; }
h2,h3{ font-family: var(--font-display); margin:0; line-height: 1.1; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
:focus-visible{ outline: 3px solid var(--yellow); outline-offset: 3px; }
.container{ max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.especial{ font-family: var(--font-especial); }
.load-error{
  background: rgba(196,57,82,0.12); color: var(--red-2); font-weight: 600;
  padding: 16px 20px; border-radius: 10px; border: 2px dashed var(--red-2);
}

/* -------------- Header & Navegação -------------- */
.main-header {
  background: rgba(135, 8, 1, 0.60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.main-header.nav-hidden {
  transform: translateY(-100%);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--yellow);
}
.Logo-minha {
  width: 100px;
  height: auto;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 14px;
  margin: 0;
  padding: 0;
}
.btn-nav {
  display: inline-block;
  background: var(--red);
  color: var(--green);
  font-family: var(--font-display);
  font-weight:700;
  font-size: 1.3rem;
  padding: 14px 44px;
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--green);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-nav:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--green);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--yellow);
  cursor: pointer;
  z-index: 1002;
  line-height: 1;
}

/* Overlay escuro atrás do menu-gaveta (usado só no mobile, mas fica global
   porque o JS liga/desliga a classe .active independente da largura) */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}
.menu-overlay.active { display: block; }

/* ---------- Sections & Diagonal Seams ---------- */
.section{ position: relative; padding: 30px 8vw 130px; overflow: hidden; }
.section-purple{ background: var(--purple); color: var(--cream); }
.section-purple-deep{ background: var(--purple-deep); color: var(--cream); padding-top: 40px; }
.section-green{ background: var(--green); color: var(--purple); }
.section-teal{ background: var(--teal); color: var(--cream); }

.seam{ position:absolute; left:0; right:0; bottom:-2px; height: 100px; z-index: 2; }
.seam-to-green{ background: var(--green); clip-path: polygon(0 100%, 100% 35%, 100% 100%); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-block; font-family: var(--font-body); font-weight: 700;
  padding: 13px 26px; border-radius: 12px; font-size: 0.95rem; cursor:pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-solid{ border:none; }
.btn-solid:hover{ transform: translate(3px,3px); }
.btn-red{ background: var(--red); color: var(--green); box-shadow: 5px 5px 0 var(--yellow); }
.btn-red:hover{ box-shadow: 2px 2px 0 var(--yellow); }
.btn-teal{ background: var(--teal-2); color: var(--yellow); box-shadow: 6px 6px 0 var(--yellow); }
.btn-teal:hover{ box-shadow: 3px 3px 0 var(--yellow); }
.btn-outline{ background: transparent; border: 2px solid currentColor; }
.btn-outline-cream{ color: var(--cream); }
.btn-outline-cream:hover{ background: rgba(247,241,228,0.12); }
.btn-row{ display:flex; gap: 16px; margin-top: 0px; flex-wrap: wrap; }

/* ---------- Perfil (Home) ---------- */
.perfil-grid{ display:grid; grid-template-columns: 0.9fr 1.9fr; gap: 40px; align-items:flex-start; margin-top: 140px; }
.foto-wrapper {
  display: flex;
  height: 550px;
  justify-content: center;
}
.foto-perfil{
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2%/2%;
  border: 4px solid var(--purple-deep);
  box-shadow: 12px 14px 0 var(--purple-deep);
}
.eyebrow-free{ font-family: var(--font-body); font-size: 1.1rem; color: var(--cream); margin: 0 0 6px; }
.perfil-copy h1{ font-size: clamp(2.8rem, 5vw, 4.2rem); color: var(--green); font-weight: 700; }
.perfil-copy > p{ font-size: 1.3rem; max-width: 70ch; color: rgba(247,241,228,0.9); margin-top: 0px; margin-bottom: 13px; }

/* ---------- Grid de Trabalhos & Filtros ---------- */
.on-green-heading{ font-size: clamp(2.8rem, 5vw, 4.2rem); color: var(--purple); }
.hint-text{ margin: 12px 0 20px; color: rgba(36,16,47,0.75); font-size: 1rem; }

/* Barra de Filtros por Tag */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
  align-items: center;
}

.filter-btn {
  background: transparent;
  color: var(--purple-deep);
  border: 2px solid var(--purple-deep);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--red-2);
  color: #fff;
  border-color: var(--red-2);
  box-shadow: 0 4px 0 var(--purple-deep);
}

/* Estrutura dos Cards de Projeto */
.grid-projetos{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 48px;
  align-items: stretch;
}

.card{
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 0;
  border: none;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.3s ease, filter 0.3s ease;
  height: 100%;
}

.card:hover{
  transform: translateY(-6px);
}

.card.dimmed {
  opacity: 0.35;
  filter: grayscale(80%) brightness(0.6);
  pointer-events: auto;
}

/* Capa com moldura colorida */
.card-capa{
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 8px;
  background: var(--red-2);
  border-radius: 4px;
}

.card-capa img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .card-capa img{
  transform: scale(1.03);
}

.overlay{
  position: absolute;
  inset: 8px;
  background: rgba(36,16,47,0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover .overlay{ opacity: 1; }
.overlay .btn-ver{ color: var(--yellow); font-weight: 700; font-size: 0.95rem; }

/* Conteúdo e Informações do Card */
.card-conteudo{
  padding: 18px 4px 0 4px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-conteudo h3{
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red-2);
  margin: 0 0 4px 0;
  padding-bottom: 0;
  line-height: 1.15;
  display: flex;
  align-items: flex-start;
}

.card-conteudo p{
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--purple-deep);
  margin: 0 0 16px 0;
  padding-top: 0;
  line-height: 1.4;
}

/* Rodapé do Card: Tags Coloridas + Ano */
.card-footer-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tag-item {
  font-family: var(--font-display);
  font-size: 0.70rem;
  padding: 4px 14px;
  border-radius: 4px;
  color: #fff;
  background: var(--purple-deep);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-tag-item.product-design { background: var(--red-2); }
.card-tag-item.ia { background: var(--red-2); }
.card-tag-item.mobile { background: var(--purple-deep); }

.card-data {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--purple-deep);
  font-weight: 600;
  margin-left: auto;
}

/* ---------- Seção Contato (Diagonal Superior) ---------- */
.section-contato {
  background: var(--purple);
  padding: 100px 0 120px 0;
  clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  margin-top: -30px;
}

.contato-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

.contato-texto h2 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  color: var(--yellow);
  line-height: 1.05;
  margin-bottom: 16px;
  max-width: 24ch;
}

.contato-texto p {
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--cream);
  max-width: 60ch;
  margin: 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-contato {
  display: block;
  width: 180px;
  padding: 14px 20px;
  background: var(--teal);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-align: center;
  box-shadow: 6px 6px 0 var(--yellow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 14px;
}

.btn-contato:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--yellow);
}

/* ---------- Rodapé Simples ---------- */
.footer-simple {
  background: var(--purple-deep);
  padding: 24px 0;
  color: var(--cream);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-left strong {
  color: var(--yellow);
  font-family: var(--font-body);
  font-size: 1.1rem;
}

.footer-right {
  margin-left: auto;
}

/* =========================================================
   RESPONSIVIDADE — bloco único, fora de qualquer media query
   que não seja a própria largura da tela
   ========================================================= */

@media (max-width: 860px){

  /* ---- Header ---- */
  .Logo-minha{ width: 64px; }
  .logo{ font-size: 1.05rem; gap: 8px; }
  .nav-toggle{ display: flex; align-items: center; justify-content: center; }

  /* Esconde a barra horizontal de desktop e usa a gaveta lateral */
  .nav-links{
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }
  .nav-links .btn-nav{
    width: 100%;
    font-size: 1.1rem;
    padding: 12px 20px;
    box-shadow: none;
  }

  nav#navMenu{
    position: fixed;
    top: 0;
    right: -100%;
    width: 72%;
    max-width: 280px;
    height: 100vh;
    background: var(--purple-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1001;
  }
  nav#navMenu.active{ right: 0; }

  /* ---- Perfil / Hero ---- */
  .perfil-grid{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    margin-top: 110px;
  }
  .foto-wrapper{
    height: auto;
    width: 85%;
    max-width: 300px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
  }
  .foto-perfil{
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    object-position: center;
  }
  .perfil-copy h1{ font-size: clamp(2rem, 8vw, 2.6rem); }
  .perfil-copy > p{ font-size: 1rem; max-width: none; }
  .btn-row{ justify-content: center; }

  /* ---- Trabalhos ---- */
  .on-green-heading{ font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .filter-bar{ justify-content: center; gap: 8px; margin-bottom: 36px; }
  .filter-btn{ font-size: 0.8rem; padding: 6px 14px; }

  .grid-projetos{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .card-conteudo h3{ font-size: 1.2rem; }
  .card-conteudo p{ font-size: 1rem; }

  /* ---- Contato ---- */
  .section-contato{
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%);
    padding: 70px 0 90px 0;
  }
  .contato-grid{
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .contato-texto h2{ font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .contato-texto p{ font-size: 1rem; }
  .contact-links{ width: 100%; }
  .btn-contato{ width: 100%; box-sizing: border-box; }

  /* ---- Rodapé ---- */
  .footer-inner{
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-right{ margin-left: 0; }
}

@media (max-width: 420px){
  .btn-nav{ padding: 10px 18px; font-size: 0.95rem; }
  .card-conteudo h3{ font-size: 1.05rem; }
  .perfil-copy h1{ font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
}