/* =========================================================
   WK Integration Services – site styles
   Brand colour: #001470 (change --brand to re-colour the site)
   ========================================================= */
:root {
  --brand: #001470;
  --brand-dark: #000c45;
  --brand-light: #e8ebf7;
  --accent: #3c80ee;
  --text: #1d2233;
  --muted: #5b6275;
  --border: #dde1ea;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(0, 20, 112, 0.08);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--brand); margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--brand-dark); color: #cfd6ef; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: .4rem; padding-bottom: .4rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__contact span { margin: 0 .4rem; }

.site-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; font-size: 1.05rem; }
.brand:hover { color: #fff; }
.brand img { border-radius: 8px; }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: .02em; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a { color: #fff; text-decoration: none; padding: .55rem .8rem; border-radius: 6px; font-weight: 500; font-size: .97rem; }
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav a[aria-current="page"] { background: #fff; color: var(--brand); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { display: block; position: absolute; left: 10px; width: 24px; height: 2px; background: #fff; content: ""; transition: transform .2s; }
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -7px; left: 0; }
.nav-toggle__bar::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--brand); padding: .5rem 1.25rem 1rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .topbar__tagline { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .75rem 1.4rem; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--brand); cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--light { background: #fff; color: var(--brand); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: #fff; }
.btn--outline:hover { background: #fff; color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 55%, #1d3bb0 100%); color: #fff; padding: 5rem 0 5.5rem; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.15rem; color: #dfe4f7; max-width: 38em; }
.hero__logo { justify-self: center; width: min(360px, 100%); border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0 0 .6rem; }
.hero .eyebrow, .page-hero .eyebrow { color: #9fb7ff; }
.page-hero .eyebrow a { color: inherit; text-decoration: none; }

.page-hero { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; padding: 3.5rem 0; }
.page-hero h1 { color: #fff; margin-bottom: .3rem; }
.page-hero p { color: #dfe4f7; margin: 0; font-size: 1.1rem; }
.page-hero .post-meta { color: #b9c4ea; }

@media (max-width: 800px) {
  .hero { padding: 3rem 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { width: 220px; order: -1; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section__head h2 { margin-top: 0; }
.section__head p { color: var(--muted); }
.section__foot { text-align: center; margin-top: 2.5rem; }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--logos { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.service-card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; margin-bottom: 1rem; }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card ul { padding-left: 1.1rem; margin: .5rem 0 0; color: var(--muted); }

.tech { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.25rem; text-align: center; font-weight: 600; color: var(--brand); }
.tech img { width: 72px; height: 72px; object-fit: contain; }

.client { display: flex; flex-direction: column; gap: .75rem; text-decoration: none; color: var(--text); }
.client:hover { color: var(--text); border-color: var(--accent); }
.client__logo { height: 70px; display: flex; align-items: center; }
.client__logo img { max-height: 70px; max-width: 200px; object-fit: contain; }
.client__logo--dark { background: var(--brand); border-radius: 8px; padding: .6rem 1rem; align-self: flex-start; }
.client__logo--dark img { max-height: 50px; }
.client h3 { margin: 0; font-size: 1.1rem; }
.client p { margin: 0; color: var(--muted); font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.cta { background: var(--brand); color: #fff; padding: 3rem 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; max-width: 700px; margin: 0 auto; }
.team__member { text-align: center; }
.team__member img { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--shadow); }
.team__member h3 { margin: 1rem 0 .1rem; }
.team__role { color: var(--accent); font-weight: 600; margin: 0 0 .5rem; }

/* ---------- Blog ---------- */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card__img { display: block; aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card__img--placeholder { background: var(--brand-light); }
.post-card__img--placeholder img { object-fit: contain; padding: .75rem; }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { padding: 1.2rem 1.4rem 1.5rem; }
.post-card h3 { margin: .2rem 0 .5rem; font-size: 1.12rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.post-meta { color: var(--muted); font-size: .88rem; margin: 0; }

.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .45rem .9rem; border-radius: 6px; border: 1px solid var(--border); text-decoration: none; }
.pagination [aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }

.post-body { padding-top: 2.5rem; padding-bottom: 3rem; overflow-wrap: break-word; }
.post-body__featured { display: block; margin: 0 auto 2rem; border-radius: var(--radius); max-height: 420px; width: auto; }
.post-body img { border-radius: 4px; }
.post-body pre, .post-body code { font-family: var(--mono); font-size: .88rem; }
.post-body pre { background: #0d1530; color: #e6e9f5; padding: 1.1rem 1.25rem; border-radius: 8px; overflow-x: auto; line-height: 1.5; white-space: pre; }
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body :not(pre) > code { background: var(--brand-light); padding: .1em .35em; border-radius: 4px; }
.post-body blockquote { border-left: 4px solid var(--brand); margin: 1.5rem 0; padding: .5rem 1.25rem; background: var(--bg-alt); }
.post-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.post-body td, .post-body th { border: 1px solid var(--border); padding: .4rem .6rem; }
.post-body h2, .post-body h3, .post-body h4 { margin-top: 1.8em; }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin: 2.5rem 0 0; }
.tag-list li { background: var(--brand-light); color: var(--brand); border-radius: 999px; padding: .2rem .75rem; font-size: .82rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.post-nav a { text-decoration: none; max-width: 48%; }
.post-nav span { display: block; color: var(--muted); font-size: .85rem; }
.post-nav__next { text-align: right; margin-left: auto; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-row input, .form-row textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-row textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -5000px; }
.notice { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; }
.notice--ok { background: #e7f6ec; border: 1px solid #9dd5b0; }
.notice--err { background: #fdecec; border: 1px solid #f2a8a8; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 1rem; }
.contact-list strong { display: block; color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #c6cdea; padding-top: 3.5rem; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__logo { border-radius: 12px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem; padding-bottom: 1.2rem; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }

/* WordPress block markup used inside imported posts */
.post-body figure { margin: 1.5rem 0; }
.post-body .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.post-body .alignright { float: right; margin: 0 0 1rem 1rem; }
.post-body .alignleft { float: left; margin: 0 1rem 1rem 0; }

/* ---------- Blog sidebar (search, tags, archive) ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
.with-sidebar .grid--3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 960px) { .with-sidebar { grid-template-columns: 1fr; } }
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar__block { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.sidebar h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.sidebar__list, .archive-list { list-style: none; margin: 0; padding: 0; }
.sidebar__list li { display: flex; justify-content: space-between; gap: .5rem; padding: .2rem 0; }
.sidebar__list span, .archive-list summary span, .tag-cloud span { color: var(--muted); font-size: .85rem; }
.sidebar a { text-decoration: none; }
.sidebar a:hover { text-decoration: underline; }
.sidebar a[aria-current="page"] { font-weight: 700; }
.archive-list > li { border-top: 1px solid var(--border); padding: .35rem 0; }
.archive-list > li:first-child { border-top: 0; }
.archive-list summary { cursor: pointer; font-weight: 600; }
.archive-list summary span { float: right; font-weight: 400; }
.archive-list .sidebar__list { padding: .3rem 0 .2rem 1.1rem; font-size: .93rem; }
.tag-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-cloud a { display: inline-block; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: .15rem .65rem; font-size: .85rem; }
.tag-cloud a:hover { border-color: var(--brand); text-decoration: none; }
.tag-cloud a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.tag-cloud a[aria-current="page"] span { color: #cfd6ef; }
.search-form { display: flex; gap: .5rem; }
.search-form input { flex: 1; min-width: 0; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.search-form input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.search-form .btn { padding: .55rem 1rem; }
.search-form--large { margin-bottom: 1rem; }
.search-form--large input { padding: .8rem 1rem; font-size: 1.05rem; }
#search-results:not(:empty) { margin-top: 1.5rem; }
.tag-list a { color: inherit; text-decoration: none; }
.tag-list a:hover { text-decoration: underline; }
