/*
Theme Name: Majestic
Theme URI: https://majestic.design/
Author: Antigravity AI
Author URI: https://majestic.design/
Description: Tema WordPress Majestic inspirado no estilo do site Jocasori.pt, limpo, minimalista, com CPT de produtos, Tailwind CSS 3 CDN e focado em SEO.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: majestic
*/

/* Estilos de Fallback e Customizações Globais */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    background-color: #f9fafb;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Ajustes finos adicionais (sem Tailwind) */
.gallery-grid img {
    transition: transform 0.3s ease-in-out;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Grid Masonry */
.masonry-grid {
    column-count: 1;
    column-gap: 2rem;
}

@media (min-width: 640px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 4;
    }
}

.masonry-item {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
}

/* Transição de easing refinada para efeito de hover */
.transition-hover-custom {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

/* Ocultar barra de rolagem mantendo a funcionalidade de scroll */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* ==========================================================================
   ESTILOS PADRONIZADOS DE BOTÕES (Tamanho Médio por Padrão)
   ========================================================================== */

/* Botão Base */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem; /* Equivalente a px-6 py-3 (médio) */
    border-radius: 9999px; /* rounded-full */
    font-size: 0.75rem; /* text-xs */
    font-family: 'Inter', sans-serif; /* font-sans */
    font-weight: 700; /* font-bold */
    letter-spacing: 0.1em; /* tracking-widest */
    text-transform: uppercase; /* uppercase */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

/* Botão Primário (Marca / Bronze) */
.btn-primary {
    background-color: #8c6239; /* bg-brand */
    color: #ffffff !important;
    border-color: #8c6239;
}
.btn-primary:hover {
    background-color: #5c3e21; /* hover:bg-brand-dark */
    border-color: #5c3e21;
}

/* Botão Secundário (Borda Neutral / Texto Escuro) */
.btn-secondary {
    border-color: #d1d5db; /* border-neutral-300 */
    color: #374151 !important;
    background-color: transparent;
}
.btn-secondary:hover {
    border-color: #111827; /* hover:border-neutral-900 */
    color: #111827 !important;
}

/* Botão Outline Escuro (Fundo Escuro no Hover) */
.btn-outline-dark {
    border-color: #d1d5db; /* border-neutral-300 */
    color: #374151 !important;
    background-color: transparent;
}
.btn-outline-dark:hover {
    background-color: #1f2937; /* hover:bg-neutral-800 */
    color: #ffffff !important;
    border-color: #1f2937;
}

/* Botão Escuro (Sólido Neutral 900) */
.btn-dark {
    background-color: #171717; /* bg-neutral-900 */
    color: #ffffff !important;
    border-color: #171717;
}
.btn-dark:hover {
    background-color: #8c6239; /* hover:bg-brand */
    border-color: #8c6239;
}

/* Botão Vidro/Translúcido (Para o Hero) */
.btn-glass {
    background-color: rgba(255, 255, 255, 0.1); /* bg-white/10 */
    border-color: rgba(255, 255, 255, 0.2); /* border-white/20 */
    color: #ffffff !important;
    backdrop-filter: blur(4px); /* backdrop-blur-sm */
}
.btn-glass:hover {
    background-color: rgba(255, 255, 255, 0.2); /* hover:bg-white/20 */
}

/* Botões de Filtro Horizontal (Compacto para Rolagem) */
.btn-filter {
    display: inline-block;
    padding: 0.625rem 1.25rem; /* px-5 py-2.5 */
    font-size: 0.75rem; /* text-xs */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em; /* tracking-wider */
    text-transform: uppercase;
    border-radius: 9999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}
.btn-filter-active {
    background-color: #8c6239; /* bg-brand */
    color: #ffffff !important;
    border-color: #8c6239;
}
.btn-filter-inactive {
    background-color: #ffffff;
    color: #4b5563 !important; /* text-neutral-600 */
    border-color: #e5e7eb; /* border-neutral-200 */
}
.btn-filter-inactive:hover {
    background-color: #f9fafb; /* hover:bg-neutral-50 */
    color: #111827 !important; /* hover:text-neutral-900 */
}

/* ==========================================================================
   FORMULÁRIO DE CONTACTO (ESTILO PREMIUM MANUAL)
   ========================================================================== */
.contact-form-container {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b5563; /* Cor cinza neutro */
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #1f2937;
    transition: all 0.2s ease-in-out;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: #8c6239; /* Cor de destaque (brand) */
    box-shadow: 0 0 0 3px rgba(140, 98, 57, 0.15);
}

.contact-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-submit {
    align-self: flex-start;
}

/* ==========================================================================
   LIGHTBOX DE PRODUTOS
   ========================================================================== */
#product-lightbox {
    cursor: zoom-out;
}

#product-lightbox img {
    transition: opacity 0.3s ease;
}

#product-lightbox button:focus-visible {
    outline: 2px solid #8c6239;
    outline-offset: 4px;
}

@media (max-width: 640px) {
    #lightbox-prev svg,
    #lightbox-next svg {
        width: 28px;
        height: 28px;
    }
}


