/*
  HRVoiceNotes (hrvoicenotes.tech) shared stylesheet.
  ONE file for the whole site. No per-page <style> blocks.
  Design language ported from the main marketing site: teal #0D9488 family,
  Inter, navy headings, soft cards, pill nav, dark hero panel.

  Readability rules (owner requirement):
  - Nothing in this file is below 16px. Body is 18px.
  - Text colors meet WCAG AA (4.5:1) on their backgrounds. Teal #0D9488 is
    for decoration and large shapes only; text and button fills use #0F766E.
  - Line height 1.7 or more for running text.
*/

:root {
  --navy: #1B2A4A;
  --teal: #0D9488;          /* decorative only */
  --teal-dark: #0F766E;     /* text links, button fill (white on it = 5.5:1) */
  --teal-darker: #115E59;   /* hover */
  --ink: #0F172A;           /* body text (16:1 on page bg) */
  --muted: #475569;         /* secondary text (7:1 on white) */
  --bg: #F8FAFC;
  --card: rgba(255, 255, 255, 0.94);
  --border: #D7E0EA;
  --warn-bg: #FFFBEB;
  --warn-border: #F5D58A;
  --warn-ink: #7C4A03;
  --shadow-card: 0 20px 50px -30px rgba(15, 23, 42, 0.35);
  --shadow-hero: 0 28px 70px -34px rgba(15, 23, 42, 0.7);
  --radius-card: 24px;
  --radius-pill: 999px;
  --container: 1120px;
  --prose: 740px;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 148, 136, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbfd 0%, #f4f7fb 42%, #eef4fa 100%);
  background-color: var(--bg);
}

img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(13, 148, 136, 0.22); }

a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--teal-darker); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 12px 18px; border-radius: 12px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.container-narrow { width: min(var(--prose), calc(100% - 32px)); margin: 0 auto; }

.section { padding: 44px 0; }
.section-alt { padding: 44px 0; background: rgba(255, 255, 255, 0.55); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section h2, .section-alt h2 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; }
.section-head p { margin: 14px 0 0; color: var(--muted); }
.lead { font-size: 20px; line-height: 1.7; color: var(--muted); }

.eyebrow {
  margin: 0 0 12px;
  font-size: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-dark);
}

.breadcrumb { margin: 24px 0 0; font-size: 16px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }

/* ---------- Header (shared shell) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(14px);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: 12px 0; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__badge {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 14px; border: 1px solid rgba(13, 148, 136, 0.2);
  background: rgba(13, 148, 136, 0.1); color: var(--teal-dark);
}
.brand__title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }

.site-nav { display: flex; align-items: center; justify-content: center; flex: 1; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  padding: 10px 14px; border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 600; color: var(--navy); text-decoration: none;
}
.site-nav a:hover, .site-nav a.is-active { background: rgba(13, 148, 136, 0.12); color: var(--teal-darker); }

.site-actions { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.site-actions__signin { font-size: 17px; font-weight: 600; color: var(--navy); text-decoration: none; padding: 10px 6px; }
.site-actions__signin:hover { color: var(--teal-darker); text-decoration: underline; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 16px; border: 2px solid transparent;
  font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--teal-dark); color: #fff; box-shadow: 0 16px 34px -18px rgba(15, 118, 110, 0.8); }
.button-primary:hover { background: var(--teal-darker); color: #fff; }
.button-secondary { background: #fff; border-color: var(--navy); color: var(--navy); }
.button-secondary:hover { border-color: var(--teal-dark); color: var(--teal-darker); }
.button-light { background: #fff; color: var(--navy); }   /* on dark panels */
.button-light:hover { background: #E6FFFA; color: var(--navy); }
.button-outline-light { background: transparent; border-color: #fff; color: #fff; }
.button-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-actions .button { min-height: 44px; padding: 9px 18px; font-size: 17px; border-radius: var(--radius-pill); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: stretch; }
.hero h1 { margin: 0; font-size: clamp(2.1rem, 5.4vw, 3.5rem); line-height: 1.1; }
.hero .lead { margin: 22px 0 0; max-width: 640px; }
.hero p { max-width: 640px; }
.hero-panel {
  padding: 28px; border-radius: var(--radius-card); color: #fff;
  background: linear-gradient(160deg, #1B2A4A 0%, #1B2A4A 45%, #0F766E 100%);
  box-shadow: var(--shadow-hero);
}
.hero-panel h2 { margin: 0 0 14px; font-size: 24px; color: #fff; }
.hero-panel p, .hero-panel li { color: #fff; }
.hero-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.hero-panel li { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.hero-panel strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #CCFBF1; }
.page-hero { padding: 40px 0 8px; }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 4.8vw, 3.1rem); }
.page-hero .lead { margin: 18px 0 0; max-width: 720px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card, .card-soft {
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--card); box-shadow: var(--shadow-card);
}
.card-soft { box-shadow: none; background: rgba(255,255,255,.8); }
.card h3, .card-soft h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.card p, .card-soft p { margin: 0; color: var(--muted); }
.card p + p, .card-soft p + p { margin-top: 12px; }
.card ul:not([class]), .card-soft ul:not([class]) { margin: 12px 0 0; padding-left: 22px; color: var(--muted); }
.card li + li { margin-top: 6px; }
.card-yes { border-top: 5px solid var(--teal-dark); }
.card-no { border-top: 5px solid #B45309; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.pill {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: 17px; font-weight: 600; color: var(--teal-darker);
  background: rgba(13, 148, 136, 0.1); border: 1px solid rgba(13, 148, 136, 0.25);
}

/* ---------- Numbered steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 22px 24px 22px 92px; min-height: 96px;
  border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 22px; top: 22px;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px;
  background: rgba(13, 148, 136, 0.14); color: var(--teal-darker); font-size: 22px; font-weight: 800;
}
.steps h3 { margin: 0 0 8px; font-size: 21px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 20px; height: 11px;
  border-left: 3px solid var(--teal-dark); border-bottom: 3px solid var(--teal-dark);
  transform: rotate(-45deg) translateY(-50%);
}

/* ---------- FAQ (all answers visible in the HTML, no accordion) ---------- */
.faq { display: grid; gap: 16px; }
.faq-item { padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); }
.faq-item h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; }
.faq-item p { margin: 0; color: var(--ink); }
.faq-item p + p { margin-top: 12px; }

/* ---------- Facts: definition list + data table ---------- */
.facts { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 22px; border-top: 1px solid var(--border); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-weight: 800; color: var(--navy); }
.facts dd { margin: 0; color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); }
.data-table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.55; min-width: 560px; }
.data-table caption { text-align: left; padding: 14px 18px; font-weight: 800; color: var(--navy); }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.data-table th { background: #EEF4FA; color: var(--navy); font-weight: 800; }

/* ---------- Callout ---------- */
.callout {
  margin: 24px 0; padding: 18px 22px; border-radius: 18px;
  background: #ECFDF9; border: 1px solid #99E6D8; border-left: 6px solid var(--teal-dark); color: var(--ink);
}
.callout > :last-child { margin-bottom: 0; }
.callout-warn { background: var(--warn-bg); border-color: var(--warn-border); border-left-color: #B45309; color: var(--warn-ink); }
.callout strong { color: inherit; }

/* ---------- CTA panel (dark) ---------- */
.cta-panel {
  padding: 36px 30px; border-radius: var(--radius-card); color: #fff;
  background: linear-gradient(160deg, #1B2A4A 0%, #1B2A4A 50%, #0F766E 100%);
  box-shadow: var(--shadow-hero);
}
.cta-panel h2 { margin: 0; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-panel p { margin: 16px 0 0; max-width: 640px; color: #fff; }
.cta-panel .button-row { margin-top: 24px; }

/* ---------- Long-form prose (legal pages, about, etc.) ---------- */
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.legal-nav a {
  display: inline-block; padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: #fff; color: var(--navy);
  font-size: 17px; font-weight: 600; text-decoration: none;
}
.legal-nav a:hover, .legal-nav a[aria-current="page"] { background: rgba(13,148,136,.12); border-color: var(--teal-dark); color: var(--teal-darker); }
.legal-meta { margin: 0 0 24px; color: var(--muted); }

.prose { max-width: var(--prose); }
.prose h1 { margin: 0 0 12px; font-size: clamp(2rem, 4.6vw, 2.9rem); }
.prose h2 { margin: 2em 0 .5em; font-size: clamp(1.45rem, 3vw, 1.9rem); }
.prose h3 { margin: 1.6em 0 .4em; font-size: 21px; }
.prose p, .prose li { color: var(--ink); line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 26px; }
.prose li + li { margin-top: 8px; }
.prose .section-head, .prose .table-wrap { margin-top: 18px; }

/* ---------- Forms ---------- */
.form-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); box-shadow: var(--shadow-card); }
.form-card form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
label, legend { font-size: 17px; font-weight: 700; color: var(--navy); }
.field-hint { margin: 0; font-size: 16px; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  border-radius: 14px; border: 2px solid #94A3B8; background: #fff; color: var(--ink);
  font-size: 18px; line-height: 1.4;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-dark); box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.2); }
input::placeholder, textarea::placeholder { color: #64748B; }
.form-note { margin: 0; font-size: 16px; color: var(--muted); }
.required-mark { color: #B91C1C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot field wrapper */

/* ---------- Footer (shared shell) ---------- */
.site-footer { margin-top: 36px; padding: 44px 0 48px; border-top: 1px solid var(--border); font-size: 17px; }
.site-footer__card {
  display: grid; grid-template-columns: 1fr; gap: 28px; padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: rgba(255,255,255,.85); box-shadow: var(--shadow-card);
}
.site-footer__brand { display: grid; gap: 12px; max-width: 360px; }
.site-footer__brand p { margin: 0; color: var(--muted); line-height: 1.6; }
.site-footer h2 { margin: 0 0 10px; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.site-footer__cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.site-footer a { display: inline-block; padding: 5px 0; font-weight: 600; color: var(--navy); text-decoration: none; }
.site-footer a:hover { color: var(--teal-darker); text-decoration: underline; }
.site-footer .brand { color: var(--navy); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 32px; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Breakpoints (mobile first) ---------- */
@media (min-width: 700px) {
  .container, .container-narrow { width: min(var(--container), calc(100% - 48px)); }
  .container-narrow { width: min(var(--prose), calc(100% - 48px)); }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; }
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 36px; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer__card { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .section, .section-alt { padding: 56px 0; }
}
@media (max-width: 979px) {
  .site-nav { order: 3; width: 100%; justify-content: flex-start; }
  .site-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .steps > li { padding: 20px 18px 20px 18px; padding-top: 86px; }
  .steps > li::before { left: 18px; top: 18px; }
  .site-actions { width: 100%; justify-content: space-between; }
  .cta-panel, .form-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-panel, .skip-link { display: none; }
  body { background: #fff; font-size: 12pt; }
}
