@font-face {
    font-family: "Intro";
    src: url("Intro\ Regular\ Regular.otf") format("opentype");
}

@font-face {
    font-family: "Miles";
    src: url("Miles\ Marathon\ Regular.otf") format("opentype");
}

:root {
    --primary-color: #2A514D;
    --secondary-color: #E7CEB5;
    --accent-color: #818599;
    --light-color: #f8f9fa;
    --dark-color: #333333;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Intro', sans-serif;
}

body {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Miles', serif;
}

/* Navbar */
.navbar {
    transition: all var(--transition-speed) ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 75px;
    transition: height var(--transition-speed) ease;
}

.navbar.scrolled .navbar-brand img {
    height: 60px;
}

.navbar .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.navbar .nav-link:hover::after {
    width: 100%;
}

/* Home Section */
.home {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/home.JPG);
    background-repeat: repeat-x;
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 0;
    position: relative;
}

.home-content {
    z-index: 1;
    max-width: 800px;
    padding: 30px 20px 0 20px;
    transform: translate(0, 15%);
}

.home-content a {
    transform: translate(0, 50%);
}

.home h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.home p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btnhome {
    background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.5)),var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.btnhome:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* Sobre Nós */
.sobre {
    padding: 5rem 0;
    background: var(--secondary-color);
}

.sobre h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.sobre h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 25%;
}

.sobre p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-custom {
    background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.5)),var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Especialidades */
.especialidades {
    padding: 5rem 0;
    background-color: white;
}

.especialidades h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.especialidades h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.especialidade-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.especialidade-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.especialidade-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    margin-top: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.especialidade-icon img {
    height: 60px;
    filter: none;
}

.especialidade-card h3 {
    text-align: center;
    color: var(--primary-color);
    margin: 1.5rem 0;
    font-size: 1.5rem;
}

.especialidade-card p {
    padding: 0 1.5rem 1.5rem;
    color: #6c757d;
    line-height: 1.7;
    flex-grow: 1;
}

/* Profissional */
.profissional {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f8f9fa 100%);
}

.profissional-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.profissional-card img {
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-speed) ease;
}

.profissional-card:hover img {
    transform: scale(1.02);
}

.profissional-card h5 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.profissional-card p {
    color: #6c757d;
    line-height: 1.7;
}

/* Convênios e Planos */
.pattern2 {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../img/3.jpg);
    background-size: cover;
    background-position: center;
    height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.pattern2 h2 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.planoseconvenios {
    padding: 4rem 0;
    background-color: white;
}

.planoseconvenios h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.planoseconvenios h4::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.convenios-container {
    padding: 2rem 0;
}

.convenio-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 1rem;
}

.convenio-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform var(--transition-speed) ease;
}

.convenio-item:hover img {
    transform: scale(1.05);
}

/* Contato */
.contato {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #f8f9fa 100%);
}

.contato h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.contato h4::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.contato-info {
    margin-bottom: 2rem;
}

.contato-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
}

.contato-info strong {
    color: var(--primary-color);
}

.mapa-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mapa-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0;
}

/* Responsividade */
@media (max-width: 992px) {
    .home h1 {
        font-size: 2.8rem;
    }
    
    .navbar-brand img {
        height: 60px;
    }
    
    .navbar.scrolled .navbar-brand img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .home {
        height: 70vh;
    }
    
    .home h1 {
        font-size: 2.2rem;
    }
    
    .home p {
        font-size: 1rem;
    }
    
    .sobre, .especialidades, .profissional, .planoseconvenios, .contato {
        padding: 3rem 0;
    }
    
    .especialidade-card {
        margin-bottom: 50px;
        padding-top: 20px;
    }
    
    .especialidade-icon {
        margin-top: 20px;
        width: 80px;
        height: 80px;
    }
    
    .especialidade-icon img {
        height: 50px;
    }
    
    .navbar-brand img {
        height: 50px;
    }
    
    .navbar.scrolled .navbar-brand img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .home {
        height: 60vh;
    }
    
    .home h1 {
        font-size: 1.8rem;
    }
    
    .sobre h2, .especialidades h2, .contato h4, .planoseconvenios h4 {
        font-size: 1.8rem;
    }
    
    .especialidade-card h3 {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        height: 45px;
    }
    
    .navbar.scrolled .navbar-brand img {
        height: 35px;
    }
    
    .mapa-container img {
        width: 100%;
    }
}

.equipe-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: all var(--transition-speed) ease;
}

.equipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.equipe-card img {
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.equipe-card h5 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.equipe-card p {
    color: #6c757d;
    line-height: 1.5;
}

/* Estilização dos controles do carrossel */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 10px;
}

.carousel-control-prev, .carousel-control-next {
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

/* Melhorias adicionais para efeitos visuais */
.equipe-card, .profissional-card, .especialidade-card {
    transition: all 0.4s ease;
}

.equipe-card:hover, .profissional-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(42, 81, 77, 0.2);
}

/* Melhorias para dispositivos móveis */
@media (max-width: 576px) {
    .equipe-card img {
        height: 120px;
    }
    
    .profissional-card img {
        height: 160px;
    }
}
