/*
 * Redes sociais do Sergus (/Socialmedia) — estilo do portal (tema sergus2026):
 * mesmas fontes, cores e cantos. Topo verde-escuro com o Gus; os cartões das
 * redes sobem sobre ele, num fundo claro.
 */
:root {
    --verde-950: #04291a; --verde-900: #063d27; --verde-800: #08523a; --verde-700: #0b6e45;
    --verde-500: #3fa16f; --verde-200: #bfe0cd; --verde-100: #e1f1e8; --verde-50: #f1f8f4;
    --ouro-500: #f2b230; --ouro-600: #c98a07; --ouro-100: #fdf0d3;
    --tinta: #1d2a23; --tinta-2: #43574c; --tinta-3: #66786e;
    --fundo: #f3f7f5; --linha: #d6e2db; --branco: #fff;
    --fonte-texto: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --fonte-titulo: 'Bricolage Grotesque', 'Atkinson Hyperlegible Next', system-ui, sans-serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: var(--fundo); color: var(--tinta); font: 400 1rem/1.5 var(--fonte-texto); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ouro-500); outline-offset: 3px; }

/* ---------- fundo: faixa verde no topo, com brilho e textura de pontos ---------- */
.fundo {
    position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; overflow: hidden;
    background:
        radial-gradient(520px 340px at 80% 30%, rgba(63, 161, 111, .45), transparent 70%),
        radial-gradient(420px 300px at 0% 100%, rgba(242, 178, 48, .16), transparent 70%),
        linear-gradient(160deg, var(--verde-950) 0%, var(--verde-900) 55%, var(--verde-800) 100%);
    border-radius: 0 0 40px 40px;
}
.fundo::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .10) 1.4px, transparent 1.6px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

/* ---------- topo ---------- */
.topo { display: flex; justify-content: center; padding: 22px 20px 0; }
.topo__logo { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 999px; background: var(--branco); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .55); }
.topo__logo img { width: auto; height: 30px; }

.pagina { width: min(100% - 32px, 1080px); margin: 0 auto; }

/* ---------- perfil: o Gus com órbitas ---------- */
.perfil { display: flex; flex-direction: column; align-items: center; padding: 26px 0 36px; color: var(--branco); text-align: center; }
.perfil__gus { position: relative; display: grid; place-items: center; width: 210px; height: 210px; }
.perfil__gus::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05) 70%); border: 1px solid rgba(255, 255, 255, .18); }
.perfil__gus img { position: relative; width: 132px; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .35)); animation: flutuar 5s ease-in-out infinite; }
.perfil__orbita { position: absolute; border-radius: 50%; }
.perfil__orbita--1 { inset: 0; border: 2px solid var(--ouro-500); border-left-color: transparent; border-bottom-color: transparent; animation: girar 14s linear infinite; }
.perfil__orbita--2 { inset: -14px; border: 1px dashed rgba(255, 255, 255, .25); animation: girar 40s linear infinite reverse; }
.perfil__ponto { position: absolute; border-radius: 50%; }
.perfil__ponto--1 { top: 18px; right: 10px; width: 10px; height: 10px; background: var(--ouro-500); }
.perfil__ponto--2 { bottom: 26px; left: 4px; width: 8px; height: 8px; background: #7ed6a6; }
.perfil h1 { margin-top: 18px; font-family: var(--fonte-titulo); font-weight: 800; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); letter-spacing: -.03em; line-height: 1.05; }
.perfil p { max-width: 34ch; margin: 10px auto 0; color: #d6eadf; font-size: 1.05rem; line-height: 1.55; }
.perfil p strong { color: var(--ouro-500); }
@keyframes flutuar { 50% { transform: translateY(-8px); } }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- links das redes ---------- */
.links { display: grid; gap: 12px; }
.link {
    position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
    padding: 14px 18px 14px 14px; border: 1px solid var(--linha); border-radius: 22px;
    background: var(--branco); text-decoration: none; overflow: hidden;
    box-shadow: 0 14px 30px -22px rgba(4, 41, 26, .55);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s ease;
}
.link::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cor, var(--verde-700)); transform: scaleY(0); transition: transform .35s var(--ease); }
.link:hover { transform: translateY(-3px); border-color: var(--verde-200); box-shadow: 0 22px 40px -24px rgba(4, 41, 26, .6); }
.link:hover::after { transform: scaleY(1); }
.link:active { transform: scale(.985); }
.link__marca { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; background: var(--cor, var(--verde-700)); box-shadow: inset 0 -6px 14px rgba(0, 0, 0, .12); }
.link__marca img { width: 30px; height: 30px; }
.link__texto strong { display: block; color: var(--verde-900); font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1.2; }
.link__texto span { display: block; margin-top: 3px; color: var(--tinta-2); font-size: .95rem; line-height: 1.35; }
.link__seta { width: 38px; height: 38px; padding: 10px; border: 1px solid var(--verde-200); border-radius: 50%; color: var(--verde-700); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.link:hover .link__seta { border-color: var(--cor, var(--verde-700)); background: var(--cor, var(--verde-700)); color: var(--branco); }
.link--whatsapp { --cor: #25d366; }
.link--facebook { --cor: #1877f2; }
.link--instagram { --cor: #d6249f; }
.link--instagram .link__marca { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 62%, #285aeb 92%); }
.link--site { --cor: var(--verde-700); }
.link--site .link__marca { background: linear-gradient(135deg, var(--verde-700), var(--verde-900)); }

/* ---------- QR codes ---------- */
.qr { margin-top: 40px; text-align: center; }
.qr h2, .gus h2 { color: var(--verde-900); font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.qr__lista { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.qr__item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; padding: 12px 10px 14px; border: 1px solid var(--linha); border-radius: 20px; background: var(--branco); color: var(--verde-900); font: inherit; cursor: zoom-in; transition: transform .3s var(--ease), border-color .2s ease; }
.qr__item:hover { transform: translateY(-3px); border-color: var(--verde-200); }
.qr__imagem { display: block; width: 100%; aspect-ratio: 1; padding: 6px; border-radius: 12px; background: var(--branco); overflow: hidden; }
.qr__imagem img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.qr__nome { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.qr__nome img { box-sizing: content-box; width: 14px; height: 14px; padding: 5px; border-radius: 8px; background: var(--cor); }
.qr__item--instagram { --cor: #d6249f; }
.qr__item--whatsapp { --cor: #25d366; }
.qr__item--facebook { --cor: #1877f2; }
.qr__item--instagram .qr__nome img { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 62%, #285aeb 92%); }

.qr-modal { margin: auto; padding: 28px 28px 22px; border: 0; border-radius: 26px; background: var(--branco); text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.qr-modal::backdrop { background: rgba(2, 20, 12, .78); backdrop-filter: blur(4px); }
.qr-modal[open] { animation: surgir .25s var(--ease); }
.qr-modal img { width: min(300px, 70vw); margin: 0 auto; }
.qr-modal p { margin-top: 12px; color: var(--verde-900); font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.15rem; }
.qr-modal__fechar { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--verde-50); color: var(--verde-900); cursor: pointer; }
.qr-modal__fechar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@keyframes surgir { from { opacity: 0; transform: scale(.95); } }

/* ---------- Conheça o Gus ---------- */
.gus { margin-top: 40px; }
.gus__lista { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gus__item { padding: 20px 18px; border: 1px solid var(--linha); border-radius: 20px; background: var(--branco); }
.gus__item svg { box-sizing: content-box; width: 22px; height: 22px; padding: 10px; border-radius: 14px; background: var(--verde-50); color: var(--verde-700); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gus__item h3 { margin-top: 12px; color: var(--verde-900); font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.gus__item p { margin-top: 4px; color: var(--tinta-2); font-size: .93rem; line-height: 1.45; }
.gus__item--destaque { grid-column: 1 / -1; position: relative; overflow: hidden; border-color: transparent; background: radial-gradient(360px 200px at 100% 0%, rgba(242, 178, 48, .22), transparent 70%), var(--verde-900); }
.gus__item--destaque svg { background: var(--ouro-500); color: var(--verde-950); }
.gus__item--destaque h3 { color: var(--branco); font-size: 1.25rem; }
.gus__item--destaque p { color: #d6eadf; }

/* ---------- rodapé ---------- */
.rodape { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 44px; padding: 26px 20px 34px; border-top: 1px solid var(--linha); color: var(--tinta-3); font-size: .9rem; text-align: center; }
.rodape a { color: var(--verde-700); font-weight: 700; text-decoration: none; }
.rodape a:hover { text-decoration: underline; }

/* ---------- telas maiores: Gus e texto ao lado, cartões em duas colunas ---------- */
@media (min-width: 900px) {
    .fundo { height: 440px; border-radius: 0 0 56px 56px; }
    .topo { justify-content: flex-start; width: min(100% - 32px, 1080px); margin: 0 auto; padding: 28px 0 0; }
    .perfil { flex-direction: row; justify-content: center; gap: 40px; padding: 22px 0 44px; text-align: left; }
    .perfil__gus { width: 230px; height: 230px; flex: none; }
    .perfil__gus img { width: 146px; }
    .perfil p { margin-left: 0; max-width: 40ch; font-size: 1.15rem; }
    .links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .link { padding: 18px 22px 18px 18px; }
    .link__marca { width: 62px; height: 62px; }
    .qr-gus { display: grid; }
    .qr, .gus { margin-top: 56px; }
    .qr__lista { max-width: 720px; margin-inline: auto; gap: 16px; }
    .gus__lista { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gus__item--destaque { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center; }
    .gus__item--destaque svg { grid-row: span 2; }
    .gus__item--destaque h3 { margin-top: 0; }
}

/* celular: QR com o nome embaixo do ícone; itens do Gus em lista (ícone ao lado) */
@media (max-width: 599px) {
    .qr__lista { gap: 8px; }
    .qr__item { padding: 10px 8px 12px; border-radius: 16px; }
    .qr__nome { flex-direction: column; gap: 6px; font-size: .85rem; }
    .gus__lista { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .gus__item { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px; }
    .gus__item svg { grid-row: span 2; }
    .gus__item h3 { margin-top: 2px; }
}

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