/*
 * Arquivo do Voto
 * Identidade visual principal
 * Versão: 0.3.1
 */

:root {
    --av-blue-dark: #002776;
    --av-blue: #0055d4;
    --av-green: #009b3a;
    --av-yellow: #ffdf00;

    --av-bg: #f5f7fa;
    --av-surface: #ffffff;
    --av-text: #122033;
    --av-muted: #667085;
    --av-border: #e4e9f0;

    --av-radius-sm: 8px;
    --av-radius-md: 14px;
    --av-radius-lg: 22px;

    --av-shadow-sm: 0 4px 16px rgba(0, 39, 118, .07);
    --av-shadow-md: 0 10px 30px rgba(0, 39, 118, .10);

    --av-content-width: 1200px;
}

/*
 * Utilitários próprios.
 * Não alteramos globalmente os componentes do JNews.
 */

.av-container {
    width: min(calc(100% - 32px), var(--av-content-width));
    margin-inline: auto;
}

.av-section {
    padding: 56px 0;
}

.av-card {
    background: var(--av-surface);
    border: 1px solid var(--av-border);
    border-radius: var(--av-radius-md);
    box-shadow: var(--av-shadow-sm);
}

.av-title {
    margin: 0;
    color: var(--av-blue-dark);
    font-weight: 800;
    line-height: 1.12;
}

.av-text {
    color: var(--av-text);
    line-height: 1.65;
}

.av-muted {
    color: var(--av-muted);
}

.av-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--av-radius-sm);
    background: var(--av-blue-dark);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.av-button:hover {
    background: var(--av-blue);
    box-shadow: var(--av-shadow-sm);
    transform: translateY(-1px);
}

.av-button--green {
    background: var(--av-green);
}

.av-button--green:hover {
    background: #008532;
}

.av-highlight {
    color: var(--av-green);
}

.av-accent {
    color: var(--av-blue);
}

@media (max-width: 767px) {
    .av-container {
        width: min(calc(100% - 24px), var(--av-content-width));
    }

    .av-section {
        padding: 36px 0;
    }
}


/* =========================================================
   HOME — Arquivo do Voto
   ========================================================= */

.av-home-shell {
    overflow: hidden;
    background: #fff;
    color: var(--av-text);
    font-family:
        Montserrat,
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.av-home-shell * {
    box-sizing: border-box;
}

.av-home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 20%, rgba(0, 155, 58, .30), transparent 30%),
        radial-gradient(circle at 72% 92%, rgba(255, 223, 0, .14), transparent 26%),
        linear-gradient(125deg, #001b4f 0%, #002776 52%, #0044a8 100%);
    color: #fff;
}

.av-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to right, transparent, #000);
}

.av-home-hero__inner {
    min-height: 520px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    align-items: center;
    gap: 70px;
    padding-top: 70px;
    padding-bottom: 70px;
}

.av-home-eyebrow,
.av-home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--av-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.av-home-eyebrow {
    color: #8bf5ad;
}

.av-home-eyebrow::before,
.av-home-kicker::before {
    content: "";
    width: 22px;
    height: 3px;
    border-radius: 99px;
    background: var(--av-yellow);
}

.av-home-hero h1 {
    max-width: 770px;
    margin: 18px 0 18px;
    color: #fff;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: .99;
}

.av-home-hero h1 span {
    display: block;
    color: #dce8ff;
}

.av-home-hero__lead {
    max-width: 730px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    line-height: 1.65;
}

.av-home-search {
    width: min(100%, 720px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 30px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(0,0,0,.18);
}

.av-home-search input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 17px;
    border: 0 !important;
    outline: 0;
    background: transparent;
    color: #172033;
    font-size: 15px;
    box-shadow: none !important;
}

.av-home-search button {
    height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: var(--av-green);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.av-home-search button:hover {
    background: #008632;
}

.av-home-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 25px;
}

.av-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    font-weight: 750;
    text-decoration: none !important;
}

.av-home-link:hover {
    color: var(--av-yellow) !important;
}

.av-home-hero__visual {
    position: relative;
    min-height: 390px;
}

.av-home-orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
}

.av-home-orbit--one {
    width: 370px;
    height: 370px;
    top: 8px;
    right: 5px;
}

.av-home-orbit--two {
    width: 270px;
    height: 270px;
    top: 58px;
    right: 55px;
}

.av-home-ballot {
    position: absolute;
    width: 330px;
    height: 330px;
    top: 30px;
    right: 35px;
    filter: drop-shadow(0 30px 34px rgba(0,0,0,.28));
}

.av-home-ballot__paper {
    position: absolute;
    z-index: 4;
    width: 112px;
    height: 142px;
    top: 24px;
    left: 110px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    transform: rotate(-8deg);
    background: linear-gradient(145deg, #fff, #e8edf4);
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.av-home-ballot__paper span {
    color: var(--av-blue-dark);
    font-size: 68px;
    font-weight: 900;
}

.av-home-ballot__slot {
    position: absolute;
    z-index: 3;
    width: 150px;
    height: 34px;
    top: 146px;
    left: 91px;
    border-radius: 50%;
    background: #001a52;
    transform: perspective(120px) rotateX(57deg);
}

.av-home-ballot__box {
    position: absolute;
    z-index: 2;
    width: 290px;
    height: 165px;
    top: 158px;
    left: 20px;
    overflow: hidden;
    border-radius: 15px 15px 52px 52px;
    background: linear-gradient(135deg, #009b3a 0 48%, #0055d4 48%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.3),
        0 22px 50px rgba(0,0,0,.24);
}

.av-home-ballot__green,
.av-home-ballot__yellow,
.av-home-ballot__blue {
    position: absolute;
    width: 400px;
    height: 62px;
    left: -50px;
    border-radius: 50%;
    transform: rotate(-8deg);
}

.av-home-ballot__green {
    bottom: -25px;
    background: #00a43e;
}

.av-home-ballot__yellow {
    bottom: 38px;
    background: var(--av-yellow);
}

.av-home-ballot__blue {
    bottom: 8px;
    background: var(--av-blue-dark);
}

.av-home-entry,
.av-home-discover {
    padding: 78px 0;
}

.av-home-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    align-items: end;
    gap: 45px;
    margin-bottom: 34px;
}

.av-home-section-heading h2,
.av-home-trust h2,
.av-home-discover h2 {
    margin: 10px 0 0;
    color: var(--av-blue-dark);
    font-size: clamp(29px, 3vw, 42px);
    font-weight: 850;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.av-home-section-heading > p {
    margin: 0 0 5px;
    color: var(--av-muted);
    font-size: 16px;
    line-height: 1.65;
}

.av-home-grid {
    display: grid;
    gap: 18px;
}

.av-home-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.av-home-feature-card {
    position: relative;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--av-border);
    border-radius: 18px;
    background: #fff;
    color: var(--av-text) !important;
    text-decoration: none !important;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.av-home-feature-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -65px;
    bottom: -65px;
    border-radius: 50%;
    background: rgba(0,85,212,.05);
}

.av-home-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,85,212,.28);
    box-shadow: var(--av-shadow-md);
}

.av-home-feature-card__icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    border-radius: 12px;
    background: rgba(0,155,58,.09);
    color: var(--av-green);
    font-size: 24px;
    font-weight: 900;
}

.av-home-feature-card strong {
    color: var(--av-blue-dark);
    font-size: 20px;
    font-weight: 850;
}

.av-home-feature-card p {
    margin: 8px 0 20px;
    color: var(--av-muted);
    font-size: 14px;
    line-height: 1.6;
}

.av-home-feature-card__arrow {
    margin-top: auto;
    color: var(--av-green);
    font-size: 20px;
    font-weight: 900;
}

.av-home-trust {
    padding: 0 0 78px;
}

.av-home-trust__panel {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 60px;
    padding: 48px;
    border-radius: 25px;
    background:
        radial-gradient(circle at 100% 0, rgba(255,223,0,.12), transparent 30%),
        linear-gradient(130deg, #001d55, #002776);
    color: #fff;
}

.av-home-trust__intro h2 {
    color: #fff;
}

.av-home-trust__intro p {
    margin: 18px 0 0;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
}

.av-home-trust__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 15px;
    align-items: stretch;
}

.av-home-trust__items > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 165px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(255,255,255,.055);
}

.av-home-trust__items strong {
    color: var(--av-yellow);
    font-size: 18px;
    font-weight: 850;
}

.av-home-trust__items span {
    margin-top: 9px;
    color: rgba(255,255,255,.70);
    font-size: 13px;
    line-height: 1.55;
}

.av-home-discover {
    background: var(--av-bg);
}

.av-home-discover__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 35px;
}

.av-home-discover__main,
.av-home-discover__aside {
    border: 1px solid var(--av-border);
    border-radius: 22px;
    background: #fff;
}

.av-home-discover__main {
    padding: 42px;
}

.av-home-discover__main > p {
    max-width: 760px;
    margin: 18px 0 25px;
    color: var(--av-muted);
    font-size: 16px;
    line-height: 1.7;
}

.av-home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
}

.av-home-tags span {
    padding: 8px 13px;
    border: 1px solid #dfe5ee;
    border-radius: 999px;
    background: #f8fafc;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.av-home-discover__aside {
    overflow: hidden;
}

.av-home-discover__aside > .av-home-kicker {
    margin: 29px 28px 14px;
}

.av-home-discover__aside a {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 22px 28px;
    border-top: 1px solid var(--av-border);
    color: var(--av-text) !important;
    text-decoration: none !important;
}

.av-home-discover__aside strong {
    color: var(--av-blue-dark);
    font-size: 16px;
    font-weight: 850;
}

.av-home-discover__aside span {
    grid-column: 1;
    margin-top: 4px;
    color: var(--av-muted);
    font-size: 13px;
}

.av-home-discover__aside b {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--av-green);
    font-size: 20px;
}

.av-home-discover__aside a:hover {
    background: #f8fafc;
}

@media (max-width: 1024px) {
    .av-home-hero__inner {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 30px;
    }

    .av-home-ballot {
        transform: scale(.82);
        transform-origin: center right;
    }

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

    .av-home-trust__panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .av-home-hero__inner {
        min-height: 0;
        grid-template-columns: 1fr;
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .av-home-hero__visual {
        display: none;
    }

    .av-home-hero h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .av-home-hero__lead {
        font-size: 16px;
    }

    .av-home-search {
        grid-template-columns: 1fr;
    }

    .av-home-search button {
        justify-content: center;
    }

    .av-home-section-heading,
    .av-home-discover__grid {
        grid-template-columns: 1fr;
    }

    .av-home-grid--4 {
        grid-template-columns: 1fr;
    }

    .av-home-feature-card {
        min-height: 0;
    }

    .av-home-entry,
    .av-home-discover {
        padding: 52px 0;
    }

    .av-home-trust {
        padding-bottom: 52px;
    }

    .av-home-trust__panel,
    .av-home-discover__main {
        padding: 28px;
    }

    .av-home-trust__items {
        grid-template-columns: 1fr;
    }

    .av-home-trust__items > div {
        min-height: 0;
    }
}


/* =========================================================
   FOOTER — Arquivo do Voto
   ========================================================= */

.av-site-footer {
    position: relative;
    width: 100%;
    background:
        radial-gradient(
            circle at 90% 0,
            rgba(0, 85, 212, .20),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #00183f 0%,
            #002776 65%,
            #00183f 100%
        );
    color: rgba(255,255,255,.78);
    font-family:
        Montserrat,
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.av-site-footer * {
    box-sizing: border-box;
}

.av-site-footer__flag {
    display: grid;
    grid-template-columns: 1.2fr .75fr 1fr;
    height: 4px;
}

.av-site-footer__flag span:nth-child(1) {
    background: var(--av-green);
}

.av-site-footer__flag span:nth-child(2) {
    background: var(--av-yellow);
}

.av-site-footer__flag span:nth-child(3) {
    background: var(--av-blue);
}

.av-site-footer__main {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.45fr)
        minmax(150px, .7fr)
        minmax(160px, .7fr)
        minmax(220px, .85fr);
    gap: 54px;
    padding: 58px 0 50px;
}

.av-site-footer__brand {
    max-width: 390px;
}

.av-site-footer__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    text-decoration: none !important;
}

.av-site-footer__logo-image {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 62px;
    object-fit: contain;
}

.av-site-footer__logo-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.04em;
}

.av-site-footer__logo-text small {
    color: var(--av-yellow);
    font-size: 14px;
    font-weight: 900;
}

.av-site-footer__description {
    max-width: 380px;
    margin: 0 0 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

.av-site-footer__independent {
    max-width: 380px;
    margin: 0;
    color: rgba(255,255,255,.57);
    font-size: 12px;
    line-height: 1.65;
}

.av-site-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.av-site-footer__column > strong {
    margin-bottom: 7px;
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.av-site-footer__column > a {
    color: rgba(255,255,255,.70) !important;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none !important;
    transition:
        color .18s ease,
        transform .18s ease;
}

.av-site-footer__column > a:hover {
    color: var(--av-yellow) !important;
    transform: translateX(2px);
}

.av-site-footer__column > span {
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.65;
}

.av-site-footer__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 8px;
    padding: 0 15px;
    border-radius: 8px;
    background: var(--av-green);
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800;
}

.av-site-footer__button:hover {
    background: #00ae45;
    color: #fff !important;
    transform: none !important;
}

.av-site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.48);
    font-size: 11px;
}

@media (max-width: 991px) {
    .av-site-footer__main {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 38px;
    }

    .av-site-footer__main > :last-child {
        grid-column: 1 / -1;
        max-width: 480px;
    }
}

@media (max-width: 767px) {
    .av-site-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 35px 24px;
        padding: 44px 0 38px;
    }

    .av-site-footer__brand {
        grid-column: 1 / -1;
    }

    .av-site-footer__main > :last-child {
        grid-column: 1 / -1;
    }

    .av-site-footer__bottom {
        flex-direction: column;
        gap: 5px;
        padding-bottom: 22px;
    }
}

@media (max-width: 480px) {
    .av-site-footer__main {
        grid-template-columns: 1fr;
    }

    .av-site-footer__brand,
    .av-site-footer__main > :last-child {
        grid-column: auto;
    }
}
