/* ===================================
   DIX ARTE E METAL - LUXURY THEME
   Baseado em: Bernardes, PS Arquitetos
   =================================== */

/* #region GLOBAL & VARS */
:root {
    /* Cores do Briefing */
    --bg-color: #FFFFFF;
    --text-primary: #1a1a1a; /* Preto suave */
    --text-secondary: #666666; /* Cinza médio elegante */
    --accent-color: #D4834A; /* Laranja da marca */
    --border-color: #E0E0E0; /* Linhas finas */
    
    /* Fontes */
    --font-main: 'Jost', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* #endregion */

/* #region TYPOGRAPHY */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; }

.section-header {
    margin-bottom: 5rem;
    text-align: center;
}

.subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
}
/* #endregion */

/* #region NAVBAR */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}


/* Esconde o Insta Mobile na versão Desktop */
.mobile-only-social { display: none; }

.nav-container {
    display: flex; 
    align-items: center;
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 0 2rem;
}

.logo a {
    display: flex;
    align-items: center;
    position: relative;
}

.logo img {
    height: 45px;
    width: auto;
    transition: opacity 0.4s ease;
}

/* Estado Navbar Topo */
.navbar .logo-light { display: block; }
.navbar .logo-dark { display: none; }

/* Estado Navbar Rolada (.scrolled) */
.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom: none;
}

.navbar.scrolled .logo-light { display: none; }
.navbar.scrolled .logo-dark { display: block; }

.navbar.scrolled .nav-menu a { color: var(--text-primary); }
.navbar.scrolled .nav-social-desktop a { color: var(--text-primary); }
.navbar.scrolled .hamburger span { background: var(--text-primary); }

.navbar.scrolled .nav-menu a:hover { color: var(--accent-color); }
.navbar.scrolled .nav-menu a::after { background: var(--accent-color); }
.navbar.scrolled .nav-social-desktop a:hover { color: var(--accent-color); }

/* ... (início da navbar e logo continua igual) ... */

/* --- MENU ITENS --- */
.nav-menu {
    display: flex; 
    gap: 3rem;
    align-items: center;
    margin-left: auto; /* Empurra para a direita */
    margin-right: 2rem; /* Espaço antes dos ícones da direita */
}

.nav-menu a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: #FFFFFF;
    position: relative;
    transition: color 0.4s ease;
    line-height: 1;
}

.nav-menu a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: #FFFFFF; 
    transition: 0.3s;
}
.nav-menu a:hover::after { width: 100%; }

/* --- ÁREA DIREITA (SOCIAL + HAMBURGER) --- */
.nav-right-elements {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Espaço entre o ícone do insta e o hambúrguer */
}

/* Social Icon no Header */
.nav-social-header a {
    display: flex;
    align-items: center;
    color: #FFFFFF; /* Começa branco */
    transition: color 0.4s ease;
    opacity: 0.9;
}
.nav-social-header a:hover { opacity: 1; }

/* Hamburger */
.hamburger { 
    display: none; /* Escondido no desktop */
    cursor: pointer; 
    flex-direction: column; 
    gap: 6px; 
}

.hamburger span { 
    width: 24px; height: 1px; 
    background: #FFFFFF; 
    transition: background 0.4s ease;
}


/* ===================================
   SELETOR DE IDIOMA (DESKTOP E GERAL)
   Cole isso na #region NAVBAR
   =================================== */

.lang-switch a {
    color: #FFFFFF; /* 1. Começa BRANCO no topo */
    font-weight: 500;
    text-decoration: none;
    transition: color 0.4s ease; /* Transição suave */
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.lang-switch a:hover {
    opacity: 0.8;
}

/* ===================================
   QUANDO ROLA A PÁGINA (SCROLLED)
   =================================== */

/* Assim como a logo muda, o texto EN também muda para PRETO */
.navbar.scrolled .lang-switch a {
    color: var(--text-primary); /* Vira Preto/Cinza Escuro */
}
/* Ajustes de Cor quando Rolado (.scrolled) */
.navbar.scrolled .nav-menu a { color: var(--text-primary); }
.navbar.scrolled .nav-social-header a { color: var(--text-primary); }
.navbar.scrolled .hamburger span { background: var(--text-primary); }

/* Hover Laranja quando rolado */
.navbar.scrolled .nav-menu a:hover { color: var(--accent-color); }
.navbar.scrolled .nav-social-header a:hover { color: var(--accent-color); }

/* #endregion */

/* #region HERO (HOME) */
.hero {
    height: 100vh;
    /* Mantive o background que você tinha, ajuste o caminho se necessário */
    background: url('../img/home-bg.jpg') center/cover no-repeat fixed;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35); 
    z-index: 2;
}

.hero-content {
    position: relative; z-index: 2; text-align: center; color: #fff;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-content p {
    font-size: 1.1rem; font-weight: 300; opacity: 0.9;
    max-width: 500px; margin: 0 auto 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    z-index: 10;
    text-decoration: none;
    color: #FFFFFF;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
    bottom: 1.5rem;
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: #FFFFFF;
}
/* #endregion */

/* #region QUEM SOMOS */
.quem-somos { padding: 8rem 0; background: #fff; }

.sobre-layout {
    max-width: 800px; margin: 0 auto; text-align: center;
}

.sobre-text p {
    margin-bottom: 1.5rem; font-size: 1.05rem;
    color: var(--text-secondary); font-weight: 300;
}

.sobre-text p.lead {
    font-size: 1.4rem; color: var(--text-primary);
    margin-bottom: 2.5rem; line-height: 1.5;
}
/* #endregion */

/* #region SERVIÇOS */
.servicos { padding: 6rem 0; background: #FAFAFA; }

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

.servico-item { text-align: center; cursor: pointer; group: hover; }

.img-wrapper {
    overflow: hidden; margin-bottom: 1.5rem;
    aspect-ratio: 1/1;
}

.img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s ease;
}

.servico-item:hover img { transform: scale(1.05); }

.servico-item h3 {
    font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent-color);
    font-weight: 500;
}


/* #endregion */

/* #region PORTFOLIO */
.portfolio { padding: 8rem 0; }

.portfolio-filters {
    display: flex; justify-content: center; gap: 2rem; margin-bottom: 4rem;
}

.filter-btn {
    background: none; border: none; cursor: pointer;
    font-family: var(--font-main); font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-secondary); transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover { color: var(--accent-color); }

.portfolio-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item { position: relative; overflow: hidden; transition: opacity 0.4s ease, transform 0.4s ease !important;
    will-change: opacity, transform;}

.portfolio-item.hidden {display: none !important;}

.portfolio-item img {
    width: 100%; height: 400px; object-fit: cover;
   
    transition: 0.5s;
}
/* tem q mudar aqui o hover.  */
.portfolio-item:hover img { filter: grayscale(0%); }

.item-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0; transition: 0.3s;
}

.portfolio-item:hover .item-overlay { opacity: 1; }

.item-overlay h4 { color: #fff; font-weight: 400; font-size: 1.1rem; }
.item-overlay .cat {
    color: var(--accent-color); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 0.5rem;
}

.btn-text {
    display: inline-block; font-size: 0.9rem; border-bottom: 1px solid var(--text-primary);
    padding-bottom: 5px; margin-top: 1rem;
}
/* #endregion */

/* #region CONTATO */
.contato { padding: 8rem 0; background: #fff; }

.contato-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6rem;
    max-width: 1000px; margin: 0 auto;
}

.contato-info h2 { font-size: 2rem; margin-bottom: 1rem; }
.contato-info p { color: var(--text-secondary); margin-bottom: 3rem; max-width: 300px; }

.info-block { margin-bottom: 2rem; }
.info-block label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 0.5rem; }
.info-block a { font-size: 1.1rem; color: var(--text-primary); font-weight: 400; }

.form-group { margin-bottom: 2rem; }

.form-group input, 
.form-group textarea {
    width: 100%; padding: 10px 0;
    border: none; border-bottom: 1px solid var(--border-color);
    font-family: var(--font-main); font-size: 1rem;
    outline: none; transition: 0.3s; color: var(--text-primary);
}

.form-group textarea { resize: none; }

.form-group input:focus, .form-group textarea:focus {
    border-bottom-color: var(--accent-color);
}

.btn-submit {
    background: var(--text-primary); color: #fff;
    border: none; padding: 1rem 3rem;
    font-family: var(--font-main); text-transform: uppercase;
    letter-spacing: 0.15em; font-size: 0.8rem; cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { background: var(--accent-color); }
/* #endregion */

/* #region FOOTER */
.footer {
    background-color: #FFFFFF;
    color: var(--text-primary);
    padding: 6rem 0 3rem; 
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--text-primary);
}

.brand-col { flex: 1; min-width: 250px; }
.brand-col p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.5rem; font-weight: 300; }
.brand-col .since { font-size: 0.8rem; opacity: 0.7; }

.nav-col { flex: 0 1 200px; }
.nav-col ul li { margin-bottom: 0.8rem; }
.nav-col a { font-size: 0.9rem; color: var(--text-secondary); font-weight: 300; }
.nav-col a:hover { color: var(--accent-color); padding-left: 5px; }

.social-col { flex: 0 1 150px; }
.social-icons { display: flex; gap: 1rem; }

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #F5F5F5;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 131, 74, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #F9F9F9;
}
.footer-bottom p { font-size: 0.75rem; color: #999; }

/* ==========================================
   CRÉDITOS DO DESENVOLVEDOR (FOOTER)
   ========================================== */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Dá um espacinho sutil entre o copyright e o seu nome */
}

.developer-credit {
    font-size: 0.65rem; /* Letra bem miudinha, estilo grife */
    color: #888888; /* Um tom mais discreto para não roubar a atenção da marca */
    letter-spacing: 0.05em;
    font-weight: 300;
}

.developer-credit a {
    color: #888888;
    font-weight: 600; /* Seu nome fica um pouquinho mais forte que o "Desenvolvido por" */
    text-decoration: none; /* Tira aquele sublinhado feio padrão de links */
    transition: color 0.3s ease;
    cursor: pointer; /* Garante que a setinha do mouse vire a "mãozinha" */
}

/* O toque final: Quando passarem o mouse no seu nome, ele acende! */
.developer-credit a:hover {
    color: var(--accent-color); /* Fica no Laranja elegante da DIX */
}

/* #endregion */

/* #region SUBPAGES */
body.subpage .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05) !important;
    border-bottom: none !important;
    padding: 1rem 0 !important;
}

body.subpage .logo-light { display: none !important; }
body.subpage .logo-dark { display: block !important; }

body.subpage .nav-menu a { color: var(--text-primary) !important; }
body.subpage .nav-social-desktop a { color: var(--text-primary) !important; }
body.subpage .hamburger span { background: var(--text-primary) !important; }
body.subpage .nav-menu a::after { background: var(--accent-color) !important; }

.page-header-spacer {
    height: 120px;
    background: var(--bg-color);
}
/* #endregion */


/* #region lightbox */
/* ==========================================
   LIGHTBOX GALERIA VERTICAL (TEMA CLARO LUXO)
   ========================================== */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox.hidden { display: none; }

/* Fundo */
.lightbox-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #FAFAF8; /* Tom perolado/off-white elegante */
    z-index: 1;
}

/* Área de Rolagem */
.lightbox-scroll-area {
    position: relative;
    z-index: 2;
    width: 100%; height: 100%;
    overflow-y: auto; /* Permite rolar para baixo */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 5rem;
    
    /* A MÁGICA DO SNAP (EFEITO IMÃ): */
    scroll-snap-type: y mandatory; /* Força a rolagem a travar em um elemento */
    scroll-behavior: smooth; /* Deixa o deslize mais macio */
}

/* Container das Imagens */
.lightbox-gallery-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85%;
    max-width: 1400px; /* Largura máxima da foto */
}

/* Container das Imagens */
/* Container das Imagens */
.lightbox-gallery-container img {
    max-width: 100%; 
    max-height: 100vh; 
    width: auto; 
  
    height: 100vh !important;
    margin-bottom: 0 !important;
    display: block;
    object-fit: contain; 
    
    /* A MÁGICA DO SNAP NAS FOTOS: */
    scroll-snap-align: center; /* Centraliza a foto na tela quando trava */
    scroll-snap-stop: always; /* Impede que a pessoa pule várias fotos de uma vez se rolar muito rápido */
}

/* Ajuste sutil para o celular */
@media (max-width: 768px) {
    .lightbox-gallery-container img {
        margin-bottom: 2rem;
    }

}

/* Aviso SCROLLDOWN (Minimalista e Menor) */
.scroll-down-hint {
    position: fixed; 
    bottom: 3vh; /* Fica ali pertinho do rodapé */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 0.2rem; /* Espacinho bem pequeno entre a seta e a palavra */
    
    color: #000000 !important; /* Preto puro */
    font-size: 0.65rem; /* Letra bem miudinha (aprox 10px) */
    font-weight: 600; /* Menos "gorda" */
    letter-spacing: 0.2em; /* Mantém o espaçamento chique das letras */
    
    /* Removemos qualquer fundo ou padding que deixava ele gigante */
    background: transparent !important; 
    padding: 0;
    backdrop-filter: none;

    animation: bounceUpDown 2s infinite;
    pointer-events: none; 
    transition: opacity 0.4s ease;
}

.scroll-down-hint.escondido {
    opacity: 0 !important;
    pointer-events: none;
}

/* Diminuindo a setinha */
.scroll-down-hint svg {
    stroke: #000000 !important;
    width: 16px !important; /* Ícone menorzinho */
    height: 16px !important;
}

/* O "pulo" da animação também fica mais curtinho e sutil */
@keyframes bounceUpDown { 
    0%, 100% { transform: translate(-50%, 0); } 
    50% { transform: translate(-50%, 6px); } 
}
/* ==========================================
   BOTÕES E PAINEL LATERAL
   ========================================== */
/* Botão Voltar (Canto Esquerdo) */
.btn-voltar-projetos {
    position: fixed; top: 2rem; left: 2rem; z-index: 10;
    display: flex; align-items: center; gap: 0.5rem;
    background: transparent; border: none;
    color: #111; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.15em;
    cursor: pointer; transition: transform 0.3s ease;
}
.btn-voltar-projetos:hover { transform: translateX(-5px); color: var(--accent-color); }

/* ==========================================
   Aba Detalhes (Animação Sincronizada com o Painel)
   ========================================== */
.btn-aba-detalhes {
    position: fixed; 
    top: 50%; 
    right: 0; /* Começa colado na direita */
    z-index: 9;
    writing-mode: vertical-rl; 
    transform: translateY(-50%) rotate(180deg); 
    
    padding: 1.2rem 0.5rem; 
    font-size: 0.65rem; 
    font-weight: 500;
    letter-spacing: 0.25em; 
    
    background: #111; 
    color: #fff; 
    border: none;
    cursor: pointer; 
    
    /* MÁGICA 1: Usamos o 'right' com a mesma curva de velocidade do painel */
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease;
}

/* MÁGICA 2: O efeito de "espiar" no hover (somente quando estiver fechado) */
.lightbox:not(.info-active) .btn-aba-detalhes:hover { 
    background: var(--accent-color); 
   
}

/* MÁGICA 3: Quando o painel (que tem 450px) abre, o botão anda junto 450px */
.lightbox.info-active .btn-aba-detalhes {
    right: 450px; 
    background: var(--accent-color); /* Fica laranjinha da DIX quando aberto */
}

/* MÁGICA 4: Responsividade pro celular */
@media (max-width: 768px) {
    .lightbox.info-active .btn-aba-detalhes {
        /* No mobile o painel tem 100% da tela, então o botão fica na ponta esquerda */
        right: calc(100% - 30px); 
    }
}



/* Painel Ficha Técnica */
.lightbox-info-panel {
    position: fixed; top: 0; right: 0; width: 450px; max-width: 100vw; height: 100%;
    background-color: #FAFAFA; color: #333333; padding: 6rem 3rem 3rem 3rem;
    z-index: 8; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}

.lightbox.info-active .lightbox-info-panel { transform: translateX(0); }

/* Formatação dos Textos do Painel (Mantive as cores claras da DIX) */
.lightbox-info-panel h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; color: #111; }
.info-divider { width: 40px; height: 2px; background-color: var(--accent-color); margin-bottom: 2rem; }
.lightbox-info-panel p { font-size: 0.95rem; line-height: 1.7; color: #555; font-weight: 300; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { font-size: 0.85rem; margin-bottom: 1rem; color: #444; display: flex; flex-direction: column; }
.info-list li strong { color: var(--accent-color); font-weight: 600; letter-spacing: 0.05em; margin-bottom: 0.2rem; font-size: 0.75rem; }

/* Responsividade Básica */
@media (max-width: 768px) {
    .btn-voltar-projetos { top: 1rem; left: 1rem; }
    .lightbox-info-panel { width: 100%; padding: 5rem 2rem 2rem 2rem; }
}

/* ==========================================
   BOTÃO PRÓXIMO PROJETO (FIM DA GALERIA)
   ========================================== */
.btn-proximo-projeto {
    position: fixed; 
    bottom: 3vh; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; 
    
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    
    background: transparent; 
    color: #000000 !important;
    border: none;
    
    font-size: 0.75rem; 
    font-weight: 700; 
    letter-spacing: 0.2em; 
    cursor: pointer; 
    
    /* Transição suave para aparecer/sumir e um micro-movimento no hover */
    transition: opacity 0.4s ease, transform 0.3s ease;
    opacity: 1;
}

.btn-proximo-projeto svg {
  stroke: #000000 !important;
    transition: transform 0.3s ease;
}

/* Efeito super chique no hover: a setinha vai um pouco pra frente */
.btn-proximo-projeto:hover svg {
    transform: translateX(5px);
}

.btn-proximo-projeto.escondido {
    opacity: 0 !important;
    pointer-events: none; /* Impede clique enquanto invisível */
}

/* #endregion */