:root {
    --primary: #00467f;
    --secondary: #39b54a;
    --bg: #f7fafd;
    --dark: #222;
    --gray: #8e99ab;
    --white: #fff;
    --accent: #eec44b;
    font-size: 16px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f7f7;
}


header {
    background: linear-gradient(120deg, rgba(0, 70, 127, 0.8), rgba(57, 181, 74, 0.8));
    color: var(--white);
    padding: 2rem 0 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header:after {
    content: "";
    background: url('../img/topo.png') no-repeat center center/cover;
    opacity: 0.8;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
}


header > * {
    position: relative;
    z-index: 1;
}

nav {
    margin-bottom: 2rem;
}

nav button {
    background: transparent;
    border: none;
    color: var(--white);
    font-weight: bold;
    font-size: 1rem;
    margin: 0 1rem;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    font-family: 'Montserrat', sans-serif;
}

nav button.active, nav button:hover {
    border-bottom: 2px solid var(--accent);
}

.container {
    max-width: 1000px;
    margin: -5rem auto 0 auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 32px 0 rgba(15, 23, 42, 0.14);
    padding: 2.5rem 1.5rem 3rem 1.5rem;
    position: relative;
    z-index: 2;
    min-height: 350px;
    margin-bottom: 2rem;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-size: 2rem;
    margin-top: 0;
}

h2 {
    margin: 1rem 0 0.7rem 0;
    color: var(--primary);
}

h3 {
    color: var(--secondary);
}

.lead {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    color: var(--gray); /* Cor original */
}

/* Regra adicionada para tornar o .lead branco dentro do header */
header .lead {
    color: var(--white);
}

.cta, .main-btn {
    background: linear-gradient(90deg, var(--primary) 70%, var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 30px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.04em;
    text-align: center;
    margin: 1.7rem 0 0 0;
    cursor: pointer;
    box-shadow: 0 2px 16px 0 rgba(0, 65, 100, 0.10);
    transition: filter 0.19s;
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
}

.cta:hover, .main-btn:hover {
    filter: brightness(1.08);
}

.services-grid, .area-map, .values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.service-card {
    background: var(--bg);
    border-radius: 10px;
    flex: 1 1 300px;
    min-width: 270px;
    max-width: 370px;
    box-shadow: 0 0.5px 6px 0 rgba(0, 0, 0, 0.04);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.18s;
}

.service-card:hover {
    box-shadow: 0 2px 18px 0 rgba(60, 120, 200, 0.06);
}

.service-card img {
    width: 100%;
    max-width: 240px;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.values-list {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 1.14rem;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem 4%;
}

.contact-grid > div {
    flex: 1 1 290px;
    min-width: 220px;
}

label {
    display: block;
    font-size: 1.1rem;
    margin-top: 1.3rem;
    margin-bottom: 0.5rem;
}

input, textarea {
    width: 97%;
    padding: 0.6rem 0.9rem;
    border: 1px solid #d9dbe4;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    margin-bottom: 0.7rem;
    background: #f9fbfc;
    font-family: inherit;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.success-msg, .error-msg {
    font-size: 1rem;
    padding: 0.65rem;
    background: #ceeada;
    color: #258a31;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.error-msg {
    background: #ffe4e6;
    color: #b7093d;
}



.map-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 1rem;
}

.estado-bloco {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-btn {
    background-color: #1a5c8a;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.map-btn:hover {
    background-color: #144870;
}





.map-btn:hover {
    opacity: 1;
    background: var(--secondary);
}

.client-list {
    margin-top: 1rem;
}

.client-list strong {
    color: var(--primary);
}

.footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 2rem 0 1.3rem 0;
    font-size: 1.05rem;
    font-family: 'Montserrat', sans-serif;
    margin-top: -0.7rem;
    border-radius: 20px 20px 0 0;
}

@media (max-width: 630px) {
    header, .container {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }

    .container {
        padding: 2rem 0.3rem 2.2rem 0.3rem;
    }

    .services-grid, .area-map, .contact-grid {
        flex-direction: column;
        gap: 1.4rem;
    }

    nav button {
        margin: 0 0.5rem;
    }
}

/* Chat Button */
/* Botão flutuante do WhatsApp */
.whatsapp-button {
  position: fixed;
  width: 62px;
  height: 62px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  border: 2px solid #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  background-color: #128C7E;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Pequeno efeito pulsante */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.whatsapp-button {
  animation: pulse 3s infinite ease-in-out;
}




.error-msg {
    color: #c62828;
    background: #f8d7da;
    padding: 10px;
    border-radius: 5px;
}

.success-msg {
    color: green;
    font-weight: bold;
    padding: 0.5rem;
    background: #eaffea;
    border: 1px solid green;
    border-radius: 5px;
}

.error-msg {
    color: red;
    font-weight: bold;
    padding: 0.5rem;
    background: #ffeaea;
    border: 1px solid red;
    border-radius: 5px;
}


form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', sans-serif;
}

form h2 {
    color: #003366;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #003366;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #39b54a;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form button[type="submit"] {
    background: linear-gradient(to right, #003366, #39b54a);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

form button[type="submit"]:hover {
    opacity: 0.9;
}

.success-msg,
.error-msg {
    padding: 0.75rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
}

.error-msg {
    background: #fdecea;
    color: #b30000;
    border: 1px solid #f5a5a5;
}

.btn-cta {
    background: linear-gradient(to right, #00467f, #39b54a);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-cta:hover {
    transform: scale(1.03);
    opacity: 0.95;
}

.btn-cta,
.main-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-cta:hover,
.main-btn:hover {
    background-color: var(--secondary);
}



@media (hover: none) {
    path:hover {
        fill: #00467f; /* se quiser manter o destaque mesmo sem hover */
    }
}

.map-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    text-align: center;
    padding: 0.5rem 0;
}

.map-container object {
    width: 100%;
    height: auto;
    max-width: 600px;
    min-width: 300px;
    border-radius: 6px;
    box-shadow: 0 0.5px 12px rgba(0, 0, 0, 0.09);
}


.client-list {
    border-left: 4px solid #39b54a; /* Verde */
    padding-left: 1rem; /* Espaço entre a linha e o conteúdo */
    margin-top: 1rem;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* duas colunas fixas */
    gap: 2rem;
    margin-top: 1rem;
}

.service-card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.service-card img {
    width: 100%;
    max-width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 48px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#clients-area {
    transition: all 0.3s ease;
    min-height: 100px;
}

#clients-area {
    transition: all 0.3s ease;
    min-height: 100px;
}



/* Container geral da seção */
#tab-areas {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Título */
#tab-areas h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.map-brazil {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
    width: 100%;
    padding: 0;
}



/* Linha de estados (blocos horizontais) */
.estado-bloco {
    display: inline-block;
    margin: 0 0.5rem;
    text-align: center;
    vertical-align: top;
}

/* Botões dos estados */
.map-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.map-btn:hover {
    background-color: #04bd66;
}

/* Card de clientes */
.card-area {
    min-height: 60px;
    margin-top: 0.5rem;
}

.card-clientes {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    text-align: left;
    animation: fadeIn 0.3s ease-in-out;
}

.card-clientes strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.card-clientes ul {
    padding-left: 1.2rem;
    margin: 0;
}

.card-clientes li {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}

.card-clientes button {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.4rem 0.8rem;
    margin-top: 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}


main {
    flex: 1;
}

.map-tooltip {
    display: none;
    position: fixed;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 100px;
    pointer-events: auto;
}

.map-tooltip .tooltip-content {
    position: relative;
}

.map-tooltip .close-tooltip {
    margin-top: 10px;
    padding: 5px 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#map-container {
    position: relative;
    width: 70%;
    height: 70%;
}