/* Akribeia LLC — Marketing site
   Palette: navy / slate / white — accessible contrast */

:root {
  --navy-900: #0f2744;
  --navy-800: #1e3a5f;
  --navy-700: #2a4a73;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --focus: #1d4ed8;
  --success: #0f766e;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(15, 39, 68, 0.08), 0 4px 12px rgba(15, 39, 68, 0.06);
  --shadow-lg: 0 4px 6px rgba(15, 39, 68, 0.06), 0 12px 28px rgba(15, 39, 68, 0.1);
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --max: 1120px;
  --header-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
}

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

a {
  color: var(--navy-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--accent-hover); }
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Layout —— */
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 3.5rem 0;
}
.section--alt { background: var(--slate-50); }
.section--navy {
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
}
.section--navy a { color: #bfdbfe; }
.section--navy a:hover { color: var(--white); }

.section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.section--navy .section__eyebrow { color: #93c5fd; }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--navy-900);
  margin: 0 0 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.section--navy .section__title { color: var(--white); }

.section__lead {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 42rem;
  margin: 0 0 2rem;
}
.section--navy .section__lead { color: #cbd5e1; }

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-link:hover { opacity: 0.9; }
.logo-link img,
.logo-link svg { height: 2.25rem; width: auto; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
  padding: 0;
}
.nav-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--slate-100);
}

.nav-toggle__icon {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow);
  padding: 0.75rem 1rem 1.25rem;
}
.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: var(--radius);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--slate-100);
  color: var(--navy-800);
}
.site-nav a.nav-cta {
  background: var(--navy-800);
  color: var(--white);
  text-align: center;
  margin-top: 0.5rem;
}
.site-nav a.nav-cta:hover {
  background: var(--navy-900);
  color: var(--white);
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.9375rem;
  }
  .site-nav a.nav-cta {
    margin-top: 0;
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.btn--primary {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}
.btn--primary:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}
.btn--secondary {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn--secondary:hover {
  background: var(--slate-100);
  color: var(--navy-900);
}
.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.22);
  color: var(--white);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Hero —— */
.hero {
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(59, 130, 246, 0.08), transparent),
    linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
}
.hero__sub {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 36rem;
  margin: 0;
}
.hero-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.hero-card h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin: 0 0 1rem;
}
.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-card li {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.975rem;
  color: var(--slate-700);
}
.hero-card li:last-child { border-bottom: none; padding-bottom: 0; }
.hero-card li:first-child { padding-top: 0; }
.hero-card .check {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

/* —— Cards / grids —— */
.card-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.65rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy-900);
  margin: 0 0 0.65rem;
}
.card p {
  margin: 0;
  font-size: 0.975rem;
  color: var(--slate-600);
}
.card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--slate-100);
  color: var(--navy-800);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card__icon svg { width: 1.35rem; height: 1.35rem; }

/* —— About / prose —— */
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.prose li { margin-bottom: 0.4rem; }

.facts {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.fact {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.fact dt {
  font-weight: 600;
  color: var(--navy-800);
  margin: 0;
}
.fact dd {
  margin: 0;
  color: var(--slate-700);
  word-break: break-word;
}
@media (max-width: 480px) {
  .fact { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* —— Capability bullets —— */
.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.cap-list li {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}
.cap-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--navy-800);
}

/* —— Contracting table —— */
.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.975rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.meta-table th,
.meta-table td {
  text-align: left;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}
.meta-table tr:last-child th,
.meta-table tr:last-child td { border-bottom: none; }
.meta-table th {
  width: 38%;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--slate-50);
}
.meta-table td { color: var(--slate-700); }

.note {
  font-size: 0.9rem;
  color: var(--slate-600);
  background: var(--slate-50);
  border-left: 3px solid var(--navy-800);
  padding: 0.85rem 1rem;
  margin: 1.5rem 0 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-block {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact-block h3 {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin: 0 0 1rem;
}
.contact-block dl { margin: 0; }
.contact-block dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin: 0.85rem 0 0.2rem;
}
.contact-block dt:first-child { margin-top: 0; }
.contact-block dd { margin: 0; }
.contact-block a { font-weight: 500; text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

.contact-layout {
  max-width: 36rem;
}

.form-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-left: 4px solid var(--success);
  color: #134e4a;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}

.form-row .required {
  color: #b91c1c;
}

.form-row .optional {
  font-weight: 400;
  color: var(--slate-500);
  font-size: 0.85rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-actions {
  margin-top: 0.5rem;
}

.form-actions .btn {
  width: 100%;
}
@media (min-width: 480px) {
  .form-actions .btn { width: auto; min-width: 10rem; }
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-alt {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--slate-600);
}

.contact-alt a {
  font-weight: 600;
  text-decoration: none;
}
.contact-alt a:hover { text-decoration: underline; }

/* —— Footer —— */
.site-footer {
  background: var(--navy-900);
  color: #94a3b8;
  padding: 2.5rem 0 1.75rem;
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }
}
.site-footer h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin: 0 0 0.75rem;
}
.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
}
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-brand p { margin: 0.5rem 0 0; max-width: 22rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* —— Page hero (inner pages) —— */
.page-hero {
  padding: 2.5rem 0 2rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--navy-900);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}
.page-hero p {
  margin: 0;
  color: var(--slate-600);
  max-width: 40rem;
  font-size: 1.05rem;
}

/* —— Capability statement (PDF-friendly) —— */
.cap-stmt {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.cap-stmt__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--navy-800);
  margin-bottom: 1.5rem;
}
.cap-stmt__header .logo { height: 2.5rem; }
.cap-stmt__doc-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
  text-align: right;
}
.cap-stmt h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy-900);
  margin: 0 0 0.25rem;
}
.cap-stmt .tagline {
  color: var(--slate-600);
  margin: 0 0 1.5rem;
  font-size: 1rem;
}
.cap-stmt h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 0.4rem;
  margin: 1.75rem 0 0.85rem;
}
.cap-stmt .id-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
}
.cap-stmt .id-grid dt {
  font-weight: 600;
  color: var(--navy-800);
  margin: 0;
}
.cap-stmt .id-grid dd { margin: 0 0 0.5rem; }
.cap-stmt ul {
  margin: 0;
  padding-left: 1.2rem;
}
.cap-stmt li { margin-bottom: 0.45rem; }
.cap-stmt .print-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media print {
  .site-header, .site-footer, .print-bar, .skip-link, .nav-toggle { display: none !important; }
  .cap-stmt { padding: 0; max-width: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
  .cap-stmt__header { border-bottom-color: #000; }
}

/* —— Utilities —— */
.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;
}
.mt-0 { margin-top: 0; }
.text-muted { color: var(--slate-500); }
