/* =====================================================
   EXONOME CORE — GLOBAL SYSTEM STYLES
   Purpose:
   - Design tokens
   - Global layout primitives
   - Shared components (footer, grids)
   ===================================================== */

/* =====================================================
   DESIGN TOKENS (GLOBAL, AUTHORITATIVE)
   ===================================================== */

:root {
    /* Brand colors (semantic, not decorative) */
    --blue: #1f2aa1; /* structure / system */
    --red: #d72638; /* participation */
    --green: #1b8a3a; /* value */
    --yellow: #c9c11a; /* optional commerce */
    /* Neutrals */
    --dark: #0f172a;
    --gray: #6b7280;
    --light: #f9fafb;
    /* =================================================
     CORE LAYOUT MECHANICS
     ================================================= */
    /* Hero system */
    --hero-height: 190px;
    --hero-text-offset: 72px;
    
    
    /* Vertical rhythm */
    --section-padding-y: 5px;
    --section-padding-x: 20px;
    --section-margin-bottom: 20px;
    
    --h2-padding-y: 10px;
}

/* Container constrains content, not sections */
.container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
nav {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

    .nav-inner a {
        text-decoration: none;
        color: #374151;
        font-weight: 500;
        font-size: 15px;
    }

        .nav-inner a.cta {
            margin-left: auto;
            background: var(--blue);
            color: #fff;
            padding: 8px 14px;
            border-radius: 8px;
        }


/* ===== MOBILE NAV ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid #e5e7eb;
        display: none;
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links a.cta {
            margin-left: 0;
            width: 100%;
            text-align: center;
        }
}
/* =========================
   NAV SUBMENU
========================= */

.nav-item {
    position: relative;
}

    .nav-item.has-submenu > a {
        cursor: pointer;
    }

/* Submenu container */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-width: 220px;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: none;
    z-index: 1000;
}

    /* Submenu links */
    .submenu a {
        display: block;
        padding: 10px 16px;
        color: var(--dark);
        text-decoration: none;
        font-size: 14px;
    }

        .submenu a:hover {
            background: #f9fafb;
        }

/* Desktop hover */
@media (min-width: 768px) {
    .nav-item.has-submenu:hover .submenu {
        display: block;
    }
}

@media (max-width: 767px) {
    .submenu {
        position: static;
        border: none;
        box-shadow: none;
        padding-left: 12px;
    }

    .nav-item.has-submenu .submenu {
        display: block;
    }
}


/* =====================================================
   Branding (GLOBAL COMPONENT)
   ===================================================== */

    .nav-brand {
        display: inline-flex;
        align-items: center;
       
    }

    .nav-brand img {
        height: 24px; /* tuned for balance */
        width: auto;
        display: block;
    }



/* ======================================================
   BUTTON SYSTEM — CANONICAL
====================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.9rem 1.4rem;
    border-radius: 999px; /* ← LOCK THIS */
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-quiet), box-shadow var(--dur-fast) var(--ease-quiet), background-color var(--dur-fast) var(--ease-quiet), color var(--dur-fast) var(--ease-quiet);
}

/* PRIMARY */
.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    }

/* SECONDARY */
.btn-secondary {
    background: transparent;
    color: var(--blue);
    border: 1px solid color-mix(in srgb, var(--blue) 35%, white);
}


.hero {

    padding-top:40px;
    padding-left:10px;
    padding-bottom:20px;
}


/* ======================================================
   GRID / CARDS
====================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
}

    .card h3 {
        margin: 0 0 8px;
        font-size: 18px;
    }



/* =====================================================
   FOOTER (GLOBAL COMPONENT)
   ===================================================== */

.site-footer {
    background: #020617;
    color: #cbd5f5;
    padding: 72px 20px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cbd5f5;
    text-decoration: none;
    font-size: 15px;
}

    .footer-col a:hover {
        color: #ffffff;
    }

.footer-cta p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.footer-button {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

    .footer-button:hover {
        background: #e5e7eb;
    }

.footer-bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}

/* =====================================================
   SOLUTIONS GRID (SHARED NAV / INDEX USE)
   ===================================================== */

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.solution-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
}

    .solution-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }

    .solution-card i {
        font-size: 32px;
        color: var(--blue);
        margin-bottom: 16px;
    }

    .solution-card h3 {
        margin: 0 0 8px;
        font-size: 20px;
    }

    .solution-card p {
        color: var(--gray);
        font-size: 15px;
    }


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--dur-fast) var(--ease-quiet), box-shadow var(--dur-fast) var(--ease-quiet), background-color var(--dur-fast) var(--ease-quiet), color var(--dur-fast) var(--ease-quiet);
}

/* PRIMARY — demo intent */
.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 24px rgba(31, 42, 161, 0.25);
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 32px rgba(31, 42, 161, 0.35);
    }

/* SECONDARY — low friction */
.btn-secondary {
    background: transparent;
    color: #111827;
    border: 1px solid #d1d5db;
}

    .btn-secondary:hover {
        background: #f9fafb;
        transform: translateY(-1px);
    }

/* =====================================================
   CORE LAYOUT PRIMITIVES
   ===================================================== */

/* Sections are full-width */
.section {
    width: 100%;
    padding: var(--section-padding-y) var(--section-padding-x);
}

.section.alt {
    background: var(--light);
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}



