/* ==========================================================================
   Shared stylesheet — Healthcare Dispute Resolution site
   Every page links this file. Edit here to change something sitewide
   (colors, header, footer, button styles). Page-specific content lives
   in each page's own <style> block or inline classes.
   ========================================================================== */

:root {
  --ink: #1c2521;
  --paper: #f7f5f0;
  --paper-raised: #ffffff;
  --rule: #d8d2c4;
  --seal: #3c5a4a;
  --seal-deep: #2a4136;
  --muted: #6b6f68;
  --focus: #8a6d3b;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --max-width: 1040px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--seal); }
a:hover { color: var(--seal-deep); }

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

/* ---------- Site header / nav ---------- */

.site-header {
  width: 100%;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-raised);
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand .mark {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1.5px solid var(--seal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--seal);
}

.brand .name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand .tagline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

nav.primary-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav.primary-nav a {
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--seal);
  border-bottom-color: var(--seal);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px 12px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  nav.primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    margin-top: 16px;
  }
  nav.primary-nav.open { display: flex; }
  .site-header .inner { flex-wrap: wrap; }
}

/* ---------- Page shell ---------- */

main {
  flex: 1;
  width: 100%;
}

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

/* ---------- Eyebrow / heading patterns ---------- */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 14px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
}

p { font-size: 16px; line-height: 1.7; margin: 0 0 16px; }

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Cards / sections ---------- */

.card {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 36px 40px;
}

.section {
  padding: 64px 0;
}

.section.bordered-top {
  border-top: 1px solid var(--rule);
}

.section.tint {
  background: var(--paper-raised);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--seal);
  color: var(--paper-raised);
}
.btn-primary:hover { background: var(--seal-deep); color: var(--paper-raised); }

.btn-secondary {
  background: transparent;
  color: var(--seal);
  border: 1.5px solid var(--seal);
}
.btn-secondary:hover { background: var(--seal); color: var(--paper-raised); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-raised);
  margin-top: auto;
}

.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.site-footer .legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer .legal .secondary {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.75;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--seal); text-decoration: underline; }

/* ---------- Utility ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .card { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
