:root {
    --verde: #009b3a;
    --amarelo: #fed100;
    --azul: #002776;
    --branco: #ffffff;
    --whatsapp: #25d366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.hero {
    background: linear-gradient(rgba(0, 39, 118, 0.85), rgba(0, 155, 58, 0.85)), 
                url('https://encrypted-tbn2.gstatic.com/licensed-image?q=tbn:ANd9GcQo_cuJu1xdqYdkrNi9U593XNsVRfQyPCNeXZ99HM1EOEdJtyKe1iLrivVyUaVRjqPplyg7T4_1t5VKrY8') center/cover no-repeat;
    color: var(--branco);
    text-align: center;
    padding: 50px 20px;
    border-bottom: 8px solid var(--amarelo);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.logo-img {
    width: 185px;
    height: auto;
    filter: drop-shadow(0px 3px 6px rgba(0,0,0,0.8));
}
.logo-img {
    /* Cria um contorno/brilho branco suavizado em volta de todo o desenho */
    filter: drop-shadow(0px 0px 6px rgba(255, 255, 255, 0.9)) 
            drop-shadow(0px 0px 2px #ffffff);
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--amarelo);
    margin-bottom: 8px;
    text-transform: uppercase;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 300;
    color: #f0f0f0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.cta-header {
    display: inline-block;
    background-color: var(--whatsapp);
    color: var(--branco);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.cta-header:hover {
    transform: scale(1.05);
}

.search-container {
    position: relative;
    margin: 25px auto 15px auto;
    max-width: 500px;
    width: 92%;
    background: rgba(0, 39, 118, 0.4);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(254, 209, 0, 0.4);
    backdrop-filter: blur(5px);
}

.search-label {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--amarelo);
    margin-bottom: 4px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.search-sublabel {
    display: block;
    font-size: 0.92rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.05rem;
    border: 2px solid var(--amarelo);
    border-radius: 30px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--branco);
    border-radius: 8px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 100;
    display: none;
    text-align: left;
}

.search-results div {
    padding: 12px 20px;
    color: var(--azul);
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-results div:hover {
    background-color: var(--amarelo);
}

.search-footer-note {
    font-size: 0.85rem;
    color: #e0e0e0;
    margin-top: 8px;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.intro-text {
    background: var(--branco);
    padding: 30px;
    border-radius: 8px;
    border-left: 6px solid var(--verde);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.intro-text h3 {
    color: var(--azul);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.secao-destaque {
    background: #eef7f2;
    border: 2px solid var(--verde);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.secao-destaque h3 {
    color: var(--azul);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.cidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.card-cidade {
    background: var(--branco);
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    border-top: 4px solid var(--verde);
}

.card-cidade h4 {
    color: var(--azul);
    margin-bottom: 8px;
}

.btn-whats-card {
    display: inline-block;
    background-color: var(--whatsapp);
    color: var(--branco);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.secao-municipios {
    background: var(--branco);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.secao-municipios h4 {
    color: var(--azul);
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--verde);
    padding-bottom: 8px;
}

.grid-municipios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

.grid-municipios a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-municipios a:hover {
    background-color: var(--verde);
    color: var(--branco);
    border-color: var(--verde);
}

footer {
    background-color: var(--azul);
    color: var(--branco);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-top: 5px solid var(--verde);
}

.btn-whatsapp-flutuante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--whatsapp);
    color: var(--branco);
    border-radius: 50px;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.btn-whatsapp-flutuante:hover {
    transform: scale(1.08);
}

/* Modal Popup */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #ff4d4d;
    color: #fff;
    border: none;
    font-size: 22px;
    font-weight: bold;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    line-height: 35px;
    text-align: center;
    padding: 0;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}