/* Modern Styles for OmniMed Solutions */
/* 2024 Design Trends: Glassmorphism, Smooth Animations, Modern Layout */

/* CSS Variables for Modern Design */
:root {
    --primary-green: #004B4C;      /* Deep Teal - Primary brand color */
    --secondary-green: #006B6D;    /* Teal - Buttons/accents */
    --light-teal: #E6F3F3;         /* Light Teal - Backgrounds */
    --accent-gold: #D4AF37;        /* Keep gold for highlights */
    --white: #ffffff;              /* White - Background/contrast */
    --black: #000000;              /* Black - Main logo/text */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Teal-based backgrounds and surfaces */
    --surface-light: #F8FEFE;       /* Very light teal for cards/sections */
    --surface-medium: #E6F3F3;      /* Light teal for backgrounds */
    --surface-dark: #CCE8E9;        /* Slightly darker teal for hover states */
    --text-on-teal: #ffffff;        /* White text on teal backgrounds */
    
    /* Glassmorphism with teal tint */
    --glass-bg: rgba(230, 243, 243, 0.1);
    --glass-border: rgba(0, 107, 109, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 75, 76, 0.15);
    
    /* Spacing */
    --container-max-width: 1400px;
    --section-padding: 120px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Prevent horizontal scroll on all pages */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Image containment utilities */
.image-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Responsive image fixes */
.img-fluid {
    max-width: 100% !important;
    height: auto !important;
}

/* Card image fixes */
.card-img-top {
    width: 100% !important;
    object-fit: cover !important;
}

/* Manufacturer section improvements */
.manufacturers-section-inner {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.manufacturer-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.logo-circle {
    flex-shrink: 0;
    overflow: hidden;
}

.logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Container improvements */
.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Mobile responsive fixes */
@media (max-width: 575.98px) {
    .image-container {
        padding: 10px;
    }
    
    .manufacturers-section {
        padding: 15px !important;
        margin: 10px !important;
    }
    
    .manufacturer-card {
        margin-bottom: 15px;
    }
    
    .logo-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    .card-img-top {
        height: 200px !important;
    }
}

/* Modern Navigation Styles */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.75rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.modern-navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Styles */
.nav-brand {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: 1.5rem;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.brand-link:hover {
    color: var(--primary-green);
}

.brand-logo {
    height: 65px;
    width: auto;
    transition: var(--transition-smooth);
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
    transition: var(--transition-smooth);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-green);
    background: var(--surface-medium);
}

.nav-link.active {
    color: var(--primary-green);
}

.nav-icon {
    font-size: 1rem;
    opacity: 0.8;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: var(--transition-smooth);
}

.nav-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.dropdown-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-green);
    padding-bottom: 0.5rem;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--gray-600);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
}

.dropdown-link:hover {
    color: var(--primary-green);
    background: var(--surface-medium);
    transform: translateX(5px);
}

.dropdown-link i {
    font-size: 1.2rem;
    color: var(--accent-gold);
}

/* CTA Button */
.nav-cta {
    margin-left: 1rem;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition-smooth);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.toggle-line {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Modern Footer Styles */
.modern-footer {
    background: #ffffff;
    color: var(--black);
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--primary-green);
}

/* Make all footer text black */
.modern-footer,
.modern-footer p,
.modern-footer span,
.modern-footer a,
.modern-footer li {
    color: var(--black) !important;
}

/* Keep links functional with hover states but start black */
.modern-footer a {
    color: var(--black) !important;
}

.modern-footer a:hover {
    color: var(--primary-green) !important;
}

/* Exception for footer bottom section - keep white text on dark background */
.modern-footer .footer-bottom,
.modern-footer .footer-bottom p,
.modern-footer .footer-bottom span,
.modern-footer .footer-bottom a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.modern-footer .footer-bottom a:hover {
    color: var(--accent-gold) !important;
}

/* Ensure all footer headings are teal/dark */
.modern-footer h1,
.modern-footer h2, 
.modern-footer h3,
.modern-footer h4,
.modern-footer h5,
.modern-footer h6 {
    color: var(--primary-green) !important;
}

/* Extra specific rule for company name */
.modern-footer .company-section .company-logo h3,
.modern-footer .footer-section h3,
.modern-footer .footer-section h4 {
    color: var(--primary-green) !important;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    color: var(--light-teal);
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-content {
    padding: 6rem 0 3rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--surface-light) 0%, #ffffff 100%);
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

/* Company Section */
.company-section .company-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.company-logo img {
    height: 130px;
    width: auto;
}

.company-logo h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green) !important;
    margin: 0;
}

/* Ensure footer company name is always teal */
.modern-footer .company-logo h3,
.modern-footer .company-section h3 {
    color: var(--primary-green) !important;
}

.company-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
    margin-bottom: 2rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: none; /* Remove hover transition */
}

/* Individual social media colors */
.social-link.facebook {
    background: #1877F2;
}

.social-link.linkedin {
    background: #0A66C2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #E4405F, #833AB4, #F56040);
}

.social-link.youtube {
    background: #FF0000;
}

/* Remove hover effects by commenting out or removing the hover rule */
/*
.social-link:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 75, 76, 0.3);
}
*/

/* Footer Sections */
.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-green);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--black);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--secondary-green);
}

/* Contact Section */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface-medium);
    border: 2px solid var(--secondary-green);
    border-radius: 50%;
    color: var(--primary-green);
    flex-shrink: 0;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-content span {
    color: var(--black);
    font-size: 0.95rem;
}

/* Footer Bottom */
.footer-bottom {
    background: var(--primary-green);
    border-top: 1px solid var(--secondary-green);
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-credits {
    text-align: center;
}

.footer-credits p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.developer-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.developer-link:hover {
    color: var(--accent-gold);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.legal-link:hover {
    color: white;
}

.divider {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1400px) {
    :root {
        --container-max-width: 1200px;
        --section-padding: 100px;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 1200px) {
    :root {
        --container-max-width: 1000px;
        --section-padding: 80px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .dropdown-content {
        min-width: 500px;
    }
    
    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brand-text {
        font-size: 1.5rem;
    }
    
    .brand-logo {
        height: 60px;
    }
}

@media (max-width: 968px) {
    :root {
        --container-max-width: 100%;
        --section-padding: 60px;
        --border-radius: 12px;
        --border-radius-lg: 18px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 90px;
        align-items: stretch;
        gap: 0;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0.5rem 1.5rem;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1.1rem 1rem;
        width: 100%;
        justify-content: flex-start;
        gap: 0.75rem;
    }
    
    .nav-link .nav-icon {
        width: 24px;
        text-align: center;
        font-size: 1.15rem;
        color: var(--primary-green);
        opacity: 1;
    }
    
    .nav-link span {
        flex: 1;
        font-weight: 500;
    }
    
    .dropdown-arrow {
        margin-left: auto;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .dropdown-content {
        position: static;
        transform: none;
        background: var(--surface-light);
        border: none;
        box-shadow: none;
        padding: 0.25rem 0 0.25rem 2.5rem;
        min-width: auto;
        width: 100%;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
        border-radius: 0;
        border-left: 3px solid var(--accent-gold);
        margin-left: 1rem;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .nav-dropdown .dropdown-content {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-smooth);
    }
    
    .nav-dropdown.active .dropdown-content {
        display: block;
        max-height: 1000px;
        transform: none;
    }
    
    .dropdown-section {
        margin-bottom: 0.75rem;
    }
    
    .dropdown-section h4 {
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--gray-500);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-top: 0.5rem;
        margin-bottom: 0.25rem;
        padding-bottom: 0;
        padding-left: 0;
        border-bottom: none;
    }
    
    .dropdown-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.95rem;
        margin-bottom: 0;
        border-left: none;
        border-radius: 8px;
    }
    
    .dropdown-link i {
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }
    
    .dropdown-link:hover,
    .dropdown-link:active {
        border-left: none;
        background: var(--surface-medium);
    }
    
    .nav-cta {
        width: 100%;
        padding: 1rem 2rem;
        margin: 0;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    /* Prevent body scroll when nav is open */
    body.nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
        padding: 0 1rem;
    }
    
    .footer-content {
        padding: 4rem 0 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: flex-start;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .contact-item {
        justify-content: flex-start;
        text-align: left;
    }
    
    .footer-title::after {
        left: 0;
        transform: none;
    }
    
    .brand-logo {
        height: 55px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    .nav-icon {
        font-size: 1.1rem;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn i {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 40px;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-list {
        padding: 0.5rem 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.875rem 0.75rem;
    }
    
    .nav-cta {
        padding: 1rem;
    }
    
    .brand-logo {
        height: 35px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .footer-container {
        gap: 2rem;
    }
    
    .company-logo h3 {
        font-size: 1rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn i {
        font-size: 1.6rem;
    }
}

@media (max-width: 375px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .brand-logo {
        height: 32px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .nav-toggle {
        padding: 0.25rem;
    }
    
    .toggle-line {
        width: 22px;
    }
}

/* Enhanced WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    animation: pulse-float 3s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes pulse-float {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-green), var(--secondary-green));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary-green), var(--primary-green));
}

