/* Reset e Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #3f51b5;
    --dark-blue: #2c3e8f;
    --light-blue: #5c6bc0;
    --green: #4caf50;
    --red: #e53935;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --text-color: #424242;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo-img {
    height: 60px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary-blue);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon,
.contact-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-icon svg,
.contact-link-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

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

.btn-green:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-red {
    background: var(--red);
    color: var(--white);
}

.btn-red:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 300;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--primary-blue);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* Sobre Section */
.sobre {
    background: var(--primary-blue);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--light-blue);
}

.sobre .section-title {
    color: rgba(255, 255, 255, 0.9);
}

.section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.sobre-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.sobre-image {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sobre-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Exames Section */
.exames {
    padding: 80px 0;
    background: var(--white);
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

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

.exame-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.exame-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.exame-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.exame-card h3 {
    padding: 20px;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

/* Estrutura Section */
.estrutura {
    padding: 80px 0;
    background: var(--light-gray);
}

.estrutura-text {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.corpo-clinico {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.corpo-clinico h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
}

.corpo-clinico ul {
    list-style: none;
}

.corpo-clinico li {
    padding: 10px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.corpo-clinico li:last-child {
    border-bottom: none;
}

.estrutura-image {
    max-width: 700px;
    margin: 40px auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.estrutura-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Convênios Section */
.convenios {
    padding: 80px 0;
    background: var(--white);
}

.convenios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}

.convenios-grid img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.convenios-grid img:hover {
    filter: grayscale(0%);
}

/* Contato Section */
.contato {
    padding: 80px 0;
    background: var(--light-gray);
}

.contato-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.contato-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contato-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contato-item h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contato-item a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-link-icon {
    width: 19px;
    height: 19px;
    color: var(--primary-blue);
}

.contato-item a:hover {
    color: var(--primary-blue);
}

/* Onde Estamos Section */
.onde-estamos {
    padding: 80px 0;
    background: var(--white);
}

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

.endereco-item {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.endereco-item p {
    font-size: 1rem;
    line-height: 1.6;
}

.btn-route {
    margin-top: 15px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 18px;
    font-size: 0.95rem;
}

.btn-route:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.back-to-top {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    margin-bottom: 30px;
}

.back-to-top:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-disclaimer p {
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Botão Fixo */
.btn-fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--green);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-fixed:hover {
    background: #45a049;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-fixed-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
}

.btn-fixed-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .exames-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .convenios-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .btn-fixed {
        bottom: 20px;
        right: 0;
        padding: 12px 20px;
        font-size: 0.9rem;
        left: 0;
        width: 100%;
        border-radius: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .exames-grid {
        grid-template-columns: 1fr;
    }
}
