/* 
* Estilo principal para o site 12 RCPN
* Versão: 1.1
* Autor: Manus AI
* Data: Maio 2025
*/

/* Variáveis CSS para facilitar edição de cores e fontes */
:root {
    --primary-color: #8b3a3a;
    --secondary-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #c0c0c0; /* Cinza prateado */
    --font-primary: 'Arial', sans-serif;
    --font-secondary: 'Georgia', serif;
    --hero-height: 400px; /* Altura padrão da imagem hero */
}

/* Reset e estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #000;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6b2c2c;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
}

/* Colunas responsivas */
.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Header */
header {
    background-color: #000;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-height: 80px;
}

.contact-info {
    text-align: right;
    font-size: 14px;
    margin-top: 15px;
    color: var(--text-color);
}

/* Navegação */
.main-nav {
    background-color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: #6b2c2c;
    text-decoration: none;
}

.navbar-toggler {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Hero section */
.hero {
    background-image: url('../images/fachada_cartorio.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    padding: 100px 0;
    position: relative;
    height: var(--hero-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-family: var(--font-secondary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Seções de conteúdo */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.central-atendimento {
    background-color: #000;
    color: var(--text-color);
}

.contact-item {
    text-align: center;
    margin-bottom: 30px;
}

.contact-item h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
}

.whatsapp {
    background-color: #25D366;
}

.instagram {
    background-color: #E1306C;
}

.facebook {
    background-color: #3b5998;
}

/* Conteúdo de página */
.page-content {
    padding: 40px 0;
    background-color: #000;
    color: var(--text-color);
}

.page-header {
    background-color: #000;
    color: var(--text-color);
    padding: 30px 0;
}

.page-title {
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
    font-family: var(--font-secondary);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* Links de certidões */
.certidoes-links {
    background-color: #111;
    padding: 20px;
    border-radius: 5px;
    margin: 30px 0;
}

.certidoes-links h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.certidoes-links ul {
    list-style: none;
}

.certidoes-links li {
    margin-bottom: 15px;
}

.certidoes-links a {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.certidoes-links a:hover {
    background-color: #6b2c2c;
    text-decoration: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-weight: bold;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #6b2c2c;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #555;
    color: #fff;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #000;
    color: var(--text-color);
    padding: 30px 0;
    font-size: 14px;
}

footer h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    text-align: center;
}

footer a {
    color: var(--text-color);
}

footer a:hover {
    color: #fff;
}

/* Mapa do Google */
.map-container {
    width: 100%;
    margin: 30px 0;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .col-md-4, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .contact-info, .text-right {
        text-align: center;
    }
    
    .hero {
        padding: 60px 0;
        height: 300px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* Estilos específicos para páginas */
.quemsomos-image {
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.document-list {
    background-color: #111;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.document-list h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.document-list ul {
    list-style-type: disc;
    padding-left: 20px;
}

.document-list li {
    margin-bottom: 10px;
}

.special-situations {
    background-color: #111;
    padding: 20px;
    border-radius: 5px;
}

.special-situations h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    list-style: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.breadcrumb-item {
    color: #ccc;
}

.breadcrumb-item a {
    color: var(--text-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 10px;
    color: #ccc;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Estilo para layout de página com imagem lateral */
.page-layout {
    display: flex;
    flex-wrap: wrap;
    min-height: var(--hero-height);
}

.page-image-left {
    flex: 0 0 25%;
    background-image: url('../images/fachada_jardim.jpg');
    background-size: cover;
    background-position: 0% 0%;
    background-repeat: no-repeat;
    min-height: var(--hero-height);
}

.page-image-right {
    flex: 0 0 25%;
    background-image: url('../images/fachada_jardim.jpg');
    background-size: cover;
    background-position: 100% 0%;
    background-repeat: no-repeat;
    min-height: var(--hero-height);
}

.page-content-center {
    flex: 0 0 50%;
    padding: 30px;
    background-color: #000;
    min-height: var(--hero-height);
}

/* Quando o conteúdo é maior que a altura da hero, as imagens laterais se ajustam */
.page-content-center:has(> *:nth-child(n+5)) ~ .page-image-right,
.page-content-center:has(> *:nth-child(n+5)) + .page-image-right,
.page-content-center:has(div.text-center) ~ .page-image-right,
.page-content-center:has(div.text-center) + .page-image-right {
    background-repeat: repeat-y;
    height: 100%;
}

.page-content-center:has(> *:nth-child(n+5)) ~ .page-image-left,
.page-content-center:has(> *:nth-child(n+5)) + .page-image-left,
.page-content-center:has(div.text-center) ~ .page-image-left,
.page-content-center:has(div.text-center) + .page-image-left {
    background-repeat: repeat-y;
    height: 100%;
}

@media (max-width: 768px) {
    .page-image-left, .page-image-right {
        flex: 0 0 100%;
        height: 200px;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .page-content-center {
        flex: 0 0 100%;
        min-height: auto;
    }
}
