:root {
    --brand-navy: #0f2747;
    --brand-navy-dark: #091a30;
    --brand-orange: #ff8a3d;
    --brand-sky: #2b7fff;
    --brand-red: #d70d33;
    --brand-blue: #003a70;
    --text-primary: #1f2a37;
    --text-muted: #5f6b7a;
    --bg-light: #f6f8fb;
    --bg-hero: linear-gradient(135deg, #e8f1ff 0%, #fff9f3 100%);
    --border-soft: #e2e8f0;
    --shadow-soft: 0 16px 40px rgba(15, 39, 71, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --transition: all 0.25s ease;
}

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

body {
    margin: 0;
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    padding-left: 1.2rem;
}

h1, h2, h3 {
    font-family: "Montserrat", "Source Sans 3", sans-serif;
    font-weight: 700;
    margin: 0 0 0.75em;
    color: var(--brand-navy);
}

p {
    margin: 0 0 1.25em;
    color: var(--text-muted);
}

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background: var(--brand-orange);
    color: #fff;
    box-shadow: 0 12px 30px rgba(255, 138, 61, 0.35);
}

.btn--primary:hover {
    background: #ff7a1e;
    transform: translateY(-1px);
}

.btn--ghost {
    border-color: rgba(15, 39, 71, 0.2);
    color: var(--brand-navy);
    background: rgba(255, 255, 255, 0.05);
}

.btn--ghost:hover {
    border-color: rgba(15, 39, 71, 0.5);
}

.btn--full {
    width: 100%;
}

.topbar {
    background: var(--brand-navy-dark);
    color: #d9e4ff;
    font-size: 0.85rem;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    gap: 1rem;
}

.topbar__contact {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.topbar__contact a:hover {
    color: #fff;
}

.navbar {
    background: #fff;
    box-shadow: 0 8px 20px rgba(9, 26, 48, 0.07);
    position: sticky;
    top: 0;
    z-index: 20;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.5rem;
}

.navbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand__logo {
    width: clamp(68px, 7vw, 96px);
    max-height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.brand__text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.brand__text strong {
    font-size: 1.1rem;
    color: var(--brand-navy);
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.navbar__menu a:hover {
    color: var(--brand-orange);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar__toggle span {
    width: 25px;
    height: 3px;
    background: var(--brand-navy);
    border-radius: 10px;
}

.hero {
    background: var(--bg-hero);
    padding: 4rem 0 3rem;
}

.hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero__logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-logo {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: 0 12px 30px rgba(15, 39, 71, 0.05);
    display: grid;
    gap: 0.6rem;
    text-align: center;
}

.hero-logo img {
    width: min(160px, 100%);
    justify-self: center;
}

.hero-logo figcaption {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.hero__meta strong {
    display: block;
    font-size: 1.8rem;
    color: var(--brand-navy);
}

.hero__meta span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero__figure {
    display: grid;
    gap: 1.5rem;
    position: relative;
}

.figure__card {
    background: #fff;
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.figure__card .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 138, 61, 0.15);
    color: var(--brand-orange);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8rem;
}

.figure__card--secondary {
    background: var(--brand-navy);
    color: #d4e4ff;
}

.figure__card--secondary h3 {
    color: #fff;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 4.5rem 0;
}

.about {
    background: #fff;
}

.about__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.about__points {
    display: grid;
    gap: 1.8rem;
    margin-top: 2rem;
}

.about__points article {
    background: var(--bg-light);
    padding: 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 39, 71, 0.07);
}

.about__media {
    display: grid;
    gap: 1.5rem;
}

.video {
    background: linear-gradient(135deg, rgba(43, 127, 255, 0.15), rgba(255, 138, 61, 0.15));
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(43, 127, 255, 0.25);
}

.video__badge {
    display: inline-block;
    background: var(--brand-sky);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.6rem;
    border: 1px solid var(--border-soft);
}

.achievements strong {
    font-size: 1.5rem;
    color: var(--brand-navy);
    display: block;
}

.solutions {
    background: var(--bg-light);
}

.solutions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

.solutions__grid article {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: 0 10px 30px rgba(15, 39, 71, 0.05);
}

.solutions__grid ul {
    margin: 0;
    color: var(--text-muted);
    display: grid;
    gap: 0.4rem;
}

.partners {
    background: #fff;
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.partner-card {
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    color: #fff;
    display: grid;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.partner-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.25));
    opacity: 0;
    transition: var(--transition);
}

.partner-card:hover::after {
    opacity: 1;
}

.partner-card ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
}

.partner-card--featured {
    box-shadow: 0 20px 45px rgba(9, 26, 48, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transform: translateY(-6px);
}

.partner-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.partner-showcase figure {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(15, 39, 71, 0.08);
    box-shadow: 0 16px 32px rgba(15, 39, 71, 0.08);
}

.partner-showcase__media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 39, 71, 0.05);
}

.partner-showcase__media img {
    width: min(200px, 100%);
}

.partner-showcase figcaption {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.partner-card a {
    font-weight: 600;
}

.partner-card__tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.partner-card--caed {
    background: linear-gradient(135deg, #102f57, #154377);
}

.partner-card--cna {
    background: linear-gradient(135deg, #ff3358, #d70d33);
}

.partner-card--cruzeiro {
    background: linear-gradient(135deg, #0e3c76, #2b7fff);
}

.programs {
    background: var(--bg-light);
}

.programs__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.programs__grid article {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.8rem;
    border: 1px solid rgba(15, 39, 71, 0.08);
    display: grid;
    gap: 0.8rem;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(43, 127, 255, 0.12);
    color: var(--brand-sky);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.badge--alt {
    background: rgba(255, 138, 61, 0.15);
    color: var(--brand-orange);
}

.infrastructure {
    background: #fff;
}

.infrastructure__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.infrastructure__list {
    margin: 2rem 0 0;
    display: grid;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.infrastructure__list li {
    background: var(--bg-light);
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 39, 71, 0.08);
}

.infrastructure__highlights {
    display: grid;
    gap: 1.2rem;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(16, 47, 87, 0.95), rgba(21, 67, 119, 0.8));
    color: #f5f8ff;
    border-radius: var(--radius-md);
    padding: 1.6rem;
    box-shadow: var(--shadow-soft);
}

.cta {
    background: linear-gradient(135deg, #102f57, #ff8a3d);
    color: #fff;
    text-align: center;
    padding: 4.5rem 0;
}

.cta__content {
    display: grid;
    gap: 1rem;
}

.cta h2 {
    color: #fff;
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.cta__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cta__logos img {
    width: clamp(140px, 18vw, 200px);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
}

.cta__assistant {
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    display: grid;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

.cta__assistant h3 {
    margin: 0;
    color: #fff;
    font-size: 1.4rem;
}

.assistant {
    background: #f0f4ff;
    padding: 4rem 0;
}

.assistant__container {
    width: min(960px, 92vw);
    margin: 0 auto;
}

.assistant__card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 52px rgba(15, 39, 71, 0.12);
    padding: clamp(2rem, 4vw, 3rem);
    display: grid;
    gap: 1.5rem;
}

.assistant__header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.assistant__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2b7fff, #ff8a3d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.assistant__body ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.45rem;
    color: var(--text-muted);
}

.assistant__actions {
    display: grid;
    gap: 0.6rem;
    justify-items: start;
}

.assistant__hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact {
    background: #fff;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.contact__cards {
    display: grid;
    gap: 1.2rem;
    margin-top: 2rem;
}

.contact__cards div {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(15, 39, 71, 0.1);
}

.contact__logos {
    margin-top: 2rem;
    display: grid;
    gap: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact__logos-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.contact__logos-row img {
    width: clamp(130px, 20vw, 180px);
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(15, 39, 71, 0.08);
}

.contact__form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.2rem;
}

.form__group {
    display: grid;
    gap: 0.4rem;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-navy);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 39, 71, 0.2);
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 2px rgba(255, 138, 61, 0.25);
}

.form__note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.footer {
    background: var(--brand-navy-dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 3rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer__brand {
    display: flex;
    gap: 1rem;
}

.footer__brand strong {
    display: block;
    color: #fff;
}

.footer__links {
    display: grid;
    gap: 0.4rem;
}

.footer__links a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 0;
    font-size: 0.85rem;
}

.footer__bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.9);
}

.footer__bottom a:hover {
    color: #fff;
}

@media (max-width: 1040px) {
    .solutions__grid,
    .partners__grid,
    .programs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero__logos {
        grid-template-columns: 1fr;
    }

    .partner-showcase {
        grid-template-columns: 1fr;
    }

    .hero__content,
    .about__grid,
    .infrastructure__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .topbar {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: absolute;
        inset: calc(100% + 10px) 1rem auto 1rem;
        background: #fff;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-soft);
        padding: 1.2rem;
        display: none;
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .navbar__menu.is-open {
        display: flex;
    }

    .hero {
        padding: 3.5rem 0 2.5rem;
    }

    .hero__content,
    .figure__card,
    .contact__form {
        border-radius: 18px;
    }

    .hero__figure {
        grid-template-columns: 1fr;
    }

    .solutions__grid,
    .partners__grid,
    .programs__grid {
        grid-template-columns: 1fr;
    }

    .partner-card--featured {
        transform: none;
    }

    .achievements {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(94vw, 480px);
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta__logos img {
        width: clamp(140px, 40vw, 200px);
    }

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

    .topbar__contact {
        flex-wrap: wrap;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom .container {
        flex-direction: column;
    }
}
