/* Intellify IT — accessible skeleton layout (INT-4 P7a). Colours come from tokens.css (IHS, brand confirmed 2026-11-07).
 * Mobile-first at 390 px. IBM Plex Sans is self-hosted (fonts.css, INT-4 P8), system fallback stack. No JavaScript. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ihs-color-paper);
  color: var(--ihs-color-ink);
  font-family: var(--ihs-font-body); /* IBM Plex Sans (fonts.css) with the token's system fallback */
  font-weight: var(--ihs-weight-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, h3 { font-weight: var(--ihs-weight-headings); line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); margin: 0.5rem 0 1rem; }
h2 { font-size: 1.375rem; margin: 2rem 0 0.5rem; }
a { color: var(--ihs-color-primary); text-underline-offset: 0.15em; }
.site-header, main, .site-footer { max-width: 68ch; margin: 0 auto; padding: 1rem; }

/* Header + Primary nav: a <details> disclosure on small screens, a plain row on wide ones. */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.brand { font-weight: 700; color: var(--ihs-color-ink); text-decoration: none; }
.nav-menu summary {
  cursor: pointer; padding: 0.5rem 1rem; min-height: 44px; border: 1px solid var(--ihs-color-muted);
  border-radius: 0.25rem; list-style: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.nav-menu li a { display: block; padding: 0.5rem 0; min-height: 44px; }
.nav-menu a[aria-current="page"] { font-weight: 700; color: var(--ihs-color-ink); text-decoration-thickness: 2px; }
@media (min-width: 48rem) {
  .nav-menu ul { display: flex; gap: 0 1.25rem; margin: 0; }
  @supports selector(::details-content) {
    .nav-menu summary { display: none; }
    .nav-menu::details-content { content-visibility: visible; }
  }
}

.draft-note {
  display: inline-block; margin: 0; padding: 0.25rem 0.5rem; border-left: 4px solid var(--ihs-color-warning);
  background: var(--ihs-color-surface); color: var(--ihs-color-ink); font-size: 0.9375rem;
}
.site-footer { color: var(--ihs-color-muted); font-size: 0.9375rem; border-top: 1px solid var(--ihs-color-muted); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0 1rem; list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--ihs-color-focus); outline-offset: 2px; }
main:focus { outline: none; }
.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; padding: 0.5rem 1rem;
  background: var(--ihs-color-surface); color: var(--ihs-color-primary);
}
.skip-link:focus { top: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Contact form (INT-4 P7b). The honeypot is off-screen, not display:none, so naive bots still fill it. */
.contact-form label { display: block; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 0.5rem; font: inherit; min-height: 44px; }
.contact-form button { min-height: 44px; padding: 0.5rem 1.25rem; font: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Logo B lockup (INT-4 P4a): the <picture> swaps to the reverse lockup in dark mode. */
.brand { display: inline-flex; min-height: 44px; align-items: center; }
.brand img { display: block; width: 168px; height: auto; }

/* Home (INT-4 P4a): hero, service cards, proof strip, closing CTA band. */
.hero h1 { font-size: clamp(1.5rem, 4.5vw, 2.125rem); }
.lead { font-size: 1.1875rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1.25rem; border-radius: 0.25rem;
  background: var(--ihs-color-primary); color: var(--ihs-color-on-primary); font-weight: 600; text-decoration: none;
}
.cta:hover { text-decoration: underline; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.card { padding: 1rem; background: var(--ihs-color-surface); border: 1px solid var(--ihs-color-muted); border-radius: 0.5rem; }
.card:first-child { border-top: 4px solid var(--ihs-color-accent); }
.card h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.card p { margin: 0.5rem 0 0; }
.price { font-weight: 600; }
.note { color: var(--ihs-color-muted); font-size: 0.9375rem; }
.proof ul { padding-left: 1.25rem; }
.cta-band { margin: 2.5rem 0 1rem; padding: 1.25rem; background: var(--ihs-color-surface); border-left: 4px solid var(--ihs-color-accent); }
.cta-band h2 { margin-top: 0; }

/* Inner pages (INT-4 P4b): service sections, work cards, in-house tags. */
.service { margin: 2rem 0; padding-top: 1rem; border-top: 1px solid var(--ihs-color-muted); }
.service h3 { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.card h2 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.site, .tag { color: var(--ihs-color-muted); font-size: 0.9375rem; }
.tag { font-weight: 600; }
