/* =========================
   Tema base / Variáveis
   ========================= */
:root {
    --bg: #000;
    --bg-2: #0f0f10;
    --text: #fff;
    --text-2: #e9ecef;
    --muted: #bbb;
    --border: #343a40;
    --accent: #ffc107;
    --radius: 12px;
    --space-1: .5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
}

/* Reset leve e base */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* Links */
a {
    color: inherit;
}

a:hover {
    opacity: .9;
}

/* =========================
   Header / Navegação
   ========================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

header .logo {
    height: 56px;
    width: 56px;
    object-fit: cover;
    border-radius: 50%;
}

nav a {
    margin: 0 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

/* =========================
   Hero (banner / carrossel)
   ========================= */
.hero {
    position: relative;
    text-align: center;
    color: var(--text);
    padding: clamp(72px, 12vh, 140px) 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, .85), rgba(20, 20, 20, .85));
}

.carousel-item img {
    height: clamp(320px, 62vh, 720px);
    width: 100%;
    object-fit: cover;
}

.text-shadow {
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

/* =========================
   Seções / Layout
   ========================= */
section {
    padding: 50px 20px;
}

.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-2);
}

.card.destaque {
    background: #111;
    color: var(--text);
    border-color: var(--accent);
}

/* =========================
   Formulários
   ========================= */
form {
    display: grid;
    gap: 10px;
}

form input,
form textarea,
form select,
form button {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-2);
    color: var(--text-2);
}

form input::placeholder,
form textarea::placeholder {
    color: #8a8a8a;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #495057;
}

form button {
    background: #1b1b1b;
    color: var(--text);
    cursor: pointer;
    border-color: #1b1b1b;
    transition: transform .12s ease, opacity .2s ease;
}

form button:hover {
    transform: translateY(-1px);
}

/* =========================
   Rodapé
   ========================= */
footer {
    text-align: center;
    padding: 20px;
    background: #0b0b0b;
    color: #cfcfcf;
    border-top: 1px solid var(--border);
}

/* =========================
   Botões de Contato (ícones grandes)
   ========================= */
.contato-botoes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contato-botoes a img {
    width: 160px;
    height: 160px;
    border: none;
    transition: transform .2s ease;
}

.contato-botoes a img:hover {
    transform: scale(1.05);
}

.botao-whatsapp img,
.botao-instagram img {
    background: none;
}

/* =========================
   Social (ícone + texto)
   ========================= */
.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
    font-weight: bold;
}

.social-links img {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    transition: transform .2s ease;
}

.social-links img:hover {
    transform: scale(1.08);
}

/* =========================
   Vídeo (seção genérica)
   ========================= */
.video {
    background: #121212;
}

.video video {
    width: 100%;
    max-width: 960px;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* =========================
   Botões sociais (gradientes)
   ========================= */
.btn-whatsapp,
.btn-instagram,
.btn-facebook,
.btn-twitter {
    border: none;
    color: #fff !important;
    font-weight: 600;
    padding: .6rem 1rem;
    border-radius: 10px;
    transition: transform .12s ease, opacity .2s ease, filter .2s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.btn-whatsapp:hover,
.btn-instagram:hover,
.btn-facebook:hover,
.btn-twitter:hover {
    opacity: .95;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25d366, #20ba5c, #128c7e);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-facebook {
    background: linear-gradient(45deg, #1877f2, #166fe5, #0d65d9);
}

.btn-twitter {
    background: linear-gradient(45deg, #1DA1F2, #0d8ddb, #0077b5);
}

/* =========================
   Utilitários úteis
   ========================= */
.border-secondary {
    border-color: var(--border) !important;
}

.bg-black {
    background: var(--bg) !important;
}

.bg-dark {
    background: var(--bg-2) !important;
}

.text-muted-2 {
    color: var(--muted);
}

/* =========================
   Responsividade fina
   ========================= */
@media (max-width: 576px) {
    nav a {
        margin: 0 6px;
    }

    .contato-botoes a img {
        width: 120px;
        height: 120px;
    }

    .social-links {
        gap: 24px;
    }
}

/* ===== Destaque do subtítulo “Quem Somos” ===== */
.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--accent);
    position: relative;
    padding-bottom: .25rem;
}

.section-eyebrow::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ffd65a);
    border-radius: 999px;
    opacity: .9;
}

/* ===== Título chamativo ===== */
.section-title-xl {
    font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
    line-height: 1.1;
    font-weight: 900;
    color: #fff;
    margin: .35rem 0 1rem 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}

.text-glow {
    background: linear-gradient(180deg, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Cards KPI turbinados ===== */
.kpi-card-boost {
    background: #0f0f10;
    border: 1px solid #343a40;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.kpi-card-boost:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
    border-color: #4b5563;
}

.kpi-title-boost {
    font-size: clamp(1.75rem, 2.8vw, 2.4rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .35rem;
}

.kpi-sub-boost {
    color: #bfc3c8;
    font-size: .95rem;
}

/* ===== Animações on-scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-reveal-delay] {
    transition-delay: calc(var(--reveal-delay, 0ms));
}

@keyframes shine {
    0% {
        text-shadow: 0 0 0 rgba(255, 193, 7, 0);
    }

    60% {
        text-shadow: 0 0 24px rgba(255, 193, 7, .45);
    }

    100% {
        text-shadow: 0 0 0 rgba(255, 193, 7, 0);
    }
}

.shine-once.is-visible {
    animation: shine 1.4s ease both;
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .kpi-card-boost,
    .kpi-card-boost:hover {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Texto justificado e recuo */
.text-justify,
.text-justify p,
.text-justify .lead {
    text-align: justify !important;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
}

.text-justify p {
    text-indent: 2em;
    margin-bottom: 1rem;
    text-align-last: auto;
}

@media (max-width: 576px) {
    .text-justify p {
        text-indent: 1em;
    }
}

.text-light-muted {
    color: rgba(255, 255, 255, 0.75);
}

/* BOTÃO FLUTUANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* =========================
   Modal de Serviços (galeria)
   ========================= */
#servicoModal .modal-dialog {
    width: auto;
    max-width: 60vw;
    min-width: 320px;
}

#servicoModal .modal-content {
    display: flex;
    flex-direction: column;
    background: #000;
    max-height: 90vh;
    border-radius: .75rem;
}

#servicoModal .modal-header,
#servicoModal .modal-footer {
    flex: 0 0 auto;
}

#servicoModal .modal-body {
    flex: 1 1 auto;
    overflow: hidden;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#servicoModal video,
#servicoModal img {
    width: auto;
    height: auto;
    max-width: 55vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: .5rem;
    background: #000;
}

#servicoModal .modal-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   Depoimentos (avatar com vídeo)
   ========================= */
/* Esconde wrappers antigos e qualquer vídeo que não seja o da bolinha */
#depoimentos .carousel-item .ratio,
#depoimentos .carousel-item .embed-responsive {
    display: none !important;
}

#depoimentos .carousel-item video {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Mostra e dimensiona apenas o vídeo circular do avatar */
#depoimentos .depo-avatar .depo-video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
}

/* Bolinha responsiva com clamp() */
#depoimentos .depo-avatar {
    width: clamp(80px, 12vw, 300px);
    height: clamp(80px, 12vw, 300px);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--bs-secondary);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .6s ease, border-color .6s ease, box-shadow .6s ease;
}

#depoimentos .carousel-item {
    min-height: 220px;
}

/* Fade suave entre slides + destaque na bolinha ativa */
#carouselDepo.carousel.fade .carousel-item {
    opacity: 0;
    transition: opacity .8s ease-in-out;
}

#carouselDepo.carousel.fade .carousel-item.active,
#carouselDepo.carousel.fade .carousel-item-next.carousel-item-start,
#carouselDepo.carousel.fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
    transform: none;
}

#carouselDepo.carousel.fade .carousel-item-start,
#carouselDepo.carousel.fade .carousel-item-end {
    opacity: 0;
    transform: none;
}

#carouselDepo .carousel-item.active .depo-avatar {
    transform: scale(1.12);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(255, 193, 7, .4);
    animation: depo-glow 1.8s ease;
}

@keyframes depo-glow {
    0% {
        box-shadow: 0 0 0 rgba(255, 193, 7, 0);
    }

    40% {
        box-shadow: 0 0 18px rgba(255, 193, 7, .6);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* =========================
   Acessibilidade / utilitários Bootstrap
   ========================= */
/* Garante que .visually-hidden continue invisível (evita letras aparecendo nos botões) */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#carouselDepo .visually-hidden {
    position: absolute !important;
    clip: rect(0, 0, 0, 0) !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

#contato .container-xxl {
    max-width: 760px;
}

#contato form {
    margin: 0 auto;
}