/* Examal Solutions — brand-guide styles */

:root {
    color-scheme: light;
    --navy: #0B2340;
    --navy-elev: #0F2A4D;
    --teal: #12B5A3;
    --teal-dark: #0D9488;
    --teal-bright: #2DE0C7;
    --slate: #4A5568;
    --mist: #94A3B8;
    --border: #E2E8F0;
    --cloud: #F5F7FA;
}

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

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
    background: #FFFFFF;
    color: var(--navy);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px;
}

/* Page shell — flex column that owns 100vh so header + main + footer distribute nicely */
.page {
    min-height: 100vh;
    display: flex; flex-direction: column;
    max-width: 1160px; margin: 0 auto;
    padding: 0 32px;
}

/* Header */
header.site {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0; flex-shrink: 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px; background: var(--navy);
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }
.wordmark {
    font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy);
    line-height: 1;
}
.wordmark .accent { color: var(--teal); }
.wordmark small {
    display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--mist); margin-top: 4px;
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    padding: 8px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--slate);
    transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--navy); background: var(--cloud); }
.nav-links a.active { color: var(--navy); background: var(--cloud); }
.nav-links .cta {
    background: var(--teal); color: #FFFFFF; margin-left: 6px;
}
.nav-links .cta:hover { background: var(--teal-dark); color: #FFFFFF; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--teal); color: #FFFFFF; }
.btn-primary:hover { background: var(--teal-dark); color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--mist); }

/* Main content — flex-grows to fill viewport */
main {
    flex: 1 1 auto;
    display: flex; flex-direction: column; justify-content: center;
    padding: 24px 0;
    min-height: 0;
}

.eyebrow {
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
h1 {
    font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.05; color: var(--navy);
}
h2 {
    font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.01em;
    color: var(--navy); margin-bottom: 8px;
}
h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.lede { font-size: 15.5px; color: var(--slate); margin-top: 16px; max-width: 620px; }
p { color: var(--slate); font-size: 14.5px; }
.section-intro { margin-bottom: 28px; max-width: 640px; }

/* Grid card layouts */
.grid {
    display: grid;
    gap: 20px;
    margin-top: 16px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    padding: 26px 24px; border: 1px solid var(--border); border-radius: 14px;
    background: #FBFCFD;
    display: flex; flex-direction: column; gap: 12px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card.linked {
    text-decoration: none; color: inherit;
}
.card.linked:hover {
    border-color: var(--teal);
    box-shadow: 0 12px 24px -14px rgba(11, 35, 64, 0.18);
    transform: translateY(-2px);
}
.card-mark {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(18, 181, 163, 0.12);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.card-mark svg { width: 20px; height: 20px; }
.card p { font-size: 14px; }
.card-more {
    margin-top: auto; padding-top: 12px;
    color: var(--teal-dark); font-weight: 600; font-size: 13px;
    display: inline-flex; align-items: center; gap: 6px;
}
.card-more::after { content: "→"; transition: transform .15s ease; }
.card.linked:hover .card-more::after { transform: translateX(4px); }

/* Footer */
footer.site {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
    padding: 18px 0 22px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.endorsement {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: #64748B;
}
.endorsement .mark-mini {
    width: 18px; height: 18px; border-radius: 5px; background: var(--navy);
    display: inline-flex; align-items: center; justify-content: center;
}
.endorsement .mark-mini svg { width: 10px; height: 10px; }
.endorsement b { color: var(--navy); font-weight: 700; }
.legal { font-size: 11.5px; color: var(--mist); }

/* Contact form */
.contact-form-wrap {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
    align-items: start;
}
.contact-form {
    background: #FFFFFF; border: 1px solid var(--border); border-radius: 14px;
    padding: 24px;
    display: flex; flex-direction: column; gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
    font-size: 12.5px; font-weight: 600; color: var(--navy);
}
.field label .req { color: #DC2626; }
.field input, .field textarea {
    font: inherit; color: var(--navy);
    padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
    background: #FFFFFF;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(18, 181, 163, 0.15);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.contact-side {
    padding: 24px 0;
}
.contact-side h2 { margin-bottom: 12px; }
.contact-side ul { list-style: none; padding: 0; margin-top: 16px; }
.contact-side li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; font-size: 14px; color: var(--slate);
}
.contact-side li svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.contact-side li span { min-width: 0; }
.contact-side li a { color: var(--teal-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.contact-side li a:hover { color: var(--navy); }

.form-status {
    display: none;
    padding: 10px 12px; border-radius: 8px;
    font-size: 13px; font-weight: 500;
}
.form-status.show { display: block; }
.form-status.success { background: #F0FDFA; border: 1px solid #99F0E4; color: #0D9488; }
.form-status.error { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; }

/* Responsive: allow scrolling under 900px */
@media (max-width: 900px) {
    body { overflow: auto; }
    main { padding: 20px 0 40px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .contact-form-wrap { grid-template-columns: 1fr; gap: 24px; }
    .field-row { grid-template-columns: 1fr; }
    .nav-links a:not(.cta) { display: none; }
}
