/* =====================================================
   Mira Website — global.css
   Locked Theme: Mira Blue (Primary)
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Brand / Primary Theme (LOCKED) */
    --bg: #2f4258;
    /* calm deep blue */
    --bg2: #1f3766;
    /* richer navy depth */

    /* Surfaces */
    --panel: rgba(22, 32, 43, 0.66);
    --panel-2: rgba(22, 32, 43, 0.44);

    /* Text */
    --text: #eaf6ff;
    --muted: rgba(211, 219, 223, 0.82);

    /* Supporting palette (kept subtle) */
    --mist: #a8c1d1;
    --lagoon: #6f8fa3;
    --breeze: #d3dbdf;

    /* Lines / depth */
    --border: rgba(168, 193, 209, 0.18);
    --border-2: rgba(111, 143, 163, 0.24);

    /* Glow accents (use sparingly) */
    --glow-cyan: #43eefd;
    --glow-blue: #256ff3;

    /* Typography */
    --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-display: "Space Grotesk", Inter, system-ui, sans-serif;

    /* Layout */
    --container: 1120px;
    --radius: 18px;
    --radius-lg: 24px;

    /* Shadows / focus */
    --shadow: 0 12px 44px rgba(0, 0, 0, 0.40);
    --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.22);
    --focus: 0 0 0 4px rgba(168, 193, 209, 0.18);

    /* Background wash strengths */
    --bg-mist-strength: 0.20;
    --bg-lagoon-strength: 0.22;
    --bg-olive-strength: 0.06;
    /* tiny warmth */
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    font-family: var(--font-sans);
    overflow-x: hidden;

    background:
        radial-gradient(1200px 700px at 22% 10%,
            rgba(168, 193, 209, var(--bg-mist-strength)),
            transparent 60%),
        radial-gradient(900px 600px at 86% 22%,
            rgba(111, 143, 163, var(--bg-lagoon-strength)),
            transparent 55%),
        radial-gradient(900px 600px at 20% 92%,
            rgba(189, 193, 163, var(--bg-olive-strength)),
            transparent 55%),
        linear-gradient(180deg, var(--bg), var(--bg2));
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Utilities ---------- */
.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.muted {
    color: var(--muted);
}

.section {
    padding: 3.4rem 0;
}

.sectionHead {
    max-width: 76ch;
    margin-bottom: 1.6rem;
}

.sectionHead p {
    margin-top: 0.6rem;
    color: var(--muted);
}

/* ---------- Background Ornaments ---------- */
.bg-glow {
    position: fixed;
    width: 900px;
    height: 900px;
    filter: blur(70px);
    opacity: 0.18;
    pointer-events: none;
    z-index: -3;
}

.bg-glow--top {
    top: -420px;
    left: 8%;
    background: radial-gradient(circle at center, rgba(168, 193, 209, 0.95), transparent 60%);
}

.bg-glow--bottom {
    bottom: -520px;
    right: 8%;
    background: radial-gradient(circle at center, rgba(111, 143, 163, 0.95), transparent 60%);
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 193, 209, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 193, 209, 0.05) 1px, transparent 1px);
    background-size: 90px 90px;
    mask-image: radial-gradient(circle at 30% 15%, black 12%, transparent 60%);
    opacity: 0.14;
    pointer-events: none;
    z-index: -2;
}

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(26, 44, 78, 0.55);
    /* ties to bg2 */
    border-bottom: 1px solid rgba(168, 193, 209, 0.14);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
}

/* ---------- Brand (Logo) ---------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-weight: 900;
}

.brand__chip {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;

    /* this is the “clean background” behind the logo */
    background: rgba(22, 32, 43, 0.30);
    border: 1px solid rgba(168, 193, 209, 0.18);

    /* subtle depth, not glowy */
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.brand__logo {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;

    /* keeps the logo crisp on dark */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.30));
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

.brand--small .brand__chip {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.brand--small .brand__logo {
    width: 24px;
    height: 24px;
}


.nav__links {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
    flex: 1;
}

.nav__links a {
    color: rgba(211, 219, 223, 0.86);
    font-weight: 750;
    padding: 0.35rem 0.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav__links a:hover {
    background: rgba(22, 32, 43, 0.22);
    color: var(--text);
    border-color: rgba(168, 193, 209, 0.16);
}

.nav__cta {
    display: flex;
    gap: 0.65rem;
}

/* Mobile menu (basic; later we wire nav.js) */
.nav__burger {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(168, 193, 209, 0.18);
    border-radius: 12px;
    padding: 0.55rem 0.6rem;
    cursor: pointer;
}

.nav__burger:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.nav__burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(211, 219, 223, 0.92);
    margin: 4px 0;
    border-radius: 2px;
}

.nav__mobile {
    display: none;
    border-top: 1px solid rgba(168, 193, 209, 0.12);
}

.nav__mobileInner {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 0;
}

.nav__mobileInner a {
    padding: 0.55rem 0.65rem;
    border-radius: 14px;
    border: 1px solid rgba(168, 193, 209, 0.14);
    background: rgba(22, 32, 43, 0.22);
}

/* =====================================================
   Active navigation state
   ===================================================== */

.nav__links a[aria-current="page"],
.nav__mobile a[aria-current="page"] {
    color: var(--text);
    font-weight: 950;
    position: relative;
}

/* Subtle underline / glow */
.nav__links a[aria-current="page"]::after,
.nav__mobile a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg,
            rgba(168, 193, 209, 0.0),
            rgba(168, 193, 209, 0.9),
            rgba(168, 193, 209, 0.0));
}

/* Footer active (optional, softer) */
.footer__links a[aria-current="page"] {
    color: rgba(234, 246, 255, 0.95);
    border-bottom: 1px solid rgba(168, 193, 209, 0.35);
}

/* =====================================================
   Nav polish: mobile open state, scroll shadow, scroll lock
   ===================================================== */

body.no-scroll {
    overflow: hidden;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav--scrolled {
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(168, 193, 209, 0.10);
}

/* Mobile menu open/close animation */
.nav__mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
}

.nav__mobile.is-open {
    max-height: 520px;
    /* plenty for links + buttons */
}

/* Burger button accessibility/feel */
.nav__burger {
    -webkit-tap-highlight-color: transparent;
}



/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 0.65rem 0.9rem;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 120ms ease, box-shadow 160ms ease,
        background 160ms ease, border-color 160ms ease, color 160ms ease;
    user-select: none;
}

.btn--lg {
    padding: 0.85rem 1.05rem;
    border-radius: 16px;
}

.btn--primary {
    color: #0b1118;
    background: linear-gradient(180deg, rgba(211, 219, 223, 1), rgba(168, 193, 209, 0.98));
    border-color: rgba(211, 219, 223, 0.26);
    box-shadow: 0 0 26px rgba(168, 193, 209, 0.22);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 44px rgba(168, 193, 209, 0.26);
}

.btn--ghost {
    color: rgba(211, 219, 223, 0.92);
    background: rgba(22, 32, 43, 0.18);
    border-color: rgba(168, 193, 209, 0.18);
}

.btn--ghost:hover {
    transform: translateY(-1px);
    background: rgba(22, 32, 43, 0.26);
    border-color: rgba(168, 193, 209, 0.26);
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

/* ---------- Cards / Grids ---------- */
.grid {
    display: grid;
    gap: 1rem;
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: rgba(22, 32, 43, 0.28);
    border: 1px solid rgba(168, 193, 209, 0.16);
    border-radius: var(--radius);
    padding: 1.1rem 1.05rem;
    box-shadow: var(--shadow-soft);
}

.card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(168, 193, 209, 0.16);
    background: rgba(22, 32, 43, 0.22);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid rgba(168, 193, 209, 0.12);
    background: rgba(26, 44, 78, 0.45);
    backdrop-filter: blur(10px);
    padding: 2.2rem 0 1.2rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.2rem;
    align-items: start;
}

.footer__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer__links a {
    color: rgba(211, 219, 223, 0.86);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    border: 1px solid transparent;
}

.footer__links a:hover {
    border-color: rgba(168, 193, 209, 0.16);
    background: rgba(22, 32, 43, 0.20);
}

.footer__bottom {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(168, 193, 209, 0.08);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .nav__links,
    .nav__cta {
        display: none;
    }

    .nav__burger {
        display: inline-block;
    }

    .nav__mobile {
        display: block;
    }

    .footer__inner {
        grid-template-columns: 1fr;
    }

    .footer__links {
        justify-content: flex-start;
    }
}