/* IT by Brand — site styles
   Edit the tokens in :root to change colours, fonts and spacing site-wide. */

@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Brand colours taken from the IT by Brand logo */
  --ink: #0E2240;        /* logo navy */
  --ink-2: #3C4B63;
  --muted: #4A5870;
  --ground: #F4F7FB;
  --surface: #FFFFFF;
  --line: #D8E0EA;
  --line-strong: #B5C1D0;
  --accent: #0B5ED7;     /* logo blue, passes contrast with white text */
  --accent-dark: #084BB0;
  --accent-soft: #EAF2FD;
  --signal: #3FA2FF;     /* bright logo blue, for use on navy */
  --on-dark: #C8D4E6;
  --warn-bg: #FFF6E8;
  --warn-line: #E8C98F;
  --warn-ink: #5A3D0A;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1160px;
  --radius: 12px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--ground); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 56px); }
h2 { font-size: clamp(26px, 3.6vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 10px 14px; z-index: 100; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 80px; }
.section--tight { padding-block: 48px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band--dark { background: var(--ink); color: #FFFFFF; }
.band--soft { background: var(--accent-soft); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 28px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 48px; align-items: start; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.band--dark .eyebrow { color: var(--signal); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 640px; }
.band--dark .lead { color: var(--on-dark); }
.muted { color: var(--muted); font-size: 15px; }
.small { font-size: 14px; color: var(--muted); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; }
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not([href*="#"]) { color: var(--accent); }
.nav a[aria-current="page"]:not([href*="#"]) { font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; min-height: 44px; min-width: 44px; font: inherit; cursor: pointer; color: var(--ink); }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px; padding-bottom: 16px; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 10px 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { color: var(--ink); filter: brightness(0.95); }
.btn--outline-dark { color: #FFFFFF; border-color: #5B6B79; }
.btn--outline-dark:hover { color: #FFFFFF; border-color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card--feature { border: 2px solid var(--accent); }
.card .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.card p { color: var(--ink-2); font-size: 16px; }
.card .more { margin-top: auto; font-weight: 600; }
.price { font-size: 32px; font-weight: 700; }
.price small { font-size: 15px; font-weight: 400; color: var(--muted); }

.hero-panel { background: var(--ink); color: #FFFFFF; border-radius: 16px; padding: 32px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.hero-panel .checks li::before { color: var(--signal); }

.steps .step { border-top: 2px solid var(--signal); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.steps .step .n { font-family: var(--mono); color: var(--signal); }
.steps .step p { color: var(--on-dark); }

.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.placeholder { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 20px; color: var(--muted); background: var(--surface); }

/* Plan calculator */
.seg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg button { min-height: 44px; padding: 10px 16px; border-radius: 8px; font: inherit; font-size: 15px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.estimate { font-size: 15px; background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; font-variant-numeric: tabular-nums; }

/* Package picker */
.pick { text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.pick[aria-pressed="true"] { border: 2px solid var(--accent); box-shadow: 0 0 0 4px #D3E4FB; }

/* Forms */
form.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 16px; min-height: 44px; background: var(--surface); color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #A3261B; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font-weight: 600; font-size: 17px; cursor: pointer; min-height: 28px; }
details p { margin-top: 8px; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); font-size: 14px; line-height: 1.9; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #FFFFFF; }
.site-footer h2 { font-size: 15px; color: #FFFFFF; letter-spacing: 0; }
.site-footer .brand { color: #FFFFFF; font-weight: 700; font-size: 17px; }
.site-footer .bottom { border-top: 1px solid #263544; padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Legal pages */
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose p, .prose ul { margin-top: 12px; color: var(--ink-2); }

.steps { list-style: none; margin: 0; padding: 0; }
.pick-name { font-size: 21px; font-weight: 700; line-height: 1.2; }
.pick-desc { color: var(--ink-2); font-size: 16px; }
.checks--cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px 40px; }

/* Logos */
.logo img { height: 44px; width: auto; display: block; }
.logo .it { color: var(--accent); }
.card-logo { height: 56px; width: auto; align-self: flex-start; }
.hero-logo { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; align-items: center; justify-content: center; }
.hero-logo img { width: 100%; max-width: 420px; height: auto; }
.brand-mark { max-width: 300px; width: 100%; height: auto; }
.service-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.service-badge img { height: 28px; width: auto; }

/* WordPress: menu list, admin bar, editor content */
.nav-list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); text-decoration: none; }
.nav-list a:hover { color: var(--accent); }
/* Highlight the current page, but not "#section" links that point into the home page */
.nav-list .current-menu-item:not(.menu-item-type-custom) > a, .nav-list a[aria-current="page"]:not([href*="#"]) { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) {
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list a { display: block; padding: 10px 0; }
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.h3 { font-size: 21px; }
.prose img { border-radius: 8px; }
.prose a { text-decoration: underline; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pagination .nav-links { display: flex; gap: 12px; }
