/* =============================================================================
   Experts Infotech - site stylesheet
   Palette derived from the Experts Infotech logo (blue "A", green and orange swoosh).
   ========================================================================== */

:root {
    --c-primary: #1a56b8;
    --c-primary-600: #164a9e;
    --c-primary-700: #103b82;
    --c-primary-50: #eef4fd;
    --c-primary-100: #dbe7fb;
    --c-navy: #0b2447;
    --c-navy-900: #071a33;
    --c-accent: #f08a24;
    --c-accent-text: #b45309;
    --c-green: #2e9a48;
    --c-green-50: #eaf7ee;

    --c-text: #1b2433;
    --c-muted: #556274;
    --c-bg: #ffffff;
    --c-bg-soft: #f4f7fb;
    --c-border: #e1e7ef;
    --c-danger: #b42318;
    --c-danger-50: #fef3f2;
    --c-success: #1f7a3a;
    --c-success-50: #ecfdf3;

    --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, .10);
    --container: 1200px;
    --gutter: 20px;
    --section-y: clamp(48px, 7vw, 88px);
    --header-h: 72px;
}

/* ---- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.2;
    font-weight: 700;
    color: var(--c-navy);
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
.h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-700); }

strong { font-weight: 650; }

:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

main:focus { outline: none; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.2em;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 12px; top: -100px;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--c-navy);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---- Layout ---------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-soft { background: var(--c-bg-soft); }
.section-dark { background: var(--c-navy); color: #d7e2f3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #9cc3ff; }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--c-muted); font-size: 1.075rem; }
.section-dark .section-head p:not(.eyebrow) { color: #b8c7de; }

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-accent-text);
}
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #ffb570; }

.lead { font-size: 1.15rem; color: var(--c-muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split {
    display: grid;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .split { grid-template-columns: 1.05fr .95fr; }
    .split.reverse > :first-child { order: 2; }
}
.split > .card { height: auto; }

.media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--c-navy);
    aspect-ratio: 16 / 9;
}
.media img { width: 100%; height: 100%; object-fit: cover; }

.stack > * + * { margin-top: 1rem; }
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

/* ---- Header ---------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(11, 36, 71, .12); }

.topbar { background: var(--c-navy); color: #c9d6ea; font-size: .85rem; }
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}
.topbar-tagline { margin: 0; }
.topbar-contact { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.topbar-contact li { margin: 0; }
.topbar-contact a { color: #e4ecf7; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar-contact a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 720px) {
    .topbar-tagline { display: none; }
    .topbar-inner { justify-content: center; }
}

.navbar { border-bottom: 1px solid var(--c-border); }
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--c-navy);
    flex: none;
}
.brand-logo {
    display: block;
    width: auto;
    height: 58px;
    max-width: min(240px, 54vw);
    object-fit: contain;
}
.hero-logo {
    display: block;
    width: min(460px, 100%);
    height: auto;
    margin: 0 0 22px;
    background: #fff;
    border-radius: 12px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: .06em; color: var(--c-primary-700); }
.brand-sub { font-size: .78rem; font-weight: 600; color: var(--c-muted); letter-spacing: .02em; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: #b8c7de; }

.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list li { margin: 0; position: relative; }

.nav-link {
    display: block;
    padding: 10px 8px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--c-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}
.nav-link:hover { color: var(--c-primary); background: var(--c-primary-50); }
.nav-link.is-active { color: var(--c-primary); box-shadow: inset 0 -2px 0 var(--c-primary); border-radius: 0; }

.has-sub { display: flex; align-items: center; }
.sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 32px;
    margin-left: -8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-muted);
    cursor: pointer;
    border-radius: 6px;
}
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.sub-menu a {
    display: block;
    padding: 9px 12px;
    font-size: .92rem;
    color: var(--c-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
}
.sub-menu a:hover { background: var(--c-primary-50); color: var(--c-primary); }

@media (min-width: 1321px) {
    .sub-menu { max-height: min(70vh, 480px); overflow-y: auto; }
    .sub-end > .sub-menu { left: auto; right: 0; }
}

.nav-cta-item { margin-left: 8px !important; }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--c-navy);
    cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 1321px) {
    .has-sub:hover > .sub-menu,
    .has-sub:focus-within > .sub-menu,
    .sub-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
}

@media (max-width: 1320px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        background: #fff;
        border-bottom: 1px solid var(--c-border);
        box-shadow: var(--shadow-md);
        display: none;
    }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; gap: 0; }
    .nav-list > li { border-bottom: 1px solid var(--c-border); }
    .nav-link { padding: 14px 4px; font-size: 1rem; }
    .nav-link.is-active { box-shadow: inset 3px 0 0 var(--c-primary); padding-left: 12px; }
    .has-sub { flex-wrap: wrap; }
    .has-sub > .nav-link { flex: 1; }
    .sub-toggle { width: 44px; height: 44px; margin: 0; }
    .sub-menu {
        position: static;
        flex-basis: 100%;
        min-width: 0;
        padding: 0 0 10px 12px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    .sub-menu.is-open { display: block; }
    .nav-cta-item { border-bottom: 0 !important; margin: 16px 0 0 !important; }
    .nav-cta-item .btn { width: 100%; justify-content: center; padding-block: 12px; }
}

@media (max-width: 720px) {
    .brand-logo { height: 48px; }
}

/* ---- Buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font: inherit;
    font-size: .98rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-700); color: #fff; }

.btn-outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary-50); color: var(--c-primary-700); }

.btn-light { background: #fff; color: var(--c-navy); }
.btn-light:hover { background: #fff3e6; color: var(--c-navy); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.btn[disabled], .btn.is-busy { opacity: .7; cursor: progress; }

/* ---- Home hero ------------------------------------------------------------- */
.hero {
    position: relative;
    color: #dbe6f7;
    background-color: var(--c-navy-900);
    background-image:
        linear-gradient(90deg, rgba(7, 26, 51, .96) 0%, rgba(7, 26, 51, .88) 42%, rgba(7, 26, 51, .35) 100%),
        var(--hero-img);
    background-size: cover;
    background-position: center right;
    overflow: hidden;
}
@media (max-width: 700px) {
    .hero {
        background-image: linear-gradient(180deg, rgba(7, 26, 51, .9), rgba(7, 26, 51, .94)), var(--hero-img-sm, var(--hero-img));
    }
}
.hero-inner { padding-block: clamp(64px, 10vw, 128px); max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.hero h1 .accent { color: #ffb570; }
.hero .lead { color: #c9d6ea; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    font-size: .95rem;
    color: #e4ecf7;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.hero-points .icon { color: #7ee2a0; }

/* ---- Inner page hero ------------------------------------------------------- */
.page-hero {
    position: relative;
    color: #d7e2f3;
    background: linear-gradient(120deg, var(--c-navy-900) 0%, var(--c-navy) 55%, var(--c-primary-700) 100%);
}
.page-hero.has-image {
    background-image:
        linear-gradient(90deg, rgba(7, 26, 51, .95) 0%, rgba(11, 36, 71, .86) 50%, rgba(11, 36, 71, .55) 100%),
        var(--hero-img);
    background-size: cover;
    background-position: center;
}
@media (max-width: 700px) {
    .page-hero.has-image {
        background-image: linear-gradient(180deg, rgba(7, 26, 51, .9), rgba(7, 26, 51, .92)), var(--hero-img-sm, var(--hero-img));
    }
}
.page-hero-inner { padding-block: clamp(40px, 6vw, 80px); }
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .lead { color: #c9d6ea; max-width: 760px; margin-bottom: 0; }

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: .88rem;
}
.breadcrumb li { margin: 0; color: #9fb3d1; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px 0 4px; color: #6f86a8; }
.breadcrumb a { color: #d7e2f3; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* ---- Cards ----------------------------------------------------------------- */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--c-muted); }
.card > :last-child { margin-bottom: 0; }
.card ul { color: var(--c-muted); }

a.card, .card-hover { text-decoration: none; color: inherit; }
a.card:hover, .card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--c-primary-100); }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--c-primary-50);
    color: var(--c-primary);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-icon.accent { background: #fff1e3; color: var(--c-accent-text); }
.card-icon.green { background: var(--c-green-50); color: var(--c-green); }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    font-weight: 650;
    color: var(--c-primary);
}
.card-link .icon { width: 1em; height: 1em; transition: transform .2s ease; }
a.card:hover .card-link .icon { transform: translateX(3px); }

.card-dark { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.card-dark h3 { color: #fff; }
.card-dark p, .card-dark li { color: #b8c7de; }
.card-dark .card-icon { background: rgba(156, 195, 255, .12); color: #9cc3ff; }

.card-meta { font-size: .85rem; color: var(--c-muted); margin-bottom: 8px; }

/* ---- Lists, tags, steps ---------------------------------------------------- */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .3em;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--c-green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e9a48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section-dark .check-list li::before { background-color: rgba(126, 226, 160, .15); }
.check-list.cols-2 { columns: 2 260px; column-gap: 32px; }
.check-list.cols-2 li { break-inside: avoid; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li {
    margin: 0;
    padding: 6px 12px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-primary-700);
    background: var(--c-primary-50);
    border: 1px solid var(--c-primary-100);
    border-radius: 999px;
}
.tag-list.center { justify-content: center; }
.section-dark .tag-list li { color: #d7e2f3; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 18px; }
.steps > li {
    counter-increment: step;
    position: relative;
    margin: 0;
    padding: 22px 22px 22px 76px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.steps > li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 22px; top: 22px;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .9rem;
    color: #fff;
    background: var(--c-primary);
    border-radius: 10px;
}
.steps h3 { margin-bottom: .3em; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--c-muted); }
.section-dark .steps > li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.section-dark .steps p { color: #b8c7de; }
.card .steps > li { padding: 16px 16px 16px 64px; background: var(--c-bg-soft); }
.card .steps > li::before { left: 16px; top: 16px; width: 34px; height: 34px; }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 24px;
}
.stat { padding: 8px 0; border-top: 3px solid var(--c-accent); }
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.2; margin-top: 10px; }
.stat-label { color: #b8c7de; font-size: .95rem; }

.note {
    padding: 18px 20px;
    border-left: 4px solid var(--c-primary);
    background: var(--c-primary-50);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--c-text);
}
.note > :last-child { margin-bottom: 0; }

/* ---- Tables ---------------------------------------------------------------- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: #fff;
    -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; }
.data-table caption { text-align: left; padding: 14px 16px; font-weight: 650; color: var(--c-navy); }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); }
.data-table thead th { background: var(--c-bg-soft); color: var(--c-navy); font-weight: 700; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody th { font-weight: 650; color: var(--c-navy); }

/* ---- Forms ----------------------------------------------------------------- */
.form-card {
    padding: clamp(22px, 4vw, 36px);
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: 18px 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-field.full { grid-column: 1 / -1; }
}
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field label { font-weight: 600; font-size: .94rem; color: var(--c-navy); }
.consent-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}
.consent-row label { font-weight: 500; cursor: pointer; flex: 1 1 0; }
.consent-row input { margin-top: 3px; flex: 0 0 auto; }
.consent-row .field-error { flex-basis: 100%; }
.form-field .req { color: var(--c-danger); margin-left: 2px; }
.form-field .hint { font-size: .82rem; color: var(--c-muted); }

.form-control {
    width: 100%;
    padding: 11px 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--c-text);
    background: #fff;
    border: 1px solid #c8d2df;
    border-radius: var(--radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:hover { border-color: #a9b7c9; }
.form-control:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(26, 86, 184, .15); }
textarea.form-control { min-height: 150px; resize: vertical; }
select.form-control { appearance: auto; }
.form-control.input-error { border-color: var(--c-danger); }

.field-error { font-size: .85rem; color: var(--c-danger); font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form-privacy { font-size: .85rem; color: var(--c-muted); margin: 0; }

/* Honeypot field: hidden from people, visible to naive bots. */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.alert {
    display: flex;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}
.alert .icon { margin-top: 2px; }
.alert > div > :last-child { margin-bottom: 0; }
.alert ul { margin: .4em 0 0; }
.alert-success { background: var(--c-success-50); border-color: #abefc6; color: var(--c-success); }
.alert-error { background: var(--c-danger-50); border-color: #fecdca; color: var(--c-danger); }
.alert-info { background: var(--c-primary-50); border-color: var(--c-primary-100); color: var(--c-primary-700); }
.alert h2, .alert h3 { color: inherit; font-size: 1.1rem; margin-bottom: .3em; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-list .card-icon { margin: 0; width: 44px; height: 44px; border-radius: 12px; flex: none; }
.contact-list .card-icon .icon { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--c-navy); }
.contact-list address { font-style: normal; }

/* ---- Call to action -------------------------------------------------------- */
.cta-band {
    background: linear-gradient(110deg, var(--c-primary-700) 0%, var(--c-primary) 60%, #2a6fd6 100%);
    color: #e4ecf7;
}
.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding-block: clamp(40px, 6vw, 64px);
}
.cta-text { max-width: 680px; }
.cta-text h2 { color: #fff; margin-bottom: .3em; }
.cta-text p { margin: 0; color: #dbe6f7; font-size: 1.05rem; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-phone { color: #fff; font-weight: 600; font-size: .95rem; }
.cta-phone:hover { color: #fff; }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--c-navy-900); color: #b8c7de; font-size: .95rem; }
.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr;
    padding-block: 56px 36px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin: 18px 0; max-width: 420px; }
.footer-heading { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.site-footer a { color: #d7e2f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-contact .icon { color: #ffb570; }

.footer-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 32px;
}
.footer-tech span {
    padding: 4px 10px;
    font-size: .8rem;
    color: #9fb3d1;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
}

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 18px;
    font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom li { margin: 0; }

/* ---- Blog / prose ---------------------------------------------------------- */
.prose { max-width: 760px; font-size: 1.05rem; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; }
.prose code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .9em; background: var(--c-bg-soft); padding: 2px 6px; border-radius: 4px; }

.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--c-muted); font-size: .88rem; margin-bottom: 12px; }
.post-meta span { color: var(--c-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; align-self: center; }
.post-card .card-link { margin-top: auto; }
.post-thumb { display: block; margin: -28px -28px 18px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.post-card h2 a { color: var(--c-navy); text-decoration: none; }
.post-card h2 a:hover { color: var(--c-primary); text-decoration: underline; }
.btn-block { display: flex; width: 100%; justify-content: center; }

.sidebar-card { position: sticky; top: calc(var(--header-h) + 24px); height: auto; }

.layout-sidebar { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr) 320px; } }

/* ---- Clients page ---------------------------------------------------------- */
.client-intro { max-width: 760px; }
.client-intro p + p { margin-top: 1rem; }

.client-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    list-style: none;
    margin: 0;
    padding: 0;
}

.client-card {
    align-items: center;
    text-align: center;
    margin: 0;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px;
    margin-bottom: 16px;
}

.client-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.client-name {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--c-navy);
}

@media (min-width: 640px) {
    .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
    .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Error pages ----------------------------------------------------------- */
.error-page { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.error-code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; color: var(--c-primary-100); line-height: 1; margin-bottom: 12px; }
.error-page .hero-actions { justify-content: center; }

/* ---- Motion preferences ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---- Print ----------------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .cta-band, .skip-link { display: none; }
    .page-hero, .hero { background: none; color: #000; }
    .page-hero h1, .hero h1 { color: #000; }
}
