:root {
    --bg: #eaf3ff;
    --bg-soft: #f4f8ff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-solid: #ffffff;
    --primary: #1f6fd1;
    --primary-strong: #0d3d7a;
    --primary-soft: #ddebff;
    --accent: #3a8ee6;
    --accent-soft: #e7f2ff;
    --warm: #cfe4ff;
    --text: #16355f;
    --muted: #385780;
    --border: #bdd5f3;
    --border-strong: #8ab6ea;
    --shadow-lg: 0 28px 56px rgba(24, 84, 161, 0.2);
    --shadow-md: 0 16px 34px rgba(24, 84, 161, 0.14);
    --shadow-sm: 0 10px 22px rgba(24, 84, 161, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Inter", Roboto, Arial, sans-serif;
    line-height: 1.68;
    letter-spacing: 0.12px;
    background: #ffffff;
    color: var(--text);
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 96px 40px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 0 12px;
    box-shadow: none;
}

.hero-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 0 14px 0;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 8px;
}

.hero-top .hero-logo {
    margin: 0;
    max-height: 98px;
}

.hero-top h1 {
    margin: 0;
    text-align: left;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    font-weight: 800;
    color: var(--primary-strong);
    letter-spacing: 0.55px;
    text-align: center;
}

.hero .hero-top h1 {
    margin: 0;
    flex: 1;
    text-align: center;
}

.subtitle {
    display: block;
    margin-top: 0;
    margin-bottom: 18px;
    padding: 0;
    font-size: clamp(1.35rem, 2.35vw, 1.9rem);
    font-weight: 700;
    color: var(--primary-strong);
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: center;
}

.hero .subtitle {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    line-height: 1.35;
}

.hero p {
    margin: 0 0 13px;
    max-width: none;
    font-size: 1.28rem;
    line-height: 1.85;
    text-align: justify;
    text-wrap: pretty;
}

.hero p:last-child {
    margin-bottom: 0;
}

.setores {
    margin-top: 28px;
    display: grid;
    gap: 18px;
}

.setor {
    position: relative;
    --setor-accent: var(--primary);
    --setor-accent-soft: #e7f2ff;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 10px 0 2px;
    box-shadow: none;
    backdrop-filter: none;
}

.setor:nth-of-type(1) {
    --setor-accent: #1f6fd1;
    --setor-accent-soft: #e7f2ff;
}

.setor:nth-of-type(2) {
    --setor-accent: #357fd8;
    --setor-accent-soft: #e4f0ff;
}

.setor:nth-of-type(3) {
    --setor-accent: #4b91e2;
    --setor-accent-soft: #e7f3ff;
}

.setor h2 {
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-strong);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.3;
}

.setor h2::before {
    content: "";
    width: 6px;
    height: 1.4em;
    border-radius: 99px;
    background: linear-gradient(180deg, #ffffff 0%, var(--setor-accent) 100%);
    box-shadow: 0 8px 16px rgba(24, 84, 161, 0.24);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #a8c8ef;
    border-radius: var(--radius-sm);
    padding: 16px;
    min-height: 228px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.setor:nth-of-type(1) .card {
    border-color: #a8c8ef;
}

.setor:nth-of-type(2) .card {
    border-color: #b8d2f4;
}

.setor:nth-of-type(3) .card {
    border-color: #c2d8f5;
}

.card::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #5aa1f0 0%, var(--accent) 55%, var(--primary) 100%);
    opacity: 0.95;
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: #6ea5e2;
    box-shadow: 0 22px 36px rgba(24, 84, 161, 0.22);
}

.card--linked {
    cursor: pointer;
    border-color: #7fb0e8;
}

.card--linked::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 0 1px rgba(96, 153, 225, 0.35);
    pointer-events: none;
    transition: box-shadow 190ms ease, opacity 190ms ease;
    opacity: 0.8;
}

.card--linked:hover {
    box-shadow:
        0 0 0 2px rgba(96, 153, 225, 0.33),
        0 0 24px rgba(58, 142, 230, 0.28),
        0 0 34px rgba(207, 228, 255, 0.38),
        0 22px 36px rgba(24, 84, 161, 0.24);
}

.card--linked:hover::before {
    box-shadow: inset 0 0 0 1px rgba(228, 240, 255, 0.95);
    opacity: 1;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.28rem;
    line-height: 1.36;
    font-weight: 700;
    color: var(--primary-strong);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    font-size: 1.85rem;
    line-height: 1;
}

.card-link {
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #1456a8;
}

.card p {
    margin: 0;
    color: #274e80;
    font-size: 1.02rem;
    text-align: justify;
    flex-grow: 1;
}

.card-actions {
    margin-top: 14px;
}

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid #0d4e7f;
    background: #0d4e7f;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.card-button:hover {
    background: #0a3c62;
    border-color: #0a3c62;
}

.card-button--disabled {
    background: #f3f6f9;
    border-color: #ced8e2;
    color: #6a7f93;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .cards {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 760px) {
    .container {
        padding: 14px 30px;
    }

    .hero,
    .setor {
        padding: 16px;
    }

    .subtitle {
        width: 100%;
        max-width: 100%;
        border-radius: 14px;
    }

    .hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-top .hero-logo {
        max-height: 78px;
    }

    .hero-top h1 {
        width: 100%;
        text-align: center;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}
