/* ==========================================================================
   VionTech — Página de Projetos
   Design baseado no padrão visual da página de Materiais.
   Requer index.css carregado antes deste arquivo.
   ========================================================================== */

/* ==========================================================================
   RESET / BOX SIZING
   ========================================================================== */

.hero *,
.filters-section *,
.cta-band *,
.modal-overlay * {
    box-sizing: border-box;
}

* {
    text-decoration: none;
    margin: 0;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin:auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--vt-hero-bg, #F7F7FC);
    padding: 72px 24px 64px;
    max-width: 100vw;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(var(--vt-hero-line, #E7E5F5) 1.5px,
            transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image:
        radial-gradient(ellipse 80% 75% at 50% 15%,
            #000 35%,
            transparent 90%);
    mask-image:
        radial-gradient(ellipse 80% 75% at 50% 15%,
            #000 35%,
            transparent 90%);
    opacity: 0.9;
}

.hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -150px;
    top: -170px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14), transparent 68%);
    pointer-events: none;
}

.hero-inner {
    max-width: 820px;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 7px 12px;
    border: 1px solid var(--vt-gray-300);
    border-radius: 999px;
    background: var(--vt-white);
    color: var(--vt-purple-600, #6D28D9);
    font-family: var(--vt-font-display);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 auto 18px;
    max-width: 780px;
    color: var(--vt-ink);
    font-family: var(--vt-font);
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.hero h1 em {
    color: var(--vt-purple-500, #7C3AED);
    font-style: normal;
}

.hero .lead {
    max-width: 650px;
    margin: 0 auto;
    color: var(--vt-gray-600);
    font-family: var(--vt-font);
    font-size: 15.5px;
    line-height: 1.65;
}


/* ==========================================================================
   HERO — STATS
   ========================================================================== */

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.stat-pill {
    min-width: 150px;
    padding: 15px 20px;
    border: 2px solid var(--vt-ink);
    border-radius: 14px;
    background: var(--vt-white);
    box-shadow: var(--vt-shadow-ink);
    text-align: center;
    transition:
        transform 120ms ease,
        box-shadow 120ms ease;
}

.stat-pill:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--vt-shadow-purple);
}

.stat-pill .num {
    color: var(--vt-purple-600, #6D28D9);
    font-family: var(--vt-font-display);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-pill .label {
    margin-top: 4px;
    color: var(--vt-gray-600);
    font-family: var(--vt-font);
    font-size: 11.5px;
    line-height: 1.3;
}


/* ==========================================================================
   FILTROS + PROJETOS
   ========================================================================== */

.filters-section {
    position: relative;
    overflow-x: hidden;
    background: var(--vt-ink);
    padding: 72px 0 88px;
    max-width: 100vw;
}

.filters-section .container {
    position: relative;
}


/* ==========================================================================
   FILTROS
   ========================================================================== */

.filters-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.filters {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    padding: 10px 17px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: transparent;
    color: var(--vt-white);
    font-family: var(--vt-font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 100ms ease,
        box-shadow 100ms ease,
        background 120ms ease,
        color 120ms ease,
        border-color 120ms ease;
}

.filter-btn:hover {
    border-color: var(--vt-purple-500);
    color: #C4B5FD;
    transform: translateY(-1px);
}

.filter-btn.active {
    border-color: var(--vt-purple-700, #6D28D9);
    background: var(--vt-purple-500, #7C3AED);
    color: var(--vt-white);
    box-shadow: var(--vt-shadow-purple);
    transform: translate(-1px, -1px);
}

.filter-btn:active {
    transform: translate(1px, 1px);
}

.filter-btn:focus-visible {
    outline: 1px solid var(--vt-purple-500);
    outline-offset: 1px;
}


/* ==========================================================================
   BUSCA
   ========================================================================== */

.search-box {
    position: relative;
    flex: 0 0 310px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-width: 0;
    padding: 12px 16px 12px 16px;
    border: 2px solid var(--vt-white);
    border-radius: 999px;
    outline: none;
    background: #1B1B25;
    color: var(--vt-white);
    font-family: var(--vt-font);
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 3px 3px 0 0 var(--vt-purple-500);
    transition:
        border-color 120ms ease,
        box-shadow 120ms ease,
        transform 120ms ease;
    gap: 10px;
}

.search-box input {
    width: 100%;
    min-width: 0;
    outline: none;
    background: #1B1B25;
    color: var(--vt-white);
    font-family: var(--vt-font);
    font-size: 13px;
    line-height: 1.4;
    border: none;
}

.search-box>span {
    position: absolute;
    left: 16px;
    z-index: 2;
    color: var(--vt-purple-500);
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

.search-box input::placeholder {
    color: #8A8A9A;
}

.search-box input:hover {
    border-color: #C4B5FD;
}

.search-box input:focus {
    border-color: var(--vt-purple-500);
    box-shadow: var(--vt-shadow-purple);
    transform: translate(-1px, -1px);
}

.ri-search-line {
    color: white;
}

/* ==========================================================================
   CONTADOR
   ========================================================================== */

.results-count {
    margin: 0 0 28px;
    color: #8A8A9A;
    font-family: var(--vt-font);
    font-size: 12.5px;
    line-height: 1.5;
}

.results-count strong {
    color: #C4B5FD;
    font-family: var(--vt-font-display);
    font-weight: 700;
}


/* ==========================================================================
   GRID DE PROJETOS
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* ==========================================================================
   CARD
   ========================================================================== */

.project-card {
    --project-shadow: 5px 5px 0 0 var(--vt-purple-500, #7C3AED);
    --project-shadow-hover: 7px 7px 0 0 var(--vt-purple-500, #7C3AED);
    --project-shadow-active: 1px 1px 0 0 var(--vt-purple-500, #7C3AED);

    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 2px solid var(--vt-white);
    border-radius: 18px;
    background: #1B1B25;
    box-shadow: var(--project-shadow);
    cursor: pointer;
    transform: translate(0, 0);
    transition:
        transform 120ms cubic-bezier(0.2, 0, 0.2, 1),
        box-shadow 120ms cubic-bezier(0.2, 0, 0.2, 1),
        background 120ms ease;
}

.project-card:hover {
    background: #202029;
    box-shadow: var(--project-shadow-hover);
    transform: translate(-1px, -1px);
}

.project-card:active {
    box-shadow: var(--project-shadow-active);
    transform: translate(1px, 1px);
}

.project-card:focus-visible {
    outline: 1px solid var(--vt-purple-500);
    outline-offset: 1px;
}


/* ==========================================================================
   CARD — MEDIA
   ========================================================================== */

.card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    background-color: #0B0B14;
}

.card-media__cover {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.modal-media.has-cover .modal-media__cover {
    position: static;
    inset: auto;
    z-index: 0;
    width: 100%;
    height: auto;
    object-fit: unset;
    object-position: top center;
    display: block;
}

.card-media.has-cover,
.modal-media.has-cover {
    background: #0B0B14 !important;
}

.card-media.has-cover .cat-icon,
.modal-media.has-cover .cat-icon {
    display: none;
}

.card-media.has-cover::before,
.card-media.has-cover::after,
.modal-media.has-cover::before {
    opacity: 0.28;
}

.card-media .browser-dots,
.card-media .card-badge,
.modal-media .card-badge {
    z-index: 2;
}

.card-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%,
            rgba(255, 255, 255, 0.16),
            transparent 32%),
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.08),
            transparent 55%);
    pointer-events: none;
}

.card-media::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -60px;
    bottom: -90px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 24px rgba(255, 255, 255, 0.035),
        0 0 0 48px rgba(255, 255, 255, 0.025);
    pointer-events: none;
}


/* ==========================================================================
   BROWSER DOTS
   ========================================================================== */

.browser-dots {
    position: absolute;
    top: 14px;
    left: 15px;
    display: flex;
    gap: 5px;
}

.browser-dots span {
    width: 7px;
    height: 7px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}


/* ==========================================================================
   CARD — BADGE
   ========================================================================== */

.card-badge {
    position: absolute;
    top: 13px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--vt-ink);
    font-family: var(--vt-font-display);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1;
    text-transform: uppercase;
}


/* ==========================================================================
   CARD — ÍCONE
   ========================================================================== */

.cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--vt-white);
    font-size: 38px;
    line-height: 1;
    box-shadow:
        4px 4px 0 rgba(0, 0, 0, 0.22),
        inset 0 0 20px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    transition:
        transform 160ms ease,
        background 160ms ease;
}

.project-card:hover .card-media .cat-icon {
    background: rgba(255, 255, 255, 0.17);
    transform: scale(1.04) rotate(-2deg);
}


/* ==========================================================================
   CARD — BODY
   ========================================================================== */

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
    padding: 22px;
}

.card-client {
    display: block;
    overflow: hidden;
    color: #A78BFA;
    font-family: var(--vt-font-display);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.3;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.card-body h3 {
    margin: 0;
    color: var(--vt-white);
    font-family: var(--vt-font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.01em;
}

.card-body .desc {
    display: -webkit-box;
    flex: 1;
    margin: 0;
    overflow: hidden;
    color: #B4B4C2;
    font-family: var(--vt-font);
    font-size: 13px;
    line-height: 1.6;
    --webkit-box-orient: vertical;
    --webkit-line-clamp: 3;
}


/* ==========================================================================
   CARD — TAGS
   ========================================================================== */

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #C4C4D0;
    font-family: var(--vt-font);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.1;
}


/* ==========================================================================
   CARD — FOOTER
   ========================================================================== */

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
    padding-top: 13px;
    border-top: 2px solid rgba(255, 255, 255, 0.11);
}

.card-metric {
    min-width: 0;
    color: #8A8A9A;
    font-family: var(--vt-font);
    font-size: 11.5px;
    line-height: 1.4;
}

.card-metric strong {
    margin-right: 3px;
    color: #C4B5FD;
    font-family: var(--vt-font-display);
    font-size: 14px;
    font-weight: 700;
}

.card-link {
    flex: 0 0 auto;
    color: var(--vt-purple-500, #7C3AED);
    font-family: var(--vt-font-display);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    transition:
        color 120ms ease,
        transform 120ms ease;
}

.project-card:hover .card-link {
    color: #A78BFA;
    transform: translateX(2px);
}


/* ==========================================================================
   ESTADO VAZIO
   ========================================================================== */

.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 50px 24px;
    text-align: center;
}

.empty-state h3 {
    margin: 0 0 7px;
    color: var(--vt-white);
    font-family: var(--vt-font-display);
    font-size: 18px;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
    color: #8A8A9A;
    font-family: var(--vt-font);
    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================================================
   CTA
   ========================================================================== */

.vt-btn__icon {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    flex-shrink: 0;
}

.vt-pricing__custom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 56px;
    padding: 28px 32px;
    background: var(--vt-ink);
    border-radius: 18px;
}

.vt-pricing__custom-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 480px;
}

.vt-pricing__custom-text strong {
    font-family: var(--vt-font-display);
    font-size: 17px;
    color: var(--vt-white);
}

.vt-pricing__custom-text span {
    font-family: var(--vt-font);
    font-size: 13.5px;
    line-height: 1.5;
    color: #B4B4C2;
}

.vt-pricing__custom .vt-btn {
    flex-shrink: 0;
}

.project-card:nth-child(n+4) {
    content-visibility: auto;
    contain-intrinsic-size: 420px;
}

.cta-band {
    position: relative;
    overflow: hidden;
    background: var(--vt-gray-100);
    padding: 64px 24px;
    max-width: 100vw;
}

.cta-band::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    left: -170px;
    bottom: -180px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.07);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 38px;
    border: 2px solid var(--vt-ink);
    border-radius: 18px;
    background: var(--vt-white);
    box-shadow: var(--vt-shadow-ink);
}

.cta-inner>div {
    min-width: 0;
}

.cta-inner h2 {
    margin: 0 0 8px;
    color: var(--vt-ink);
    font-family: var(--vt-font-display);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.cta-inner p {
    max-width: 680px;
    margin: 0;
    color: var(--vt-gray-600);
    font-family: var(--vt-font);
    font-size: 13.5px;
    line-height: 1.6;
}


/* ==========================================================================
   MODAL
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 17, 27, 0.76);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    width: min(900px, 100%);
    max-height: min(700px, calc(100vh - 48px));
    overflow: hidden;
    border: 2px solid var(--vt-ink);
    border-radius: 20px;
    background: var(--vt-white);
    box-shadow:
        8px 8px 0 0 var(--vt-purple-500),
        0 24px 70px rgba(0, 0, 0, 0.28);
    transform: translateY(12px) scale(0.98);
    transition: transform 180ms ease;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}


/* ==========================================================================
   MODAL — MEDIA
   ========================================================================== */

.modal-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #37206b, #7c3aed);
}

.modal-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%,
            rgba(255, 255, 255, 0.15),
            transparent 34%),
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.08),
            transparent 60%);
    pointer-events: none;
}

.modal-media .cat-icon {
    position: relative;
    z-index: 1;
    width: 100px;
    height: 100px;
    font-size: 46px;
}


/* ==========================================================================
   MODAL — FECHAR
   ========================================================================== */

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid var(--vt-white);
    border-radius: 10px;
    background: rgba(17, 17, 27, 0.35);
    color: var(--vt-white);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 120ms ease,
        transform 120ms ease;
}

.modal-close:hover {
    background: var(--vt-purple-500);
    transform: translate(-1px, -1px);
}

.modal-close:active {
    transform: translate(1px, 1px);
}


/* ==========================================================================
   MODAL — BODY
   ========================================================================== */

.modal-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
    padding: 38px;
}

.modal-body .card-client {
    margin-bottom: 9px;
}

.modal-body h2 {
    margin: 0 0 14px;
    color: var(--vt-ink);
    font-family: var(--vt-font-display);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.desc-full {
    margin: 0;
    color: var(--vt-gray-600);
    font-family: var(--vt-font);
    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================================================
   MODAL — STATS
   ========================================================================== */

.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.modal-stat {
    padding: 14px;
    border: 1.5px solid var(--vt-gray-300);
    border-radius: 12px;
    background: var(--vt-gray-100);
}

.modal-stat strong {
    display: block;
    margin-bottom: 3px;
    color: var(--vt-purple-600, #6D28D9);
    font-family: var(--vt-font-display);
    font-size: 18px;
    font-weight: 700;
}

.modal-stat span {
    display: block;
    color: var(--vt-gray-600);
    font-family: var(--vt-font);
    font-size: 10.5px;
    line-height: 1.4;
}


/* ==========================================================================
   MODAL — TAGS
   ========================================================================== */

.modal-body .card-tags {
    margin-top: 20px;
}

.modal-body .tag {
    border-color: var(--vt-gray-300);
    background: var(--vt-gray-100);
    color: var(--vt-gray-600);
}


/* ==========================================================================
   MODAL — AÇÕES
   ========================================================================== */

.modal-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid var(--vt-gray-200, #E5E7EB);
}

.modal-actions .btn {
    flex: 0 0 auto;
}


/* ==========================================================================
   SCROLLBAR DO MODAL
   ========================================================================== */

.modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--vt-purple-500) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 7px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--vt-purple-500);
}


/* ==========================================================================
   RESPONSIVO — 1100px
   ========================================================================== */

@media (max-width: 1100px) {

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters-wrap {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        flex: none;
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

}


/* ==========================================================================
   RESPONSIVO — 900px
   ========================================================================== */

@media (max-width: 900px) {

    .hero {
        padding: 60px 24px 54px;
    }

    .filters-section {
        padding: 58px 0 70px;
    }

    .modal {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .modal-media {
        min-height: 190px;
    }

    .modal-media .cat-icon {
        width: 78px;
        height: 78px;
        font-size: 36px;
        border-radius: 18px;
    }

    .modal-body {
        max-height: calc(100vh - 260px);
        padding: 30px;
    }

}


/* ==========================================================================
   RESPONSIVO — 768px
   ========================================================================== */

@media (max-width: 768px) {

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding: 52px 20px 48px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero .lead {
        font-size: 14.5px;
    }

    .hero-stats {
        gap: 10px;
    }

    .stat-pill {
        min-width: 135px;
        padding: 13px 16px;
    }

    .stat-pill .num {
        font-size: 19px;
    }

    .filters-section {
        padding: 48px 0 60px;
    }

    .filters {
        justify-content: flex-start;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-card {
        border-radius: 16px;
    }

    .card-media {
        min-height: 0;
    }

    .cta-band {
        padding: 48px 20px;
    }

    .cta-inner {
        align-items: stretch;
        flex-direction: column;
        padding: 28px 24px;
    }

    .cta-inner .btn {
        width: 100%;
        justify-content: center;
    }

}


/* ==========================================================================
   RESPONSIVO — 640px
   ========================================================================== */

@media (max-width: 640px) {

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding: 44px 16px 42px;
    }

    .vt-pricing__custom {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 24px 22px;
    }

    .vt-pricing__custom-text {
        max-width: none;
        align-items: center;
    }

    .vt-pricing__custom .vt-btn {
        justify-content: center;
    }

    .hero h1 {
        font-size: 27px;
        line-height: 1.18;
    }

    .hero .lead {
        font-size: 14px;
        line-height: 1.6;
    }

    .eyebrow {
        margin-bottom: 16px;
        font-size: 10.5px;
        padding: 6px 10px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 28px;
    }

    .stat-pill {
        min-width: 0;
        padding: 12px 7px;
        border-radius: 11px;
    }

    .stat-pill .num {
        font-size: 16px;
    }

    .stat-pill .label {
        font-size: 9.5px;
    }

    .filters-section {
        padding: 42px 0 52px;
    }

    .filter-btn {
        padding: 9px 14px;
        font-size: 11.5px;
    }

    .search-box input {
        font-size: 12.5px;
    }

    .results-count {
        margin-bottom: 20px;
        font-size: 11.5px;
    }

    .projects-grid {
        gap: 16px;
    }

    .card-media {
        min-height: 0;
    }

    .cat-icon {
        width: 70px;
        height: 70px;
        border-radius: 19px;
        font-size: 32px;
    }

    .card-body {
        gap: 10px;
        padding: 18px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .card-body .desc {
        font-size: 12.5px;
    }

    .card-footer {
        align-items: flex-end;
    }

    .card-metric {
        max-width: 65%;
    }

    .card-link {
        font-size: 11px;
    }

    .cta-band {
        padding: 42px 16px;
    }

    .cta-inner {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .cta-inner h2 {
        font-size: 21px;
    }

    .cta-inner p {
        font-size: 13px;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 0 var(--vt-purple-500);
    }

    .modal-media {
        min-height: 145px;
    }

    .modal-body {
        max-height: calc(92vh - 145px);
        padding: 24px 20px 28px;
    }

    .modal-body h2 {
        font-size: 22px;
    }

    .desc-full {
        font-size: 13.5px;
    }

    .modal-stats {
        grid-template-columns: 1fr;
    }

    .modal-stat {
        padding: 11px 13px;
    }

    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

}


/* ==========================================================================
   RESPONSIVO — 400px
   ========================================================================== */

@media (max-width: 400px) {

    .hero h1 {
        font-size: 25px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat-pill {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    .stat-pill .label {
        margin-top: 0;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-metric {
        max-width: 100%;
    }

    .card-link {
        align-self: flex-end;
    }

}


/* ==========================================================================
   PAGINAÇÃO PÚBLICA
   ========================================================================== */

.projects-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1.5px dashed rgba(255, 255, 255, 0.16);
}

.projects-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1.5px solid var(--vt-white);
    border-radius: 9px;
    background: var(--vt-white);
    color: var(--vt-ink);
    font-family: var(--vt-font-display);
    font-size: 11px;
    font-weight: 700;
    box-shadow: 3px 3px 0 var(--vt-purple-500);
    text-decoration: none;
}

.projects-pagination__btn.is-disabled {
    opacity: 0.4;
    box-shadow: none;
    cursor: not-allowed;
}

.projects-pagination__pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.projects-pagination__pages a,
.projects-pagination__pages span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #C4B5FD;
    font-family: var(--vt-font-display);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.projects-pagination__pages span.is-atual {
    background: var(--vt-purple-500);
    color: var(--vt-white);
    box-shadow: 2px 2px 0 var(--vt-purple-300);
}

@media (max-width: 640px) {
    .projects-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ==========================================================================
   ACESSIBILIDADE / REDUÇÃO DE MOVIMENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .project-card,
    .stat-pill,
    .filter-btn,
    .search-box input,
    .cat-icon,
    .card-link,
    .modal,
    .modal-overlay,
    .modal-close {
        transition: none;
        animation: none;
    }

}


/* ==========================================================================
   BODY — BLOQUEIO DE SCROLL QUANDO MODAL ESTIVER ABERTO
   ========================================================================== */

body.modal-open {
    overflow: hidden;
}