/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Quicksand', sans-serif; overflow-x: hidden; color: #2e2e2e; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* ============================
   HEADER - Identico ao original
   ============================ */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    padding: 0;
}

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

.logo { margin: 30px 0 25px 0; }
.logo-img { height: 100px; width: auto; }

.nav-desktop .menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
}

.nav-desktop .menu li a {
    color: #330019;
    font-size: 16px;
    text-transform: uppercase;
    padding: 0 0 5px 0;
    transition: color 0.3s;
}

.nav-desktop .menu li a:hover { color: #ed1c24; }

.btn-agende {
    display: inline-block;
    background: #330019;
    color: #fff !important;
    font-size: 14px;
    padding: 12px 25px;
    transition: background 0.3s;
}

.btn-agende:hover { background: #ed1c24; }

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 38px;
    padding: 5px 0;
}

.nav-toggle span {
    display: block;
    background: #330019;
    height: 3px;
    margin: 6px 0;
    width: 100%;
    border-radius: 3px;
    transition: all 0.3s;
}

.nav-mobile {
    display: none;
    background: #330019;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
}

.nav-mobile.active { display: block; }

.nav-mobile ul { padding: 20px 10px; }
.nav-mobile li a {
    color: #fff;
    font-size: 16px;
    display: block;
    padding: 9px 15px;
    transition: background 0.3s;
}
.nav-mobile li a:hover { background: rgba(255,255,255,0.15); }

.mobile-social {
    padding: 0 25px 20px;
    display: flex;
    gap: 15px;
}
.mobile-social a { color: #fff; }

/* ============================
   BANNER SLIDER - Identico ao original
   ============================ */
.banner-slider {
    position: relative;
    width: 100%;
    min-height: 690px;
    overflow: hidden;
}

.slides { position: relative; width: 100%; height: 690px; }

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active { opacity: 1; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 3px;
}

.slider-btn:hover { background: rgba(0,0,0,0.6); }
.slider-prev { left: 15px; }
.slider-next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.dot.active { background: #ed1c24; }

/* ============================
   QUEM SOMOS - Identico ao original
   ============================ */
.section-about { padding: 45px 0 50px; }

.about-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 60px;
    align-items: start;
}

.about-image img {
    width: 100%;
    height: 333px;
    object-fit: cover;
}

.about-content h2 {
    color: #2e2e2e;
    font-size: 24px;
    text-transform: uppercase;
    margin: 60px 0 30px 0;
    font-weight: 400;
}

.about-content p {
    color: #2e2e2e;
    font-size: 16px;
    line-height: 1.7;
}

.about-buttons {
    margin: 50px 0 0 0;
    display: flex;
    gap: 10px;
}

.btn-bordo {
    display: inline-block;
    background: #330019;
    color: #fff;
    font-size: 16px;
    padding: 15px 35px;
    transition: background 0.3s;
}

.btn-bordo:hover { background: #ed1c24; }

/* ============================
   CTA AGENDE EXAME - Identico ao original
   ============================ */
.section-cta {
    background: url('../img/bg-agende-exame.jpg') center no-repeat;
    background-size: cover;
    min-height: 538px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-cta h3 {
    color: #fff;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 300;
    text-align: center;
    margin: 0 0 50px 0;
}

.cta-phones {
    background: #fff;
    padding: 15px 60px;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.cta-phones p {
    color: #330019;
    font-size: 24px;
    margin: 5px 0;
}

.whatsapp-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================
   EXAMES
   ============================ */
.section-exames {
    padding: 60px 0 80px;
    background: #f9f9f9;
}

.section-exames h2 {
    color: #330019;
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 15px;
    font-weight: 400;
}

.section-desc {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin: 0 0 40px;
}

.exames-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.exame-card {
    background: #fff;
    padding: 28px 24px;
    text-align: left;
    border: 1px solid #eee;
    border-left: 4px solid #330019;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.exame-card:hover {
    box-shadow: 0 8px 25px rgba(51,0,25,0.12);
    transform: translateY(-3px);
    border-left-color: #ed1c24;
}

.exame-card h4 {
    color: #330019;
    font-size: 14px;
    text-transform: uppercase;
    margin: 0 0 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.exame-card:hover h4 {
    color: #ed1c24;
}

.exame-card p {
    color: #777;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.exame-card .exame-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s;
    color: #ed1c24;
    font-size: 18px;
}

.exame-card:hover .exame-arrow {
    opacity: 1;
    right: 16px;
}

/* Exames page - layout com icones */
.exames-page .exames-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.exames-page .exame-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
    text-align: left;
    border: none;
    background: none;
}

.exames-page .exame-card:hover {
    box-shadow: none;
}

.exames-page .exame-card:hover h4 { color: #ed1c24; }

.exame-card-icon {
    flex-shrink: 0;
    width: 80px;
}

.exame-card-icon img {
    width: 80px;
    height: auto;
}

/* ============================
   EQUIPE
   ============================ */
.section-equipe {
    padding: 60px 0 80px;
    background: #f9f9f9;
}

.section-equipe h2 {
    color: #330019;
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 40px;
    font-weight: 400;
}

.equipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.medico-card {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px 25px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.medico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(51,0,25,0.12);
}

.medico-foto {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 15px rgba(51,0,25,0.15);
}

.medico-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s;
}

.medico-card:hover .medico-foto img {
    transform: scale(1.05);
}

.medico-card h4 {
    color: #330019;
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 600;
}

.medico-card span {
    color: #777;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================
   CONVENIOS
   ============================ */
.section-convenios {
    padding: 60px 0 80px;
    background: #f9f9f9;
}

.section-convenios h2 {
    color: #330019;
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 40px;
    font-weight: 400;
}

.convenios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.convenio-card {
    background: #fff;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: all 0.3s;
}

.convenio-card:hover {
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.convenio-card img {
    max-height: 120px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.convenios-note {
    text-align: center;
    margin: 25px 0 0;
    color: #666;
    font-size: 14px;
}

.convenios-note a {
    color: #ed1c24;
    font-weight: 600;
}

.convenios-note a:hover { text-decoration: underline; }

/* ============================
   CONTATO
   ============================ */
.section-contato { padding: 60px 0 80px; }

.section-contato h2 {
    color: #330019;
    font-size: 24px;
    text-transform: uppercase;
    margin: 0 0 30px;
    font-weight: 400;
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contato-item { margin: 0 0 20px; }

.contato-item strong {
    display: block;
    color: #330019;
    font-size: 16px;
    margin: 0 0 5px;
}

.contato-item p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* ============================
   FOOTER - Identico ao original
   ============================ */
footer {
    background: #330019;
    padding: 50px 0 20px;
    color: rgba(255,255,255,0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-logo { height: 80px; width: auto; margin: 0 0 15px; }

.footer-address h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    margin: 0 0 10px;
    letter-spacing: 1px;
}

.footer-address p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.footer-phones { color: #ed1c24; }

.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}
.footer-nav a:hover { color: #ed1c24; }

.footer-social {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.footer-social a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}
.footer-social a:hover { color: #fff; }

.footer-bottom {
    padding: 20px 0 0;
    text-align: center;
    font-size: 13px;
}

/* ============================
   WHATSAPP FLOAT
   ============================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg { width: 32px; height: 32px; }

/* ============================
   PÁGINAS INTERNAS - Header fixo
   ============================ */
header.header-internal {
    position: relative;
    background: #330019;
}

header.header-internal .nav-desktop .menu li a { color: #fff; }
header.header-internal .nav-desktop .menu li a:hover { color: #ed1c24; }
header.header-internal .btn-agende { background: #ed1c24; }
header.header-internal .btn-agende:hover { background: #fff; color: #330019 !important; }
header.header-internal .nav-toggle span { background: #fff; }
header.header-internal .logo-img { filter: brightness(0) invert(1); }

/* Page Banner */
.page-banner {
    background: #330019;
    padding: 40px 0 50px;
    text-align: center;
}

.page-banner h1 {
    color: #fff;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0;
}

.page-banner .breadcrumb {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin: 10px 0 0;
}

.page-banner .breadcrumb a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.page-banner .breadcrumb a:hover { color: #fff; }

/* Page Content */
.page-content {
    padding: 60px 0 80px;
}

.page-content h2 {
    color: #330019;
    font-size: 24px;
    text-transform: uppercase;
    margin: 0 0 20px;
    font-weight: 400;
}

.page-content p {
    color: #2e2e2e;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 15px;
}

.page-content ul {
    margin: 0 0 20px 20px;
    list-style: disc;
}

.page-content ul li {
    color: #2e2e2e;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 5px;
}

/* Quem Somos - Diferenciais */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.diferencial-item {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.diferencial-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.diferencial-icon {
    color: #ed1c24;
    font-size: 36px;
    margin: 0 0 15px;
}

.diferencial-item h4 {
    color: #330019;
    font-size: 16px;
    text-transform: uppercase;
    margin: 0 0 10px;
    font-weight: 500;
}

.diferencial-item p {
    color: #989898;
    font-size: 14px;
    line-height: 1.5;
}

/* Valores */
.valores-section {
    background: #f9f9f9;
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.valores-section h3 {
    color: #330019;
    font-size: 20px;
    text-transform: uppercase;
    margin: 0 0 15px;
    font-weight: 400;
}

.valores-section p {
    color: #666;
    font-size: 18px;
    font-weight: 300;
}

/* Detalhe Exame */
.exame-detail {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.exame-detail-content h3 {
    color: #330019;
    font-size: 20px;
    margin: 30px 0 15px;
    font-weight: 500;
}

.exame-detail-content h3:first-child { margin-top: 0; }

.exame-sidebar {
    background: #f9f9f9;
    padding: 30px;
    border: 1px solid #eee;
}

.exame-sidebar h4 {
    color: #330019;
    font-size: 16px;
    text-transform: uppercase;
    margin: 0 0 20px;
    font-weight: 500;
}

.exame-sidebar .btn-bordo {
    display: block;
    text-align: center;
    margin: 0 0 10px;
}

.exame-sidebar p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0 0;
}

/* Detalhe Médico */
.medico-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    align-items: start;
}

.medico-detail-foto {
    text-align: center;
    position: sticky;
    top: 100px;
}

.medico-detail-foto img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: none;
    box-shadow: none;
    display: block;
    margin: 0 auto;
}

.medico-detail-foto h3 {
    color: #330019;
    font-size: 20px;
    margin: 20px 0 5px;
    font-weight: 600;
}

.medico-detail-foto .crm {
    color: #888;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.medico-detail-content h4 {
    color: #330019;
    font-size: 18px;
    margin: 0 0 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.medico-detail-content h4:not(:first-child) { margin-top: 30px; }

/* Exame card como link */
a.exame-card { color: inherit; }
a.exame-card:hover { text-decoration: none; }
a.medico-card { color: inherit; text-decoration: none; display: block; }




/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 991px) {
    .nav-desktop { display: none; }
    .header-cta { display: none; }
    .nav-toggle { display: block; }

    .banner-slider, .slides { min-height: 400px; height: 400px; }

    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-content h2 { margin-top: 20px; }

    .exames-grid { grid-template-columns: repeat(2, 1fr); }
    .exames-page .exames-grid { grid-template-columns: 1fr; }
    .equipe-grid { grid-template-columns: repeat(2, 1fr); }
    .convenios-grid { grid-template-columns: repeat(2, 1fr); }

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

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }

    .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
    .exame-detail { grid-template-columns: 1fr; }
    .medico-detail { grid-template-columns: 1fr; }
    .medico-detail-foto { margin-bottom: 20px; }

}

@media (max-width: 767px) {
    .logo-img { height: 70px; }

    .banner-slider, .slides { min-height: 250px; height: 250px; }

    .about-buttons { flex-direction: column; }
    .btn-bordo { text-align: center; }

    .exames-grid { grid-template-columns: 1fr; }
    .equipe-grid { grid-template-columns: 1fr; }
    .convenios-grid { grid-template-columns: 1fr 1fr; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { margin: 0 auto 15px; }
    .footer-social { justify-content: center; }

    .section-cta { min-height: 400px; }

    .slider-btn { width: 35px; height: 35px; font-size: 18px; }

    .diferenciais-grid { grid-template-columns: 1fr; }
    .exame-sidebar { margin-top: 30px; }

}
