/*
Theme Name: Preserva Capital
Theme URI: https://preservacapital.com.br
Author: Manus
Description: Tema profissional para gestão de investimentos e capital familiar.
Version: 1.0
Text Domain: preserva
*/

:root {
    --primary: #C5A059;
    --primary-foreground: #FFFFFF;
    --background: #FFFFFF;
    --foreground: #1a1a1a;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --border: #e4e4e7;
    --radius: 0.5rem;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-logo: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background-color: var(--background); color: var(--foreground); line-height: 1.5; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 500; font-size: 0.875rem; cursor: pointer; transition: 0.2s; border: 1px solid transparent; }
.btn-primary { background-color: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background-color: #b38f4d; }
.btn-outline { background-color: transparent; border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background-color: var(--muted); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; background-color: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--border); z-index: 1000; height: 4rem; display: flex; align-items: center; backdrop-filter: blur(8px); }
.nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-logo img { max-height: 2.5rem; width: auto; }
.nav-links { display: none; gap: 2rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link-item { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.nav-link-item:hover { color: var(--primary); }
.nav-hamburger { display: block; background: none; border: none; cursor: pointer; padding: 0.5rem; }
@media (min-width: 768px) { .nav-hamburger { display: none; } }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 4rem; left: 0; right: 0; background-color: white; border-bottom: 1px solid var(--border); padding: 1.5rem; display: none; flex-direction: column; gap: 1rem; z-index: 999; }
.mobile-menu.open { display: flex; }

/* Sections */
.hero { padding: 8rem 0 5rem; background-color: #fafafa; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-content h1 { font-size: 3rem; margin-bottom: 1.5rem; font-family: var(--font-logo); }
.hero-content p { font-size: 1.125rem; color: var(--muted-foreground); margin-bottom: 2rem; }
.hero-image img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

.pillars { padding: 4rem 0; background-color: var(--muted); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; margin-bottom: 0.75rem; font-family: var(--font-logo); }
.pillars-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }
.pillar-item { background-color: white; padding: 1rem; border-radius: var(--radius); text-align: center; font-weight: 500; border: 1px solid var(--border); }
.pillar-item.active { background-color: var(--primary); color: white; border-color: var(--primary); }

.services { padding: 5rem 0; background-color: var(--muted); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { background-color: white; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); transition: 0.3s; }
.service-card:hover { border-color: var(--primary); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

/* Blog Carousel */
.posts-carousel-section { padding: 5rem 0; }
.post-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; height: 100%; transition: 0.3s; }
.post-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.post-card-img { height: 200px; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-content { padding: 1.5rem; }
.post-card-title { font-family: var(--font-sans); font-size: 1.125rem; margin-bottom: 0.75rem; }
.post-card-excerpt { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.post-card-link { color: var(--primary); font-weight: 600; font-size: 0.875rem; }

/* Footer */
.site-footer { background-color: var(--foreground); color: white; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 2rem; text-align: center; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* WhatsApp */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; background-color: #25d366; color: white; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); z-index: 1000; }
.whatsapp-float svg { width: 2rem; height: 2rem; fill: currentColor; }

/* Correção de tamanho dos ícones de contato */
.contact-card svg {
    width: 2.5rem !important;
    height: 2.5rem !important;
    max-width: 40px;
    max-height: 40px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.social-item svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    max-width: 24px;
    max-height: 24px;
}

/* Correção de layout horizontal para seção de contato */
.contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Centralização de textos de contato e blog */
.contact-card p, 
.contact-card a {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.swiper-slide p {
    text-align: center !important;
}
