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

:root {
    --primaria: #500878;
    --primaria-escura: #380456;
    --primaria-profunda: #1f0230;
    --secundaria: #ae8cc0;
    --terciaria: #753b94;
    --roxo-vibrante: #5f168e;
    --roxo-claro: #f4ecf9;
    --fundo-cinza: #f8f9fa;
    --texto-escuro: #222222;
    --texto-suave: #666666;
    --borda-suave: #eeeeee;
}

html, body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primaria-profunda);
    color: var(--texto-escuro);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── CABEÇALHO / NAVBAR ── */
header {
    width: 100%;
    position: relative;
    z-index: 100;
}

.menu-bar {
    background: #5f168e;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(20px, 4vw, 50px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: #ffffff !important;
    cursor: default;
    user-select: none;
}

.brand:link,
.brand:visited,
.brand:hover,
.brand:active {
    text-decoration: none !important;
    color: #ffffff !important;
    cursor: default;
}

.prodesp-logo-header {
    width: 28px;
    height: 32px;
    flex-shrink: 0;
}

.brand h2 {
    color: #ffffff !important;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.5px;
    text-decoration: none !important;
    margin: 0;
    line-height: 1;
    user-select: none;
}

.menu-container {
    position: static;
}

.menu-checkbox {
    display: none;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    cursor: pointer;
    z-index: 10;
}

.menu-btn span {
    display: block;
    height: 3.5px;
    width: 100%;
    background-color: white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-itens {
    list-style: none;
    position: absolute;
    top: 85px;
    right: 0;
    width: 260px;
    background-color: #4c1072;
    display: flex;
    flex-direction: column;
    z-index: 50;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-bottom-left-radius: 12px;
}

.menu-itens li {
    text-align: center;
}

.menu-itens li a {
    display: block;
    padding: 16px 20px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s, padding-left 0.2s;
}

.menu-itens li a:hover {
    background-color: #5f168e;
    padding-left: 26px;
}

.menu-checkbox:checked ~ .menu-itens {
    max-height: 280px;
    opacity: 1;
}

.menu-checkbox:checked ~ .menu-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-checkbox:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
}

.menu-checkbox:checked ~ .menu-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ── CONTEÚDO PRINCIPAL / MAIN ── */
.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
}

/* ── SEÇÃO HERO ── */
.hero {
    position: relative;
    flex: 1;
    min-height: calc(100vh - 85px);
    background:
        linear-gradient(rgba(100, 35, 155, 0.82), rgba(45, 8, 70, 0.90)),
        url('https://www.prodesp.sp.gov.br/wp-content/uploads/2023/01/Capturar.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: clamp(40px, 6vh, 80px);
}

.hero-content {
    padding-left: clamp(20px, 7vw, 100px);
    padding-right: clamp(20px, 7vw, 100px);
    color: white;
    max-width: 1200px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: clamp(40px, 7.5vw, 88px);
    font-weight: 800;
    font-style: italic;
    line-height: 1.02;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: clamp(15px, 2vw, 19px);
    line-height: 1.6;
    color: #f1e6fa;
    max-width: 660px;
    margin-bottom: 28px;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-hero-primary {
    background: #ffffff;
    color: #500878;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-hero-primary:hover {
    background: #f5edfc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.btn-hero-secondary {
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 26px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* ── CARDS WRAPPER & CARDS ── */
.cards-wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 40px auto 48px auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.cards {
    width: 100%;
    background: #ffffff;
    border-radius: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card {
    padding: 34px 28px;
    border-right: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.25s, transform 0.25s;
    background-color: #ffffff;
}

.card:last-child {
    border-right: none;
}

.card:hover {
    background-color: #faf6fd;
}

.card-icon-area {
    width: 44px;
    height: 44px;
    background-color: #f3e9f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: #5f168e;
    transition: transform 0.2s, background-color 0.2s;
}

.card:hover .card-icon-area {
    transform: scale(1.08);
    background-color: #5f168e;
    color: #ffffff;
}

.card-svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222222;
}

.card p {
    font-size: 13.5px;
    color: #666666;
    line-height: 1.55;
    margin-bottom: 22px;
    flex-grow: 1;
}

.card a {
    text-decoration: none;
    color: #5f168e;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card a:hover {
    color: #380456;
    transform: translateX(3px);
}

/* ── FOOTER INSTITUCIONAL ── */
.site-footer {
    width: 100%;
    background: #190226;
    color: #d8c2ea;
    padding: 56px 0 28px 0;
    border-top: 3px solid #5f168e;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: #ae8cc0;
    border-radius: 2px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.prodesp-logo-footer {
    width: 22px;
    height: 26px;
    flex-shrink: 0;
}

.footer-dot {
    display: none;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.5px;
}

.footer-tagline {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #cbb4de;
    margin-bottom: 16px;
}

.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(174, 140, 192, 0.3);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: #cbb4de;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Coluna de Contato e Destaque henriquebxa@gmail.com */
.contact-hint {
    font-size: 13px;
    line-height: 1.5;
    color: #cbb4de;
    margin-bottom: 14px;
}

.footer-email-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(95, 22, 142, 0.25);
    border: 1px solid #753b94;
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.footer-email-box:hover {
    background: #5f168e;
    border-color: #ae8cc0;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(95, 22, 142, 0.45);
}

.footer-email-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    flex-shrink: 0;
}

.email-details {
    display: flex;
    flex-direction: column;
}

.email-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ae8cc0;
    font-weight: 600;
}

.footer-email-box:hover .email-label {
    color: #f1e6fa;
}

.email-address {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    word-break: break-all;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #cbb4de;
}

.contact-info-item svg {
    fill: #ae8cc0;
    flex-shrink: 0;
}

/* ── DIVISOR E PARTE INFERIOR DO FOOTER ── */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: #bfa4d5;
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #ae8cc0;
    text-decoration: underline;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ── RESPONSIVIDADE (TABLET: <= 1024px) ── */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-top: 40px;
    }

    .hero-content {
        padding-left: 30px;
        padding-right: 30px;
    }

    .cards-wrapper {
        margin: 30px auto 40px auto;
        padding: 0 24px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        border-radius: 18px;
    }

    .card {
        padding: 28px 24px;
    }

    .card:nth-child(2) {
        border-right: none;
    }

    .card:nth-child(1),
    .card:nth-child(2) {
        border-bottom: 1px solid #eeeeee;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* ── RESPONSIVIDADE (MOBILE: <= 640px) ── */
@media (max-width: 640px) {
    .menu-bar {
        height: 70px;
        padding: 0 18px;
    }

    .menu-itens {
        top: 70px;
        width: 100%;
        max-width: 100vw;
        border-radius: 0;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        text-align: center;
        width: 100%;
        padding: 12px 18px;
    }

    .cards-wrapper {
        margin: 24px auto 32px auto;
        padding: 0 16px;
    }

    .cards {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .card {
        padding: 24px 20px;
        border-right: none !important;
        border-bottom: 1px solid #eeeeee;
    }

    .card:last-child {
        border-bottom: none;
    }

    .card h3 {
        font-size: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-bottom-links {
        width: 100%;
    }
}
