/* =========================================================
   TBM — The Business Machines Company
   Design system stylesheet
   Brand source: extracted from live tbmuk.com logo SVG + CSS
   ========================================================= */

:root {
  /* Brand colours — exact values from TBM's logo/site, not approximated */
  --navy: #221F62;        /* wordmark, headings, primary CTA, dark bands */
  --navy-800: #1a1850;
  --navy-900: #131142;
  --blue: #206EB8;        /* accent dot 5 — links, secondary buttons */
  --blue-dark: #1A5A97;   /* hover state for blue */
  --blue-deep: #154A7B;   /* borders / deep accents */
  --red-orange: #ED3E1F;  /* accent dot 1 — used sparingly (alerts, urgent CTA) */
  --orange: #F99E19;      /* accent dot 2 — used sparingly */
  --yellow: #FBDD01;      /* accent dot 3 — used sparingly, decorative only */
  --green: #9AC339;       /* accent dot 4 — success / trust markers */

  /* Neutrals */
  --white: #FFFFFF;
  --bg-alt: #DCE3EC;      /* confirmed secondary section background from site */
  --bg-soft: #F5F7FA;     /* lighter neutral tint for subtle striping */
  --border: #D7DEE8;
  --text: #2C2E4A;        /* body copy — same hue family as navy, softer for reading */
  --text-muted: #5B5E7E;

  /* Type */
  --font: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(34, 31, 98, 0.08);
  --shadow-lg: 0 12px 40px rgba(34, 31, 98, 0.14);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg { display: block; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--navy); font-weight: 800; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
button { font-family: inherit; }

/* Focus visibility — accessibility requirement */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-alt); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #E7E9FF; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a:not(.btn) { color: #B9C6F2; }
.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.section--navy .eyebrow { color: var(--yellow); }
.lede { font-size: 1.15rem; color: var(--text-muted); }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 100px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-800); color: var(--white); box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--blue); color: var(--white); }
.btn-accent:hover { background: var(--blue-dark); color: var(--white); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-invert { background: transparent; border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-ghost-invert:hover { background: var(--white); color: var(--navy); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; justify-content: center; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand svg { height: 54px; width: auto; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-name .sr-full { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em; color: var(--text-muted); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: 0.96rem;
  padding: 10px 14px; border-radius: 8px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--bg-alt); color: var(--navy); }
.main-nav .nav-cta { display: none; }
.main-nav a.remote-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); }
.main-nav a.remote-link:hover { background: var(--bg-alt); color: var(--blue-dark); }
.main-nav a.remote-link svg { width: 16px; height: 16px; }
.inline-ico { display: inline-block !important; width: 14px; height: 14px; vertical-align: -2px; margin-left: 2px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white);
  padding: 11px 20px; border-radius: 100px; font-weight: 800;
  text-decoration: none; white-space: nowrap; font-size: 0.98rem;
}
.phone-pill:hover { background: var(--navy-800); color: var(--white); }
.phone-pill svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid var(--navy); border-radius: 8px;
  width: 46px; height: 46px; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--navy); }

@media (max-width: 980px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: var(--white);
    flex-direction: column; align-items: stretch; padding: 20px; gap: 4px;
    overflow-y: auto; transform: translateX(100%); transition: transform 0.25s ease;
    border-top: 1px solid var(--border);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 16px; font-size: 1.08rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav .nav-cta { display: flex; margin-top: 18px; border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .phone-pill span.pill-text { display: none; }
  .header-actions .phone-pill { padding: 11px; }
}
@media (min-width: 981px) {
  .icon-close { display: none; }
}
.nav-toggle[aria-expanded="false"] .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 88px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero .container { padding-top: 56px; padding-bottom: 56px; } }
.hero h1 { color: var(--white); }
.hero .lede { color: #C9D2F2; font-size: 1.18rem; max-width: 54ch; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.18); }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.92rem; color: #DCE3EC; }
.hero-trust-item svg { width: 22px; height: 22px; color: var(--yellow); flex-shrink: 0; }
.hero-art { width: 100%; height: auto; }

.dot-motif { position: absolute; display: flex; gap: 10px; }
.hero .dot-motif { top: 40px; right: -40px; opacity: 0.5; }
.dot { width: 14px; height: 14px; border-radius: 50%; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: var(--white); padding: 56px 0 48px; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero .lede { color: #C9D2F2; max-width: 62ch; }
.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 0.86rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: #AEB8E6; }
.breadcrumbs a { color: #C9D2F2; text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #6E76B0; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); height: 100%;
  display: flex; flex-direction: column;
}
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex-shrink: 0;
}
.card-icon svg { width: 28px; height: 28px; color: var(--navy); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin-bottom: 14px; flex-grow: 1; }
.card-link { font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card-link svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.card-link:hover svg { transform: translateX(3px); }

.service-card { border-top: 4px solid var(--blue); }
.service-card:nth-child(5n+2) { border-top-color: var(--orange); }
.service-card:nth-child(5n+3) { border-top-color: var(--green); }
.service-card:nth-child(5n+4) { border-top-color: var(--red-orange); }
.service-card:nth-child(5n+5) { border-top-color: var(--yellow); }

/* ---------- Checklist ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.steps h3 { margin-bottom: 4px; font-size: 1.08rem; }
.steps p { color: var(--text-muted); margin-bottom: 0; }

/* ---------- Testimonial ---------- */
.testimonial { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); max-width: 760px; }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.2rem; color: var(--navy); font-weight: 600; line-height: 1.5; }
.testimonial cite { font-style: normal; font-weight: 800; color: var(--text); display: block; }
.testimonial .role { font-weight: 500; color: var(--text-muted); font-size: 0.92rem; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 20px; height: 20px; color: var(--orange); }

/* ---------- Google reviews (homepage) ---------- */
.reviews-summary { text-align: center; font-size: 1.05rem; color: var(--text-muted); margin: -12px 0 28px; }
.reviews-summary strong { color: var(--navy); }
.reviews-fallback { text-align: center; margin: 28px 0 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.reviews-attribution { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.logo-chip {
  border: 1px solid var(--border); background: var(--white); border-radius: 100px;
  padding: 10px 22px; font-weight: 800; color: var(--navy); font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* ---------- Areas list ---------- */
.area-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.area-pill {
  background: var(--bg-alt); color: var(--navy); font-weight: 700; font-size: 0.92rem;
  padding: 9px 18px; border-radius: 100px;
}

/* ---------- FAQ (native details/summary — zero JS, accessible) ---------- */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 800; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chevron { flex-shrink: 0; width: 22px; height: 22px; transition: transform 0.2s ease; color: var(--blue); }
.faq-item[open] summary .chevron { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 24px 22px; color: var(--text-muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 7px; font-size: 0.94rem; }
.field .hint { font-weight: 500; color: var(--text-muted); font-size: 0.84rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--white); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(32,110,184,0.18); }
.field textarea { resize: vertical; min-height: 130px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-orange); }
.field-error { color: var(--red-orange); font-size: 0.85rem; font-weight: 700; margin-top: 6px; display: none; }
.field.has-error .field-error { display: block; }
.form-status { padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 700; display: none; margin-bottom: 20px; }
.form-status.is-visible { display: block; }
.form-status.success { background: #EEF6E4; color: #4E6B22; border: 1px solid var(--green); }
.form-status.error { background: #FCEAE6; color: #A02A15; border: 1px solid var(--red-orange); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Contact cards ---------- */
.contact-methods { display: grid; gap: 16px; }
.contact-method {
  display: flex; align-items: center; gap: 16px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px;
  text-decoration: none; box-shadow: var(--shadow);
}
.contact-method:hover { border-color: var(--blue); }
.contact-method .ico { width: 48px; height: 48px; border-radius: 10px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-method .ico svg { width: 24px; height: 24px; color: var(--white); }
.contact-method .label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-method .value { font-size: 1.15rem; font-weight: 800; color: var(--navy); }

.map-embed { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); border-radius: 20px; padding: 56px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band .lede { color: #C9D2F2; margin: 0 auto 28px; }
@media (max-width: 640px) { .cta-band { padding: 36px 22px; border-radius: 14px; } }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #B9C0E8; }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand svg { height: 34px; width: auto; margin-bottom: 16px; }
.footer-grid h4 { color: var(--white); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #B9C0E8; text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-desc { color: #9AA2D2; font-size: 0.94rem; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 18px; height: 18px; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8891C2; }
.footer-bottom a { color: #8891C2; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 48px 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-alt); color: var(--navy); font-weight: 800; font-size: 0.8rem; padding: 6px 14px; border-radius: 100px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.figure-block {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 100%);
  aspect-ratio: 4/3; position: relative;
}
.figure-block.alt { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); }
.badge-figure { text-align: center; padding: 20px; }
.badge-figure img { width: 240px; max-width: 60%; margin: 0 auto 18px; }
.badge-figure-caption { color: var(--text-muted); font-weight: 700; margin: 0; }
.figure-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 20px;
  background: rgba(19,17,66,0.55); color: #DCE3EC; font-size: 0.82rem; font-weight: 600;
}
