/* ============================================================
   Northpoint Software — design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ink:        #1e2c4a;   /* dusky muted navy-blue      */
    --slate-900:  #0f172a;
    --slate-700:  #334155;
    --slate-600:  #475569;
    --slate-500:  #64748b;
    --slate-300:  #cbd5e1;
    --slate-200:  #e2e8f0;
    --slate-100:  #f1f5f9;
    --slate-50:   #f8fafc;
    --white:      #ffffff;

    --brand:      #2563eb;   /* indigo-blue accent        */
    --brand-dark: #1d4ed8;
    --brand-soft: #dbeafe;
    --cyan:       #06b6d4;   /* secondary accent          */

    --radius:     14px;
    --radius-sm:  10px;
    --shadow-sm:  0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md:  0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg:  0 24px 60px rgba(15, 23, 42, .14);

    --maxw:       1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--slate-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

h1, h2, h3, h4 { color: var(--slate-900); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
h1:focus { outline: none; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 5rem 0; }
.section-tight { padding: 3.5rem 0; }
.center    { text-align: center; }
.lead      { font-size: 1.18rem; color: var(--slate-600); max-width: 60ch; }
.lead.center { margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 1rem;
}

.bg-slate { background: var(--slate-50); }
.bg-ink   { background: var(--ink); color: var(--slate-300); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary  { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.btn-primary:hover  { background: var(--brand-dark); color: #fff; }
.btn-ghost    { background: transparent; color: var(--slate-900); border-color: var(--slate-300); }
.btn-ghost:hover { border-color: var(--slate-500); color: var(--slate-900); }
.btn-light    { background: #fff; color: var(--slate-900); }
.btn-light:hover { color: var(--brand-dark); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row.center { justify-content: center; }

/* ---- Top navigation ------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--slate-200);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 800;
    font-size: 1.18rem;
    color: var(--slate-900);
    letter-spacing: -.02em;
}
.site-header .brand { font-size: 2.25rem; }
.brand:hover { color: var(--slate-900); }
.brand .mark {
    display: block;
    width: 68px; height: 68px;
    border-radius: 16px;
    flex: 0 0 auto;
}
.site-footer .brand .mark { width: 32px; height: 32px; border-radius: 9px; }

.brand .wordmark .lite { font-weight: 400; color: var(--slate-600); }
.site-footer .brand .wordmark .lite { color: #94a3b8; }
.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    color: var(--slate-600);
    font-weight: 500;
    padding: .5rem .85rem;
    border-radius: 8px;
    transition: background .12s, color .12s;
}
.nav-links a:hover { color: var(--slate-900); background: var(--slate-100); }
.nav-links a.active { color: var(--brand); }
.nav-cta { margin-left: .5rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--slate-700); margin: 4px 0; border-radius: 2px; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }

    /* Scale the enlarged header/logo down so the brand fits a phone bar */
    .nav-inner { height: 72px; }
    .site-header .brand { font-size: 1.5rem; }
    .brand .mark { width: 46px; height: 46px; border-radius: 11px; }

    .nav-links {
        position: absolute;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        background: #fff;
        border-bottom: 1px solid var(--slate-200);
        padding: .75rem 1.5rem 1.25rem;
        box-shadow: var(--shadow-md);
        display: none;
    }
    .nav-toggle-cb:checked ~ .nav-links { display: flex; }
    .nav-links a { padding: .7rem .5rem; }
    .nav-cta { margin: .4rem 0 0; }
    .nav-cta .btn { width: 100%; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    background:
        radial-gradient(1100px 520px at 85% -10%, rgba(37,99,235,.16), transparent 60%),
        radial-gradient(800px 420px at 5% 10%, rgba(6,182,212,.12), transparent 55%),
        var(--ink);
    color: var(--slate-300);
    overflow: hidden;
}
.hero .container { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero .lead { color: #c7d2e0; font-size: 1.25rem; max-width: 54ch; }
.hero-eyebrow { color: #7dd3fc; }
.hero-kicker {
    display: inline-block;
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    font-weight: 600;
    color: #7dd3fc;
    letter-spacing: .01em;
    margin-bottom: 1.1rem;
}
.hero-kicker .sep {
    color: rgba(125, 211, 252, .4);
    font-weight: 400;
    margin: 0 .35em;
}
.hero-grid {
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 46px 46px;
    position: absolute; inset: 0;
    -webkit-mask-image: radial-gradient(70% 60% at 70% 0%, #000, transparent);
            mask-image: radial-gradient(70% 60% at 70% 0%, #000, transparent);
    pointer-events: none;
}
.hero > * { position: relative; }

/* ---- Trust strip --------------------------------------------------------- */
.trust {
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
    margin-top: 3rem; padding-top: 1.75rem;
    font-size: .92rem; color: #94a3b8;
}
.trust strong { color: #e2e8f0; font-weight: 600; }

/* ---- Stat band ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--slate-900); letter-spacing: -.03em; }
.stat .lbl { color: var(--slate-500); font-size: .95rem; }
.bg-ink .stat .num { color: #fff; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* ---- Cards / grid -------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 1.7rem;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.card.featured:hover { border-color: var(--brand-dark); }
.card h3 { margin-bottom: .4rem; }

.badge {
    display: inline-block;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 999px;
    margin-bottom: .9rem;
}
.card p:last-child { margin-bottom: 0; }
.card .ico {
    width: 46px; height: 46px;
    border-radius: 11px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.card .ico svg { width: 24px; height: 24px; }

/* ---- Process steps ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: .5rem; }
.step .n {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--slate-900); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; margin-bottom: .9rem;
}
.step h3 { margin-bottom: .3rem; }
.step p { font-size: .96rem; }

/* ---- Feature list (about / services) ------------------------------------ */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .35em;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: var(--radius);
    padding: 3rem;
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 1.6rem; }

/* ---- Forms --------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--slate-700); }
.field input, .field textarea, .field select {
    font: inherit;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: .75rem .9rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--slate-900);
    transition: border-color .12s, box-shadow .12s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--slate-500); }

.alert-success {
    background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
    padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem;
}
.alert-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
    padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem;
}

/* ---- Contact info cards -------------------------------------------------- */
.info-row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-bottom: 1.5rem; }
.info-row .item .k { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); }
.info-row .item .v { font-weight: 600; color: var(--slate-900); overflow-wrap: anywhere; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #94a3b8; padding: 3rem 0 2rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { max-width: 30ch; }
.footer-brand .brand { color: #fff; margin-bottom: .6rem; }
.footer-brand p { color: #94a3b8; font-size: .95rem; }
.footer-col h4 { color: #e2e8f0; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.footer-col a { display: block; color: #94a3b8; padding: .25rem 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 2.5rem; padding-top: 1.5rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
    font-size: .88rem; color: #64748b;
}

/* ---- Misc / utility ------------------------------------------------------ */
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* ---- Blazor framework bits (kept from template) ------------------------- */
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; font-size: .88rem; }

.blazor-error-boundary {
    background: #b32121; padding: 1rem; color: white; border-radius: 8px;
}
.blazor-error-boundary::after { content: "An error has occurred." }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
