/* Derby Compliance Law - draft concept site
   Palette and type shared across all pages. */

:root {
  --paper:      #F7F5F1;
  --white:      #FFFFFF;
  --ink:        #16181A;
  --body:       #3D444C;
  --muted:      #4A5058;
  --soft:       #5F6773;
  --line:       #E2DED6;
  --line-soft:  #EDEAE4;
  --indigo:     #23324D;
  --indigo-dk:  #0F1726;
  --indigo-lt:  #C3CBD8;
  --sand:       #C08A3E;
  --sand-bg:    #FBF6EC;
  --sand-line:  #E8DBC4;
  --field:      #FBFAF8;
  --field-line: #D8D3CA;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(22px, 5vw, 80px);
  --maxw: 1280px;
}

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

html { -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; }

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-dk); text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); margin: 0; letter-spacing: -0.012em; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  position: fixed;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 3px;
}

/* ---------- draft banner ---------- */

.draft {
  background: #6B4A12;
  color: #FBF1DE;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 0;
}
.draft strong { color: #fff; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-family: var(--serif);
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.logo:hover { text-decoration: none; color: var(--ink); }
.logo span { color: var(--sand); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  flex-wrap: wrap;
  font-size: 15px;
}
.nav a { color: var(--muted); }
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: #fff; }
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 2px solid var(--sand);
  padding-bottom: 2px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--indigo);
  color: #fff;
  padding: 14px 26px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  border: 1px solid var(--indigo);
  cursor: pointer;
  min-height: 46px;
  line-height: 1.25;
}
.btn:hover { background: var(--indigo-dk); border-color: var(--indigo-dk); color: #fff; text-decoration: none; }
.btn-sm { padding: 11px 20px; font-size: 14px; min-height: 42px; }
.btn-ghost {
  background: transparent;
  color: var(--indigo);
  border: 1px solid #C7C1B7;
}
.btn-ghost:hover { background: rgba(35,50,77,0.06); color: var(--indigo-dk); border-color: var(--indigo); }
.btn-light {
  background: #fff;
  color: var(--indigo);
  border-color: #fff;
  font-weight: 600;
}
.btn-light:hover { background: #EDEFF4; color: var(--indigo-dk); border-color: #EDEFF4; }

.textlink {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--indigo);
  border-bottom: 1px solid var(--sand);
  padding: 6px 2px;
}
.textlink:hover { text-decoration: none; border-bottom-width: 2px; }

/* ---------- shared blocks ---------- */

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 500;
}

.section { padding-top: clamp(48px, 7vw, 86px); padding-bottom: clamp(48px, 7vw, 86px); }
.section-tight { padding-top: clamp(38px, 5vw, 60px); padding-bottom: clamp(38px, 5vw, 60px); }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-indigo { background: var(--indigo); color: #fff; }
.band-indigo h2 { color: #fff; }
.band-indigo p { color: var(--indigo-lt); }

.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 11px; }

/* two column: narrow heading left, body right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

.hero { padding-top: clamp(44px, 7vw, 100px); padding-bottom: clamp(44px, 6vw, 90px); }
.hero h1 {
  font-size: clamp(31px, 5.2vw, 58px);
  line-height: 1.14;
  font-weight: 400;
  max-width: 900px;
}
.lede {
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.62;
  color: var(--body);
  max-width: 700px;
}

h2.big { font-size: clamp(26px, 3.4vw, 38px); font-weight: 400; }
h2.mid { font-size: clamp(24px, 2.9vw, 33px); font-weight: 400; line-height: 1.25; }

.prose p { font-size: clamp(16px, 1.7vw, 17px); line-height: 1.72; color: var(--body); }
.prose { display: flex; flex-direction: column; gap: 16px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card h3 { font-size: 21px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.62; color: var(--muted); }
.tick { width: 30px; height: 2px; background: var(--sand); }

/* ---------- numbered rows ---------- */

.rows { display: flex; flex-direction: column; }
.row {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: baseline;
}
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.row-num { font-size: 14px; color: #9A6C24; font-weight: 600; width: 28px; flex: none; }
.row-t { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.row-d { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- practice list ---------- */

.service {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 3.5vw, 42px);
  padding-bottom: clamp(28px, 3.5vw, 42px);
}
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service-inner {
  display: grid;
  grid-template-columns: 52px minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(18px, 3.5vw, 56px);
  align-items: start;
}
@media (max-width: 900px) {
  .service-inner { grid-template-columns: 40px minmax(0, 1fr); }
  .service-inner .service-list { grid-column: 1 / -1; }
}
.service-n { font-family: var(--serif); font-size: 32px; color: var(--sand); line-height: 1; }
.service h2 { font-size: clamp(21px, 2.4vw, 26px); font-weight: 600; line-height: 1.25; }
.service-sub { font-size: 15px; line-height: 1.62; color: var(--muted); margin-top: 10px; }
.service-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.service-list li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

/* ---------- facts sidebar ---------- */

.facts { display: flex; flex-direction: column; gap: 26px; }
.fact-k {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 600;
  margin-bottom: 7px;
}
.fact-v { font-size: 15px; line-height: 1.6; color: var(--body); }
.tbd { color: #83898F; }

.portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  background: #E9E5DE;
  border: 1px solid #DCD7CE;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  color: #7A8087;
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
@media (max-width: 900px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

.formbox {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--body); }
.field .opt { font-weight: 400; color: #83898F; }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 3px;
  padding: 12px 13px;
  width: 100%;
  min-height: 46px;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #8A9099; }

.consent { display: flex; gap: 11px; align-items: flex-start; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--sand); }
.consent label { font-size: 13px; line-height: 1.6; color: var(--muted); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { font-size: 14px; color: var(--soft); }

.aside-note {
  background: var(--sand-bg);
  border: 1px solid var(--sand-line);
  border-radius: 4px;
  padding: 18px 20px;
}
.aside-note h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.aside-note p { font-size: 14px; line-height: 1.62; color: var(--muted); }

/* patient-information warning inside the form: a safety notice, deliberately loud */
.phi-callout {
  background: #FDECEA;
  border: 2px solid #B42318;
  border-left-width: 8px;
  border-radius: 4px;
  padding: 16px 20px;
}
.phi-callout h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B42318;
  margin-bottom: 7px;
}
.phi-callout p { font-size: 15px; line-height: 1.6; color: #5C120D; }
.phi-callout strong { font-weight: 700; color: #8A1A12; }

/* ---------- cta ---------- */

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 400; line-height: 1.25; }
.cta-inner p { font-size: 17px; line-height: 1.6; max-width: 620px; margin-top: 10px; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink);
  color: #A6AEB8;
  padding-top: 38px;
  padding-bottom: 38px;
  font-size: 14px;
  line-height: 1.7;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
}
.site-foot a { color: #C9D0D8; }
.disclaimer { font-size: 13px; max-width: 560px; }
@media (min-width: 900px) { .disclaimer { text-align: right; } }

.portrait-photo {
  padding: 0;
  overflow: hidden;
  background: #FFFFFF;
}

.portrait-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
