/*
Theme Name: IJCH Consulting
Theme URI: https://ijchconsulting.co.uk
Author: IJCH Consulting Limited
Description: One-page site for IJCH Consulting, built from the September 2026 design proposal.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ijch
*/

:root {
  --paper: #F6F7FB;
  --surface: #FFFFFF;
  --ink: #0F0C24;
  --ink-soft: #4B4968;
  --line: #DCDFEE;
  --tint: #EEEDFB;
  --accent-text: #2B00A8;
  --btn-bg: #2B00A8;
  --btn-ink: #FFFFFF;
  --indigo: #2B00A8;
  --cyan: #3CB9D8;
  --sky: #3FAEEE;
  --hero: #110D2B;
  --hero-ink: #F4F5FB;
  --hero-soft: #B7B8D6;
  --hero-line: #2C2752;
  --ok: #1E7F5C;
  --err: #B3261E;
  --display: "Abril Fatface", "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C0B18;
    --surface: #151329;
    --ink: #ECEDF7;
    --ink-soft: #A7A8C4;
    --line: #2A2844;
    --tint: #1C1939;
    --accent-text: #A596FF;
    --btn-bg: #3CB9D8;
    --btn-ink: #0F0C24;
    --hero: #07061A;
    --hero-line: #221E44;
    --ok: #5FD3A6;
    --err: #FF8A80;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--cyan); color: #0F0C24; padding: 10px 16px; border-radius: 3px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.label {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 0; }
p { margin: 0; }

/* ---------- Header + hero ---------- */
.hero { background: var(--hero); color: var(--hero-ink); position: relative; overflow: hidden; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.brand span { font-family: var(--display); font-size: 28px; line-height: 1; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); font-size: 15.5px; }
.nav-links a { text-decoration: none; color: var(--hero-soft); }
.nav-links a:hover { color: var(--hero-ink); }
.nav-links .nav-cta { color: #0F0C24; background: var(--cyan); padding: 9px 18px; border-radius: 3px; font-weight: 600; }
.nav-links .nav-cta:hover { color: #0F0C24; background: var(--sky); }

.hero-body { position: relative; z-index: 2; padding-block: clamp(48px, 9vw, 110px) clamp(56px, 9vw, 120px); display: grid; gap: 28px; max-width: 780px; }
.hero .label { color: var(--cyan); }
.hero h1 { font-size: clamp(46px, 7.2vw, 98px); line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--hero-soft); max-width: 58ch; }
.hero-lead strong { color: var(--hero-ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 6px; }

.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16.5px/1 var(--body); padding: 16px 24px; border-radius: 3px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateX(2px); }
.btn svg { width: 12px; height: 12px; }
.btn-hero { background: var(--cyan); color: #0F0C24; }
.btn-hero:hover { background: var(--sky); }
.btn-main { background: var(--btn-bg); color: var(--btn-ink); }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: var(--ink); }

/* Cookie consent card */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 440px; margin-inline: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 4px; padding: 18px 20px; box-shadow: 0 12px 40px rgba(15, 12, 36, .18); display: grid; gap: 14px; font-size: 15px; line-height: 1.5; }
.consent p { margin: 0; }
.consent a { color: var(--accent-text); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent .btn { padding: 12px 18px; font-size: 15px; }
.consent[hidden] { display: none; }

.link-quiet { color: var(--hero-soft); text-decoration: underline; text-decoration-color: var(--hero-line); text-underline-offset: 5px; }
.link-quiet:hover { color: var(--hero-ink); text-decoration-color: var(--cyan); }

.hero-mark { position: absolute; z-index: 1; right: clamp(-260px, -12vw, -60px); top: 50%; width: clamp(420px, 52vw, 700px); transform: translateY(-46%); pointer-events: none; }
.hero-mark polygon { animation: ijch-slide 0.9s cubic-bezier(.2,.7,.2,1) both; }
.hero-mark .p2 { animation-delay: .12s; }
.hero-mark .p3 { animation-delay: .24s; }
@keyframes ijch-slide { from { transform: translateX(-36px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-mark polygon { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-mark { opacity: 0.28; right: -180px; }
}

/* ---------- Clients strip ---------- */
.clients { border-bottom: 1px solid var(--line); background: var(--surface); }
.clients .wrap { padding-block: 34px 38px; display: grid; gap: 20px; }
.clients .label { color: var(--ink-soft); }
.client-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
@media (max-width: 900px) { .client-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .client-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.client-list li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line); }
.client-list b { font-weight: 600; font-size: 16.5px; }
.client-list span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Sections ---------- */
section.block { padding-block: clamp(64px, 9vw, 112px); }
.block-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.block-head .label { color: var(--accent-text); }

.chev { width: 14px; height: 14px; flex: none; margin-top: 6px; }
.familiar { list-style: none; margin: 0 0 clamp(56px, 7vw, 80px); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px 40px; }
.familiar li { display: flex; gap: 14px; font-size: 18px; line-height: 1.5; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
table.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 16px; }
.compare caption { caption-side: top; text-align: left; padding: 16px 20px 0; color: var(--ink-soft); }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td { color: var(--ink-soft); }
.compare .us { background: var(--tint); color: var(--ink); }
.compare thead .us { color: var(--accent-text); }

/* ---------- Ways to work ---------- */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 2px solid var(--ink); }
.way { padding: 28px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.way + .way { padding-left: 28px; border-left: 1px solid var(--line); }
.way .label { color: var(--accent-text); }
.way p { color: var(--ink-soft); }
.way ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15.5px; }
.way li { display: flex; gap: 10px; }
.way li::before { content: ""; width: 6px; height: 6px; margin-top: 10px; background: var(--cyan); transform: rotate(45deg); flex: none; }
@media (max-width: 900px) {
  .way, .way + .way { padding: 26px 0 18px; border-left: 0; }
  .way + .way { border-top: 1px solid var(--line); }
}

/* ---------- What this isn't ---------- */
.notlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 32px; border-top: 2px solid var(--ink); }
.notlist li { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.notlist b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.notlist span { color: var(--ink-soft); font-size: 16px; }

/* ---------- Booking row (contact) ---------- */
.book-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.book-row span { color: var(--hero-soft); font-size: 15.5px; }

/* ---------- Work ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); background: var(--hero); color: var(--hero-ink); border-radius: 4px; padding: clamp(28px, 4.5vw, 52px); margin-bottom: 20px; }
.feature-story { display: grid; gap: 16px; align-content: start; }
.feature .label { color: var(--cyan); }
.feature h3 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.8vw, 48px); line-height: 1.05; }
.feature-lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; }
.feature-story p.feature-more { color: var(--hero-soft); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; border-top: 1px solid var(--hero-line); }
.feature-list li { display: grid; gap: 2px; padding: 14px 0 14px 26px; border-bottom: 1px solid var(--hero-line); position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 8px; height: 8px; background: var(--cyan); transform: rotate(45deg); }
.feature-list b { font-weight: 600; }
.feature-list span { font-size: 15px; color: var(--hero-soft); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 26px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; }
.case .label { color: var(--ink-soft); }
.case p { color: var(--ink-soft); font-size: 16px; }
.case .tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.case .tags span { font-size: 13px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink-soft); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait { aspect-ratio: 4 / 5; background: var(--tint); border-radius: 4px; position: relative; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait svg { position: absolute; width: 78%; right: -18%; top: 12%; opacity: .9; }
.about-copy { display: grid; gap: 20px; max-width: 60ch; }
.about-copy .label { color: var(--accent-text); }
.about-copy p { font-size: 18px; color: var(--ink-soft); }
.about-copy p.big { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--ink); text-wrap: balance; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; }
.facts b { font-weight: 600; }
.facts span { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 340px; } }

/* ---------- Contact ---------- */
.contact-section { background: var(--hero); color: var(--hero-ink); }
.contact { display: grid; grid-template-columns: 1fr minmax(300px, 520px); gap: clamp(36px, 6vw, 80px); }
.contact .label { color: var(--cyan); }
.contact h2 { margin-top: 14px; }
.contact-intro { display: grid; gap: 22px; align-content: start; }
.contact-intro > p { color: var(--hero-soft); font-size: 19px; max-width: 46ch; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; color: var(--hero-soft); }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--display); font-size: 24px; color: var(--cyan); }
.steps b { color: var(--hero-ink); font-weight: 600; }
.direct { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--hero-line); }
.direct a { text-decoration: none; font-size: 19px; font-weight: 600; width: fit-content; }
.direct a:hover { color: var(--cyan); }

form.enquiry { background: var(--surface); color: var(--ink); border-radius: 4px; padding: clamp(24px, 3vw, 34px); display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14.5px; font-weight: 600; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea { font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form-foot p { font-size: 13.5px; color: var(--ink-soft); max-width: 32ch; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 3px; padding: 12px 14px; font-size: 15px; font-weight: 600; border: 1px solid currentColor; }
.notice-ok { color: var(--ok); }
.notice-err { color: var(--err); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero); color: var(--hero-soft); border-top: 1px solid var(--hero-line); font-size: 13.5px; }
.site-footer .wrap { padding-block: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; }
.site-footer a { color: var(--hero-soft); }

/* ---------- Other pages (e.g. privacy policy) ---------- */
.page-main { padding-block: clamp(48px, 7vw, 88px); }
.page-main .entry { max-width: 720px; }
.page-main h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.05; margin-bottom: 28px; }
.page-main .entry-content > * + * { margin-top: 1em; }
.page-main .entry-content h2 { font-size: 30px; margin-top: 1.6em; }
