:root {
    --cs-primary: #0d47a1;
    --cs-primary-dark: #002171;
    --cs-accent: #1565c0;
    --cs-light: #e3f2fd;
    --cs-dark: #0a0a23;
    --cs-gray: #f8f9fa;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

/* ── Navbar ── */
.site-header {
    background-color: var(--cs-primary-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.site-header .navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.site-header .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    transition: color 0.2s;
}

.site-header .nav-link.active {
    color: #90caf9 !important;
}

/* ── Main content offset for fixed navbar ── */
.main-content {
    padding-top: 4.5rem;
}

/* ── Hero section ── */
.hero-section {
    background: linear-gradient(135deg, var(--cs-primary-dark) 0%, var(--cs-accent) 100%);
    color: white;
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* ── Section utilities ── */
.section-title {
    font-weight: 700;
    color: var(--cs-primary-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ── Feature / service cards ── */
.feature-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.13);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--cs-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--cs-primary);
}

/* ── CTA band ── */
.cta-band {
    background: linear-gradient(90deg, var(--cs-primary-dark) 0%, var(--cs-accent) 100%);
    color: white;
    padding: 5rem 0;
}

/* ── Footer ── */
.site-footer {
    background-color: var(--cs-dark);
}

.footer-link:hover {
    color: white !important;
}

/* ── Contact form ── */
.contact-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

/* ── Buttons ── */
.btn-primary {
    background-color: var(--cs-primary);
    border-color: var(--cs-primary);
}

.btn-primary:hover {
    background-color: var(--cs-primary-dark);
    border-color: var(--cs-primary-dark);
}

a, .btn-link {
    color: var(--cs-primary);
}

/* ── Blazor error ── */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }
