/* Pacific Coast Investigations: Midnight Blue.
   Consolidated from Codex's "Quiet Precision" concept (concept.css + precision.css, midnight palette).
   Typographic, structured, intentionally image-free. */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/manrope-400.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/manrope-500.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/manrope-600.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/manrope-700.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/newsreader-400.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/newsreader-500.woff2) format("woff2"); }

:root {
  --bg: #101e30;
  --ink: #f1f4f8;
  --muted: #becddd;
  --accent: #a8c9e6;
  --onaccent: #101e30;
  --line: #4c6279;
  --panel: #192b40;
  --contact: #a8c9e6;
  --contactink: #101e30;
  --sans: Manrope, "Avenir Next", Arial, sans-serif;
  --serif: Newsreader, "Iowan Old Style", Baskerville, Georgia, serif;
  color-scheme: dark;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; font: 17px/1.7 var(--sans); background: var(--bg); color: var(--ink); }
a { color: inherit; text-underline-offset: 5px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--bg); }
p { margin: 0 0 1.4em; }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.035em; }
h2 { font-size: clamp(2.2rem, 4.1vw, 4rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.025em; }
.wrap { width: min(1240px, 88%); margin-inline: auto; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin-bottom: 24px; color: var(--accent); }
.skip { position: absolute; top: -80px; left: 10px; background: #fff; color: #000; padding: 15px; z-index: 10; }
.skip:focus { top: 10px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; background: var(--accent); color: var(--onaccent); text-decoration: none; font-size: 0.9rem; font-weight: 700; border: 1px solid var(--accent); }
.button.secondary { background: transparent; color: inherit; border-color: var(--line); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 20px; flex-shrink: 0; text-decoration: none; line-height: 1.2; }
.brand-mark { display: block; line-height: 1; font-family: var(--serif); font-size: 2.7rem; font-weight: 500; letter-spacing: -0.04em; padding-right: 20px; border-right: 1px solid var(--line); color: var(--accent); }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1; white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; gap: 23px; font-size: 0.8rem; white-space: nowrap; }
.desktop-nav a { text-decoration: none; }
.desktop-nav a:hover { text-decoration: underline; }
.desktop-nav .button { padding: 10px 16px; font-size: 0.8rem; min-height: 0; }
.mobile-nav { display: none; }

/* Hero */
.hero { width: min(1240px, 88%); margin: 0 auto; padding: 85px 0 70px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.65fr); gap: 60px; align-items: end; }
.hero h1 { font-size: clamp(3.4rem, 7.8vw, 7.1rem); line-height: 1.02; letter-spacing: -0.045em; max-width: 950px; }
.hero-copy > p:not(.eyebrow) { max-width: 680px; font-size: 1.1rem; line-height: 1.7; margin-top: 28px; }
.side-note { border-left: 1px solid var(--line); padding: 20px 0 20px 30px; margin-bottom: 7px; }
.side-note strong { display: block; font-size: 1.1rem; font-weight: 400; margin: 20px 0; }
.side-note p:not(.eyebrow) { font-size: 0.9rem; color: var(--muted); }
.side-note .phone { font-size: 1.05rem; }

/* Intro */
.intro { padding: 76px 0; display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 90px; border-bottom: 1px solid var(--line); }
.intro h2 { font-size: 2.2rem; }
.intro > p { margin: 0; font-size: 1.18rem; }

/* Sections and services */
.section { padding: 96px 0; }
.section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: start; margin-bottom: 44px; }
.section-heading > div { flex: 1 1 auto; min-width: 0; }
.section-heading > p { flex: 0 1 420px; max-width: 420px; margin: 0; }
.services-list { border-top: 1px solid var(--line); }
.services-list details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; position: relative; padding: 25px 48px 25px 0; font-size: 1.25rem; line-height: 1.4; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 10px; top: 18px; font-size: 1.6rem; font-weight: 400; color: var(--accent); }
details[open] > summary::after { content: "\2212"; }
.services-list summary { font-size: 1.4rem; padding-block: 28px; }
.services-list summary::after { top: 25px; }
.services-list details p { max-width: 850px; padding-right: 40px; }

/* Personnel */
.personnel { background: var(--panel); }
.personnel-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 90px; }
.personnel h2 { max-width: 400px; }
.personnel h3 { margin: 10px 0 26px; }
.personnel-copy p { max-width: 690px; }
.credential { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 36px; }

/* Testimonials */
.quote { margin: 0; padding-bottom: 45px; border-bottom: 1px solid var(--line); }
.quote blockquote { margin: 28px 0; font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.8rem); max-width: 1020px; line-height: 1.4; letter-spacing: -0.035em; }
.quote figcaption, .testimonial-grid figcaption { font-size: 0.78rem; color: var(--muted); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 40px; }
.testimonial-grid figure { margin: 0; display: flex; flex-direction: column; }
.testimonial-grid blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.5; letter-spacing: -0.035em; }
.testimonial-grid figcaption { margin-top: auto; }
.more-quotes { margin-top: 45px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more-quotes summary { font-size: 1rem; }
.more-quotes blockquote { margin: 0; padding: 24px 0; border-top: 1px solid var(--line); }

/* Contact */
.contact { background: var(--contact); color: var(--contactink); padding: 80px 0; }
.contact .eyebrow { color: var(--contactink); }
.contact a:focus-visible { outline-color: var(--contactink); }
.contact .button { background: var(--contactink); color: var(--contact); border-color: var(--contactink); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; }
.contact h2 { max-width: 650px; }
.contact-links { display: flex; flex-direction: column; align-items: start; gap: 15px; }
.contact-links .phone { font-size: clamp(1.8rem, 3vw, 2.7rem); text-decoration: none; letter-spacing: -0.03em; }
.contact-links .email { overflow-wrap: anywhere; }
.contact address { font-style: normal; font-size: 0.95rem; margin-top: 15px; }

/* Footer */
.site-footer { padding: 30px 0; display: flex; gap: 20px; justify-content: space-between; font-size: 0.85rem; }

/* Home hero: the eyebrow sits inside the h1 so the heading carries "Private Investigators" */
h1 .eyebrow { display: block; font-family: var(--sans); line-height: 1.4; }
.more-link { font-size: 0.9rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.more-link::after { content: " \2192"; }
.all-quotes { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 45px; padding: 25px 10px 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.all-quotes:hover span:first-child { text-decoration: underline; }
.all-quotes span:last-child { color: var(--accent); font-size: 1.3rem; }

/* Inner pages */
.crumbs { font-size: 0.8rem; color: var(--muted); margin: 0 0 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 8px; color: var(--line); }
.page-hero { padding: 70px 0 60px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.05; letter-spacing: -0.04em; max-width: 1000px; }
.page-hero.plain { border-bottom: 0; padding-bottom: 50px; }
.page-hero .lead { max-width: 760px; font-size: 1.15rem; margin: 28px 0 0; color: var(--muted); }
.service-body { padding: 76px 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr); gap: 90px; align-items: start; }
.service-body .text > p { font-size: 1.2rem; max-width: 760px; }
.aside-block { border-left: 1px solid var(--line); padding: 6px 0 6px 30px; display: grid; gap: 34px; }
.aside-block h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.aside-block p { font-size: 0.95rem; color: var(--muted); margin-bottom: 12px; }
.aside-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.aside-block li a { text-decoration: none; }
.aside-block li a:hover, .aside-block li a[aria-current] { text-decoration: underline; }
.service-quotes { margin-top: 56px; display: grid; gap: 40px; }
.service-quotes figure { margin: 0; padding-top: 34px; border-top: 1px solid var(--line); }
.service-quotes blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.45; letter-spacing: -0.03em; }
.service-quotes figcaption { font-size: 0.78rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; }
.service-index { border-top: 1px solid var(--line); }
.service-index a { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) auto; gap: 40px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.service-index h2 { font-family: var(--sans); font-size: 1.4rem; letter-spacing: -0.01em; line-height: 1.35; }
.service-index p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.service-index .arrow { color: var(--accent); font-size: 1.3rem; }
.service-index a:hover h2 { text-decoration: underline; }
.testimonial-list { display: grid; gap: 0; }
.testimonial-list figure { margin: 0; padding: 44px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); }
.testimonial-list blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(1.3rem, 2.1vw, 1.65rem); line-height: 1.5; letter-spacing: -0.025em; max-width: 1000px; }
.testimonial-list figcaption { font-size: 0.78rem; color: var(--muted); }
.notfound { padding: 110px 0 120px; }
.notfound h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.04em; margin-bottom: 24px; }

/* Phone call bar (small screens only) */
.callbar { display: none; }

@media (max-width: 1100px) {
  .desktop-nav .button { display: none; }
  .hero { grid-template-columns: 1fr; }
  .side-note { display: none; }
}
@media (max-width: 1000px) {
  .desktop-nav { gap: 16px; }
  .personnel-grid, .intro, .service-body { gap: 45px; }
  .section-heading { display: block; }
  .section-heading > p { max-width: 640px; margin-top: 22px; }
  .service-index a { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 30px; }
  .service-index p { grid-column: 1; grid-row: 2; }
  .service-index .arrow { grid-column: 2; grid-row: 1; }
}
@media (max-width: 850px) {
  .service-body { grid-template-columns: 1fr; }
  .aside-block { border-left: 0; border-top: 1px solid var(--line); padding: 34px 0 0; }
}
@media (max-width: 850px) {
  .desktop-nav { display: none; }
  .site-header { position: relative; }
  .mobile-nav { display: block; }
  .mobile-nav summary { font-size: 0.88rem; padding: 10px 0; min-width: 52px; min-height: 44px; }
  .mobile-nav summary::after { display: none; }
  .mobile-nav nav { position: absolute; top: calc(100% - 12px); right: 0; padding: 20px; background: var(--bg); border: 1px solid var(--line); z-index: 5; min-width: 200px; box-shadow: 0 10px 20px #0004; }
  .mobile-nav nav a { display: block; padding: 10px; text-decoration: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-grid figure { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .testimonial-grid blockquote { max-width: 650px; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header { padding: 23px 0; gap: 12px; }
  .brand { gap: 12px; min-width: 0; flex-shrink: 1; }
  .brand-mark { font-size: 2.1rem; padding-right: 12px; }
  .brand-name { font-size: clamp(0.94rem, 4.3vw, 1.2rem); }
  .hero { padding: 45px 0; }
  .hero h1 { font-size: clamp(2.6rem, 11.4vw, 4.7rem); }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .intro, .personnel-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .intro { padding: 50px 0; }
  .section { padding: 60px 0; }
  .services-list summary { font-size: 1.1rem; }
  .credential { margin-top: 24px; }
  .eyebrow { font-size: 0.73rem; }
  .quote blockquote { font-size: 1.85rem; }
  .testimonial-grid blockquote { font-size: 1.4rem; }
  .more-quotes summary { font-size: 0.95rem; }
  .actions .button { flex-grow: 1; }
  .page-hero { padding: 40px 0 45px; }
  .page-hero .lead { font-size: 1.02rem; }
  .service-body { padding: 50px 0; }
  .service-body .text > p { font-size: 1.08rem; }
  .testimonial-list figure { padding: 32px 0; }
  .contact { padding: 55px 0; }
  .contact-grid { gap: 35px; }
  .site-footer { flex-direction: column; gap: 5px; padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 10px; padding: 10px 6% calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
  .callbar .button { flex: 1; }
}
/* Small screens: keep the blue labels above headings on one line. */
@media (max-width: 700px) {
  .wide-only { display: none; }
  h1 .eyebrow, .page-hero .eyebrow { font-size: 0.7rem; letter-spacing: 0.1em; }
}
@media (max-width: 374px) {
  h1 .eyebrow, .page-hero .eyebrow { font-size: 0.66rem; letter-spacing: 0.07em; }
}
@media (max-width: 345px) {
  .tiny-hide { display: none; }
  h1 .eyebrow, .page-hero .eyebrow { letter-spacing: 0.05em; }
}
/* Keep "Pacific Coast Investigations" on one line on the narrowest phones. */
@media (max-width: 380px) {
  .site-header { gap: 10px; }
  .brand { gap: 10px; }
  .brand-mark { font-size: 1.75rem; padding-right: 10px; }
}
@media (max-width: 345px) {
  .brand-mark { display: none; }
  .brand-name { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
