/* Reset Básico e Definições Globais */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Cabeçalho e Navegação */
header {
    background: #0D47A1; /* Azul escuro */
    color: #fff;
    padding-top: 20px;
    min-height: 80px;
    border-bottom: #FFC107 3px solid; /* Amarelo/Ouro */
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    padding: 0;
    margin: 0;
    list-style: none;
    float: right;
}

header li {
    display: inline;
    padding: 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
    font-size: 24px;
}

#logo {
    max-height: 60px;
    width: auto;
    vertical-align: middle;
    padding-bottom: 10px;
}

header .nav-menu {
    margin-top: 10px;
}

/* Seção Principal (Hero) */
.hero {
    min-height: 400px;
    background: url("../img/fundo-banner.png") top center no-repeat; /* Cor de fundo sólida */
    color: #fff;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
    text-align: left;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: none;
}

.hero p {
    font-size: 20px;
    text-shadow: none;
}

.button {
    display: inline-block;
    background: #FFC107; /* Amarelo/Ouro */
    color: #333;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.button:hover {
    background: #FFA000;
}

.button-small {
    padding: 10px 15px;
    font-size: 14px;
    margin-top: 15px;
}

/* Seções de Conteúdo */
.main-content {
    padding: 40px 0;
    background: #fff;
}

.main-content h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #0D47A1;
}

.service-box, .about-section-box, .city-list, .contact-info {
    margin-bottom: 30px;
}

.service-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: center;
}

.service-item {
    background: #f9f9f9;
    padding: 0; /* Removido para a imagem encostar nas bordas */
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden; /* Garante que a imagem não saia do card */
}

.service-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-item-content {
    padding: 20px;
}

/* Seção Sobre */
.about-section-box {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text, .about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}


.city-list ul {
    list-style: none;
    padding: 0;
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
}

.city-list li {
    padding: 5px 0;
}

/* Página de Contato */
.contact-info p {
    font-size: 18px;
    line-height: 2;
}

.contact-info a {
    color: #0D47A1;
    text-decoration: none;
}

.contact-form-container form {
    margin-top: 20px;
}

.contact-form-container input, .contact-form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Rodapé */
footer {
    padding: 40px 0;
    margin-top: 20px;
    color: #fff;
    background-color: #0D47A1;
    text-align: left;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    padding: 0 20px;
    min-width: 200px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #FFC107;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #FFC107;
}

.footer-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.button-whatsapp, .button-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.3s ease;
    width: 100%; /* Para ocupar a largura total da coluna */
}

.button-whatsapp {
    background-color: #25D366; /* Verde WhatsApp */
}

.button-whatsapp:hover {
    background-color: #1DA851;
}

.button-phone {
    background-color: #0D47A1; /* Azul do tema */
}

.button-phone:hover {
    background-color: #0A3A82;
}

.button-whatsapp svg, .button-phone svg {
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #2c5da8;
}

.footer-keyword-link {
    color: #FFC107;
    text-decoration: none;
    font-weight: normal;
}
.footer-keyword-link:hover {
    text-decoration: underline;
}

/* Menu Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

/* Responsividade */
@media(max-width: 768px) {
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header #branding {
        float: none;
        text-align: left;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #0D47A1;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        display: block; /* Override display:none */
    }

    .nav-menu.is-active {
        right: 0;
    }

    header ul {
        float: none;
    }

    header li {
        display: block;
        padding: 0;
    }

    header .nav-menu a {
        display: block;
        padding: 20px;
        border-bottom: 1px solid #2c5da8;
        font-size: 18px;
    }
    
    header li:last-child a {
        border-bottom: none;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .about-section-box {
        flex-direction: column;
    }

    .container {
        width: 95%;
    }

    .city-list ul {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 30px;
    }
}

@media(max-width: 500px) {
    .city-list ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }
}


/* FAQ Section */
.faq-item {
    background-color: #fff;
    margin-bottom: 15px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.faq-item h3 {
    margin-top: 0;
    color: #0D47A1;
}

.about-box {
    background-color: #e3f2fd;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid #0D47A1;
}

/* --- Estilos para Seção Silo de Caçambas --- */
.silo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.silo-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.silo-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.silo-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.silo-card-content h3 {
    font-size: 1.25rem;
    color: #0D47A1;
    margin-top: 0;
    margin-bottom: 15px;
}

.silo-card-content p {
    color: #555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.silo-card-content .button {
    align-self: flex-start;
}

/* --- Estilos para Páginas Internas de Serviço --- */
.service-page-header {
    background-color: #e3f2fd;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #d1e9fc;
}

.service-page-header h1 {
    color: #0D47A1;
    font-size: 3rem;
    margin: 0;
}

.service-page-header p {
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
}

.service-detail-box {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.service-detail-text, .service-detail-image {
    flex: 1;
    min-width: 300px;
}

.service-detail-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-detail-text h3 {
    color: #0D47A1;
    font-size: 1.5rem;
    border-bottom: 2px solid #FFC107;
    padding-bottom: 10px;
    margin-top: 0;
}

.service-detail-text ul {
    list-style: none;
    padding: 0;
}

.service-detail-text ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2328a745" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/></svg>') no-repeat left center;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cta-box {
    background-color: #f9f9f9;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-radius: 8px;
}

.cta-box h2 {
    margin-top: 0;
}

/* --- Estilos para Páginas de Artigo/Bairro --- */
.article-container {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 20px;
}

.article-container h2 {
    text-align: left;
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FFC107;
    padding-bottom: 10px;
}

.article-container h3 {
    font-size: 1.5rem;
    color: #0D47A1;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.article-container ul, .article-container ol {
    padding-left: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-container li {
    margin-bottom: 15px;
}

.article-container strong {
    color: #0D47A1;
    font-weight: 700;
}

/* --- Estilos para Página de Áreas Atendidas --- */
.zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.zone-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.zone-card h3 {
    font-size: 1.8rem;
    color: #0D47A1;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.zone-card h3 svg {
    margin-right: 15px;
    width: 30px;
    height: 30px;
    fill: #FFC107;
}

.zone-card ul {
    list-style: none;
    padding: 0;
    columns: 2; /* Display in two columns inside the card */
    -webkit-columns: 2;
    -moz-columns: 2;
}

.zone-card ul li {
    margin-bottom: 12px;
}

.zone-card ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: color 0.2s;
}

.zone-card ul li a:hover {
    color: #0D47A1;
    font-weight: bold;
}

@media(max-width: 500px) {
    .zone-card ul {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }
}

/* --- Estilos para Página Sobre Nós --- */
.differentiators-list ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 40px auto;
}

.differentiators-list ul li {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-left: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%230D47A1" class="bi bi-check2-circle" viewBox="0 0 16 16"><path d="M2.5 8a5.5 5.5 0 0 1 8.25-4.764.5.5 0 0 0 .5-.866A6.5 6.5 0 1 0 14.5 8a.5.5 0 0 0-1 0 5.5 5.5 0 1 1-11 0z"/><path d="M15.354 3.354a.5.5 0 0 0-.708-.708L8 9.293 5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708 0l7-7z"/></svg>');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 24px;
}

/* --- Estilos para Página de Contato --- */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-details h3, .contact-form-container h3 {
    font-size: 1.8rem;
    color: #0D47A1;
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-details .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.contact-details .contact-item svg {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    fill: #0D47A1;
}

.contact-details .contact-cta-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Responsive adjustment for the grid */
@media(max-width: 850px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Estilos para FAQ Acordeão --- */
.faq-accordion {
    max-width: 800px;
    margin: 40px auto;
}
.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}
.accordion-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0D47A1;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}
.accordion-question:hover {
    background-color: #f9f9f9;
}
.accordion-question::after {
    content: '+';
    position: absolute;
    right: 10px;
    font-size: 1.8rem;
    font-weight: 300;
    color: #0D47A1;
    transition: transform 0.3s ease-in-out;
}
.accordion-question.is-open::after {
    transform: rotate(45deg);
}
.accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: #f9f9f9;
}
.accordion-answer p {
    padding: 0 20px 20px 20px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Styles for cacamba/servicos/servicos.html specific sections */
.step-by-step-guide {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 30px;
}

.step-item {
    background-color: #fff; /* Using explicit color instead of var for now */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Using explicit shadow */
    padding: 30px;
    text-align: center;
    flex: 1 1 calc(25% - 40px); /* 4 items per row, with gap */
    min-width: 220px;
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
}

.step-number {
    background-color: #0D47A1; /* Using explicit color */
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.step-item h3 {
    color: #0D47A1; /* Using explicit color */
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.step-item p {
    font-size: 1rem;
    color: #333; /* Using explicit color */
}

.materials-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.materials-list {
    background-color: #fff; /* Using explicit color */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Using explicit shadow */
    padding: 30px;
    flex: 1 1 calc(50% - 30px); /* 2 items per row, with gap */
    min-width: 300px;
}

.materials-list h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.materials-list.allowed h3 {
    color: #28a745; /* Green for allowed */
}

.materials-list.prohibited h3 {
    color: #dc3545; /* Red for prohibited */
}

.materials-list ul {
    list-style: none;
    padding: 0;
}

.materials-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f4f4f4; /* Using explicit color */
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.materials-list li:last-child {
    border-bottom: none;
}

.materials-list.allowed li:before {
    content: '✔';
    color: #28a745;
    margin-right: 10px;
    font-weight: bold;
}

.materials-list.prohibited li:before {
    content: '✖';
    color: #dc3545;
    margin-right: 10px;
    font-weight: bold;
}

@media (max-width: 992px) {
    .step-item {
        flex: 1 1 calc(50% - 20px); /* 2 items per row on medium screens */
    }
}

@media (max-width: 768px) {
    .step-by-step-guide {
        flex-direction: column;
        align-items: center;
    }
    .step-item {
        flex: 1 1 90%; /* 1 item per row on small screens */
        max-width: 400px;
    }
    .materials-section {
        flex-direction: column;
        align-items: center;
    }
    .materials-list {
        flex: 1 1 90%; /* 1 item per row on small screens */
        max-width: 400px;
    }
}