/* =============================================================
   creditcheck.co.uk — Master Stylesheet
   Version 0.1 (Phase 1 reskin)
   Design system: Verification Green #1B8A50 + Slate #2A3340
   Referral bridge: First Report blue #1559A8 (hand-off touchpoints only)
   Typeface: Inter (Google Fonts)
   Single source. Numbered sections. Zero inline styles.
   Architecture mirrors the companyinformation.com system, reskinned.
   ============================================================= */

/* ── 1. GOOGLE FONTS ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── 2. CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  /* Brand — verification green + slate (two primaries, per branding doc §3) */
  --green:         #1B8A50;
  --green-dark:    #0F5C36;
  --green-light:   #E7F4EC;
  --green-border:  rgba(27,138,80,0.28);
  --slate:         #2A3340;
  --slate-mid:     #3C4757;

  /* First Report referral bridge — blue, hand-off touchpoints ONLY (§9A) */
  --fr-blue:       #1559A8;
  --fr-navy:       #0B2E5E;
  --fr-blue-light: #EAF1FA;

  /* Neutral greys */
  --white:         #FFFFFF;
  --gray-900:      #1A1F27;
  --gray-700:      #3C4757;
  --gray-600:      #5A6573;
  --gray-500:      #9AA3AD;
  --gray-300:      #CBD2D9;
  --gray-200:      #E3E8EC;
  --gray-100:      #EEF1F3;
  --gray-50:       #F7F9FA;

  /* Risk / functional (reserved for report-style components) */
  --risk-low-bg:   #DCFCE7;  --risk-low-text:  #166534;
  --risk-med-bg:   #FEF3C7;  --risk-med-text:  #92400E;
  --risk-high-bg:  #FECACA;  --risk-high-text: #991B1B;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  /* Sizing */
  --max-width:  1080px;
  --nav-height: 62px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(16,30,40,0.08), 0 1px 2px rgba(16,30,40,0.04);
  --shadow-md: 0 4px 12px rgba(16,30,40,0.10), 0 2px 4px rgba(16,30,40,0.06);
  --shadow-lg: 0 10px 30px rgba(16,30,40,0.12), 0 4px 8px rgba(16,30,40,0.06);

  --transition: 150ms ease;
}

/* ── 3. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--gray-50);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); font-size: 1rem; }
strong, b { font-weight: 700; }

/* ── 4. TYPOGRAPHY SCALE ──────────────────────────────────── */
h1, .h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.18; letter-spacing: -0.02em;
  color: var(--slate); margin-bottom: 0.5rem;
}
h2, .h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--slate); margin-bottom: 0.6rem;
}
h3, .h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 700; line-height: 1.3; color: var(--slate); margin-bottom: 0.5rem;
}
h4 { font-size: 1.05rem; font-weight: 700; color: var(--slate); margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--slate-mid); }
.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--green);
}
.muted { color: var(--gray-600); }
.small { font-size: 0.9rem; }

/* ── 5. LAYOUT UTILITIES ──────────────────────────────────── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 2.5rem 0; }
.section--tight { padding: 1.5rem 0; }
.page-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.media-full { width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
@media (min-width: 860px) {
  .page-layout--sidebar { grid-template-columns: minmax(0,1.9fr) minmax(0,1fr); }
}
.stack > * + * { margin-top: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── 6. ACCESSIBILITY ─────────────────────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--green); color: var(--white); padding: 0.6rem 1rem; border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.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;
}

/* ── 7. NAVIGATION ────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.nav__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--nav-height); }
.nav__brand { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; flex-shrink: 0; }
.nav__logo { font-size: 1.2rem; font-weight: 800; color: var(--slate); letter-spacing: -0.02em; white-space: nowrap; }
.nav__logo:hover { text-decoration: none; }
.nav__logo .accent { color: var(--green); }
.nav__logo-img { display: block; height: 45px; width: auto; }
.nav__logo .tick { color: var(--green); }
.nav__byline { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.03em; color: var(--gray-600); text-transform: uppercase; }
.nav__byline .fr { color: var(--fr-blue); font-weight: 700; }
.nav__links { display: flex; gap: 0.1rem; align-items: center; }
.nav__link {
  color: var(--slate-mid); font-weight: 600; font-size: 0.9rem; white-space: nowrap;
  padding: 0.5rem 0.55rem; border-radius: var(--radius-sm);
}
.nav__link:hover { color: var(--green-dark); background: var(--green-light); text-decoration: none; }
.nav__link--active { color: var(--green-dark); background: var(--green-light); }
.nav__burger {
  display: none; flex-direction: column; gap: 5px; padding: 0.5rem; margin-left: auto;
}
.nav__burger span { width: 24px; height: 2px; background: var(--slate); border-radius: 2px; }

/* ── 8. HERO ──────────────────────────────────────────────── */
.hero { padding: 2.5rem 0 1.5rem; }
.hero__title .accent { color: var(--green); }
.hero__intro { max-width: 60ch; }

/* ── 9. SEARCH CARD (referral gateway — FR-blue bridge) ───── */
.search-card {
  background: var(--white);
  border: 1px solid var(--fr-blue-light);
  border-top: 4px solid var(--fr-blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}
.search-card__title { font-size: 1.2rem; margin-bottom: 0.25rem; }
.search-card__hint { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 1rem; }
.search-card__label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; color: var(--slate); }
.search-card__input {
  width: 100%; padding: 0.8rem 0.9rem; border: 1px solid var(--gray-300);
  border-radius: var(--radius-md); color: var(--slate); background: var(--white);
}
.search-card__input:focus { outline: none; border-color: var(--fr-blue); box-shadow: 0 0 0 3px rgba(21,89,168,0.15); }
.search-card__row { display: flex; gap: 0.6rem; margin-top: 0.75rem; }
.search-card__row .search-card__input { flex: 1; }
.fr-lockup { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--gray-600); margin-top: 0.9rem; }
.fr-lockup strong { color: var(--fr-blue); }

/* ── 10. BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 700; font-size: 1rem; padding: 0.8rem 1.3rem;
  border-radius: var(--radius-md); transition: background var(--transition), transform var(--transition);
  text-align: center; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }
.btn--fr { background: var(--fr-blue); color: var(--white); }       /* outbound to First Report */
.btn--fr:hover { background: var(--fr-navy); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--green-dark); border: 1px solid var(--green-border); }
.btn--ghost:hover { background: var(--green-light); color: var(--green-dark); }
.btn--block { width: 100%; }

/* ── 11. CARDS (generic + feature) ────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.card__title { display: flex; align-items: center; gap: 0.5rem; }
.feature { border-top: 3px solid var(--green); }
.feature__name { color: var(--green-dark); font-weight: 700; }

/* ── 12. NOTICE / SERVICE TILES (replaces bootstrap alerts) ─ */
.notice { border-radius: var(--radius-md); padding: 1rem 1.1rem; border: 1px solid; }
.notice__title { font-weight: 700; margin-bottom: 0.25rem; }
.notice--green  { background: var(--green-light); border-color: var(--green-border); }
.notice--green .notice__title { color: var(--green-dark); }
.notice--slate  { background: var(--gray-100); border-color: var(--gray-200); }
.notice--slate .notice__title { color: var(--slate); }
.notice--fr     { background: var(--fr-blue-light); border-color: rgba(21,89,168,0.25); }
.notice--fr .notice__title { color: var(--fr-blue); }

/* ── 13. DEFINITION / Q&A LIST ────────────────────────────── */
.qa { max-width: 100%; }  /* was 75ch — match the full container width used site-wide (terms/FAQ + Q&A blocks) */
.qa__item + .qa__item { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--gray-200); }
.qa__q { font-weight: 700; color: var(--slate); margin-bottom: 0.3rem; }
.bullets { padding-left: 1.2rem; }
.bullets li { position: relative; padding-left: 1.1rem; margin-bottom: 0.4rem; list-style: none; }
.bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ── 14. REFERRAL CTA STRIP (outbound to First Report) ────── */
.refer {
  background: var(--fr-blue-light); border: 1px solid rgba(21,89,168,0.2);
  border-radius: var(--radius-lg); padding: 1.25rem 1.4rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between;
}
.refer__text { color: var(--fr-navy); }

/* ── 15. BREADCRUMB ───────────────────────────────────────── */
.breadcrumb { font-size: 0.85rem; color: var(--gray-600); padding: 0.9rem 0 0; }
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--green-dark); }

/* ── 16. SECTION HEADER ───────────────────────────────────── */
.section-header { margin-bottom: 1.25rem; }
.section-header h2 { margin-bottom: 0.25rem; }

/* ── 17. FOOTER ───────────────────────────────────────────── */
.footer { background: var(--slate); color: var(--gray-300); margin-top: 3rem; padding: 2rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.footer__brand { color: var(--white); font-weight: 700; }
.footer__brand .accent { color: var(--green); }
.footer__byline { font-size: 0.8rem; color: var(--gray-500); display: block; font-weight: 400; }
.footer__byline .fr { color: #8FB6E6; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.footer__link { color: var(--gray-300); font-size: 0.9rem; }
.footer__link:hover { color: var(--white); }
.footer__copy { font-size: 0.85rem; color: var(--gray-500); }

/* ── 18. UTILITIES ────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.img-rounded { border-radius: var(--radius-md); }
.badge-quote { font-weight: 700; color: var(--green-dark); }

/* ── 19. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 992px) {
  .nav__links {
    display: none; position: absolute; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); padding: 0.5rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__link { padding: 0.75rem 0.7rem; }
  .nav__burger { display: flex; }
  .nav__brand { margin-right: 0; }
}

/* ── 20. PRINT ────────────────────────────────────────────── */
@media print {
  .nav, .footer, .search-card, .refer, .nav__burger { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
