/* =====================
   VARIÁVEIS E UTILITÁRIOS
   ===================== */
:root {
    --oia-dark:    #010c1e;
    --oia-soft:    #F3E5D6;
    --oia-white:   #ffffff;
    --oia-primary: #F3E5D6;
    --navbar-h:    100px;
}

.bg-oia-dark  { background-color: var(--oia-dark)  !important; }
.bg-oia-soft  { background-color: var(--oia-soft)  !important; }
.text-oia-soft { color: var(--oia-soft)             !important; }
.text-oia-dark { color: var(--oia-dark)             !important; }

/* =====================
   BASE
   ===================== */
html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,"Segoe UI", sans-serif;
    background-color: var(--oia-dark);
    color: #222;
    overflow-x: hidden !important;
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
    height: var(--navbar-h);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(1, 12, 30, 0.96) !important;
    z-index: 1050; /* acima de tudo */
}

.logo-navbar {
    height: 64px !important;
    width: auto;
}

.navbar .nav-link {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 1rem;
    position: relative;
    transition: color 0.2s;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--oia-soft);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 2px;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}
/* =====================
   HERO SECTION
   ===================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;

    /* Este é o background que vai APARECER por baixo do vídeo */
    background: radial-gradient(
        circle at 25% 40%,
        #1c2b4d 0%,
        #010c1e 55%,
        #00010a 100%
    );
}

/* Wrapper do vídeo */
.video-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Vídeo com opacidade direta — simples e eficaz
   O background da section aparece onde o vídeo
   é semi-transparente, sem mix-blend-mode        */
.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;

    /* CHAVE: opacidade do próprio elemento vídeo
       0.0 = invisível | 1.0 = totalmente opaco
       0.55 = vídeo aparece 55%, background 45%  */
    opacity: 0.55;
}

/* Fallback mobile — imagem com mesma opacidade */
.video-background .mobile-fallback {
    width: 100%;
    height: 100%;
}

.video-background .mobile-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55; /* mesma opacidade do vídeo */
}

/* Overlay com degradê SUAVE por cima do vídeo já semi-transparente
   Ajuda a escurecer mais a base e as bordas para texto legível     */
.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        155deg,
        rgba(1, 12, 30, 0.30) 0%,    /* topo — leve, deixa o vídeo respirar  */
        rgba(1, 12, 30, 0.20) 40%,   /* centro — mínimo para não sufocar      */
        rgba(1, 12, 30, 0.55) 100%   /* base — mais escuro para o degradê     */
    );
}

/* Conteúdo sempre acima de tudo */
.hero-content {
    position: relative;
    z-index: 10;
    padding-top: calc(var(--navbar-h) + 20px);
    padding-bottom: 80px;
}

/* Degradê de transição inferior → funde com #F3E5D6 do #sobre */
.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent                    0%,
        rgba(243, 229, 214, 0.15)     45%,
        rgba(243, 229, 214, 0.70)     78%,
        #F3E5D6                       100%
    );
}

/* ── Mobile ── */
@media (max-width: 767.98px) {
    .hero-content {
        padding-top: calc(var(--navbar-h) + 10px);
        padding-bottom: 150px;
        text-align: center;
    }

    .hero-content .d-flex {
        justify-content: center;
    }

    .hero-section h1      { font-size: 2rem; }
    .hero-section .lead   { font-size: 1rem; }
    .hero-gradient-bottom { height: 130px;   }
}

/* ── Mobile ── */
@media (max-width: 767.98px) {
    .hero-content {
        padding-top: calc(var(--navbar-h) + 10px);
        padding-bottom: 140px;
        text-align: center;
    }

    .hero-content .d-flex {
        justify-content: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-gradient-bottom {
        height: 120px;
    }
}
/* =====================
   SEÇÃO SOBRE
   ===================== */
#sobre {
    /* Começa exatamente onde o degradê do hero termina */
    background-color: var(--oia-soft);
}

/* =====================
   TEXTOS DE SEÇÃO
   ===================== */
.section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8a6b46;
    margin-bottom: 0.5rem;
}

.section-title {
    font-weight: 800;
    line-height: 1.2;
}

/* =====================
   CARDS DE DIFERENCIAIS
   ===================== */
.card-feature {
    background: linear-gradient(145deg, #11192b 0%, #020a18 100%);
    border: 1px solid rgba(243, 229, 214, 0.15);
    border-radius: 20px;
    color: #eee;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.card-feature .card-body {
    padding: 2rem 1.75rem;
}

/* =====================
   BADGES INFORMATIVOS
   ===================== */
.info-badge {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background-color: #f7eee4;
    border-radius: 14px;
    transition: background-color 0.2s;
}

.info-badge:hover { background-color: #eedecb; }

.info-badge i {
    font-size: 1.6rem;
    color: #b0894f;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-badge h6 {
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--oia-dark);
}

.info-badge p {
    margin: 0;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.4;
}

/* =====================
   BOTÕES
   ===================== */
.btn-oia-primary {
    background-color: var(--oia-soft);
    color: var(--oia-dark);
    border-radius: 999px;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background-color 0.2s, transform 0.15s;
    box-shadow: 0 4px 18px rgba(243, 229, 214, 0.25);
}

.btn-oia-primary:hover {
    background-color: #e6d1ba;
    color: var(--oia-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-radius: 999px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s, transform 0.15s;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* =====================
   FORMULÁRIO
   ===================== */
.form-control,
.form-select {
    border-radius: 10px;
    border: 1.5px solid #d8c9b8;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: #b0894f;
    box-shadow: 0 0 0 0.2rem rgba(176, 137, 79, 0.2);
}

/* =====================
   CARROSSEL
   ===================== */
#carouselOIA .carousel-item img {
    height: 480px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767.98px) {
    #carouselOIA .carousel-item img {
        height: 240px;
    }
}

/* =====================
   RODAPÉ
   ===================== */
.footer {
    border-top: 1px solid rgba(243, 229, 214, 0.1);
}

.logo-footer {
    height: 44px;
    width: auto;
	color: var(--oia-soft);
}

.footer-contact a {
    font-size: 0.88rem;
    transition: color 0.2s;
	color: var(--oia-soft);
}

.footer-contact a:hover {
    color: var(--oia-soft) !important;
}

/* =====================
   BOTÃO WHATSAPP FIXO
   ===================== */
.btn-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-whatsapp:hover {
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
}

/* Pulso animado no WhatsApp */
.btn-whatsapp::before {
    content: '';
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.35);
    animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.9); opacity: 0;   }
}

/* =====================
   BOTÃO SCROLL-TOP
   ===================== */
.btn-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 88px;
    z-index: 1039;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: rgba(243, 229, 214, 0.92);
    color: var(--oia-dark);
    display: none;           /* visível via JS com .show */
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
}

.btn-scroll-top:hover {
    background-color: var(--oia-soft);
    transform: translateY(-3px);
}

.btn-scroll-top.show {
    display: flex;
}