/* styles.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #003087;
    --secondary-blue: #0047AB;
    --primary-red: #E30613;
    --secondary-red: #C8102E;
    --dark-blue: #001F5B;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #333333;
    --white: #FFFFFF;
    --text-color: #2C2C2C;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Navigation */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
}

.nav-menu a:hover {
    color: var(--primary-red);
}

/* Botões */
.btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.btn-primary:hover {
    background: var(--secondary-red);
    border-color: var(--secondary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(227, 6, 19, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.btn-emergency {
    background: var(--white);
    color: var(--primary-red);
    padding: 18px 40px;
    font-size: 18px;
    border-color: var(--white);
}

.btn-emergency:hover {
    background: var(--light-gray);
    border-color: var(--light-gray);
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 90px;
    padding: 80px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hospital-moderno.jpg') center/cover;
    opacity: 0.75;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(30, 58, 138, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease;
}
.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0px 0px 20px rgba(0, 0, 0, 0.7);
}
.hero-subtitle {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0px 0px 15px rgba(0, 0, 0, 0.7);
}
.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0px 0px 15px rgba(0, 0, 0, 0.7);
}
.hero-description {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1.4s ease;
}

.hero-buttons a {
    text-decoration: none !important;
}

.hero-buttons .btn {
    text-decoration: none !important;
}

.hero-info-cards {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.8s ease;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.info-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-card p {
    color: var(--dark-gray);
    font-size: 14px;
    line-height: 1.5;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--primary-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--primary-blue);
    margin: 15px 0;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Sobre Section */
.sobre {
    background: var(--white);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre-text h3 {
    color: var(--primary-blue);
    font-size: 32px;
    margin-bottom: 20px;
}

.sobre-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
}

.sobre-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--dark-gray);
}

.sobre-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.sobre-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.sobre-image:hover img {
    transform: scale(1.05);
}

/* Especialidades Section */
.especialidades {
    background: var(--light-gray);
}

.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.especialidade-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.especialidade-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 48, 135, 0.15);
}

.especialidade-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.especialidade-card h3 {
    color: var(--primary-blue);
    font-size: 22px;
    margin-bottom: 15px;
}

.especialidade-card p {
    color: var(--dark-gray);
    font-size: 15px;
    line-height: 1.6;
}

/* Estrutura Section */
.estrutura {
    background: var(--white);
}

.estrutura-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.estrutura-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-large {
    grid-column: 1 / -1;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 300px;
}

.gallery-large {
    height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 48, 135, 0.9), transparent);
    padding: 30px 20px;
    color: var(--white);
}

.gallery-overlay h3 {
    font-size: 24px;
}

.estrutura-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    background: var(--primary-red);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--primary-blue);
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-text p {
    color: var(--dark-gray);
    font-size: 14px;
}

/* Convênios Section */
.convenios {
    background: var(--light-gray);
}

.convenios-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

.convenios-grid {
           display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.convenio-item {
    background: var(--white);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.convenio-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.convenios-note {
    text-align: center;
    font-style: italic;
    color: var(--dark-gray);
}

/* Emergência Section */
.emergencia {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    color: var(--white);
    text-align: center;
}

.emergencia-content {
    max-width: 600px;
    margin: 0 auto;
}

.emergencia-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.emergencia h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.emergencia p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-emergency {
    background: var(--white);
    color: var(--primary-red);
    padding: 18px 40px;
    font-size: 18px;
}

.btn-emergency:hover {
    background: var(--light-gray);
    transform: scale(1.05);
}

/* Contato Section */
.contact {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact > .container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Informações de Contato */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    font-size: 32px;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
}

.info-content h3 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Formulário de Contato */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }
}
/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p,
.footer-section ul {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
     background: var(--primary-color);
    transform: translateY(-3px);
}
.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-info-cards {
        flex-direction: column;
        align-items: center;
    }

    .info-card {
        max-width: 100%;
        width: 100%;
    }

    .sobre-content,
    .estrutura-content,
    .contato-content {
        grid-template-columns: 1fr;
    }

    .estrutura-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-large {
        grid-column: 1;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 16px;
    border: none;
    cursor: pointer;
}
    .sobre-stats {
        flex-direction: column;
        gap: 20px;
    }

}
/* Botão WhatsApp */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 75px !important;
    height: 75px !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) !important;
    background: #20BA5A !important;
}

.whatsapp-float img {
    width: 35px !important;
    height: 35px !important;
    filter: brightness(0) invert(1) !important;
}
/* Animação do WhatsApp quando na seção Contato */
@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    25% {
        transform: scale(1.15);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }
    50% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    75% {
        transform: scale(1.15);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}

@keyframes whatsappShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

.whatsapp-float.whatsapp-pulse {
    animation: whatsappPulse 2s infinite, whatsappShake 0.8s infinite;
}

.whatsapp-float.whatsapp-pulse::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    animation: whatsappRipple 1.5s infinite;
    z-index: -1;
}

@keyframes whatsappRipple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}