@font-face {
    font-family: 'ms-regular';
    src: url('../fonts/ms-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --page-bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #fbfcfe;
    --surface-alt: #eef4fb;
    --border-soft: #e2eaf3;
    --text-primary: #122a59;
    --text-secondary: #556579;
    --accent-red: #ee4348;
    --accent-red-dark: #d9353a;
    --accent-green: #4faf68;
    --accent-blue: #1f68a9;
    --shadow-soft: 0 14px 30px rgba(18, 42, 89, 0.08);
    --shadow-hover: 0 18px 40px rgba(18, 42, 89, 0.14);
}

body {
    background-color: var(--page-bg);
    color: #333333;
}

.seu-projeto-page {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 42%, #f7f9fc 100%);
    font-family: 'ms-regular', Arial, Helvetica, sans-serif;
}

.seu-projeto-page .page-section {
    position: relative;
    padding: 24px 0;
}

.seu-projeto-page .page-section + .page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, rgba(18, 42, 89, 0), rgba(18, 42, 89, 0.12), rgba(18, 42, 89, 0));
}

.seu-projeto-page .section-intro {
    max-width: 780px;
    margin: 0 auto 20px;
    text-align: center;
}

.seu-projeto-page .section-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-primary);
}

.seu-projeto-page .section-intro p {
    margin: 8px auto 0;
    max-width: 720px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.reusable-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 68px 0;
    background-color: #0f244d;
    background-image:
        linear-gradient(
            90deg,
            rgba(10, 25, 55, 1) 0%,
            rgba(10, 25, 55, 0.97) 28%,
            rgba(10, 25, 55, 0.78) 52%,
            rgba(10, 25, 55, 0.38) 74%,
            rgba(10, 25, 55, 0) 100%
        ),
        url('../images/projetos/seu-projeto.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    color: #ffffff;
    overflow: hidden;
}

.hero-decor-1,
.hero-decor-2 {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
}

.hero-decor-1 {
    width: 420px;
    height: 420px;
    top: -180px;
    right: -110px;
    background: rgba(255, 255, 255, 0.05);
}

.hero-decor-2 {
    width: 260px;
    height: 260px;
    bottom: -120px;
    left: -70px;
    background: rgba(255, 255, 255, 0.04);
}

.reusable-hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: flex;
    align-items: center;
}

.hero-copy {
    width: 100%;
    max-width: 650px;
    text-align: left;
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.title-accent {
    color: #ed3237;
}

.hero-subtitle {
    max-width: 620px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.86);
}

.project-overview {
    background: linear-gradient(180deg, rgba(251, 252, 254, 0.95) 0%, rgba(245, 248, 250, 0.65) 100%);
}

.overview-panel {
    padding: 24px 26px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.overview-card {
    min-height: 100%;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(18, 42, 89, 0.08);
    border-radius: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 104, 169, 0.22);
}

.overview-card:nth-child(3n + 1) .overview-icon {
    background: rgba(31, 104, 169, 0.1);
    color: var(--accent-blue);
}

.overview-card:nth-child(3n + 2) .overview-icon {
    background: rgba(79, 175, 104, 0.12);
    color: var(--accent-green);
}

.overview-card:nth-child(3n + 3) .overview-icon {
    background: rgba(238, 67, 72, 0.1);
    color: var(--accent-red);
}

.overview-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.overview-icon .material-symbols-outlined {
    font-size: 28px;
}

.overview-card h3 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.32;
    font-weight: 800;
}

.overview-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.48;
}

.context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.context-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.context-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 104, 169, 0.22);
    box-shadow: var(--shadow-hover);
}

.context-icon {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #122a59 0%, #1f68a9 100%);
    box-shadow: 0 14px 28px rgba(31, 104, 169, 0.18);
    flex-shrink: 0;
}

.context-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.context-copy h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.4rem;
    line-height: 1.18;
    font-weight: 800;
}

.title-divider {
    width: 48px;
    height: 4px;
    margin: 14px 0 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c8102e 0%, #e03a4f 100%);
}

.context-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.58;
}

.project-institutions {
    background: linear-gradient(180deg, rgba(245, 248, 252, 0.82) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.logo-card {
    min-height: 142px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(18, 42, 89, 0.1);
    border-radius: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.logo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 104, 169, 0.22);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.logo-card img {
    max-width: 110%;
    max-height: 120px;
    object-fit: contain;
    filter: grayscale(35%);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.logo-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.project-contact {
    padding-top: 18px;
    padding-bottom: 34px;
}

.contact-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 20px;
    align-items: start;
    padding: 28px 30px;
    background: linear-gradient(140deg, #122a59 0%, #1f68a9 100%);
    border-radius: 22px;
    box-shadow: 0 22px 36px rgba(18, 42, 89, 0.18);
}

.contact-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 72%);
}

.contact-copy,
.contact-groups {
    position: relative;
    z-index: 1;
}

.contact-copy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.contact-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.contact-icon .material-symbols-outlined {
    font-size: 32px;
}

.contact-copy h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1.18;
    font-weight: 800;
}

.contact-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    line-height: 1.55;
}

.contact-groups {
    display: grid;
    gap: 16px;
}

.contact-group {
    display: grid;
    gap: 10px;
}

.contact-group-title {
    margin: 0;
    color: #d9e9ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.contact-link .material-symbols-outlined {
    font-size: 22px;
    flex-shrink: 0;
}

.contact-link span:last-child {
    font-size: 0.95rem;
    font-weight: 700;
    word-break: break-word;
}

@media (max-width: 1200px) {
    .logo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .seu-projeto-page .page-section {
        padding: 22px 0;
    }

    .reusable-hero {
        padding: 62px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .overview-grid,
    .context-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .context-card,
    .contact-copy {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .seu-projeto-page .page-section {
        padding: 18px 0;
    }

    .seu-projeto-page .page-section + .page-section::before {
        left: 16px;
        right: 16px;
    }

    .seu-projeto-page .section-title {
        font-size: 1.7rem;
    }

    .reusable-hero {
        padding: 56px 0;
    }

    .hero-title {
        font-size: 1.95rem;
    }

    .hero-subtitle,
    .seu-projeto-page .section-intro p,
    .overview-card p,
    .context-copy p,
    .contact-copy p,
    .contact-link span:last-child {
        font-size: 0.93rem;
    }

    .overview-panel,
    .context-card,
    .contact-panel {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .overview-card,
    .logo-card,
    .contact-link {
        border-radius: 16px;
    }

    .overview-icon,
    .context-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .overview-icon .material-symbols-outlined,
    .contact-icon .material-symbols-outlined {
        font-size: 24px;
    }

    .context-icon img {
        width: 24px;
        height: 24px;
    }

    .contact-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .contact-copy h2 {
        font-size: 1.45rem;
    }
}

@media (max-width: 480px) {
    .logo-grid {
        grid-template-columns: 1fr;
    }
}
