:root {
  --bg-page: #fbfbf9;
  --bg-subtle: #f3f1ec;
  --bg-card: #ffffff;
  --text-main: #141618;
  --text-muted: #4e535a;
  --text-light: #70757d;
  --accent: #193630;
  --accent-hover: #0f221e;
  --accent-rust: #8f2b23;
  --border: #e0ded7;
  --border-dark: #b8b4a8;
  --font-serif: "Newsreader", "Georgia", "Cambria", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1180px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --transition: 0.2s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--text-main);
  color: #ffffff;
  padding: 8px 16px;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.container-narrow {
  max-width: 820px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header & Brand */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
}
.brand-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: var(--text-main);
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
}
.brand-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}
.nav-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
}
.nav-list a:hover, .nav-list a.active {
  color: var(--text-main);
}
.nav-list a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  transition: transform var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  border-color: var(--accent-hover);
}
.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-dark);
}
.btn-secondary:hover {
  background-color: var(--bg-subtle);
  color: var(--text-main);
}
.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background-color: var(--accent);
  color: #ffffff;
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.editorial-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-rust);
  margin-bottom: 1rem;
}
.hero-lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.hero-visual {
  text-align: center;
}
.hero-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* Sections */
.section {
  padding: clamp(3rem, 5vw, 4.75rem) 0;
}
.section-bordered {
  border-bottom: 1px solid var(--border);
}
.bg-subtle {
  background-color: var(--bg-subtle);
}
.text-center {
  text-align: center;
}
.section-head {
  margin-bottom: 3rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.max-600 {
  max-width: 600px;
}

/* Grids & Cards */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.card {
  background-color: var(--bg-card);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.card-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* Methodology */
.process-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.step-list {
  list-style: none;
  counter-reset: step-counter;
  margin-top: 1.5rem;
}
.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.75rem;
}
.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-dark);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}
.step-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.quote-card {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.quote-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.quote-card cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Pricing Card */
.pricing-card-wrapper {
  max-width: 620px;
  margin: 0 auto;
}
.pricing-card {
  background-color: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 2.75rem 2.25rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.pricing-tag {
  position: absolute;
  top: -12px;
  left: 2rem;
  background-color: var(--accent);
  color: #ffffff;
  padding: 0.2rem 0.8rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}
.pricing-title {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 1.25rem 0;
}
.pricing-amount .currency {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-main);
}
.pricing-amount .value {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: var(--font-serif);
  line-height: 1;
}
.pricing-amount .period {
  font-size: 1rem;
  color: var(--text-light);
  margin-left: 0.4rem;
}
.pricing-desc {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}
.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}
.pricing-features li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}
.micro-text {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* FAQ */
.faq-container {
  max-width: 820px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  border-top: 1px solid var(--bg-subtle);
  color: var(--text-muted);
}

/* CTA */
.cta-block {
  padding: 2rem 0;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Subpages */
.page-content {
  padding: 3.5rem 0 5rem 0;
}
.editorial-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.editorial-breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}
.editorial-breadcrumb a:hover {
  text-decoration: underline;
}
.lead-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.prose-section {
  margin-bottom: 3rem;
}
.prose-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.prose-section li {
  margin-bottom: 0.5rem;
}
.standards-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 1.5rem;
}
.standards-box h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
}
.standards-box h3:first-child {
  margin-top: 0;
}

/* Services Page */
.services-list-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.service-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.25rem;
  border-radius: var(--radius-md);
}
.service-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.service-points {
  list-style: square;
  padding-left: 1.25rem;
  margin-top: 1rem;
  color: var(--text-muted);
}
.rate-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: left;
}
.rate-table th, .rate-table td {
  padding: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.rate-table th {
  background: var(--bg-subtle);
  font-family: var(--font-serif);
  font-size: 1rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius-md);
}
.contact-entry {
  margin-bottom: 1.5rem;
}
.contact-entry strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.highlight-link {
  font-size: 1.15rem;
  font-weight: 600;
}
.contact-action-box {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.source-guide {
  margin: 1.5rem 0;
}
.guide-item {
  margin-bottom: 1rem;
}
.guide-item strong {
  display: block;
  color: var(--text-main);
  font-size: 0.95rem;
}
.note-box {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 1rem;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background-color: #151719;
  color: #d1d5db;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid #23272b;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.brand-footer .brand-monogram {
  background-color: #ffffff;
  color: #151719;
}
.brand-footer .brand-text {
  color: #ffffff;
}
.footer-about {
  font-size: 0.88rem;
  color: #9ca3af;
  margin: 1rem 0;
  line-height: 1.5;
}
.footer-location {
  font-size: 0.82rem;
  color: #6b7280;
}
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.6rem;
}
.footer-col a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-col a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid #282c30;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #6b7280;
}
.footer-bottom a {
  color: #9ca3af;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  padding: 1.25rem 0;
  z-index: 999;
}
.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 820px;
}
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Error page */
.error-page-block {
  padding: 5rem 0;
}
.error-code {
  font-family: var(--font-serif);
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent-rust);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .process-layout, .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  }
  .nav-menu.is-active {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    text-align: center;
  }
  .nav-toggle {
    display: flex;
  }
}
@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-buttons {
    flex-direction: column;
  }
}