/* Eppetech design system.
   An industrial catalogue look taken from Eppetech's printed collateral: condensed headings,
   monospaced model numbers and labels, square corners, hairline rules and the logo's yellow
   used as solid blocks. Component-specific styles live next to each component in *.razor.css. */

:root {
    --navy-950: #08162b;
    --navy-900: #0b1f3a;
    --navy-800: #13294a;
    --navy-700: #1d3a64;
    --blue-600: #0b5fc6;
    --blue-700: #094fa6;
    --blue-500: #1d74de;
    --cyan-500: #13b4d8;
    --cyan-100: #e2f4f9;
    --yellow-400: #ffc61a;
    --yellow-300: #ffd456;
    --yellow-100: #fff3cc;

    --ink: #0d1626;
    --text: #29313d;
    --muted: #5b6472;
    --line: #dfe2e6;
    --line-strong: #b9bfc8;
    --surface: #ffffff;
    --surface-2: #f4f3f0;
    --surface-3: #ebe9e4;
    --success: #13704f;
    --success-bg: #e5f2ec;
    --danger: #b42318;
    --danger-bg: #fbeceb;
    --warning-bg: #fff5d6;

    --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
    --font-heading: var(--font-display);
    --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

    --radius-sm: 2px;
    --radius: 3px;
    --radius-lg: 4px;
    --shadow-sm: none;
    --shadow: 0 1px 0 var(--line);
    --shadow-lg: 0 12px 32px rgba(8, 22, 43, .14);

    --container: 1240px;
    --gutter: 24px;
    --header-h: 72px;
    --focus: 0 0 0 2px #fff, 0 0 0 4px var(--blue-600);
}

@media (max-width: 480px) {
    :root { --gutter: 16px; --header-h: 64px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

html.scroll-locked { overflow: hidden; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.02;
    letter-spacing: 0;
    margin: 0 0 .45em;
    font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: none; box-shadow: var(--focus); }

.mono { font-family: var(--font-mono); font-size: .85em; letter-spacing: 0; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 1000;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    font-weight: 600;
    transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container-narrow { max-width: calc(860px + var(--gutter) * 2); }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding: clamp(36px, 5vw, 60px) 0; }
.section + .section:not(.section-alt):not(.section-navy) { border-top: 1px solid var(--line); }
.section-alt { background: var(--surface-2); }
.section-navy { background: var(--navy-900); color: #c4cfde; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-navy .section-head p { color: #aebbd0; }
.section-head-row {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head-row .section-head { margin-bottom: 0; }

/* Small monospaced label above headings */
.eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--blue-600);
    margin-bottom: 14px;
}
.section-navy .eyebrow, .page-header-navy .eyebrow { color: var(--yellow-400); }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); line-height: 1.55; }

/* Emphasis inside a heading: the logo blue, nothing decorative */
.mark { color: var(--blue-600); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.stack > * + * { margin-top: 12px; }

/* Numbered rows separated by rules: used instead of icon-card grids */
.index-list { list-style: none; margin: 0; padding: 0; counter-reset: idx; border-top: 1px solid var(--ink); }
.index-list > li {
    counter-increment: idx;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.index-list > li::before {
    content: counter(idx, decimal-leading-zero);
    grid-row: span 2;
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--blue-600);
    padding-top: 4px;
}
.index-list h3 { margin-bottom: 4px; }
.index-list p { margin: 0; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
    --btn-bg: var(--ink);
    --btn-fg: #fff;
    --btn-border: var(--btn-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:hover { color: var(--btn-fg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.btn-primary { --btn-bg: var(--ink); }
.btn-primary:hover { --btn-bg: var(--blue-700); }

.btn-accent { --btn-bg: var(--yellow-400); --btn-fg: var(--ink); }
.btn-accent:hover { --btn-bg: var(--ink); --btn-fg: var(--yellow-400); }

.btn-blue { --btn-bg: var(--blue-600); }
.btn-blue:hover { --btn-bg: var(--ink); }

.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--ink); }
.btn-outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; }

.btn-ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255,255,255,.6); }
.btn-ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: #fff; }

.btn-whatsapp { --btn-bg: #128c4a; --btn-fg: #fff; }
.btn-whatsapp:hover { --btn-bg: #0b6b38; }

.btn-sm { min-height: 40px; padding: 7px 14px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 12px 28px; font-size: 1.15rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; text-decoration: none; color: var(--ink);
    border-bottom: 2px solid var(--yellow-400);
    padding-bottom: 2px;
}
.link-arrow:hover { color: var(--blue-700); border-color: var(--blue-700); }
.link-arrow svg { transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Tags (status, category) ---------- */

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 8px;
    border: 1px solid currentColor;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: .72rem; font-weight: 500;
    letter-spacing: .03em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--muted);
    white-space: nowrap;
}
.badge-live { color: var(--success); }
.badge-dev { color: #8a5d00; background: var(--yellow-100); border-color: transparent; }
.badge-soon { color: var(--blue-700); }
.badge-service { color: var(--navy-700); }
.badge-dot::before { content: ""; width: 6px; height: 6px; background: currentColor; }

/* ---------- Cards ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 2px solid var(--ink);
    border-radius: 0;
    padding: clamp(20px, 2.5vw, 28px);
}
.card-link {
    display: block; text-decoration: none; color: inherit;
    transition: border-color .15s ease, background-color .15s ease;
}
.card-link:hover { color: inherit; border-top-color: var(--yellow-400); background: var(--surface-2); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* Icons sit inline above a card title, without a tinted tile */
.icon-tile {
    display: inline-flex;
    color: var(--blue-600);
    margin-bottom: 14px;
}
.icon-tile .icon { width: 26px; height: 26px; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .72em;
    width: 14px; height: 2px;
    background: var(--blue-600);
}

/* ---------- Product image plate: white product shots blend into a warm neutral ---------- */

.product-tile {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    border-radius: 0;
    overflow: hidden;
}
.product-tile img {
    width: auto; height: auto;
    max-width: 78%; max-height: 82%;
    mix-blend-mode: multiply;
    object-fit: contain;
}
.product-placeholder {
    display: grid; place-items: center; gap: 6px;
    text-align: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .75rem;
    padding: 12px;
    border: 1px dashed var(--line-strong);
    width: 70%;
    aspect-ratio: 4 / 3;
}

/* ---------- Page header for inner pages ---------- */

.page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--ink);
    padding: clamp(28px, 4vw, 48px) 0 clamp(32px, 5vw, 56px);
}
.page-header h1 { margin-bottom: 14px; max-width: 18ch; }
.page-header .lead { max-width: 680px; margin: 0; }
.page-header-navy { background: var(--navy-900); border-bottom: 0; }
.page-header-navy h1 { color: #fff; }
.page-header-navy .lead { color: #aebbd0; }

.category-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0 0; padding: 0; border-left: 1px solid var(--line-strong); }
.category-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-left: 0;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600; font-size: .95rem;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.category-pill:hover { background: var(--surface-2); color: var(--ink); }
.category-pill.active { background: var(--ink); color: #fff; }
.category-pill .icon { width: 18px; height: 18px; }
.pill-count { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.category-pill.active .pill-count { color: #aebbd0; }

/* Wide photograph directly under a page header */
.banner-photo { margin: 0; border-bottom: 1px solid var(--ink); background: var(--surface-2); }
.banner-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    object-position: 50% 58%;
}
@media (max-width: 760px) {
    .banner-photo img { aspect-ratio: 16 / 9; }
}

/* ---------- Alerts ---------- */

.alert {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px;
    border-left: 3px solid currentColor;
    font-size: .98rem;
}
.alert p:last-child { margin: 0; }
.alert-success { background: var(--success-bg); color: #0d553c; }
.alert-danger { background: var(--danger-bg); color: #8a1c13; }
.alert-info { background: var(--cyan-100); color: #08495a; }
.alert-warning { background: var(--warning-bg); color: #6b4d00; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.outcome {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: clamp(22px, 3vw, 32px);
    border-top: 3px solid var(--success);
    background: var(--success-bg);
}
.outcome:focus { outline: none; }
.outcome h2 { font-size: 1.8rem; margin-bottom: 8px; }
.outcome p { color: var(--text); }
.outcome-icon {
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px;
    background: var(--success); color: #fff;
}
.outcome-ref { font-size: 1.05rem; }
.outcome-ref strong { font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------- Form panels ---------- */

.form-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 2px solid var(--ink);
    padding: clamp(20px, 3vw, 32px);
}
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section-title { display: flex; align-items: baseline; gap: 12px; font-size: 1.5rem; margin-bottom: 18px; }
.form-step { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--blue-600); }
.form-step::before { content: "0"; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.form-privacy { font-size: .88rem; color: var(--muted); margin: 0; max-width: 460px; }
.spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms (native + DevExpress editors) ---------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field-label {
    font-weight: 600; font-size: .95rem; color: var(--ink);
}
.field .req { color: var(--danger); margin-left: 2px; }
.field-hint { font-size: .86rem; color: var(--muted); font-weight: 400; }
.validation-message { color: var(--danger); font-size: .88rem; }
.validation-errors { margin: 0 0 16px; padding: 12px 16px 12px 32px; background: var(--danger-bg); color: #8a1c13; font-size: .92rem; }

.native-input, .native-select, .native-textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}
.native-input:focus, .native-select:focus, .native-textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(11, 95, 198, .18); }

/* Keep DevExpress editors aligned with the site's controls */
.field .dxbl-text-edit, .field .dxbl-memo-edit, .field .dxbl-combobox, .field .dxbl-spin-edit { width: 100%; }
.field .dxbl-text-edit { min-height: 46px; }
.dxbl-text-edit, .dxbl-btn { border-radius: var(--radius-sm) !important; }
.invalid .dxbl-text-edit, .dxbl-text-edit.invalid { border-color: var(--danger) !important; }

.fieldset-reset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset-reset legend { padding: 0; margin-bottom: 6px; }
.choice-group { padding: 4px 0; }
.form-feedback { margin-bottom: 24px; }

.file-input {
    width: 100%;
    padding: 14px;
    border: 1px dashed var(--line-strong);
    background: var(--surface-2);
    font: inherit;
    font-size: .92rem;
    cursor: pointer;
}
.file-input:hover { border-color: var(--blue-600); }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--surface-2); font-size: .92rem; }
.file-remove { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.file-remove:hover { background: var(--danger-bg); color: var(--danger); }

/* Disclosure lists for help articles and FAQs */
.disclosures { border-top: 1px solid var(--ink); }
.disclosure { border-bottom: 1px solid var(--line); }
.disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after {
    content: "+";
    flex: none;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--blue-600);
}
.disclosure[open] summary::after { content: "–"; }
.disclosure summary:hover { color: var(--blue-700); }
.disclosure summary:focus-visible { box-shadow: inset 0 0 0 2px var(--blue-600); }
.disclosure .article-body { padding: 0 4px 22px; max-width: 72ch; }
.article-body { color: var(--text); }
.article-body ol { padding-left: 20px; margin: 0; display: grid; gap: 6px; }
.article-body p:last-child { margin-bottom: 0; }

/* Honeypot: hidden from people and assistive tech, still present for bots */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Lift the floating WhatsApp button above the comparison bar when it's showing */
body:has(.compare-bar) .wa-float { bottom: 84px; }

/* ---------- DevExpress popups (rendered outside component scope) ---------- */

.gallery-zoomed { display: grid; place-items: center; background: var(--surface-2); padding: 24px; }
.gallery-zoomed img { width: 100%; max-width: 440px; height: auto; mix-blend-mode: multiply; }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Blazor reconnect / error UI */
#blazor-error-ui {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    padding: 12px 20px;
    background: var(--warning-bg);
    color: var(--ink);
    box-shadow: 0 -2px 12px rgba(0,0,0,.12);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 10px; }
