/* =========================================================================
   CIS Invoice theme layer.
   Replaces what Elementor used to provide: the kit's base typography, the
   header wrapper, and the editor-managed (legal) page layout.
   ========================================================================= */

/* Page ground: no white strips at the sides (Elementor's container padding is gone). */
html,
body.cis-theme {
  background: var(--cis-ground, #f3f8f8);
}

/* Base type (same values and specificity as the old Elementor kit). */
.cis-theme {
  color: #1F2933;
  font-family: "Inter", Inter, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6em;
}
.cis-theme a { color: #007171; font-family: "Inter", Inter, system-ui, sans-serif; }
.cis-theme h1,
.cis-theme h2 { font-family: "Sora", Inter, system-ui, sans-serif; font-weight: 800; }
.cis-theme h3,
.cis-theme h4,
.cis-theme h5,
.cis-theme h6 { font-family: "Sora", Inter, system-ui, sans-serif; font-weight: 700; }

/* Skip link: hidden until focused with the keyboard. */
.cis-skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px;
  background: #007171; color: #fff !important; font-weight: 600; text-decoration: none;
}
.cis-skip-link:focus { top: 12px; }

.cis-main { display: block; }

/* ---- 404 page --------------------------------------------------------- */
.cis .cis-404-num {
  margin: 4px 0 -8px;
  font-family: var(--cis-display);
  font-size: clamp(88px, 14vw, 168px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -0.05em;
  color: rgba(0, 113, 113, .16);
  user-select: none;
}
.cis .cis-404-num span {
  color: var(--cis-teal, #007171);
  display: inline-block;
  animation: cis-404-wobble 3.2s ease-in-out infinite;
}
@keyframes cis-404-wobble {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-9deg); }
  40% { transform: rotate(7deg); }
  60% { transform: rotate(-3deg); }
  80% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .cis .cis-404-num span { animation: none; } }
.cis .cis-404 .cis-btn-row { margin-top: 8px; }
.cis .cis-404-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

/* ---- Editor-managed pages (Privacy Policy, Terms, new pages) ------------- */
.cis-legal {
  background: #fff;
  overflow-x: clip;
  padding: 0 clamp(16px, 4vw, 54.64px) 80px;
}
.cis-legal-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Title band: full-width tint behind the eyebrow, title and date. */
.cis-legal .cis-legal-head {
  position: relative;
  display: grid;
  gap: 31px;
  margin: 0 0 66px;
  padding: clamp(72px, 9.8vw, 134px) 0 88px;
  background: #F5F6FA;
  box-shadow: 0 0 0 100vmax #F5F6FA;
  clip-path: inset(0 -100vmax);
}
.cis-legal .cis-legal-head::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: #E1E8ED;
  box-shadow: 0 0 0 100vmax #E1E8ED;
  clip-path: inset(0 -100vmax);
}
.cis-legal .cis-legal-head > .wp-block-group__inner-container { display: grid; gap: 31px; }
.cis-legal .cis-legal-head > *,
.cis-legal .cis-legal-head > .wp-block-group__inner-container > * { margin: 0; }

.cis-legal .cis-legal-eyebrow {
  color: #007171;
  font-family: "Inter", Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2.3px;
  text-transform: uppercase;
}
.cis-legal h1 {
  color: #0A1A1E;
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.12;
  margin: 0;
}
.cis-legal .cis-legal-updated {
  color: #7A8A8A;
  font-size: 14.5px;
}
.cis-legal h2 {
  color: #0A1A1E;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 36px 0 12px;
}
.cis-legal h3 {
  color: #0A1A1E;
  font-size: 18px;
  line-height: 1.35;
  margin: 28px 0 10px;
}
.cis-legal p,
.cis-legal li {
  color: #4B5563;
  font-size: 17px;
  line-height: 1.7;
}
.cis-legal p { margin: 0 0 14.4px; }
.cis-legal ul,
.cis-legal ol { margin: 0 0 14.4px; padding-left: 1.4em; }
.cis-legal li { margin-bottom: 6px; }
.cis-legal a { color: #007171; text-decoration: underline; text-underline-offset: 2px; }
.cis-legal strong { color: #1F2933; }

/* Home hero proof line: HMRC link (approved P5, 14 Nov 2026) */
.cis .cis-proof a { color: inherit; text-decoration: underline; text-decoration-color: var(--cis-line-strong, #a9cccc); text-underline-offset: 3px; }
.cis .cis-proof a:hover { color: var(--cis-teal, #007171); }
.cis .cis-faq-a .cis-faq-checked { font-size: .85em; color: var(--cis-ink-2, #4a5d63); }

/* About page (approved G2, 14 Nov 2026) */
.cis .cis-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cis .cis-about-story p { color: var(--cis-ink-2, #4a5d63); font-size: var(--cis-fs-md, 1.0625rem); line-height: 1.7; margin: 0 0 1.1em; max-width: 62ch; }
.cis .cis-about-story .cis-head { margin-bottom: 22px; }
.cis .cis-about-facts { background: var(--cis-surface, #fff); padding: clamp(22px, 3vw, 32px); }
.cis .cis-about-facts h3 { margin: 0 0 14px; }
@media (max-width: 860px) { .cis .cis-about { grid-template-columns: 1fr; } }
