/*
Theme Name: Complete Legal Investigations
Theme URI: https://completelegalinv.com
Author: Liberty Spectrum IT
Author URI: https://libertyspectrum.net
Description: Single-page theme for Complete Legal Investigations, Inc. — a certified private-investigation firm serving civil and personal-injury attorneys. Custom, no page builder.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary — client work for Complete Legal Investigations, Inc.
Text Domain: complete-legal
*/

/* ============================================================
   Tokens
   ============================================================ */
:root {
  --cl-navy-900: #0f1a33;
  --cl-navy-800: #14213f;
  --cl-navy-700: #1b2b52;
  --cl-navy-600: #24386a;
  --cl-navy-line: #2a3a63;

  --cl-gold: #c6a253;
  --cl-gold-hover: #b8923f;
  --cl-gold-ink: #a8842f;

  --cl-ink: #1a2036;
  --cl-body: #454e63;
  --cl-muted: #6b7488;

  --cl-bg: #f6f5f1;
  --cl-surface: #ffffff;
  --cl-border: #e5e2d7;

  --cl-navy-fg: #dbe1ee;
  --cl-navy-fg-dim: #9aa6c2;
  --cl-navy-fg-faint: #7f8cab;

  --cl-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --cl-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --cl-container: 1140px;
  --cl-radius-card: 10px;
  --cl-radius-btn: 6px;
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body.cl-theme {
  margin: 0;
  background: var(--cl-bg);
  color: var(--cl-body);
  font-family: var(--cl-sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Zero-specificity so section background images (.cl-*__bg, which set
   height:100%) aren't overridden by this content-image safety net. */
:where(.cl-theme img) { max-width: 100%; height: auto; }

/* Base element rules are wrapped in :where() so they carry ZERO
   specificity — any component class (even a single class) overrides
   them without a specificity fight. */
:where(.cl-theme a) { color: var(--cl-gold-ink); text-decoration: none; }
:where(.cl-theme a:hover) { color: #7c5f1f; }

:where(.cl-theme h1, .cl-theme h2, .cl-theme h3) {
  font-family: var(--cl-serif);
  font-weight: 500;
  color: var(--cl-ink);
  margin: 0;
}
:where(.cl-theme p) { margin: 0; }

/* Accessibility: skip link + screen-reader text */
.cl-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cl-navy-800);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.cl-skip-link:focus { left: 8px; top: 8px; color: #fff; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.cl-container {
  max-width: var(--cl-container);
  margin: 0 auto;
  padding: 0 40px;
}

.cl-section { padding: 88px 0; }

.cl-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cl-gold-ink);
}
.cl-eyebrow--onDark { color: var(--cl-gold); }

.cl-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--cl-gold);
  border-radius: 999px;
  color: var(--cl-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.cl-h2 { font-size: 35px; line-height: 1.2; margin: 14px 0 0; }
.cl-lead { margin-top: 16px; }

/* ============================================================
   Buttons
   ============================================================ */
.cl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--cl-radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.cl-btn--sm { padding: 11px 20px; }
.cl-btn--ghost { padding: 13px 24px; }

/* Colours are prefixed with .cl-theme so they out-specify the global
   `.cl-theme a` link colour — these buttons are <a> elements. */
.cl-theme .cl-btn--primary { background: var(--cl-gold); color: var(--cl-navy-800); }
.cl-theme .cl-btn--primary:hover { background: var(--cl-gold-hover); color: var(--cl-navy-800); }
.cl-theme .cl-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.cl-theme .cl-btn--ghost:hover { border-color: #fff; color: #fff; }

/* ============================================================
   Card
   ============================================================ */
.cl-card {
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius-card);
  box-shadow: 0 1px 2px rgba(20, 33, 63, 0.05);
}

/* ============================================================
   Utility bar
   ============================================================ */
.cl-utilitybar {
  background: var(--cl-navy-800);
  color: #c7cede;
  font-size: 13.5px;
}
.cl-utilitybar .cl-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}
.cl-utilitybar__contact { display: flex; align-items: center; gap: 24px; }
.cl-theme .cl-utilitybar__item { display: flex; align-items: center; gap: 8px; color: #c7cede; }
.cl-theme .cl-utilitybar__item:hover { color: #fff; }
.cl-utilitybar__item svg { width: 15px; height: 15px; stroke: var(--cl-gold); fill: none; }
.cl-utilitybar__social { display: flex; align-items: center; gap: 16px; }
.cl-utilitybar__social a { color: #c7cede; display: flex; }
.cl-utilitybar__social a:hover { color: #fff; }

/* ============================================================
   Header
   ============================================================ */
.cl-header {
  background: var(--cl-navy-700);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cl-header .cl-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.cl-header__logo { display: flex; align-items: center; }
.cl-header__logo img { height: 50px; width: auto; display: block; }
.cl-header__call svg { stroke: var(--cl-navy-800); fill: none; }

/* ============================================================
   Hero
   ============================================================ */
.cl-hero {
  position: relative;
  overflow: hidden;
  background: var(--cl-navy-800);
}
.cl-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
.cl-hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(13, 20, 40, 0.84) 0%,
    rgba(17, 28, 60, 0.72) 48%,
    rgba(17, 28, 60, 0.45) 100%);
}
.cl-hero__skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 200px;
  opacity: 0.45;
}
.cl-hero__inner {
  position: relative;
  max-width: 1000px;
  padding: 104px 40px 116px;
  margin: 0 auto;
}
.cl-theme .cl-hero__title {
  color: #fff;
  font-size: 53px;
  line-height: 1.12;
  font-weight: 500;
  margin: 20px 0 0;
  max-width: 820px;
}
.cl-hero__sub {
  color: #b9c2d6;
  font-size: 19px;
  line-height: 1.6;
  margin: 22px 0 0;
  max-width: 620px;
}
.cl-hero__actions { margin-top: 34px; }
.cl-hero__tagline {
  margin-top: 40px;
  font-size: 13.5px;
  color: #8f9bb8;
  letter-spacing: 0.04em;
}

/* ============================================================
   Trust strip
   ============================================================ */
.cl-trust { background: var(--cl-navy-700); }
.cl-trust__grid {
  max-width: var(--cl-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.cl-trust__cell { background: var(--cl-navy-700); padding: 28px 24px; }
.cl-trust__num { font-family: var(--cl-serif); font-size: 26px; color: #fff; }
.cl-trust__label { font-size: 13.5px; color: var(--cl-navy-fg-dim); margin-top: 4px; }

/* ============================================================
   About
   ============================================================ */
.cl-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.cl-about__body p + p { margin-top: 16px; }
.cl-about__people { display: flex; flex-direction: column; gap: 20px; }
.cl-person { padding: 24px; display: flex; gap: 20px; align-items: flex-start; }
.cl-person__photo {
  width: 78px;
  height: 94px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  display: block;
}
.cl-person__name { font-weight: 600; color: var(--cl-ink); font-size: 16.5px; }
.cl-person__role {
  font-size: 13px;
  color: var(--cl-gold-ink);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cl-person__bio { font-size: 14.5px; margin-top: 8px; }

/* ============================================================
   Services
   ============================================================ */
.cl-services {
  background: var(--cl-surface);
  border-top: 1px solid var(--cl-border);
  border-bottom: 1px solid var(--cl-border);
}
.cl-services__intro { max-width: 640px; }
.cl-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.cl-svc { padding: 28px; }
.cl-svc__icon { width: 24px; height: 24px; stroke: var(--cl-gold-ink); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cl-theme .cl-svc__title {
  font-family: var(--cl-sans);
  font-weight: 600;
  color: var(--cl-ink);
  font-size: 19px;
  margin: 18px 0 8px;
}
.cl-svc__text { font-size: 14.5px; }

/* ============================================================
   Testimonials
   ============================================================ */
.cl-testimonials {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: var(--cl-bg);
}
.cl-testimonials__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.16;
}
.cl-testimonials__inner { position: relative; z-index: 1; }
.cl-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.cl-quote {
  margin: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cl-quote__mark { fill: var(--cl-gold); }
.cl-quote__text {
  font-family: var(--cl-serif);
  font-size: 18.5px;
  line-height: 1.5;
  color: var(--cl-ink);
}
.cl-quote__by { font-size: 13.5px; color: var(--cl-muted); margin-top: auto; }
.cl-quote__by strong { display: block; font-weight: 600; color: var(--cl-ink); }

/* ============================================================
   Resources
   ============================================================ */
.cl-resources {
  background: var(--cl-surface);
  border-top: 1px solid var(--cl-border);
}
.cl-resources__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}
.cl-resources__list { display: flex; flex-direction: column; gap: 14px; }
.cl-reslink { padding: 22px 24px; display: flex; align-items: center; gap: 18px; }
.cl-reslink__name { display: block; font-weight: 600; color: var(--cl-ink); font-size: 15.5px; }
.cl-reslink__meta { font-size: 13.5px; color: var(--cl-muted); }
.cl-reslink__icon { width: 18px; height: 18px; stroke: var(--cl-gold-ink); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   Contact
   ============================================================ */
.cl-contact { background: var(--cl-navy-800); position: relative; z-index: 0; overflow: hidden; }
.cl-contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.1;
  filter: grayscale(1);
}
.cl-contact > .cl-container { position: relative; z-index: 1; }
.cl-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: start;
}
.cl-theme .cl-contact__h2 { color: #fff; }
.cl-contact__lead { margin-top: 16px; color: #b9c2d6; max-width: 440px; }

.cl-form { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.cl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cl-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--cl-navy-fg-dim);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.cl-form input,
.cl-form textarea {
  background: var(--cl-navy-700);
  border: 1px solid #33436f;
  border-radius: var(--cl-radius-btn);
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}
.cl-form textarea { resize: vertical; min-height: 108px; }
.cl-form input:focus,
.cl-form textarea:focus { outline: 2px solid var(--cl-gold); outline-offset: 1px; }
.cl-form__submit { align-self: flex-start; margin-top: 4px; }

.cl-contact__details { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.cl-contact__k {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cl-navy-fg-faint);
}
.cl-contact__v { color: var(--cl-navy-fg); margin-top: 8px; line-height: 1.6; }
.cl-contact__v a { color: var(--cl-gold); }
.cl-contact__map {
  margin-top: 4px;
  border-radius: var(--cl-radius-card);
  overflow: hidden;
  border: 1px solid var(--cl-navy-line);
  height: 184px;
  background: var(--cl-navy-700);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cl-contact__map svg { position: absolute; top: 14px; left: 14px; width: 22px; height: 22px; stroke: #5b6a92; fill: none; }
.cl-contact__map span { color: var(--cl-navy-fg-faint); font-size: 12.5px; letter-spacing: 0.03em; text-align: center; padding: 0 24px; }

/* Fluent Forms — align to the dark contact panel (second pass will refine) */
.cl-contact .ff-el-input--label label,
.cl-contact .ff_ffn_wrapper label { color: var(--cl-navy-fg-dim); font-weight: 600; letter-spacing: 0.04em; }
.cl-contact .frm-fluent-form input:not([type=submit]),
.cl-contact .frm-fluent-form textarea,
.cl-contact .frm-fluent-form select {
  background: var(--cl-navy-700);
  border: 1px solid #33436f;
  color: #fff;
  border-radius: var(--cl-radius-btn);
}
.cl-contact .frm-fluent-form .ff-btn-submit {
  background: var(--cl-gold);
  color: var(--cl-navy-800);
  border: 0;
  font-weight: 600;
  border-radius: var(--cl-radius-btn);
  padding: 14px 26px;
}
.cl-contact .frm-fluent-form .ff-btn-submit:hover { background: var(--cl-gold-hover); }

/* ============================================================
   Footer
   ============================================================ */
.cl-footer { background: var(--cl-navy-900); color: #8a95b2; }
.cl-footer .cl-container {
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cl-footer__brand { display: flex; align-items: center; gap: 16px; }
.cl-footer__brand img { height: 34px; width: auto; display: block; }
.cl-footer__copy { font-size: 12px; }
.cl-footer__links { display: flex; gap: 22px; font-size: 13px; }
.cl-footer__links a { color: #8a95b2; }
.cl-footer__links a:hover { color: #fff; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .cl-container { padding: 0 22px; }
  .cl-section { padding: 56px 0; }

  .cl-utilitybar { font-size: 12.5px; }
  .cl-utilitybar .cl-container { height: auto; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px 18px; }
  .cl-utilitybar__contact { gap: 14px 18px; flex-wrap: wrap; }

  .cl-header .cl-container { height: 62px; }
  .cl-header__logo img { height: 34px; }
  .cl-header__call { padding: 9px 15px; font-size: 13.5px; }
  .cl-header__call .cl-header__call-full { display: none; }

  .cl-hero__inner { padding: 52px 22px 60px; }
  .cl-hero__title { font-size: 32px; margin-top: 14px; }
  .cl-hero__sub { font-size: 16px; margin-top: 16px; }
  .cl-hero__actions { margin-top: 26px; }
  .cl-hero__actions .cl-btn { width: 100%; justify-content: center; }
  .cl-hero__skyline { height: 110px; }
  .cl-hero__tagline { margin-top: 22px; font-size: 12.5px; }

  .cl-trust__grid { grid-template-columns: 1fr 1fr; }
  .cl-trust__cell { padding: 22px; }
  .cl-trust__num { font-size: 21px; }
  .cl-trust__label { font-size: 12px; }

  .cl-h2 { font-size: 27px; }
  .cl-about__grid { grid-template-columns: 1fr; gap: 28px; }
  .cl-person { padding: 20px; gap: 16px; }
  .cl-person__photo { width: 60px; height: 74px; }

  .cl-services__grid { grid-template-columns: 1fr; gap: 14px; margin-top: 26px; }
  .cl-svc { padding: 22px; }
  .cl-svc__title { font-size: 17px; margin: 12px 0 6px; }

  .cl-testimonials__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .cl-quote { padding: 24px; }
  .cl-quote__text { font-size: 16.5px; }

  .cl-resources__grid { grid-template-columns: 1fr; gap: 24px; }

  .cl-contact__grid { grid-template-columns: 1fr; gap: 34px; }
  .cl-form { max-width: none; }
  .cl-form input, .cl-form textarea { min-height: 48px; }
  .cl-contact__details { border-top: 1px solid var(--cl-navy-line); padding-top: 26px; }

  .cl-footer .cl-container { padding: 34px 22px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .cl-footer__links { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .cl-form__row { grid-template-columns: 1fr; }
  .cl-hero__title { font-size: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
