/* ==========================================================================
   Dahava Analytics — site styles
   Brand colors and fonts are the variables in :root. Everything else
   follows from them. Per the brand guide, champagne gold is used for rules,
   accents and large numerals only — never for small text.
   ========================================================================== */
:root {
  --navy: #162A3D;          /* Midnight Navy — headings, navigation, dark sections */
  --navy-2: #1F3851;        /* lighter navy for hover states */
  --gold: #B69A68;          /* Champagne Gold — accents, dividers, highlights */
  --gold-tint: #EFE7D8;     /* pale gold wash */
  --ivory: #F5F2EB;         /* Warm Ivory — open content sections */
  --white: #FFFFFF;
  --charcoal: #2A2F35;      /* body text */
  --muted: #59636E;         /* secondary text (≥5.5:1 on ivory) */
  --line: #DCD5C7;          /* borders */
  --line-soft: #ECE6DA;
  --on-navy: #EEF1F4;       /* text on navy */
  --on-navy-muted: #B9C3CD; /* secondary text on navy (≥7:1) */
  --unfavorable: #8F3A2C;   /* unfavorable variances in sample reports */

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --radius: 3px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font: 400 18px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.22; letter-spacing: -0.01em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 1.3rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.35rem); }
h3 { font-size: 1.22rem; line-height: 1.35; }
h4 { font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 0 0 .75em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.section-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } body { font-size: 17px; } }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--navy); color: var(--white); padding: 10px 16px; }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Eyebrow label: navy text led by a short gold rule */
.eyebrow { display: flex; align-items: center; gap: 14px; font: 600 .78rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin: 0 0 1.25rem; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); flex: none; }
.section-navy .eyebrow { color: var(--on-navy); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--charcoal); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center;
  padding: 15px 26px; border: 1.5px solid var(--navy); border-radius: var(--radius);
  background: var(--navy); color: var(--white); cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-small { padding: 11px 18px; font-size: .92rem; }
.section-navy .btn { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }
.section-navy .btn:hover { background: var(--white); border-color: var(--white); }
.section-navy .btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: var(--white); }
.section-navy .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.text-link { font-weight: 600; text-decoration: none; color: var(--navy); border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { border-bottom-color: var(--navy); }
.text-link::after { content: " →"; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { height: 60px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a:not(.btn) { position: relative; font-size: .98rem; font-weight: 500; color: var(--charcoal); text-decoration: none; padding: 6px 0; }
.primary-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.primary-nav a:not(.btn):hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--navy); }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; font: 600 .9rem var(--sans); color: var(--navy); cursor: pointer; }
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars span { display: block; width: 18px; height: 1.5px; background: var(--navy); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { position: absolute; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 32px 24px; box-shadow: 0 18px 30px -20px rgba(22,42,61,.35); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .primary-nav a:not(.btn)::after { display: none; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
  .primary-nav .btn { margin-top: 18px; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .logo img { height: 44px; }
  .primary-nav { padding: 8px 20px 20px; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.section-ivory { background: var(--ivory); }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy strong { color: var(--white); }
.section-navy p { color: var(--on-navy); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--charcoal); font-size: 1.1rem; }
.section-navy .section-head p { color: var(--on-navy); }
@media (max-width: 760px) { .section { padding: 72px 0; } .section-tight { padding: 56px 0; } .section-head { margin-bottom: 40px; } }

.arc { width: 84px; height: 28px; margin-bottom: 18px; }
.center .arc { margin-left: auto; margin-right: auto; }

/* ---------- Home hero ---------- */
.hero { background: var(--ivory); padding: 88px 0 104px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, .95fr); gap: 64px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero-sub { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.45; color: var(--navy); margin-bottom: 1.4rem; max-width: 30em; }
.hero p.lead { font-size: 1.1rem; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; } .hero { padding: 64px 0 80px; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--ivory) url("../images/arch-navy.svg") no-repeat right -60px bottom -40px / 620px auto; padding: 88px 0 80px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18em; }
.page-hero .lead { margin-bottom: 0; }
@media (max-width: 760px) { .page-hero { padding: 60px 0 56px; background-size: 380px auto; background-position: right -120px bottom -40px; } }

/* ---------- Sample reports (shared) ---------- */
.report { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(22,42,61,.45); }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); border-top: 3px solid var(--navy); }
.report-title { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); line-height: 1.3; }
.report-meta { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.badge { flex: none; display: inline-block; font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--gold); background: var(--gold-tint); padding: 6px 9px; border-radius: 2px; white-space: nowrap; }
.report-body { padding: 22px 24px 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-bottom: 22px; }
.kpi { background: var(--white); padding: 14px 14px 12px; }
.kpi-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi-value { display: block; font: 600 1.45rem/1.25 var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpi-note { display: block; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.kpi-note.is-unfavorable { color: var(--unfavorable); }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.chart-block { margin: 0; }
.chart-block + .chart-block { margin-top: 22px; }
.chart-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.chart-caption strong { font-size: .9rem; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 10px; background: var(--navy); }
.legend i.light { opacity: .35; }
.legend i.line { height: 3px; background: var(--gold); }
.legend i.dash { height: 0; border-top: 2px dashed var(--muted); background: none; }
.chart-scroll { overflow-x: auto; }
.chart { width: 100%; height: auto; min-width: 440px; }
.chart .ax { font: 400 12px var(--sans); fill: var(--muted); }
.chart .lb { font: 600 13px var(--sans); fill: var(--navy); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.hero .chart { min-width: 0; }
.hero .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.report-note { display: flex; gap: 12px; align-items: flex-start; background: var(--ivory); border-left: 3px solid var(--gold); padding: 14px 16px; font-size: .92rem; line-height: 1.5; margin-top: 18px; }
.report-note p { margin: 0; }

.fin-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.fin-table caption { text-align: left; font-weight: 600; color: var(--navy); padding-bottom: 8px; font-size: .9rem; }
.fin-table th, .fin-table td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; }
.fin-table th:first-child, .fin-table td:first-child { text-align: left; padding-left: 0; white-space: normal; }
.fin-table th:last-child, .fin-table td:last-child { padding-right: 0; }
.fin-table thead th { white-space: normal; vertical-align: bottom; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.fin-table tbody th { font-weight: 400; }
.fin-table .subtotal td, .fin-table .subtotal th { font-weight: 600; color: var(--navy); border-top: 1px solid var(--line); }
.fin-table .total td, .fin-table .total th { font-weight: 600; color: var(--navy); border-top: 2px solid var(--navy); border-bottom: 0; }
.fin-table .neg { color: var(--unfavorable); }
.fin-table tr.flagged td, .fin-table tr.flagged th { background: var(--gold-tint); }
.status { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; }
.status-review { color: var(--unfavorable); border: 1px solid currentColor; }
.status-ok { color: var(--muted); border: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.table-scroll .fin-table { min-width: 560px; }
.illustrative-note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.problem-item { border-top: 1px solid var(--navy); padding-top: 24px; }
.problem-item .num { display: block; font: 400 1.6rem/1 var(--serif); color: var(--gold); margin-bottom: 14px; }
.problem-item p { margin: 0; }
.problem-close { margin: 72px auto 0; text-align: center; max-width: 820px; }
.problem-close p { font-family: var(--serif); font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.9rem); line-height: 1.4; color: var(--navy); margin: 0; }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- See the Difference ---------- */
.difference { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.difference .section-head { max-width: 920px; }
.difference h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); }
.diff-copy { max-width: 760px; margin: 0 auto; text-align: center; font-size: 1.1rem; }
.diff-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; align-items: stretch; }
.diff-col { padding: 40px 48px 44px; }
.diff-col h3 { font-size: 1.5rem; margin-bottom: .2em; }
.diff-kicker { font: 600 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.diff-list { list-style: none; padding: 0; margin: 26px 0 28px; }
.diff-list li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line); }
.diff-list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 12px; height: 1.5px; background: currentColor; opacity: .55; }
.diff-summary { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; margin: 0; }
.diff-records { background: var(--ivory); border: 1px solid var(--line); border-right: 0; color: var(--charcoal); }
.diff-records .diff-kicker { color: var(--muted); }
.diff-records h3 { color: var(--charcoal); }
.diff-insight { background: var(--navy); color: var(--on-navy); border-top: 4px solid var(--gold); }
.diff-insight h3 { color: var(--white); }
.diff-insight .diff-kicker { color: var(--on-navy-muted); }
.diff-insight .diff-list li { border-bottom-color: rgba(255,255,255,.14); }
.diff-insight .diff-list li::before { background: var(--gold); opacity: 1; width: 14px; height: 2px; }
.diff-insight .diff-summary { color: var(--white); }
.diff-bridge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 1px solid var(--gold); display: grid; place-items: center; color: var(--navy); font-size: 1.3rem; z-index: 2; }
@media (max-width: 860px) {
  .diff-grid { grid-template-columns: 1fr; }
  .diff-records { border-right: 1px solid var(--line); }
  .diff-col { padding: 32px 24px 36px; }
  .diff-bridge { position: relative; left: auto; top: auto; transform: none; margin: -28px auto; }
  .diff-bridge span { transform: rotate(90deg); }
}

.example { margin-top: 80px; }
.example-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.example-head h3 { margin: 0; font-size: 1.35rem; }
.example-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); gap: 24px; }
.statement { background: var(--ivory); border: 1px solid var(--line); padding: 28px; border-radius: var(--radius); }
.statement h4 { color: var(--muted); }
.statement dl { margin: 18px 0 0; font-variant-numeric: tabular-nums; }
.statement dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.statement dl div.total { border-bottom: 0; border-top: 2px solid var(--charcoal); }
.statement dt { color: var(--charcoal); }
.statement dd { margin: 0; font-weight: 600; color: var(--charcoal); }
.statement-foot { font-size: .9rem; color: var(--muted); margin: 18px 0 0; }
.analysis { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold); padding: 28px; border-radius: var(--radius); }
.analysis-headline { font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; color: var(--navy); margin: 6px 0 18px; }
.analysis ul { margin: 18px 0 0; padding: 0; list-style: none; }
.analysis li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line-soft); position: relative; font-size: .97rem; }
.analysis li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 2px; background: var(--gold); }
@media (max-width: 900px) { .example-grid { grid-template-columns: minmax(0, 1fr); } }
.difference-close { text-align: center; margin-top: 80px; }
.difference-close .arc, .problem-close .arc { margin: 0 auto 18px; }
.difference-close p { font-family: var(--serif); font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem); line-height: 1.4; color: var(--navy); max-width: 820px; margin: 0 auto 1.8rem; }

/* ---------- Cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.service-card { grid-column: span 2; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px 28px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }
.service-card:hover { border-color: var(--gold); box-shadow: 0 24px 40px -32px rgba(22,42,61,.5); }
.service-card .num { font: 400 1.5rem/1 var(--serif); color: var(--gold); margin-bottom: 18px; }
.service-card h3 { margin-bottom: .5em; }
.service-card p { color: var(--charcoal); font-size: 1rem; }
.service-card ul { list-style: none; padding: 0; margin: 4px 0 22px; font-size: .94rem; color: var(--muted); }
.service-card li { padding: 6px 0; border-top: 1px solid var(--line-soft); }
.service-card .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .service-grid { grid-template-columns: 1fr 1fr; } .service-card, .service-card:nth-child(4) { grid-column: span 1; } .service-card:nth-child(5) { grid-column: span 2; } }
@media (max-width: 680px) { .service-grid { grid-template-columns: 1fr; } .service-card:nth-child(5) { grid-column: span 1; } }

.industry-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--navy); }
.industry-card { padding: 40px 40px 40px 0; border-bottom: 1px solid var(--line); }
.industry-card:nth-child(even) { padding: 40px 0 40px 40px; border-left: 1px solid var(--line); }
.industry-card h3 { font-size: 1.45rem; }
.industry-card p { font-size: 1rem; }
.chip-list { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { font-size: .88rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); color: var(--charcoal); }
@media (max-width: 860px) { .industry-grid { grid-template-columns: minmax(0, 1fr); } .industry-card, .industry-card:nth-child(even) { padding: 32px 0; border-left: 0; } }

/* ---------- Approach steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 0 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-num { display: block; font: 400 2.4rem/1 var(--serif); color: var(--gold); margin-bottom: 18px; }
.step h3 { font: 600 .9rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin-bottom: .8em; }
.step p { font-size: 1rem; margin: 0; }
.steps-note { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.steps-note p { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin: 0; max-width: 34em; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; } .step:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step, .step + .step, .step:nth-child(3) { padding: 0 0 0 20px; border-left: 2px solid var(--gold); } }

/* ---------- Dashboard section ---------- */
.dash-kpis { padding: 22px 24px 0; }
.dash-kpis .kpis { margin-bottom: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--line); }
.dash-panel { padding: 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.dash-panel:nth-child(odd) { border-right: 1px solid var(--line); }
.dash-panel h4 { margin-bottom: 4px; }
.panel-sub { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.observations { padding: 24px; background: var(--ivory); }
.observations-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.observations-head h4 { margin: 0; }
.observations ol { margin: 0; padding: 0; list-style: none; counter-reset: obs; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.observations li { counter-increment: obs; font-size: .95rem; line-height: 1.55; }
.observations li::before { content: counter(obs, decimal-leading-zero); display: block; font: 400 1.2rem/1 var(--serif); color: var(--gold); margin-bottom: 8px; }
.observations li strong { display: block; margin-bottom: 4px; }
.observations .review { display: block; margin-top: 8px; font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } .dash-panel:nth-child(odd) { border-right: 0; } .observations ol { grid-template-columns: 1fr; } }

/* ---------- Why Dahava ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.why-item::before { content: ""; display: block; width: 40px; height: 2px; background: var(--gold); margin-bottom: 20px; }
.why-item h3 { font-size: 1.2rem; }
.why-item p { margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy) url("../images/arch-gold.svg") no-repeat right -80px bottom -60px / 640px auto; overflow: hidden; }
.cta-band h2 { max-width: 16em; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.cta-band p { max-width: 40em; font-size: 1.1rem; }
@media (max-width: 760px) { .cta-band { background-size: 420px auto; background-position: right -180px bottom -60px; } }

/* ---------- Detail pages (Services / Industries) ---------- */
.jump-nav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 50; }
.jump-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.jump-nav ul::-webkit-scrollbar { display: none; }
.jump-nav a { display: block; white-space: nowrap; padding: 16px 0; font-size: .92rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.jump-nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
html:has(.jump-nav) { scroll-padding-top: calc(var(--header-h) + 72px); }

.detail { padding: 96px 0; border-bottom: 1px solid var(--line); }
.detail.alt { background: var(--ivory); }
.detail-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 72px; align-items: start; }
.detail-intro { position: sticky; top: calc(var(--header-h) + 88px); }
.detail-intro .num { display: block; font: 400 2.2rem/1 var(--serif); color: var(--gold); margin-bottom: 16px; }
.detail-intro h2 { margin-bottom: .45em; }
.detail-intro .lead { font-size: 1.1rem; }
.detail-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.detail-block h3 { font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding-bottom: 10px; border-bottom: 1px solid var(--gold); margin-bottom: 14px; }
.detail-block p, .detail-block li { font-size: 1rem; }
.detail-block p:last-child { margin-bottom: 0; }
.detail-block ul { padding-left: 0; list-style: none; margin: 0; }
.detail-block li { padding: 5px 0 5px 18px; position: relative; }
.detail-block li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 1.5px; background: var(--navy); }
.detail-wide { grid-column: 1 / -1; }
.callout { grid-column: 1 / -1; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 24px 28px; min-width: 0; }
.callout h3 { font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout .fin-table { margin: 18px 0 4px; }
.detail-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 8px; }
.detail-cta p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .detail-intro { position: static; } }
@media (max-width: 640px) { .detail { padding: 64px 0; } .detail-blocks { grid-template-columns: minmax(0, 1fr); gap: 32px; } .callout { padding: 20px; } }

.scope-note { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--white); border: 1px solid var(--line); padding: 24px 28px; margin-top: 40px; max-width: 860px; }
.scope-note img { width: 64px; height: auto; margin-top: 6px; }
.scope-note p { margin: 0; }
@media (max-width: 560px) { .scope-note { grid-template-columns: 1fr; } }

/* ---------- Prose pages (About, Approach, Privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { font-size: 1.06rem; }
.two-col { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 72px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.statement-quote { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.4; color: var(--navy); margin: 0; padding-left: 28px; border-left: 2px solid var(--gold); }
.principle-list { list-style: none; padding: 0; margin: 0; }
.principle-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.principle-list li:last-child { border-bottom: 1px solid var(--line); }
.principle-list h3 { margin-bottom: .3em; font-size: 1.15rem; }
.principle-list p { margin: 0; font-size: 1rem; }
.draft-banner { background: var(--gold-tint); border: 1px solid var(--gold); padding: 16px 20px; margin-bottom: 40px; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; border-top: 1px solid var(--navy); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.4; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--navy), var(--navy)) center / 14px 1.5px no-repeat, linear-gradient(var(--navy), var(--navy)) center / 1.5px 14px no-repeat; }
.faq-item[open] summary::after { background: linear-gradient(var(--navy), var(--navy)) center / 14px 1.5px no-repeat; }
.faq-answer { padding: 0 48px 26px 0; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group > h2 { font-size: 1.5rem; margin-bottom: 20px; }
@media (max-width: 640px) { .faq-answer { padding-right: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 64px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 40px; border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { margin-bottom: 22px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: 7px; padding: 0; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--charcoal);
  background-color: var(--white); border: 1px solid #C2BAA9; border-radius: var(--radius); padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23162A3D' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(182,154,104,.4); }
.field [aria-invalid="true"] { border-color: var(--unfavorable) !important; }
.field-error { display: block; color: var(--unfavorable); font-size: .88rem; margin-top: 6px; }
.field-error:empty { display: none; }
fieldset.field { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; line-height: 1.4; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.form-privacy { font-size: .9rem; color: var(--muted); background: var(--ivory); border-left: 3px solid var(--gold); padding: 14px 16px; margin: 4px 0 24px; }
.form-privacy strong { color: var(--charcoal); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; padding: 17px 26px; }
.form .btn[disabled] { opacity: .65; cursor: progress; }
.form-status { margin: 16px 0 0; font-size: .97rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--unfavorable); }
.form-status.is-success { color: var(--navy); background: var(--gold-tint); border-left: 3px solid var(--gold); padding: 14px 16px; }
.contact-aside h2 { font-size: 1.3rem; }
.contact-line { display: inline-block; font-size: 1.2rem; font-weight: 600; color: var(--navy); text-decoration: none; margin-bottom: 4px; }
.contact-aside .block { padding: 28px 0; border-top: 1px solid var(--line); }
.contact-aside .block:first-child { padding-top: 0; border-top: 0; }
.next-steps { list-style: none; padding: 0; margin: 0; counter-reset: ns; }
.next-steps li { counter-increment: ns; position: relative; padding: 0 0 18px 42px; font-size: 1rem; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 27px; height: 27px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font: 400 .85rem/1 var(--serif); color: var(--navy); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }
@media (max-width: 640px) { .form { padding: 28px 20px; } .form-row, .check-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); border-top: 3px solid var(--gold); font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding: 72px 0 56px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--on-navy-muted); max-width: 22em; }
.footer-tagline { font-family: var(--serif); font-size: 1.15rem; color: var(--white) !important; margin-bottom: .5em; }
.site-footer h2 { font: 600 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: .85rem; }
.footer-bottom p { margin: 0; max-width: 64em; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 40px; } }

/* Elements filled from js/site.js stay hidden until their value is set */
[data-site-field][hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

@media print {
  .site-header, .jump-nav, .cta-band, .site-footer, .btn-row, .nav-toggle { display: none !important; }
  body { font-size: 11pt; }
  .section, .detail { padding: 24px 0; }
}

.spaced-top { margin-top: 28px; }

/* Dashboard tables sit in half-width panels: let them fit without scrolling */
.dash-panel .table-scroll .fin-table { min-width: 380px; }
.dash-panel .fin-table th, .dash-panel .fin-table td { padding-left: 8px; padding-right: 8px; }
.dash-panel .fin-table th:first-child, .dash-panel .fin-table td:first-child { padding-left: 0; }
.dash-panel .fin-table th:last-child, .dash-panel .fin-table td:last-child { padding-right: 0; }

/* Phones: charts scale to the full width, with larger label text to stay legible */
@media (max-width: 560px) {
  .chart { min-width: 0; }
  .chart .ax { font-size: 15px; }
  .chart .lb { font-size: 16px; }
}
/* Callout tables on desktop fit the column; on phones they scroll sideways */
.callout .table-scroll .fin-table { min-width: 520px; }
.callout .fin-table th, .callout .fin-table td { padding-left: 8px; padding-right: 8px; }
.callout .fin-table th:first-child, .callout .fin-table td:first-child { padding-left: 0; }
