/* ==========================================================================
   MERCATTO GESTÃO - DESIGN SYSTEM & STYLES (TELA DE ESPERA V1)
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Brand Colors (OKLCH) */
    --color-brand-primary: oklch(0.33 0.08 275);      /* #393D6F - Deep Indigo/Violet */
    --color-brand-light: oklch(0.46 0.12 282);        /* #64599F - Muted Violet */
    --color-brand-secondary: oklch(0.61 0.08 277);    /* #8E8CC1 - Soft Violet/Lilac */
    --color-brand-accent: oklch(0.72 0.12 44);        /* #DE9883 - Coral Escuro */
    --color-brand-accent-light: oklch(0.80 0.08 42);  /* #E8B9AA - Salmão/Pêssego Claro */
    
    /* Layout & Spacing */
    --space-xs: 0.25rem;  /* 4px */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2rem;     /* 32px */
    --space-xxl: 3rem;    /* 48px */
}

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #ffffff;
    background-color: #0b0f19; /* Fallback escuro */
    background-image: url('fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto; /* Permite rolagem vertical caso o conteúdo transborde em telas menores/iPad */
    position: relative;
    padding: 0;
    margin: 0;
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: scroll !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    .logo-video {
        display: none; /* Oculta vídeo em favor de imagem estática de fallback, se preferido */
    }
}

/* --- Layout Container --- */
.container-espera {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 20px 10px 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- Logo Animado (Vídeo) --- */
.logo-animado-container {
    width: 100%;
    max-width: 320px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-video {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen; /* Torna o fundo preto do MP4 transparente */
    background: transparent;
    opacity: 0.99; /* Força composição de blend-mode do Safari iOS */
}

/* --- Título de Espera --- */
.titulo-espera {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-brand-accent);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-wrap: balance;
}

/* --- Descrição --- */
.descricao-espera {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 70ch;
    margin-bottom: 30px;
}

.descricao-espera p {
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    text-wrap: pretty;
}

.descricao-espera p:first-child {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    color: #ffffff;
}

/* --- Logo Horizontal Row --- */
.logo-horizontal-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 22px 0;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.logo-horizontal {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.slogan-logo {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    font-style: italic;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-align: left;
}

/* --- Redes Sociais --- */
.redes-sociais-row {
    position: absolute;
    right: 40px;
    top: -56px; /* Posicionado um pouco mais afastado do rodapé no canto direito do grid */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.rede-social-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-brand-accent);
    color: var(--color-brand-primary);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.rede-social-icon {
    width: 15px;
    height: 15px;
}

.rede-social-item:hover {
    transform: translateY(-3px);
    background-color: #ffffff;
    color: var(--color-brand-primary);
    border-color: var(--color-brand-accent);
}

.rede-social-item:active {
    transform: translateY(0);
}

/* --- Chamada para Plataforma (CTA) --- */
.plataforma-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 15px;
}

.cta-titulo {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    margin-bottom: 2px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}

.cta-link {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--color-brand-accent);
    text-decoration: none;
    letter-spacing: 0.02em;
    line-height: 1.2;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.cta-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.cta-link:active {
    transform: translateY(0);
}

/* --- Rodapé Corporativo --- */
.rodape-espera {
    background-color: var(--color-brand-accent);
    width: 100%;
    padding: 12px 0;
    box-sizing: border-box;
    margin-top: auto;
}

.rodape-conteudo {
    position: relative; /* Serve de âncora para posicionar redes sociais */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-brand-primary);
    font-size: 0.85rem;
    line-height: 1.5;
    flex-wrap: wrap;
    gap: 20px;
}

.rodape-esquerda {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    text-align: left;
}

.rodape-direita {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    text-align: right;
}

.rodape-esquerda strong {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.rodape-link {
    color: var(--color-brand-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

.rodape-link:hover {
    opacity: 0.8;
}

/* --- Media Queries (Responsividade) --- */
@media (max-width: 768px) {

    .container-espera {
        padding: 40px 20px;
        min-height: calc(100vh - 120px);
    }

    .logo-animado-container {
        max-width: 260px;
    }

    .titulo-espera {
        margin-bottom: 20px;
    }

    .descricao-espera {
        margin-bottom: 30px;
        gap: 10px;
    }

    .logo-horizontal-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 35px;
    }

    .slogan-logo {
        text-align: center;
    }

    .redes-sociais-row {
        position: static;
        margin-top: 15px;
        margin-bottom: 25px;
        justify-content: center;
        gap: 14px;
    }

    .rodape-conteudo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px;
        gap: 15px;
    }

    .rodape-esquerda, .rodape-direita {
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Delays para efeitos de entrada escalonados (staggered entry) */
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }
.delay-5 { animation-delay: 0.60s; }
.delay-6 { animation-delay: 0.72s; }

/* Animação suave para subida de elementos (Slide Up + Fade In) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animação de fade-in comum */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Brilho pulsante suave no link principal da plataforma (Efeito de energia/eletricidade) */
@keyframes accentGlow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(222, 152, 131, 0.35);
    }
    50% {
        text-shadow: 0 0 20px rgba(222, 152, 131, 0.8), 0 0 30px rgba(222, 152, 131, 0.35);
    }
}

.cta-link {
    animation: accentGlow 3s ease-in-out infinite;
}
