/**
 * Site institucional – ProManage
 * Estilos da home e páginas públicas (domínio raiz).
 */

:root {
    --site-primary: #0d6efd;
    --site-dark: #0a58ca;
    --site-light: #e7f3ff;
    --site-header-height: 56px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #fff;
}

/* Header fixo: transparente no topo; fundo aparece suavemente ao rolar (opacidade ligada ao scroll) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    min-height: var(--site-header-height);
    --header-opacity: 0;
    background: rgba(13, 110, 253, var(--header-opacity));
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, calc(var(--header-opacity) * 0.2));
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Hero: imagem de fundo + overlay escuro; seta/onda na parte inferior (altura reduzida 20%) */
.site-hero {
    position: relative;
    min-height: 68vh;
    background-color: #122232;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.site-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.75) 0%, rgba(10, 88, 202, 0.7) 50%, rgba(18, 34, 50, 0.8) 100%);
    z-index: 0;
}

.site-hero .container {
    position: relative;
    z-index: 1;
    padding-top: var(--site-header-height);
}

.site-hero h1,
.site-hero .lead {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.site-hero .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Seta/onda na base do hero (estilo TOTVS): clicável, com traço + seta */
.site-hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    line-height: 0;
    z-index: 2;
}

.site-hero__wave svg {
    width: 100%;
    height: 100%;
}

/* Onda/seta opaca para não mostrar fundo cinza atrás da imagem do hero */
.site-hero__wave .fill-white {
    fill: #fff;
}

.site-hero__scroll-trigger {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    padding: 6px 10px;
    border: none;
    background: transparent;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-hero__scroll-trigger:hover {
    opacity: 0.9;
    transform: translateX(-50%) translateY(2px);
}

.site-hero__scroll-trigger .site-hero__scroll-line {
    width: 2px;
    height: 18px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
}

.site-hero__scroll-trigger .site-hero__scroll-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.9);
}

/* Hero: botões com margem acima da seta para não encavalar; centralizar em telas pequenas */
.site-hero__btns {
    margin-bottom: 1.5rem;
}
.site-hero__wave {
    margin-top: 0.5rem;
}
@media (max-width: 767.98px) {
    .site-hero__btns {
        justify-content: center;
        width: 100%;
    }
    .site-hero__btns .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Seção #produtos: scroll-margin para a seta enquadrar o título ao rolar (evita título cortado) */
#produtos {
    scroll-margin-top: 5rem;
}

/* Botões do hero no estilo TOTVS (pill, primário + outline) */
.site-hero .btn-hero-primary {
    background: #00d4ff;
    color: #0a58ca;
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-hero .btn-hero-primary:hover {
    background: #00b8e6;
    color: #0a58ca;
    transform: translateY(-1px);
}

.site-hero .btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-hero .btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

/* Modal Contato: cards Quero ser cliente | Já sou cliente */
.contato-card {
    border-radius: 12px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.contato-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--site-primary);
}

.contato-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contato-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.contato-card--lead .contato-card__icon {
    background: rgba(13, 110, 253, 0.15);
    color: var(--site-primary);
}

.contato-card--cliente .contato-card__icon {
    background: rgba(34, 197, 94, 0.15);
    color: #198754;
}

.contato-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.contato-card__text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.contato-card .btn-contato-whatsapp {
    white-space: nowrap;
}

/* Seção Produtos / Módulos */
.produto-card {
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.produto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12) !important;
}

.produto-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--site-light);
}

.site-footer {
    background: #212529;
    color: #adb5bd;
}

/* Frase bíblica no rodapé: garantir contraste no fundo escuro (Bootstrap .text-muted fica ilegível) */
.site-footer #footer-frase-biblica {
    color: #adb5bd !important;
    opacity: 1;
}

/* ==========================================================================
   Loader – spinner em forma de raio (Zeus)
   ========================================================================== */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--site-primary);
    color: #fff;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.body-loaded .site-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader__inner {
    text-align: center;
}

.site-loader__raio {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 1rem;
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Raio central (relâmpago) – leve pulso */
.site-loader__bolt {
    animation: site-loader-pulse 0.8s ease-in-out infinite alternate;
    transform-origin: center;
}

/* Raios ao redor – rotação contínua */
.site-loader__rays {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: site-loader-spin 1.2s linear infinite;
}

.site-loader__inner {
    position: relative;
}

.site-loader__raio {
    position: relative;
}

/* Raios giram em torno do centro do SVG */
.site-loader__rays {
    transform-origin: 50% 50%;
    animation: site-loader-spin 1.2s linear infinite;
}

.site-loader__text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    letter-spacing: 0.05em;
}

@keyframes site-loader-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes site-loader-pulse {
    from { opacity: 0.85; transform: scale(0.98); }
    to   { opacity: 1; transform: scale(1); }
}
