/* =========================================================
   Tehillah Digital Business Solutions — Design Tokens
   Concept: "The Ledger" — audit-trail rigor meets modern security.
   ========================================================= */

:root {
  /* Color */
  --ink-navy: #101826;      /* deep slate-navy, dark sections */
  --ink-navy-2: #1B2434;    /* raised panels on dark */
  --paper: #FAF8F4;         /* warm paper background */
  --paper-line: #DBD4C4;    /* hairline rule on paper */
  --ink: #17212C;           /* body text on paper */
  --ink-soft: #4B5563;      /* secondary text on paper */
  --verify: #2F6F5E;        /* deep teal-green — "signed off" */
  --verify-dim: #26594B;
  --seal: #C89B3C;          /* brass — the audit stamp */
  --seal-dim: #A87E28;
  --flag: #B4552F;          /* muted rust — "gap identified", used sparingly */
  --line-dark: #2A3644;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --radius: 3px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 62ch; }

.eyebrow {
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--verify);
  margin-bottom: 0.6em;
  display: block;
}

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

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--paper-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand .seal-mark { width: 38px; height: 38px; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.primary-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

nav.primary-nav a:hover { border-bottom-color: var(--seal); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary { background: var(--verify); color: #F4F1E8; }
.btn-primary:hover { background: var(--verify-dim); }

.btn-ghost-dark {
  border-color: rgba(255,255,255,0.35);
  color: #F4F1E8;
}
.btn-ghost-dark:hover { border-color: var(--seal); color: var(--seal); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--verify); color: var(--verify); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------------- Hero ---------------- */
.hero {
  background: var(--ink-navy);
  color: #EDEBE3;
  padding: 76px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  color: #F6F4EC;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  max-width: 15ch;
}

.hero .lede {
  font-size: 1.08rem;
  color: #C7CAD1;
  max-width: 46ch;
}

.hero .cta-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.credential-strip {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
}

.credential-strip .cred {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: #AEB4BE;
}

.credential-strip .cred .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--seal); }

/* Ledger panel — the hero's one distinctive graphic moment */
.ledger-panel {
  background: var(--ink-navy-2);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: 22px 22px 10px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55);
}

.ledger-panel .lp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.ledger-panel .lp-title {
  font-family: var(--font-data);
  font-size: 0.74rem;
  color: #9FA6B2;
  letter-spacing: 0.03em;
}

.ledger-panel .lp-ref {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: #6B7280;
}

.lp-row {
  display: grid;
  grid-template-columns: 74px 1fr 118px 72px;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.86rem;
  align-items: center;
  opacity: 0;
  transform: translateY(6px);
  animation: lp-in 0.5s ease forwards;
}

.lp-row:nth-child(2) { animation-delay: 0.15s; }
.lp-row:nth-child(3) { animation-delay: 0.3s; }
.lp-row:nth-child(4) { animation-delay: 0.45s; }
.lp-row:nth-child(5) { animation-delay: 0.6s; }
.lp-row:last-child { border-bottom: none; }

@keyframes lp-in {
  to { opacity: 1; transform: translateY(0); }
}

.lp-row .code { font-family: var(--font-data); color: #8B93A0; font-size: 0.78rem; }
.lp-row .control { color: #E7E5DC; }
.lp-row .status { font-family: var(--font-data); font-size: 0.74rem; display: flex; align-items: center; gap: 7px; }
.lp-row .status .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.status.effective .dot { background: var(--verify); }
.status.effective { color: #7FBFAD; }
.status.gap .dot { background: var(--flag); }
.status.gap { color: #D48F72; }
.lp-row .date { font-family: var(--font-data); color: #6B7280; font-size: 0.74rem; text-align: right; }

.lp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 4px;
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: #6B7280;
}

.lp-foot .stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--seal);
  border: 1px solid var(--seal-dim);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ---------------- Sections ---------------- */
section { padding: 88px 0; }

.section-head {
  max-width: 60ch;
  margin-bottom: 48px;
}

.bg-paper { background: var(--paper); }
.bg-navy { background: var(--ink-navy); color: #EDEBE3; }
.bg-navy h2, .bg-navy h3 { color: #F6F4EC; }
.bg-navy p { color: #C7CAD1; }

/* ---------------- Services ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
}

.service-card {
  background: var(--paper);
  padding: 34px 32px;
}

.service-card .icon { width: 34px; height: 34px; color: var(--verify); margin-bottom: 18px; }

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--paper-line);
  padding-top: 16px;
}

.service-card li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  margin-bottom: 9px;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--seal);
}

.service-card .card-cta {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--verify);
  text-decoration: none;
  border-bottom: 1px solid var(--verify);
  padding-bottom: 2px;
}

/* ---------------- Approach timeline ---------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--line-dark);
}

.tl-step { position: relative; padding-right: 20px; }

.tl-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-navy-2);
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: 0.82rem;
  color: var(--seal);
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
}

.tl-step:last-child .tl-num {
  background: var(--verify);
  border-color: var(--verify);
  color: #F4F1E8;
}

.tl-step:last-child .tl-num.stamped {
  animation: stamp 0.4s ease-out;
}

@keyframes stamp {
  0% { transform: scale(1.5) rotate(-8deg); opacity: 0; }
  60% { transform: scale(0.95) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

.tl-step h3 { color: #F6F4EC; font-size: 1.05rem; }
.tl-step p { color: #AEB4BE; font-size: 0.92rem; }

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}

.monogram {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--paper-line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-navy);
}

.monogram .seal-mark { width: 58%; height: 58%; }

.about-body .name-line {
  font-family: var(--font-data);
  color: var(--verify);
  font-size: 0.82rem;
  margin-bottom: 4px;
  display: block;
}

.cred-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: grid;
  gap: 10px;
}

.cred-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.94rem;
}

.cred-list .tag {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--seal-dim);
  border: 1px solid var(--seal);
  border-radius: 3px;
  padding: 2px 7px;
  flex: none;
}

.availability-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--verify);
  background: rgba(47,111,94,0.06);
  font-size: 0.92rem;
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--paper-line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.field textarea { resize: vertical; min-height: 120px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }

.contact-details {
  border-left: 1px solid var(--paper-line);
  padding-left: 40px;
}

.contact-details .item { margin-bottom: 26px; }
.contact-details .item .label {
  font-family: var(--font-data);
  font-size: 0.74rem;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 4px;
}
.contact-details .item a { text-decoration: none; font-size: 1.02rem; }
.contact-details .item a:hover { color: var(--verify); }

/* ---------------- Footer ---------------- */
footer {
  background: var(--ink-navy);
  color: #9FA6B2;
  padding: 46px 0 30px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

footer .foot-brand { display: flex; align-items: center; gap: 10px; }
footer .foot-brand .seal-mark { width: 26px; height: 26px; }
footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
footer .foot-links a { text-decoration: none; font-size: 0.86rem; color: #9FA6B2; }
footer .foot-links a:hover { color: var(--seal); }
footer .foot-bottom {
  border-top: 1px solid var(--line-dark);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Simple pages (privacy/terms) ---------------- */
.legal-page { padding: 60px 0 100px; }
.legal-page h1 { margin-bottom: 0.3em; }
.legal-page .updated { font-family: var(--font-data); font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 2.2em; display: block; }
.legal-page h2 { font-size: 1.2rem; margin-top: 1.6em; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .monogram { max-width: 220px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-details { border-left: none; padding-left: 0; border-top: 1px solid var(--paper-line); padding-top: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { display: none; }
}

@media (max-width: 760px) {
  nav.primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.nav-open nav.primary-nav {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 28px 24px;
    border-bottom: 1px solid var(--paper-line);
    gap: 16px;
  }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
