@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/*
 * OmniTech Health — Public marketing site design system
 * Hand-built semantic CSS (mirrors the OmniCollect approach).
 * Blazorise + Bootstrap remain loaded for isolated form/map components,
 * but the marketing chrome and content sections use plain semantic HTML/CSS.
 */

:root {
  /* Brand palette (source of truth: OmniConnect.Api swagger-ui.css) */
  --omnitech-genetic-navy: #1A2D3B;
  --omnitech-colorado-sky: #3C6E91;
  --omnitech-helix-blue: #2F89A3;
  --omnitech-dna-white: #F6F6F4;
  --omnitech-genome-gray: #C6CACC;
  --omnitech-mito-green: #28A745;
  --omnitech-caution-amber: #FFC107;
  --omnitech-mutation-red: #DC3545;

  --omnitech-navy-700: #243b4d;
  --omnitech-navy-600: #2d4a5e;
  --omnitech-sky-600: #345d7a;

  --omnitech-ink: #14202a;
  --omnitech-body-text: #3a4a55;
  --omnitech-muted: #738491;

  --omnitech-radius: 12px;
  --omnitech-radius-sm: 8px;
  --omnitech-shadow-sm: 0 1px 3px rgba(26, 45, 59, 0.08), 0 1px 2px rgba(26, 45, 59, 0.04);
  --omnitech-shadow-md: 0 4px 16px rgba(26, 45, 59, 0.10), 0 2px 6px rgba(26, 45, 59, 0.06);
  --omnitech-shadow-lg: 0 12px 40px rgba(26, 45, 59, 0.16), 0 4px 12px rgba(26, 45, 59, 0.08);

  --omnitech-font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --omnitech-font-display: 'Space Grotesk', 'Inter', sans-serif;

  --omnitech-maxw: 1180px;
}

html, body {
    font-family: var(--omnitech-font-body);
    color: var(--omnitech-body-text);
    background-color: var(--omnitech-dna-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--omnitech-font-display);
    color: var(--omnitech-genetic-navy);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1:focus { outline: none; }

a, .btn-link {
    color: var(--omnitech-helix-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover, .btn-link:hover { color: var(--omnitech-colorado-sky); }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.content {
    padding-top: 1.5rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--omnitech-mito-green);
}

.invalid {
    outline: 1px solid var(--omnitech-mutation-red);
}

.validation-message {
    color: var(--omnitech-mutation-red);
    font-size: 0.85rem;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff8e1;
    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 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

/* --- OmniTech public-site section helpers --- */
.section {
    padding: 4rem 1.5rem;
}

.section-narrow {
    padding: 3rem 1.5rem;
}

.section-inner {
    max-width: var(--omnitech-maxw);
    margin: 0 auto;
}

.section-alt {
    background-color: #fff;
}

.lead {
    font-size: 1.1rem;
    color: var(--omnitech-muted);
    line-height: 1.6;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 0.75rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--omnitech-helix-blue);
    background: rgba(47, 137, 163, 0.12);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

/* --- CTA button (marketing) --- */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--omnitech-helix-blue);
    border: 1px solid var(--omnitech-helix-blue);
    border-radius: var(--omnitech-radius-sm);
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-cta:hover {
    background: var(--omnitech-colorado-sky);
    border-color: var(--omnitech-colorado-sky);
    color: #fff;
    transform: translateY(-1px);
}

.btn-cta-light {
    background: #fff;
    color: var(--omnitech-genetic-navy);
    border-color: #fff;
}

.btn-cta-light:hover {
    background: var(--omnitech-dna-white);
    color: var(--omnitech-genetic-navy);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--omnitech-helix-blue);
    background: transparent;
    border: 1px solid var(--omnitech-helix-blue);
    border-radius: var(--omnitech-radius-sm);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-ghost:hover {
    background: rgba(47, 137, 163, 0.10);
    color: var(--omnitech-genetic-navy);
}

/* --- Page hero (persona pages) --- */
.page-hero {
    background: linear-gradient(135deg, var(--omnitech-genetic-navy) 0%, var(--omnitech-navy-600) 60%, var(--omnitech-colorado-sky) 100%);
    color: var(--omnitech-dna-white);
    padding: 4.5rem 1.5rem;
    text-align: center;
}

.page-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(246, 246, 244, 0.88);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

/* --- Card grid (features / personas) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.ot-card {
    background: #fff;
    border: 1px solid rgba(198, 202, 204, 0.55);
    border-radius: var(--omnitech-radius);
    padding: 1.75rem;
    box-shadow: var(--omnitech-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}

.ot-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--omnitech-shadow-md);
}

.ot-card-icon {
    font-size: 1.6rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(47, 137, 163, 0.10);
    margin-bottom: 1rem;
    color: var(--omnitech-helix-blue);
}

.ot-card h3, .ot-card h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.ot-card p {
    font-size: 0.94rem;
    color: var(--omnitech-muted);
    line-height: 1.55;
    margin: 0;
}

.ot-card.is-link {
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.ot-card.is-link .ot-card-actions {
    margin-top: auto;
    padding-top: 1rem;
}

/* --- Value rows (persona pages) --- */
.value-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.value-row {
    background: #fff;
    border: 1px solid rgba(198, 202, 204, 0.55);
    border-radius: var(--omnitech-radius);
    box-shadow: var(--omnitech-shadow-sm);
    padding: 2rem;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.value-row-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 12px;
    background: rgba(47, 137, 163, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--omnitech-helix-blue);
}

.value-row h3 {
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
}

.value-row p {
    color: var(--omnitech-body-text);
    line-height: 1.6;
    margin: 0 0 0.9rem;
}

.value-callout {
    background: rgba(47, 137, 163, 0.08);
    border-left: 3px solid var(--omnitech-helix-blue);
    border-radius: 0 var(--omnitech-radius-sm) var(--omnitech-radius-sm) 0;
    padding: 0.85rem 1.1rem;
    font-size: 0.94rem;
    color: var(--omnitech-genetic-navy);
}

/* --- Comparison table --- */
.ot-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: var(--omnitech-radius);
    overflow: hidden;
    box-shadow: var(--omnitech-shadow-sm);
}

.ot-table th, .ot-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(198, 202, 204, 0.45);
}

.ot-table thead th {
    background: var(--omnitech-genetic-navy);
    color: #fff;
    font-family: var(--omnitech-font-display);
    font-weight: 600;
}

.ot-table tbody tr:last-child td { border-bottom: none; }

.ot-table tbody tr:hover { background: rgba(47, 137, 163, 0.04); }

.ot-table .col-feature { font-weight: 600; color: var(--omnitech-genetic-navy); width: 24%; }
.ot-table .col-traditional { color: var(--omnitech-muted); width: 38%; }
.ot-table .col-omnitech { color: #1c7132; font-weight: 600; width: 38%; }

/* --- Forms fallback (RequestAccess, admin) --- */
.form-control, .form-select {
    border-radius: var(--omnitech-radius-sm);
    border-color: var(--omnitech-genome-gray);
    padding: 0.6rem 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus { border-color: var(--omnitech-helix-blue); }

.btn-primary {
    color: #fff;
    background-color: var(--omnitech-helix-blue);
    border-color: var(--omnitech-helix-blue);
    font-weight: 600;
    border-radius: var(--omnitech-radius-sm);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--omnitech-colorado-sky);
    border-color: var(--omnitech-colorado-sky);
}

.card {
    border: 1px solid rgba(198, 202, 204, 0.55);
    border-radius: var(--omnitech-radius);
    box-shadow: var(--omnitech-shadow-md);
    background: #fff;
}

.card-header {
    background-color: var(--omnitech-genetic-navy);
    color: #fff;
    border-bottom: 3px solid var(--omnitech-helix-blue);
    border-top-left-radius: var(--omnitech-radius);
    border-top-right-radius: var(--omnitech-radius);
    font-family: var(--omnitech-font-display);
    font-weight: 600;
    padding: 0.9rem 1.25rem;
}

.alert {
    border-radius: var(--omnitech-radius-sm);
    border: none;
    font-weight: 500;
}

.alert-info { background-color: rgba(60, 110, 145, 0.10); color: var(--omnitech-genetic-navy); }
.alert-success { background-color: rgba(40, 167, 69, 0.12); color: #1c7132; }
.alert-danger { background-color: rgba(220, 53, 69, 0.10); color: #a52837; }

.badge { font-weight: 600; border-radius: 6px; }

#blazor-error-ui {
    background: lightyellow;
}

@media (max-width: 767.98px) {
    .value-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .section { padding: 3rem 1.25rem; }
    .page-hero { padding: 3.25rem 1.25rem; }
}

