@charset "UTF-8";
/* =====================================================================
   CONYX GROUP — BRAND FOUNDATION
   Design tokens, reset, typography, and the primitives every page shares.
   Component and section styling lives in public.css.

   The palette is taken from the Conyx mark: a deep corporate blue with a
   brighter cyan lift, on an ink-navy ground. Each division carries its own
   accent, injected per page as --accent / --accent-soft.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/*  1. Tokens                                                          */
/* ------------------------------------------------------------------ */

:root {
    /* Brand */
    --brand-primary:   #005BB3;
    --brand-secondary: #00A5D5;
    --brand-deep:      #003086;
    --brand-light:     #C2E5F2;
    --brand-highlight: #9ED5EA;

    /* Extended ramp, derived from the primary */
    --blue-50:  #EFF8FD;
    --blue-100: #DCF0FA;
    --blue-200: #C2E5F2;
    --blue-300: #9ED5EA;
    --blue-400: #4FBBE3;
    --blue-500: #00A5D5;
    --blue-600: #007FC4;
    --blue-700: #005BB3;
    --blue-800: #00429B;
    --blue-900: #003086;
    --blue-950: #041F52;

    /* Neutral ink ramp — cool, so it sits under the blues without clashing */
    --ink-950: #05101F;
    --ink-900: #0A1B2E;
    --ink-800: #12293F;
    --ink-700: #1D3B54;
    --ink-600: #33536E;
    --ink-500: #4F6E89;
    --ink-400: #7A93A9;
    --ink-300: #A9BCCB;
    --ink-200: #D2DDE6;
    --ink-100: #E9F0F5;
    --ink-50:  #F5F9FC;

    /* Signal colours */
    --good:  #17845A;
    --good-soft: #DDF3EA;
    --warn:  #B26A00;
    --warn-soft: #FCF0DC;
    --bad:   #C3352B;
    --bad-soft:  #FBE5E3;

    /* Division accents (overridden per page) */
    --accent:      var(--brand-primary);
    --accent-soft: var(--brand-light);
    --accent-ink:  #FFFFFF;

    /* Surfaces — light theme */
    --bg:          #FFFFFF;
    --bg-sunk:     #F5F9FC;
    --bg-raised:   #FFFFFF;
    --bg-inverse:  #05101F;
    --surface-glass: rgba(255, 255, 255, .82);

    --text:        #0A1B2E;
    --text-muted:  #4F6E89;
    --text-faint:  #7A93A9;
    --text-invert: #FFFFFF;

    --line:        #E1EAF1;
    --line-strong: #C9D8E4;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(5, 16, 31, .06);
    --shadow-sm: 0 2px 8px rgba(5, 16, 31, .07);
    --shadow-md: 0 12px 28px -12px rgba(5, 16, 31, .18);
    --shadow-lg: 0 28px 60px -24px rgba(5, 16, 31, .28);
    --shadow-glow: 0 18px 46px -20px rgba(0, 91, 179, .55);

    /* Radii */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 32px;
    --r-pill: 999px;

    /* Type */
    --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

    --step--1: clamp(.8rem, .78rem + .1vw, .875rem);
    --step-0:  clamp(.95rem, .92rem + .16vw, 1.0625rem);
    --step-1:  clamp(1.1rem, 1.04rem + .3vw, 1.3rem);
    --step-2:  clamp(1.35rem, 1.22rem + .6vw, 1.75rem);
    --step-3:  clamp(1.7rem, 1.44rem + 1.1vw, 2.4rem);
    --step-4:  clamp(1.95rem, 1.6rem + 1.5vw, 2.9rem);
    --step-5:  clamp(2.3rem, 1.7rem + 2.6vw, 3.8rem);

    /* Layout */
    --wrap: 1240px;
    --wrap-narrow: 880px;
    --gutter: clamp(1.15rem, 4vw, 2.5rem);
    --section-y: clamp(3.5rem, 7vw, 7rem);

    /* Motion */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --t-fast: .18s;
    --t-mid: .34s;
    --t-slow: .6s;

    --header-h: 76px;
}

/* Dark theme — cool navy, brand blues brightened so they hold contrast. */
[data-theme="dark"] {
    --bg:         #05101F;
    --bg-sunk:    #08182B;
    --bg-raised:  #0C2135;
    --bg-inverse: #FFFFFF;
    --surface-glass: rgba(8, 24, 43, .82);

    --text:       #EAF2F8;
    --text-muted: #A9BCCB;
    --text-faint: #7A93A9;
    --text-invert:#05101F;

    --line:        #163049;
    --line-strong: #1E4064;

    --brand-primary: #2C8FE0;
    --accent: #2C8FE0;
    --accent-soft: #10314F;

    --good-soft: #0E2E24;
    --warn-soft: #33260E;
    --bad-soft:  #35191A;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .45);
    --shadow-md: 0 14px 30px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 64px -26px rgba(0, 0, 0, .8);
    --shadow-glow: 0 18px 46px -20px rgba(44, 143, 224, .5);
}

/* ------------------------------------------------------------------ */
/*  2. Reset                                                           */
/* ------------------------------------------------------------------ */

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

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }

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

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

ul[class], ol[class] { list-style: none; padding: 0; }

a { color: var(--brand-primary); text-decoration: none; }
a:hover { color: var(--brand-secondary); }

:focus-visible {
    outline: 3px solid var(--brand-secondary);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--brand-primary); color: #fff; }

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

/* ------------------------------------------------------------------ */
/*  3. Typography                                                      */
/* ------------------------------------------------------------------ */

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.022em;
    color: var(--text);
}

h1 { font-size: var(--step-5); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }
h5 { font-size: var(--step-1); }

.display {
    font-size: var(--step-5);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.lead {
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 400;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    opacity: .7;
}

.eyebrow--plain::before { display: none; }

.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.mono  { font-family: var(--font-mono); font-size: .9em; letter-spacing: -.01em; }

.text-sm { font-size: var(--step--1); }
.text-lg { font-size: var(--step-1); }

.balance { text-wrap: balance; }
.pretty  { text-wrap: pretty; }

/* Long-form editorial content coming out of the rich text editor. */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li {
    position: relative;
    padding-left: 1.6em;
}
.prose ul > li::before {
    content: "";
    position: absolute;
    left: .35em;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
    transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
    border-left: 3px solid var(--accent);
    padding: .2em 0 .2em 1.2em;
    font-size: var(--step-1);
    color: var(--text);
    font-style: normal;
}
.prose img { border-radius: var(--r-md); margin: 1.6em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: .7em .8em; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--text); }

/* ------------------------------------------------------------------ */
/*  4. Layout primitives                                               */
/* ------------------------------------------------------------------ */

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--wide   { max-width: 1440px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sunk  { background: var(--bg-sunk); }
.section--ink   { background: var(--ink-950); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink .muted, .section--ink .lead { color: rgba(255, 255, 255, .68); }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.split {
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--wide-left  { grid-template-columns: 1.25fr 1fr; }
    .split--wide-right { grid-template-columns: 1fr 1.25fr; }
    .split--top { align-items: start; }
}

.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cluster--tight { gap: .4rem; }
.cluster--centre { justify-content: center; }
.stack > * + * { margin-top: 1rem; }
.stack--lg > * + * { margin-top: 1.75rem; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--centre { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .75rem; }
.section-head .lead { margin-top: 1rem; }

.section-head--split {
    display: grid;
    gap: 1.5rem;
    max-width: none;
    align-items: end;
}
@media (min-width: 860px) {
    .section-head--split { grid-template-columns: 1fr auto; }
}

/* Utilities used sparingly by views */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-centre { text-align: center; }
.full { width: 100%; }
.hide { display: none !important; }
@media (max-width: 719px)  { .hide-sm { display: none !important; } }
@media (max-width: 1023px) { .hide-md { display: none !important; } }

.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;
}

/* ------------------------------------------------------------------ */
/*  5. Buttons                                                         */
/* ------------------------------------------------------------------ */

.btn {
    --btn-bg: var(--brand-primary);
    --btn-fg: #fff;
    --btn-border: transparent;

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .82rem 1.5rem;
    border: 1px solid var(--btn-border);
    border-radius: var(--r-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--t-fast) var(--ease),
                box-shadow var(--t-mid) var(--ease),
                background-color var(--t-fast) linear,
                color var(--t-fast) linear;
}

.btn .icon { width: 18px; height: 18px; flex: none; transition: transform var(--t-mid) var(--ease); }

/* Sheen sweep on hover — subtle, brand-coloured. */
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.24) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform var(--t-slow) var(--ease);
}
.btn:hover::after { transform: translateX(120%); }

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }

.btn--primary { --btn-bg: var(--brand-primary); }
.btn--accent  { --btn-bg: var(--accent); }

.btn--deep    { --btn-bg: var(--brand-deep); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    --btn-border: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--bg-sunk); box-shadow: var(--shadow-sm); color: var(--text); }

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--brand-primary);
    --btn-border: currentColor;
}
.btn--outline:hover { --btn-bg: var(--brand-primary); --btn-fg: #fff; }

.btn--light {
    --btn-bg: rgba(255,255,255,.12);
    --btn-fg: #fff;
    --btn-border: rgba(255,255,255,.35);
    backdrop-filter: blur(6px);
}
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--ink-900); }

.btn--sm { padding: .58rem 1.05rem; font-size: .85rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn--icon {
    padding: .6rem;
    border-radius: 50%;
    aspect-ratio: 1;
}

/* Text link that behaves like a call to action */
.link-cta {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    font-size: .95rem;
    color: var(--accent);
}
.link-cta .icon { width: 17px; height: 17px; transition: transform var(--t-mid) var(--ease); }
.link-cta:hover { color: var(--accent); }
.link-cta:hover .icon { transform: translateX(4px); }

/* ------------------------------------------------------------------ */
/*  6. Badges, pills, chips                                            */
/* ------------------------------------------------------------------ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .7rem;
    border-radius: var(--r-pill);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.4;
    white-space: nowrap;
}
.badge--brand { background: var(--blue-100); color: var(--blue-800); }
.badge--good  { background: var(--good-soft); color: var(--good); }
.badge--warn  { background: var(--warn-soft); color: var(--warn); }
.badge--bad   { background: var(--bad-soft);  color: var(--bad); }
.badge--info  { background: var(--blue-100);  color: var(--blue-700); }
.badge--muted { background: var(--ink-100);   color: var(--ink-600); }

[data-theme="dark"] .badge--brand,
[data-theme="dark"] .badge--info { background: #10314F; color: var(--blue-300); }
[data-theme="dark"] .badge--muted { background: #14293D; color: var(--ink-300); }
[data-theme="dark"] .badge--good { color: #55C79C; }
[data-theme="dark"] .badge--warn { color: #E5A94E; }
[data-theme="dark"] .badge--bad  { color: #EF8079; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--bg-raised);
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.chip.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.chip .icon { width: 16px; height: 16px; }

.tagline-pill {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .5rem .45rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--bg-raised);
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
    box-shadow: var(--shadow-xs);
}
.tagline-pill b { color: var(--text); font-weight: 600; }
.tagline-pill .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent);
    animation: pulse-dot 2.4s var(--ease) infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

/* ------------------------------------------------------------------ */
/*  7. Cards                                                           */
/* ------------------------------------------------------------------ */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--t-mid) var(--ease),
                box-shadow var(--t-mid) var(--ease),
                border-color var(--t-mid) var(--ease);
}
.card--hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.card__body { padding: clamp(1.3rem, 2.4vw, 1.9rem); flex: 1; display: flex; flex-direction: column; }
.card__title { font-size: var(--step-1); margin-bottom: .5rem; }
.card__text { color: var(--text-muted); font-size: var(--step--1); line-height: 1.6; }
.card__foot {
    margin-top: auto;
    padding-top: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue-50), var(--blue-200));
}
/* A record with no photograph still needs to look deliberate: the division
   icon sits on the brand gradient rather than leaving an empty panel. */
.card__media--empty { color: color-mix(in srgb, var(--accent) 42%, transparent); }
.card__media--empty::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 24% 28%, rgba(255,255,255,.55), transparent 42%),
        repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 2px, transparent 2px 16px);
    opacity: .55;
}
.card__media--empty .icon { position: relative; width: 46px; height: 46px; stroke-width: 1.3; }
/* Pinned to the band rather than laid out inside it: the parent is a centred
   grid, where a percentage height on the image resolves against its own
   content and lets a tall picture push past the aspect-ratio box. */
.card__media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow) var(--ease);
}
.card--hover:hover .card__media img { transform: scale(1.06); }
/* Logos and other upright artwork are shown whole on a clean panel instead of
   being cropped into the band. See image_fit() in conyx_helper.php. */
.card__media img.is-contain,
.division-card__media img.is-contain,
.post-card__media img.is-contain,
.product-card__media img.is-contain {
    object-fit: contain;
    padding: clamp(.75rem, 4%, 1.5rem);
    background: #fff;
}

/* ------------------------------------------------------------------ */
/*  8. Icon tiles                                                      */
/* ------------------------------------------------------------------ */

.icon-tile {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: var(--accent-soft);
    color: var(--accent);
    flex: none;
    transition: transform var(--t-mid) var(--ease), background var(--t-mid) linear;
}
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile--sm { width: 40px; height: 40px; border-radius: var(--r-sm); }
.icon-tile--sm .icon { width: 19px; height: 19px; }
.icon-tile--lg { width: 64px; height: 64px; border-radius: var(--r-lg); }
.icon-tile--lg .icon { width: 30px; height: 30px; }
.icon-tile--solid { background: var(--accent); color: #fff; }
.card--hover:hover .icon-tile { transform: scale(1.06) rotate(-3deg); }

[data-theme="dark"] .icon-tile { background: color-mix(in srgb, var(--accent) 18%, transparent); }

/* ------------------------------------------------------------------ */
/*  9. Forms                                                           */
/* ------------------------------------------------------------------ */

.field { display: block; margin-bottom: 1.15rem; }
.field__label {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .005em;
    margin-bottom: .45rem;
    color: var(--text);
}
.field__label .req { color: var(--bad); margin-left: .15rem; }
.field__hint { font-size: .78rem; color: var(--text-faint); margin-top: .4rem; line-height: 1.5; }
.field__error { font-size: .78rem; color: var(--bad); margin-top: .4rem; font-weight: 500; }

.input, .select, .textarea {
    width: 100%;
    padding: .78rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--bg-raised);
    color: var(--text);
    font-size: .95rem;
    line-height: 1.5;
    transition: border-color var(--t-fast) linear, box-shadow var(--t-fast) linear, background var(--t-fast) linear;
    -webkit-appearance: none;
    appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 16%, transparent);
}
.input.has-error, .select.has-error, .textarea.has-error {
    border-color: var(--bad);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 12%, transparent);
}
.textarea { min-height: 140px; resize: vertical; }

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234F6E89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    padding-right: 2.6rem;
}
[data-theme="dark"] .select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A9BCCB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.field-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) {
    .field-row--2 { grid-template-columns: 1fr 1fr; }
    .field-row--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Checkbox / radio */
.check {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    cursor: pointer;
    font-size: .9rem;
    line-height: 1.5;
}
.check input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 20px; height: 20px;
    margin-top: .12rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 5px;
    background: var(--bg-raised);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    display: grid;
    place-content: center;
}
.check input[type="radio"] { border-radius: 50%; }
.check input::after {
    content: "";
    width: 10px; height: 10px;
    transform: scale(0);
    transition: transform var(--t-fast) var(--ease);
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 16%, 84% 0, 39% 62%);
}
.check input[type="radio"]::after { clip-path: circle(50%); width: 8px; height: 8px; }
.check input:checked { background: var(--brand-primary); border-color: var(--brand-primary); }
.check input:checked::after { transform: scale(1); }
.check input:focus-visible { outline: 3px solid var(--brand-secondary); outline-offset: 2px; }

/* Selectable option card (used by the quotation wizard) */
.option-card {
    position: relative;
    display: flex;
    gap: .9rem;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-raised);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.option-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card__title { font-weight: 600; font-size: .95rem; }
.option-card__text { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; line-height: 1.5; }
.option-card:has(input:checked) {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--bg-raised));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.option-card:has(input:focus-visible) { outline: 3px solid var(--brand-secondary); outline-offset: 2px; }

/* File input */
.file-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.6rem 1.2rem;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r-md);
    background: var(--bg-sunk);
    text-align: center;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.file-drop:hover, .file-drop.is-dragging {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--bg-sunk));
}
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop__title { font-weight: 600; font-size: .9rem; }
.file-drop__hint { font-size: .78rem; color: var(--text-faint); }
.file-drop__name { font-size: .82rem; color: var(--accent); font-weight: 600; word-break: break-all; }

/* Honeypot — never renamed to "website"; browsers autofill that and the
   submission gets rejected as spam. */
.hp-field {
    position: absolute !important;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* 10. Flash messages                                                  */
/* ------------------------------------------------------------------ */

.flash {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .95rem 1.1rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--bg-raised);
    font-size: .9rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}
.flash__icon { display: grid; place-items: center; flex: none; }
.flash__icon .icon { width: 20px; height: 20px; }
.flash__close {
    margin-left: auto;
    background: none;
    border: 0;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .55;
    padding: 0 .2rem;
}
.flash__close:hover { opacity: 1; }
.flash--success { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 30%, transparent); color: var(--good); }
.flash--danger  { background: var(--bad-soft);  border-color: color-mix(in srgb, var(--bad) 30%, transparent);  color: var(--bad); }
.flash--warning { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }
.flash--info    { background: var(--blue-50);   border-color: var(--blue-200); color: var(--blue-800); }

.flash--success span:not(.flash__icon),
.flash--danger span:not(.flash__icon),
.flash--warning span:not(.flash__icon),
.flash--info span:not(.flash__icon) { color: inherit; }

/* ------------------------------------------------------------------ */
/* 11. Tables                                                          */
/* ------------------------------------------------------------------ */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-raised);
    -webkit-overflow-scrolling: touch;
}

.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th {
    text-align: left;
    font-weight: 600;
    font-size: .74rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg-sunk);
    white-space: nowrap;
}
.table td {
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: var(--text-muted);
}
.table td strong, .table td b { color: var(--text); font-weight: 600; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--t-fast) linear; }
.table tbody tr:hover { background: var(--bg-sunk); }
.table .num { text-align: right; font-family: var(--font-mono); font-size: .84rem; }

/* ------------------------------------------------------------------ */
/* 12. Scroll reveal                                                   */
/* ------------------------------------------------------------------ */

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].is-in { opacity: 1; transform: none; }

.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ------------------------------------------------------------------ */
/* 13. Print                                                           */
/* ------------------------------------------------------------------ */

@media print {
    .site-head, .site-foot, .float-actions, .scroll-progress, .preloader,
    .btn, .breadcrumbs, .no-print { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .wrap { max-width: none; padding: 0; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
