/* ============================================================
   Base do UpCards, carregada em todas as paginas do site

   Variaveis e base do escopo .jv, botoes, topo
   (components/upcards/navbar.php), rodape
   (components/upcards/footer.php) e paginas comuns (page.php).
   O resto do layout fica em comum.css (pecas comuns) e no CSS
   de cada pagina, carregados so nas paginas do UpCards.
   ============================================================ */

.jv {
    --jv-ink: #111827;
    --jv-ink-2: #1f2937;
    --jv-text: #374151;
    --jv-muted: #4b5563;
    --jv-muted-dark: #9ca3af;
    --jv-on-dark: #c9cdd3;
    --jv-paper: #faf9f7;
    --jv-white: #ffffff;
    --jv-line: rgba(17, 24, 39, 0.10);
    --jv-mark: #9fc0d8;
    --jv-live: #34d399;

    --jv-serif: 'Newsreader', Georgia, serif;
    --jv-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --jv-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    display: block;
    /* O tema aplica padding vertical em todo <main>; o hero ja encosta no
       header, entao o padding so criaria uma faixa vazia. */
    padding: 0;
    background: var(--jv-paper);
    color: var(--jv-ink);
    font: 400 16px/1.6 var(--jv-sans);
    -webkit-font-smoothing: antialiased;
}

.jv *,
.jv *::before,
.jv *::after {
    box-sizing: border-box;
}

.jv > section,
.jv > div,
.jv > aside {
    overflow-x: clip;
}

.jv :where(img) {
    display: block;
    max-width: 100%;
    height: auto;
}

.jv :where(a) {
    color: inherit;
    text-decoration: none;
}

.jv :where(h1, h2, p, dl, dd, ul) {
    margin: 0;
    padding: 0;
}

/* ============================================================
   Mockup "UpCards · Inicio": tokens, logo, topo, rodape e
   botoes das lojas. Valem no site todo (topo e rodape) e na
   home (assets/css/upcards/inicio.css).
   ============================================================ */

.uch,
.ucf,
.uc {
    --uc-ink: #0C2033;
    --uc-text: #35506B;
    --uc-muted: #44607C;
    --uc-line: #D3DDE8;
    --uc-line-2: #E4EAF1;
    --uc-soft: #F5F8FB;
    --uc-mint: #E6F5F3;
    --uc-teal: #2FB3A8;
    --uc-teal-dark: #1E736C;
    --uc-on-teal: #06243A;
    --uc-blue: #336F96;
    --uc-green: #357550;
    --uc-white: #FFFFFF;

    /* Sombras dos cards "flutuando", no lugar das bordas. */
    --uc-float: 0 1px 2px rgba(12, 32, 51, 0.04), 0 10px 30px rgba(12, 32, 51, 0.08);
    --uc-float-hover: 0 2px 4px rgba(12, 32, 51, 0.05), 0 20px 44px rgba(12, 32, 51, 0.13);
    --uc-float-sm: 0 1px 2px rgba(12, 32, 51, 0.05), 0 4px 12px rgba(12, 32, 51, 0.07);

    --uc-sans: 'Instrument Sans', Inter, Arial, sans-serif;
    --uc-display: 'Schibsted Grotesk', Inter, Arial, sans-serif;
    --uc-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

    color: var(--uc-ink);
    font-family: var(--uc-sans);
    -webkit-font-smoothing: antialiased;
}

.uch *,
.ucf *,
.uc *,
.uch *::before,
.ucf *::before,
.uc *::before {
    box-sizing: border-box;
}

/* Largura do conteudo: 1216px com 112px de cada lado em 1440px. */

.uc-wrap {
    width: 100%;
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 112px;
    padding-left: 112px;
}

/* ---------- Logo (rocket_upcards_logo) ---------- */

.uc-logo {
    --uc-logo-size: 28px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.uc-logo svg {
    display: block;
    flex-shrink: 0;
}

.uc-logo__text {
    font-family: 'Schibsted Grotesk', Inter, Arial, sans-serif;
    font-size: calc(var(--uc-logo-size) - 6px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #0C2033;
}

.uc-logo__text span {
    color: #1E736C;
}

/* ---------- Botoes das lojas (rocket_upcards_lojas_uc) ---------- */

.uc-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.uc-store {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    background: var(--uc-white);
    box-shadow: var(--uc-float-sm);
    color: var(--uc-muted);
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.uc a.uc-store,
.ucf a.uc-store {
    color: var(--uc-muted);
}

a.uc-store:hover {
    box-shadow: var(--uc-float);
    transform: translateY(-1px);
}

.uc-store--off {
    border: 1.5px dashed #AFC0D2;
    box-shadow: none;
}

.uc-store small {
    font-size: 10px;
    font-weight: 600;
    line-height: normal;
}

.uc-store strong {
    font-size: 16px;
    font-weight: 800;
    line-height: normal;
    color: var(--uc-ink);
}

/* ---------- Topo (components/upcards/navbar.php) ----------
   Seletores com #site-header.uch para vencer os estilos genericos de
   <header> do tema (altura fixa, cor configuravel e "header div"). */

#site-header.uch {
    position: sticky;
    top: 0;
    z-index: 500;
}

.admin-bar #site-header.uch {
    top: 32px;
}

#site-header.uch header {
    display: block;
    height: auto;
    padding: 0;
    box-shadow: 0 1px 0 rgba(12, 32, 51, 0.04), 0 6px 20px rgba(12, 32, 51, 0.06);
    background: #FFFFFF;
    font-family: 'Instrument Sans', Inter, Arial, sans-serif;
}

#site-header.uch.scrolled {
    box-shadow: 0 6px 24px rgba(12, 32, 51, 0.08);
}

#site-header.uch header div {
    height: auto;
}

#site-header.uch header .uch__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1440px;
    height: 76px;
    margin: 0 auto;
    padding: 0 56px;
}

#site-header.uch .uch__nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
    font-weight: 600;
}

#site-header.uch .uch__link {
    padding: 26px 0 23px;
    border-bottom: 3px solid transparent;
    line-height: normal;
    color: #35506B;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#site-header.uch .uch__link:hover {
    color: #0C2033;
}

#site-header.uch .uch__link.is-current {
    border-bottom-color: #2FB3A8;
    color: #0C2033;
}

#site-header.uch .uch__cta {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    height: 42px;
    margin-left: auto;
    padding: 0 18px;
    border-radius: 999px;
    background: #2FB3A8;
    font-size: 14px;
    font-weight: 700;
    color: #06243A;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

#site-header.uch .uch__cta:hover {
    background: #27A096;
    color: #06243A;
}

#site-header.uch .uch__burger {
    display: none;
    flex: none;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-left: -8px;
    border: 0;
    padding: 0;
    background: none;
    color: #0C2033;
    cursor: pointer;
}

#site-header.uch .uch__burger:focus-visible,
#site-header.uch a:focus-visible {
    outline: 2px solid #2FB3A8;
    outline-offset: 2px;
}

/* Artigo com "ocultar menu" (paginas de campanha): so o logo, centralizado. */

#site-header.uch--simples .uch__inner {
    justify-content: center;
}

/* Desktop: logo a esquerda, menu centralizado na pagina e botao a direita,
   com as mesmas laterais do conteudo (.uc-wrap). */

@media (min-width: 1241px) {
    #site-header.uch:not(.uch--simples) header .uch__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        padding: 0 112px;
    }

    #site-header.uch header .uc-logo {
        justify-self: start;
    }

    #site-header.uch .uch__nav {
        justify-self: center;
    }

    #site-header.uch .uch__cta {
        justify-self: end;
        margin-left: 0;
    }
}

@media (min-width: 1241px) and (max-width: 1280px) {
    #site-header.uch:not(.uch--simples) header .uch__inner {
        padding: 0 56px;
    }
}

.uch-mobile .mobile-nav-panel nav ul.menu li a[aria-current="page"] {
    color: #0C2033;
    text-decoration: underline;
    text-decoration-color: #2FB3A8;
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

@media (max-width: 1240px) {
    #site-header.uch header .uch__inner {
        gap: 12px;
        height: 64px;
        padding: 0 24px;
    }

    #site-header.uch .uch__burger {
        display: flex;
    }

    #site-header.uch .uch__nav {
        display: none;
    }
}

@media (max-width: 640px) {
    #site-header.uch header .uch__inner {
        padding: 0 16px;
    }

    #site-header.uch .uch__cta {
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar #site-header.uch {
        top: 46px;
    }
}

/* Abaixo de 600px a barra de admin do WordPress deixa de ser fixa. */

@media screen and (max-width: 600px) {
    .admin-bar #site-header.uch {
        top: 0;
    }
}

/* ---------- Rodape (components/upcards/footer.php) ---------- */

footer.ucf {
    padding: 0;
    background: var(--uc-soft);
}

.ucf__inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 40px;
}

.ucf__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 32px;
    border-radius: 24px;
    background: var(--uc-white);
    box-shadow: var(--uc-float);
}

.ucf__cta-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ucf__cta-text strong {
    font-family: var(--uc-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: normal;
}

.ucf__cta-text span {
    font-size: 16px;
    line-height: normal;
    color: var(--uc-text);
}

.ucf__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 40px;
}

.ucf__brand {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

footer.ucf .ucf__brand p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--uc-text);
}

footer.ucf .ucf__brand p a {
    color: var(--uc-ink);
    text-decoration: underline;
}

footer.ucf .ucf__brand p a:hover {
    color: var(--uc-teal-dark);
}

.ucf__cols {
    grid-column: 6 / span 7;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ucf__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    line-height: normal;
}

.ucf__col-title {
    font-family: var(--uc-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: normal;
    text-transform: uppercase;
    color: var(--uc-muted);
}

footer.ucf .ucf__col a {
    color: var(--uc-ink);
    text-decoration: none;
}

footer.ucf .ucf__col a:hover {
    color: var(--uc-teal-dark);
}

.ucf__bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 22px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--uc-muted);
}

footer.ucf a:focus-visible {
    outline: 2px solid var(--uc-teal);
    outline-offset: 2px;
}

@media (max-width: 1280px) {
    .uc-wrap {
        padding-right: 56px;
        padding-left: 56px;
    }
}

@media (max-width: 1024px) {
    .ucf__brand,
    .ucf__cols {
        grid-column: 1 / -1;
    }

    .ucf__grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 36px;
    }
}

@media (max-width: 900px) {
    .uc-wrap {
        padding-right: 24px;
        padding-left: 24px;
    }

    .ucf__cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .ucf__cta-text strong {
        font-size: 26px;
    }
}

@media (max-width: 640px) {
    .uc-wrap {
        padding-right: 16px;
        padding-left: 16px;
    }

    .ucf__inner {
        padding-top: 40px;
    }

    .ucf__cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
