/* ==========================================================================
   Showmen Technologies: design tokens and global styles.
   Section-specific styles live next to each component (*.razor.css).
   ========================================================================== */

:root {
    /* Color */
    --navy: #0b1f33;
    --ink: #1b2430;
    --muted: #5b6675;
    --accent: #0f5f73;
    --accent-strong: #0b4a5a;
    --accent-bright: #2fb3c9;
    --accent-soft: #e6f1f3;
    --surface: #f5f7f9;
    --rule: #dfe4ea;
    --white: #ffffff;
    --danger: #b42318;
    --success: #067647;

    /* Type */
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.125rem;
    --step-2: 1.375rem;
    --step-3: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
    --step-4: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);

    /* Space and shape */
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
    --section: clamp(3.5rem, 2rem + 6vw, 6.5rem);
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 8px 24px rgba(11, 31, 51, .08);
    --max: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: var(--step-0)/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
img, svg { max-width: 100%; display: block; }
h1:focus { outline: none; }

:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: var(--gutter); top: -3rem; z-index: 100;
    background: var(--navy); color: var(--white); padding: .5rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: .75rem; color: var(--white); }

/* Layout helpers */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--surface); }
.section--dark { background: var(--navy); color: #d6dee6; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.section--dark .eyebrow { color: var(--accent-bright); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 42rem; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--radius);
    font: 600 var(--step-0)/1 var(--font); text-decoration: none; cursor: pointer;
    border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-strong); color: var(--white); }
.btn--ghost { border-color: var(--rule); color: var(--navy); background: var(--white); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--accent-soft); color: var(--navy); }

/* Blazor form validation (used by the contact form) */
.validation-message { color: var(--danger); font-size: var(--step--1); margin-top: .35rem; }
.invalid { border-color: var(--danger) !important; }

/* Blazor's built-in error boundary */
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }
