/* Estilos globais e variáveis */
:root {
    --primary-color: #00bcd4;
    --secondary-color: #0097a7;
    --text-color: #333;
    --background-color: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-width: 320px;
}

/* Container responsivo */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cabeçalho */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px var(--shadow-color);
    width: 100%;
    text-align: center;
}

#logo {
    width: 200px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    margin: 0 auto;
    display: block;
}

#logo:hover {
    transform: scale(1.05);
}

header h1 {
    margin: 15px 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

/* Seção Hero */
#hero {
    background-color: #f5f5f5;
    padding: 60px 0;
    text-align: center;
    width: 100%;
}

#hero h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

/* Seções gerais */
section {
    padding: 50px 0;
    width: 100%;
}

section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto;
}

/* Grid de exames */
.exame-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    width: 100%;
}

.exame-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exame-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.exame-item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 10px;
}

.exame-item h4 {
    color: var(--primary-color);
    padding: 15px;
    font-size: 1.2em;
    text-align: center;
    width: 100%;
}

.exame-item p {
    padding: 0 15px 15px;
    color: var(--text-color);
    text-align: justify;
}

/* Seção de contato */
#contato {
    background-color: #f5f5f5;
    text-align: center;
    width: 100%;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25d366;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: scale(1.05);
}

/* Seção de localização */
#localizacao img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 10px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 3px 10px var(--shadow-color);
}

#localizacao p {
    text-align: center;
    margin: 10px 0;
    font-size: 1.1em;
}

/* Rodapé */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: 50px;
    width: 100%;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    header h1 {
        font-size: 2em;
    }

    #hero h2 {
        font-size: 1.8em;
    }

    .exame-grid {
        grid-template-columns: 1fr;
    }

    .exame-item img {
        height: 250px;
    }

    #logo {
        width: 150px;
    }
}

/* Acessibilidade */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}