/* =========================================================
   MyWealthCare Common CSS
   Use this file on all pages for:
   - Theme variables
   - Base reset
   - Container
   - Buttons
   - Header / Topbar / Navbar
   - Footer
   File: assets/css/common.css
========================================================= */

/* -----------------------------
   1. Theme Variables
----------------------------- */
:root {
    --blue: #062d86;
    --blue-dark: #061c58;
    --blue-soft: #eef4ff;
    --orange: #ff6b00;
    --gold: #f4b23f;

    --ink: #101828;
    --heading: #071b4a;
    --muted: #667085;

    --light: #f6f9ff;
    --white: #ffffff;
    --border: #e6ecf7;

    --shadow-sm: 0 12px 28px rgba(6, 45, 134, 0.07);
    --shadow-md: 0 18px 42px rgba(6, 45, 134, 0.12);
    --shadow-lg: 0 24px 70px rgba(6, 45, 134, 0.18);

    --radius: 26px;
}

/* -----------------------------
   2. Base Reset
----------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* -----------------------------
   3. Common Container
----------------------------- */
.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* -----------------------------
   4. Common Buttons
----------------------------- */
.btn,
.mw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    transition: 0.25s ease;
}

.btn-primary,
.mw-btn-primary {
    background: linear-gradient(135deg, var(--orange), #ff8f2b);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(255, 107, 0, 0.28);
}

.btn-primary:hover,
.mw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(255, 107, 0, 0.35);
}

.btn-secondary,
.mw-btn-secondary {
    background: var(--white);
    color: var(--blue);
    border: 1px solid #d7e2fa;
    box-shadow: 0 10px 28px rgba(6, 45, 134, 0.08);
}

.btn-secondary:hover,
.mw-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* -----------------------------
   5. Top Bar
----------------------------- */
.topbar {
    background: linear-gradient(90deg, var(--blue), #041b55);
    color: var(--white);
    font-size: 14px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 9px 0;
}

.topbar p {
    margin: 0;
}

.topbar a {
    color: var(--white);
    font-weight: 700;
}

.topbar span {
    opacity: 0.5;
    margin: 0 8px;
}

/* -----------------------------
   6. Header / Navbar
----------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navwrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand img {
    width: 260px;
    height: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #24304a;
    font-size: 15px;
    font-weight: 800;
}

.menu a {
    position: relative;
    color: inherit;
    transition: color 0.25s ease;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    background: var(--orange);
    border-radius: 99px;
    transition: width 0.25s ease;
}

.menu a:hover {
    color: var(--blue);
}

.menu a:hover::after {
    width: 100%;
}

.nav-cta {
    flex: 0 0 auto;
}

/* Optional mobile menu toggle support */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    color: var(--blue);
    cursor: pointer;
}

/* -----------------------------
   7. Footer
----------------------------- */
.footer {
    background: #07142f;
    color: #d8e2f8;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
    width: 250px;
    padding: 8px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: var(--white);
}

.footer h4 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 16px;
}

.footer a,
.footer p {
    display: block;
    margin-bottom: 8px;
    color: #b9c6e2;
    font-size: 14px;
    line-height: 1.7;
}

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

.copyright {
    margin-top: 22px;
    color: #9daacc;
    font-size: 13px;
    text-align: center;
}

/* -----------------------------
   8. Common Responsive
----------------------------- */
@media (max-width: 980px) {
    .menu {
        display: none;
    }

    .brand img {
        width: 230px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .topbar p {
        width: 100%;
    }

    .navwrap {
        gap: 12px;
        padding: 12px 0;
    }

    .brand img {
        width: 205px;
    }

    .nav-cta {
        display: none;
    }

    .btn,
    .mw-btn {
        width: 100%;
    }

    .footer {
        padding: 40px 0 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-logo {
        width: 220px;
    }
}


/* Full width header/footer layout */
.topbar,
.navbar,
.footer {
    width: 100%;
}

.topbar .container,
.navbar .container,
.footer .container {
    width: 100%;
    max-width: 100%;
    padding-left: 35px;
    padding-right: 35px;
}

/* Keep navbar items aligned properly */
.navwrap {
    width: 100%;
}

/* Mobile spacing */
@media (max-width: 620px) {
    .topbar .container,
    .navbar .container,
    .footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}