:root {
    --bg: #0a1020;
    --surface: #ffffff;
    --surface-alt: #f3f6fb;
    --surface-dark: #111827;
    --border: #d8e0ec;
    --text: #122033;
    --text-soft: #53637a;
    --text-inverse: #f8fbff;
    --accent: #d71920;
    --accent-dark: #9e1015;
    --shadow: 0 20px 45px rgba(10, 16, 32, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

/* Suppress the browser focus ring on headings focused programmatically by
   Blazor's FocusOnNavigate after navigation. Keyboard focus rings on
   interactive elements are intentionally preserved. */
[tabindex="-1"]:focus {
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #f9fbff 0%, #eef3fa 100%);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
p,
ul {
    margin: 0;
}

ul {
    padding-left: 1.1rem;
}

.layout-root {
    min-height: 100vh;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin-inline: auto;
}

.narrow {
    width: min(820px, calc(100% - 2rem));
}

.stack-sm > * + * {
    margin-top: 0.75rem;
}

.stack-md > * + * {
    margin-top: 1.25rem;
}

.stack-lg > * + * {
    margin-top: 1.75rem;
}

.stack-xl > * + * {
    margin-top: 2.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(216, 224, 236, 0.85);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 0;
}

.brand-logo {
    width: clamp(180px, 24vw, 260px);
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text);
    line-height: 0;
}

.site-nav a {
    padding: 0.75rem 1rem;
    border-radius: 999px;
    color: var(--text-soft);
    font-weight: 600;
    transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(215, 25, 32, 0.08);
    color: var(--accent);
}

.nav-cta,
.site-nav .nav-cta {
    color: var(--text-inverse) !important;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
    color: var(--accent) !important;
}

.assessment-submit-cta {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.page-shell {
    padding: 5.5rem 0;
}

.page-shell-alt {
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(216, 224, 236, 0.85);
    border-bottom: 1px solid rgba(216, 224, 236, 0.85);
}

.hero-section {
    padding: 6rem 0 4rem;
    background:
        radial-gradient(circle at top right, rgba(215, 25, 32, 0.18), transparent 22%),
        radial-gradient(circle at left 20%, rgba(12, 25, 55, 0.14), transparent 24%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(215, 25, 32, 0.08);
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.2rem;
    line-height: 1.25;
}

.hero-copy,
.lead-copy,
.section-header p,
.content-card p,
.cta-banner p,
.site-footer p,
.site-footer span {
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 1.05rem;
}

.hero-copy {
    max-width: 54rem;
    font-size: 1.18rem;
}

.button-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #f0363c 100%);
    color: var(--text-inverse);
    box-shadow: 0 14px 30px rgba(215, 25, 32, 0.22);
    text-align: center;
}

.button-primary:hover {
    background: linear-gradient(135deg, #c6161c 0%, var(--accent) 100%);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    border-color: var(--border);
}

.button-secondary:hover {
    background: var(--surface);
}

.hero-card,
.content-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(216, 224, 236, 0.85);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 1.5rem;
}

.hero-logo {
    width: min(100%, 360px);
    margin-bottom: 1.5rem;
}

.hero-card-title {
    font-size: 1.4rem;
}

.hero-card-copy {
    color: var(--text-soft);
    line-height: 1.7;
}

.page-intro {
    padding: 4.5rem 0 2rem;
}

.section-header {
    max-width: 800px;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
    padding: 1.75rem;
}

.card-highlight {
    color: var(--accent);
    font-weight: 700;
}

.tag-grid {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.tag-pill {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.check-list {
    display: grid;
    gap: 0.9rem;
    padding-left: 1.1rem;
    color: var(--text-soft);
    line-height: 1.65;
}

.cta-banner {
    background: linear-gradient(135deg, #0f1b36 0%, #17284a 100%);
}

.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-banner-action {
    margin-top: 20px;
}

.cta-banner h2,
.cta-banner p,
.cta-banner .eyebrow {
    color: var(--text-inverse);
}

.cta-banner .eyebrow {
    background: rgba(255, 255, 255, 0.14);
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
    gap: 1.5rem;
    align-items: start;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field-group-full {
    grid-column: 1 / -1;
}

.field-group label,
.service-fieldset legend {
    font-weight: 700;
}

.input-field {
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fbfdff;
    color: var(--text);
    font: inherit;
}

.input-area {
    min-height: 9rem;
    resize: vertical;
}

.service-fieldset {
    display: grid;
    gap: 0.8rem;
    /*margin: 0;*/
    margin-top: 0.9rem;
    padding: 1rem 0 0;
    border: 0;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-soft);
    font-weight: 500;
}

.validation-summary,
.validation-message {
    color: var(--accent-dark);
}

.success-panel {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(11, 147, 67, 0.08);
    border: 1px solid rgba(11, 147, 67, 0.18);
}

.site-footer {
    background: var(--surface-dark);
    color: var(--text-inverse);
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 1.5rem;
}

.site-footer h3 {
    font-size: 1rem;
}

.site-footer a {
    display: block;
    color: rgba(248, 251, 255, 0.78);
}

.site-footer a:hover {
    color: var(--text-inverse);
}

.footer-logo {
    width: min(100%, 220px);
}

.footer-button {
    width: fit-content;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
    .hero-grid,
    .split-grid,
    .form-layout,
    .footer-grid,
    .cta-banner-inner {
        grid-template-columns: 1fr;
    }

    .cta-banner-inner {
        align-items: flex-start;
    }

    .card-grid-three,
    .card-grid-two,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .site-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
        order: 2;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(216, 224, 236, 0.85);
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 300ms ease;
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav.mobile-nav-open {
        max-height: 500px;
    }

    .site-nav a {
        width: 100%;
        padding: 1rem;
        border-radius: 0;
        justify-content: flex-start;
    }

    .site-nav .nav-cta {
        margin: 0;
    }

    .brand {
        order: 1;
    }
}

@media (max-width: 640px) {
    .page-shell,
    .hero-section {
        padding: 4rem 0;
    }

    .site-nav a {
        padding: 0.75rem 1rem;
    }

    h1 {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .hero-copy,
    .lead-copy,
    .section-header p,
    .content-card p {
        font-size: 1rem;
    }
}
