﻿/* =========================================================
   HIL DIGITAL — stylesheet
   ========================================================= */

/* --------- Tokens --------- */
:root {
    --brand: #3d8e2e;
    --brand-blue: #00ADEF;
    --bg: #F7F7F7;
    --ink: #1c1c1c;
    --muted: #6b7280;
    --card: #ffffff;
    --radius: 16px;
    --texto: #666666;
    --elev: 0 12px 32px rgba(0,0,0,.18);
    --elev-strong: 0 20px 60px rgba(0,0,0,.25);
    /* Botão “Enviar” — agora na cor do NOSSO CANAL */
    --btn-send-bg: var(--brand-blue);
    --btn-send-bg-hover: #0b91c5;
    --btn-send-color: #fff;
}

/* --------- Base --------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Compensa header fixo no topo */
body {
    padding-top: 80px;
}

/* Cada âncora rola com margem para não “bater” no header fixo */
section {
    scroll-margin-top: 110px;
}

/* --------- Header fixo --------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0px 2px 4px 1px rgb(30 119 187 / 16%);
}

.logo-hil {
    height: 80px;
    width: auto;
    display: block;
}

.header-nav .nav-link {
    color: #666666;
    text-decoration: none;
    padding: .5rem .75rem;
    border-radius: 8px;
    font-weight: 100;
    font-size: 1rem;
}

    .header-nav .nav-link:hover {
        background: #e9f3ea;
        color: #1c1c1c;
    }

/* --------- Seções globais --------- */
.section {
    padding: 50px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 32px;
}

/* TÍTULOS (um pouco maiores e menos bold) */
.section-title {
    font-size: clamp(1.9rem, 2.6vw, 2.4rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.section-desc {
    color: var(--muted);
    margin-top: 8px;
}

/* Variante azul e texto claro */
.section--brand-blue {
    background: var(--brand-blue);
}

    .section--brand-blue .section-title,
    .section--brand-blue .section-desc,
    .section--brand-blue .yt-title,
    .section--brand-blue,
    .section--brand-blue p,
    .section--brand-blue li {
        color: #fff;
    }

.text-on-dark, .text-on-dark * {
    color: #fff;
}

/* --------- HERO Vídeo --------- */
.video-wrapper {
    position: relative;
    background: #000;
}

    .video-wrapper video {
        width: 100%;
        height: calc(100vh - 80px);
        min-height: 420px;
        object-fit: cover;
        background: #000;
        display: block;
    }

/* --------- HERO Conteúdo --------- */
.hero-content {
    padding: 28px 0 8px;
    background: transparent;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: 3px;
    color: #666666;
    text-align: center;
}

/* --------- Tipografia utilitária --------- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.subtitle {
    color: var(--ink);
}

.texto-geral {
    color: var(--texto);
}

.subtitle-w {
    color: var(--card) !important;
}

.texto-geral-w {
    color: var(--card) !important;
}

/* Título “Quem somos” no tom de cinza original */
#quem-somos .section-title {
    color: #666666;
}

/* --------- Cards de serviços --------- */
.feature-card {
    padding: 22px;
    height: 100%;
    color: #fff;
    border-radius: var(--radius);
    background: transparent;
}

.feature-icon {
    justify-self: center;
    margin-bottom: 50px;
}

    .feature-icon img {
        height: 135px;
        margin-inline: auto;
    }

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
}

/* --------- YouTube --------- */
.carousel-item {
    transition: transform .45s ease-in-out, opacity .45s ease-in-out !important;
}

.yt-card {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.yt-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--elev);
}

.yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-playbtn {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

    .yt-playbtn i {
        font-size: 64px;
        color: #fff;
        text-shadow: 0 6px 18px rgba(0,0,0,.45);
    }

.yt-title {
    font-size: clamp(0.9rem, 1.2vw, 1.15rem);
    line-height: 1.35;
    margin-top: 12px;
    color: #eaeaea;
    min-height: 2.8em; /* trava duas linhas p/ evitar pulo vertical */
}

/* Iframe ocupa exatamente a mesma caixa da thumb */
.yt-poster.yt-embed {
    position: relative;
}

    .yt-poster.yt-embed .yt-iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        border-radius: 12px;
    }

/* Indicadores abaixo */
.videos-wrap .carousel-indicators {
    position: static;
    margin-top: 16px;
}

    .videos-wrap .carousel-indicators [data-bs-target] {
        background-color: rgba(255,255,255,.9);
    }

/* SETAS DO CARROSSEL — ainda mais evidentes (ícone branco + halo + borda) */
.carousel-control-prev, .carousel-control-next {
    width: 64px;
    height: 64px;
    top: 40%;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: brightness(0) invert(1); /* branco forte */
    background-size: 90% 90%;
}

.carousel-control-prev::before, .carousel-control-next::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,0,0,.55); /* halo mais forte */
    border: 2px solid rgba(255,255,255,.9); /* borda branca sutil */
    box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

/* --------- Quem Somos --------- */
.quem-somos__texto {
    text-align: left;
}

/* --------- CTA / Contato --------- */
.text-contato {
    letter-spacing: 0.1em;
    line-height: 30px;
    font-size: 1.3rem;
}

.cta-link {
    display: block;
}
/* toda a caixa clicável */

.cta-contato {
    background-color: #1e73b7;
    background-image: url(/imagens/backgroud-contato.webp);
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    height: 150px;
    padding: 50px 0 0 35%; /* mantém posicionamento original no desktop */
    line-height: 25px;
    border-radius: 15px;
}

    .cta-contato .fw-bold {
        letter-spacing: .1em;
    }

.btn-contato,
.btn-contato:visited,
.btn-contato:hover,
.btn-contato:active {
    text-decoration: none !important;
    color: white !important;
}

/* --------- Modal Contato --------- */
.modal-contact {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--elev-strong);
}

    .modal-contact .modal-header {
        background: linear-gradient(90deg, var(--brand-blue), #38bdf8);
        color: #fff;
    }

    .modal-contact .modal-title {
        font-weight: 700;
    }

    .modal-contact .modal-body {
        background: #fff;
        padding: 1.25rem;
    }

/* Desktop: form mais fino e com menos folga lateral */
.contact-narrow {
    max-width: 420px;
    margin: 0 auto;
}
/* ↓ mais estreito */
.modal-contact .form-control {
    border-radius: 12px;
    padding: 12px 14px;
}

/* Botão enviar — cor do NOSSO CANAL */
.btn-send {
    --bs-btn-bg: var(--btn-send-bg);
    --bs-btn-border-color: var(--btn-send-bg);
    --bs-btn-hover-bg: var(--btn-send-bg-hover);
    --bs-btn-hover-border-color: var(--btn-send-bg-hover);
    --bs-btn-color: var(--btn-send-color);
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 12px 18px;
}

#btnEnviarContato .btn-spinner {
    display: none;
    margin-left: .5rem;
}

#btnEnviarContato.loading .btn-spinner {
    display: inline-block;
}

#btnEnviarContato.loading .btn-label {
    opacity: .7;
}

/* Honeypot (acessível, invisível ao usuário humano) */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.link-privacy {
    text-decoration: underline;
}

/* Mensagem global pós-envio */
.global-message {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    max-width: 420px;
}

.global-message__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--elev-strong);
    border: 1px solid rgba(0,0,0,.06);
}

.global-message__icon i {
    font-size: 28px;
    color: #16a34a;
}

.global-message__text {
    font-size: .975rem;
    line-height: 1.35;
}

.global-message__close {
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

    .global-message__close:hover {
        color: #0f172a;
    }

/* --------- Footer --------- */
.novo-footer {
    background: var(--brand-blue);
    text-align: center;
    padding: 5% 5% 0 5%;
}

.icon-footer {
    width: 40px;
    height: 40px;
}

.logo-footer {
    height: 100%;
    width: auto;
    object-fit: contain;
    margin: 0;
}

.icons-social {
    display: flex;
    column-gap: 35px;
    justify-content: center;
    margin-top: 0;
}

.footer-nav a {
    display: block;
    color: #e5e7eb;
    text-decoration: none;
    padding: 6px 0;
    opacity: .9;
}

    .footer-nav a:hover {
        color: #fff;
        opacity: 1;
    }

.footer-copy {
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
    padding: 12px 0;
    font-size: .925rem;
    color: white;
    text-transform: uppercase;
    margin-top: 30px;
}

/* --------- Overlay + Menu Mobile --------- */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 1020;
}

    .overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu {
    position: absolute;
    right: -100%;
    top: 0;
    height: 100%;
    width: 78%;
    background: #fff;
    padding: 20px 16px;
    transition: right .28s ease;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

.overlay.is-open .mobile-menu {
    right: 0;
}

.mobile-menu-close {
    font-size: 20px;
    margin-bottom: 12px;
    cursor: pointer;
}

.mobile-nav .mobile-link {
    display: block;
    padding: 12px 8px;
    text-decoration: none;
    color: #1c1c1c;
    font-weight: 700;
    border-radius: 8px;
}

    .mobile-nav .mobile-link:hover {
        background: #e9f3ea;
    }

/* --------- Botão Voltar ao Topo --------- */
.to-top {
    position: fixed;
    right: 16px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: rgba(0,0,0,.65);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 1030;
}

    .to-top i {
        font-size: 20px;
        line-height: 1;
    }

    .to-top:hover {
        background: rgba(0,0,0,.8);
    }

    .to-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.modal-lg, .modal-xl {
    max-width: 500px;
}

/* --------- Responsivo --------- */
@media (max-width: 991.98px) {
    .icons-social {
        margin-top: 45px;
    }
}

@media (max-width: 768px) {
    /* Reduz margens laterais exageradas da seção Quem Somos */
    .quem-somos__texto {
        padding-inline: 1rem !important;
    }
}

@media (max-width: 580px) {
    header {
        height: 80px;
    }

    body {
        padding-top: 80px;
    }

    .video-wrapper video {
        height: 100%;
        min-height: 170px;
    }
}

@media (max-width: 576px) {
    .yt-playbtn i {
        font-size: 48px;
    }

    /* Contato (MOBILE): versão mais estilosa mantendo escopo
     - Badge com a imagem acima do texto
     - Card com leve gradiente, sem atrapalhar leitura */
    .text-contato {
        font-size: 1rem;
        line-height: 26px;
    }

    .cta-contato {
        position: relative;
        height: auto; /* deixa ajustar pela altura do conteúdo */
        padding: 20px 16px 20px 16px; /* centraliza e reduz folgas */
        text-align: center;
        background-image: none; /* evita conflito visual */
        background: linear-gradient(135deg, #1e73b7, #37b9f4);
    }

        .cta-contato::before {
            content: "";
            display: block;
            width: 84px;
            height: 84px; /* badge maior e arredondada */
            margin: 0 auto 10px auto;
            background: url(/imagens/backgroud-contato.webp) center/cover no-repeat;
            border-radius: 18px;
            box-shadow: var(--elev);
        }

    /* Footer: logo ~10% maior do que 175px = ~192px + margens */
    .logo-footer {
        width: 192px;
        margin: 20px auto 18px auto;
        height: auto;
    }
}

.carousel-control-next-video {
    display: none;
}
.carousel-control-prev-video {
    display: none;
}

.carousel-indicators-video {
    display: none;
}

/* Botão de som (hero) */
.botao-som {
    position: absolute;
    right: 30px;
    bottom: 30px; /* inferior direita desktop */
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    z-index: 3;
    background: rgb(255 255 255 / 40%);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,.18);
    transition: background .2s ease, transform .2s ease;
}

    .botao-som img {
        width: 26px;
        height: 26px;
    }

botao-som.is-unmuted img {
     filter: brightness(0) invert(1);
}

 @media (max-width: 580px) {
    .botao-som {
        right: 10px;
        bottom: 10px;
        width: 40px;
        height: 40px;
        top: 90px;
    }

        .botao-som img {
            width: 15px;
            height: 15px;
        }
}