/* =============================================================
   creditreports.co.uk — Master Stylesheet
   Version 0.1 (ground-up rebuild)
   Design system: Report Teal #0E7C86 + Slate #2A3340
   Referral bridge: First Report blue #1559A8 (hand-off touchpoints only)
   Typeface: Inter (Google Fonts)
   Single source. Numbered sections. Zero inline styles.
   Architecture reuses the companyinformation.com / creditcheck system,
   reskinned (teal) and rewritten for the B2B company-credit-report intent.
   ============================================================= */

/* ── 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 — report teal + slate (two primaries; distinct from CI.com blue & creditcheck green) */
  --teal:         #0E7C86;
  --teal-dark:    #0A5961;
  --teal-light:   #E4F2F3;
  --teal-border:  rgba(14,124,134,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(--teal-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); 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(--teal);
}
.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(--teal); 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(--teal); 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(--teal); }
.nav__logo .tick { color: var(--teal); }
.nav__logo .mark { color: var(--teal); font-size: 0.95em; }
.nav__logo-img { display: block; height: 45px; width: auto; }
.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(--teal-dark); background: var(--teal-light); text-decoration: none; }
.nav__link--active { color: var(--teal-dark); background: var(--teal-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(--teal); }
.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(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-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(--teal-dark); border: 1px solid var(--teal-border); }
.btn--ghost:hover { background: var(--teal-light); color: var(--teal-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(--teal); }
.feature__name { color: var(--teal-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--teal  { background: var(--teal-light); border-color: var(--teal-border); }
.notice--teal .notice__title { color: var(--teal-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: 75ch; }
.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(--teal); 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(--teal-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(--teal); }
.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(--teal-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. GRID-2 / FEATURE LIST ────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.featurelist { display: grid; grid-template-columns: 1fr; gap: 0.6rem 1.5rem; }
@media (min-width: 620px) { .featurelist { grid-template-columns: repeat(2, 1fr); } }
.featurelist li { position: relative; padding-left: 1.5rem; }
.featurelist li::before { content: "\2713"; position: absolute; left: 0; top: 0.05rem; color: var(--teal); font-weight: 700; }
.featurelist li strong { color: var(--slate); }
.featurelist li span { color: var(--gray-600); font-size: 0.95rem; }

/* ── 21. PRICING TILES ────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 760px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price-tile {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.price-tile--featured { border: 1px solid var(--teal-border); border-top: 4px solid var(--teal); box-shadow: var(--shadow-md); }
.price-tile__tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.4rem; }
.price-tile__name { font-weight: 700; font-size: 1.1rem; color: var(--slate); margin-bottom: 0.5rem; }
.price-tile__amount { font-size: 2rem; font-weight: 800; color: var(--slate); letter-spacing: -0.02em; line-height: 1.1; }
.price-tile__amount small { font-size: 0.85rem; font-weight: 600; color: var(--gray-600); }
.price-tile__meta { font-size: 0.9rem; color: var(--gray-600); margin: 0.25rem 0 1rem; }
.price-tile ul { margin: 0 0 1.25rem; }
.price-tile li { position: relative; padding-left: 1.3rem; margin-bottom: 0.4rem; font-size: 0.95rem; }
.price-tile li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.price-tile .btn { margin-top: auto; }

/* ── 22. FAQ ACCORDION (native details/summary) ───────────── */
.faqs { max-width: 100%; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-md); background: var(--white); margin-bottom: 0.75rem; box-shadow: var(--shadow-sm); }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 1rem 1.1rem; font-weight: 700; color: var(--slate);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; font-weight: 700; flex-shrink: 0; }
.faq-item[open] > summary::after { content: "\2212"; }
.faq-item__body { padding: 0 1.1rem 1.1rem; }
.faq-item__body p:first-child { margin-top: 0; }

/* ── 23. PROSE (legal / long-form) ────────────────────────── */
.prose { max-width: 100%; }
.prose h2 { margin-top: 1.75rem; }
.prose ul { margin: 0 0 1rem; }
.prose ul li { position: relative; padding-left: 1.2rem; margin-bottom: 0.4rem; }
.prose ul li::before { content: "\2022"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ── 25. REPORT SPECIMEN (annotated sample report) ───────── */
.specimen-banner {
  background: var(--fr-blue-light); border: 1px solid rgba(21,89,168,0.25);
  border-left: 4px solid var(--fr-blue); border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem; margin-bottom: 1.5rem; font-size: 0.92rem; color: var(--fr-navy);
}
.report { display: block; }
.report-block { margin-bottom: 1.5rem; }
.report-bar {
  background: var(--slate); color: var(--white); font-weight: 700; letter-spacing: 0.01em;
  padding: 0.6rem 0.9rem; border-radius: var(--radius-md) var(--radius-md) 0 0; font-size: 1rem;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rtable { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--white);
  border: 1px solid var(--gray-200); border-top: none; }
.rtable th, .rtable td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
.rtable thead th { background: var(--teal-light); color: var(--teal-dark); font-weight: 700; border-bottom: 1px solid var(--teal-border); white-space: nowrap; }
.rtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtable .lbl { color: var(--slate); font-weight: 600; }
.rtable .sub { color: var(--gray-600); font-weight: 400; font-size: 0.86rem; }
.rtable tr.total td { border-top: 2px solid var(--gray-300); font-weight: 700; background: var(--gray-50); }
.rtable tr:last-child td { border-bottom: none; }
.kv td:first-child { color: var(--gray-700); font-weight: 600; width: 46%; }

.risk-badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.risk-low    { background: var(--risk-low-bg);  color: var(--risk-low-text); }
.risk-medium { background: var(--risk-med-bg);  color: var(--risk-med-text); }
.risk-high   { background: var(--risk-high-bg); color: var(--risk-high-text); }

.scorebar { display: flex; gap: 3px; margin: 0.4rem 0; }
.scorebar span { flex: 1; height: 12px; border-radius: 2px; background: var(--gray-200); }
.scorebar span.on { background: var(--teal); }
.score-big { font-size: 2.2rem; font-weight: 800; color: var(--teal-dark); line-height: 1; }

.checklist-row { display: grid; grid-template-columns: minmax(120px,1fr) auto minmax(0,2.4fr); gap: 0.5rem 0.9rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--gray-200); align-items: start; }
.checklist-row:last-child { border-bottom: none; }
.ck { font-weight: 700; }
.ck--tick { color: var(--teal-dark); } .ck--cross { color: var(--risk-high-text); } .ck--neutral { color: var(--gray-600); }
.checklist-row .lbl { font-weight: 600; color: var(--slate); }

.annot {
  background: var(--teal-light); border: 1px solid var(--teal-border); border-left: 4px solid var(--teal);
  border-radius: var(--radius-md); padding: 0.85rem 1rem; margin: 0.75rem 0 0; font-size: 0.92rem;
}
.annot__title { font-weight: 700; color: var(--teal-dark); margin-bottom: 0.2rem; }
.report-foot { border-top: none; border-radius: 0 0 var(--radius-md) var(--radius-md); }

/* ── 26. PRINT ────────────────────────────────────────────── */
@media print {
  .nav, .footer, .search-card, .refer, .nav__burger { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
  .card, .price-tile, .notice, .faq-item { box-shadow: none; border-color: #ccc; }
}
