:root {
    --brand:       #6750A4;
    --brand-dark:  #4F378B;
    --brand-light: #EADDFF;
    --text:        #1C1B1F;
    --text-muted:  #49454F;
    --surface:     #FFFBFE;
    --border:      #CAC4D0;
    --radius:      12px;
    --max-width:   760px;
}

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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
}

/* ── Navigation ── */
nav {
    background: var(--brand);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .logo {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    margin-right: auto;
}

nav a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .9rem;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}

nav a:hover, nav a.active {
    color: #fff;
    border-bottom-color: var(--brand-light);
}

/* ── Page content ── */
main {
    max-width: var(--max-width);
    margin: 48px auto;
    padding: 0 24px 64px;
}

h1 { font-size: 2rem; margin-bottom: 8px; }
h2 { font-size: 1.25rem; margin: 32px 0 8px; color: var(--brand-dark); }
h3 { font-size: 1rem; margin: 24px 0 6px; }
p  { margin-bottom: 16px; color: var(--text-muted); }
ul, ol { margin: 0 0 16px 24px; color: var(--text-muted); }
li { margin-bottom: 6px; }

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.last-updated {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ── Hero (index only) ── */
.hero {
    text-align: center;
    padding: 64px 24px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    border-radius: var(--radius);
    margin-bottom: 48px;
}

.hero h1 { font-size: 2.5rem; margin-bottom: 16px; }
.hero p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 32px; }

.btn {
    display: inline-block;
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 24px;
    text-decoration: none;
    font-size: .95rem;
    transition: opacity .15s;
}
.btn:hover { opacity: .9; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.card h3 { margin-top: 0; color: var(--brand-dark); }

/* ── Contact form ── */
form { max-width: 560px; }

.field { margin-bottom: 20px; }

label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 6px;
}

input, select, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color .15s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(103,80,164,.15);
}

textarea { resize: vertical; min-height: 140px; }

button[type=submit] {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

button[type=submit]:hover  { background: var(--brand-dark); }
button[type=submit]:disabled { opacity: .6; cursor: not-allowed; }

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: .95rem;
    display: none;
}
.alert.success { background: #E6F4EA; color: #1E6030; border: 1px solid #A8D5B5; }
.alert.error   { background: #FDECEA; color: #8B1A10; border: 1px solid #F5C6C2; }
.alert.show    { display: block; }

/* ── Footer ── */
footer {
    background: #F7F2FA;
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 24px;
    font-size: .85rem;
    color: var(--text-muted);
}

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