/* Dacore site styles. Mobile first, no frameworks. */

:root {
  --ink: #14211f;
  --muted: #45524f;
  --brand: #0f5c4d;
  --brand-dark: #0a4237;
  --accent: #f2b544;
  --bg: #ffffff;
  --soft: #eef5f3;
  --line: #d3e0dc;
  --warn-bg: #fff4d6;
  --warn-ink: #5c3d00;
  --focus: #1a73e8;
  --radius: 10px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

a { color: var(--brand); text-underline-offset: 0.15em; }
a:hover { color: var(--brand-dark); }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6em 1em; border-radius: var(--radius);
}
.skip-link:focus { top: var(--gutter); color: #fff; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 760px; }

.small { font-size: 0.9375rem; color: var(--muted); }

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

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--brand); text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em;
}
.logo-mark { display: inline-flex; color: var(--brand); }
.site-nav { order: 3; width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a {
  display: inline-block; padding: 0.4rem 0; color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--brand-dark); }
.header-cta { margin-left: auto; }

@media (min-width: 860px) {
  .site-nav { order: 0; width: auto; margin-left: auto; }
  .header-cta { margin-left: 0; }
}
@media (max-width: 420px) {
  .header-cta { display: none; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.75em 1.35em; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-secondary:hover { background: var(--soft); }
.btn-small { min-height: 44px; padding: 0.5em 1em; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

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

.hero { background: linear-gradient(180deg, var(--soft), var(--bg)); padding: 3rem 0 2.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8125rem; font-weight: 700; color: var(--brand); }
.lead { font-size: clamp(1.125rem, 2.6vw, 1.35rem); color: var(--muted); max-width: 40ch; }

.section { padding-top: 3rem; padding-bottom: 3rem; }
.section-soft { background: var(--soft); }
.section-intro { max-width: 65ch; color: var(--muted); }

.card-grid, .feature-list, .price-grid, .pill-list, .steps { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.card-grid { display: grid; gap: 1rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
}
.card p:last-child { margin-bottom: 0; }
.text-link { font-weight: 700; }

@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.feature-list { display: grid; gap: 1.25rem; }
.feature-list li { padding-left: 1rem; border-left: 4px solid var(--accent); }
.feature-list p { margin: 0; color: var(--muted); }
@media (min-width: 720px) { .feature-list { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2.5rem; } }

.price-grid { display: grid; gap: 1rem; }
.price-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.price-card h3 { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price { margin: 0; font-size: 1rem; }
.price strong { font-size: 1.75rem; color: var(--brand-dark); }
@media (min-width: 600px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }

.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pill-list li { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; font-weight: 600; }

/* ---------- FAQ ---------- */

.faq { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { display: inline; font-size: 1.0625rem; margin: 0; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.5rem; line-height: 1; color: var(--brand);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); padding-bottom: 0.5rem; }

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

.form { margin-top: 1.5rem; }
.field-grid { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } .field-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.req { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #8a9a96; border-radius: 8px; padding: 0.65rem 0.75rem; min-height: 48px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid var(--focus); outline-offset: 1px; }
.field textarea { resize: vertical; }
.form-status:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form-status { color: var(--brand-dark); font-weight: 700; margin-top: 1rem; }

/* ---------- prose / privacy ---------- */

.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.draft-banner {
  background: var(--warn-bg); color: var(--warn-ink); border: 2px solid #e0a800; border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.toc { background: var(--soft); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.toc h2 { font-size: 1.125rem; margin: 0 0 0.5rem; }
.toc ul { margin: 0; padding: 0; list-style: none; }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--soft); }
.data-table tbody th { font-weight: 600; }

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

.site-footer { background: var(--ink); color: #dfe8e6; padding: 2.5rem 0; font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.logo-footer, .logo-footer .logo-mark { color: #fff; }
.logo-footer .logo-mark path:last-child { fill: var(--ink); }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-legal { color: #b9c7c4; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 0.8fr 1.5fr; } }

/* ---------- sample report ---------- */

.report-body { background: #e9eeed; }
.report-toolbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem;
  max-width: 210mm; margin: 0 auto; padding: 1rem var(--gutter);
}
.report {
  background: #fff; max-width: 210mm; margin: 0 auto 2rem; padding: 1.25rem var(--gutter);
  font-size: 0.9375rem; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}
@media (min-width: 640px) { .report { padding: 14mm; } }
.report-sample { background: var(--warn-bg); color: var(--warn-ink); font-size: 0.8125rem; padding: 0.35rem 0.75rem; border-radius: 6px; }
.report-head { border-bottom: 3px solid var(--brand); padding-bottom: 0.75rem; margin-bottom: 1rem; }
.report-brand { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.report-contact { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.report h1 { font-size: 1.5rem; }
.report h2 { font-size: 1.125rem; margin-top: 0.25rem; color: var(--brand-dark); }
.report-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem; margin: 0; }
.report-details div { border-left: 3px solid var(--accent); padding-left: 0.5rem; }
.report-details dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.report-details dd { margin: 0; font-weight: 700; }
@media (min-width: 640px) { .report-details { grid-template-columns: repeat(3, 1fr); } }
.report-section { margin-bottom: 1.25rem; }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.report-table th, .report-table td { text-align: left; vertical-align: top; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); }
.report-table thead th { background: var(--soft); font-size: 0.8125rem; }
.report-table tbody th { font-weight: 600; }
.report-table .tick { text-align: center; font-weight: 800; color: var(--brand); width: 3.5rem; font-size: 1rem; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo { margin: 0; }
.photo img, .photo-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.photo-placeholder {
  display: grid; place-items: center; background: #f3f6f5; border: 2px dashed #9fb2ad;
  color: var(--muted); font-size: 0.8125rem; text-align: center; padding: 0.5rem;
}
.photo-before .photo-placeholder { background: #f7f1ea; }
.photo figcaption { font-size: 0.8125rem; margin-top: 0.3rem; line-height: 1.35; }
.report-footer { border-top: 1px solid var(--line); padding-top: 0.75rem; font-size: 0.75rem; color: var(--muted); }
.report-footer p { margin: 0 0 0.25rem; }

@page { size: A4; margin: 12mm; }

@media print {
  html, body { background: #fff !important; }
  body { font-size: 10pt; }
  .no-print, .skip-link { display: none !important; }
  .report { max-width: none; margin: 0; padding: 0; box-shadow: none; font-size: 9.5pt; }
  .report h1 { font-size: 15pt; }
  .report h2 { font-size: 11.5pt; }
  .report-details { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 4mm; }
  .report-table, .photo, .report-details, .report-footer { break-inside: avoid; page-break-inside: avoid; }
  .report-table tr { break-inside: avoid; }
  .report h2 { break-after: avoid; page-break-after: avoid; }
  .report a { color: inherit; text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
