/* =========================================================
   MyWealthCare — Premium Theme
   common.css  |  v3.0
   Base reset · tokens · header · footer · shared utilities
========================================================= */

/* ── 1. Theme Variables ── */
:root {
    --mw-blue:        #071b55;
    --mw-blue-mid:    #0a2a6e;
    --mw-blue-vivid:  #2563eb;
    --mw-blue-soft:   #eff6ff;
    --mw-gold:        #fbbf24;
    --mw-gold-dark:   #f59e0b;
    --mw-orange:      #f97316;
    --mw-green:       #16a34a;
    --mw-ink:         #0a1628;
    --mw-heading:     #071b46;
    --mw-muted:       #64748b;
    --mw-subtle:      #94a3b8;
    --mw-bg:          #f0f4f8;
    --mw-white:       #ffffff;
    --mw-card:        #f8fafc;
    --mw-border:      #e2e8f0;
    --mw-border-soft: #f1f5f9;
    --mw-shadow-sm:   0 2px 8px rgba(10,30,80,.05), 0 6px 20px rgba(10,30,80,.06);
    --mw-shadow-md:   0 4px 12px rgba(10,30,80,.07), 0 16px 40px rgba(10,30,80,.1);
    --mw-shadow-lg:   0 8px 24px rgba(10,30,80,.1),  0 32px 64px rgba(10,30,80,.15);
    --mw-radius:      22px;
    --mw-radius-sm:   12px;
    --mw-radius-lg:   28px;
}

/* ── 2. Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--mw-ink);
    background: var(--mw-bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ── 3. Container ── */
.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* ── 4. Shared Buttons ── */
.btn, .mw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
}
.btn-primary, .mw-btn-primary {
    background: linear-gradient(135deg, var(--mw-gold), var(--mw-orange));
    color: #07142e;
    box-shadow: 0 10px 24px rgba(251,191,36,.3);
}
.btn-primary:hover, .mw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(251,191,36,.4);
}
.btn-secondary, .mw-btn-secondary {
    background: var(--mw-white);
    color: var(--mw-blue-vivid);
    border: 1.5px solid #bfdbfe;
    box-shadow: var(--mw-shadow-sm);
}
.btn-secondary:hover, .mw-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--mw-blue-vivid);
    box-shadow: var(--mw-shadow-md);
}

/* ── 5. Top Bar ── */
.topbar {
    background: linear-gradient(90deg, #03103a, #071b55);
    color: #fff;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 9px 0;
}
.topbar p { margin: 0; color: rgba(255,255,255,.75); }
.topbar a { color: var(--mw-gold); font-weight: 700; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar span { opacity: .4; margin: 0 8px; }

/* ════════════════════════════════════════════════════════
   6. SITE HEADER — premium
════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 99999;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--mw-border-soft);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10,30,80,.05), 0 4px 16px rgba(10,30,80,.04);
    transition: box-shadow .25s, background .25s;
}
.site-header.scrolled {
    background: rgba(255,255,255,.99);
    box-shadow: 0 2px 6px rgba(10,30,80,.06), 0 10px 28px rgba(10,30,80,.09);
}

.header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ── Logo ── */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.site-logo img {
    height: 46px;
    width: auto;
    display: block;
    transition: opacity .2s;
}
.site-logo:hover img { opacity: .88; }

/* ── Desktop nav ── */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    margin-right: 12px;
}

.desktop-nav a {
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 8px;
    white-space: nowrap;
    transition: color .15s, background .15s;
    position: relative;
}
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 13px; right: 13px;
    height: 2px;
    background: linear-gradient(90deg, var(--mw-blue-vivid), var(--mw-gold));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.desktop-nav a:hover {
    color: var(--mw-blue-vivid);
    background: #eff6ff;
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after { transform: scaleX(1); }
.desktop-nav a.active {
    color: var(--mw-blue-vivid);
    background: #eff6ff;
}

/* ── Apply Now header button ── */
.header-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--mw-gold), var(--mw-orange));
    color: #07142e;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(251,191,36,.32), 0 1px 3px rgba(0,0,0,.1);
    transition: transform .2s, box-shadow .2s;
    flex-shrink: 0;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.header-apply-btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 60%);
    border-radius: 11px;
}
.header-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(251,191,36,.44), 0 2px 6px rgba(0,0,0,.12);
}
.header-apply-btn i { font-size: 12px; position: relative; z-index: 1; }

/* ── Mobile hamburger button ── */
.mobile-menu-btn {
    width: 42px; height: 42px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 17px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
    transition: transform .15s, box-shadow .15s;
}
.mobile-menu-btn:hover { box-shadow: 0 6px 16px rgba(37,99,235,.4); }
.mobile-menu-btn:active { transform: scale(.95); }

/* ── Mobile dropdown menu ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    right: 14px;
    width: 260px;
    background: #fff;
    border-radius: 18px;
    padding: 8px;
    box-shadow:
        0 4px 6px rgba(10,30,80,.04),
        0 20px 52px rgba(10,30,80,.18);
    z-index: 999998;
    border: 1px solid var(--mw-border);
    animation: menuSlideIn .2s ease;
}
.mobile-menu.active { display: block; }

@keyframes menuSlideIn {
    from { opacity: 0; transform: translateY(-8px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 11px;
    color: #071b46;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.mobile-menu a i {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--mw-blue-vivid);
    flex-shrink: 0;
    transition: background .15s;
}
.mobile-menu a:hover {
    background: #eff6ff;
    color: var(--mw-blue-vivid);
}
.mobile-menu a:hover i {
    background: #dbeafe;
}
.mobile-menu a + a { margin-top: 2px; }

/* Apply Now mobile link */
.mobile-apply-link {
    background: #2563eb;
    color: #fff !important;
    justify-content: center;
    margin-top: 8px;
    font-weight: 800 !important;
}
.mobile-apply-link i {
    background: rgba(255,255,255,.25) !important;
    color: #07142e !important;
}
.mobile-apply-link:hover {
    background: linear-gradient(135deg, #f59e0b, #ea580c) !important;
    color: #07142e !important;
}

/* legacy nav aliases */
.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--mw-border-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.navwrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}
.menu {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
}
.menu a {
    padding: 7px 13px;
    border-radius: 8px;
    color: inherit;
    transition: color .15s, background .15s;
}
.menu a:hover { color: var(--mw-blue-vivid); background: #eff6ff; }
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border: 1.5px solid var(--mw-border);
    border-radius: 12px;
    background: #fff;
    color: var(--mw-blue-vivid);
    cursor: pointer;
    transition: background .15s;
}
.nav-toggle:hover { background: #eff6ff; }

/* ════════════════════════════════════════════════════════
   7. FOOTER — premium dark navy
════════════════════════════════════════════════════════ */
.footer {
    background: linear-gradient(170deg, #04122e 0%, #061a42 55%, #030d24 100%);
    color: rgba(255,255,255,.6);
    padding: 64px 0 0;
    position: relative;
    overflow: hidden;
}

/* top glow line */
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(37,99,235,.5) 30%,
        rgba(251,191,36,.4) 70%,
        transparent 100%);
}

/* ambient orb */
.footer::after {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    right: -150px; top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 65%);
    pointer-events: none;
}

/* ── Footer grid ── */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: relative;
    z-index: 1;
}

/* Brand column */
.footer-brand { }

.footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 18px;
    display: block;
    filter: brightness(1.05);
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255,255,255,.42);
    max-width: 270px;
    margin-bottom: 24px;
}

/* Contact links in brand col */
.footer-contact-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-row a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.58);
    text-decoration: none;
    transition: color .2s;
}
.footer-contact-row a:hover { color: #fff; }

.footer-contact-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #60a5fa;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
}
.footer-contact-row a:hover .footer-contact-icon {
    background: rgba(37,99,235,.2);
    border-color: rgba(37,99,235,.4);
}
.footer-contact-icon--wa { color: #4ade80 !important; }
.footer-contact-row a:hover .footer-contact-icon--wa {
    background: rgba(34,197,94,.15) !important;
    border-color: rgba(34,197,94,.35) !important;
}

/* Nav columns */
.footer-col { }

.footer h4,
.footer-col h4 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.32);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer h4::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 22px; height: 2px;
    background: linear-gradient(90deg, #2563eb, #fbbf24);
    border-radius: 2px;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13.5px;
    color: rgba(255,255,255,.52);
    text-decoration: none;
    margin-bottom: 11px;
    transition: color .15s, padding-left .15s;
    line-height: 1.4;
    position: relative;
    padding-left: 0;
}
.footer-col a::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-size: 16px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .15s, transform .15s;
}
.footer-col a:hover {
    color: #fff;
    padding-left: 14px;
}
.footer-col a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ── Bottom bar ── */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 22px 0;
    position: relative;
    z-index: 1;
}

.copyright {
    font-size: 12px;
    color: rgba(255,255,255,.26);
    margin: 0;
    display: block;
}

.footer-bottom-badges {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.3);
    letter-spacing: .02em;
}
.footer-badge i { color: #22d37a; font-size: 10px; }

/* ── Disclaimer ── */
.footer-disclaimer {
    background: rgba(0,0,0,.18);
    border-top: 1px solid rgba(255,255,255,.05);
    padding: 14px 0;
    position: relative;
    z-index: 1;
}
.footer-disclaimer p {
    font-size: 10.5px;
    color: rgba(255,255,255,.18);
    line-height: 1.7;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

/* ════════════════════════════════════════════════════════
   8. RESPONSIVE — header + footer
════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .desktop-nav    { display: none; }
    .header-apply-btn { display: none; }
    .mobile-menu-btn  { display: flex; }
    .menu           { display: none; }
    .nav-toggle     { display: inline-flex; }
    .nav-cta        { display: none; }

    .footer-grid    { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 767px) {
    .mobile-menu    { top: 68px; width: calc(100% - 28px); right: 14px; }
}

@media (max-width: 620px) {
    .container      { width: calc(100% - 28px); }
    .topbar-inner   { justify-content: center; text-align: center; }
    .header-inner   { min-height: 64px; }
    .site-logo img  { height: 40px; }
    .mobile-menu    { top: 66px; }

    .footer         { padding: 44px 0 0; }
    .footer-grid    { grid-template-columns: 1fr; gap: 28px; }
    .footer-tagline { max-width: 100%; }
    .footer-bottom  { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-bottom-badges { gap: 14px; }
}

/* ── Full-width header/footer fix ── */
.topbar, .site-header, .navbar, .footer { width: 100%; }

.topbar .container,
.site-header .container,
.navbar .container,
.footer .container {
    width: 100%;
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.navwrap, .header-inner { width: 100%; }

@media (max-width: 620px) {
    .topbar .container,
    .site-header .container,
    .navbar .container,
    .footer .container {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* Apply Now — solid blue matching file 1 */
.mw-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: #2563eb;
    color: #fff;
    transition: background .2s, transform .2s, box-shadow .2s;
    text-decoration: none;
}
.mw-apply-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
    color: #fff;
}
.mw-apply-btn i { font-size: 14px; }

/* WhatsApp — solid green matching file 1 */
.mw-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: #16a34a;
    color: #fff;
    transition: background .2s, transform .2s;
    text-decoration: none;
}
.mw-whatsapp-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
    color: #fff;
}
.mw-whatsapp-btn i { font-size: 17px; }

@media (max-width: 768px) {
    .site-header .mw-apply-btn {
        display: none !important;
    }
}