/* ============================================
   MIRACLE BUSINESS SOLUTIONS - SHARED STYLES
   ============================================ */

:root {
    --primary-navy: #0A1F44;
    --secondary-navy: #1A3A6B;
    --accent-red: #ED1C24;
    --accent-cyan: #00A3E0;
    --gold: #FFD700;
    --light-bg: #F9FAFB;
    --text-dark: #374151;
    --text-muted: #6B7280;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ============================================
   TOPBAR STYLES
   ============================================ */

.topbar {
    background: var(--primary-navy);
    padding: 10px 0;
    font-size: 13px;
}

.topbar-left .welcome-text {
    color: var(--gold);
    font-weight: 600;
}

.topbar-left .welcome-text i {
    margin-right: 8px;
}

.topbar-right {
    text-align: right;
}

.topbar-right .social-icon {
    color: white;
    margin-left: 15px;
    font-size: 16px;
    transition: color 0.3s;
}

.topbar-right .social-icon:hover {
    color: var(--gold);
}

/* Language Selector */
.language-selector {
    background: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.language-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.language-button {
    background: transparent;
    border: 1px solid #ddd;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-button:hover,
.language-button.active {
    background: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

/* Contact Bar */
.topbar-logo {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    flex-wrap: wrap;
}

.box-icon-1 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.box-icon-1 .icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #FF6B6B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.box-icon-1 .heading {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.box-icon-1 a {
    color: var(--primary-navy);
    font-weight: 600;
    text-decoration: none;
}

.btn-cta {
    background: linear-gradient(135deg, var(--accent-red) 0%, #FF6B6B 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(237, 28, 36, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(237, 28, 36, 0.4);
    color: white;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

.navbar-main {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand img {
    max-width: 180px;
    height: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: var(--primary-navy);
    text-decoration: none;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-red);
    background: rgba(237, 28, 36, 0.05);
}

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

.nav-dropdown>.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown>.nav-link::after {
    content: '';
    border: solid var(--primary-navy);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-top: -3px;
}

.nav-dropdown:hover>.nav-link::after {
    transform: rotate(-135deg);
    border-color: var(--accent-red);
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 320px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-custom .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu-custom .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(237, 28, 36, 0.08) 0%, rgba(237, 28, 36, 0.02) 100%);
    color: var(--accent-red);
    border-left-color: var(--accent-red);
}

.dropdown-menu-custom .dropdown-item i {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #FF6B6B 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 8px 0;
}

/* Mobile Toggle Button */
.navbar-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: var(--primary-navy);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100000;
}

.navbar-toggler:hover,
.navbar-toggler.active {
    background: var(--accent-red);
}

.navbar-toggler span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A1F44;
    z-index: 99999;
    padding: 80px 25px 30px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--gold);
    text-decoration: none;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: white;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.mobile-dropdown-toggle.active {
    color: var(--gold);
}

.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 -25px;
    padding: 10px 25px 10px 40px;
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.mobile-dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--accent-cyan);
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item:focus {
    color: var(--gold);
    text-decoration: none;
}

.mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close-btn:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

.mobile-menu-logo {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo img {
    max-width: 150px;
    height: auto;
}

/* ============================================
   PAGE HEADER / HERO BANNER
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') center/cover;
    opacity: 0.05;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header .breadcrumb {
    background: transparent;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item a {
    color: var(--gold);
}

.page-header .breadcrumb-item.active {
    color: white;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
    content: "›";
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
    padding: 80px 0;
}

.section-light {
    background: var(--light-bg);
}

.section-dark {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: white;
}

.section-header {
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(237, 28, 36, 0.1);
    color: var(--accent-red);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    background: white;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    margin-bottom: 30px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #FF6B6B 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(237, 28, 36, 0.2);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.service-list li {
    padding: 10px 0;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li i {
    color: var(--accent-red);
    margin-top: 4px;
}

/* ============================================
   INFO BOXES
   ============================================ */

.info-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.info-box-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #00C4E0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

.info-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.info-box p {
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   PROCESS STEPS
   ============================================ */

.process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #FF6B6B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(237, 28, 36, 0.3);
}

.process-step h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--accent-red) 0%, #FF6B6B 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-white {
    background: white;
    color: var(--accent-red);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--accent-red);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, #FF6B6B 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 10px 30px rgba(237, 28, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(237, 28, 36, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-navy);
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: 2px solid var(--primary-navy);
}

.btn-outline:hover {
    background: var(--primary-navy);
    color: white;
}

/* ============================================
   CONTACT CARDS
   ============================================ */

.contact-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    text-align: center;
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #FF6B6B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin: 0 auto 20px;
}

.contact-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.contact-card a {
    color: var(--accent-red);
    font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-navy);
    color: white;
    padding: 60px 0 0;
}

.footer-item {
    margin-bottom: 30px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700 0%, #e1570c 100%);
    border-radius: 3px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-social .social-icon:hover {
    background: var(--accent-red);
    transform: translateY(-3px);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-links a:hover::after {
    width: 100%;
}

.fcopy {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 40px;
}

.fcopy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ============================================
   UTILITIES
   ============================================ */

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

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-30 {
    margin-top: 30px;
}

/* Back to Top */
.cd-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.cd-top.cd-is-visible {
    opacity: 1;
    visibility: visible;
}

.cd-top:hover {
    background: var(--primary-navy);
    color: white;
}

/* Loading */
.animationload {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #eee;
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 991px) {
    .navbar-menu {
        display: none;
    }

    .navbar-toggler {
        display: flex;
    }

    .topbar .row {
        flex-direction: column;
        text-align: center;
    }

    .topbar-right {
        margin-top: 10px;
        text-align: center;
    }

    .contact-info {
        justify-content: center;
    }

    .page-header h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .section {
        padding: 60px 0;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }

    .box-icon-1 {
        justify-content: center;
    }

    .language-buttons {
        justify-content: center;
    }

    .cta-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 26px;
    }
}