/* ============================================
   ERD - Custom Styles
   Color Palette:
   - Primary Dark: #323b8c (indigo)
   - Primary: #0099DB (blue)
   - Light: #91CEF4 (light blue)
   - Light BG: #E8F6FC
============================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --erd-primary: #0099DB;
    --erd-primary-dark: #323b8c;
    --erd-primary-light: #91CEF4;
    --erd-secondary: #91CEF4;
    --erd-text-dark: #323b8c;
    --erd-bg-light: #E8F6FC;
    --erd-footer: #323b8c;
    --erd-footer-dark: #252b6b;
}

/* ===== UTILITY CLASSES - BACKGROUNDS ===== */
.bg-erd-primary { background-color: #0099DB !important; }
.bg-erd-primary-dark { background-color: #323b8c !important; }
.bg-erd-primary-light { background-color: #91CEF4 !important; }
.bg-erd-secondary { background-color: #91CEF4 !important; }
.bg-erd-footer { background-color: #323b8c !important; }
.bg-erd-footer-dark { background-color: #252b6b !important; }
.bg-erd-light { background-color: #E8F6FC !important; }

/* ===== UTILITY CLASSES - TEXT ===== */
.text-erd-primary { color: #0099DB !important; }
.text-erd-primary-dark { color: #323b8c !important; }
.text-erd-primary-light { color: #91CEF4 !important; }
.text-erd-secondary { color: #91CEF4 !important; }
.text-erd-dark { color: #323b8c !important; }

/* ===== OVERRIDE TEMPLATE COLORS ===== */
.text-deep-pink { color: #0099DB !important; }
.text-extra-dark-gray { color: #323b8c !important; }
.bg-deep-pink { background-color: #0099DB !important; }

/* ===== BUTTONS ===== */
.btn-deep-pink {
    background-color: #0099DB !important;
    border-color: #0099DB !important;
    color: #fff !important;
}
.btn-deep-pink:hover,
.btn-deep-pink:focus {
    background-color: #323b8c !important;
    border-color: #323b8c !important;
    color: #fff !important;
}

.btn-erd-primary {
    background-color: #0099DB !important;
    border: 2px solid #0099DB !important;
    color: #fff !important;
    transition: all 0.3s ease;
}
.btn-erd-primary:hover,
.btn-erd-primary:focus {
    background-color: #323b8c !important;
    border-color: #323b8c !important;
    color: #fff !important;
}

.btn-erd-secondary {
    background-color: transparent !important;
    border: 2px solid #0099DB !important;
    color: #0099DB !important;
    transition: all 0.3s ease;
}
.btn-erd-secondary:hover,
.btn-erd-secondary:focus {
    background-color: #0099DB !important;
    border-color: #0099DB !important;
    color: #fff !important;
}

.btn-transparent-white {
    background-color: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
}
.btn-transparent-white:hover,
.btn-transparent-white:focus {
    background-color: #fff !important;
    color: #323b8c !important;
}

/* ===== NAVIGATION ===== */
/* Top bar */
.top-bar-erd {
    background-color: #323b8c !important;
}

/* Sticky navigation */
nav.navbar.sticky-nav {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    animation: slideDown 0.35s ease-out;
    box-shadow: 0 2px 20px rgba(50, 59, 140, 0.15);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Nav links */
nav.navbar .navbar-nav > li > a:hover,
nav.navbar .navbar-nav > li.active > a {
    color: #0099DB !important;
}

/* Dropdown */
nav.navbar ul.dropdown-menu li a:hover {
    color: #0099DB !important;
}

/* Mobile toggler */
.navbar-toggler .icon-bar {
    background-color: #0099DB;
}

/* ===== FOOTER ===== */
.footer-erd {
    background-color: #323b8c !important;
}
.footer-erd .footer-bottom {
    background-color: #252b6b !important;
}
.footer-erd a.text-erd-secondary {
    color: #91CEF4 !important;
    transition: color 0.3s ease;
}
.footer-erd a.text-erd-secondary:hover {
    color: #fff !important;
}
.footer-erd h6 {
    color: #fff !important;
}
.footer-erd .text-erd-primary-light {
    color: #91CEF4 !important;
}

/* Scroll to top */
.scroll-top-arrow {
    background-color: #0099DB;
}
.scroll-top-arrow:hover {
    background-color: #323b8c;
}

/* ===== FORMS ===== */
.form-control:focus {
    border-color: #0099DB !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 153, 219, 0.25) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #0099DB !important;
    outline: none;
}

/* ===== ICON BOXES & FEATURES ===== */
.icon-box .icon,
.feature-box .icon {
    color: #0099DB;
}
.icon-box:hover .icon,
.feature-box:hover .icon {
    color: #323b8c;
}

/* ===== PROGRESS BARS ===== */
.progress-bar {
    background-color: #0099DB !important;
}

/* ===== TESTIMONIALS ===== */
.testimonial-quote {
    color: #91CEF4;
}

/* ===== ACCORDIONS & TABS ===== */
.accordion .card-header.active,
.accordion .card-header:hover {
    background-color: #0099DB !important;
}

.nav-tabs .nav-link.active {
    border-color: #0099DB !important;
    color: #0099DB !important;
}

/* ===== SWIPER / CAROUSEL ===== */
.swiper-pagination-bullet-active {
    background-color: #0099DB !important;
}

/* ===== SELECTION ===== */
::selection {
    background-color: #0099DB;
    color: #fff;
}
::-moz-selection {
    background-color: #0099DB;
    color: #fff;
}

/* ===== GRADIENTS ===== */
.bg-gradient-erd {
    background: linear-gradient(135deg, #0099DB 0%, #323b8c 100%) !important;
}
.bg-gradient-erd-light {
    background: linear-gradient(135deg, #91CEF4 0%, #0099DB 100%) !important;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: all 0.3s ease;
}
.service-card:hover {
    border-color: #0099DB !important;
    box-shadow: 0 10px 40px rgba(0, 153, 219, 0.15) !important;
}

/* ===== TRUST BADGES ===== */
.trust-badge {
    background-color: rgba(0, 153, 219, 0.1);
    border-left: 4px solid #0099DB;
}

/* ===== QUOTE MARKS ===== */
.quote-mark {
    color: #91CEF4;
}

/* ===== TEAM MEMBER CARDS ===== */
.team-member .overlay {
    background-color: rgba(0, 153, 219, 0.9);
}

/* ===== PAGE HEADERS ===== */
.page-header-overlay {
    background: linear-gradient(135deg, rgba(50, 59, 140, 0.9) 0%, rgba(0, 153, 219, 0.85) 100%);
}

/* Hero overlay */
.hero-overlay {
    background: linear-gradient(135deg, rgba(50, 59, 140, 0.88) 0%, rgba(0, 153, 219, 0.85) 100%);
}

/* ===== CTA SECTIONS ===== */
.cta-section {
    background-color: #0099DB;
}

/* ===== CONTACT ICONS ===== */
.contact-icon {
    background-color: rgba(0, 153, 219, 0.1);
    color: #0099DB;
}

/* ===== ALERTS ===== */
.alert-erd {
    background-color: #E8F6FC;
    border: 1px solid #91CEF4;
    color: #323b8c;
}

/* ===== BADGES ===== */
.badge-erd {
    background-color: #0099DB;
    color: #fff;
}

/* ===== PLACEHOLDER IMAGES ===== */
.placeholder-img {
    background-color: #E8F6FC;
}

/* ===== SPECIFIC OVERRIDES FOR INLINE STYLES ===== */

/* Light background sections */
[style*="background-color: #E0F7FA"],
[style*="background:#E0F7FA"] {
    background-color: #E8F6FC !important;
}

/* Primary color elements */
[style*="background-color: #0097A7"],
[style*="background:#0097A7"],
[style*="color: #0097A7"],
[style*="color:#0097A7"] {
    background-color: #0099DB !important;
    color: #0099DB !important;
}

/* Dark teal to dark blue */
[style*="background-color: #006064"],
[style*="background:#006064"],
[style*="color: #006064"],
[style*="color:#006064"] {
    background-color: #323b8c !important;
    color: #323b8c !important;
}

/* Light accents */
[style*="color: #4DD0E1"],
[style*="color:#4DD0E1"],
[style*="background-color: #4DD0E1"],
[style*="background:#4DD0E1"] {
    color: #91CEF4 !important;
}

/* Footer dark */
[style*="background-color: #004D40"],
[style*="background:#004D40"] {
    background-color: #252b6b !important;
}

/* Border colors */
[style*="border-color: #B2EBF2"],
[style*="border: 1px solid #E0F7FA"],
[style*="border: 2px solid #E0F7FA"] {
    border-color: #c4e5f7 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    nav.navbar.sticky-nav {
        position: relative !important;
    }
}

/* ===== SMOOTH TRANSITIONS ===== */
a, button, .btn, input, textarea, select {
    transition: all 0.3s ease;
}

/* ===== LINK STYLES ===== */
a {
    color: #0099DB;
}
a:hover {
    color: #323b8c;
}

/* ===== SPECIFIC PAGE OVERRIDES ===== */

/* Services page inner links */
.inner-link[style*="background: #fff"] {
    background-color: #fff !important;
    color: #323b8c !important;
    border: 1px solid #c4e5f7 !important;
}
.inner-link[style*="background: #fff"]:hover {
    background-color: #0099DB !important;
    color: #fff !important;
    border-color: #0099DB !important;
}

/* Team cards badge */
[style*="background: linear-gradient(135deg, rgba(0, 151, 167"] {
    background: linear-gradient(135deg, rgba(0, 153, 219, 0.95) 0%, rgba(50, 59, 140, 0.95) 100%) !important;
}

/* CTA buttons with light background */
[style*="background-color: #4DD0E1; color: #006064"],
[style*="background:#4DD0E1;color:#006064"] {
    background-color: #91CEF4 !important;
    color: #323b8c !important;
}
