:root {
    --color-ocean-900: #0b1d2e;
    --color-ocean-800: #152e4d;
    --color-ocean-700: #005f99;
    --color-teal-600: #0d9488;
    --color-teal-500: #14b8a6;
    --color-gold-400: #fbbf24;
    --color-gold-500: #f59e0b;
    --color-alice-blue: #f0f9ff;
    --color-slate-900: #0f172a;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 14px 30px rgba(15, 23, 42, 0.15);
    --shadow-xl: 0 24px 50px rgba(15, 23, 42, 0.18);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-alice-blue);
    color: var(--color-slate-900);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    margin: 0;
}

p {
    margin: 0;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
}

@media (max-width: 640px) {
    .container {
        width: min(1200px, 100% - 2rem);
    }
}

.type-overline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.type-h1 {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
}

.type-h2 {
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.15;
    font-weight: 700;
}

.type-h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.2;
    font-weight: 600;
}

.type-body {
    font-size: 1.05rem;
    line-height: 1.7;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.9rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--color-teal-500);
    color: #fff;
    box-shadow: 0 12px 28px rgba(20, 184, 166, 0.25);
}

.btn-primary:hover {
    background: #1ec6b3;
    transform: translateY(-1px);
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-light {
    background: #fff;
    color: var(--color-teal-600);
    box-shadow: var(--shadow-lg);
}

.btn-light:hover {
    background: var(--color-ocean-900);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: #fff;
    border: 2px solid var(--color-slate-200);
    color: var(--color-ocean-900);
}

.btn-outline:hover {
    border-color: var(--color-teal-600);
    color: var(--color-teal-600);
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-slate-200);
    background: #fff;
    color: var(--color-slate-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--color-teal-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-teal-600);
}

.muted {
    color: var(--color-slate-500);
}

.nav-link.active {
    color: var(--color-gold-400);
    font-weight: 700;
    border-bottom: 2px solid var(--color-gold-400);
}

.anim-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

.anim-fade-in-down {
    animation: fadeInDown 0.2s ease-out both;
}

.anim-bounce {
    animation: bounce 2s infinite;
}

.anim-pulse {
    animation: pulse 2.5s ease-in-out infinite;
}

.anim-spin-slow {
    animation: spin 10s linear infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -8px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Blazor Validation & Error UI */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: #fef3c7;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
    display: none;
}

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