* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    color: #4a4a4a;
}

header {
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* NAVBAR - Layout Centralizado Vertical */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 3vw;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* LOGO */
.logo {
    max-width: 180px;
    height: auto;
}

.logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* MENU - Versão desktop (centralizado) */
.menu {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 2rem;
}

.menu a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: #4a4a4a;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #7c1c64;
}

/* Container para agrupar idioma e hamburger (apenas mobile) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* SELETOR DE IDIOMA - Versão refinada com COR SÓLIDA */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #2c246c !important;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(44, 36, 108, 0.1);
    background-image: none !important;
}

.language-btn:hover {
    background-color: #3d2f8f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(44, 36, 108, 0.2);
    background-image: none !important;
}

.language-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(44, 36, 108, 0.1);
}

.language-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dropdown de idiomas - Animação suave */
.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: #4a4a4a;
}

.language-option:hover {
    background-color: #f8f9fc;
}

.language-option img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.language-option span {
    color: #4a4a4a;
    font-size: 0.95rem;
    font-weight: 500;
}

/* HAMBURGER MENU - Escondido no desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid #7c1c64;
    border-radius: 12px;
    cursor: pointer;
    z-index: 2000;
    transition: all 0.3s ease;
    padding: 0;
}

.hamburger:hover {
    border-color: #2c246c;
    background: rgba(124, 28, 100, 0.05);
    transform: translateY(-2px);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #7c1c64;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: #2c246c;
}

/* Animação do X quando ativo */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    width: 25px;
    background: #2c246c;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    width: 25px;
    background: #2c246c;
}

/* MOBILE / TABLET */
@media (max-width: 900px) {
    /* Mostra o hamburger */
    .hamburger {
        display: flex;
    }
    
    /* Aumenta o logotipo no mobile */
    .logo {
        max-width: 200px;
    }
    
    /* Ajusta o menu para versão mobile */
    .menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 25px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1500;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        border-left: 3px solid #7c1c64;
        margin: 0;
        flex: none;
        justify-content: flex-start;
    }

    .menu.active {
        right: 0;
    }

    .menu a {
        font-size: 1.1rem;
        color: #4a4a4a;
        padding: 15px 0;
        width: 100%;
        transition: all 0.3s ease;
        border-bottom: 1px solid #7c1c64;
    }

    .menu a:last-child {
        border-bottom: none;
    }

    .menu a:hover {
        color: #7c1c64;
        padding-left: 10px;
        background: transparent;
    }

    /* Ajustes para o container de ações no mobile */
    .nav-actions {
        gap: 8px;
    }
}

/* Overlay para fechar o menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1400;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* RESPONSIVIDADE */
@media (max-width: 700px) {
    .navbar {
        padding: 15px 16px;
    }

    .logo {
        max-width: 180px;
    }
    
    .language-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 500px) {
    .logo {
        max-width: 160px;
    }
    
    .hamburger {
        width: 40px;
        height: 40px;
    }
    
    .hamburger span {
        width: 22px;
    }
    
    .language-btn {
        padding: 6px 10px;
    }
    
    .language-btn img {
        width: 18px;
        height: 18px;
    }
}

section.container > div.img_tamandaré{
    position: relative;
    padding: 60px;
    padding-top: 60px;
    top: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img_container{
    width: 40%;
}

main > section.nossos_servicos{
    position: relative;
    width: 100%;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2em;
    top: 110px;
}

main > section.nossos_servicos > h1.titulo{
    position: relative;
    margin-bottom: 20px;
    color: #4a4a4a;
}

/* SEÇÃO DE SERVIÇOS */
.servicos {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 60px 5vw;
    background-color: #fff;
}

.card {
    flex: 1 1 230px;
    max-width: 250px;
    background: #fff;
    border-radius: 40px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 520px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px #7c1c64;
}

.card i {
    font-size: 2.5rem;
    color: #7c1c64;
    margin-bottom: 25px;
}

.card h3 {
    font-size: 1.2rem;
    color: #4a4a4a;
    margin-bottom: 20px;
    font-weight: bold;
}

.card p {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.5rem;
}

/* Responsivo serviços */
@media (max-width: 1000px) {
    .servicos {
        flex-direction: column;
        align-items: center;
    }

    .card {
        max-width: 90%;
        height: auto;
    }
}

/* Estilização da seção Nossos Serviços */
.nossos_servicos {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.nossos_servicos p {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-top: 20px;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .nossos_servicos {
        max-width: 95%;
        padding: 20px;
    }

    .nossos_servicos p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* SEÇÃO NOSSOS CLIENTES */
.clientes {
    background: linear-gradient(to bottom, #ffffff, #f3f5ff);
    text-align: center;
    padding: 80px 5vw;
}

.clientes h2 {
    font-size: 2rem;
    color: #4a4a4a;
    margin-bottom: 10px;
    font-weight: 800;
}

.clientes p {
    color: #4a4a4a;
    font-size: 1rem;
    margin-bottom: 50px;
}

.clientes .logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.clientes .logos img {
    width: 130px;
    height: auto;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.clientes .logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Responsivo clientes */
@media (max-width: 900px) {
    .clientes .logos img {
        width: 100px;
    }
}

.container-contato {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #fdfdff;
    padding: 40px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
    width: 90%;
    max-width: 1000px;
}

/* LADO ESQUERDO */
.contato-info {
    width: 45%;
}

.contato-info h2 {
    font-size: 1.8em;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.contato-info h3 {
    margin-top: 15px;
    font-size: 1.1em;
    color: #4a4a4a;
}

.contato-info p {
    margin-top: 8px;
    line-height: 1.4em;
    color: #4a4a4a;
}

.icon {
    color: #7c1c64;
    margin-right: 8px;
}

iframe {
    margin-top: 20px;
    border-radius: 8px;
    width: 100%;
    height: 220px;
    border: 0;
}

/* LADO DIREITO (FORMULÁRIO) */
.formulario {
    width: 48%;
}

.formulario h2 {
    font-size: 1.8em;
    color: #4a4a4a;
    margin-bottom: 5px;
}

.formulario p {
    color: #4a4a4a;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-weight: bold;
    font-size: 0.9em;
    color: #4a4a4a;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95em;
    color: #4a4a4a;
}

input:focus, textarea:focus {
    border-color: #7c1c64;
    outline: none;
    box-shadow: 0 0 5px rgba(124, 28, 100, 0.2);
}

/* Estilo padrão para botões (com gradiente) */
button {
    background: linear-gradient(135deg, #7c1c64, #2c246c);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em;
    margin-top: 10px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: linear-gradient(135deg, #2c246c, #7c1c64);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 28, 100, 0.2);
}

/* EXCEÇÃO: Botão de idioma NÃO tem gradiente, apenas cor sólida */
.language-btn {
    background: #2c246c !important;
    background-image: none !important;
}

.language-btn:hover {
    background: #3d2f8f !important;
    background-image: none !important;
}

.aviso {
    font-size: 0.8em;
    color: #777;
    text-align: center;
    margin-top: 8px;
}

/* SEÇÃO SOBRE / VALORES */
.sobre {
    width: 100%;
    text-align: center;
    padding: 60px 10%;
    background-color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.sobre h1 {
    font-size: 2em;
    color: #4a4a4a;
    margin-bottom: 15px;
}

.sobre p {
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #4a4a4a;
    line-height: 1.6em;
    font-size: 1em;
}

.valores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.card-valor {
    background-color: #f8f9fc;
    border-radius: 15px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.08);
    width: 200px;
    padding: 20px 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-valor:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(124, 28, 100, 0.15);
}

/* Imagens dos cards */
.card-valor .img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.card-valor .img-container img {
    width: 60px;
    height: auto;
    transition: all 0.4s ease;
}

.card-valor:hover .img-container img {
    transform: scale(1.05);
}

.card-valor h3 {
    color: #7c1c64;
    font-size: 1.05em;
    margin-bottom: 8px;
}

.card-valor p {
    color: #4a4a4a;
    font-size: 0.9em;
    line-height: 1.4em;
}

/* Responsivo valores */
@media (max-width: 900px) {
    .card-valor {
        width: 80%;
        max-width: 280px;
    }
}

/* Força footer no final */
main {
    flex: 1;
}

.footer {
    background: linear-gradient(135deg, #7c1c64, #2c246c);
    color: #fff;
    padding: 50px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1 1 220px;
    min-width: 200px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
    color: white;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 240px;
    color: rgba(255,255,255,0.9);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    font-size: 14px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.9);
    transition: opacity 0.3s ease;
    cursor: default;
}

.footer-col ul li.hover-effect:hover {
    opacity: 0.7;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    opacity: 0.7;
}

.footer-copy {
    text-align: center;
    padding-top: 30px;
    font-size: 13px;
    opacity: .85;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 30px;
    color: rgba(255,255,255,0.9);
}

/* Responsivo footer */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer-col p {
        margin: 0 auto;
    }
}

/* BOTÃO TOPO - Versão simplificada e garantida */
.btn-topo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, #7c1c64, #5e154b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(124, 28, 100, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    opacity: 0.9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.btn-topo:hover {
    background: linear-gradient(145deg, #2c246c, #1f1b4f);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(44, 36, 108, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.btn-topo:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 8px rgba(124, 28, 100, 0.3);
}

.btn-topo-icon {
    width: 24px;
    height: 24px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    pointer-events: none;
}

/* Responsivo botão topo */
@media (max-width: 768px) {
    .btn-topo {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
    
    .btn-topo-icon {
        width: 20px;
        height: 20px;
    }
}

#modal-login-secreto {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
}

.login-box {
    background-color: #fff;
    width: 320px;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.login-box h3 {
    color: #4a4a4a;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    color: #4a4a4a;
}

.login-box button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #7c1c64, #2c246c);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.login-box button:hover {
    background: linear-gradient(135deg, #2c246c, #7c1c64);
}

.btn-fechar { 
    background: #666 !important; 
}

.btn-fechar:hover { 
    background: #555 !important; 
}

.trigger-invisivel { 
    opacity: 0.01; 
    cursor: default; 
}