/**
 * Social MAD theme — overrides and additions on top of the compiled Tailwind bundle.
 * Defines CSS variables, button styles, custom animations and reveal/mobile-menu states
 * used by template partials and the front-end JS.
 */

:root {
        --bg-color: #070707;
        --bg-card: rgba(20, 20, 20, 0.6);
        --bg-soft: #343434;
        --text-color: #ffffff;
        --muted-color: rgba(255, 255, 255, 0.7);
        --primary-color: #343434;
        --primary-2: #ffffff;
        --border-color: rgba(255, 255, 255, 0.12);
        --radius: 24px;
        --shadow-custom: 0 30px 80px rgba(0, 0, 0, 0.6);
        --container: 1200px;
}

html, body {
        background-color: var(--bg-color);
        color: var(--text-color);
        font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
}

/* Buttons — tamanho e altura consistentes */
.btn-primary-gradient,
.btn-secondary-custom {
        /* Garante altura mínima idêntica em ambos os botões */
        min-height: 52px;
        padding-top: 14px;
        padding-bottom: 14px;
        padding-left: 28px;
        padding-right: 28px;
        line-height: 1.2;
        white-space: nowrap;
        text-decoration: none;
}
.btn-primary-gradient {
        background: linear-gradient(135deg, #ffffff 0%, #cfcfcf 100%);
        color: #0b0b0b !important;
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}
.btn-primary-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 40px rgba(255, 255, 255, 0.18);
        filter: brightness(1.05);
}
.btn-secondary-custom {
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary-custom:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
}

/* Grupo de botões lado a lado — alinha pelo eixo central */
.sm-btn-group,
.flex.flex-wrap.items-center > .btn-primary-gradient,
.flex.flex-wrap.items-center > .btn-secondary-custom {
        align-self: center;
}

/* Reveal animation */
.sm-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
        will-change: opacity, transform;
}
.sm-reveal-visible {
        opacity: 1;
        transform: translateY(0);
}

/* Tilt cards baseline (so the inline transform reset still animates smoothly) */
.sm-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
[data-sm-tilt] {
        transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Mobile menu */
.sm-mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 100;
        background: rgba(7, 7, 7, 0.97);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        opacity: 0;
        pointer-events: none;
        transform: scale(0.98);
        transition: opacity 0.25s ease, transform 0.25s ease;
}
.sm-mobile-menu-open {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
}
.sm-mobile-menu a {
        color: #fff;
        text-decoration: none;
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: -0.02em;
}
.sm-no-scroll {
        overflow: hidden;
}

/* Keyframes referenced by inline styles */
@keyframes pulseAnim {
        0%, 100% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15); }
        50%      { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05); }
}
@keyframes scanMove {
        0%   { transform: translateY(0); }
        100% { transform: translateY(120vh); }
}
@keyframes float {
        0%, 100% { transform: translateY(0) translateX(0); }
        50%      { transform: translateY(-20px) translateX(10px); }
}
@keyframes dashboardFloat {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-10px); }
}
@keyframes badgePulse {
        0%, 100% { transform: scale(1); box-shadow: var(--shadow-custom); }
        50%      { transform: scale(1.02); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
}
@keyframes techPulse {
        0%, 100% { opacity: 0.4; }
        50%      { opacity: 0.7; }
}
@keyframes premiumGlow {
        0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
        50%      { transform: translate(40px, -40px) scale(1.15); opacity: 0.18; }
}

/* Tech background */
.sm-tech-bg {
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background-image:
                linear-gradient(rgba(156, 154, 154, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(156, 154, 154, 0.04) 1px, transparent 1px);
        background-size: 60px 60px;
        animation: techPulse 8s ease-in-out infinite;
}

/* Rich-text blocks rendered from ACF rich-text fields */
.sm-rich p { margin: 0 0 20px; }
.sm-rich p:last-child { margin-bottom: 0; }
.sm-rich strong { color: #fff; }
.sm-rich a { color: #fff; text-decoration: underline; }

/* ---------------------------------------------------------------
 * Espaçamento mínimo entre seções e elementos
 * --------------------------------------------------------------- */

/* Garante espaço entre seções consecutivas quando não há padding/border */
.sm-hero-section + section,
.sm-hero-section + div {
        padding-top: max(60px, 6vw);
}

/* Garante espaço mínimo entre cards internos e texto em botões */
.sm-reveal + .sm-reveal {
        margin-top: 0; /* espaçamento controlado pelo pai */
}

/* Evita que imagens e texto se encostem em seções de texto+imagem */
.sm-section figure {
        margin: 0;
}

/* Padding lateral mínimo em todos os containers do tema */
.w-\[min\(100\%-40px\,var\(--container\,1200px\)\)\] {
        padding-left: 0;
        padding-right: 0;
}

/* Espaçamento vertical mínimo entre itens de formulário e campos */
.sm-field + .sm-field,
input + label,
label + input {
        margin-top: 12px;
}

/* Espaço entre botões em mobile — evita que fiquem colados */
@media (max-width: 640px) {
        .btn-primary-gradient,
        .btn-secondary-custom {
                /* Em mobile, botões podem ter padding reduzido mas mantêm proporção */
                padding-left: 22px;
                padding-right: 22px;
                font-size: 0.95rem;
        }
        .sm-btn-large {
                padding: 15px 26px;
                font-size: 1rem;
        }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
        }
        .sm-reveal {
                opacity: 1 !important;
                transform: none !important;
        }
}
