/* ============================================================
   FERNANDA SPARREMBERGER | VYDA MULTIDIMENSIONAL
   Link na bio, versão refinada.
   Layout: coluna única centralizada (máx. 560px), foto no topo,
   banners de acesso empilhados, rodapé discreto.
   ============================================================ */

:root {
    /* Paleta da marca */
    --ivory: #F5F1E8;
    --navy: #172C35;
    --navy-blue: #173a4b;
    --sage: #5F6E58;
    --gold: #B69A62;
    --gold-vivid: #A67608;         /* dourado vibrante do subtítulo */
    --gold-text: #7E6226;          /* dourado escurecido para texto pequeno legível sobre marfim */
    --gold-metallic: linear-gradient(135deg, #A88748, #F7E5A9 50%, #A88748);
    --ink: #34433F;
    --muted: #5C5F55;

    /* Tipografia */
    --font-luxury: 'Cormorant Garamond', Georgia, serif;
    --font-clean: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;

    color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    background-color: var(--ivory);
    color: var(--ink);
    font-family: var(--font-clean);
    min-height: 100vh;
    position: relative;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    overflow-x: clip;
}

/* Textura de ondas cósmicas, bem suave */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url('img/fundo.webp') center / cover no-repeat;
    opacity: 0.16;
    /* o meio da página fica só com o marfim liso; a textura aparece apenas nas laterais */
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(50% - 470px), transparent calc(50% - 310px), transparent calc(50% + 310px), #000 calc(50% + 470px), #000 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(50% - 470px), transparent calc(50% - 310px), transparent calc(50% + 310px), #000 calc(50% + 470px), #000 100%);
}

.container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding-block: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-photo {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ---------- ELEMENTOS DOURADOS (halo, lua, brilhos) ---------- */
.deco {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.deco .tw { transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; }
.deco .spin { animation: spin 70s linear infinite; }
.deco .spin-rev { animation: spin 110s linear infinite reverse; }
@keyframes twinkle {
    0%, 100% { opacity: 0.25; transform: scale(0.7); }
    50%      { opacity: 1; transform: scale(1.15); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fundo galáctico dourado atrás dela: emblema dourado, névoa colorida e brilhos.
   Ocupa a largura da tela e se dissolve no marfim nas bordas. */
.hero-photo::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -26px;
    left: 50%;
    width: 100vw;
    max-width: 1500px;
    height: calc(100% + 70px);
    transform: translateX(-50%);
    background: url('img/fundo-topo.webp') 56% 14% / cover no-repeat;
    -webkit-mask-image:
        linear-gradient(to bottom, transparent 0, #000 14%, #000 66%, transparent 100%),
        linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to bottom, transparent 0, #000 14%, #000 66%, transparent 100%),
        linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-composite: intersect;
    opacity: 0.5;
    pointer-events: none;
}
@media (max-width: 599px) {
    /* no celular o emblema fica logo atrás da cabeça dela */
    .hero-photo::before { background-position: 36% 14%; }
}

.hero-img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 495;
    object-fit: contain;
    /* a base do recorte se dissolve devagar no marfim da página */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,0.7) 74%, rgba(0,0,0,0.35) 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,0.7) 74%, rgba(0,0,0,0.35) 88%, transparent 100%);
    filter: drop-shadow(0 10px 24px rgba(80, 61, 29, 0.14));
}

.hero-name {
    position: relative;
    z-index: 2;
    margin-top: -26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero-name h1 {
    font-family: var(--font-luxury);
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    font-weight: 600;
    font-style: italic;
    line-height: 0.95;
    letter-spacing: 0.01em;
    color: var(--navy-blue);
    text-shadow: 0 2px 14px rgba(245, 241, 232, 0.9);
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.38em;
    padding-left: 0.38em;   /* compensa o espaçamento da última letra e centraliza */
    color: var(--gold-text);
}

/* Brilho dourado passando pelo subtítulo, com um halo que pulsa */
.hero-subtitle {
    background: linear-gradient(100deg, var(--gold-vivid) 0%, var(--gold-vivid) 34%, #FFC933 50%, var(--gold-vivid) 66%, var(--gold-vivid) 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-subtitle.rise {
    animation:
        rise 0.8s cubic-bezier(0.22, 0.8, 0.25, 1) backwards calc(var(--i, 0) * 0.1s),
        shimmer 3.6s linear infinite 1.2s,
        glow 3.6s ease-in-out infinite 1.2s;
}
@keyframes shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 190, 40, 0.35)); }
    50%      { filter: drop-shadow(0 0 10px rgba(255, 190, 40, 1)); }
}

/* ---------- PÍLULAS DOURADAS (agora são links) ---------- */
.pill {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(135deg, #FAEDD6 0%, #E1C084 50%, #BA924C 100%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 18px rgba(140, 105, 45, 0.28), 0 0 14px rgba(229, 196, 126, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Luz percorrendo a borda das pílulas douradas */
.pill::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 3px;
    background: conic-gradient(from var(--ang),
        transparent 0%, transparent 55%,
        rgba(255, 244, 205, 0.35) 70%,
        rgba(255, 250, 225, 0.95) 90%,
        #fff 95%,
        #fff 96.5%,
        rgba(255, 255, 255, 0) 98.5%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    filter: drop-shadow(0 0 4px rgba(255, 236, 170, 1)) drop-shadow(0 0 8px rgba(255, 214, 110, 0.7));
    animation: borda-luz 6s linear infinite;
    pointer-events: none;
}

.pill:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 24px rgba(140, 105, 45, 0.36), 0 0 20px rgba(255, 230, 128, 0.5); }

.pill-icon {
    width: 26px;
    height: 26px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: #F5E5C9;
}
.pill-icon svg { width: 13px; height: 13px; fill: currentColor; display: block; }

.pill-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.pill-text b { font-size: 0.76rem; font-weight: 700; color: var(--navy); }
.pill-text span { font-size: 0.64rem; font-weight: 600; color: #4a3618; }

.pill--1 { top: 46%; right: 4px; }
.pill--2 { top: 64%; left: 4px; }

/* Entrada e flutuação juntas: a flutuação começa depois que a entrada termina */
.pill.rise { animation: rise 0.8s cubic-bezier(0.22, 0.8, 0.25, 1) backwards calc(var(--i, 0) * 0.1s), float 4.5s ease-in-out infinite 1.4s; }
.pill--2.rise { animation-duration: 0.8s, 5.2s; animation-delay: calc(var(--i, 0) * 0.1s), 1.9s; }

@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

/* ---------- BANNERS DE ACESSO ---------- */
.links {
    position: relative;
    z-index: 2;            /* os cards ficam por cima da mão do rodapé */
    width: 100%;
    padding-inline: 18px;   /* cards um pouco menores, mais afastados das laterais */
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.thumb-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1280 / 400;
    border-radius: 20px;
    padding: 2px;
    text-decoration: none;
    overflow: hidden;
    background: var(--gold-metallic);
    box-shadow: 0 10px 26px rgba(47, 52, 43, 0.13), 0 0 16px rgba(212, 175, 55, 0.2);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
    -webkit-tap-highlight-color: transparent;
}

.thumb-inner {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #081116;
}

.card-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.thumb-card:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 16px 36px rgba(47, 52, 43, 0.18), 0 0 26px rgba(212, 175, 55, 0.4); }
.thumb-card:hover .card-bg { transform: scale(1.03); }
.thumb-card:active { transform: scale(0.985); }

.thumb-card:focus-visible,
.pill:focus-visible {
    outline: 3px solid var(--navy-blue);
    outline-offset: 3px;
}

/* Luz percorrendo a borda dourada dos cards (anel de 2px, só a borda recebe a luz) */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.thumb-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--ang),
        transparent 0%, transparent 58%,
        rgba(255, 236, 170, 0.35) 72%,
        rgba(255, 246, 205, 0.9) 90%,
        #fff 95%,
        #fff 96.5%,
        rgba(255, 250, 225, 0) 98.5%, transparent 100%);
    filter: drop-shadow(0 0 3px rgba(255, 236, 170, 0.95));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: borda-luz 6s linear infinite;
    animation-delay: 0s;   /* todos os cards sincronizados: mesma direção, velocidade e ponto de partida */
    pointer-events: none;
}
@keyframes borda-luz { to { --ang: 360deg; } }

/* Brilho passando pelos botões dentro das artes dos cards */
.thumb-inner { position: relative; }
.btn-shine {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    overflow: hidden;
    pointer-events: none;
}
.btn-shine::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -60%;
    width: 38%;
    height: 140%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.0) 15%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0.0) 85%, transparent 100%);
    transform: skewX(-22deg);
    mix-blend-mode: soft-light;
    animation: btn-shine 4.8s ease-in-out infinite;
    animation-delay: inherit;
}
@keyframes btn-shine {
    0%   { left: -60%; opacity: 0; }
    10%  { opacity: 1; }
    45%  { left: 130%; opacity: 1; }
    55%  { left: 130%; opacity: 0; }
    100% { left: 130%; opacity: 0; }
}

/* Brilho passando, só no card principal (a mentoria) */
.thumb-card--featured::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 45%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.45) 50%, transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    animation: shine 6s 1.6s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shine {
    0% { left: -100%; opacity: 0; }
    15% { opacity: 1; }
    45% { left: 150%; opacity: 0; }
    100% { left: 150%; opacity: 0; }
}

/* ---------- PONTOS DE BRILHO NO FIM DA PÁGINA ---------- */
.brilhos {
    position: absolute;
    z-index: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    top: -230px;
    bottom: 0;
    pointer-events: none;
}
.glint {
    position: absolute;
    display: block;
    background: radial-gradient(circle at 50% 50%, #FFFBE6 0%, #FFE08A 45%, #E9B64A 100%);
    animation: glint 3.6s ease-in-out infinite;
}
.glint--d { border-radius: 50%; }
.glint--s { clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
@keyframes glint {
    0%, 100% { opacity: 0.2; transform: scale(0.6); }
    50%      { opacity: 1; transform: scale(1.1); }
}

/* ---------- PÊNDULO (fica por trás do texto do rodapé, translúcido) ---------- */
.pendulo {
    position: absolute;
    z-index: 0;
    right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));   /* encosta na borda da tela no celular */
    bottom: 0;             /* mão encostada no fim da página, atrás do texto */
    height: 172px;
    width: auto;
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
}
@media (min-width: 600px) {
    /* no desktop a coluna é mais estreita que a tela: suaviza a borda cortada */
    .pendulo {
        right: 0;
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
        mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    }
}

/* ---------- RODAPÉ ---------- */
/* degradê azul no fim da página, de ponta a ponta da tela */
footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    top: -300px;
    bottom: 0;
    /* degradê com curva suave (ease-in-out), sem faixa visível de início */
    background: linear-gradient(to bottom,
        rgba(59, 100, 130, 0) 0%,
        rgba(59, 100, 130, 0.02) 10%,
        rgba(59, 100, 130, 0.07) 22%,
        rgba(59, 100, 130, 0.16) 34%,
        rgba(59, 100, 130, 0.30) 46%,
        rgba(59, 100, 130, 0.48) 58%,
        rgba(59, 100, 130, 0.67) 70%,
        rgba(59, 100, 130, 0.84) 82%,
        rgba(59, 100, 130, 0.95) 92%,
        #3B6482 100%);
    pointer-events: none;
}
footer {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 14px;
    padding-top: 22px;
    padding-bottom: 20px;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-logo,
.footer-tagline,
.copyright { position: relative; z-index: 1; }

.footer-logo {
    font-family: var(--font-luxury);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: #FFF3D6;
}

.footer-tagline {
    font-family: var(--font-luxury);
    font-style: italic;
    font-size: 1.2rem;
    color: #FFD998;
}

.copyright {
    font-size: 0.72rem;
    line-height: 1.6;
    letter-spacing: 0.04em;
    color: rgba(255, 243, 214, 0.85);
}

/* ---------- BOTÃO DELICADO: VOLTAR AO TOPO ---------- */
.topo {
    position: fixed;
    z-index: 50;
    left: max(8px, env(safe-area-inset-left, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 250, 236, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(198, 165, 106, 0.85);
    box-shadow: 0 6px 18px rgba(23, 44, 53, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease, box-shadow 0.3s ease, background 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.topo svg { width: 18px; height: 18px; fill: none; stroke: #8A6A2B; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topo--on { opacity: 1; visibility: visible; transform: none; }
.topo:hover { background: rgba(255, 250, 236, 0.95); box-shadow: 0 8px 22px rgba(23, 44, 53, 0.26), 0 0 14px rgba(229, 196, 126, 0.55); }
.topo:focus-visible { outline: 3px solid var(--navy-blue); outline-offset: 3px; }
@media (min-width: 700px) {
    /* no desktop o botão fica logo ao lado esquerdo da coluna */
    .topo { left: calc(50% - 280px - 56px); bottom: 24px; width: 40px; height: 40px; }
    .topo svg { width: 20px; height: 20px; }
}

/* ---------- ENTRADA (CSS puro, sem biblioteca) ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

.rise { animation: rise 0.8s cubic-bezier(0.22, 0.8, 0.25, 1) backwards; animation-delay: calc(var(--i, 0) * 0.1s); }

/* ---------- TELAS PEQUENAS ---------- */
@media (max-width: 400px) {
    .pill-text b { font-size: 0.7rem; }
    .pill-text span { font-size: 0.6rem; }
    .pill-icon { width: 22px; height: 22px; }
    .pill-icon svg { width: 11px; height: 11px; }
    .hero-subtitle { letter-spacing: 0.3em; padding-left: 0.3em; }
}

@media (prefers-reduced-motion: reduce) {
    .thumb-card::before, .pill::before { display: none; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
