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

:root {
  --margin-grid: 2rem;
  --margin: 32px;
  --text-color: #584638;
  --bg-color: #F5F6CF;
  --thumb-spacing: 12px;
  --top-spacing: 40px;
  --bottom-spacing: 133px;
}

body {
  font-family: 'Dazzed', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

@media (max-width: 992px) {
  :root {
    --margin-grid: 1.5rem;
  }
}

.container-fluid {
  padding-left: var(--margin-grid);
  padding-right: var(--margin-grid);
}

.row {
  --bs-gutter-x: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--margin);
  z-index: 1000;
}

.logo {
  position: absolute;
  left: 100%;
  transform: translateX(-50%);
  height: 40px;
  margin-top: -5px;
}

header a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
}

/* ===== HOVER HEADER ===== */
.logo {
  transition: filter 0.3s ease;
}

.logo:hover {
  filter: brightness(1.2) contrast(1.5);
}

header a {
  position: relative;
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
}

header a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

header a:hover {
  color: #584638;
  transform: translateY(-2px);
}

header a:hover::after {
  width: 100%;
}

.about-page header a:hover {
  color: #F5F6CF;
  /* ou outra cor visível sobre o fundo claro do about */
}

/* ========== HOME PAGE ========== */

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  /* ocupa o ecrã todo */
  padding-top: 64px;
  /* espaço para o header fixo */
  box-sizing: border-box;
}

.hero-img {
  width: 45%;
  height: auto;
}

@media (max-width: 768px) {
  .index-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
    padding: 0 24px 0px;
    z-index: 1000;
  }

  .index-header a {
    font-size: 14px;
  }

  .hero-img {
    width: 100%;
    height: auto;
  }
}

/* ===== WORK PAGE ===== */
.work-page {
  padding: 104px 32px 54px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--margin);
}

.work-page .project {
  width: 100%;
}

.work-page .project-thumb {
  width: 100%;
  margin-bottom: 12px;
  position: relative;
  width: 100%;
  aspect-ratio: 5/3;
  /* Proporção desejada (ajuste conforme seu Figma) */
  overflow: hidden;
}

.work-page .project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Corta a imagem para preencher o container */
  object-position: center;
  /* Foco no centro da imagem */
  display: block;
  transition: transform 0.3s ease;
}

.project-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  /* Desloca todo o bloco 8px para a esquerda */
  position: fixed;
  width: 925px;
  /* Ajuste conforme sua necessidade */
  left: 0px;
  /* Sua margem original */
  top: 104px;
  /* Header height + espaçamento */
  z-index: 1000;

}

.work-page .project-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  text-align: left;
}

.work-page .project-category {
  font-size: 14px;
  margin-top: -20px;
  text-align: right;
}

/* ===== WORK HOVER THUMBNAILS ===== */
.work-page .project {
  transition: transform 0.3s ease;
}

.work-page .project:hover {
  transform: translateY(-8px);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-page .project-category {
    font-size: 12px;
  }

  .work-page .project-title {
    font-size: 16px;
  }

  .work-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 0px;
    z-index: 1000;
    margin-top: -4px;
  }

  .work-header a {
    font-size: 14px;
  }

  .work-page {
    padding: 104px 24px 54px;
  }

}

/* ===== ABOUT PAGE ===== */
.about-page {
  background-color: #584638;
  color: #F5F6CF;
}

.about-page .about-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  background-color: #584638;
  z-index: 1000;
}

.about-page .about-header a {
  color: #F5F6CF;
}

.about-page .about-content {
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
}


.about-page .about-image img {
  width: 70%;
  height: auto;
}

.about-page .about-contact {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

}

.about-page .about-text {
  margin-top: 60px;
  font-size: 30px;

}

.about-page .about-contact {
  margin-top: 0rem;
  line-height: 22px;
  font-size: 14px;

}


/* ===== ABOUT PAGE MOBILE ===== */
@media (max-width: 768px) {
  .about-page .about-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 0px;
    background-color: #584638;
    z-index: 1000;
    margin-top: -4px;
  }

  .about-page .about-text {
    font-size: 16px;
    margin-top: 32px;
    line-height: 20px;
  }

  .about-page .about-header a {
    font-size: 14px;
  }

  .about-page .about-contact {
    font-size: 12px;
    line-height: 18px;
    padding-left: 50px;
  }

  .about-page .about-image img {
    width: 100%;
    height: auto;
  }

  .about-page .about-content {
    padding-bottom: 32px;
  }

}

/* ===== PROJECT PAGE ===== */
.project-page {
  background-color: #F5F6CF;
  color: #584638;
  padding-top: 6rem;
}


.project-meta {
  position: sticky;
  top: 7rem;
  margin-bottom: 24px;
  margin-right: 16px;
}

.project-meta h1 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.meta-item {
  display: flex;
  /* Ativa o flexbox */
  gap: 6rem;
  /* Espaço entre label e valor */
  align-items: flex-start;
  /* Alinha no topo */
}

.meta-label {
  width: 100px;
  flex-shrink: 0;
  text-align: left;
  margin-top: 2px;
}

.meta-value,
.meta-description {
  width: auto;
  flex-grow: 1;
  padding-left: 0px;
}

.divider {
  height: 1px;
  background-color: #584638;
  margin: 18px 0px 18px 0px;
  width: 100%;
}

.project-gallery img {
  width: 100%;
  margin-bottom: 32px;
}

/* ===== PROJECT IMAGES ===== */
.vertical-images-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 2 colunas */
  gap: 24px;
  /* Espaçamento entre imagens */
  margin-bottom: 0px;
  /* Espaço abaixo do container */
  width: 100%;
}

.vertical-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

  .project-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 0px;
    z-index: 1000;
    margin-top: -4px;
  }

  .project-header a {
    font-size: 14px;
  }

  .project-info {
    margin-left: 24px;
  }

  .meta-item {
    font-size: 14px;
  }

  .project-meta h1 {
    font-size: 22px;
  }

  .project-gallery img {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .project-meta {
    position: sticky;
    top: 7rem;
    margin-bottom: 24px;
    margin-right: 0px;
  }

  .meta-item {
    display: flex;
    /* Ativa o flexbox */
    gap: 2rem;
    /* Espaço entre label e valor */
    align-items: flex-start;
    /* Alinha no topo */
  }
}

.project-container {
  position: relative;
}

/* Ajustes ESPECÍFICOS para project4 */
.project4-page .project-gallery {
  padding-bottom: 0px;
}

/* Vídeos - substituindo as imagens, mas com mesmas dimensões */
.project4-page .project-gallery .vimeo-container {
  width: 100%;
  margin-bottom: 32px;
  /* Igual ao espaçamento das imagens */
  position: relative;
  padding-bottom: 56.25%;
  /* Proporção 16:9 (ajuste se precisar de outra) */
}

/* Iframe para preencher o container */
.project4-page .project-gallery .vimeo-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {

  .project4-page .project-gallery {
    padding-bottom: 0px;
  }

  .project4-page .project-gallery .vimeo-container {
    width: 100%;
    margin-bottom: 24px;
    /* Igual ao espaçamento das imagens */
    position: relative;
    padding-bottom: 56.25%;
    /* Proporção 16:9 (ajuste se precisar de outra) */
  }

}