/* style.css - Overrides and custom components */

/* Aurora: azul profundo, turquesa, dourado suave e areia clara. */
:root {
    --aurora-gold: #e4b467;
    --aurora-turquoise: #2fa8b4;
    --aurora-sand: #f5f1e9;
    --bs-primary: #087f8c;
    --bs-primary-rgb: 8, 127, 140;
}

.header .logo img {
    max-width: min(260px, 62vw);
    object-fit: contain;
}

.footer-16 .brand-section .logo img.footer-logo-img {
    max-width: 100%;
}

.hero .trust-badges .badge-item i.bi-star-fill {
    color: #9a681d;
}

.hero .hero-content h1 .highlight::after {
    background: var(--aurora-gold);
}

#footer .cta-icon-wrapper,
#footer .contact-info .contact-item i {
    color: var(--aurora-gold) !important;
}

:focus-visible {
    outline: 3px solid var(--aurora-gold);
    outline-offset: 4px;
}

/* Floating WhatsApp Button (Positioned bottom-left to avoid conflict with the scroll-to-top button on the right) */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    right: auto;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Adjust Hero Heading to prevent Portuguese word overflow (e.g. "Neurodesenvolvimento") */
.hero .hero-content h1 {
    font-size: 2.8rem; /* Adjusted from 3.5rem to fit long Portuguese terms */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 1200px) {
    .hero .hero-content h1 {
        font-size: 2.4rem;
    }
}
@media (max-width: 992px) {
    .hero .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* --- HEADER LOGO STYLING (IMAGE ONLY - 100% ORIGINAL STYLE) --- */
.header .logo img {
    max-height: 64px;
    height: auto;
    width: auto;
    transition: all 0.3s ease;
}

/* Scroll adaptation: slightly smaller logo to save vertical screen space */
.scrolled .header .logo img {
    max-height: 56px;
}

/* Tablet & Mobile adaptation to prevent overlap and hamburger menu collision */
@media (max-width: 991px) {
    .header .logo img {
        max-height: 54px;
    }
    .scrolled .header .logo img {
        max-height: 48px;
    }
}

@media (max-width: 575px) {
    .header .logo img {
        max-height: 48px;
    }
    .scrolled .header .logo img {
        max-height: 44px;
    }
}

/* --- FOOTER LOGO STYLING --- */
.footer-16 .brand-section .logo {
    display: inline-block;
    margin-bottom: 25px !important;
}

.footer-16 .brand-section .logo img.footer-logo-img {
    max-height: 88px !important;
    width: auto;
    height: auto;
    display: block;
}

/* --- LAYOUT OVERLAP & RESPONSIVE FIXES --- */
/* Prevent hero content from overlapping behind the fixed header */
.hero {
    padding-top: 100px !important;
    min-height: auto !important; /* Allow auto height on small viewports */
    height: auto !important;
}

@media (min-width: 992px) {
    .hero {
        padding-top: 140px !important;
        min-height: 100vh !important;
    }
}

/* Hero Pillars Grid Layout */
.hero-pillars .pillar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--heading-color);
}

.hero-pillars .pillar-item i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

/* Recruitment Card in Doctors/Specialists Grid */
.recruitment-card .recruitment-avatar {
    width: 80px;
    height: 80px;
    background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
    color: var(--accent-color);
    border-radius: 50%;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.recruitment-card .recruitment-text {
    font-size: 0.925rem;
    line-height: 1.6;
}

/* Teaser Testimonials Card */
.teaser-testimonials-card {
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    background: #ffffff;
    transition: all 0.3s ease;
}

.teaser-testimonials-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Aurora page title: sand and turquoise gradient. */
.page-title {
    background-image: linear-gradient(120deg, #f5f1e9 0%, #ffffff 50%, #e1f3f3 100%) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
}

.page-title .heading-title {
    color: #073653 !important;
    font-weight: 700 !important;
    font-size: 2.3rem !important;
    margin-bottom: 12px !important;
}

.page-title .heading p {
    color: #3f5360 !important; /* Dark slate, highly legible */
    font-weight: 500 !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
}

@media (max-width: 991px) {
    .page-title {
        background-image: none !important;
        background-color: #f5f1e9 !important;
    }
}

/* Force solid white header and solid topbar background on all subpages for legibility */
.sub-page .header {
    background-color: #ffffff !important;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.06) !important;
}

.sub-page .header .topbar {
    background-color: #073653 !important;
}

/* Aurora footer: deep blue with turquoise light. */
#footer {
    background-image: radial-gradient(ellipse at top right, #0d6978 0%, transparent 55%), linear-gradient(135deg, #073653, #04283e) !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-color: #073653 !important;
    padding: 80px 0 30px 0 !important;
    color: #ffffff !important;
    border-top: none !important;
}

/* Footer CTA Card styling */
.footer-cta-card {
    background: rgba(7, 54, 83, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 25px 40px !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.cta-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(47, 168, 180, 0.1) !important;
    border: 1px solid rgba(47, 168, 180, 0.2) !important;
    color: var(--accent-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 26px !important;
}

.btn-teal-cta {
    background: #087f8c !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 30px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 4px 15px rgba(47, 168, 180, 0.3) !important;
}

.btn-teal-cta:hover {
    background: #066572 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(47, 168, 180, 0.5) !important;
}

.text-muted-light {
    color: #d4e6e8 !important;
    font-size: 0.95rem !important;
}

/* Footer Navigation and Links dot bullets */
.footer-16 .nav-column .footer-nav a {
    position: relative !important;
    padding-left: 18px !important;
    color: #d4e6e8 !important;
    display: block !important;
    margin-bottom: 12px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-size: 14.5px !important;
}

.footer-16 .nav-column .footer-nav a::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 5px !important;
    height: 5px !important;
    background-color: var(--accent-color) !important;
    border-radius: 50% !important;
}

.footer-16 .nav-column .footer-nav a:hover {
    color: #ffffff !important;
}

/* Social links round icons in column 1 */
.footer-social-links .social-link {
    width: 42px !important;
    height: 42px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #d4e6e8 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
}

.footer-social-links .social-link:hover {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(47, 168, 180, 0.4) !important;
}

/* Footer brand description and contact styling */
.footer-16 .brand-description {
    color: #d4e6e8 !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
}

.footer-16 .contact-info .contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
    color: #d4e6e8 !important;
    font-size: 14.5px !important;
}

.footer-16 .contact-info .contact-item i {
    color: var(--accent-color) !important;
    font-size: 18px !important;
}

.footer-16 .nav-column h6 {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 25px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}


/* Optimize mobile navigation menu to fit content instead of stretching to the bottom */
@media (max-width: 1199px) {
    .navmenu ul {
        bottom: auto !important;
        box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.15) !important;
    }
}

/* --- FOOTER BOTTOM & COPYRIGHT WHITE STYLING --- */
#footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 30px 0 !important;
    margin-top: 40px !important;
}

#footer .copyright p,
#footer .copyright p span.sitename {
    color: #ffffff !important;
    font-size: 14.5px !important;
}

#footer .legal-links {
    color: rgba(255, 255, 255, 0.4) !important;
}

#footer .legal-links a {
    color: #ffffff !important;
    font-size: 14.5px !important;
    text-decoration: none !important;
    margin-right: 15px !important;
    transition: color 0.3s ease !important;
}

#footer .legal-links a:last-child {
    margin-right: 0 !important;
}

#footer .legal-links a:hover {
    color: #087f8c !important;
}









