/* ATR Forensics — Site Styles
   Brand palette from ATR Preserve theme.qss */

:root {
  --navy: #1A2B4A;
  --navy-2: #243556;
  --blue: #2E7DD1;
  --blue-dark: #2468B5;
  --blue-light: #A8C4E0;
  --light: #F4F6FA;
  --light-2: #E8EEF4;
  --green: #1A7A3C;
  --green-dark: #156330;
  --red: #C62828;
  --red-dark: #A31515;
  --text: #1A2B4A;
  --text-muted: #607D8B;
  --border: #CFD8DC;
  --white: #FFFFFF;

  --container: 1200px;
  --container-narrow: 880px;
  --pad-y: 96px;
  --pad-y-sm: 56px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(26, 43, 74, 0.06), 0 1px 2px rgba(26, 43, 74, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 43, 74, 0.08), 0 2px 4px rgba(26, 43, 74, 0.04);
  --shadow-lg: 0 12px 32px rgba(26, 43, 74, 0.12), 0 4px 8px rgba(26, 43, 74, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1rem 1.25rem; }
ul li, ol li { margin-bottom: 0.4rem; }

strong { font-weight: 600; color: var(--navy); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: var(--container-narrow); }

section { padding: var(--pad-y) 0; }
section.section--sm { padding: var(--pad-y-sm) 0; }

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }
.bg-light { background: var(--light); }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-blue h1, .bg-blue h2, .bg-blue h3 { color: var(--white); }
.bg-red { background: var(--red); color: var(--white); }
.bg-red h1, .bg-red h2, .bg-red h3 { color: var(--white); }

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--text-muted); }
.bg-navy .lead, .bg-blue .lead, .bg-red .lead { color: var(--blue-light); }
.bg-red .lead { color: rgba(255,255,255,0.9); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.bg-navy .eyebrow, .bg-blue .eyebrow { color: var(--blue-light); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__brand img {
  height: 60px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__brand-text .brand-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.nav__brand-text .brand-tag  { font-size: 0.7rem; color: var(--text-muted); }

.nav__links {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
}
.nav__links a {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.nav__links a:hover { background: var(--light); color: var(--navy); }
.nav__links a.active { background: var(--light); color: var(--blue); }

.nav__cta {
  background: var(--green);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav__cta:hover { background: var(--green-dark); color: var(--white); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: all 0.2s; }

/* Dropdown for Services and Practice Areas */
.nav__item--dropdown { position: relative; }
.nav__item--dropdown > a::after {
  content: "▾";
  margin-left: 4px;
  font-size: 0.7em;
  opacity: 0.6;
}
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 280px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  list-style: none;
  margin: 0;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown li { margin: 0; }
.nav__dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--navy);
}
.nav__dropdown a:hover { background: var(--light); color: var(--blue); }

@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 0;
  }
  .nav__links.open a { padding: 14px 16px; width: 100%; }
  .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 16px; min-width: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn--primary { background: var(--green); color: white; border-color: var(--green); }
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: white; }

.btn--secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn--secondary:hover { background: var(--white); color: var(--navy); }

.btn--blue { background: var(--blue); color: white; border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: white; }

.btn--alert { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--alert:hover { background: var(--navy); color: var(--white); }

.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero h1 { margin-bottom: 24px; max-width: 900px; }
.hero .lead { max-width: 720px; margin-bottom: 36px; }
.hero--center { text-align: center; }
.hero--center h1, .hero--center .lead { margin-left: auto; margin-right: auto; }
.hero--center .btn-group { justify-content: center; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--blue);
  color: white;
  padding: 18px 0;
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.trust-bar .container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.trust-bar .sep { opacity: 0.5; }

/* ---------- Cert strip ---------- */
.cert-strip { background: var(--light); padding: 56px 0; text-align: center; }
.cert-strip h3 { color: var(--navy); margin-bottom: 32px; }
.cert-grid {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
}
.cert-pill {
  display: inline-block;
  padding: 10px 18px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  background: white;
}
.cert-pill .cert-pill__abbr { color: var(--blue); }

/* ---------- Pillars / Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .grid-2 { grid-template-columns: 1fr; }
}

.pillar {
  padding: 32px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.pillar__icon {
  width: 48px; height: 48px;
  background: var(--light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--blue);
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--text); }

/* ---------- Service / scenario cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 1100px) and (min-width: 881px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
  color: inherit;
}
.card h3 { color: var(--navy); margin-bottom: 12px; font-size: 1.15rem; }
.card p { color: var(--text); margin-bottom: 20px; flex-grow: 1; font-size: 0.95rem; }
.card__link {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}
.card__link::after { content: " →"; transition: margin 0.15s; }
.card:hover .card__link::after { margin-left: 4px; }

.card__scenario {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Practice areas strip (homepage) ---------- */
.practice-strip { background: var(--navy); padding: 80px 0; color: white; }
.practice-strip h2 { color: white; text-align: center; margin-bottom: 40px; }
.practice-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .practice-strip__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .practice-strip__grid { grid-template-columns: 1fr; } }
.practice-tile {
  background: var(--navy-2);
  padding: 24px;
  border-radius: var(--radius);
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.15s ease;
}
.practice-tile:hover { background: var(--blue); border-color: var(--blue); color: white; }
.practice-tile strong { display: block; color: white; font-size: 0.98rem; }

/* ---------- CTA band ---------- */
.cta-band { padding: 80px 0; text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 32px; }
.cta-band .btn-group { justify-content: center; }

/* ---------- Methodology / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 28px;
  background: white;
  border-radius: var(--radius);
  border-top: 4px solid var(--blue);
}
.step__num {
  font-size: 2rem; font-weight: 700; color: var(--blue); display: block; margin-bottom: 8px;
  line-height: 1;
}
.step h4 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { font-size: 0.92rem; color: var(--text); }

/* ---------- Capability lists ---------- */
.capabilities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
@media (max-width: 880px) { .capabilities { grid-template-columns: 1fr; } }
.cap-group h4 { color: var(--navy); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); display: inline-block; }
.cap-group ul { margin-left: 1.1rem; }
.cap-group li { color: var(--text); font-size: 0.95rem; margin-bottom: 6px; }

/* ---------- Authority block ---------- */
.authority { background: var(--navy); color: white; padding: 80px 0; }
.authority h2 { color: white; max-width: 800px; margin-bottom: 20px; }
.authority p { color: rgba(255,255,255,0.88); max-width: 800px; }
.authority em { color: var(--blue-light); font-style: normal; font-weight: 500; }
.authority ul { color: rgba(255,255,255,0.88); margin-left: 1.2rem; }
.authority li { margin-bottom: 8px; }

/* ---------- Testimony groups ---------- */
.testimony-group h2 { padding-bottom: 12px; border-bottom: 3px solid var(--blue); display: inline-block; margin-bottom: 24px; }
.testimony-group ul { list-style: none; margin-left: 0; }
.testimony-group li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.testimony-group li:last-child { border-bottom: 0; }
.testimony-group li em { font-weight: 600; color: var(--navy); font-style: italic; }
.testimony-group li .testimony-role { color: var(--text-muted); font-size: 0.88rem; margin-left: 8px; }

.testimony-anchors {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px 0;
}
.testimony-anchors a {
  padding: 8px 16px; background: rgba(255,255,255,0.15); border-radius: 999px; color: white; font-size: 0.88rem; font-weight: 500;
}
.testimony-anchors a:hover { background: white; color: var(--blue); }

/* ---------- Insights cards ---------- */
.insight-card {
  background: white;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: all 0.15s ease;
}
.insight-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue); transform: translateY(-2px); }
.insight-card__cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); font-weight: 700; margin-bottom: 10px; }
.insight-card h4 { margin-bottom: 10px; font-size: 1.05rem; }
.insight-card p { font-size: 0.92rem; color: var(--text-muted); flex-grow: 1; }
.insight-card a { font-weight: 600; margin-top: 12px; }

/* ---------- Forms ---------- */
.form-card { background: white; padding: 36px; border-radius: var(--radius); border: 1px solid var(--border); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: white;
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--blue); }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; font-style: italic; }

.contact-card { background: var(--navy); color: white; padding: 36px; border-radius: var(--radius); }
.contact-card h3 { color: white; }
.contact-card__item { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-card__item:last-child { border-bottom: 0; }
.contact-card__item .lbl { display: block; color: var(--blue-light); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.contact-card__item .val { color: white; font-size: 1.02rem; font-weight: 500; }
.contact-card__item .val a { color: white; }
.contact-card__item .val a:hover { color: var(--blue-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
  font-size: 0.92rem;
}
.site-footer h4 { color: white; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: white; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 500px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand img { background: white; padding: 8px 12px; border-radius: 4px; max-width: 240px; margin-bottom: 16px; }
.site-footer__brand p { color: var(--blue-light); font-size: 0.88rem; }
.site-footer__bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; color: rgba(255,255,255,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Misc page accents ---------- */
.lead-block {
  border-left: 4px solid var(--blue);
  padding: 4px 0 4px 24px;
  margin: 0 0 24px;
}
.disclaimer-note { font-size: 0.82rem; color: var(--text-muted); font-style: italic; text-align: center; margin-top: 24px; }
.section-eyebrow-row { text-align: center; margin-bottom: 12px; }

.pull-quote {
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--navy);
  font-weight: 500;
  border-left: 4px solid var(--blue);
  padding-left: 24px;
  margin: 24px 0;
  max-width: 800px;
}

.matter-marquee {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.8;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.matter-marquee em { font-style: italic; color: var(--navy); font-weight: 500; }

/* ---------- Card icons ---------- */
.card__icon {
  width: 48px; height: 48px;
  background: var(--light);
  color: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background 0.15s ease, color 0.15s ease;
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { background: var(--blue); color: white; }

/* Dark variant card (used inside navy "Emerging Tech" section) */
.bg-navy .card,
.card--dark {
  background: var(--navy-2);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
}
.bg-navy .card h3,
.card--dark h3 { color: white; }
.bg-navy .card p,
.card--dark p { color: rgba(255,255,255,0.78); }
.bg-navy .card:hover,
.card--dark:hover { background: var(--navy); border-color: var(--blue); color: rgba(255,255,255,0.95); }
.bg-navy .card .card__icon,
.card--dark .card__icon { background: rgba(46, 125, 209, 0.15); color: var(--blue-light); }
.bg-navy .card:hover .card__icon,
.card--dark:hover .card__icon { background: var(--blue); color: white; }

/* ---------- Matter categories (homepage) ---------- */
.matter-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}
@media (max-width: 700px) { .matter-categories { grid-template-columns: 1fr; } }
.matter-cat {
  background: var(--light);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ---------- Footer disclaimer ---------- */
.site-footer__disclaimer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  text-align: center;
}

/* Smooth fade-in on scroll (very subtle) */
@media (prefers-reduced-motion: no-preference) {
  section { animation: fadeUp 0.6s ease both; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
