/*
Theme Name: Endoscópica Theme
Theme URI: 
Author: Thiago Santos Lima
Author URI: http://thiagosantosweb.com/
Description: Tema desenvolvido para a Endoscópica
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 
Tags: 

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

:root {
    --primary-color: #003666; /* Azul profundo */
    --accent-color: #26D07C; /* Verde acento */
    --text-color: #333333;
    --light-color: #FFFFFF;
    --gray-color: #F8F9FA;
    --font-main: 'Outfit', sans-serif;
    --border-radius: 50px; /* Para botões circulares como o do banner */
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

.section-header__headline {
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* --- Header --- */
.header {
    background-color: var(--light-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__logo img {
    max-height: 60px;
    width: auto;
}

.header__nav .navbar-nav .nav-link {
    color: #444444; /* Cor escura do design */
    font-weight: 500;
    font-size: 1.125rem;
    padding: 10px 18px !important;
    transition: var(--transition);
}

.header__nav .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--light-color);
    padding: 80px 0;
}

/* Overlay para garantir contraste se necessário, 
   mas o banner original já parece ter o gradiente embutido ou é a própria imagem. 
   Vou manter limpo conforme o print. */

.hero__subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero__subtitle i {
    font-size: 1.4rem;
}

.hero__title {
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.1;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero__description-wrapper {
    position: relative;
    padding-left: 20px;
    margin-bottom: 40px;
    max-width: 550px;
}

/* A borda verde lateral */
.hero__description-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background-color: #D4AF37;
}

.hero__description {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.hero__button {
    background-color: var(--light-color);
    color: var(--primary-color) !important;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background-color: var(--gray-color);
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    background-color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

/* Background Dots Pattern */
.services-section::before,
.services-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 400px;
    background-image: radial-gradient(var(--accent-color) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 0;
}

.services-section::before {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.services-section::after {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.section-header {
    margin-bottom: 60px;
    z-index: 1;
    position: relative;
}

.section-header__title {
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header__subtitle {
    color: #777;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Service Card */
.service-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.02);
    margin: 15px 0; /* Para a sombra não ser cortada */
    z-index: 1;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-card__icon-container {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 15px rgba(0,64,133,0.2);
}

.service-card__icon-container img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Deixa o ícone branco */
}

.service-card__title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card__description {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* Owl Carousel Navigation Customization */
.services-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none; /* Deixa cliques passarem pelo container */
}

.services-carousel .owl-nav button {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #FFF9E6 !important; /* Cor creme/amarela leve do design */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--transition) !important;
    pointer-events: auto; /* Reabilita cliques apenas nos botões */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.services-carousel .owl-nav button:hover {
    background-color: #FFEBAD !important;
    transform: scale(1.1);
}

.services-carousel .owl-nav .owl-prev {
    left: -70px;
}

.services-carousel .owl-nav .owl-next {
    right: -70px;
}

/* Ícones das setas (podemos usar FontAwesome ou SVG puro) */
.owl-prev-icon::before,
.owl-next-icon::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #D4AF37;
    border-left: 3px solid #D4AF37;
}

.owl-prev-icon::before {
    transform: rotate(-45deg);
    margin-left: 5px;
}

.owl-next-icon::before {
    transform: rotate(135deg);
    margin-right: 5px;
}

/* Responsive Styles for Carousel Arrows */
@media (max-width: 1300px) {
    .services-carousel .owl-nav .owl-prev {
        left: -20px;
    }
    .services-carousel .owl-nav .owl-next {
        right: -20px;
    }
}

@media (max-width: 1200px) {
    .services-carousel .owl-nav {
        position: static;
        transform: none;
        margin-top: 30px;
        text-align: center;
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    .services-carousel .owl-nav button {
        position: static;
    }
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.about-section__image-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.about-section__image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-section__content {
    padding-left: 30px;
}

.about-section__subtitle {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 30px;
    text-transform: none;
    font-size: 1.5rem;
}

.about-section__headline {
    font-weight: 700;
    font-size: 1.85rem;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 25px;
}

.about-section__text {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.7;
}

.about-section__button {
    background-color: var(--primary-color);
    color: var(--light-color) !important;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.about-section__button:hover {
    background-color: #002D55;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive adjustments for About Section */
@media (max-width: 991px) {
    .about-section__content {
        padding-left: 0;
        text-align: center;
        margin-top: 40px;
    }
    
    .about-section__image-wrapper {
        max-width: 400px;
    }
}

/* --- Clinic Staff Section --- */
.staff-section {
    padding: 100px 0;
    background-color: #FBFDFE; /* Tom de azul quase branco */
    position: relative;
}

/* Background Patterns */
.staff-section__bg-left,
.staff-section__bg-right {
    position: absolute;
    transform: translateY(-50%);
    width: 250px;
    z-index: 0;
    pointer-events: none;
    animation: upDown 4s ease-in-out infinite;
}

.staff-section__bg-left {
    left: 20px;
    top: 30%;
}

.staff-section__bg-right {
    right: -50px;
    top: 70%;
}

@keyframes upDown {
    0%, 100% {
        transform: translateY(-50%) translateY(0);
    }
    50% {
        transform: translateY(-50%) translateY(-20px);
    }
}

.staff-card {
    background: #FFFFFF;
    border-radius: 40px; /* Bordas bem arredondadas como no design */
    padding: 50px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.staff-card:hover {
    background-color: #0B3770;
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(11, 55, 112, 0.3);
}

.staff-card:hover .staff-card__name,
.staff-card:hover .staff-card__specialties,
.staff-card:hover .staff-card__link {
    color: #FFFFFF !important;
}

.staff-card:hover .staff-card__link {
    border-bottom-color: #FFFFFF;
}

.staff-card__image-container {
    width: 150px;
    height: 150px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.staff-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #FFFFFF;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.staff-card__name {
    font-weight: 700;
    font-size: 1.4rem;
    color: #111;
    margin-bottom: 10px;
    transition: var(--transition);
}

.staff-card__specialties {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.4;
    transition: var(--transition);
}

.staff-card__link {
    font-weight: 600;
    color: #111;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 2px solid #EEE;
    padding-bottom: 2px;
    transition: var(--transition);
}

.staff-card__link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.staff-card__link i {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Modal Styling */
.staff-modal .modal-content {
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

.staff-modal .modal-header,
.staff-modal .modal-body {
    text-align: left !important;
}

.staff-modal__thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #FFF;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.text-navy {
    color: var(--primary-color);
}

.staff-modal__curriculum {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    text-align: left;
}

.staff-modal__curriculum ul {
    padding-left: 20px;
}

.staff-modal__curriculum li {
    margin-bottom: 10px;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.testimonial-card {
    background: #FFFFFF;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    margin: 15px 0 20px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.testimonial-card__quote {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: rgba(11, 55, 112, 0.05);
    line-height: 1;
}

.testimonial-card__stars {
    margin-bottom: 20px;
    color: #FFC107; /* Dourado */
    font-size: 1rem;
}

.testimonial-card__text {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
}

.testimonial-card__avatar {
    width: 50px !important;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.testimonial-card__name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111;
    margin: 0;
}

/* Google Review Button Styling */
.btn-google-review {
    display: inline-flex;
    align-items: center;
    background-color: #0B3770;
    color: #FFFFFF !important;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(11, 55, 112, 0.2);
    transition: var(--transition);
    border: none;
}

.btn-google-review:hover {
    background-color: #002D55;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(11, 55, 112, 0.3);
    color: #FFFFFF !important;
}

.btn-google-review i {
    color: #FFFFFF; /* Mudado para branco conforme solicitado */
    font-size: 1.1rem;
}

/* Owl Carousel Dots Customization */
.testimonials-section .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.testimonials-section .owl-dot span {
    width: 10px;
    height: 10px;
    background: #DDD !important;
    display: block;
    margin: 5px;
    border-radius: 50%;
    transition: var(--transition);
}

.testimonials-section .owl-dot.active span {
    background: var(--primary-color) !important;
    width: 30px;
    border-radius: 10px;
}

/* --- Footer --- */
.site-footer {
    background-color: #0B3770; /* Cor sólida e escura solicitada */
    color: #FFFFFF;
    padding: 80px 0 30px;
}

.footer-white-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 25px;
    /* CSS Filter para deixar a logo branca */
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget__title {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #FFD101; /* Amarelo solicitado */
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact-list i {
    color: #FFD101;
    font-size: 1.1rem;
    margin-right: 15px;
    line-height: 1;
}

.footer-contact-list a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-list a:hover {
    color: #FFFFFF;
}

.footer-social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.footer-social-links a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-links a:hover {
    background-color: #FFD101;
    color: #0B3770;
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer__dev-link {
    color: #FFD101; /* Amarelo da marca */
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.footer__dev-link:hover {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(255, 209, 1, 0.3);
}

/* --- Responsive adjustment for Footer --- */
@media (max-width: 991px) {
    .site-footer {
        text-align: center;
        padding: 60px 0 20px;
    }

    .footer-widget__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-list li {
        justify-content: center;
    }

    .footer-social-links {
        justify-content: center;
        margin-top: 20px;
    }
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .staff-section__bg-left,
    .staff-section__bg-right {
        display: none;
    }
}

/* --- Page Header (Breadcrumbs) - Global for all subpages --- */
.page-header {
    padding: 180px 0 100px; /* Altura aumentada */
    background-image: url('assets/images/bg-pages.png');
    background-size: cover;
    background-position: center 60%; /* Alinhado ao bottom center */
    position: relative;
    color: #FFFFFF;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay mais escuro e homogêneo para contraste */
    background: linear-gradient(to right, rgba(11, 55, 112, 0.95), rgba(11, 55, 112, 0.6));
    z-index: 1;
}

.container--page-header {
    position: relative;
    z-index: 2;
}

.page-header__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-header__breadcrumb {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.page-header__breadcrumb a {
    color: #FFFFFF;
    text-decoration: none;
    transition: var(--transition);
}

.page-header__breadcrumb a:hover {
    color: #FFD101;
}

.page-header__breadcrumb .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

.page-header__breadcrumb .current {
    color: #FFD101;
}

/* --- Responsive fixes for Page Header --- */
@media (max-width: 991px) {
    .header {
        padding: 0;
    }
    .page-header {
        padding: 60px 0;
    }
    .page-header__title {
        font-size: 2rem;
    }
    .hero__title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    .section-header__title {
        font-size: 1.8rem;
    }
    .section-header__headline {
        font-size: 1.25rem;
    }
    .section-header {
        margin-bottom: 30px;
    }
    
    /* General Section Padding Reduction */
    section, 
    .services-section, 
    .about-section, 
    .staff-section, 
    .testimonials-section,
    .blog-archive-section,
    .single-post-section,
    .conv-archive-section,
    .exames-list-section,
    .preparos-list-section,
    .contact-section,
    .who-we-are {
        padding: 50px 0 !important;
    }

    .hero {
        background: var(--primary-color) !important;
        min-height: auto;
        padding: 50px 0 !important;
    }

    .about-highlights__image {
        height: 300px!important;
        width: 100%;
        object-fit: scale-down!important;
        margin: 0 auto;
    }
}

/* --- Floating Buttons (WhatsApp & Scroll Top) --- */
.floating-btns {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 9999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    border: none;
    position: absolute;
    bottom: 0;
}

.floating-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.floating-btn:not(.visible) {
    transform: scale(0.5);
}

.floating-btn--whatsapp {
    right: 30px;
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.floating-btn--whatsapp:hover {
    transform: scale(1.1) rotate(15deg);
    color: #FFFFFF;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.floating-btn--scroll-top {
    left: 30px;
    background-color: #0B3770; /* Navy da clínica */
}

.floating-btn--scroll-top:hover {
    background-color: #FFD101; /* Amarelo da clínica */
    color: #0B3770;
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .floating-btns {
        bottom: 20px;
    }
    
    .floating-btn--whatsapp {
        right: 20px;
    }
    
    .floating-btn--scroll-top {
        left: 20px;
    }
}