/* Dr. Antônio Prates - Main Stylesheet */
/* Cleaned and simplified from WordPress theme */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #3fb6e0;
    --secondary-color: #a5c422;
    --dark-color: #333f48;
    --text-color: #232A34;
    --light-bg: #fafcfc;
    --white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Merriweather', serif;
}

/* ===== Accessibility ===== */
/* Screen reader only - hidden visually but accessible to search engines and assistive tech */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ===== Layout ===== */
.body_wrap {
    width: 100%;
}

.page_wrap {
    width: 100%;
}

.content_wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Header ===== */
.top_panel_wrap {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top_panel_middle {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.top_panel_middle .columns_wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact_field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact_icon {
    font-size: 8px;
    color: var(--primary-color);
}

.contact_logo {
    text-align: center;
}

.contact_logo .logo img {
    max-height: 96px;
    width: auto;
    aspect-ratio: 519 / 176;  /* Maintain natural aspect ratio */
}

/* ===== Navigation ===== */
/* Override WordPress theme default that hides menu until JS adds .menu_show class */
.menu_main_nav_area {
    display: inline-block !important;
}

.top_panel_bottom {
    background-color: var(--white);
    padding: 10px 0;
}

.menu_main_nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.menu_main_nav > li {
    position: relative;
}

.menu_main_nav > li > a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu_main_nav > li > a:hover,
.menu_main_nav > li.current-menu-item > a {
    color: var(--primary-color);
}

/* ===== Mobile Header ===== */
.header_mobile {
    display: none;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header_mobile .content_wrap {
    display: grid !important;
    grid-template-columns: 50px 1fr 50px !important;
    align-items: center !important;
    padding: 5px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.header_mobile .logo {
    grid-column: 2 !important;
    justify-self: center !important;
    padding: 10px 0 !important;
}

.header_mobile .menu_button {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    padding: 10px !important;
}

.header_mobile .logo img {
    max-height: 60px;
    width: auto;
    aspect-ratio: 519 / 176;  /* Maintain natural aspect ratio */
}

.menu_button {
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

.header_mobile .side_wrap {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.header_mobile .side_wrap .menu_main_nav_area {
    display: block;
    width: 100%;
}

.header_mobile .side_wrap .menu_main_nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0;
}

.header_mobile .side_wrap .menu_main_nav > li {
    width: 100%;
}

.header_mobile .side_wrap .menu_main_nav > li > a {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #409fc7;
    color: white;
    padding: 15px 20px;
}

.header_mobile .side_wrap .menu_main_nav > li > a:hover,
.header_mobile .side_wrap .menu_main_nav > li.current-menu-item > a {
    background-color: #3590b8;
    color: white;
}

.header_mobile .side_wrap .close {
    color: white;
}

.header_mobile .side_wrap.active {
    left: 0;
}

.header_mobile .close {
    text-align: right;
    cursor: pointer;
    padding: 10px;
    font-weight: bold;
}

.header_mobile .mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.header_mobile .mask.active {
    display: block;
}

/* ===== Sections ===== */
.page_content_wrap {
    min-height: 50vh;
}

section {
    padding: 40px 0;
}

/* ===== Hero/Banner ===== */
.hero-section {
    text-align: center;
    padding: 0;
}

.hero-section img {
    width: 100%;
    height: auto;
}

/* Hero image centering */
.vc_row-no-padding .wpb_single_image {
    display: flex;
    justify-content: center;
}

.vc_row-no-padding .wpb_single_image .vc_figure {
    display: flex;
    justify-content: center;
}

.vc_row-no-padding .wpb_single_image .vc_single_image-wrapper {
    display: block;
}

/* ===== Services Section ===== */
.services-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.services-row .service-box {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    text-align: center;
    color: var(--white);
}

.service-box.bg-primary { background-color: var(--primary-color); }
.service-box.bg-secondary { background-color: var(--secondary-color); }
.service-box.bg-dark { background-color: var(--dark-color); }

.service-box h4 {
    margin: 15px 0 10px;
    font-size: 1.3em;
}

.service-box h4 a {
    color: var(--white);
}

/* ===== About Section ===== */
.about-section {
    padding: 60px 0;
    text-align: center;
}

.about-section h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.about-section h6 {
    font-family: var(--font-secondary);
    font-weight: 300;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ===== Especialidades Grid (3 colunas) ===== */
.especialidades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.especialidade-item {
    text-align: center;
    padding: 20px;
}

.especialidade-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.especialidade-item .sc_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 90px;
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background-color: #e8e8e8;
    clip-path: polygon(50% 2%, 90% 25%, 90% 75%, 50% 98%, 10% 75%, 10% 25%);
    position: relative;
}

.especialidade-item .sc_icon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: var(--light-bg);
    clip-path: polygon(50% 2%, 90% 25%, 90% 75%, 50% 98%, 10% 75%, 10% 25%);
    z-index: 0;
}

.especialidade-item .sc_icon .icon-dot {
    position: relative;
    z-index: 1;
}

.especialidade-item .sc_icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 2;
}

.especialidade-item:hover .sc_icon {
    background-color: rgba(0, 163, 195, 0.3);
}

.especialidade-item h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.especialidade-item p {
    font-size: 1.2em;
    color: #999;
    margin: 0;
}

@media (max-width: 768px) {
    .especialidades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .especialidades-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Services List (Formação, Sociedades, Locais) ===== */
.sc_services_wrap {
    margin: 30px 0;
}

.sc_services {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sc_services_item {
    width: 100%;
}

/* Override legacy float from 23661.css for mobile */
@media (max-width: 768px) {
    .sc_services_style_services-3 .sc_icon {
        float: none !important;
        display: block !important;
        margin: 0 0 10px 0 !important;
    }
    
    .sc_services_style_services-3 .sc_services_item_content {
        margin-left: 0 !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .sc_services_style_services-3 .sc_services_item {
        clear: both;
        overflow: visible !important;
    }
    
    .sc_services_wrap {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    #sobremim .vc_column-inner,
    #sobremim .wpb_wrapper {
        padding: 0 !important;
    }
    
    /* Make sobremim section use full width on mobile */
    #sobremim {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }
    
    /* Reduce content_wrap padding on mobile */
    .content_wrap {
        padding: 0 10px;
    }
}

/* ===== Buttons ===== */
.sc_button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.sc_button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ===== Team/Locations ===== */
.sc_team_wrap {
    margin: 40px 0;
}

.sc_team .sc_columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.sc_team_item {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
}

.sc_team_item_avatar img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}

.sc_team_item_title {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.sc_team_item_title a {
    color: var(--text-color);
}

.sc_team_item_position {
    color: #555;  /* Darker gray for better contrast */
    font-size: 0.9em;
}

/* ===== Hero Services - Full Width 3 Columns ===== */
.hero-services {
    display: flex;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 40px;
}

.hero-service {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.3s;
}

.hero-service:hover {
    opacity: 0.9;
    color: white;
}

.hero-service-blue { background-color: #3fb6e0; }
.hero-service-green { background-color: #a7c526; }
.hero-service-dark { background-color: #333f48; }

.hero-service-icon {
    font-size: 12px;
    margin-bottom: 8px;
    color: white;
}

.hero-service-title {
    font-size: 0.8em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
    color: white;
}

.hero-service-arrow {
    font-size: 1.1em;
    color: white;
}

/* ===== About Section (Sobre Mim) ===== */
#sobremim .sc_title h1 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-color);
}

#sobremim .vc_custom_heading {
    font-family: var(--font-primary) !important;
    font-weight: 400 !important;
    color: var(--text-color);
    line-height: 1.8;
}

#sobremim .vc_custom_heading p {
    font-family: var(--font-primary);
    margin-bottom: 1em;
}

#sobremim .vc_custom_heading strong {
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-services {
        flex-wrap: wrap;
    }
    .hero-service {
        flex: 1 1 50%;
        height: 90px;
        padding: 15px 10px;
    }
    .hero-service:last-child {
        flex: 1 1 100%;
    }
    
    /* Hero image full width on mobile */
    .vc_row-no-padding {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
    }
    
    .vc_row-no-padding .wpb_single_image,
    .vc_row-no-padding .vc_figure,
    .vc_row-no-padding .vc_single_image-wrapper {
        width: 100%;
    }
    
    .vc_row-no-padding .vc_single_image-img {
        width: 100% !important;
        height: auto !important;
        max-width: none;
    }
}

/* ===== Contrast Accessibility Fixes ===== */
/* Location section text contrast */
.vc_custom_1455705010924 .sc_line_title {
    color: #1a1a1a;
}

/* ===== Section Dividers ===== */
.sc_line {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.sc_line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
}

.sc_line_title {
    background-color: var(--white);
    padding: 0 20px;
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Diseases List ===== */
.sc_list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    columns: 2;
    column-gap: 40px;
}

.sc_list_item {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc_list_icon {
    color: var(--secondary-color);
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: var(--light-bg);
    padding: 60px 0;
    text-align: center;
}

.contact-section p {
    margin: 10px 0;
}

/* ===== Footer ===== */
.footer_wrap {
    background-color: #2a3540;
    color: #b8c4ce;
    padding: 50px 0 30px;
}

.footer_wrap .widget_title {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.footer_wrap .widget {
    margin-bottom: 20px;
}

.footer_wrap .textwidget p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.7;
}

.footer_wrap .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer_wrap .menu li {
    margin-bottom: 10px;
}

.footer_wrap .menu li a {
    color: #b8c4ce;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer_wrap .menu li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer_wrap .menu li a::before {
    content: "›";
    margin-right: 8px;
    color: var(--primary-color);
}

.footer_wrap a {
    color: #b8c4ce;
}

.footer_wrap a:hover {
    color: var(--primary-color);
}

.copyright_wrap {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.copyright_wrap.scheme_dark {
    background-color: #1e272f;
}

.copyright_wrap a {
    color: var(--primary-color);
}

/* ===== Scroll to Top ===== */
.scroll_to_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll_to_top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll_to_top:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 15px; }
.mt-2 { margin-top: 30px; }
.mt-3 { margin-top: 45px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 15px; }
.mb-2 { margin-bottom: 30px; }
.mb-3 { margin-bottom: 45px; }

.hidden { display: none; }

/* ===== Columns ===== */
.columns_wrap {
    display: flex;
    flex-wrap: wrap;
}

.column-1_3 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 15px;
}

.column-1_4 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

/* ===== Empty Space ===== */
.vc_empty_space {
    height: 32px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .top_panel_wrap .top_panel_middle,
    .top_panel_wrap .top_panel_bottom {
        display: none;
    }
    
    .header_mobile {
        display: block;
    }
    
    /* Remove gap between header and hero image */
    .page_content_wrap {
        padding-top: 0;
        margin-top: 0;
    }
    
    .page_content_wrap > .content_wrap {
        padding-top: 0;
        margin-top: 0;
    }
    
    .post_content {
        padding-top: 0;
        margin-top: 0;
    }
    
    main#main-content {
        padding-top: 0;
        margin-top: 0;
    }
    
    .column-1_3,
    .column-1_4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .sc_list {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .column-1_3,
    .column-1_4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .services-row .service-box {
        min-width: 100%;
    }
    
    .sc_team_item {
        min-width: 100%;
        max-width: 100%;
    }
    
    .about-section h1 {
        font-size: 1.5em;
    }
}

/* ===== Depoimentos Slider ===== */
.depoimentos-section {
    background-color: var(--light-bg);
    padding: 20px 0;
}

.depoimentos-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.depoimentos-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    width: max-content;
    animation: scroll-depoimentos 40s linear infinite;
}

.depoimentos-track:hover {
    animation-play-state: paused;
}

.depoimento-slide {
    flex: 0 0 auto !important;
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.depoimento-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.depoimento-slide img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes scroll-depoimentos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile adjustments for depoimentos */
@media (max-width: 768px) {
    .depoimento-slide {
        width: 250px !important;
        min-width: 250px !important;
        max-width: 250px !important;
    }
    
    .depoimentos-track {
        gap: 15px;
        animation-duration: 30s;
    }
}

@media (max-width: 480px) {
    .depoimento-slide {
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
    }
    
    .depoimentos-track {
        gap: 12px;
        animation-duration: 25s;
    }
}
