/* ==========================================================================
   SISTEMA DE ESTILOS DA MANHANI ENGENHARIA - DESIGN PREMIUM E RESPONSIVO
   ========================================================================== */

:root {
    --primary: #B8860B; 
    --primary-hover: #9c7209;
    --primary-dark: #8b6508; 
    --dark: #0f172a; 
    --darker: #020617;
    --light: #f8fafc;
    --white: #ffffff;
    --off-white: #f1f5f9;
    --text-gray: #475569; 
    --text-light: #cbd5e1;
    --text-dark: #1e293b;
    --shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
    
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-gray); background-color: var(--light); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.max-w-700 { max-width: 700px; margin-inline: auto; }
.mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; }
.bold { font-weight: 700; } .text-large { font-size: 1.25rem; }
.text-center { text-align: center !important; }

/* IMAGENS E LOGO */
.logo-img { max-height: 60px; width: auto; display: block; object-fit: contain; }
.img-hero, .img-portrait, .img-service { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); object-fit: cover; display: block; }
.img-portrait { filter: grayscale(80%); }
.grayscale { filter: grayscale(100%); }

/* TYPOGRAPHY */
h1, h2, h3 { font-family: var(--font-head); color: var(--dark); line-height: 1.2; font-weight: 700; }
.topper { display: block; color: var(--primary-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-bottom: 10px; }
.highlight { color: var(--primary); }

/* SEÇÕES */
section { padding: 100px 0; }
.light-section { background-color: var(--white); }
.dark-section { background-color: var(--dark); color: var(--light); }
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section p { color: var(--text-light); }
.alternate-bg { background-color: var(--darker); }

/* NAVBAR E ELEMENTOS DE MENU */
.navbar { background: var(--white); padding: 0; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 1000; height: 90px; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--dark); font-weight: 600; font-size: 0.95rem; border-bottom: 2px solid transparent; padding-bottom: 5px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-dark); border-bottom-color: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; }

/* DROPDOWN MENU */
.dropdown { position: relative; display: flex; align-items: center; }
.dropbtn { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.dropdown .arrow { font-size: 0.7em; margin-left: 6px; line-height: 1; transition: transform 0.3s ease; }
.dropdown-content { visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 0; background-color: var(--white); min-width: 280px; box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.1); border-radius: 8px; z-index: 1000; padding: 10px 0; transform: translateY(10px); transition: all 0.3s ease; border-top: 3px solid var(--primary); }
.dropdown-content a { color: var(--text-dark); padding: 12px 20px; text-decoration: none; display: block; font-size: 0.95rem; font-weight: 500; transition: background-color 0.2s ease, color 0.2s ease; border-bottom: none; }
.dropdown-content a:hover { background-color: rgba(181, 146, 92, 0.1); color: var(--primary); border-bottom: none; }

@media (min-width: 992px) {
    .dropdown:hover .dropdown-content { visibility: visible; opacity: 1; transform: translateY(0); }
    .dropdown:hover .arrow { transform: rotate(180deg); display: inline-block; }
}

@media (max-width: 991px) {
    .dropdown-content { position: static; visibility: visible; opacity: 1; box-shadow: none; transform: none; min-width: 100%; background-color: rgba(0,0,0,0.03); border-top: none; border-left: 2px solid var(--primary); border-radius: 0; margin-top: 10px; display: block; }
}

/* CONTROLE ABSOLUTO DE VISIBILIDADE (DESKTOP VS MOBILE) */
.btn-mobile-only { display: none !important; }
.mobile-menu-btn { display: none !important; }
.btn-desktop-only { display: inline-block !important; margin-left: 20px; }

/* BUTTONS */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 700; padding: 14px 28px; border-radius: 4px; text-align: center; cursor: pointer; border: none; transition: 0.3s; }
.btn-full { width: 100%; display: block; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn-outline { border: 2px solid var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover, .btn-outline.active { background: var(--dark); color: var(--white); }
.btn-outline.dark-text { border-color: var(--dark); color: var(--dark); }
.btn-outline.dark-text:hover { background: var(--dark); color: var(--white); }
.btn-large { font-size: 1.2rem; padding: 18px 40px; }
.btn.disabled { opacity: 0.3; pointer-events: none; }
.shadow-glow { box-shadow: 0 10px 25px -5px rgba(184, 134, 11, 0.4); }
.shadow-glow:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(184, 134, 11, 0.5); }

/* INTERNAS INTERFACES */
.page-header { padding: 120px 0 160px; position: relative; }
.page-header .title { font-size: 4rem; }
.wave-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; pointer-events: none; }
.wave-bottom svg { display: block; width: calc(100% + 1.3px); height: 70px; transform: rotate(180deg); }

/* GRIDS E LAYOUTS CORES */
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero .title { font-size: 3.8rem; margin-bottom: 20px; }
.hero .text { font-size: 1.15rem; margin-bottom: 40px; max-width: 530px; }
.btn-group { display: flex; gap: 15px; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.check-list { list-style: none; margin-bottom: 20px; }
.check-list li { margin-bottom: 12px; font-size: 1.05rem; color: inherit; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-footer { text-align: center; margin-top: 50px; width: 100%; }
.section-header .title { font-size: 2.5rem; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 40px 30px; border-radius: 12px; border: 1px solid #e2e8f0; transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); border-bottom: 3px solid var(--primary); box-shadow: var(--shadow); }
.card .icon { font-size: 2.5rem; margin-bottom: 20px; }
.card h3 { font-size: 1.3rem; margin-bottom: 15px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat-box { background: var(--white); padding: 40px 20px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: var(--shadow); text-align: center; }
.stat-box .number { display: block; font-family: var(--font-head); font-size: 3.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 10px; }
.stat-box .desc { font-weight: 600; color: var(--dark); font-size: 1.1rem; }

/* SOCIAL PROOF / TRUST BAR */
.trust-bar { padding: 50px 0; border-bottom: 1px solid #e2e8f0; background-color: var(--white); }
.trust-title { text-align: center; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: #475569; margin-bottom: 30px; }
.logo-cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; filter: grayscale(100%); opacity: 0.6; transition: 0.3s ease; }
.logo-cloud:hover { filter: grayscale(0%); opacity: 1; }
.trust-text { padding: 12px 24px; background: var(--light); border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text-gray); }

/* CONTATO ELEMENTOS */
.info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; text-align: left; }
.info-item .icon { font-size: 1.5rem; background: var(--light); padding: 10px; border-radius: 8px; border: 1px solid #e2e8f0; }
.info-item strong { display: block; color: var(--dark); font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 5px; }
.map-container { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #e2e8f0; width: 100%; margin-top: 30px; }

.form-card { background: var(--white); padding: 40px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: var(--shadow); text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 8px; font-size: 0.95rem; }
.form-control { width: 100%; padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: var(--font-body); font-size: 1rem; color: var(--text-gray); transition: 0.3s; background: var(--light); }
.form-control:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1); }
textarea.form-control { resize: vertical; }

/* ORDENAÇÃO Z-PATTERN */
@media (min-width: 901px) {
    .order-desktop-1 { order: 1; }
    .order-desktop-2 { order: 2; }
}

/* FAQ E ACORDEÃO */
.faq-container { margin: 40px auto 0; display: flex; flex-direction: column; gap: 15px; text-align: left; }
.faq-item { background-color: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; transition: 0.3s; }
.faq-item[open] { background-color: rgba(255,255,255,0.08); border-color: var(--primary); }
.faq-question { padding: 20px 25px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--white); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; color: var(--primary); font-size: 1.5rem; transition: 0.3s; }
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer { padding: 0 25px 25px; color: var(--text-light); border-top: 1px solid rgba(255,255,255,0.1); margin-top: 10px; padding-top: 20px; }

/* REVIEWS CARD SYSTEM */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.review-card { background: var(--white); padding: 40px 30px; border-radius: 12px; border: 1px solid #e2e8f0; text-align: left; box-shadow: var(--shadow); }
.review-stars { color: var(--primary); font-size: 1.3rem; letter-spacing: 2px; margin-bottom: 15px; }
.review-text { font-style: italic; color: var(--dark); font-size: 1.05rem; margin-bottom: 25px; }
.review-author { border-top: 1px solid #e2e8f0; padding-top: 15px; }
.review-author strong { display: block; font-family: var(--font-head); color: var(--dark); font-size: 1.1rem; }
.review-author span { font-size: 0.85rem; color: var(--text-gray); }

/* FINAL CTA */
.final-cta { padding: 120px 0; }
.cta-container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; }
.cta-container .max-w-700 { margin-left: auto; margin-right: auto; }
.big-title { font-size: 3.2rem; margin-bottom: 20px; }

/* =========================================
   SISTEMA DO BLOG (LAYOUT E COMPONENTES)
   ========================================= */

.blog-page .light-section { background-color: var(--off-white); }

.category-bar { background-color: var(--white); border-bottom: 1px solid rgba(0,0,0,0.05); padding: 15px 0; overflow-x: auto; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.cat-list { display: flex; gap: 15px; list-style: none; margin: 0; padding: 0; justify-content: center; white-space: nowrap; }
.cat-list a { text-decoration: none; color: var(--text-dark); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem; padding: 8px 16px; border-radius: 4px; transition: all 0.3s ease; opacity: 0.7; }
.cat-list a:hover, .cat-list a.active { color: var(--primary); background-color: rgba(181, 146, 92, 0.1); opacity: 1; }

.blog-layout-grid { display: grid; gap: 40px; padding-top: 60px; padding-bottom: 60px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .blog-layout-grid { grid-template-columns: 7fr 3fr; } }

.post-card { background-color: var(--white); border-radius: 8px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
@media (min-width: 768px) { .post-card { flex-direction: row; align-items: center; } }

.post-img-link { display: block; width: 100%; }
@media (min-width: 768px) { .post-img-link { width: 40%; flex-shrink: 0; } }

.post-img { width: 100%; height: 250px; object-fit: cover; }
@media (min-width: 768px) { .post-img { height: 100%; min-height: 250px; } }

.post-text { padding: 30px; }
.post-category { font-size: 0.8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.post-title { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 15px; line-height: 1.3; }
.post-title a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { font-size: 1rem; color: var(--text-dark); opacity: 0.8; margin-bottom: 20px; line-height: 1.6; }
.read-more { font-size: 0.95rem; font-weight: 600; color: var(--primary); text-decoration: none; transition: opacity 0.2s ease; }
.read-more:hover { opacity: 0.7; }

.blog-sidebar { display: flex; flex-direction: column; gap: 30px; }
.sidebar-widget { background-color: var(--white); padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.sidebar-widget h3 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; border-bottom: 2px solid rgba(181, 146, 92, 0.2); padding-bottom: 10px; }
.sidebar-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(181, 146, 92, 0.1); margin-bottom: 15px; }

.widget-cta { background-color: var(--dark) !important; border-top: 4px solid var(--primary) !important; text-align: center; }
.widget-cta h3, .widget-cta p { color: var(--white) !important; }
.widget-cta p { opacity: 0.85; font-size: 0.95rem; margin-bottom: 25px; }

.pagination { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 30px; }
.page-numbers { font-size: 0.9rem; color: var(--text-dark); opacity: 0.7; }

/* FOOTER */
.footer { background: var(--darker); padding: 80px 0 30px; border-top: 1px solid #1e293b; color: var(--text-gray); text-align: left; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer .logo-text { color: var(--white); font-size: 1.8rem; display: block; margin-bottom: 15px; font-family: var(--font-head); font-weight: 800; }
.footer h3 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; font-family: var(--font-head); }
.whatsapp-link { color: var(--primary); font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; display: block; margin-bottom: 10px; }
.whatsapp-link:hover { color: var(--white); }
.crea { font-size: 0.9rem; margin-bottom: 5px; color: var(--text-light); }
.footer-bottom { text-align: center; border-top: 1px solid #1e293b; padding-top: 20px; font-size: 0.85rem; }

/* ==========================================================
   INTERRUPÇÃO SENSÍVEL E MEDIA QUERIES (Mobile-First Fixes)
   ========================================================== */
@media (max-width: 991px) {
    .cat-list { justify-content: flex-start; padding: 0 15px; }
}

@media (max-width: 900px) {
    /* INVERTE A VISIBILIDADE NO CELULAR */
    .btn-desktop-only { display: none !important; }
    .mobile-menu-btn { display: flex !important; background: transparent; border: none; color: var(--dark); cursor: pointer; padding: 5px; align-items: center; justify-content: center; }
    .btn-mobile-only { display: block !important; width: 100%; text-align: center; margin-top: 15px; }
    
    /* MENU LATERAL DESLIZANTE */
    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%; 
        width: 280px;
        height: calc(100vh - 90px);
        background-color: var(--white);
        flex-direction: column;
        gap: 20px;
        padding: 40px 30px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 999;
        align-items: flex-start;
    }
    
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.1rem; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; width: 100%; }

    /* Ajustes Gerais de Grid para Celular */
    .hero-grid, .split-grid { grid-template-columns: 1fr; text-align: center; }
    .img-content { order: -1 !important; margin-bottom: 25px; }
    .hero .title { font-size: 2.6rem; }
    .page-header .title { font-size: 2.8rem; }
    .hero .text, .bio-content .text, .check-list { text-align: left; margin-inline: auto; }
    .btn-group { justify-content: center; flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .logo-cloud { gap: 12px; }
    .trust-text { padding: 10px 16px; font-size: 0.8rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .info-item { flex-direction: column; align-items: center; text-align: center; }
    .form-card { padding: 30px 20px; }
}