/*
    Modern EquiMed Theme
    Responsive, contemporary design while maintaining compatibility
    Author: EquiMed Development Team
*/

/* CSS Custom Properties for consistency */
:root {
    --primary-color: #3399ff;
    --primary-hover: #2980e6;
    --secondary-color: #1AB2FD;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #fff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Typography */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    padding-top: 95px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Enhanced Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Modern Navigation Bar - 2025 Contemporary Design */
.navbar-fixed-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 50%, var(--secondary-color) 100%) !important;
    border: none !important;
    top: 0 !important;
    z-index: 1030 !important;
    width: 100% !important;
    position: fixed !important;
    display: block !important;
    visibility: visible !important;
    box-shadow: 0 4px 20px rgba(51, 153, 255, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 55px;
}

.navbar-fixed-top::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.navbar-fixed-top .container {
    display: block !important;
    visibility: visible !important;
    padding: 6px 15px;
}

.navbar-collapse {
    display: block !important;
    visibility: visible !important;
}

.navbar-nav {
    display: block !important;
    visibility: visible !important;
}

.navbar-fixed-top.scrolled {
    box-shadow: 0 6px 25px rgba(51, 153, 255, 0.25);
    background: linear-gradient(135deg, rgba(51, 153, 255, 0.95) 0%, rgba(79, 70, 229, 0.95) 50%, rgba(26, 178, 253, 0.95) 100%) !important;
}

.header-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    padding: 25px 0;
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.header-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-nav .logo {
    position: relative;
}

.header-nav .logo img {
    max-width: 220px;
    height: auto;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.header-nav .logo img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.header-font {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.header-font::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(51, 153, 255, 0.1), rgba(26, 178, 253, 0.1));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-10px, -10px) rotate(180deg); }
}

.header-font p {
    margin: 0.3rem 0;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.header-font p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-font p:nth-child(2) {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.header-font p:nth-child(3) {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.contact-font {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.contact-font:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.contact-font:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

/* Modern Navigation Menu - Ensure text visibility */
.navbar-default .navbar-nav > li {
    display: inline-block !important;
    visibility: visible !important;
}

.navbar-default .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 12px 18px !important;
    font-size: 13px !important;
    position: relative;
    border-radius: 8px;
    margin: 0 2px;
}

.navbar-default .navbar-nav > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-default .navbar-nav > li > a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-default .navbar-nav > li > a:hover::before {
    width: 60%;
}

.navbar-default .navbar-nav > li.active > a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-default .navbar-nav > li.active > a::before {
    width: 60%;
}

.navbar-default .navbar-nav > li > a:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Force navigation visibility - Override any hiding styles */
.navbar,
.navbar-default,
.navbar-nav,
.nav,
.menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar-nav > li {
    display: inline-block !important;
    float: left !important;
    visibility: visible !important;
}

.navbar-right {
    float: right !important;
    display: block !important;
    visibility: visible !important;
}

/* Fix Bootstrap collapsed navigation */
.navbar-collapse.collapse {
    display: block !important;
    height: auto !important;
    padding-bottom: 0;
    overflow: visible !important;
    visibility: visible !important;
}

.navbar-collapse {
    border-top: 0;
    box-shadow: none;
}

/* Ensure navbar shows on all screen sizes */
@media (min-width: 768px) {
    .navbar-nav {
        display: block !important;
        float: left !important;
        margin: 0 !important;
    }
    
    .navbar-nav > li {
        float: left !important;
        display: inline-block !important;
    }
    
    .navbar-right {
        float: right !important;
    }
    
    .navbar-collapse.collapse {
        display: block !important;
        width: auto;
    }
    
    .navbar-header .navbar-toggle {
        display: none;
    }
}

/* For mobile */
@media (max-width: 767px) {
    .navbar-collapse.collapse {
        display: none !important;
    }
    
    .navbar-collapse.collapse.in {
        display: block !important;
    }
}

/* Modern Dropdown Menu - 2025 Design */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 8px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-menu > li > a {
    color: var(--text-color) !important;
    padding: 12px 16px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent !important;
    border-radius: 8px;
    margin: 2px 0;
    font-weight: 500;
}

.dropdown-menu > li > a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: var(--white) !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(51, 153, 255, 0.3);
}

/* Fix dropdown submenu visibility */
.dropdown-submenu > .dropdown-menu {
    background: var(--white) !important;
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: var(--text-color) !important;
    background-color: transparent !important;
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
    color: var(--white) !important;
    background-color: var(--primary-color) !important;
}

/* Container Improvements */
.container {
    max-width: 1200px;
}

#container-all {
    padding-top: 0px;
}

/* Modern Hero/Slider Section - Fix size and centering */
.slider {
    margin-top: 6px !important;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 400px;
    overflow: hidden;
}

.slider .img-responsive {
    text-align: center;
}

.bxslider {
    max-height: 400px;
}

.bxslider li {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    overflow: hidden;
}

.bxslider li .text-center {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bxslider li img {
    max-width: 90%;
    max-height: 380px;
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
}

/* Content Sections */
.titulos {
    padding: 1rem 0 2rem;
}

.titulos h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.titulos h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
    border-radius: 2px;
}

.portfolios {
    max-width: 800px;
    margin: 1rem auto 0;
    text-align: justify;
    padding-top: 0.5rem;
}

.portfolios p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Modern HR */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 3rem 0;
}

/* Enhanced Buttons */
.btn {
    border-radius: var(--border-radius);
    padding: 12px 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-default {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-default:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Modern Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
}

.inner-footer {
    padding: 4rem 0 2rem;
}

.inner-footer h1,
.inner-footer h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.inner-footer p,
.f-about p {
    color: var(--white) !important;
}

.inner-footer .widgetheading {
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.inner-footer ul {
    list-style: none;
    padding: 0;
}

.inner-footer ul li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.inner-footer ul li a {
    color: #bdc3c7;
    transition: var(--transition);
}

.inner-footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.f-contact p {
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.f-contact .fa {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
}

.last-div {
    background: #2c3e50;
    padding: 2rem 0;
    border-top: 1px solid #34495e;
}

.social-network {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.social-network li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-network li a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* WhatsApp SVG icon styling */
.whatsapp-social {
    background: #25D366 !important;
}

.whatsapp-social:hover {
    background: #128C7E !important;
}

.whatsapp-svg {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* Makes SVG white */
    display: inline-block;
}

/* For floating button WhatsApp SVG */
.whatsapp-float .whatsapp-svg {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1); /* Makes SVG white */
}

/* WhatsApp Button Enhancement */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    text-decoration: none;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 85px;
    }
    
    .header-nav {
        padding: 20px 0;
    }
    
    .header-nav .row {
        align-items: center;
        gap: 15px;
    }
    
    .header-nav .logo img {
        max-width: 180px;
    }
    
    .header-font {
        text-align: center;
        margin-top: 20px;
        padding: 16px;
        border-radius: 12px;
    }
    
    .header-font p {
        font-size: 0.95rem;
    }
    
    .header-font p:first-child {
        font-size: 1rem;
    }
    
    .header-font .none {
        display: none;
    }
    
    .titulos {
        padding: 1rem 0;
    }
    
    .titulos h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .portfolios p {
        font-size: 1rem;
        text-align: left;
    }
    
    .navbar-collapse {
        background: var(--primary-color);
        margin-top: 1px;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .social-network {
        gap: 10px;
    }
    
    .social-network li a {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 75px;
    }
    
    .header-nav .logo img {
        max-width: 160px;
        padding: 6px;
    }
    
    .header-font {
        padding: 14px;
        border-radius: 10px;
        margin-top: 15px;
    }
    
    .header-font p {
        font-size: 0.85rem;
    }
    
    .header-font p:first-child {
        font-size: 0.9rem;
    }
    
    .header-font p:nth-child(2) {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    
    .titulos h2 {
        font-size: 1.6rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Utility: remove underlines/strikethroughs forced by extensions or UA */
.no-underline, .no-underline * {
    text-decoration: none !important;
    -webkit-text-decoration: none !important;
    text-decoration-color: transparent !important;
    border-bottom: 0 !important;
}

/* Page-wide modern enhancements */
html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(51, 153, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Modern page sections */
section, .section {
    position: relative;
}

/* Add subtle animations to content */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced focus states for accessibility */
*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.btn:focus,
.navbar-nav > li > a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
}