/* ============================================
   ARQUIVO ESSENCIAL — Estilo Documental Minimalista
   ============================================ */

/* Fontes importadas via HTML:
   - Cormorant Garamond (títulos)
   - Inter (corpo)
   - JetBrains Mono (códigos)
*/

/* Reset e Configurações Gerais */
*, *::before, *::after {
   box-sizing: border-box;
}

body {
   padding: 0;
   margin: 0 auto;
   font-family: 'Inter', Arial, Helvetica, sans-serif;
   background-color: #f7f7f5;
   color: #1a1a1a;
   line-height: 1.6;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
}

ul {
   list-style: none;
   padding: 0;
   margin: 0;
}

h1, h2, h3, p {
   margin: 0;
   padding: 0;
}

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

img {
   max-width: 100%;
   display: block;
}

/* ============================================
   HEADER
   ============================================ */

.header-bg {
   background-color: #f7f7f5;
   border-bottom: 1px solid #e8e8e6;
   position: sticky;
   top: 0;
   z-index: 100;
}

.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 40px;
}

.header {
   display: flex;
   flex-wrap: wrap;
   padding: 24px 0;
   gap: 8px;
   align-items: center;
   justify-content: space-between;
   font-weight: normal;
}

.logo h1 {
   font-size: 1.4rem;
   font-family: 'Cormorant Garamond', serif;
   font-weight: 600;
   letter-spacing: -0.02em;
}

.logo h1 a {
   color: #1a1a1a;
   transition: opacity 0.3s ease;
}

.logo h1 a:hover {
   opacity: 0.6;
}

.header-menu {
   display: flex;
   flex-wrap: wrap;
   gap: 32px;
}

.header-menu a {
   position: relative;
   display: inline-block;
   padding: 4px 0;
   color: #666;
   font-size: 0.85rem;
   font-weight: 400;
   letter-spacing: 0.05em;
   text-transform: uppercase;
   font-family: 'Inter', sans-serif;
   transition: color 0.3s ease;
}

.header-menu a:hover {
   color: #1a1a1a;
}

.header-menu a::after {
   content: "";
   position: absolute;
   left: 50%;
   bottom: -2px;
   width: 0;
   height: 1px;
   background-color: #1a1a1a;
   transition: width 0.4s ease, left 0.4s ease;
}

.header-menu a:hover::after {
   width: 100%;
   left: 0;
}

/* ============================================
   ARCHIVE HEADER
   ============================================ */

.archive-header {
   padding: 30px 0 20px;
   text-align: center;
   border-bottom: 1px solid #e8e8e6;
}

.archive-label {
   display: block;
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.7rem;
   letter-spacing: 0.2em;
   text-transform: uppercase;
   color: #999;
   margin-bottom: 16px;
}

.archive-title {
   font-family: 'Cormorant Garamond', serif;
   font-size: 3rem;
   font-weight: 400;
   color: #1a1a1a;
   margin-bottom: 12px;
   letter-spacing: -0.03em;
}

.archive-desc {
   font-size: 0.9rem;
   color: #888;
   font-weight: 300;
   max-width: 400px;
   margin: 0 auto;
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline-container {
   position: relative;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 40px;
}

.timeline-line {
   position: absolute;
   left: 50%;
   transform: translateX(-50%);
   width: 1px;
   height: 100%;
   background: linear-gradient(to bottom, #e0e0e0 0%, transparent 100%);
   z-index: 1;
   pointer-events: none;
}

/* ============================================
   ALBUM CARDS — Ficha de Arquivo
   ============================================ */

.colecao-bg {
   background-color: #f7f7f5;
   padding: 60px 0 100px;
}

.colecao-container {
   max-width: 1400px;
   margin: 0 auto;
   padding: 0 40px;
   display: flex;
   flex-direction: column;
   gap: 80px;
   position: relative;
   z-index: 2;
}

.colecao-card {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 30px;
   align-items: start;
   position: relative;
   padding-bottom: 80px;
   border-bottom: 1px solid #e8e8e6;
}

.colecao-card:last-child {
   border-bottom: none;
   padding-bottom: 0;
}

/* Código de arquivo */
.archive-code {
   position: absolute;
   bottom: 80px;
   right: 0;
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.65rem;
   letter-spacing: 0.15em;
   color: #bbb;
   text-transform: uppercase;
}

.colecao-card:last-child .archive-code {
   bottom: 0;
}

/* ============================================
   ALBUM VISUAL (Imagem + Meta)
   ============================================ */

.colecao-visual {
   position: relative;
}

.colecao-img {
   position: relative;
   overflow: hidden;
   border-radius: 2px;
   cursor: pointer;
   background-color: #eee;
}

.colecao-img::before {
   content: "";
   display: block;
   padding-top: 75%; /* 4:3 aspect ratio */
}

.colecao-img img {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
   filter: grayscale(20%);
}

.colecao-card:hover .colecao-img img {
   transform: scale(1.03);
   filter: grayscale(0%);
}

/* Meta info (hover effect) */
.colecao-meta {
   display: flex;
   gap: 16px;
   margin-top: 12px;
   opacity: 0;
   transform: translateY(8px);
   transition: all 0.4s ease;
}

.colecao-card:hover .colecao-meta {
   opacity: 1;
   transform: translateY(0);
}

.meta-item {
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.65rem;
   color: #999;
   letter-spacing: 0.05em;
}

/* ============================================
   ALBUM CONTENT (Texto)
   ============================================ */

.colecao-content {
   padding-top: 8px;
}

.colecao-header {
   display: flex;
   gap: 16px;
   margin-bottom: 16px;
   align-items: center;
}

.colecao-date {
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.7rem;
   color: #999;
   letter-spacing: 0.1em;
}

.colecao-location {
   font-size: 0.75rem;
   color: #888;
   font-weight: 300;
   position: relative;
   padding-left: 16px;
}

.colecao-location::before {
   content: "—";
   position: absolute;
   left: 0;
   color: #ccc;
}

.colecao-title {
   font-family: 'Cormorant Garamond', serif;
   font-size: 2.2rem;
   font-weight: 400;
   color: #1a1a1a;
   margin-bottom: 24px;
   letter-spacing: -0.02em;
   line-height: 1.2;
}

.colecao-text {
   margin-bottom: 32px;
}

.colecao-text p {
   font-size: 0.9rem;
   color: #555;
   line-height: 1.7;
   margin-bottom: 16px;
   font-weight: 300;
}

.colecao-text p:last-child {
   margin-bottom: 0;
}

/* Botão Ver mais */
.view-more-btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 12px 24px;
   background: transparent;
   border: 1px solid #ddd;
   border-radius: 0;
   font-family: 'Inter', sans-serif;
   font-size: 0.8rem;
   font-weight: 400;
   color: #666;
   cursor: pointer;
   transition: all 0.3s ease;
   letter-spacing: 0.05em;
}

.view-more-btn:hover {
   background-color: #1a1a1a;
   border-color: #1a1a1a;
   color: #f7f7f5;
}

.view-more-btn svg {
   transition: transform 0.3s ease;
}

.view-more-btn:hover svg {
   transform: translateX(4px);
}

/* ============================================
   LIGHTBOX / OVERLAY
   ============================================ */

.overlay {
   opacity: 0;
   transition: opacity 0.4s ease;
   display: none;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(10, 10, 10, 0.95);
   justify-content: center;
   align-items: center;
   flex-direction: column;
   z-index: 1000;
}

.overlay.active {
   opacity: 1;
}

#expanded-img {
   max-width: 85%;
   max-height: 75vh;
   object-fit: contain;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

#close-btn {
   position: absolute;
   top: 30px;
   right: 40px;
   color: rgba(255, 255, 255, 0.6);
   font-size: 32px;
   cursor: pointer;
   font-weight: 300;
   transition: color 0.3s ease;
   font-family: 'Inter', sans-serif;
}

#close-btn:hover {
   color: #fff;
}

#prev-btn, #next-btn {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   background: transparent;
   color: rgba(255, 255, 255, 0.5);
   padding: 20px;
   font-size: 24px;
   cursor: pointer;
   border: none;
   transition: all 0.3s ease;
   font-family: 'Inter', sans-serif;
}

#prev-btn:hover, #next-btn:hover {
   color: #fff;
}

#prev-btn { left: 30px; }
#next-btn { right: 30px; }

/* Info do overlay */
.overlay-info {
   position: absolute;
   bottom: 40px;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   gap: 24px;
   align-items: center;
}

#overlay-counter,
#overlay-code {
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.7rem;
   color: rgba(255, 255, 255, 0.5);
   letter-spacing: 0.1em;
}

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

.footer {
   background-color: #1a1a1a;
   padding: 40px 0;
}

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

.footer p {
   font-size: 0.8rem;
   color: #888;
   font-weight: 300;
   letter-spacing: 0.05em;
}

.footer-year {
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.7rem;
   color: #555;
}

/* ============================================
   MENU HAMBÚRGUER & MOBILE
   ============================================ */

.hamburger-menu {
   display: none;
   flex-direction: column;
   cursor: pointer;
   width: 36px;
   height: 36px;
   justify-content: center;
   align-items: center;
   border: 1px solid #ddd;
   border-radius: 50%;
   padding: 0;
   background: transparent;
   transition: all 0.3s ease;
}

.hamburger-menu:hover {
   border-color: #1a1a1a;
}

.hamburger-menu .bar {
   width: 14px;
   height: 1.5px;
   background-color: #333;
   margin: 2px 0;
   transition: all 0.3s ease;
}

.mobile-menu {
   display: none;
   background-color: #f7f7f5;
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   padding-top: 80px;
   z-index: 99;
}

.mobile-menu-list {
   list-style: none;
   text-align: center;
}

.mobile-menu-list li {
   margin: 24px 0;
}

.mobile-menu-list a {
   font-size: 1.5rem;
   color: #1a1a1a;
   font-family: 'Cormorant Garamond', serif;
   font-weight: 400;
   letter-spacing: 0.05em;
   transition: opacity 0.3s ease;
}

.mobile-menu-list a:hover {
   opacity: 0.5;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */




   @media screen and (max-width: 1240px) { 

     .header {
      margin: 0 40px;
   }

   }



   
@media screen and (max-width: 768px) {
   .container {
      padding: 0 24px;
   }

   .header {
      padding: 20px 0;
   }

   .archive-header {
      padding: 60px 0 40px;
   }

   .archive-title {
      font-size: 2.2rem;
   }

   .timeline-line {
      left: 20px;
   }

   .colecao-container {
      padding: 0 24px;
      gap: 60px;
   }

   .colecao-card {
      grid-template-columns: 1fr;
      gap: 32px;
      padding-bottom: 60px;
   }

   .archive-code {
      position: static;
      display: block;
      margin-top: 24px;
      text-align: right;
   }

   .colecao-title {
      font-size: 1.8rem;
   }

   .colecao-meta {
      opacity: 1;
      transform: none;
   }

   .header-menu {
      display: none;
   }

   .hamburger-menu {
      display: flex;
   }

   .mobile-menu.active {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
   }

   /* Lightbox mobile */
   #expanded-img {
      max-width: 90%;
      max-height: 60vh;
   }

   #prev-btn, #next-btn {
      top: auto;
      bottom: 80px;
      transform: none;
      font-size: 20px;
      padding: 16px;
   }

   #prev-btn { left: 20px; }
   #next-btn { right: 20px; }

   .overlay-info {
      bottom: 30px;
   }

   .footer .container {
      flex-direction: column;
      gap: 8px;
      text-align: center;
   }
}

@media screen and (max-width: 480px) {
   .archive-title {
      font-size: 1.8rem;
   }

   .colecao-title {
      font-size: 1.5rem;
   }

   .colecao-text p {
      font-size: 0.85rem;
   }

   .view-more-btn {
      width: 100%;
      justify-content: center;
   }
}