/* ==========================================================================
   Young & Associates Investigations, LLC
   Brand palette taken from the firm's business card:
   deep navy band + oxblood red name treatment.
   ========================================================================== */

:root {
  --navy-900: #0b1a2b;
  --navy-800: #12283f;
  --navy-700: #1b3a5f;
  --navy-600: #27507e;
  --navy-500: #3a6ba5;

  --red-700: #7c1717;
  --red-600: #8e1c1c;
  --red-500: #a82323;

  --ink: #16202c;
  --slate: #4b5a6b;
  --slate-light: #6b7a8c;

  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --bg-tint: #eef2f7;
  --border: #dae1ea;

  --sans: "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;

  --shadow-sm: 0 1px 2px rgba(11, 26, 43, .06), 0 2px 6px rgba(11, 26, 43, .05);
  --shadow-md: 0 4px 12px rgba(11, 26, 43, .08), 0 12px 28px rgba(11, 26, 43, .07);
  --shadow-lg: 0 18px 48px rgba(11, 26, 43, .16);

  --wrap: 1160px;
  --radius: 4px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-600); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--navy-800);
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

/* ------------------------------------------------------------- layout --- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy-800); color: #dbe5f0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #7fa8d8; }
.hero .eyebrow { color: #8fb8e6; }

.lede { font-size: 1.12rem; color: var(--slate); max-width: 62ch; }
.section--navy .lede { color: #b9c9db; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.is-centered .lede { margin-left: auto; margin-right: auto; }

.rule {
  width: 62px; height: 3px; border: 0; margin: 0 0 24px;
  background: var(--red-600);
}
.is-centered .rule { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px;
  font-family: inherit; font-size: .93rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.btn--primary:hover { background: var(--red-700); border-color: var(--red-700); color: #fff; }
.btn--navy { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn--navy:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--navy-800); }
.btn--outline { background: transparent; border-color: var(--navy-700); color: var(--navy-700); }
.btn--outline:hover { background: var(--navy-700); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------- header --- */
.utility {
  background: var(--navy-900);
  color: #9fb4cc;
  font-size: .82rem;
  letter-spacing: .02em;
}
.utility .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 40px; flex-wrap: wrap;
}
.utility a { color: #cfdcea; text-decoration: none; }
.utility a:hover { color: #fff; }
.utility__meta { display: flex; gap: 22px; flex-wrap: wrap; }
.utility__meta span { white-space: nowrap; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 84px;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name {
  font-size: 1.06rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.01em;
}
.brand__name em { font-style: normal; color: var(--red-600); }
.brand__tag {
  font-size: .66rem; font-weight: 700; letter-spacing: .19em;
  text-transform: uppercase; color: var(--slate-light);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative;
  font-size: .92rem; font-weight: 700; letter-spacing: .01em;
  color: var(--navy-800); text-decoration: none; padding: 6px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--red-600); transform: scaleX(0);
  transform-origin: left; transition: transform .2s;
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--red-600); }

.nav-toggle {
  display: none; width: 46px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: var(--navy-800); transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------- hero --- */
.hero {
  position: relative;
  background:
    linear-gradient(115deg, rgba(11, 26, 43, .93) 0%, rgba(18, 40, 63, .88) 45%, rgba(27, 58, 95, .82) 100%),
    radial-gradient(1100px 520px at 78% 12%, rgba(58, 107, 165, .55), transparent 70%),
    var(--navy-900);
  color: #e3ebf4;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 9px);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding: 104px 0 84px; max-width: 800px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #8fb8e6; }
.hero__lede { font-size: 1.2rem; color: #c3d3e5; max-width: 60ch; margin-bottom: 32px; }
.hero .btn-row { margin-bottom: 40px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hero__badges li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 15px; margin: 0;
  font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #cfe0f2;
  border: 1px solid rgba(143, 184, 230, .35);
  border-radius: 999px;
  background: rgba(11, 26, 43, .35);
}
.hero__badges svg { width: 15px; height: 15px; flex: none; }

.page-hero {
  background:
    linear-gradient(115deg, rgba(11, 26, 43, .94), rgba(27, 58, 95, .86)),
    var(--navy-800);
  color: #d7e3f0;
  padding: 74px 0 66px;
}
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero .lede { color: #bccfe2; }
.crumbs { font-size: .82rem; color: #8fa9c4; margin-bottom: 18px; letter-spacing: .04em; }
.crumbs a { color: #b9cfe6; text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* ------------------------------------------------------------ credbar --- */
.credbar { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.credbar .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding-top: 30px; padding-bottom: 30px; text-align: center;
}
.credbar__num {
  display: block; font-size: 2rem; font-weight: 800; color: var(--navy-700); line-height: 1.1;
}
.credbar__label {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate-light);
}

/* -------------------------------------------------------------- cards --- */
.card {
  display: flex; flex-direction: column;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-top-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-top-color: var(--red-600); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .98rem; margin-bottom: 16px; }
.card ul { color: var(--slate); font-size: .95rem; }
.card__icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  color: var(--navy-600);
}
.card__link {
  margin-top: auto; padding-top: 6px;
  font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-600); text-decoration: none;
}
.card__link:hover { color: var(--red-700); }
.card__link::after { content: " \2192"; }

.card--plain { border-top-color: var(--border); }
.card--plain:hover { transform: none; box-shadow: var(--shadow-sm); border-top-color: var(--border); }

/* ------------------------------------------------------------ feature --- */
.feature {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.feature__panel {
  padding: 40px 36px;
  background: var(--navy-800);
  color: #cddced;
  border-radius: var(--radius);
  border-left: 4px solid var(--red-600);
  box-shadow: var(--shadow-lg);
}
.feature__panel h3 { color: #fff; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 32px; margin-bottom: 14px; font-size: .99rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 15px; height: 9px;
  border-left: 2.5px solid var(--red-500);
  border-bottom: 2.5px solid var(--red-500);
  transform: rotate(-45deg);
}
.checklist--light li::before { border-color: #7fb0e8; }

/* -------------------------------------------------------------- steps --- */
.steps { counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 12px;
  font-size: 1.6rem; font-weight: 800; color: var(--red-600); letter-spacing: -.02em;
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--slate); font-size: .96rem; margin: 0; }

/* --------------------------------------------------------- service doc -- */
.svc { padding: 40px 0; border-top: 1px solid var(--border); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.svc__aside {
  padding: 28px 26px; background: var(--bg-alt);
  border: 1px solid var(--border); border-left: 3px solid var(--navy-600);
  border-radius: var(--radius);
}
.svc__aside h4 {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate-light); margin-bottom: 14px;
}

.jump {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0 0 8px; padding: 0;
}
.jump a {
  display: inline-block; padding: 9px 17px;
  font-size: .85rem; font-weight: 700; text-decoration: none;
  color: var(--navy-700); background: #fff;
  border: 1px solid var(--border); border-radius: 999px;
}
.jump a:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* ----------------------------------------------------------- callband --- */
.callband {
  background:
    linear-gradient(115deg, rgba(124, 23, 23, .95), rgba(11, 26, 43, .95)),
    var(--navy-800);
  color: #e7eef6;
  padding: 62px 0;
}
.callband .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.callband h2 { color: #fff; margin-bottom: 8px; }
.callband p { color: #d6e2ee; margin: 0; max-width: 56ch; }

/* --------------------------------------------------------------- faq ---- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 54px 20px 22px;
  font-weight: 700; color: var(--navy-800); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 27px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--red-600); border-bottom: 2px solid var(--red-600);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--slate); }

/* --------------------------------------------------------------- form --- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.form-card {
  padding: 36px 34px; background: #fff;
  border: 1px solid var(--border); border-top: 3px solid var(--red-600);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; margin-bottom: 7px;
  font-size: .82rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--navy-800);
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(39, 80, 126, .14);
}
.field textarea { min-height: 148px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--slate-light); margin: 16px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  display: none; margin-bottom: 18px; padding: 14px 16px; font-size: .95rem;
  border-radius: var(--radius);
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: #eaf4ec; border: 1px solid #b9dcc2; color: #1e5b30; }
.form-status.is-err { background: #fbeaea; border: 1px solid #e6bcbc; color: #7c1717; }

.info-card {
  padding: 32px 28px; background: var(--navy-800); color: #cddced;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.info-card h3 { color: #fff; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex; gap: 14px; padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 20px; height: 20px; flex: none; color: #7fb0e8; margin-top: 3px; }
.info-list a { color: #fff; text-decoration: none; }
.info-list a:hover { color: #9dc4ec; text-decoration: underline; }
.info-list strong { display: block; font-size: .74rem; letter-spacing: .13em;
  text-transform: uppercase; color: #8fa9c4; font-weight: 700; margin-bottom: 2px; }

/* ------------------------------------------------------------- footer --- */
.site-footer { background: var(--navy-900); color: #93a8c0; font-size: .93rem; }
.site-footer .grid { padding: 62px 0 40px; }
.site-footer h4 {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.site-footer a { color: #b7c8db; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { max-width: 34ch; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #7d93ad; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .83rem; color: #7d93ad;
}
.disclaimer { max-width: 78ch; font-size: .8rem; line-height: 1.6; color: #7188a3; }

/* ------------------------------------------------------------- utility -- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 20px; background: var(--red-600); color: #fff; font-weight: 700;
}
.skip-link:focus { left: 0; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------- responsive --- */
@media (max-width: 980px) {
  .feature, .svc__grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .credbar .wrap { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-header { position: sticky; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--border); }
  .nav__list a { display: block; padding: 16px 0; font-size: 1rem; }
  .nav__list a::after { display: none; }
  .nav .btn { margin-top: 18px; }
  .site-header .wrap { min-height: 74px; }
}

@media (max-width: 660px) {
  body { font-size: 16px; }
  .section { padding: 58px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__inner { padding: 68px 0 58px; }
  .field-row { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .utility__meta { gap: 14px; font-size: .78rem; }
  .callband .wrap { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .utility, .nav, .callband, .site-footer, .btn { display: none !important; }
  body { color: #000; font-size: 12pt; }
}
