/**
 * HM Regional de Montenegro - Folha de estilos principal
 * Versão: 1.0
 * Data: Maio/2025
 * Descrição: Este arquivo contém todos os estilos para o site do hospital
 */

/* ======= Variáveis e Estilos Básicos ======= */
:root {
    --primary-color: #005a87;
    --secondary-color: #00a6d6;
    --accent-color: #f8f9fa;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* ======= Top Bar ======= */
.top-bar {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 8px 0;
}

.top-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-navigation a {
    color: var(--light-text);
    font-size: 14px;
}

/* ======= Main Header ======= */
.main-header {
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    width: 200px;
}

.main-navigation {
    display: flex;
    gap: 25px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: var(--secondary-color);
}

/* ======= Mobile Menu ======= */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ======= Search Bar ======= */
.search-section {
    padding: 20px 0;
    background-color: var(--accent-color);
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* ======= Main Carousel ======= */
.main-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    background-color: rgba(0, 90, 135, 0.8);
    color: var(--light-text);
    padding: 30px;
    max-width: 600px;
    margin-left: 10%;
    border-radius: 8px;
}

.carousel-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.carousel-content p {
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    background-color: var(--light-text);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.cta-btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: white;
}

/* ======= Video Section ======= */
.video-section {
    padding: 60px 0;
    background-color: var(--accent-color);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-placeholder {
    background-color: #333;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    position: relative;
}

.video-play-btn {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.video-play-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* ======= Quick Access ======= */
.quick-access {
    background-color: var(--accent-color);
    padding: 25px 0;
    text-align: center;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.quick-link {
    background-color: var(--light-text);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    width: 200px;
}

.quick-link:hover {
    transform: translateY(-5px);
}

.quick-link i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.quick-link h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

/* ======= Features Section ======= */
.features {
    padding: 60px 0;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.feature-content {
    padding: 25px;
}

.feature-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: 15px;
}

/* ======= Medical Team Section ======= */
.medical-team {
    padding: 60px 0;
    background-color: var(--accent-color);
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image img {
    width: 100%;
    height: auto;
}

.member-info {
    padding: 20px;
}

.member-specialty {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

/* ======= Services Section ======= */
.services-section {
    padding: 60px 0;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--light-text);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ======= About Section ======= */
.about {
    background-color: var(--accent-color);
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 32px;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

/* ======= News Section ======= */
.news {
    padding: 60px 0;
}

.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--light-text);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* ======= Contact Section ======= */
.contact-section {
    padding: 60px 0;
    background-color: var(--accent-color);
}

.contact-form-container {
    max-width: 800px;
    margin: 40px auto 0;
    background-color: var(--light-text);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

/* ======= Footer ======= */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--light-text);
    transition: opacity 0.3s;
}

.footer-column ul li a:hover {
    opacity: 0.8;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item i {
    margin-right: 10px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* ======= Cookie Policy ======= */
.cookie-policy {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.cookie-text {
    flex: 1;
    padding-right: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.accept-btn {
    background-color: var(--success-color);
    color: var(--light-text);
}

.learn-more-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-text);
}

/* ======= Patient Login Area ======= */
.patient-login {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px;
    border-radius: 8px 0 0 8px;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: right 0.3s;
}

.patient-login.open {
    right: 350px;
}

.patient-login-toggle {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.patient-login-toggle i {
    font-size: 24px;
    margin-bottom: 5px;
}

.patient-login-form {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100%;
    background-color: var(--light-text);
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 30px;
    transition: right 0.3s;
    overflow-y: auto;
}

.patient-login-form.open {
    right: 0;
}

.patient-login-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.patient-login-form .form-group {
    margin-bottom: 20px;
}

.patient-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.patient-login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
}

.patient-login-form .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-color);
    cursor: pointer;
}

.patient-login-form .extra-links {
    margin-top: 20px;
    text-align: center;
}

/* ======= Chat Widget ======= */
.chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-toggle i {
    font-size: 24px;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    height: 400px;
    background-color: var(--light-text);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-box.open {
    display: flex;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header .close-chat {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 16px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.chat-input {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
}

.chat-input button {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* ======= Responsive Styles ======= */
@media (max-width: 968px) {
    .main-navigation {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .carousel-content {
        margin-left: 5%;
        max-width: 90%;
    }

    .video-placeholder {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .quick-links {
        flex-direction: column;
        align-items: center;
    }

    .feature-cards,
    .news-cards {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
    }

    .main-carousel {
        height: 400px;
    }

    .carousel-content h2 {
        font-size: 24px;
    }

    .video-placeholder {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .main-carousel {
        height: 350px;
    }

    .carousel-content {
        padding: 15px;
    }

    .carousel-content p {
        font-size: 14px;
    }

    .cta-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Estilos para contadores animados */
.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    transition: all 0.8s ease;
}

.stat-number.animate {
    counter-increment: stat;
    animation: countUp 2s forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste responsivo para contadores */
@media (max-width: 768px) {
    .stat-number {
        font-size: 30px;
    }
}

/* Estilos para links nos blocos de acesso rápido */
.quick-link-anchor {
    text-decoration: none;
    color: inherit;
    display: block;
}

.quick-link-anchor:hover {
    text-decoration: none;
    color: inherit;
}

.quick-link-anchor .quick-link {
    height: 100%;
}

/* Ajuste para garantir que todo o bloco seja clicável */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}