/* ========================
   VARIÁVEIS & RESET
   ======================== */
:root {
    --bg-color: #faf9f6; /* Off-white Papel */
    --text-color: #1a1a1a; /* Preto Carvão */
    --accent-color: #cda274; /* Dourado/Terra */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition-smooth: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
   HEADER & NAV
   ======================== */
#header {
    position: fixed; width: 100%; top: 0; left: 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(5px);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo-signature img {
    height: 45px; width: auto; filter: brightness(0.1);
    transition: var(--transition-smooth);
}

.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-list { display: flex; gap: 30px; }

.nav-link {
    font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 1px; position: relative; padding: 5px 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px; background: var(--text-color);
    transition: var(--transition-smooth);
}
.nav-link:hover::after, .nav-link.active-link::after { width: 100%; }

.lang-switcher {
    display: flex; gap: 12px; align-items: center; margin-left: 20px;
}
.lang-btn {
    background: none; border: none; padding: 0;
    opacity: 0.5; transition: var(--transition-smooth); cursor: pointer;
}
.lang-btn img { width: 24px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.lang-btn:hover, .lang-btn.active { opacity: 1; transform: scale(1.15); }

.nav-toggle, .nav-close { display: none; font-size: 1.5rem; color: var(--text-color); }


/* ========================
   HERO SPLIT (LAYOUT REVISTA)
   ======================== */
.hero-split {
    display: flex;
    width: 100%;
    height: 100vh;
    background-color: #fcfbf9;
    overflow: hidden;
    position: relative;
    padding-top: 80px; /* Espaço para o menu fixo */
}

/* LADO ESQUERDO (TEXTO) */
.hero-text-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    z-index: 2; /* Garante que o texto fique acima */
}

.hero-text-wrapper {
    max-width: 450px;
    text-align: left;
}

.hero-split .hero-subtitle {
    display: block; font-size: 0.85rem; letter-spacing: 3px;
    text-transform: uppercase; color: #c5a47e; margin-bottom: 20px; font-weight: 700;
}

.hero-split .hero-title {
    font-family: 'Playfair Display', serif; font-size: 3.5rem;
    line-height: 1.1; color: #1a1a1a; margin-bottom: 40px;
}

/* Botão Minimalista Escuro */
.btn-minimal-dark {
    display: inline-block; padding: 12px 30px; border: 1px solid #1a1a1a;
    color: #1a1a1a; text-transform: uppercase; font-size: 0.8rem;
    letter-spacing: 1px; text-decoration: none; transition: all 0.3s ease;
}
.btn-minimal-dark:hover { background: #1a1a1a; color: white; }

/* LADO DIREITO (IMAGEM) */
.hero-image-side {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* IMAGENS DO SLIDER */
.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s linear;
    transform: scale(1.05);
    z-index: 1;
}
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 2; }


/* ========================
   BOTÕES DE NAVEGAÇÃO
   ======================== */
.slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4); 
    color: rgba(255, 255, 255, 0.9);
    width: 45px; height: 45px;
    font-size: 1rem; border-radius: 50%;
    cursor: pointer; 
    z-index: 20; /* Z-INDEX ALTO PARA GARANTIR O CLIQUE */
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: #fff; color: #1a1a1a; border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 25px; }
.next-btn { right: 25px; }


/* ========================
   BOTÕES GERAIS
   ======================== */
.btn-minimal {
    display: inline-block; padding: 15px 40px;
    border: 1px solid var(--text-color);
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.8rem; background: transparent; color: var(--text-color);
    transition: var(--transition-smooth); cursor: pointer;
}
.btn-minimal:hover { background: var(--text-color); color: var(--bg-color); }


/* ========================
   GALERIA E SEÇÕES
   ======================== */
.section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 10px; }

/* Grid de Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px; width: 100%;
}

.gallery-item {
    display: flex; flex-direction: column; animation: fadeIn 0.5s ease-in-out;
}

.gallery-img-box {
    width: 100%; height: 400px; overflow: hidden;
    position: relative; background: #f0f0f0;
}
.gallery-img-box img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* Overlay Actions */
.overlay-actions {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay-actions { opacity: 1; }

.btn-checkout, .btn-whatsapp {
    padding: 12px 25px; text-transform: uppercase; font-size: 0.8rem;
    font-weight: bold; text-decoration: none; border: none; cursor: pointer;
}
.btn-checkout { background: #fff; color: #000; }
.btn-checkout:hover { background: var(--accent-color); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #128C7E; }

/* Info Obra */
.gallery-info { padding-top: 20px; }
.gallery-info h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 5px; }
.cat-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #999; display: block; }
.price-tag { font-weight: 700; margin-top: 5px; color: var(--accent-color); text-transform: uppercase; }
.high-ticket { color: #1a1a1a; opacity: 0.7; }


/* ========================
   FILTROS (BOTOES)
   ======================== */
.filters {
    display: flex; justify-content: center; gap: 15px;
    flex-wrap: wrap; margin-bottom: 50px;
}
.filter-btn {
    background: transparent; border: 1px solid #ccc; padding: 10px 25px;
    border-radius: 50px; cursor: pointer; font-family: var(--font-body);
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #666;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: #1a1a1a; color: white; border-color: #1a1a1a;
}


/* ========================
   SOBRE & CONTATO
   ======================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.tag {
    font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
    border-bottom: 1px solid var(--text-color); padding-bottom: 5px;
    margin-bottom: 25px; display: inline-block;
}
.about-content h2 { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 30px; }
.signature-small { width: 140px; margin-top: 30px; opacity: 0.6; }

.newsletter-form { margin-top: 40px; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.newsletter-form input {
    padding: 15px; border: none; border-bottom: 1px solid #ccc; background: transparent;
    width: 300px; outline: none; font-family: var(--font-body);
}
.footer { padding: 50px 0; border-top: 1px solid #e5e5e5; margin-top: 50px; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.footer-socials { display: flex; gap: 20px; font-size: 1.3rem; }


/* ========================
   ADMIN (RESPONSIVO)
   ======================== */
.page-padding { padding-top: 140px; padding-bottom: 80px; min-height: 100vh; }

.admin-layout-grid {
    display: grid; grid-template-columns: 3fr 1fr; gap: 40px; align-items: start; margin-bottom: 60px;
}
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid #ddd;
}
.form-admin-box {
    background: white; padding: 40px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.9rem; }
.form-group input, .form-group select {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px;
}
.admin-table { width: 100%; border-collapse: collapse; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.admin-table th, .admin-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.thumb-admin { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; }
.btn-action { padding: 5px 10px; font-size: 0.8rem; text-transform: uppercase; border-radius: 4px; font-weight: bold; margin-right: 5px; }
.btn-edit { background: #e0e0e0; color: #333; }
.btn-delete { background: #ffdede; color: #d00; }


/* ========================
   ANIMATIONS (REVEAL)
   ======================== */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1); filter: blur(8px); }
.reveal-up { transform: translateY(80px); }
.reveal-left { transform: translateX(60px); }
.reveal-right { transform: translateX(-60px); }
.active-reveal { opacity: 1; transform: translate(0, 0); filter: blur(0); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }


/* ========================
   RESPONSIVIDADE GERAL (MOBILE)
   ======================== */
@media (max-width: 992px) {
    /* HERO: TEXTO EM CIMA, IMAGEM EMBAIXO */
    .hero-split { flex-direction: column; height: auto; min-height: 100vh; }
    
    .hero-text-side {
        width: 100%; padding: 40px 20px; text-align: center; order: 1;
    }
    .hero-text-wrapper { text-align: center; margin: 0 auto; }
    .hero-split .hero-title { font-size: 2.5rem; }

    .hero-image-side {
        width: 100%; height: 50vh; order: 2;
    }
    
    /* MENU MOBILE */
    .nav-toggle { display: block; z-index: 201; cursor: pointer; }
    .nav-menu {
        position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
        background: rgba(250, 249, 246, 0.98); backdrop-filter: blur(10px);
        flex-direction: column; justify-content: center; 
        transform: translateX(100%); transition: transform 0.4s ease; z-index: 200;
    }
    .show-menu { transform: translateX(0); }
    .nav-close { display: block; position: absolute; top: 30px; right: 30px; }
    .nav-list { flex-direction: column; gap: 30px; text-align: center; }
    .nav-link { font-size: 1.5rem; }
    
    /* GERAL */
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-img { order: -1; }
    .footer-flex { flex-direction: column; gap: 30px; text-align: center; }
    
    /* ADMIN */
    .admin-layout-grid { grid-template-columns: 1fr; }
    .admin-header { flex-direction: column; text-align: center; }
    .table-responsive { overflow-x: auto; }
    .admin-table { min-width: 600px; }
}


/* ========================
   CARROSSEL INFINITO (MARQUEE)
   ======================== */
.infinite-section {
    padding: 80px 0;
    background: #fff; /* Fundo branco para destacar do resto */
    border-bottom: 1px solid #eee;
    overflow: hidden; /* Esconde o que sai da tela */
}

.section-header-left {
    margin-bottom: 30px;
    text-align: left; /* Título alinhado à esquerda */
}

.infinite-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.infinite-subtitle {
    color: #888;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* O Container que esconde a rolagem */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 20px;
    /* Cria um fade nas bordas para ficar elegante */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* A Faixa que se move */
.marquee-track {
    display: flex;
    gap: 30px; /* Espaço entre as obras */
    width: max-content; /* Largura baseada no conteúdo */
    
    /* A MÁGICA DA ANIMAÇÃO */
    animation: scrollInfinite 40s linear infinite;
}

/* Pause ao passar o mouse (para ver detalhes) */
.marquee-track:hover {
    animation-play-state: paused;
}

/* O Card Individual */
.marquee-card {
    width: 300px; /* Largura fixa da imagem */
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.marquee-card:hover {
    transform: scale(1.02);
}

.marquee-card img {
    width: 100%;
    height: 350px; /* Altura padrão */
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.marquee-info {
    margin-top: 10px;
    text-align: center;
}

.marquee-info h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================
   KEYFRAMES (A ANIMAÇÃO)
   ======================== */
@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Move 50% para a esquerda (já que duplicamos o conteúdo, o loop fica invisível) */
        transform: translateX(-50%);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .marquee-card { width: 220px; }
    .marquee-card img { height: 280px; }
    
    /* No celular roda um pouco mais rápido para não parecer parado */
    .marquee-track { animation-duration: 30s; }
}

/* ========================
   BOTÃO WHATSAPP (FLUTUANTE & PREMIUM)
   ======================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    /* Começa com a cor da identidade (Preto ou Dourado) */
    background-color: #1a1a1a; 
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 90; /* Fica acima do conteúdo, mas abaixo do Menu Mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s ease;
    
    /* Animação sutil de pulso */
    animation: pulse-gold 3s infinite;
}

/* Efeito ao passar o mouse: Vira verde WhatsApp */
.whatsapp-float:hover {
    background-color: #25d366;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* O Balãozinho de Texto (Tooltip) */
.whatsapp-tooltip {
    position: absolute;
    right: 70px; /* Fica à esquerda do botão */
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background-color: #fff;
    color: #1a1a1a;
    padding: 8px 15px;
    border-radius: 4px;
    font-family: 'Playfair Display', serif; /* Fonte elegante do site */
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0; /* Invisível no começo */
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-weight: bold;
}

/* Setinha do balão */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid #fff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Mostra o balão quando passa o mouse */
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Animação de Pulso Dourada (Para combinar com o site) */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(205, 162, 116, 0.7); /* Cor Dourada/Terra */
    }
    70% {
        box-shadow: 0 0 0 15px rgba(205, 162, 116, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(205, 162, 116, 0);
    }
}

/* Ajuste para Celular */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    
    /* No celular, escondemos o balão para não ocupar espaço */
    .whatsapp-tooltip { display: none; }
}

/* ========================
   SEÇÃO DIFERENCIAIS (CORRIGIDO - IDENTIDADE VISUAL)
   ======================== */
.features-section {
    background-color: #fff;
    padding: 120px 0; /* Mais respiro vertical */
}

/* Título Principal da Seção */
.features-section .section-header h2 {
    font-family: var(--font-display); /* Playfair Display */
    font-size: 2.5rem;
    font-weight: 400; /* Mais leve para ficar elegante */
    color: var(--text-color);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
}

.feature-item {
    padding: 0 10px;
}

/* Títulos dos Itens (Ex: Exclusividade) */
.feature-item h3 {
    font-family: var(--font-body); /* Lato (Sans-serif) */
    font-size: 1.2rem;
    font-weight: 700; /* Negrito */
    color: #000;
    margin-bottom: 25px;
    /* Removemos o uppercase para ficar igual à foto (Title Case) */
    text-transform: none; 
}

/* Texto Descritivo (Ex: Cada obra é única...) */
.feature-item p {
    font-family: var(--font-display); /* Playfair Display (Serif) */
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555; /* Cinza suave */
    font-weight: 400;
    font-style: italic; /* Opcional: O itálico no Playfair fica muito chique */
    max-width: 90%; /* Evita linhas muito longas */
    margin: 0 auto;
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .features-section { padding: 80px 0; }
    
    .features-section .section-header h2 {
        font-size: 2rem;
    }
}