/* ============================================
   Buffer Capital - Espaço para Eventos
   Design: Dourado, Branco e Preto
   ============================================ */

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

:root {
    --cor-dourado: #D4AF37;
    --cor-dourado-claro: #E8C547;
    --cor-dourado-escuro: #B8860B;
    --cor-preto: #1a1a1a;
    --cor-branco: #ffffff;
    --cor-cinza-claro: #f5f5f5;
    --cor-cinza-escuro: #333333;
    --cor-texto: #2c2c2c;
    --cor-borda: #e0e0e0;
    --transicao: all 0.3s ease;
    --sombra: 0 2px 8px rgba(0, 0, 0, 0.1);
    --sombra-forte: 0 4px 16px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--cor-texto);
    background-color: var(--cor-branco);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============ HEADER E NAVEGAÇÃO ============ */

header {
    background-color: var(--cor-preto);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--sombra-forte);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--cor-branco);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transicao);
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--cor-dourado);
}

.btn-contato {
    background-color: var(--cor-dourado);
    color: var(--cor-preto);
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao);
    border: none;
}

.btn-contato:hover {
    background-color: var(--cor-dourado-claro);
    transform: translateY(-2px);
}

/* Menu mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cor-dourado);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============ HERO SECTION ============ */

.hero {
    background: linear-gradient(135deg, var(--cor-preto) 0%, #2a2a2a 100%);
    color: var(--cor-branco);
    padding: 100px 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="dots" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23D4AF37" opacity="0.1"/></pattern></defs><rect width="1200" height="600" fill="none"/><rect width="1200" height="600" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero h1 .destaque {
    color: var(--cor-dourado);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primario {
    background-color: var(--cor-dourado);
    color: var(--cor-preto);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao);
}

.btn-primario:hover {
    background-color: var(--cor-dourado-claro);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-secundario {
    background-color: transparent;
    color: var(--cor-dourado);
    padding: 1rem 2.5rem;
    border: 2px solid var(--cor-dourado);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao);
}

.btn-secundario:hover {
    background-color: var(--cor-dourado);
    color: var(--cor-preto);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============ SEÇÕES GERAIS ============ */

section {
    padding: 80px 1rem;
}

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

.section-titulo {
    text-align: center;
    margin-bottom: 3rem;
}

.section-titulo h2 {
    font-size: 2.5rem;
    color: var(--cor-preto);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-titulo h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--cor-dourado);
}

.section-titulo p {
    font-size: 1.1rem;
    color: var(--cor-cinza-escuro);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* ============ SOBRE NÓS ============ */

.sobre {
    background-color: var(--cor-cinza-claro);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sobre-texto h3 {
    font-size: 1.8rem;
    color: var(--cor-preto);
    margin-bottom: 1rem;
}

.sobre-texto p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--cor-cinza-escuro);
}

.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.valor-item {
    background-color: var(--cor-branco);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--cor-dourado);
}

.valor-item h4 {
    color: var(--cor-dourado);
    margin-bottom: 0.5rem;
}

.valor-item p {
    font-size: 0.95rem;
    color: var(--cor-cinza-escuro);
}

/* ============ GALERIA ============ */

.galeria {
    background-color: var(--cor-branco);
}

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

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--sombra);
    transition: var(--transicao);
    cursor: pointer;
    aspect-ratio: 1;
}

.galeria-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-forte);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transicao);
}

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

.galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transicao);
}

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

.galeria-overlay-content {
    text-align: center;
    color: var(--cor-branco);
}

.galeria-overlay-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ============ SERVIÇOS ============ */

.servicos {
    background-color: var(--cor-cinza-claro);
}

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

.servico-card {
    background-color: var(--cor-branco);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    transition: var(--transicao);
    box-shadow: var(--sombra);
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-forte);
    border-top: 3px solid var(--cor-dourado);
}

.servico-card h3 {
    font-size: 1.5rem;
    color: var(--cor-preto);
    margin-bottom: 1rem;
}

.servico-card p {
    color: var(--cor-cinza-escuro);
    line-height: 1.6;
}

/* ============ FORMULÁRIO MODAL ============ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.ativo {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--cor-branco);
    padding: 2rem;
    border-radius: 4px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--cor-dourado);
    padding-bottom: 1rem;
}

.modal-header h2 {
    color: var(--cor-preto);
    font-size: 1.8rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--cor-cinza-escuro);
    cursor: pointer;
    transition: var(--transicao);
}

.close-btn:hover {
    color: var(--cor-dourado);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--cor-preto);
    font-weight: 600;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--cor-borda);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transicao);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cor-dourado);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group,
.checkbox-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-item input,
.checkbox-item input {
    width: auto;
    margin: 0;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-enviar {
    flex: 1;
    background-color: var(--cor-dourado);
    color: var(--cor-preto);
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao);
}

.btn-enviar:hover {
    background-color: var(--cor-dourado-claro);
    transform: translateY(-2px);
}

.btn-cancelar {
    flex: 1;
    background-color: var(--cor-cinza-claro);
    color: var(--cor-preto);
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicao);
}

.btn-cancelar:hover {
    background-color: var(--cor-borda);
}

/* ============ WHATSAPP FLUTUANTE ============ */

.whatsapp-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transicao);
    z-index: 999;
    text-decoration: none;
}

.whatsapp-flutuante:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-flutuante svg {
    width: 35px;
    height: 35px;
    fill: var(--cor-branco);
}

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

footer {
    background-color: var(--cor-preto);
    color: var(--cor-branco);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--cor-dourado);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #cccccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: block;
    transition: var(--transicao);
}

.footer-section a:hover {
    color: var(--cor-dourado);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
    color: #999;
}

/* ============ SKELETON LOADING ============ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-item {
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-image {
    aspect-ratio: 1;
    margin-bottom: 1rem;
}

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

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    nav ul {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 60px 1rem;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primario,
    .btn-secundario {
        width: 100%;
    }
    
    .section-titulo h2 {
        font-size: 1.8rem;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
    }
    
    .valores-grid {
        grid-template-columns: 1fr;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .whatsapp-flutuante {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-flutuante svg {
        width: 28px;
        height: 28px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.5rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    section {
        padding: 40px 1rem;
    }
    
    .section-titulo h2 {
        font-size: 1.5rem;
    }
    
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    .servicos-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ UTILITÁRIOS ============ */

.text-center {
    text-align: center;
}

.text-dourado {
    color: var(--cor-dourado);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
    display: none;
}

.visivel {
    display: block;
}
