html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: #f8f9fa;
}

.navbar {
    background-color: #1a2b49;
}

.navbar-brand img {
    height: 40px;
    max-width: 200px;
    object-fit: contain;
}

.nav-link {
    color: #fff;
    transition: color 0.3s ease;
}

.navbar-dark .nav-link:hover {
    /* color: #007bff !important; */
    color: #3280d3 !important;
}

.hero-section {
    background-color: #e9ecef;
    padding: 100px 0;
}

.services-section {
    background-color: #fff;
    padding: 60px 0;
}

/* Cards de serviços com altura igual usando Flexbox */
.services-section .row {
    display: flex;
    flex-wrap: wrap;
}

.services-section .row > [class*="col-"] {
    display: flex;
}

.services-section .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.services-section .card .btn {
    margin-top: auto;
}

/* Alinhar elementos internos dos cards à mesma altura */
.services-section .card h5 {
    min-height: 3.5em; /* Altura mínima para títulos (2 linhas) */
    display: flex;
    align-items: flex-start;
}

.services-section .card p {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.about-section {
    background-color: #f1f3f5;
    padding: 60px 0;
}

.contact-section {
    background-color: #1a2b49;
    color: white;
    padding: 60px 0;
}

.btn-primary {
    /* background-color: #007bff; */
    background-color: #3280d3;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    /* background-color: #007bff; */
}

.btn-outline-primary {
    color: #3280d3;
    border-color: #3280d3;
    transition: background-color 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: #3280d3;
    border-color: #3280d3;
}

.btn-outline-primary:active {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

#contact-form .form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    transition: opacity 0.5s;
    opacity: 0;
}

#contact-form .form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
}

#contact-form .form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
}

#contact-form .btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.g-recaptcha {
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.g-recaptcha > div {
    margin: 0 auto;
}

.lang-toggle {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

/* Estilo para o botão de tradução dentro do menu no desktop */
.lang-toggle-nav {
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white !important;
    background-color: transparent;
    line-height: 1.5;
}

.lang-toggle-nav:hover {
    /* background-color: rgba(255, 255, 255, 0.1); */
    border-color: rgba(255, 255, 255, 0.75);
    border-color: #3280d3;
    color: white !important;
    text-decoration: none;
}

.footer-tight {
    background-color: #1a2b49;
    color: white;
}

.footer-tight p {
    margin: 0;
}

/* Ajuste de scroll para seções com âncoras (evita que conteúdo fique cortado pelo navbar fixo) */
section[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

/* Mobile - até 768px */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px;
        max-width: 150px;
    }
    
    /* Reduzir espaçamento entre hero-section e about-section apenas no mobile */
    .hero-section {
        padding-bottom: 1.5rem; /* pb-4 do Bootstrap */
    }
    
    .about-section {
        padding-top: 1.5rem; /* pt-4 do Bootstrap */
    }
}

/* Tablet - até 991.98px */
@media (max-width: 991.98px) {
    /* Ajustar tamanho do hambúrguer no mobile para corresponder ao botão de tradução */
    /* Replicar exatamente os estilos do btn-outline-light */
    .navbar-toggler {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.800rem !important;
        border-radius: 0.25rem !important;
        height: auto !important;
        width: auto !important;
        min-width: auto !important;
        min-height: auto !important;
        /* Estilos do btn-outline-light */
        color: #f8f9fa;
        border: 1px solid #f8f9fa;
        background-color: transparent;
        display: inline-block;
        font-weight: 400;
        line-height: 1.5;
        text-align: center;
        text-decoration: none;
        vertical-align: middle;
        cursor: pointer;
        user-select: none;
        transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        margin: 0;
        box-sizing: border-box;
    }
    
    .navbar-toggler:hover {
        color: #000;
        background-color: #f8f9fa;
        border-color: #f8f9fa;
    }
    
    .navbar-toggler:focus {
        color: #000;
        background-color: #f8f9fa;
        border-color: #f8f9fa;
        box-shadow: 0 0 0 0.25rem rgba(248, 249, 250, 0.5);
    }
    
    .navbar-toggler:active,
    .navbar-toggler.active {
        color: #000;
        background-color: #f8f9fa;
        border-color: #f8f9fa;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28248, 249, 250, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .navbar-toggler:hover .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Desktop - a partir de 992px */
@media (min-width: 992px) {
    /* No desktop, esconde o botão ao lado do hambúrguer */
    .lang-toggle {
        display: none !important;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
        align-items: center;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0.25rem 0.75rem !important;
    }
}
