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

:root {
    --green-dark: #0d4f46;
    --green-darker: #0d3b34;
    --green-light: #7ed957;
    --green-soft: #e8f8e1;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --gray-900: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--green-light);
    color: var(--green-darker);
}

.btn-primary:hover {
    background-color: #6bc947;
}

.btn-light {
    background-color: var(--green-light);
    color: var(--green-darker);
}

.btn-light:hover {
    background-color: #6bc947;
}

.arrow {
    font-weight: 700;
}

.header {
    background-color: var(--green-dark);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 52px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--green-light);
    transition: width 0.2s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    color: var(--green-light);
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--green-darker);
    min-width: 180px;
    padding: 8px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    z-index: 120;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
    display: flex;
}

.submenu a {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.submenu a::after {
    display: none;
}

.submenu a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--green-light);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 0;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.hero {
    background: var(--green-darker);
    background-image: url('../assets/images/hero.jpg');
    background-size: 100% auto;
    background-position: right 40%;
    background-repeat: no-repeat;
    min-height: 220px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--green-darker) 0%, rgba(13, 59, 52, 0.85) 45%, rgba(13, 59, 52, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 0;
}

.hero-text {
    width: 100%;
    max-width: 560px;
    text-align: left;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.06;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.15rem;
    margin-bottom: 16px;
    opacity: 0.9;
    max-width: 440px;
}

.about {
    padding: 80px 0;
    background-color: var(--gray-100);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.about-text h2 {
    font-size: 2.4rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    font-weight: 800;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--green-dark);
    font-weight: 700;
    max-width: 320px;
}

.about-description p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 600px;
}

.mission {
    background-color: #d9e6dd;
    display: flex;
    align-items: center;
    padding: 1px 0;
}

.mission-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}

.mission-side {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    width: 320px;
}

.mission-circle {
    flex: 1;
    min-height: 0;
    width: 100%;
    background-image: url('../assets/images/missao-bg.png');
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
}

.mission-label {
    font-size: 4.5rem;
    font-weight: 800;
    color: #4a7c84;
    line-height: 1;
    text-align: left;
    align-self: flex-end;
}

.mission-text {
    width: 50%;
    max-width: 480px;
    transform: translateY(16px);
}

.mission-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-darker);
    line-height: 1.2;
    margin-bottom: 24px;
}

.mission-text h2 .highlight {
    background-color: var(--green-light);
    padding: 2px 8px;
    display: inline;
}

.mission-text p {
    font-size: 1rem;
    color: #09515d;
    line-height: 1.7;
    margin-bottom: 20px;
}

.mission-strong {
    font-weight: 700;
    color: #09515d;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    color: var(--gray-900);
    font-weight: 800;
}

.exams {
    padding: 80px 0;
    background-color: var(--white);
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.exam-card {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.exam-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.exam-check {
    font-size: 2rem;
    line-height: 1;
    color: #09515d;
    flex-shrink: 0;
}

.exam-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(9, 81, 93, 0.15);
    border-top-color: #09515d;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes exam-spin {
    to {
        transform: rotate(360deg);
    }
}

.exams-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.legend-check {
    font-size: 1.1rem;
}

.legend-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.exam-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.differentials {
    padding: 80px 0;
    background-color: var(--gray-100);
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.differential-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.differential-icon {
    margin-bottom: 16px;
}

.differential-icon svg {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto;
}

.differential-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.differential-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.technology {
    padding: 80px 0;
    background-color: var(--white);
}

.technology-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background-color: var(--gray-100);
    border-radius: 24px;
    padding: 48px;
}

.technology-text h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--gray-900);
    font-weight: 800;
}

.technology-text > p {
    color: var(--gray-600);
    margin-bottom: 24px;
    max-width: 500px;
}

.technology-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

.technology-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 500;
}

.check {
    width: 24px;
    height: 24px;
    background-color: var(--green-light);
    color: var(--green-darker);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.technology-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: contain;
    background-color: var(--white);
    min-height: 320px;
}

.banner {
    background-color: var(--green-darker);
    padding: 40px 0;
    color: var(--white);
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.banner-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--green-light);
}

.banner-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.banner-text p {
    font-size: 1rem;
    opacity: 0.85;
}

.capacity {
    padding: 32px 0 8px;
    text-align: center;
}

.capacity h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.capacity-list {
    list-style: disc;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 48px;
    padding-left: 24px;
    max-width: 860px;
    margin: 0 auto;
    text-align: left;
    width: fit-content;
}

.capacity-list li {
    color: var(--white);
    font-size: 1.05rem;
    opacity: 0.9;
}

.capacity-list li::marker {
    color: var(--green-light);
}

.partner {
    background-color: #cfe0d2;
    padding: 50px 0 16px;
    position: relative;
    overflow: hidden;
}

.partner-content::before {
    content: '';
    position: absolute;
    left: -80px;
    top: -330px;
    width: 480px;
    height: 480px;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        #aad3a4 0,
        #aad3a4 64px,
        transparent 64px,
        transparent 93px,
        #55868c 93px,
        #55868c 144px,
        transparent 144px,
        transparent 172px,
        #55868c 172px,
        #55868c 232px,
        transparent 232px
    );
}

.partner-content::after {
    content: '';
    position: absolute;
    left: -80px;
    top: -330px;
    width: 105px;
    height: 480px;
    background-color: #cfe0d2;
    z-index: 0;
}

.partner-logo {
    position: absolute;
    top: 48px;
    right: 64px;
    width: 150px;
    height: auto;
}

.partner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    position: relative;
}

.partner-title {
    position: relative;
    z-index: 1;
    margin-left: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: #09515d;
    line-height: 1.15;
    max-width: 460px;
}

.partner-text {
    position: relative;
    z-index: 1;
}

.partner-text p {
    font-size: 1.2rem;
    color: #09515d;
    line-height: 1.5;
    margin-bottom: 24px;
}

.partner-strong {
    font-weight: 700;
}

.contact {
    background-color: var(--green-darker);
    color: var(--white);
    padding: 60px 0 40px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.footer-logo img {
    height: 64px;
    width: auto;
    display: block;
}

.contact-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 200px;
}

.contact-info h3,
.contact-hours h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--green-light);
}

.contact-info ul,
.contact-hours ul {
    display: grid;
    gap: 12px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
}

.contact-info a,
.contact-info address {
    color: var(--white);
    opacity: 0.9;
    font-style: normal;
    line-height: 1.5;
}

.contact-info a:hover {
    opacity: 1;
    color: var(--green-light);
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-top: 2px;
}

.phone-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%237ed957' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.57 12.57 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.57 12.57 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.whatsapp-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%237ed957' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7A8.38 8.38 0 0 1 4 11.5 8.5 8.5 0 0 1 15.2 5.5 8.5 8.5 0 0 1 21 11.5z'/%3E%3C/svg%3E");
}

.email-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%237ed957' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

.address-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%237ed957' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.contact-map {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--green-dark);
}

.contact-map img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.contact-hours li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.contact-hours strong {
    color: var(--green-light);
}

.contact-hours span {
    opacity: 0.9;
}

.whatsapp-floating {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}

.whatsapp-floating:hover {
    background-color: #1fbd5a;
    transform: translateY(-3px) scale(1.04);
}

.whatsapp-floating svg {
    width: 34px;
    height: 34px;
    fill: var(--white);
}

.footer {
    background-color: #082925;
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .hero {
        min-height: 200px;
        background-size: 70% auto;
        background-position: right 70%;
    }

    .hero::before {
        background: linear-gradient(90deg, var(--green-darker) 0%, rgba(13, 59, 52, 0.9) 60%, rgba(13, 59, 52, 0.5) 100%);
    }

    .hero-content {
        padding: 60px 0;
    }

    .hero-text {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mission {
        min-height: 0;
    }

    .mission-side {
        width: 240px;
    }

    .mission-label {
        font-size: 3rem;
    }

    .mission-text {
        width: 100%;
        max-width: 560px;
        text-align: left;
        background-color: rgba(217, 230, 221, 0.85);
        padding: 24px;
        border-radius: 12px;
    }

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

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

    .technology-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 8px 0;
    }

    .header-content {
        gap: 12px;
    }

    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        background-color: var(--green-darker);
        padding: 0 24px;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .nav.active {
        max-height: 560px;
        padding: 16px 24px;
    }

    .nav a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav > a:last-child,
    .nav > .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-item > a {
        border-bottom: none;
    }

    .submenu {
        position: static;
        display: flex;
        transform: none;
        box-shadow: none;
        min-width: 0;
        padding: 0 0 8px 16px;
        border-radius: 0;
    }

    .submenu a {
        border-bottom: none;
        padding: 8px 0;
        font-size: 0.95rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .partner-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .partner-title {
        font-size: 2.4rem;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .whatsapp-floating {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-floating svg {
        width: 30px;
        height: 30px;
    }

    .logo img {
        height: 48px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .hero {
        min-height: 190px;
        background-size: 100% auto;
        background-position: 70% 70%;
        padding: 0;
    }

    .hero::before {
        background: linear-gradient(90deg, var(--green-darker) 0%, rgba(13, 59, 52, 0.92) 80%, rgba(13, 59, 52, 0.6) 100%);
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-text {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about,
    .exams,
    .differentials,
    .technology {
        padding: 60px 0;
    }

    .mission {
        padding: 24px 0;
        min-height: 0;
    }

    .mission-side {
        width: 160px;
    }

    .mission-label {
        font-size: 2.2rem;
        align-self: flex-end;
    }

    .mission-text h2 {
        font-size: 1.6rem;
    }

    .exams-grid,
    .differentials-grid {
        grid-template-columns: 1fr;
    }

    .exam-card {
        padding: 24px;
    }

    .technology-content {
        padding: 32px 24px;
    }

    .technology-list {
        grid-template-columns: 1fr;
    }

    .technology-list li {
        font-size: 0.95rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-map img {
        height: auto;
    }

    .banner-text h2 {
        font-size: 1.3rem;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .capacity {
        padding: 32px 0;
    }

    .capacity-list {
        grid-template-columns: 1fr;
    }

    .partner {
        padding: 140px 0 32px;
    }

    .partner-content::before {
        transform: scale(0.7);
        transform-origin: top left;
    }

    .partner-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .partner-title {
        font-size: 2rem;
        max-width: 100%;
    }

    .partner-text p {
        font-size: 1.05rem;
    }

    .partner-logo {
        width: 110px;
        top: 24px;
        right: 24px;
    }
}
