/* pocketnerd.co.uk: all styles. No inline styles anywhere.
   Shared parts (header, footer, buttons, contact form) use the same class names
   as explicitly-human.com and intentdrivendevelopment.org. System fonts only. */

/* ---------- Tokens ---------- */

:root {
  --pn-paper: #FFFFFF;
  --pn-soft: #F5F7FB;
  --pn-ink: #1D2230;
  --pn-muted: #535B6B;
  --pn-rule: #D9DEE8;
  --pn-field: #9AA5BA;
  --pn-blue: #3D5FBF;
  --pn-blue-dark: #2A4594;
  --pn-blue-soft: #E9EEFA;
  --pn-purple: #5B3E9E;
  --pn-orange: #E8742A;
  --pn-orange-dark: #B9520F;
  --pn-charcoal: #3B3B3F;
  --pn-red: #A8322B;
  --pn-band: #1D2230;
  --pn-band-ink: #FFFFFF;
  --pn-band-muted: #B4BCCB;
  --pn-band-rule: #3A4256;
  --pn-radius: 14px;
  --pn-shadow: 0 1px 2px rgb(29 34 48 / 6%), 0 8px 24px rgb(29 34 48 / 8%);
  --pn-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --pn-header: 4.5rem;
  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--pn-header) + 1rem); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--pn-paper); color: var(--pn-ink); font-family: var(--pn-font); font-size: 1.0625rem; line-height: 1.65; }
img, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--pn-blue); text-underline-offset: 0.18em; }
a:hover { color: var(--pn-blue-dark); }
:focus-visible { outline: 3px solid var(--pn-orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0 0 0.75rem; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 650; }
h3, .h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1rem; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--pn-ink); color: #FFFFFF; font-weight: 600; text-decoration: none; border-radius: 4px; }
.skip-link:focus { top: 12px; color: #FFFFFF; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* Images that haven't been added to /images yet are hidden by js/site.js. */
img.is-missing { display: none; }

/* ---------- Brand ---------- */

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: auto; height: 2.75rem; }
/* The logo is the link's picture; the name beside it is for screen readers. */
.brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 94%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pn-rule); }
/* On phones the menu wraps to a second row, so the header scrolls away with the page. */
@media (max-width: 719px) { .site-header { position: static; } html { scroll-padding-top: 1rem; } }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; min-height: var(--pn-header); padding-block: 0.75rem; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; font-size: 1rem; }
.nav-links a { display: inline-block; padding-block: 0.3rem; color: var(--pn-ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--pn-blue-dark); border-bottom-color: var(--pn-blue); }
.nav-links .nav-cta { color: var(--pn-blue); }

/* ---------- Footer ---------- */

.site-footer { background: var(--pn-band); color: var(--pn-band-ink); }
.footer-inner { display: flex; flex-direction: column; gap: 2rem; padding-block: 3rem 2rem; }
.footer-top { display: flex; flex-direction: column; gap: 2.25rem; }
@media (min-width: 960px) { .footer-top { flex-direction: row; justify-content: space-between; gap: 4rem; } }
.footer-brand { min-width: 0; }
/* The logo is blue and black, so in the dark footer it sits on a white panel. */
.footer-brand .brand { padding: 0.7rem 1rem; background: #FFFFFF; border-radius: 10px; }
.footer-brand .brand-logo { height: 3.25rem; }
.footer-brand p { margin: 0.9rem 0 0; color: var(--pn-band-muted); max-width: 24rem; font-size: 0.95rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; min-width: 0; }
@media (min-width: 640px) { .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.5rem; } }
.footer-nav div { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.footer-nav h2 { margin: 0 0 0.35rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pn-band-muted); }
.footer-nav a { color: var(--pn-band-ink); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav p { margin: 0; color: var(--pn-band-muted); font-size: 0.95rem; }
.footer-legal { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--pn-band-rule); color: var(--pn-band-muted); font-size: 0.85rem; }
.footer-legal a { color: var(--pn-band-ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.75rem;
  border: 0; border-radius: 999px; background: var(--pn-blue); color: #FFFFFF;
  font: inherit; font-weight: 650; font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--pn-blue-dark); color: #FFFFFF; transform: translateY(-1px); }
.btn--accent { background: var(--pn-orange-dark); }
.btn--accent:hover { background: #9A440C; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.eyebrow { margin: 0 0 0.5rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pn-orange-dark); }

/* ---------- Home: hero ---------- */

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem); text-align: center; border-bottom: 1px solid var(--pn-rule);
  background:
    linear-gradient(rgb(61 95 191 / 6%) 1px, transparent 1px) 0 0 / 2rem 2rem,
    linear-gradient(90deg, rgb(61 95 191 / 6%) 1px, transparent 1px) 0 0 / 2rem 2rem,
    radial-gradient(ellipse at 20% 0%, #DFE6FB 0%, transparent 60%),
    radial-gradient(ellipse at 90% 100%, #ECE3FB 0%, transparent 55%),
    var(--pn-soft);
}
.hero-title { margin: 0 auto 1.5rem; max-width: 40rem; }
.hero-logo { margin-inline: auto; width: 100%; }
.hero-lead { max-width: 38rem; margin: 0 auto 2.25rem; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.875rem; }

/* ---------- Home: sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--soft { background: var(--pn-soft); }
.section--gradient { color: #FFFFFF; background: linear-gradient(135deg, var(--pn-blue-dark) 0%, var(--pn-purple) 100%); }
.section-heading { max-width: 44rem; margin: 0 auto 2.5rem; text-align: center; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.service { padding: 1.75rem; background: var(--pn-paper); border: 1px solid var(--pn-rule); border-radius: var(--pn-radius); box-shadow: var(--pn-shadow); }
.service p { margin: 0; color: var(--pn-muted); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1.25rem; border-radius: 12px; color: #FFFFFF; }
.service-icon svg { width: 2rem; height: 2rem; }
.service--orange .service-icon { background: var(--pn-orange); }
.service--charcoal .service-icon { background: var(--pn-charcoal); }
.service--blue .service-icon { background: var(--pn-blue); }

/* The Intent-Driven Development callout under the service tiles. */
.callout { display: grid; gap: 1.5rem; align-items: center; justify-items: start; margin-top: 2.5rem; padding: 1.75rem; background: var(--pn-blue-soft); border: 1px solid var(--pn-rule); border-left: 6px solid var(--pn-blue); border-radius: var(--pn-radius); }
@media (min-width: 960px) { .callout { grid-template-columns: 1fr auto; gap: 3rem; padding: 2.25rem 2.5rem; } }
.callout .eyebrow { color: var(--pn-blue-dark); }
.callout h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); }
.callout p { max-width: 46rem; color: var(--pn-muted); }
.callout .callout-key { margin: 0; color: var(--pn-ink); font-weight: 650; text-wrap: balance; }

.approach { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) { .approach { grid-template-columns: 1.4fr 1fr; } }
.approach-copy p { color: var(--pn-muted); }
.approach-aside { padding: 1.75rem; background: var(--pn-paper); border: 1px solid var(--pn-rule); border-radius: var(--pn-radius); box-shadow: var(--pn-shadow); }
.approach-aside > p { color: var(--pn-muted); }
.mascot { width: 12rem; margin: 0 auto 1.5rem; }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.clients li { padding: 0.5rem 0.75rem; background: var(--pn-soft); border: 1px solid var(--pn-rule); border-radius: 8px; font-size: 0.9375rem; font-weight: 600; }

.specialists { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .specialists { grid-template-columns: 1.4fr 1fr; } }
.specialists p { max-width: 40rem; margin-bottom: 1.75rem; color: rgb(255 255 255 / 92%); }
.specialists-art { width: min(100%, 22rem); margin-inline: auto; }

.cta { max-width: 44rem; margin: 0 auto; text-align: center; }
.cta p { margin-bottom: 1.75rem; color: var(--pn-muted); }

/* ---------- Page column (contact, privacy, 404) ---------- */

.page { display: flex; flex-direction: column; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 5rem); }
.page > * { min-width: 0; }
.page--narrow { max-width: 46rem; margin: 0 auto; }
.page-hero { display: flex; flex-direction: column; gap: 0.75rem; padding-bottom: 2rem; border-bottom: 1px solid var(--pn-rule); }
.page-hero h1 { margin: 0; font-size: clamp(2.25rem, 1.6rem + 3vw, 3.25rem); font-weight: 650; }
.page-hero p { margin: 0; }
.lede { max-width: 44rem; font-size: 1.2rem; line-height: 1.55; color: var(--pn-muted); }
.meta-line { color: var(--pn-muted); font-size: 0.95rem; }
.page section { display: flex; flex-direction: column; gap: 0.85rem; }
.page section > * { margin: 0; }
.page section h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); }
.page section ul { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }

.link-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.link-row a { font-weight: 600; text-decoration: none; }
.link-row a:hover { text-decoration: underline; }

/* ---------- Contact page ---------- */

.contact-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1.6fr 1fr; } }
.contact-aside { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-aside > div { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: var(--pn-soft); border: 1px solid var(--pn-rule); border-radius: var(--pn-radius); }
.contact-aside h2 { margin: 0; font-size: 1.15rem; }
.contact-aside p { margin: 0; color: var(--pn-muted); }

.form-card { display: flex; flex-direction: column; gap: 1.4rem; padding: 1.75rem; background: var(--pn-paper); border: 1px solid var(--pn-rule); border-radius: var(--pn-radius); box-shadow: var(--pn-shadow); }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  font: inherit; font-size: 1rem; line-height: 1.5; color: var(--pn-ink);
  background: var(--pn-soft); border: 1px solid var(--pn-field); border-radius: 8px;
}
.field textarea { min-height: 12rem; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--pn-ink) 50%), linear-gradient(135deg, var(--pn-ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field [aria-invalid="true"] { border-color: var(--pn-red); box-shadow: 0 0 0 1px var(--pn-red); }
.field-error { margin: 0; font-size: 0.9rem; line-height: 1.4; color: var(--pn-red); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.form-actions .small { margin: 0; font-size: 0.875rem; color: var(--pn-muted); max-width: 30rem; }
.form-status { margin: 0; padding: 0.9rem 1.1rem; border-left: 4px solid var(--pn-blue); background: var(--pn-soft); font-size: 0.95rem; line-height: 1.5; }
.form-status--error { border-left-color: var(--pn-red); color: var(--pn-red); }
.thanks { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; background: var(--pn-soft); border-left: 4px solid var(--pn-blue); border-radius: 4px; }
.thanks > * { margin: 0; }
.thanks:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
