/*
 * Theme Name: Avanda — Tema Minimalista
 * Theme URI: https://avanda.com.br
 * Author: Avanda Coletivo
 * Version: 1.0.0
 * License: MIT
 * Text Domain: avanda
 * Domain Path: /languages
 */

/* ==============================
   RESET & ESTILOS GLOBAIS
   ============================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
}
body {
  background-color: #000;
  color: inherit;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.32;
}
a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s ease all;
}
button {
  font-family: "Space Grotesk", sans-serif;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

/* ==============================
   ANIMAÇÕES
   ============================== */
@keyframes hoverpisca {
  from {
    color: #060606;
  }
  to {
    color: inherit;
  }
}
@keyframes hoverpiscabg {
  from {
    background-color: #060606;
  }
  to {
    background-color: #000;
  }
}
@keyframes hoverpiscafill {
  from {
    fill: #060606;
  }
  to {
    fill: #ddff55;
  }
}

/* ==============================
   UTILITÁRIOS
   ============================== */
.hover-pisca:hover {
  animation: hoverpisca 0.15s infinite;
}
.hover-pisca-bg:hover,
.hover-pisca-bg:hover .info,
.portfolio button.is-checked {
  animation: hoverpiscabg 0.15s infinite;
}
.logo:hover path {
  animation: hoverpiscafill 0.15s infinite;
}
.bg-cor {
  color: #000 !important;
}
/* ==============================
   CONTAINER & ESTRUTURA
   ============================== */
.container {
  margin: 0 auto;
  padding: 0 1.5vw;
  width: 100%;
}
#content {
  padding-top: 6vw;
}
/* ==============================
   HEADER & NAVEGAÇÃO
   ============================== */
.header-avanda {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  width: 100%;
  background-color: #000;
}
.header-avanda .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1vw 1.5vw;
}
a.logo {
  width: 9vw;
  display: flex;
  z-index: 99;
  flex-shrink: 0;
}
.menu-avanda {
  display: flex;
  align-items: center;
  margin-left: 20%;
}
.menu-avanda ul {
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  align-items: center;
  gap: 3vw;
}
.menu-avanda ul li a {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 600;
}
.menu-avanda ul.redes {
  display: none;
}
.header-avanda .toggler {
  display: none;
}

/* ==============================
   FRONT PAGE
   ============================== */
.page-id-6 a.logo {
  width: 666px;
}
.frontpage h1 {
  font-weight: 400;
  margin: 210px 0 45px;
  font-size: 1.2rem;
  line-height: 1.32;
  display: flex;
  align-items: flex-start;
  gap: 45px;
  max-width: 666px;
}

.frontpage h1 span {
  font-weight: bold;
  font-size: 3rem;
}

.frontpage .ultimos-trabalhos {
  margin-bottom: 30px;
  font-weight: 900;
  font-size: 1.8rem;
}

/* ==============================
   PORTFOLIO GRID (CSS Grid Nativo)
   ============================== */

.portfolio {
  width: 100%;
}

.portfolio .filter-button-group {
  display: flex;
  justify-content: center;
  margin: 0;
  flex-wrap: wrap;
}

.portfolio button {
  text-transform: uppercase;
  padding: 15px 21px;
  font-weight: 600;
  font-size: 2.1rem;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease all;
  background-color: transparent;
}

.portfolio button.off {
  display: none;
}

/* Grid portfolio */
.grid {
  display: flex;
  gap: 6px;
}
.grid-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* border-radius: 9px; */
}
.grid .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.grid-item figure {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
.grid-item img {
  width: 100%;
  height: auto;
  min-height: 30vh;
  object-fit: cover;
  transition: filter 0.3s ease;
}
.grid-item .info {
  text-align: left;
  padding: 15px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 9999;
  width: 60%;
  opacity: 0;
}
.grid-item:hover .info {
  opacity: 1;
}
.grid-item .info h2 {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.grid-item .info span {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
}

.grid-item .categorias-portfolio {
  display: flex;
  gap: 6px;
  padding: 3px 0;
  flex-wrap: wrap;
}

.grid-item .categorias-portfolio h3 {
  font-size: 0.84rem;
  text-transform: lowercase;
  line-height: 1;
}
.media-masonry {
  display: flex;
  gap: 24px;
  width: 100%;
}

.media-masonry .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.media-masonry .grid-item {
  display: block;
  width: 100%;
  text-decoration: none;
}

.media-masonry .grid-item figure {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.media-masonry .grid-item figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Gradient overlay */
.grid-item::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  bottom: 0;
  height: 100%;
  z-index: 999;
  background: #00000099;
  opacity: 0;
  backdrop-filter: invert(1);
  filter: grayscale(1) contrast(2) saturate(10);
}
.grid-item:hover::after {
  opacity: 1;
}

.frontpage .portfolio-completo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 3px solid;
  height: 120px;
  border-bottom: 6px solid;
  margin: 21px auto 12px auto;
  text-align: center;
  text-transform: uppercase;
  font-size: 1.5rem;
}

/* ==============================
   PAGE PORTFOLIO (COM FILTROS)
   ============================== */

.categorias-principais {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.categorias-principais a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: space-between;
  padding: 33px;
  border: 3px solid;
  border-radius: 18px;
}

.categorias-principais a h2 {
  font-size: 2.7rem;
  font-weight: 900;
}

.categorias-principais a h4 {
  font-size: 1.5rem;
  font-weight: 400;
}

/* ==============================
   SINGLE TRABALHOS
   ============================== */
.intro .titulo > .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-header {
  display: flex;
  gap: 3vw;
  width: 100%;
}
.post-header h1 {
  font-size: clamp(1.62rem, 1.1294vw + 1.3447rem, 2.7rem);
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  text-wrap: balance;
  letter-spacing: -2px;
  text-align: center;
  width: 100%;
  margin-bottom: 3vw;
}
.intro .titulo > .container h1 {
  font-size: 4.5rem;
  font-weight: 100;
  text-transform: uppercase;
  width: 66%;
  margin-left: -9vw;
}

.intro-hover > .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.trabalhos .container h2 {
  font-size: 1.5rem;
  margin: 0 1vw 1vw 0;
  text-transform: uppercase;
  font-weight: 100;
  line-height: 1.2;
}

.trabalhos .container h3 {
  font-size: 1.32rem;
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
  padding: 0 1vw 1vw 0;
  text-wrap: balance;
}

.trabalhos .container ul {
  list-style: none;
  width: 100%;
  margin-bottom: 3vw;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trabalhos .container ul li {
  border-bottom: 1px solid;
  font-size: 0.9rem;
  padding: 3px 0;
  width: 100%;
  text-wrap: balance;
}

.trabalhos .container ul li em {
  font-weight: 600;
  font-style: normal;
}

.single-trabalhos .portfolio .filter-button-group {
  margin-top: 0;
}

.masonry-3 {
  display: flex;
  gap: 12px;
  margin: 40px 0;
}

.masonry-3 .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 33.33%;
}

.masonry-3 img,
.masonry-3 iframe {
  width: 100%;
  height: auto;
  display: block;
}
/* vídeos */
.media-videos {
  margin-bottom: 0;
  width: 24%;
}
.tT {
  display: none;
}
.video-item .lyte-wrapper,
.lL {
  margin: 0 !important;
}

/* textos */
.media-text {
  width: 100%;
  margin-bottom: 1.5vw;
  column-count: 2;
}
.media-text p {
  margin-bottom: 1vw;
  font-size: 1rem;
  padding: 0 1.5vw 0 0;
  line-height: 1.41;
  font-weight: 100;
  text-wrap: pretty;
  text-indent: 3vw;
  /* text-align: justify; */
}
.media-text p strong {
  font-weight: 600;
}
/* masonry */
.media-masonry {
  display: flex;
  gap: 6px;
  width: 100%;
}
.media-masonry figure {
  margin: 0 !important;
}
.media-masonry figure img {
  object-fit: cover;
}
.media-masonry .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.media-masonry * {
  width: 100%;
}
.lyte .play {
  background-image: none !important;
  display: flex;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding: 12px;
}
.lyte .play::after {
  content: "▶ ASSISTIR";
  font-size: 0.69rem;
  color: inherit;
}
/* ==============================
   CATEGORIAS PORTFOLIO
   ============================== */

.categorias-portfolio {
  display: flex;
  gap: 6px;
  padding: 3px 0;
  flex-wrap: wrap;
}

.trabalhos .container .categorias-portfolio h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  line-height: 1;
  padding: 0;
  font-weight: 100;
}

/* ==============================
   FOOTER
   ============================== */

#footer-avanda {
  padding: 30px 0;
  position: relative;
  z-index: 99999999;
  background: #000;
}

#footer-avanda .container {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  padding: 0 20px;
}

#footer-avanda h4 {
  margin: 0;
}

#footer-avanda ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin: 6px 0;
  font-size: 1rem;
}

#footer-avanda .final {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}

#footer-avanda .final a {
  font-size: 1.2rem;
}

#footer-avanda a {
  position: relative;
}

/* ==============================
   RESPONSIVE DESIGN
   ============================== */

@media screen and (max-width: 1024px) {
  .media-masonry .grid-item {
    width: 33.3%;
    height: auto;
    padding: 1.5px;
  }
  .media-masonry,
  .media-masonry .col {
    gap: 0px;
    flex-wrap: wrap;
  }
  .media-masonry .grid-item figure img {
   height: 100%;
  }
}

@media screen and (max-width: 930px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  /* Header Mobile */
  .header-avanda > .container {
    justify-content: space-between;
    padding: 3vw;
  }

  .header-avanda .toggler {
    z-index: 9999;
    height: 50px;
    width: 50px;
    position: absolute;
    top: 0;
    right: 15px;
    cursor: pointer;
    opacity: 0;
    display: flex;
  }

  .hamburger {
    position: fixed;
    z-index: 999;
    right: 21px;
    top: 15px;
    height: 40px;
    width: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hamburger > div {
    position: relative;
    height: 3px;
    width: 100%;
    transition: all 0.4s ease;
  }

  .hamburger > div:last-of-type {
    position: absolute;
    top: 6px;
    width: 100%;
    height: 3px;
    transition: all 0.4s ease;
  }

  .toggler:checked + .hamburger > div {
    background: red;
    top: 0;
    transform: rotate(45deg);
  }

  .toggler:checked + .hamburger > div:last-of-type {
    top: 18px;
    transform: rotate(135deg);
  }

  .menu-avanda {
    background: #000;
    width: 100vw;
    height: 100vh;
    left: -120%;
    position: fixed;
    top: 0;
    margin: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transition: all 0.4s ease;
  }

  .toggler:checked ~ .menu-avanda {
    left: 0;
  }

  .menu-avanda > div > ul {
    padding: 0;
    margin: 0;
    padding: 81% 0 0 20px;
    visibility: hidden;
  }

  .menu-avanda > div > ul > li {
    list-style: none;
    padding: 0.5rem;
  }

  .menu-avanda > div > ul > li > a {
    text-decoration: none;
    font-size: 1.5rem;
  }

  .toggler:checked ~ .menu-avanda > div > ul {
    transition: visibility 0.4s ease;
    transition-delay: 0.1s;
    visibility: visible;
    gap: 21px;
  }

  .toggler:checked ~ .menu-avanda > div > ul > li > a:hover {
    color: #ddff55;
  }

  .menu-avanda > div > ul {
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .menu-avanda > div > ul.redes {
    flex-direction: row;
    display: flex !important;
  }

  .menu-avanda > div > ul.redes > li > a {
    font-size: 0.75rem;
  }

  a.logo {
    width: 36vw;
  }

  .page-id-6 a.logo {
    max-width: 81%;
  }

  .frontpage h1 {
    font-size: 1rem;
    margin: 150px 0 45px 0;
    line-height: 1.5;
    max-width: 75%;
  }

  .frontpage .ultimos-trabalhos {
    margin-bottom: 15px;
    font-size: 1.8rem;
  }

  .frontpage .portfolio-completo {
    height: 90px;
    width: 75%;
    font-size: 1.2rem;
  }

  .portfolio-page .container {
    padding: 0 3px;
  }

  /* Trabalhos Mobile */
  .trabalhos .intro {
    height: 510px;
  }

  .trabalhos .intro > div {
    height: 510px;
  }

  .trabalhos .intro .titulo {
    height: 510px;
  }

  .trabalhos .intro .titulo .container {
    padding-bottom: 30px;
  }

  .trabalhos .intro .titulo h1 {
    font-size: 2.7rem;
    max-width: 75%;
    padding: 0;
    margin-top: 0;
  }

  .container {
    padding: 0 3vw;
  }

  .trabalhos .container h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    max-width: 96%;
  }

  .trabalhos .container h3 {
    font-size: 0.9rem;
    margin-bottom: 18px;
    max-width: 96%;
    padding: 0;
    text-wrap: pretty;
  }

  .trabalhos .container p {
    margin-bottom: 18px;
    font-size: 0.9rem;
  }

  .trabalhos .container ul li {
    font-size: 0.9rem;
  }

  h4.mais-trabalhos {
    font-size: 1.8rem;
  }

  .portfolio button {
    font-size: 0.75rem;
  }

  .trabalhos .media-masonry,
  .trabalhos .media-masonry .col {
    gap: 3vw;
  }
  #footer-avanda .container {
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .intro-hover > .container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }
  .media-videos {
    width: 100%;
  }
  .media-videos .video-item {
    position: initial;
    margin-bottom: 3vw;
  }
  .post-header h1 {
    letter-spacing: -0.6px;
    margin-bottom: 9vw;
  }
  .media-text {
    column-count: 1;
    width: 100%;
  }
  .grid-item img {
    min-height: 9vh;
  }
  #content {
    padding-top: 15vh;
  }
}

@media screen and (max-width: 640px) {
  .frontpage h1 {
    max-width: 90%;
    margin: 120px 0 45px 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
