/* =========================================
   1. VARIÁVEIS E RESET
   ========================================= */
:root {
    --primary: #0a0a0a;
    --secondary: #ffffff;
    --accent: #c9a96e;       /* Dourado Principal */
    --accent-dark: #a88c4a;  /* Dourado Escuro (Hover) */
    --accent-light: #f4efe6; /* Fundo Dourado Claro */
    --gray: #f8f8f8;
    --dark-gray: #2d2d2d;
    --medium-gray: #6b6b6b;
    --radius: 8px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--dark-gray); 
    line-height: 1.7; 
    overflow-x: hidden;
    background-color: var(--secondary);
    font-weight: 400;
}

h1, h2, h3, h4, h5 { 
    font-family: 'Playfair Display', serif; 
    font-weight: 700; 
    color: var(--primary);
    line-height: 1.2;
}

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

/* =========================================
   2. COMPONENTES GERAIS (Botões, Layout)
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

/* Botões */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 32px; background: var(--accent); color: var(--secondary);
    border-radius: var(--radius); font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; transition: var(--transition); border: none; cursor: pointer;
    font-size: 14px; position: relative; overflow: hidden; z-index: 1; white-space: nowrap;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--accent-dark); transition: var(--transition); z-index: -1;
}
.btn:hover::before { width: 100%; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--secondary); }

/* Títulos de Seção */
.section-title { text-align: center; margin-bottom: 80px; }
.section-title h2 { font-size: 3rem; position: relative; display: inline-block; padding-bottom: 20px; margin-bottom: 20px; }
.section-title h2::after { content: ''; position: absolute; width: 80px; height: 3px; background: var(--accent); bottom: 0; left: 50%; transform: translateX(-50%); }
.section-title p { max-width: 700px; margin: 0 auto; color: var(--medium-gray); font-size: 1.1rem; }

/* =========================================
   3. HEADER E NAVEGAÇÃO
   ========================================= */
header {
    position: fixed; width: 100%; top: 0; left: 0; z-index: 1000;
    padding: 15px 0; background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); transition: var(--transition);
    backdrop-filter: blur(10px);
}
header.scrolled { padding: 10px 0; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); }

.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo img { height: 40px; width: auto; max-width: 200px; object-fit: contain; transition: var(--transition); }

nav ul { display: flex; gap: 15px; align-items: center; }
nav ul li a { 
    font-weight: 500; font-size: 13px; position: relative; color: var(--dark-gray);
    text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
nav ul li a:not(.btn-client)::after { 
    content: ''; position: absolute; width: 0; height: 2px; background: var(--accent);
    bottom: -5px; left: 0; transition: var(--transition); 
}
nav ul li a:not(.btn-client):hover::after, nav ul li a.active:not(.btn-client)::after { width: 100%; }
nav ul li a:hover, nav ul li a.active { color: var(--accent); }

.nav-cta { margin-left: 10px; }

/* Botão Área do Cliente */
.btn-client {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 6px 14px; border: 1px solid #e0e0e0; border-radius: 30px;
    font-size: 11px !important; font-weight: 600; transition: var(--transition);
    color: var(--medium-gray) !important; white-space: nowrap; text-transform: uppercase; line-height: 1;
}
.btn-client i { font-size: 10px; color: var(--accent); }
.btn-client:hover { border-color: var(--accent); color: var(--accent) !important; background: transparent; }

/* Menu Mobile (Hamburguer) */
.mobile-menu-btn { 
    display: none; flex-direction: column; justify-content: space-between;
    width: 30px; height: 20px; background: transparent; border: none; cursor: pointer; z-index: 1001;
}
.mobile-menu-btn span { display: block; width: 100%; height: 2px; background: var(--primary); transition: var(--transition); border-radius: 2px; }
.mobile-menu-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================================
   4. HERO (SLIDESHOW)
   ========================================= */
.hero { 
    height: 100vh; min-height: 700px; position: relative; 
    display: flex; align-items: center; color: var(--secondary); 
    overflow: hidden; margin-top: 80px;
}
.hero-background { position: absolute; inset: 0; z-index: 0; background-color: #000; }
.hero-background::before {
    content: ''; position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; z-index: 0;
    transition: opacity 1.5s ease-in-out, transform 6s linear; transform: scale(1);
}
.hero-slide.active { opacity: 1; z-index: 1; transform: scale(1.05); }

.hero-content { position: relative; z-index: 3; max-width: 800px; padding: 0 20px; }
.hero h1 { 
    font-size: 4.5rem; margin-bottom: 20px; color: var(--secondary); 
    text-shadow: 0 5px 15px rgba(0,0,0,0.3); font-weight: 900;
    opacity: 0; animation: fadeInUp 1s ease 0.3s forwards;
}
.hero p { 
    font-size: 1.3rem; margin-bottom: 40px; max-width: 600px; opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards; font-weight: 300;
}
.hero-btns { display: flex; gap: 20px; opacity: 0; animation: fadeInUp 1s ease 0.7s forwards; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; opacity: 0; animation: fadeInUp 1s ease 0.9s forwards; }
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 2.5rem; font-weight: 700; color: var(--accent); margin-bottom: 5px; font-family: 'Playfair Display', serif; }
.hero-stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }

/* =========================================
   5. SERVIÇOS
   ========================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.service-card { 
    background: var(--secondary); border-radius: var(--radius); overflow: hidden; 
    box-shadow: var(--shadow); transition: var(--transition); text-align: center; 
    padding: 40px 30px; position: relative; border-top: 4px solid var(--accent);
}
.service-card:hover { transform: translateY(-15px); box-shadow: var(--shadow-hover); }
.service-icon { 
    font-size: 3.5rem; color: var(--accent); margin-bottom: 25px; 
    height: 80px; width: 80px; display: flex; align-items: center; justify-content: center;
    background: var(--accent-light); border-radius: 50%; margin: 0 auto 25px;
}
.service-card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.service-card p { margin-bottom: 20px; color: var(--medium-gray); font-size: 0.95rem; }
.service-link { color: var(--accent); font-weight: 600; font-size: 14px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.service-link:hover i { transform: translateX(5px); }

/* =========================================
   6. PORTFÓLIO (GRID + MODAL)
   ========================================= */
.portfolio { background: var(--gray); }
.portfolio-filter { display: flex; justify-content: center; margin-bottom: 50px; flex-wrap: wrap; gap: 10px; }
.filter-btn { 
    padding: 10px 25px; background: transparent; border: 2px solid var(--accent); 
    color: var(--accent); border-radius: 30px; cursor: pointer; transition: var(--transition); 
    font-weight: 500; font-size: 14px; text-transform: uppercase;
}
.filter-btn.active, .filter-btn:hover { background: var(--accent); color: var(--secondary); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.portfolio-item { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/5; cursor: pointer; }
.portfolio-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.portfolio-item:hover .portfolio-img { transform: scale(1.1); }

.portfolio-overlay { 
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%); 
    display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; opacity: 0; transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: var(--secondary); transform: translateY(20px); transition: transform 0.4s ease; font-size: 1.3rem; margin-bottom: 5px; }
.portfolio-overlay p { color: var(--accent-light); transform: translateY(20px); transition: transform 0.4s ease 0.1s; font-size: 0.9rem; text-transform: uppercase; }
.portfolio-item:hover .portfolio-overlay h3, .portfolio-item:hover .portfolio-overlay p { transform: translateY(0); }

/* Modal Styles */
.portfolio-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; display: none; justify-content: center; align-items: center; padding: 20px; }
.portfolio-modal.active { display: flex; }
.modal-content { background: #fff; max-width: 1000px; width: 95%; border-radius: var(--radius); overflow: hidden; position: relative; max-height: 90vh; display: flex; flex-direction: column; }
.modal-close { position: absolute; top: 10px; right: 15px; color: var(--primary); z-index: 10; font-size: 30px; cursor: pointer; background: transparent; border: none; }
.modal-header { padding: 20px; background: #fff; border-bottom: 1px solid #eee; }
.modal-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 20px; background: #fff; max-height: 70vh; overflow-y: auto; }
.modal-gallery-item { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; cursor: pointer; transition: transform 0.2s; }
.modal-gallery-item:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
/* Ajuste para imagem única no modal (versão estática) */
#modalImg { width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* =========================================
   7. SOBRE
   ========================================= */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); position: relative; }
.about-image img { width: 100%; height: auto; display: block; transition: var(--transition); }
.about-image:hover img { transform: scale(1.05); }
.about-text h3 { font-size: 2.2rem; margin-bottom: 25px; }
.about-text p { margin-bottom: 20px; text-align: justify; line-height: 1.8; }
.about-text .highlight { color: var(--accent); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.stat-item { text-align: center; padding: 20px; background: var(--gray); border-radius: var(--radius); transition: var(--transition); }
.stat-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat-number { font-size: 2.8rem; font-weight: 700; color: var(--accent); font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.9rem; color: var(--dark-gray); text-transform: uppercase; font-weight: 600; }

/* =========================================
   8. DEPOIMENTOS
   ========================================= */
.testimonials { background: var(--gray); }
.testimonial-slider { max-width: 900px; margin: 0 auto; position: relative; }
.testimonial-item { background: var(--secondary); padding: 50px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; position: relative; display: none; }
.testimonial-item.active { display: block; animation: fadeInUp 0.5s ease; }
.testimonial-item::before { content: '"'; position: absolute; top: 20px; left: 30px; font-size: 6rem; color: var(--accent-light); font-family: 'Playfair Display', serif; opacity: 0.3; line-height: 1; }
.testimonial-text { font-style: italic; margin-bottom: 30px; font-size: 1.1rem; color: var(--dark-gray); }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 20px; }
.author-img { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent-light); }
.author-img img { width: 100%; height: 100%; object-fit: cover; }
.video-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: var(--radius); overflow: hidden; margin-top: 40px; box-shadow: var(--shadow); }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.slider-nav { display: flex; justify-content: center; gap: 15px; margin-top: 30px; }
.slider-dot { width: 12px; height: 12px; border-radius: 50%; background: #ddd; cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--accent); transform: scale(1.3); }

/* =========================================
   9. CONTATO
   ========================================= */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { margin-bottom: 15px; font-size: 1.8rem; color: var(--primary); }
.contact-intro { margin-bottom: 30px; color: var(--medium-gray); font-size: 1rem; line-height: 1.6; }
.contact-list { list-style: none; padding: 0; margin: 0 0 30px 0; }
.contact-list li { display: flex; align-items: center; margin-bottom: 25px; }
.contact-icon-circle { width: 50px; height: 50px; background: var(--accent-light); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 20px; flex-shrink: 0; }
.contact-text h4 { margin: 0 0 4px 0; font-size: 0.85rem; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.contact-text span, .contact-text p { font-size: 1.05rem; color: var(--dark-gray); margin: 0; }

.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 15px 20px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: var(--radius); font-family: 'Montserrat', sans-serif; font-size: 15px; background: var(--gray); border: 1px solid transparent; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: var(--secondary); box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1); }
.form-message { padding: 15px; border-radius: var(--radius); margin-bottom: 20px; display: none; }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* =========================================
   10. FOOTER
   ========================================= */
footer { background: var(--primary); color: var(--secondary); padding: 80px 0 30px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 60px; }
.footer-column h3 { color: var(--secondary); margin-bottom: 25px; position: relative; padding-bottom: 15px; font-size: 1.4rem; }
.footer-column h3::after { content: ''; position: absolute; width: 40px; height: 2px; background: var(--accent); bottom: 0; left: 0; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a:hover { opacity: 1; color: var(--accent); transform: translateX(5px); }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 1.1rem; }
.social-links a:hover { background: var(--accent); transform: translateY(-5px); }
.instagram-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.instagram-item { aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); }
.instagram-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.instagram-item:hover img { transform: scale(1.1); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; opacity: 0.7; }

/* =========================================
   11. PÁGINA DE ORÇAMENTO (Cards PDF/JPG)
   ========================================= */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1000px; margin: 40px auto 80px; padding: 0 20px; }
.quote-card { background: var(--secondary); padding: 40px 30px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); border: 1px solid transparent; transition: var(--transition); display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; position: relative; overflow: hidden; }
.quote-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(201, 169, 110, 0.2); }
.icon-box { width: 70px; height: 70px; background: var(--accent-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--accent); margin-bottom: 20px; transition: var(--transition); }
.quote-card:hover .icon-box { background: var(--accent); color: var(--secondary); }
.quote-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.quote-card p { font-size: 0.9rem; color: var(--medium-gray); margin-bottom: 25px; line-height: 1.5; }
.btn-download { margin-top: auto; color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px; }
.quote-card:hover .btn-download { color: var(--accent-dark); }
.quote-card.featured { border: 2px solid var(--accent); background: linear-gradient(to bottom right, #fff, #fffcf5); }
.quote-card.featured::before { content: 'MAIS ESCOLHIDO'; position: absolute; top: 15px; right: 15px; background: var(--accent); color: white; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px; }

/* =========================================
   12. EXTRAS E ANIMAÇÕES
   ========================================= */
.whatsapp-btn { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3); z-index: 999; transition: var(--transition); }
.whatsapp-btn:hover { transform: scale(1.1) rotate(5deg); }
.whatsapp-pulse { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: #25D366; opacity: 0.7; animation: pulse 2s infinite; }
.back-to-top { position: fixed; bottom: 100px; right: 30px; width: 50px; height: 50px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: var(--shadow); z-index: 998; opacity: 0; visibility: hidden; transition: var(--transition); }
.back-to-top.active { opacity: 1; visibility: visible; }
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--secondary); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease; }
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-spinner { width: 60px; height: 60px; border: 4px solid var(--accent-light); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.7; } 70% { transform: scale(1.2); opacity: 0; } 100% { transform: scale(0.8); opacity: 0; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   13. RESPONSIVO
   ========================================= */
@media (max-width: 1100px) {
    .hero h1 { font-size: 3.5rem; }
    .section-title h2 { font-size: 2.5rem; }
    nav ul { gap: 10px; }
}

@media (max-width: 992px) {
    .about-content, .contact-container { grid-template-columns: 1fr; }
    .about-image { order: -1; max-width: 500px; margin: 0 auto; }
    .hero h1 { font-size: 3rem; }
    .hero-btns { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    nav { position: fixed; top: 0; right: -100%; width: 100%; max-width: 350px; height: 100vh; background: var(--secondary); box-shadow: -5px 0 25px rgba(0,0,0,0.1); z-index: 1000; transition: var(--transition); padding: 100px 30px 30px; display: flex; flex-direction: column; }
    nav.active { right: 0; }
    nav ul { flex-direction: column; align-items: flex-start; gap: 20px; }
    .nav-cta { margin: 20px 0 0; }
    .btn-client { width: 100%; justify-content: center; margin-top: 10px; padding: 12px; border-color: var(--accent); color: var(--accent) !important; font-size: 13px !important; }
    .hero { margin-top: 70px; height: 90vh; min-height: 600px; }
    .section-padding { padding: 70px 0; }
    .stats { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .testimonial-item { padding: 25px 20px; }
}