/* ============================================================
   NR13 AutoDocs — Folha de estilo compartilhada (multi-página)
   Usada por: contato.html, funcionamento.html, blog.html e posts.
   O index.html mantém seu CSS inline; estes estilos espelham
   o mesmo design (header, sidebar, rodapé, Fale Conosco).
   ============================================================ */

:root {
    --primary-blue: #0066a1;
    --dark-blue: #001a31;
    --menu-blue: #225a8a;
    --light-blue: #e6f3fb;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --bg-gray-card: #f1f5f9;
    --accent-color: #009cf3;
    --cta-color: #ffb700;
    --cta-hover: #f5a600;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, .logo { font-family: 'Outfit', sans-serif; }
a { color: inherit; }

/* --- HEADER --- */
header {
    background-color: var(--dark-blue);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-left { display: flex; align-items: center; height: 100%; padding-left: 5%; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -0.5px; text-decoration: none; }
.logo span {
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; display: block;
    margin-top: -10px; letter-spacing: 3px; background-color: orange; color: #fff; padding: 0 3px;
}
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { color: #cbd5e1; text-decoration: none; font-size: 15px; font-weight: 500; transition: color .3s; }
.header-nav a:hover, .header-nav a.active { color: var(--cta-color); }
.header-right { display: flex; align-items: center; height: 100%; }
.client-area-btn {
    display: flex; align-items: center; gap: 10px;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 30px; padding: 10px 24px;
    color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; margin-right: 30px;
    transition: all .3s ease;
}
.client-area-btn:hover { background-color: rgba(255,255,255,0.1); border-color: #fff; }


/* --- PAGE HERO (cabeçalho interno das páginas) --- */
.page-hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #003158 100%);
    color: #fff; padding: 70px 5% 60px; text-align: center;
}
.page-hero h1 { font-size: 40px; font-weight: 900; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.1; }
.page-hero p { font-size: 18px; color: #cbd5e1; max-width: 760px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: #94a3b8; margin-bottom: 22px; }
.breadcrumb a { color: var(--accent-color); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* --- CONTAINER & SEÇÕES --- */
.page-section { padding: 80px 5%; }
.page-section.alt { background-color: var(--bg-light); }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 820px; margin: 0 auto; }
.section-title { text-align: center; font-size: 30px; color: #000; margin-bottom: 12px; font-weight: 700; letter-spacing: -1px; }
.section-subtitle { text-align: center; color: #94a3b8; margin-bottom: 50px; font-size: 18px; max-width: 800px; margin-left: auto; margin-right: auto; }

.prose h2 { font-size: 26px; color: var(--dark-blue); margin: 38px 0 14px; font-weight: 800; }
.prose h3 { font-size: 20px; color: var(--dark-blue); margin: 28px 0 10px; font-weight: 700; }
.prose p { font-size: 16px; color: var(--text-dark); margin-bottom: 16px; line-height: 1.8; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; line-height: 1.7; }
.prose a { color: var(--primary-blue); font-weight: 600; }

/* --- BOTÕES --- */
.btn-cta {
    display: inline-block; background-color: var(--cta-color); color: #000;
    font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 800; text-decoration: none;
    padding: 14px 28px; border-radius: 8px; text-transform: uppercase; cursor: pointer; border: none;
    box-shadow: 0 10px 25px rgba(255,183,0,0.3); transition: all .3s ease;
}
.btn-cta:hover { background-color: var(--cta-hover); transform: translateY(-3px); }
.btn-outline {
    display: inline-block; border: 2px solid var(--primary-blue); color: var(--primary-blue);
    background: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; text-decoration: none;
    padding: 12px 26px; border-radius: 8px; transition: all .3s ease;
}
.btn-outline:hover { background: var(--primary-blue); color: #fff; }

/* --- FALE CONOSCO (retângulo com atendente) --- */
.fale-conosco-section { padding: 80px 5%; background-color: var(--bg-light); }
.fale-conosco-card {
    max-width: 1000px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 20px; box-shadow: 0 20px 50px rgba(0,26,49,0.10); overflow: hidden;
    display: grid; grid-template-columns: 300px 1fr; align-items: stretch;
}
.fale-conosco-img {
    background: #eef2f7;
    display: flex; align-items: stretch; justify-content: center; position: relative; min-height: 320px;
}
.fale-conosco-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.fale-conosco-text { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.fale-conosco-text .fc-tag {
    font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 1px;
    text-transform: uppercase; color: var(--primary-blue); margin-bottom: 10px;
}
.fale-conosco-text h2 { font-size: 28px; color: var(--dark-blue); font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.fale-conosco-text p { font-size: 16px; color: var(--text-gray); margin-bottom: 24px; line-height: 1.7; }
.fale-conosco-text .fc-resp { font-size: 13px; color: #10b981; font-weight: 600; margin-top: 14px; }
.fale-conosco-text .fc-resp i { margin-right: 6px; }
@media (max-width: 760px) {
    .fale-conosco-card { grid-template-columns: 1fr; }
    .fale-conosco-img { padding-top: 24px; }
    .fale-conosco-img img { max-width: 220px; }
    .fale-conosco-text { padding: 32px 26px; text-align: center; }
}

/* --- FOOTER PROFISSIONAL + MAPA --- */
footer { background-color: var(--dark-blue); color: #fff; padding: 70px 5% 40px; }
.footer-content { max-width: 1400px; margin: 0 auto 50px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 45px; }
.footer-col h4 { font-size: 19px; margin-bottom: 22px; font-weight: 700; color: #fff; }
.footer-col p { color: #cbd5e1; font-size: 15px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col ul li a { color: #cbd5e1; text-decoration: none; font-size: 15px; transition: color .3s; }
.footer-col ul li a:hover { color: var(--cta-color); }
.footer-contact { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; color: #cbd5e1; font-size: 15px; }
.footer-contact i { color: var(--accent-color); margin-top: 4px; }
.footer-map { width: 100%; height: 170px; border: 0; border-radius: 12px; margin-top: 6px; filter: grayscale(0.15); }
.social-icons { display: flex; gap: 14px; margin-top: 18px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border-radius: 50%; color: #fff; transition: all .3s; }
.social-icons a:hover { background: var(--cta-color); color: #000; }
.footer-bottom { text-align: center; color: #64748b; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px; }
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: var(--cta-color); }
@media (max-width: 992px) { .footer-content { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-content { grid-template-columns: 1fr; } }

/* --- MODAL DE CONTATO (Fale Conosco) --- */
.contact-modal-overlay {
    position: fixed; inset: 0; background-color: rgba(0,26,49,0.95); z-index: 9999;
    display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; padding: 20px;
}
.contact-modal-overlay.active { opacity: 1; }
.contact-modal-content {
    position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 16px;
    padding: 40px 30px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); transform: scale(.9); transition: transform .3s ease; text-align: center;
}
.contact-modal-overlay.active .contact-modal-content { transform: scale(1); }
.contact-modal-title { font-family: 'Outfit', sans-serif; font-size: 24px; color: var(--dark-blue); margin-bottom: 10px; font-weight: 800; }
.contact-modal-text { font-size: 14px; color: var(--text-gray); margin-bottom: 22px; line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.contact-form input { font-size: 15px; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 6px; color: var(--text-dark); outline: none; width: 100%; transition: border-color .3s; }
.contact-form input:focus { border-color: var(--primary-blue); }
.contact-form-submit { width: 100%; background-color: var(--cta-color); color: #000; padding: 14px; border: none; border-radius: 6px; font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800; text-transform: uppercase; cursor: pointer; transition: all .3s ease; }
.contact-form-submit:hover { background-color: var(--cta-hover); transform: translateY(-2px); }
.contact-form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.contact-form-success { padding: 10px 0; }
.contact-form-success i { font-size: 40px; color: #10b981; margin-bottom: 15px; display: block; }
.contact-form-success p { font-size: 15px; color: var(--text-dark); line-height: 1.6; }
.contact-modal-close {
    position: absolute; top: -15px; right: -15px; background-color: var(--cta-color); color: #000;
    border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: transform .2s ease;
}
.contact-modal-close:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .header-nav { display: none; }
    .client-area-btn { display: none; }
    .page-hero h1 { font-size: 28px; }
    .page-hero p { font-size: 15px; }
}

/* --- LAYOUT DE ARTIGO SEO + COLUNA DE PALAVRAS-CHAVE --- */
.article-layout {
    max-width: 1240px; margin: 0 auto; display: grid;
    grid-template-columns: 1fr 360px; gap: 44px; align-items: start;
}
.article-figure { margin: 28px 0; }
.article-figure img {
    width: 100%; height: auto; display: block; border-radius: 14px;
    border: 1px solid #e2e8f0; box-shadow: 0 12px 30px rgba(0,26,49,0.10);
}
.article-figure figcaption { font-size: 13px; color: var(--text-gray); text-align: center; margin-top: 10px; font-style: italic; }
.toc { background: var(--bg-light); border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px 26px; margin-bottom: 30px; }
.toc h2 { font-size: 16px !important; color: var(--dark-blue); margin: 0 0 12px !important; text-transform: uppercase; letter-spacing: .5px; }
.toc ul { list-style: none; margin: 0 !important; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--primary-blue); font-weight: 600; text-decoration: none; font-size: 15px; }
.toc a:hover { text-decoration: underline; }
.step-block { border-left: 4px solid var(--cta-color); background: #fff; padding: 4px 0 4px 22px; margin: 26px 0; }
.step-block h3 { margin-top: 0 !important; }
.callout { background: var(--light-blue); border-radius: 12px; padding: 22px 26px; margin: 30px 0; border: 1px solid #cfe6f7; }
.callout p { margin: 0; }
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.data-table th, .data-table td { border: 1px solid #e2e8f0; padding: 12px 16px; text-align: left; }
.data-table th { background: var(--dark-blue); color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; }
.data-table tr:nth-child(even) td { background: var(--bg-light); }

.kw-rail { position: sticky; top: 110px; }
.kw-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 12px 34px rgba(0,26,49,0.08); overflow: hidden; margin-bottom: 26px; }
.kw-box-head { background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue)); color: #fff; font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 18px 22px; display: flex; align-items: center; gap: 10px; }
.kw-box-head i { color: var(--cta-color); }
.kw-box ul { list-style: none; margin: 0 !important; padding: 6px 0; }
.kw-box ul li { border-bottom: 1px solid #f1f5f9; }
.kw-box ul li:last-child { border-bottom: none; }
.kw-box ul li a { display: flex; align-items: center; gap: 12px; padding: 13px 22px; font-size: 14.5px; font-weight: 500; color: var(--text-dark); text-decoration: none; line-height: 1.35; transition: background .2s ease, color .2s ease, padding-left .2s ease; }
.kw-box ul li a i { color: var(--primary-blue); font-size: 13px; flex-shrink: 0; }
.kw-box ul li a:hover { background: var(--light-blue); color: var(--primary-blue); padding-left: 28px; }
.kw-cta-box { background: var(--dark-blue); border-radius: 16px; padding: 26px 24px; text-align: center; color: #fff; }
.kw-cta-box h4 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.kw-cta-box p { font-size: 14px; color: #cbd5e1; margin-bottom: 18px; line-height: 1.6; }
@media (max-width: 992px) {
    .article-layout { grid-template-columns: 1fr; }
    .kw-rail { position: static; margin-top: 20px; }
}
