/* ===== Design tokens: change colors and fonts here ===== */
:root  {
  --ink: #000;
  --paper: #fff;
  --grey: #595959;      /* secondary text, passes contrast on white */
  --rule: #d9d9d9;      /* light lines */
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --space: clamp(3.5rem, 8vw, 6.5rem);
  --muted: #595959;
  --border: #d9d9d9;
  --white: #ffffff;
  --navy: #172d50;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 20;
}
.skip-link:focus { left: 0; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; text-decoration: none; }

.nav-toggle {
  font: inherit; background: none; color: var(--ink);
  border: 1px solid var(--ink); padding: .35rem .9rem; cursor: pointer;
}

/* Mobile: menu hidden until the button is pressed */
.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--ink);
  flex-direction: column;
}
.site-nav.open { display: flex; }
.site-nav a { padding: 1rem 1.25rem; text-decoration: none; border-top: 1px solid var(--rule); }
.site-nav a:hover { text-decoration: underline; }

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; gap: 2rem;
    border: 0; background: none;
  }
  .site-nav a { padding: 0; border: 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: .8rem 1.4rem;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  text-decoration: none; font-weight: 600;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--paper); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ===== Hero ===== */
.hero { padding-block: var(--space) calc(var(--space) * .8); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.lead { font-size: 1.2rem; color: var(--grey); margin-top: 1.5rem; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
}

/* The ledger: the one memorable element */
.ledger { margin: 0; border: 1px solid var(--ink); padding: 1.5rem; }
.ledger figcaption { font-family: var(--serif); font-style: italic; color: var(--grey); margin-bottom: 1rem; }
.ledger dl { margin: 0; font-variant-numeric: tabular-nums; }
.ledger dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.ledger dt { margin: 0; }
.ledger dd { margin: 0; }
.ledger .total { font-weight: 700; border-bottom: 0; padding-bottom: .35rem; margin-top: .4rem; border-top: 1px solid var(--ink); }
/* accounting double rule under the total */
.ledger .total dd { border-bottom: 3px double var(--ink); padding-bottom: .15rem; }

/* ===== Sections ===== */
.section { padding-block: var(--space); border-top: 1px solid var(--ink); }
.two-col { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 2fr; gap: 3rem; } }

.note { color: var(--grey); font-style: italic; margin-top: .75rem; }
.small { color: var(--grey); font-size: .95rem; }

.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--rule); }
.facts li { padding: .6rem 0; border-bottom: 1px solid var(--rule); }

/* ===== Services: ledger rows with dotted leaders ===== */
.rows { list-style: none; padding: 0; margin: 2.5rem 0 0; border-top: 1px solid var(--ink); }
.rows li {
  display: grid; gap: .5rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
}
.rows p { margin: .4rem 0 0; color: var(--grey); }
.leader { display: none; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }

@media (min-width: 760px) {
  .rows li { grid-template-columns: minmax(0, 28rem) 1fr auto; align-items: baseline; gap: 1rem; }
  .leader { display: block; border-bottom: 2px dotted var(--ink); height: 1px; transform: translateY(-.35rem); }
}

/* ===== Sample work ===== */
.cases { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.case { border-top: 3px solid var(--ink); padding-top: 1rem; }
.case dl { margin: 1rem 0 0; }
.case dt { font-weight: 700; margin-top: 1rem; }
.case dd { margin: .2rem 0 0; color: var(--grey); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--ink); padding-block: 2rem; color: var(--grey); font-size: .95rem; }
.site-footer p { margin: 0; }

/* ===== Respect reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* ===== Match styles to the current HTML ===== */


/* Main layout */
.container {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}


.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin-bottom: 1rem;
}

.section-tinted {
  background: #f5f7fa;
}

/* Header and navigation */
.header-inner {
  gap: 1.5rem;
  min-height: 4.5rem;
}

.site-nav a {
  font-size: 0.95rem;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--navy);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-outline {
  background: transparent;
  color: var(--navy);
}

.button-light {
  background: #fff;
  color: var(--navy);
}

.button:hover {
  opacity: 0.85;
}

/* Hero introduction card */
.summary-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 28px rgb(23 45 80 / 8%);
}

.intro-card h2 {
  margin: 0.75rem 0 1rem;
  font-size: 1.65rem;
}

.intro-card > p:not(.eyebrow),
.intro-card ul {
  color: var(--muted);
}

.intro-card ul {
  padding-left: 1.25rem;
  font-size: 0.95rem;
}

.intro-card li {
  margin-bottom: 0.5rem;
}

.intro-card > a {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--navy);
  font-weight: 700;
}

/* Trust points */
.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* About section */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: var(--radius);
  background: #eaf0f9;
}

.photo-placeholder {
  display: none;
  min-height: 280px;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--navy);
  text-align: center;
}

.photo-placeholder span {
  font-size: 2.5rem;
  font-weight: 800;
}

.photo-placeholder p {
  margin: 0.5rem 0 0;
}

.photo-caption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.credential-list {
  margin-top: 1.5rem;
}

.credential {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.credential-mark {
  color: var(--navy);
  font-weight: 800;
}

.credential h3 {
  margin-bottom: 0.35rem;
}

.credential p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .about-grid {
    grid-template-columns: minmax(220px, 0.8fr) 1.5fr;
    gap: 3rem;
  }
}

/* Certifications */
.certificate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.certificate-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.certificate-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 10px;
  background: #eaf0f9;
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 800;
}

.certificate-card h3 {
  margin-bottom: 0.6rem;
}

.certificate-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 680px) {
  .certificate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Services */
.service-grid,
.sample-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card,
.sample-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.service-number,
.sample-type {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.service-icon {
  margin: 1rem 0;
  color: var(--navy);
  font-size: 1.5rem;
}

.service-card h3,
.sample-card h3 {
  margin: 0.75rem 0;
}

.service-card p,
.sample-card p,
.service-note {
  color: var(--muted);
}

.service-card a,
.sample-card a {
  color: var(--navy);
  font-weight: 700;
}

.service-note {
  margin-top: 1.5rem;
  font-size: 0.92rem;
}

@media (min-width: 680px) {
  .service-grid,
  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sample-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sample-notice {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--navy);
  background: #f5f7fa;
}

/* Contact section */
.contact-section {
  background: var(--navy);
  color: #fff;
}

.contact-section .eyebrow {
  color: #dbe7ff;
}

.contact-panel {
  display: grid;
  gap: 2rem;
}

.contact-details {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-item span {
  display: block;
  color: #dbe7ff;
  font-size: 0.85rem;
}

.contact-item a {
  overflow-wrap: anywhere;
}

.contact-small {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.9rem;
}

@media (min-width: 760px) {
  .contact-panel {
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
  }
}

/* Footer */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-footer {
  color: var(--ink);
}

/* Mobile spacing and readable navigation */
@media (max-width: 759px) {
  .header-inner {
    position: relative;
  }

  .site-nav {
    top: 100%;
  }

  .hero-grid {
    gap: 2rem;
  }

  .actions .button {
    flex: 1 1 auto;
  }
}
