/* =========================================================
   Elevate Compliance Group — Stylesheet
   Design tokens: navy ink / warm paper / seal-green / blueprint / brass
   ========================================================= */

:root {
  /* Color */
  --ink: #1B2430;
  --ink-soft: #4E5A6B;
  --ink-faint: #7C8797;
  --paper: #F7F6F2;
  --paper-alt: #EDEAE1;
  --white: #FFFFFF;
  --line: #DAD6C9;
  --seal: #1F6F5C;
  --seal-dark: #16503F;
  --seal-tint: #E7F0EC;
  --blueprint: #2C4A6E;
  --blueprint-tint: #E9EEF3;
  --brass: #A9793C;

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --container-w: 1160px;
  --radius: 3px;
  --shadow-card: 0 1px 2px rgba(27, 36, 48, 0.06), 0 4px 16px rgba(27, 36, 48, 0.05);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-soft); }
.lede { font-size: 1.15rem; line-height: 1.65; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--seal);
  display: inline-block;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blueprint);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--seal);
  color: var(--white);
}
.btn-primary:hover { background: var(--seal-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ---------- Seal mark ---------- */
.seal-mark { flex-shrink: 0; }
.seal-mark circle.ring { fill: none; stroke: currentColor; }
.seal-mark path.check { fill: none; stroke: currentColor; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.seal-mark text {
  font-family: var(--font-mono);
  fill: currentColor;
  letter-spacing: 0.12em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.98);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  min-width: 0;
  flex: 1 1 auto;
}
.logo .seal-mark { color: var(--seal); width: 38px; height: 38px; flex-shrink: 0; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
}
.logo-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logo-text small {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav ul { display: flex; gap: 2px; align-items: center; }
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--ink); background: var(--paper-alt); }
.main-nav a.active { color: var(--seal-dark); font-weight: 600; }
.main-nav .nav-cta {
  margin-left: 10px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
}
.main-nav .nav-cta:hover { background: var(--seal-dark); color: var(--white); }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 32px; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-seal-panel {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  color: var(--white);
}
.hero-seal-panel .seal-mark { color: var(--seal); width: 128px; height: 128px; }
.hero-seal-panel .seal-caption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
.hero-seal-panel .seal-caption strong { color: var(--white); display: block; font-size: 0.8rem; letter-spacing: 0.06em;}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  padding: 16px 24px;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--seal); flex-shrink: 0; }

/* ---------- Section divider (stamped rule) ---------- */
.seal-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.seal-divider::before, .seal-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.seal-divider .seal-mark { color: var(--seal); width: 30px; height: 30px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark {
  background: var(--ink);
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.68); }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Value props / feature grid ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card {
  padding-top: 22px;
  border-top: 2px solid var(--seal);
}
.value-card h3 { margin-bottom: 10px; }
.value-card p { font-size: 0.95rem; }

/* ---------- Services grid (homepage) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.service-card:hover { transform: translateY(-2px); border-color: var(--seal); }
.service-card .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--seal-dark);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}
.service-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; }

/* ---------- Process timeline (services page) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.timeline-step {
  padding: 0 28px 0 0;
  position: relative;
}
.timeline-step:not(:last-child) {
  border-right: 1px dashed var(--line);
  margin-right: 28px;
}
.timeline-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--white);
  background: var(--seal);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.timeline-step h3 { margin-bottom: 12px; }
.timeline-step ul { display: flex; flex-direction: column; gap: 9px; }
.timeline-step li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}
.timeline-step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--brass);
}

/* ---------- Capability list (services page) ---------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.capability-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.capability-card h3 {
  margin-bottom: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.capability-card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.capability-card li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.capability-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--seal);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Full service sections (services page detail) ---------- */
.service-detail {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.service-detail .service-head {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}
.service-detail h3 { font-size: 1.35rem; margin-bottom: 8px; }
.service-detail .service-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--seal-dark);
}
.service-detail-list {
  columns: 2;
  column-gap: 32px;
  margin-top: 20px;
}
.service-detail-list li {
  font-size: 0.93rem;
  color: var(--ink-soft);
  padding: 8px 0 8px 18px;
  position: relative;
  break-inside: avoid;
  border-bottom: 1px solid var(--line);
}
.service-detail-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
}
.service-detail-list li:last-child { border-bottom: none; }

/* ---------- Staff ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.staff-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 26px;
}
.staff-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--blueprint-tint), var(--paper-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-initials {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--blueprint);
  opacity: 0.45;
}
.staff-card h3 { margin: 20px 0 4px; font-size: 1.05rem; }
.staff-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--seal-dark);
  padding: 0 20px;
}
.staff-bio { font-size: 0.87rem; margin-top: 10px; padding: 0 22px; color: var(--ink-soft); }

/* ---------- Overview / About page blocks ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.stat-block {
  border-left: 2px solid var(--seal);
  padding-left: 18px;
}
.stat-block .stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
  display: block;
}
.stat-block .stat-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.info-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.info-panel dl { display: flex; flex-direction: column; gap: 16px; }
.info-panel .row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.info-panel .row:last-child { border-bottom: none; padding-bottom: 0; }
.info-panel dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.info-panel dd { font-size: 0.95rem; color: var(--ink); }
.placeholder-note {
  font-size: 0.82rem;
  color: var(--brass);
  font-style: italic;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.contact-item .contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
  display: block;
}
.contact-item .contact-value { font-size: 1.05rem; color: var(--ink); }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blueprint); }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 72px 0; }
.cta-band h2 { margin-bottom: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-brand .seal-mark { color: var(--seal); width: 34px; height: 34px; flex-shrink: 0; margin-top: 2px; }
.footer-brand h4 { color: var(--white); font-size: 1.02rem; margin-bottom: 8px; }
.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.6); max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 0.9rem; color: rgba(255,255,255,0.78); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.45);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--line);
}
.page-header .lede { max-width: 62ch; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-seal-panel { order: -1; }
  .value-grid, .services-grid, .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .timeline-step:not(:last-child) { border-right: none; margin-right: 0; border-bottom: 1px dashed var(--line); padding-bottom: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail .service-head { grid-template-columns: 1fr; gap: 12px; }
  .stat-strip { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 880px) {
  .main-nav { position: fixed; inset: 84px 0 0 0; z-index: 60; background: var(--paper); transform: translateX(100%); transition: transform 0.22s ease; overflow-y: auto; border-top: 1px solid var(--line); }
  .main-nav.open { transform: translateX(0); }
  .main-nav .container { display: block; padding: 20px 24px; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .nav-cta { margin-left: 0; margin-top: 12px; text-align: center; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .logo-text small { max-width: 40vw; }
}

@media (max-width: 720px) {
  .value-grid, .services-grid, .capability-grid, .staff-grid { grid-template-columns: 1fr; }
  .service-detail-list { columns: 1; }
  .info-panel .row { grid-template-columns: 1fr; gap: 4px; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 56px 0; }
}

@media (max-width: 420px) {
  .logo-text small { display: none; }
}
