@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #00995D;
    --primary-light: #00b894;
    --secondary: #2d3436;
    --text-main: #34495e;
    --text-light: #7f8c8d;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-light);
}

body {
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Header & Nav */
#header {
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    z-index: 5000;
    padding: 0 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#header img {
    height: 95px;
    width: auto;
    transition: var(--transition);
}

#menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

#menu a {
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 50px;
    color: var(--text-main);
}

#menu a:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero-container {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imagem/microscopio_web.jpg') center/cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 153, 93, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Exam Card */
.exam-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 450px;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(0, 153, 93, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 153, 93, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 153, 93, 0.2);
}

/* Results Section */
.results-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: auto;
}

.result-item {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.result-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 153, 93, 0.1);
}

/* Insurance & Support Section */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title h2 strong {
    color: var(--primary);
}

.section-title p {
    color: var(--text-light);
    max-width: 800px;
    margin: auto;
    font-size: 1.1rem;
}

.convenios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 0 0 60px;
}

.support-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.convenio-card {
    background: white;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.convenio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.convenio-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.convenio-card:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* About Section */
.about-section {
    padding: 100px 5%;
    background: white;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 153, 93, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.about-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
    align-items: flex-start;
}

.about-text h3 {
    font-size: 2.22rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.05rem;
    text-align: justify;
}

.highlight-box {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--radius);
    border-left: 6px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.highlight-box strong {
    display: block;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.flex-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 153, 93, 0.1);
    color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.title-icon i {
    width: 30px;
    height: 30px;
}

.section-title:hover .title-icon {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

/* Carousel Section */
.carousel-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../imagem/microscopio_web.jpg') center/cover fixed;
    padding: 100px 5%;
    text-align: center;
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.carousel-content {
    max-width: 1000px;
    margin: auto;
    width: 100%;
}

.carousel-icon {
    width: 60px;
    height: 60px;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 148, 0.3));
}

.mySlides {
    display: none;
    animation: fadeSlide 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: block;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.carousel-subtitle {
    font-size: 1.6rem;
    opacity: 0.95;
    display: block;
    font-weight: 300;
}

/* Footer & Rest */
.footer {
    background: #0f172a;
    color: white;
    padding: 100px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: auto;
}

.footer-info h4 {
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-info p {
    color: #a0aec0;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile styles */
#btn-mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

#hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    position: relative;
    transition: background 0.2s;
}

#hamburger::before,
#hamburger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    transition: 0.3s;
}

#hamburger::before {
    top: -6px;
}

#hamburger::after {
    bottom: -6px;
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .carousel-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    #btn-mobile {
        display: block;
    }

    #menu {
        display: block;
        position: absolute;
        width: 100%;
        top: 80px;
        right: 0px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        height: 0px;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        visibility: hidden;
        overflow-y: hidden;
        border-bottom: 2px solid var(--primary);
    }

    #nav.active #menu {
        height: auto;
        padding-bottom: 20px;
        visibility: visible;
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    #menu li {
        padding: 1.2rem 8%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.4s ease;
    }

    #nav.active #menu li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for menu items */
    #nav.active #menu li:nth-child(1) {
        transition-delay: 0.1s;
    }

    #nav.active #menu li:nth-child(2) {
        transition-delay: 0.2s;
    }

    #nav.active #menu li:nth-child(3) {
        transition-delay: 0.3s;
    }

    #menu a {
        padding: 0;
        font-size: 1.3rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--secondary);
    }

    #menu a::after {
        content: '→';
        color: var(--primary);
        font-size: 1.5rem;
        opacity: 0.5;
    }

    #menu a:hover {
        background: transparent;
        color: var(--primary);
    }

    #nav.active #hamburger {
        background: transparent;
    }

    #nav.active #hamburger::before {
        transform: rotate(135deg);
        top: 0;
    }

    #nav.active #hamburger::after {
        transform: rotate(-135deg);
        bottom: 0;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-container {
        padding-top: 140px;
        height: auto;
        min-height: 85vh;
    }

    .carousel-title {
        font-size: 2.5rem;
    }

    .carousel-subtitle {
        font-size: 1.2rem;
    }

    .exam-card {
        padding: 1.5rem;
    }
}