/* ===== VARIABLES ===== */
:root {
    --primary: #1e58a4;
    --primary-light: #6dd3fb;
    --nav-link-color: #5cb8e6;
    --white: #ffffff;
    --dark: #0a1628;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --shadow-sm: 0 2px 8px rgba(30, 88, 164, 0.08);
    --shadow-md: 0 8px 24px rgba(30, 88, 164, 0.12);
    --shadow-lg: 0 16px 48px rgba(30, 88, 164, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-600);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 16px 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav__logo-img2 {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}



.nav__logo-img--white-bg {
    background: var(--white);
    padding: 6px 12px;
    box-shadow: var(--shadow-sm);
}

.nav__list {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-weight: 500;
    font-size: 15px;
    color: var(--white);
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.header.scrolled .nav__link {
    color: var(--nav-link-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--white);
}

.header.scrolled .nav__link:hover {
    color: var(--primary-light);
}

.nav__toggle,
.nav__close {
    display: none;
}

/* ===== HERO WITH FORM ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero__content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    padding-top: 80px;
}

/* Hero Form Container */
.hero__form-container {
    flex: 0 0 480px;
    max-width: 480px;
}

/* Desktop form visible by default, mobile hidden */
.hero__form-container--desktop {
    display: block;
}

.hero__form-container--mobile {
    display: none;
}

.hero__form--desktop {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 28px 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.hero__form--mobile {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.hero__form-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    text-align: center;
}

.hero__form-group {
    margin-bottom: 10px;
}

.hero__form-group input,
.hero__form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
}

.hero__form-group input:focus,
.hero__form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(109, 211, 251, 0.15);
}

.hero__form-group input::placeholder {
    color: var(--gray-400);
}

.hero__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hero__form-group--small {
    max-width: 120px;
}

.hero__form-submit {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    transition: var(--transition);
    margin-top: 8px;
}

.hero__form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Text */
.hero__text {
    flex: 1;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.hero__title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    margin-top: -80px;
    color: var(--white);
}

.hero__title-highlight {
    color: var(--primary-light);
}

.hero__description {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 28px;
    max-width: 420px;
    margin-left: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTIONS ===== */
.section__header {
    margin-bottom: 48px;
}

.section__header--center {
    text-align: center;
}

.section__tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(109, 211, 251, 0.15) 0%, rgba(30, 88, 164, 0.15) 100%);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section__tag--light {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.section__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.section__title span {
    color: var(--primary);
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 16px auto 0;
}

/* ===== DIFERENCIAIS ===== */
.diferenciais {
    padding: 100px 0;
    background: var(--gradient);
}

.diferenciais .section__tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.diferenciais .section__title {
    color: var(--white);
}

.diferenciais .section__title span {
    color: var(--primary-light);
}

.diferenciais__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.diferencial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 36px 28px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.diferencial-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
}

.diferencial-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.diferencial-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.diferencial-card__text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* ===== SOBRE ===== */
.sobre {
    padding: 100px 0;
    background: var(--gradient);
}

.sobre .section__header {
    text-align: center;
}

.sobre .section__title {
    color: var(--white);
}

.sobre .section__title span {
    color: var(--white);
}

.sobre__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre__description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.sobre__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.sobre__feature {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 400px;
}

.sobre__feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.25);
}

.sobre__feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.sobre__feature-text h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 4px;
}

.sobre__feature-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Stats Carousel */
.sobre__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.25);
}

.stat-card__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ===== SERVIÇOS ===== */
.servicos {
    padding: 100px 0;
    background: var(--white);
}

.servicos__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.servico-card {
    padding: 40px 28px;
    background: var(--white);
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid var(--gray-200);
}

.servico-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.servico-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.servico-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.servico-card__description {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== REDE HOSPITAIS ===== */
.rede {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
}

.rede__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.hospital-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.hospital-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hospital-card:hover img {
    transform: scale(1.1);
}

.hospital-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(30, 88, 164, 0.9));
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.hospital-card:hover .hospital-card__overlay {
    transform: translateY(0);
}

/* Hospital Card Wrapper for Mobile Names */
.hospital-card-wrapper {
    display: contents;
}

.hospital-card__name-mobile {
    display: none;
}

.rede__partners {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.rede__partners h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 20px;
}

.rede__partners-list {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.partner-badge {
    padding: 12px 28px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== COTAÇÃO (legacy styles kept for compatibility) ===== */
.cotacao {
    padding: 100px 0;
    background: var(--gradient);
}

.cotacao__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.cotacao__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cotacao__description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.cotacao__benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cotacao__benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1rem;
}

.cotacao__benefit span:first-child {
    color: var(--primary-light);
    font-weight: bold;
}

.cotacao__form {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.form__group {
    margin-bottom: 14px;
}

.form__group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--gray-100);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(109, 211, 251, 0.15);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__group--small {
    max-width: 150px;
}

.form__submit {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: var(--transition);
    margin-top: 4px;
}

.form__submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== SOBRE O PLANO ===== */
.sobre-plano {
    padding: 100px 0;
    background: var(--white);
}

.sobre-plano__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.info-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 24px;
    text-align: center;
    border: 2px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.info-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.info-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.info-card__text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.info-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(109, 211, 251, 0.15) 0%, rgba(30, 88, 164, 0.15) 100%);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.info-card__btn:hover {
    background: var(--gradient);
    color: var(--white);
}

.info-card__btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.info-card__btn.active svg {
    transform: rotate(180deg);
}

.info-card__hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    text-align: left;
    margin-top: 0;
}

.info-card__hidden.show {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.info-card__hidden p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 8px;
}

.info-card__hidden p:last-child {
    margin-bottom: 0;
}

.info-card__hidden strong {
    color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    height: 50px;
    margin-bottom: 16px;
    border-radius: 8px;
}

.footer__brand p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.footer__links h4,
.footer__contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary-light);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--primary-light);
    padding-left: 8px;
}

.footer__contact p {
    color: var(--gray-400);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {

    .sobre__content,
    .cotacao__wrapper {
        grid-template-columns: 1fr;
    }

    .servicos__grid,
    .rede__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diferenciais__grid,
    .sobre-plano__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero__content-wrapper {
        flex-direction: column;
        padding-top: 100px;
    }

    .hero__form-container {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .hero__text {
        text-align: center;
        order: -1;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--white);
        padding: 80px 40px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 24px;
    }

    .nav__link {
        color: var(--dark);
        font-size: 1.25rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 24px;
        right: 24px;
        font-size: 2rem;
        color: var(--dark);
        cursor: pointer;
    }

    .nav__toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .nav__toggle span {
        width: 28px;
        height: 3px;
        background: var(--white);
        border-radius: 2px;
        transition: var(--transition);
    }

    .header.scrolled .nav__toggle span {
        background: var(--dark);
    }

    /* Mobile logos 30% smaller */
    .nav__logo-img {
        height: 56px;
        /* 80px * 0.7 = 56px */
    }

    .nav__logo-img2 {
        height: 35px;
        /* 50px * 0.7 = 35px */
    }

    .servicos__grid {
        grid-template-columns: 1fr;
    }

    .rede__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .rede__grid .hospital-card {
        aspect-ratio: 1/1;
    }

    /* Mobile Hospital Overlay Fixed */
    .hospital-card__overlay {
        transform: translateY(0);
        opacity: 1;
        padding: 12px;
        top: 0;
        bottom: auto;
        background: linear-gradient(rgba(30, 88, 164, 0.9), transparent);
        font-size: 0.85rem;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hospital-card:hover img {
        transform: none;
        /* Disable zoom on touch */
    }

    .form__row,
    .hero__form-row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__logo {
        margin-left: auto;
        margin-right: auto;
    }

    .cotacao__form,
    .hero__form {
        padding: 24px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero__form-container {
        margin-top: 20px;
    }

    /* Swap form visibility on mobile */
    .hero__form-container--desktop {
        display: none;
    }

    .hero__form-container--mobile {
        display: block;
    }

    .hero__form-title {
        font-size: 1.2rem;
    }

    .hero__form-group input,
    .hero__form-group select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .hero__form-submit {
        padding: 12px;
        font-size: 0.9rem;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }
}