/* wwwroot/css/brand.css */

/* ---------- Brand tokens ---------- */
:root {
    --tw-navy: #0D4D59;
    --tw-deep: #030D29;
    --tw-sky: #0887D9;
    --tw-yellow: #F2B805;
    --tw-text: #111827; /* neutral-900 */
    --tw-muted: #6B7280; /* neutral-500 */

    --radius: 12px;
    --shadow: 0 8px 20px rgba(3,13,41,.08);
}

/* ---------- Typography ---------- */
:root {
    --brand-font: "Avenir Next", Avenir, "Inter", Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

html, body {
    font-family: var(--brand-font);
    color: var(--tw-text);
}

/* Size/weights for headings without touching your existing utility classes */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* ---------- Brand components ---------- */
.brand-gradient {
    background-image: linear-gradient(90deg, var(--tw-navy), var(--tw-deep));
    color: #fff;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 10px;
    padding: .75rem 1.25rem;
    font-weight: 600;
    line-height: 1.1;
    transition: all .2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    background: var(--tw-yellow);
    color: #000;
    box-shadow: 0 4px 10px rgba(242, 184, 5, 0.2);
}

    .btn-primary:hover {
        filter: brightness(0.95);
        box-shadow: 0 6px 12px rgba(242, 184, 5, 0.3);
    }

.btn-accent {
    background: var(--tw-sky);
    color: #fff;
    box-shadow: 0 4px 10px rgba(8, 135, 217, 0.2);
}

    .btn-accent:hover {
        filter: brightness(1.05);
        box-shadow: 0 6px 12px rgba(8, 135, 217, 0.3);
    }

.btn-outline {
    border-color: #E5E7EB;
    color: var(--tw-text);
    background: #fff;
}

    .btn-outline:hover {
        background: #F9FAFB;
        border-color: #d1d5db;
    }

.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    background: #EEF2FF;
    color: #3730A3;
}

/* ---------- Forms ---------- */
.form-field label {
    display: block;
    font-size: .9rem;
    font-weight: 500;
    color: var(--tw-muted);
    margin-bottom: .5rem;
}

.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: .75rem 1rem;
    outline: none;
    transition: all .2s ease;
}

    .form-field input:focus, .form-field select:focus, .form-field textarea:focus {
        border-color: var(--tw-sky);
        box-shadow: 0 0 0 4px rgba(8,135,217,.1);
    }

/* ---------- Page sections ---------- */
.section {
    margin: 3rem auto;
    padding: 0 1rem;
}

.section-header {
    margin-bottom: 1rem;
    color: #111827;
}

.section-sub {
    color: var(--tw-muted);
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Alerts ---------- */
.alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: start;
    gap: .75rem;
    border: 1px solid;
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border-color: #A7F3D0;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border-color: #FECACA;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-color: #BFDBFE;
}