/* Landing page and Ace Private Investigations site. A.C.E. Recon uses recon.css (pitch book style). */
:root {
  --fog: #eef2f5;
  --paper: #fbfcfd;
  --ink: #15202e;
  --ink-soft: #4a5768;
  --rule: #cfd7e0;
  --manila: #c8a96a;
  --manila-tab: #e4d3ab;
  --manila-wash: #f6efdd;
  --signal: #0e7490;
  --screen: #07111f;
  --screen-2: #0f1c2e;
  --screen-rule: #1f3550;
  --cyan: #22d3ee;
  --on-screen: #e6eef8;
  --on-screen-soft: #9fb3c8;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--fog); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--signal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--display); font-stretch: 85%; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 90%; }
p { margin: 0 0 1em; max-width: var(--measure); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* buttons and links */
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-stretch: 90%; font-size: 1rem; padding: 12px 20px;
       border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #24344a; }
.btn:disabled { opacity: .6; cursor: progress; }
.quiet-link { font-family: var(--display); font-weight: 600; font-stretch: 90%; }

/* ---------------- landing: two folders as doors ---------------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; }
.doors { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 72px) var(--gutter); }
.doors-head { margin-bottom: clamp(24px, 4vw, 40px); }
.doors-name { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; margin: 0; max-width: none; letter-spacing: 0; }
.doors-sub { color: var(--ink-soft); margin: 2px 0 0; }
.folders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.folder { display: flex; flex-direction: column; }
.tab { align-self: flex-start; font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1rem;
       padding: 10px 24px 9px; border-radius: 10px 10px 0 0; position: relative; top: 1px; }
.folder-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 48px);
               border-radius: 0 12px 12px 12px; min-height: clamp(280px, 42vh, 440px); }
.folder-paper .tab { background: var(--manila-tab); color: var(--ink); border: 1px solid var(--manila); border-bottom: none; }
.folder-paper .folder-body { background: var(--paper); border: 1px solid var(--manila); box-shadow: 0 1px 0 var(--manila), 0 22px 36px -30px rgba(21,32,46,.55); }
.folder-screen .tab { background: var(--screen-2); color: var(--cyan); border: 1px solid var(--screen-rule); border-bottom: none; }
.folder-screen .folder-body { background: var(--screen); color: var(--on-screen); border: 1px solid var(--screen-rule);
  background-image: radial-gradient(600px 300px at 110% -10%, rgba(34,211,238,.12), transparent 60%); }
.door { text-decoration: none; color: inherit; }
.door .folder-body, .door .tab { transition: transform .18s ease, box-shadow .18s ease; }
.door:hover .folder-body, .door:hover .tab, .door:focus-visible .folder-body, .door:focus-visible .tab { transform: translateY(-4px); }
.door:focus-visible { outline: none; }
.door:focus-visible .folder-body { outline: 3px solid var(--signal); outline-offset: 3px; }
.door-title { display: block; font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; margin-bottom: 12px; }
.door-text { display: block; flex: 1; max-width: 40ch; font-size: 1.08rem; }
.folder-paper .door-text { color: var(--ink-soft); }
.folder-screen .door-title { color: #fff; }
.folder-screen .door-text { color: var(--on-screen-soft); font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
/* each folder carries its brand mark above the tab */
.door-mark { display: block; align-self: flex-start; height: clamp(96px, 14vw, 150px); width: auto; margin: 0 0 18px 6px; }
.door-mark-app { border-radius: 22%; box-shadow: 0 16px 40px -18px rgba(8,145,178,.55); }
.door-who { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
.door-who span { font: 700 .72rem/1 "Segoe UI", "Helvetica Neue", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(34,211,238,.45); border-radius: 999px; padding: 6px 10px; }
.door-go { display: inline-block; margin-top: 24px; font-family: var(--display); font-weight: 700; font-stretch: 90%; padding: 12px 20px; border-radius: 8px; }
.folder-paper .door-go { background: var(--ink); color: #fff; }
.folder-screen .door-go { background: var(--cyan); color: var(--screen); }

/* ---------------- agency site ---------------- */
.site-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
  padding: 20px var(--gutter); border-bottom: 1px solid var(--rule); background: var(--fog); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.wordmark img { height: 34px; width: auto; }
.site-head { align-items: center; }
.cover-mark { display: block; height: clamp(120px, 16vw, 190px); width: auto; margin-bottom: clamp(20px, 3vw, 32px); }
.site-head nav { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; }
.site-head nav a { font-family: var(--display); font-weight: 600; font-stretch: 90%; color: var(--ink); text-decoration: none; }
.site-head nav a:hover { color: var(--signal); text-decoration: underline; }
.site-head nav .nav-cross { color: var(--signal); padding-left: 24px; border-left: 1px solid var(--rule); }

/* cover: the front of the file */
.cover { padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(40px, 6vw, 72px); }
.label-strip { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--manila); background: var(--manila-wash); border-radius: 4px;
  margin-bottom: clamp(20px, 3vw, 32px); font-family: var(--display); font-stretch: 85%; font-weight: 600; font-size: .95rem; }
.label-strip span { padding: 6px 14px; border-right: 1px solid var(--manila); }
.label-strip span:first-child { background: var(--manila-tab); font-weight: 800; }
.label-strip span:last-child { border-right: none; }
.cover-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 58ch; }
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }

/* each section is a divider tab in the file */
.file-section { padding: 0 var(--gutter); margin-bottom: clamp(36px, 5vw, 56px); }
.section-tab { display: inline-block; font-family: var(--display); font-weight: 700; font-stretch: 85%; background: var(--manila-tab);
  border: 1px solid var(--manila); border-bottom: none; border-radius: 9px 9px 0 0; padding: 7px 20px 6px; position: relative; top: 1px; }
.section-body { background: var(--paper); border: 1px solid var(--manila); border-radius: 0 12px 12px 12px; padding: clamp(24px, 4vw, 48px); }
.section-body > p { color: var(--ink-soft); }

.index-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--rule); border-top: 4px solid var(--manila); border-radius: 4px 4px 10px 10px; padding: 22px; background: #fff; }
.card-lead { color: var(--ink-soft); font-size: 1rem; }
.card ul { margin: 0; padding-left: 1.1em; }
.card li { margin-bottom: .45em; }
.card li::marker { color: var(--manila); }

.proc { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proc li { counter-increment: p; border-top: 2px solid var(--ink); padding-top: 14px; }
.proc li::before { content: counter(p); display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--manila); margin-bottom: 10px; }
.proc p { margin: 0; font-size: 1rem; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.note { background: var(--manila-wash); border-left: 4px solid var(--manila); padding: 20px 22px; border-radius: 0 8px 8px 0; }
.note p { margin: 0; }

/* contact form */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; max-width: 760px; margin-top: 8px; }
.contact label { display: flex; flex-direction: column; gap: 6px; font-family: var(--display); font-weight: 600; font-stretch: 90%; }
.contact .wide { grid-column: 1 / -1; }
.contact input, .contact select, .contact textarea { font: 400 1rem/1.4 var(--body); color: var(--ink); background: #fff;
  border: 1px solid #aab6c3; border-radius: 6px; padding: 11px 12px; width: 100%; }
.contact textarea { resize: vertical; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-family: var(--display); font-stretch: 90%; }
.form-status.ok { color: #166534; }
.form-status.err { color: #b91c1c; }

/* footer */
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 28px var(--gutter);
  border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: .95rem; }
.site-foot p { margin: 0; }
.site-foot a { margin-left: 18px; }
.site-foot a:first-child { margin-left: 0; }

/* legal pages */
.legal { max-width: 820px; padding: clamp(40px, 6vw, 72px) var(--gutter); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: none; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }

@media (max-width: 960px) {
  .index-cards, .two-col { grid-template-columns: 1fr; }
  .proc { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .folders, .contact, .proc { grid-template-columns: 1fr; }
  .folder-body { min-height: 0; }
  .site-head nav .nav-cross { padding-left: 0; border-left: none; }
}
