/* Design System RSA */
:root {
    --rsa-primary: #0E6973;
    /* Teal Profundo */
    --rsa-secondary: #118C8C;
    /* Cyan Energético */
    --rsa-support: #BAD9C3;
    /* Verde Pálido */
    --rsa-accent: #F2BB16;
    /* Amarelo Vibrante */
    --rsa-contrast: #BF820F;
    /* Bronze */
    --rsa-text: #333333;
    /* Cinza Escuro */
    --rsa-bg-light: #F8F9FA;
    --rsa-glass: rgba(255, 255, 255, 0.7);
    --rsa-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--rsa-text);
    background-color: var(--rsa-bg-light);
    line-height: 1.6;
}

.letter {
    color: #F2BB16;
    font-weight: bold;
    border: 0px solid #BF820F;
    border-radius: 20%;
    /* padding: 2px; */
}

h1,
h2,
.h1,
.h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 36px;
}

h3,
h4,
.section-header {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-italic {
    font-family: 'Lato', sans-serif;
    font-style: italic;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--rsa-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(14, 105, 115, 0.1);
}

.navbar-glass {
    background: rgba(14, 105, 115, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--rsa-transition);
}

.navbar-brand {
    transition: var(--rsa-transition);
}

.nav-brand-box {
    font-size: 1rem;
    white-space: nowrap;
    transition: var(--rsa-transition);
}

.slogan-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navbar Toggle Customization */
.navbar-toggler {
    border: none;
    padding: 8px;
    transition: var(--rsa-transition);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(14, 105, 115, 0.98);
        margin: 15px -15px 0 -15px;
        padding: 20px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 12px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

@media (max-width: 575.98px) {
    .nav-brand-box {
        font-size: 0.9rem;
        padding: 4px 8px !important;
    }
    
    .navbar-brand {
        margin-right: 0;
    }
}

/* Custom Buttons */
.btn-rsa {
    background: var(--rsa-accent);
    color: var(--rsa-primary);
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
}

.btn-rsa:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 187, 22, 0.4);
    background: var(--rsa-contrast);
    color: white;
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--rsa-primary) 0%, var(--rsa-secondary) 100%);
    color: white;
}

.hero-placeholder {
    width: 100%;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

/* Utility */
.section-padding {
    padding: 80px 0;
}

.text-rsa-primary {
    color: var(--rsa-primary);
}

.text-rsa-secondary {
    color: var(--rsa-secondary);
}

/* RSA Method Steps */
.rsa-steps-container {
    position: relative;
    padding-left: 10px;
}

.rsa-step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    transition: var(--rsa-transition);
    padding: 15px;
    border-radius: 12px;
}

.rsa-step-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateX(10px);
}

.rsa-icon-box {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--rsa-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(14, 105, 115, 0.2);
}

.rsa-step-content h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    color: var(--rsa-primary);
    display: flex;
    align-items: center;
}

.rsa-step-content p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.bmc-container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--rsa-transition);
    height: 100%;
}

.bmc-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.bmc-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.bmc-image-wrapper {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.bmc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 105, 115, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: var(--rsa-transition);
    backdrop-filter: blur(2px);
}

.bmc-image-wrapper:hover .bmc-overlay {
    opacity: 1;
}

.bmc-overlay i {
    font-size: 2rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--rsa-transition);
}

.bmc-image-wrapper:hover .bmc-overlay i {
    transform: translateY(0);
}

.bmc-overlay span {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}


/* ---------- Balão de informação -----------*/
/* Container que envolve a palavra e o botão */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: default;
}

/* O pequeno botão de interrogação */
.tooltip-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    cursor: pointer;
    position: absolute;
    top: -10px;
    /* Ajusta a altura (sobrescrito) */
    right: -5px;
    /* Posiciona à direita da palavra */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* O balão informativo (escondido por padrão) */
.tooltip-text {
    visibility: hidden;
    width: 160px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    /* Aparece acima da palavra */
    left: 50%;
    margin-left: -80px;
    /* Centraliza o balão */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1.4;
}

/* Accordion RSA (FAQ) */
.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 10px !important;
}

.accordion-button {
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 10px !important;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--rsa-support);
    color: var(--rsa-primary);
    box-shadow: none;
}

/* Custom Icon for Accordion (+ / -) */
.accordion-button::after {
    content: "\f067";
    /* FontAwesome Plus */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    background-image: none;
    transform: none;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    content: "\f068";
    /* FontAwesome Minus */
    transform: rotate(180deg);
}

.accordion-body {
    font-size: 1.05rem;
    color: #555;
    padding: 0 20px 25px;
}

/* Seta do balão */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Footer Styling */
footer {
    background-color: var(--rsa-primary) !important;
    padding: 60px 0 30px;
    border-top: 5px solid var(--rsa-secondary);
}

footer p {
    color: rgba(255, 255, 255, 0.9);
}

footer .footer__socials a {
    color: #ffffff;
    font-size: 24px;
    transition: all 0.3s ease;
    display: inline-block;
}

footer .footer__socials a:hover {
    color: var(--rsa-accent);
    transform: scale(1.2);
}

footer .small.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Mostrar o balão ao clicar (focus) ou passar o mouse */
.tooltip-btn:focus+.tooltip-text,
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}