/* =====================================================================
   ULOGGIN — identidade visual do mascote ULO
   Paleta tirada do pelo (roxo vibrante, luz lavanda, sombra profunda)
   e do olhar (branco quente). Linguagem: macio, redondo e "de adesivo".
   ===================================================================== */

:root {
    /* Cores do mascote */
    --roxo: #5a2ce7;            /* pelo principal (cor da marca) */
    --roxo-claro: #8f6bff;      /* luz no pelo */
    --lavanda: #c9b6ff;         /* ponta do pelo */
    --lavanda-clara: #efe8ff;   /* brilho / branco do olho, levemente roxo */
    --roxo-profundo: #2a0d86;   /* sombra do pelo */
    --noite: #10052b;           /* fundo da página */
    --noite-2: #1a0b45;         /* fundo de cartões e faixas */

    /* Textos */
    --texto: #e6dcff;
    --texto-suave: #c9b6ff;

    /* Tipografia */
    --fonte-titulo: "Fredoka", "Inter", sans-serif;
    --fonte-texto: "Inter", sans-serif;

    --altura-header: 70px;
}

/* ========== BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--altura-header);
}

body {
    background-color: var(--noite);
    color: var(--texto);
    font-family: var(--fonte-texto);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background-color: var(--roxo);
    color: #ffffff;
}

h2,
h3 {
    font-family: var(--fonte-titulo);
    font-weight: 600;
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.75rem);
    color: var(--lavanda-clara);
}

h3 {
    font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.45rem);
    color: var(--lavanda-clara);
}

/* ========== BOTÕES (todos com o mesmo jeito de "adesivo") ========== */
.botao-primario,
.botao-secundario,
.botao-ver,
.cta {

    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fonte-titulo);
    font-weight: 600;
    font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.15rem);
    padding: clamp(10px, 1.5vw, 14px) clamp(20px, 3vw, 32px);
    border: 3px solid var(--lavanda-clara);
    border-radius: 999px;
    box-shadow: 0 5px 0 var(--sombra);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.botao-primario:hover,
.botao-secundario:hover,
.botao-ver:hover,
.cta:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--sombra);
}

.botao-primario:active,
.botao-secundario:active,
.botao-ver:active,
.cta:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 var(--sombra);
}

.botao-primario {
    background-color: var(--roxo);
    color: #ffffff;
}

.botao-primario:hover {
    background-color: white;
    color:  var(--roxo);
    border-color:  var(--roxo);
}

.botao-secundario {
    background-color: var(--lavanda-clara);
    color: var(--roxo-profundo);
    border-color: var(--roxo);
}

.botao-secundario:hover {
    background-color: var(--roxo);
    color:#ffffff;
}

.botao-ver {
    --sombra: var(--roxo);
    background-color: var(--lavanda-clara);
    color: var(--roxo-profundo);
    border-color: var(--lavanda-clara);
}

.botao-ver:hover {
    background-color: #ffffff;
}

.botao-desativado {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== CABEÇALHO ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--altura-header);
    z-index: 100;
    padding: 0 clamp(16px, 3vw, 40px);
    display: flex;
    align-items: center;
    background-color: rgba(251, 248, 255, 0.1);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(2px);
    border-bottom: 2px solid var(--roxo);
}

.cabecalho {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header-uloggin a {
    font-family: var(--fonte-titulo);
    font-weight: 700;
    font-size: clamp(1.3rem, 1rem + 1.8vw, 2rem);
    letter-spacing: 0.5px;
    color: var(--roxo);
}

header nav ul {
    display: flex;
    gap: clamp(4px, 1.5vw, 4px);
    list-style: none;
}

.header-nav a {
    display: inline-block;
    font-family: var(--fonte-titulo);
    font-weight: 500;
    font-size: clamp(0.85rem, 0.7rem + 0.9vw, 1.15rem);
    color: var(--roxo);
    padding: 6px clamp(8px, 1.5vw, 16px);
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.header-nav a:hover {
    background-color: var(--roxo);
    color: #ffffff;
}

/* ========== INÍCIO (banner) ========== */
.banner-inicio {
    position: relative;
}

.banner-midia {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
    overflow: hidden;
    background-color: var(--noite);
}

.banner-midia .banner-imagem,
.banner-midia .banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.banner-midia .banner-video {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.banner-midia .banner-video.pronto {
    opacity: 1;
}

/* Degradê que leva a imagem clara para o fundo da página */
.banner-midia::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(to bottom, rgba(16, 5, 43, 0) 0%, var(--noite) 100%);
    pointer-events: none;
    z-index: 2;
}

.botoes {
    position: absolute;
    left: 0;
    bottom: 10%;
    width: 100%;
    z-index: 3;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(14px, 2vw, 24px);
    padding: 0 5%;
}

/* ========== TRABALHOS ========== */
.trabalhos {
    padding: clamp(48px, 7vw, 96px) 5%;
}

.trabalhos h2 {
    text-align: center;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.lista-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 380px));
    justify-content: center;
    gap: clamp(20px, 3vw, 36px);
}

.cards {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background-color: var(--noite-2);
    border: 3px solid var(--roxo);
    border-radius: 28px;
    box-shadow: 0 8px 0 var(--roxo-profundo);
}

.cards p {
    color: var(--texto);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
}

.cards .botao-ver,
.cards .botao-desativado {
    margin-top: auto;
}

.img-projetos {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.06);
}

/* ========== SOBRE ========== */
.sobre {
    padding: clamp(48px, 7vw, 96px) 5%;
    background-color: var(--noite-2);
}

.section-sobre {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(32px, 5vw, 64px);
    max-width: 1100px;
    margin: 0 auto;
}

.conteudo-empresa {
    flex: 0 1 600px;
}

.conteudo-empresa h2 {
    color: var(--lavanda);
    margin-bottom: 12px;
}

.conteudo-empresa p {
    margin-bottom: 22px;
    line-height: 1.7;
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
    color: var(--texto);
}

.conteudo-empresa p:last-child {
    margin-bottom: 0;
}

.sobre figure {
    position: relative;
    flex: 0 1 300px;
    text-align: center;
}

.foto-fundador {
    width: 100%;
    border-radius: 32px;
    border: 4px solid var(--lavanda-clara);
    box-shadow: 8px 8px 0 var(--roxo);
}

.mascote-canto {
    position: absolute;
    top: -50px;
    left: clamp(-40px, -6vw, -15px);
    width: clamp(60px, 10vw, 100px);
    z-index: 2;
    transform: rotate(-8deg);
}

.sobre figcaption {
    margin-top: 22px;
}

.nome-fundador {
    display: block;
    font-family: var(--fonte-titulo);
    font-weight: 600;
    font-size: clamp(1.2rem, 1.1rem + 0.6vw, 1.5rem);
    color: var(--lavanda-clara);
}

.cargo {
    display: block;
    font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1rem);
    color: var(--texto-suave);
}

/* ========== CONTRATAR ========== */
.contratar {
    padding: clamp(48px, 7vw, 96px) %;
    background-color: #1a0b47;
}

.caixa-contratar {
    
     padding: clamp(3px, 4vw, 3px);
    text-align: center;
    background-color: #1a0b47;
    border-radius: 36px;
    
}

.cta {
    background-color: #ffffff;
    color: var(--roxo);
    border-color: #ffffff;
    font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
    padding: clamp(11px, 2vw, 18px) clamp(36px, 6vw, 56px);
}

.cta:hover {
    background-color: var(--roxo);
    color: #ffffff;
}

/* ========== RODAPÉ ========== */
footer {
    padding: 24px 5%;
    text-align: center;
    background-color: var(--roxo);
    color: #ffffff;
    font-size: 0.95rem;
    border-top: 4px solid var(--lavanda-clara);
}

.credito {
    margin-top: 6px;
    font-size: 0.85rem;
    opacity: 0.85;
}

.credito a {
    font-weight: 600;
    text-decoration: underline;
}

/* ========== ACESSIBILIDADE ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 200;
    padding: 10px 18px;
    background-color: var(--roxo);
    color: #ffffff;
    font-weight: 600;
    border-radius: 999px;
}

.skip-link:focus {
    top: 16px;
}

a:focus-visible {
    outline: 3px solid var(--lavanda);
    outline-offset: 3px;
}

header a:focus-visible {
    outline-color: var(--roxo);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}