/* style.css - COMPLETO E REVISADO */
/* Suporte a todas as páginas: index, sobre, faq, contato, termos, politica-privacidade, cookies */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #1f2d3d;
    background: #fefefe;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== HEADER ==================== */
.main-header {
    background: #0b1c2c;
    color: white;
    padding: 1.2rem 0;
    border-bottom: 4px solid #c0392b;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-tom { 
    color: #c0392b; 
}

.logo-perf { 
    color: #ecf0f1; 
}

.slogan { 
    font-size: 0.75rem; 
    letter-spacing: 1px; 
    color: #bdc3c7; 
    margin-top: 4px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    font-size: 1rem;
}

.main-nav a:hover { 
    color: #c0392b; 
}

.phone-link {
    background: #c0392b;
    padding: 0.6rem 1.2rem;
    border-radius: 32px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.phone-link:hover {
    background: #a82315;
}

/* ==================== MAIN CONTENT ==================== */
main {
    min-height: 60vh;
}

/* Hero Section (apenas home, mas estilizado) */
.hero {
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
    padding: 4rem 0;
    border-bottom: 1px solid #dee2e6;
}

.hero h1 { 
    font-size: 2.5rem; 
    margin-bottom: 1rem; 
    color: #0b1c2c; 
    line-height: 1.2;
}

.hero h2 { 
    font-size: 1.5rem; 
    font-weight: 400; 
    margin-bottom: 1.2rem; 
    color: #2c3e50; 
}

.hero p { 
    font-size: 1.05rem; 
    margin-bottom: 1.8rem; 
    max-width: 90%; 
}

.cta-button {
    background: #c0392b;
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 48px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s;
}

.cta-button:hover {
    background: #a82315;
}

/* Seções padrão */
section {
    padding: 3.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

h1 {
    font-size: 2.5rem;
    margin: 1.5rem 0 1.5rem 0;
    color: #0b1c2c;
    border-left: 5px solid #c0392b;
    padding-left: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #0b1c2c;
    border-left: 5px solid #c0392b;
    padding-left: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
    color: #2c3e50;
}

h4 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #c0392b;
}

/* ==================== PÁGINAS SECUNDÁRIAS (GERAL) ==================== */
/* Estilo para todas as páginas de conteúdo */
.page-content {
    padding: 2rem 0 4rem 0;
}

.page-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1rem;
}

/* ==================== SOBRE.PHP ==================== */
.about-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.about-mission {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #c0392b;
}

/* ==================== FAQ.PHP ==================== */
.faq-page {
    padding: 2rem 0;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0b1c2c;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-question:before {
    content: "❓";
    font-size: 1.2rem;
}

.faq-answer {
    color: #4a5568;
    line-height: 1.7;
    margin-top: 0.5rem;
    padding-left: 1.8rem;
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

/* ==================== CONTATO.PHP ==================== */
.contact-page {
    padding: 2rem 0;
}

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

.contact-card {
    background: #f8fafc;
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-top: 0;
    color: #c0392b;
}

.contact-details {
    margin: 1rem 0;
}

.contact-details p {
    margin: 0.5rem 0;
}

.map-placeholder {
    background: #e2e8f0;
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    margin-top: 2rem;
}

/* ==================== TERMOS, POLÍTICA, COOKIES ==================== */
.legal-page {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h3 {
    margin-top: 0;
    color: #0b1c2c;
}

.legal-date {
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* ==================== HOME ESPECÍFICOS ==================== */
.service-grid, .diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.service-card, .diff-item {
    background: #ffffff;
    padding: 1.8rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #edf2f7;
    transition: all 0.2s;
}

.service-card:hover, .diff-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.service-card h3, .diff-item h3 { 
    margin-bottom: 1rem; 
    color: #c0392b;
    font-size: 1.3rem;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: #0b1c2c;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 32px;
    font-weight: 500;
}

.process {
    background: #f8fafc;
}

.step {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
}

.step h3 {
    color: #c0392b;
    margin-top: 0;
}

.faq-home .faq-item {
    background: #f8fafc;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 14px;
}

.faq-item strong {
    color: #0b1c2c;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 0.5rem;
}

.trust-footer {
    background: linear-gradient(135deg, #0b1c2c 0%, #1a2f3f 100%);
    color: white;
}

.trust-footer h3 {
    color: #c0392b;
}

.trust-footer p {
    color: #cbd5e1;
}

/* ==================== FOOTER ==================== */
.main-footer {
    background: #0b1c2c;
    color: #cbd5e1;
    padding: 2.5rem 0 1rem;
    margin-top: 2rem;
}

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

.footer-col h4 { 
    color: white; 
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul { 
    list-style: none; 
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a { 
    color: #cbd5e1; 
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #c0392b;
}

.footer-bottom { 
    text-align: center; 
    margin-top: 2rem; 
    border-top: 1px solid #2c3e50; 
    padding-top: 1.5rem;
    font-size: 0.875rem;
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #0b1c2c;
    color: white;
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1000;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cookie-banner p {
    flex: 1;
    margin: 0;
}

.cookie-banner a {
    color: #c0392b;
    text-decoration: underline;
}

.cookie-banner button {
    background: #c0392b;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.cookie-banner button:hover {
    background: #a82315;
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    .header-flex { 
        flex-direction: column; 
        gap: 1rem;
        text-align: center;
    }
    
    .main-nav ul { 
        gap: 1rem; 
        flex-wrap: wrap; 
        justify-content: center; 
    }
    
    .hero h1 { 
        font-size: 1.8rem; 
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero p {
        max-width: 100%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .service-grid, .diff-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question:before {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding-left: 1rem;
    }
}

/* ==================== TABELAS E LISTAS ==================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

th, td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

th {
    background: #f8fafc;
    font-weight: 600;
}

ul, ol {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin: 0.5rem 0;
}

/* ==================== BOTÕES E LINKS ==================== */
.button {
    display: inline-block;
    background: #c0392b;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: #a82315;
}

.button-secondary {
    background: #2c3e50;
}

.button-secondary:hover {
    background: #1a2f3f;
}

/* ==================== ALERTAS E NOTIFICAÇÕES ==================== */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert-info {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    color: #0c4a6e;
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid #d97706;
    color: #78350f;
}

.alert-success {
    background: #dcfce7;
    border-left: 4px solid #16a34a;
    color: #14532d;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #c0392b;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #a82315;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .main-header, .main-footer, .cookie-banner, .back-to-top {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}