/* ==========================================================================
   Versão: 1.2.0
   Arquivo: css/style.css
   Projeto: Splash institucional Advocacia Leal
   Autor: Jean / CALLCO + IA
   Data: 2026-02-27

   Objetivo:
   - Exibir fundo de forma mais evidente.
   - Reduzir peso visual das camadas escuras.
   - Manter layout full screen sem barra de rolagem.
   - Melhorar a leitura e o acabamento premium.
   - Preservar animação elegante no logo, sem tremida.
   ========================================================================== */


/* ==========================================================================
   RESET
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ==========================================================================
   VARIÁVEIS
   ========================================================================== */
:root {
    --color-bg: #040506;
    --color-white: #ffffff;
    --color-text: rgba(255, 255, 255, 0.95);
    --color-muted: rgba(255, 255, 255, 0.82);
    --color-soft: rgba(255, 255, 255, 0.64);

    --gold-1: #d7c28f;
    --gold-2: #ead8ab;
    --gold-3: rgba(215, 194, 143, 0.30);
    --gold-4: rgba(215, 194, 143, 0.12);

    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);

    --panel-bg: rgba(7, 9, 14, 0.28);
    --panel-bg-strong: rgba(7, 9, 14, 0.38);
    --card-bg: rgba(255, 255, 255, 0.06);

    --shadow: rgba(0, 0, 0, 0.28);
    --shadow-strong: rgba(0, 0, 0, 0.42);

    --radius-shell: 30px;
    --radius-card: 18px;
    --radius-pill: 999px;

    --hero-width: min(1280px, calc(100vw - 36px));
    --hero-height: min(92vh, 920px);

    --ease-fast: 180ms ease;
    --ease-medium: 320ms ease;
    --ease-slow: 700ms ease;
}


/* ==========================================================================
   BASE
   ========================================================================== */
body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    overflow: hidden;
}

body.is-loaded {
    overflow: hidden;
}


/* ==========================================================================
   FUNDO
   Agora o fundo aparece de verdade, sem virar fantasma tímido.
   ========================================================================== */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.03);
    filter: saturate(1.04) contrast(1.03) brightness(0.92);
    animation: bgBreath 18s ease-in-out infinite alternate;
}

.page-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 100%),
        radial-gradient(circle at 14% 20%, rgba(223, 189, 120, 0.18), transparent 26%),
        radial-gradient(circle at 85% 78%, rgba(223, 189, 120, 0.09), transparent 24%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.02) 50%, rgba(0, 0, 0, 0.10) 100%);
}

.page-light {
    position: fixed;
    z-index: 3;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.56;
}

.page-light--left {
    width: 360px;
    height: 360px;
    left: -60px;
    top: 60px;
    background: rgba(214, 175, 102, 0.18);
}

.page-light--right {
    width: 280px;
    height: 280px;
    right: 30px;
    bottom: 60px;
    background: rgba(214, 175, 102, 0.11);
}


/* ==========================================================================
   LAYOUT
   ========================================================================== */
.hero {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100vh;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__shell {
    width: var(--hero-width);
    height: var(--hero-height);
    border-radius: var(--radius-shell);
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.01)),
        linear-gradient(180deg, rgba(8,10,14,0.18), rgba(8,10,14,0.28));
    backdrop-filter: blur(2px);
    box-shadow:
        0 18px 50px var(--shadow),
        inset 0 1px 0 rgba(255,255,255,0.05);
    display: grid;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.988) translateY(16px);
    transition:
        opacity var(--ease-slow),
        transform var(--ease-slow);
}

body.is-loaded .hero__shell {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.hero__top {
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    padding: 32px 40px 12px;
    text-align: center;
}

.hero__bottom {
    padding: 10px 34px 22px;
    display: grid;
    gap: 18px;
    align-content: end;
}

.hero__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    min-height: 0;
}

.hero__logo {
    width: min(420px, 44vw, 100%);
    max-height: 220px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter:
        drop-shadow(0 16px 30px rgba(0,0,0,0.34))
        drop-shadow(0 0 24px rgba(215, 194, 143, 0.10));
    transition:
        opacity 850ms ease,
        transform 850ms ease,
        filter 500ms ease;
}

body.is-loaded .hero__logo {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: logoAura 6.5s ease-in-out infinite;
}

.hero__text {
    max-width: 920px;
    margin: 0 auto;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(215, 194, 143, 0.24);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 233, 187, 0.95);
    background: rgba(215, 194, 143, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.hero__headline {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.2vw, 3.5rem);
    line-height: 1.14;
    font-weight: 600;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

.hero__subheadline {
    margin: 0 auto;
    max-width: 760px;
    font-size: clamp(1rem, 1.15vw, 1.18rem);
    line-height: 1.55;
    color: var(--color-muted);
    text-shadow: 0 2px 10px rgba(0,0,0,0.18);
}


/* ==========================================================================
   CONTATOS
   ========================================================================== */
.contact-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.contact-card {
    min-width: 220px;
    max-width: 320px;
    padding: 14px 16px;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255,255,255,0.10);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)),
        rgba(10, 12, 18, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 8px 22px rgba(0,0,0,0.14);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition:
        transform var(--ease-fast),
        border-color var(--ease-fast),
        background var(--ease-fast),
        box-shadow var(--ease-fast);
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(215, 194, 143, 0.28);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04)),
        rgba(10, 12, 18, 0.30);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 12px 26px rgba(0,0,0,0.20);
}

.contact-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 228, 177, 0.92);
}

.contact-card__value {
    font-size: 1rem;
    line-height: 1.35;
    color: var(--color-white);
    word-break: break-word;
}


/* ==========================================================================
   SOCIAIS
   ========================================================================== */
.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-1);
    border: 1px solid rgba(215, 194, 143, 0.24);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
        rgba(10, 12, 18, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 8px 18px rgba(0,0,0,0.14);
    transition:
        transform var(--ease-fast),
        border-color var(--ease-fast),
        background var(--ease-fast),
        color var(--ease-fast),
        box-shadow var(--ease-fast);
}

.social-btn:hover {
    transform: translateY(-2px) scale(1.02);
    color: var(--gold-2);
    border-color: rgba(215, 194, 143, 0.40);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035)),
        rgba(215, 194, 143, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 12px 24px rgba(0,0,0,0.20);
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.hero__footer {
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-soft);
    text-shadow: 0 1px 8px rgba(0,0,0,0.18);
}


/* ==========================================================================
   PRELOADER
   Observação: a demora não está aqui sozinha; o JS define o tempo mínimo.
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(215, 194, 143, 0.10), transparent 28%),
        rgba(3, 4, 7, 0.88);
    opacity: 1;
    visibility: visible;
    transition: opacity 260ms ease, visibility 260ms ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.preloader__ring {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.18);
    border-top-color: rgba(215, 194, 143, 0.98);
    box-shadow: 0 0 22px rgba(215, 194, 143, 0.14);
    animation: spin 0.85s linear infinite;
}

.preloader__text {
    font-size: 0.84rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.82);
}


/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bgBreath {
    0% {
        transform: scale(1.02) translate3d(0, 0, 0);
    }
    100% {
        transform: scale(1.05) translate3d(0, -6px, 0);
    }
}

@keyframes logoAura {
    0%, 100% {
        filter:
            drop-shadow(0 16px 30px rgba(0,0,0,0.34))
            drop-shadow(0 0 24px rgba(215, 194, 143, 0.10));
    }
    50% {
        filter:
            drop-shadow(0 18px 34px rgba(0,0,0,0.36))
            drop-shadow(0 0 34px rgba(215, 194, 143, 0.18));
    }
}


/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 980px) {
    :root {
        --hero-width: min(100vw - 20px, 1000px);
        --hero-height: min(94vh, 900px);
    }

    .hero__top {
        padding: 26px 22px 10px;
    }

    .hero__bottom {
        padding: 8px 20px 20px;
    }

    .hero__logo {
        width: min(340px, 64vw);
        max-height: 160px;
    }

    .hero__headline {
        font-size: clamp(1.75rem, 5vw, 2.7rem);
    }

    .hero__subheadline {
        font-size: 1rem;
    }

    .contact-card {
        min-width: 200px;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 10px;
    }

    .hero__shell {
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        border-radius: 22px;
    }

    .hero__top {
        padding: 20px 16px 8px;
    }

    .hero__bottom {
        padding: 8px 14px 16px;
        gap: 14px;
    }

    .hero__logo {
        width: min(280px, 70vw);
        max-height: 120px;
    }

    .hero__eyebrow {
        font-size: 0.66rem;
        padding: 6px 10px;
    }

    .hero__headline {
        font-size: clamp(1.55rem, 7vw, 2.2rem);
        margin-bottom: 10px;
    }

    .hero__subheadline {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .contact-strip {
        gap: 10px;
    }

    .contact-card {
        min-width: calc(50% - 10px);
        padding: 12px 13px;
    }

    .contact-card__value {
        font-size: 0.93rem;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .hero__footer {
        font-size: 0.8rem;
    }
}

@media (max-width: 420px) {
    .contact-card {
        min-width: 100%;
    }

    .hero__logo {
        width: min(240px, 74vw);
    }

    .hero__headline {
        font-size: 1.45rem;
    }

    .hero__subheadline {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-bg,
    .hero__logo,
    .preloader__ring {
        animation: none !important;
    }

    .hero__shell,
    .hero__logo,
    .preloader {
        transition: none !important;
    }
}
