/* CSS Base styling for Endogastro website */

:root {
    --primary-color: #CC1F1F; /* Adapting for the red shown in reference (logo/buttons), guess: a dark red */
    --secondary-color: #f8f9fa;
    --text-dark: #333333;
    --text-light: #ffffff;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.custom-text-primary { color: var(--primary-color); }
.custom-bg-primary { background-color: var(--primary-color); }
.custom-text-dark { color: var(--text-dark); }

/* Utilities */
.min-vh-50 { min-height: 50vh; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hover-primary:hover { color: var(--primary-color) !important; text-decoration: underline !important; }

.custom-carousel {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Components Styling */

/* Topbar */
.topbar {
    font-size: 0.8rem;
    background-color: #f8f8f8;
    color: #666;
    border-bottom: 1px solid #ddd;
}
.topbar a {
    color: #666;
    text-decoration: none;
}
.topbar a:hover {
    color: var(--primary-color);
}

/* Navbar */
.navbar-custom {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding-top: 15px;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}
.navbar-custom .nav-link {
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: var(--primary-color);
}
.navbar-brand img {
    max-height: 80px;
    transition: all 0.3s ease;
}

/* Banner */
.banner-section {
    margin-top: 0; /* will adjust if sticky navbar is fixed */
}
.banner-img {
    width: 100%;
    height: auto; /* Deixa a altura se ajustar naturalmente à imagem para ser maior */
    object-fit: cover;
    max-height: 700px; /* Limite máximo opcional, mas garante que seja bem maior que antes */
    display: block;
}

/* Features Block */
.feature-box h5 {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Doctor Card */
.doctor-card {
    transition: transform 0.3s ease;
    border: none;
}
.doctor-card:hover {
    transform: translateY(-5px);
}
.doctor-card img {
    height: 300px;
    object-fit: cover;
    object-position: top;
}
.doctor-info {
    padding: 15px 0;
}
.doctor-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.doctor-crm {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}
.doctor-specialty {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Institutional */
.custom-bullet-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}
.custom-bullet-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 10px;
    color: #4da6ff; /* light blue arrow */
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
}
.footer h6 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    display: inline-block;
}
.footer p, .footer ul, .footer a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer .social-icon:hover {
    background-color: #f1f1f1;
    transform: scale(1.1);
}
.footer-logo {
    max-width: 150px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .feature-box {
        flex-direction: column;
        text-align: center !important;
        align-items: center;
    }
    .feature-box .feature-icon {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }
    .border-start, .border-end {
        border: none !important;
    }
}

/* Section Titles */
.section-title-wrapper {
    border-bottom: 1px solid #c9c9c9;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.section-title-wrapper h4 {
    margin-bottom: -1px;
    border-bottom: 4px solid var(--text-dark);
    padding-bottom: 0.5rem;
    font-size: 1.4rem;
}
.section-title-wrapper .title-action {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
