/* =========================================================
   style.css — Atelier Carmen Slawinski
   VERSÃO UNIFICADA (PADRÃO OURO)
   ========================================================= */

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #333;
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 1.2s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ACESSIBILIDADE */
.skip-link{
  position:absolute; left:-9999px; top:12px; padding:10px 12px;
  background:#fff; color:#000; border:1px solid rgba(0,0,0,0.2);
  border-radius:10px; z-index: 20000;
}
.skip-link:focus{ left:12px; }

/* =========================================================
   HEADER & MENU (PADRÃO OURO)
   ========================================================= */
#main-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 30px 50px;
  display: flex; align-items: center;
  z-index: 1000; /* Header fica abaixo do Lightbox */
  background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  transition: background 0.3s ease;
}

/* Fundo sólido ao rolar (opcional, melhora leitura) */
#main-header.scrolled {
    background: #000;
    padding: 20px 50px;
}

.logo a {
  flex-shrink: 0; margin-right: 24px;
  font-size: 1.56rem; font-weight: 600; color: #ffffff;
  letter-spacing: 0.6px; text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

#main-header nav { flex-grow: 1; display: flex; justify-content: center; }

.menu { display: flex; gap: 40px; align-items: center; }
.menu > li { position: relative; padding: 12px 0; }
.menu > li > a {
  font-size: 0.95rem; font-weight: 500; color: #ffffff;
  letter-spacing: 0.6px; text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  position: relative; z-index: 1005;
}
.menu > li > a:hover { color: rgba(255,255,255,0.86); }

/* DESTAQUE DA LOJA (Sublinhado) */
.menu-loja { position: relative; }
.menu-loja::after {
    content: ''; position: absolute; width: 100%; height: 2px;
    bottom: -5px; left: 0; background-color: #fff;
}

/* SUBMENU */
.submenu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0; pointer-events: none;
  background: rgba(0, 0, 0, 0.85); /* Fundo sutil para leitura */
  padding: 15px 20px; border-radius: 8px;
  min-width: 180px;
  transition: all 0.3s ease;
  z-index: 1002;
  margin-top: 0;
}
/* Ponte invisível para o mouse não escapar */
.submenu::before {
    content: ""; display: block; position: absolute;
    top: -20px; left: 0; width: 100%; height: 20px; background: transparent;
}
.menu > li:hover .submenu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.submenu li { text-align: center; margin: 8px 0; }
.submenu li a {
  font-size: 0.9rem; color: #ddd;
  text-shadow: none; display: block;
}
.submenu li a:hover { color: #fff; }

/* REDES SOCIAIS NO MENU */
.menu-redes-sociais { display: flex; gap: 15px; align-items: center; }
.menu-redes-sociais a { color: #fff; font-size: 1.2rem; opacity: 0.9; transition: 0.3s; }
.menu-redes-sociais a:hover { transform: translateY(-2px); opacity: 1; }

/* MENU MOBILE ICON */
.mobile-menu-icon { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1006; }
.bar { width: 25px; height: 3px; background-color: #fff; transition: 0.4s; box-shadow: 0 1px 3px rgba(0,0,0,0.5); }

/* =========================================================
   HERO & SEÇÕES GERAIS
   ========================================================= */
#hero-slider { position: relative; width: 100%; height: 100vh; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.slider-wrapper { position: absolute; inset: 0; z-index: 1; }
.slider-wrapper::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.28); }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.05); transition: opacity 2s ease, transform 2s ease; }
.slide.active { opacity: 1; transform: scale(1); }

.hero-text { z-index: 10; text-align: center; color: #fff; max-width: 980px; padding: 0 22px; text-shadow: 0 18px 40px rgba(0,0,0,0.35); animation: museumIn 0.95s ease-out 0.15s both; }
@keyframes museumIn { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.hero-text h1 { font-size: 3.5rem; font-weight: 300; letter-spacing: 6px; margin-bottom: 14px; text-transform: uppercase; }
.hero-text p { font-size: 1.15rem; font-weight: 300; letter-spacing: 1.4px; opacity: 0.92; }

.container { max-width: 1400px; margin: 0 auto; padding: 100px 50px; }
.home-block { margin-bottom: 80px; }
.intro-text { text-align: center; max-width: 800px; margin: 0 auto 50px auto; }
.intro-text h2 { font-weight: 300; font-size: 2rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }

/* CARDS GRID (HOME) */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.art-card { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 25px rgba(0,0,0,0.08); transition: all 0.3s ease; height: 100%; cursor: pointer; }
.art-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.art-card-img-container { width: 100%; height: 250px; overflow: hidden; position: relative; }
.art-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.art-card:hover .art-card-img { transform: scale(1.05); }
.art-card-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; text-align: left; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; margin-right: 8px; }
.pill.primary { background-color: #222; color: #fff; }
.pill.subtle { background-color: #f0f0f0; color: #666; }
.art-card-info h3 { font-size: 1.3rem; font-weight: 500; color: #222; margin: 15px 0 10px; }
.art-card-meta { margin-top: auto; border-top: 1px solid #eee; padding-top: 15px; }
.btn-card { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: #222; }

/* =========================================================
   ESTILOS DE GALERIA (OBJETOS E PINTURA)
   ========================================================= */
#main-content.galeria-container { padding-top: 140px; min-height: 100vh; }
.galeria-container { max-width: 1400px; margin: 0 auto; padding: 30px 20px 60px; }
.galeria-header { text-align: center; margin-bottom: 50px; padding: 0 20px; }
.galeria-header h1 { font-size: 2.8rem; font-weight: 300; color: #222; margin-bottom: 15px; letter-spacing: 0.5px; }
.galeria-header .subtitulo { font-size: 1.2rem; color: #666; max-width: 700px; margin: 0 auto; line-height: 1.6; font-weight: 300; }

.galeria-grid-objetos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin: 40px 0; }
.galeria-item-objetos { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 8px 25px rgba(0,0,0,0.08); transition: all 0.3s ease; cursor: pointer; }
.galeria-item-objetos:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.galeria-imagem-container { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.galeria-imagem-objetos { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.galeria-item-objetos:hover .galeria-imagem-objetos { transform: scale(1.05); }

.galeria-legenda-box { padding: 20px; background: #fff; border-top: 1px solid rgba(0,0,0,0.08); min-height: 80px; display: flex; flex-direction: column; justify-content: center; }
.legenda-texto { font-size: 0.95rem; color: #555; line-height: 1.5; }

.galeria-texto { max-width: 800px; margin: 60px auto; padding: 40px; background: #f9f9f9; border-radius: 12px; line-height: 1.7; color: #555; font-size: 1.1rem; }
.galeria-texto p { margin-bottom: 20px; }
.btn-ghost { background: rgba(0,0,0,0.04); color: #111; padding: 10px 20px; border-radius: 20px; font-weight: 500; display: inline-block; }
.btn-ghost:hover { background: rgba(0,0,0,0.1); }

/* LIGHTBOX */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000; /* Z-index altíssimo para cobrir tudo */
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; display: flex; flex-direction: column; align-items: center; }
.lightbox-image { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox-legenda { color: white; text-align: center; margin-top: 20px; padding: 0 20px; max-width: 800px; font-size: 1.1rem; }

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: fixed; background: rgba(255, 255, 255, 0.1);
    border: none; color: white; font-size: 2rem;
    width: 50px; height: 50px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    z-index: 20002; transition: 0.2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox-next { top: 50%; right: 20px; transform: translateY(-50%); }
.lightbox-counter { position: fixed; top: 20px; left: 20px; color: white; background: rgba(0,0,0,0.5); padding: 8px 15px; border-radius: 20px; z-index: 20002; }

/* =========================================================
   FOOTER
   ========================================================= */
.main-footer { background-color: #1a1a1a; color: #b0b0b0; padding: 60px 20px 20px; font-size: 0.9rem; margin-top: 80px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; border-bottom: 1px solid #333; padding-bottom: 40px; }
.footer-col h4 { color: #fff; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; font-size: 1rem; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: #b0b0b0; transition: 0.3s; white-space: nowrap; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { max-width: 1200px; margin: 20px auto 0; display: flex; justify-content: center; align-items: center; text-align: center; font-size: 0.8rem; }
.footer-nav-2cols { column-count: 2; column-gap: 20px; column-rule: 1px solid #fff; width: max-content; margin: 0 auto; padding: 0; list-style: none; text-align: left; }

/* BOTÃO BACK TO TOP */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    background: #333; color: #fff; width: 50px; height: 50px;
    border-radius: 50%; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease; opacity: 0; visibility: hidden;
    transform: translateY(20px);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #555; transform: translateY(-5px); }

/* =========================================================
   RESPONSIVIDADE (MOBILE)
   ========================================================= */
@media (max-width: 768px) {
    #main-header { padding: 15px 20px; justify-content: space-between; background: #000; }
    .mobile-menu-icon { display: flex; }
    
    .nav-list {
        display: none; position: fixed; top: 0; left: 0;
        width: 100%; height: 100vh;
        background-color: rgba(0,0,0,0.95);
        flex-direction: column; align-items: center; justify-content: center;
        padding: 20px 0; z-index: 1005;
        overflow-y: auto;
    }
    .nav-list.active { display: flex; }
    
    .menu { flex-direction: column; gap: 0; width: 100%; }
    .menu li { width: 100%; text-align: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .menu > li > a { font-size: 1.2rem; }
    
    /* Submenu no mobile: sempre visível ou expansível */
    .submenu {
        position: static; opacity: 1; pointer-events: auto;
        background: transparent; transform: none; padding: 10px 0 0;
        border: none; min-width: auto;
    }
    .submenu li { margin: 5px 0; border: none; }
    .submenu li a { font-size: 1rem; color: #aaa; }
    
    .hero-text h1 { font-size: 2rem; letter-spacing: 3px; }
    .container { padding: 60px 20px; }
    .footer-bottom { flex-direction: column; gap: 15px; }
    .footer-nav-2cols { column-count: 1; column-rule: none; width: auto; text-align: center; }
    .menu-redes-sociais { justify-content: center; margin: 20px 0; }
    
    /* Galeria Mobile */
    .galeria-grid-objetos { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
    #main-content.galeria-container { padding-top: 100px; }
}

@media (min-width: 769px) {
    .menu > li:last-child { display: flex; align-items: center; gap: 15px; }
    .menu-redes-sociais { margin: 0; }
}