/*
 * SOLIS bot site styles — implements the Phase-1 v3 validated design.
 * All values come from tokens.css; a raw hex or px here is a defect.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-size-adjust: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-heading);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

a {
  color: var(--color-primary);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-on-dark);
  padding: var(--space-3) var(--space-4);
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.section--tint-top {
  background: linear-gradient(180deg, var(--color-hero-tint) 0%, var(--color-bg) 85%);
}

.section--tint-bottom {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-hero-tint) 100%);
}

/* ---------- Shared atoms ---------- */
.sup {
  display: block;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700; /* v3 proposal weight */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-5);
  max-width: 28ch;
}

/* One line on laptop, auto-resized; wraps on mobile (see media query) */
.section-title--oneline {
  max-width: none;
  white-space: nowrap;
  font-size: var(--text-h2-oneline);
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 64ch;
}

.section--dark .section-desc {
  color: var(--color-on-dark-muted);
}

/* Brand red fails 4.5:1 on ink — dark sections use the lifted red */
.section--dark .sup,
.site-footer .brand em {
  color: var(--color-primary-on-dark);
}

/* Brand red is 4.33:1 on the hero tint (needs 4.5) — tint sections use the dark red */
.section--tint-top .sup,
.section--tint-bottom .sup {
  color: var(--color-primary-dark);
}

.btn {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-5);
  font-weight: 600;
  font-size: var(--text-small);
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-dark);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-dark);
}

.btn--secondary {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.link-more {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: var(--text-small);
}

.link-more:hover,
.link-more:focus-visible {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Placeholder frame for assets not yet provided (TODO) */
.asset-todo {
  border: 2px dashed var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--text-small);
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-3);
}

.brand {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 1.25rem;
  color: var(--color-ink);
  text-decoration: none;
}

.brand em {
  font-style: normal;
  color: var(--color-primary);
}

/* Official logo in the header (footer keeps the text wordmark on dark) */
.brand__logo {
  height: 44px;
  width: auto;
}

.nav__toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font: inherit;
  cursor: pointer;
  color: var(--color-ink);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}

.nav__menu a {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: 500;
}

.nav__menu a:hover,
.nav__menu a:focus-visible {
  color: var(--color-primary);
}

/* The rules above out-specify .btn--primary (0,1,1 vs 0,1,0) and painted the
   demo button navy-on-red — re-assert white, in every state (audit fix #1) */
.nav__menu a.btn--primary,
.nav__menu a.btn--primary:hover,
.nav__menu a.btn--primary:focus-visible {
  color: var(--color-on-dark);
}

.nav__menu .btn {
  padding: var(--space-2) var(--space-4);
}

.lang-switch {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  text-decoration: none;
}

/* ---------- Hero (block 1) ---------- */
.hero {
  padding-block: var(--space-8) var(--space-7);
}

.hero__cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-7);
  align-items: center;
}

.hero__title {
  font-size: var(--text-h1);
  margin-bottom: var(--space-5);
}

.hero__title .hl {
  font-style: normal;
  color: var(--color-primary);
}

.hero__sub {
  color: var(--color-text-muted);
  max-width: 56ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.hero__image {
  aspect-ratio: 4 / 3;
}

/* Real images (hero screenshot, challenge photo, map) — soft frame */
.hero__img,
.feature-row__photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Zoomable images invite a click */
.zoomable {
  cursor: zoom-in;
}

/* ---------- Lightbox (enlarged image view) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: rgb(14 22 38 / 88%);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: min(1200px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 48px rgb(0 0 0 / 40%);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: var(--color-primary);
  color: var(--color-on-dark);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-6);
  list-style: none;
  padding-inline: 0;
  margin-bottom: 0;
}

/* Owner: KPI figures and labels are centered in their cell */
.kpi {
  text-align: center;
}

.kpi__value {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 1.625rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1);
}

.kpi__label {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ---------- Two-column feature rows (blocks 2 & 5) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-7);
}

.feature-row__media {
  aspect-ratio: 16 / 12;
}

.feature-row--presence {
  grid-template-columns: 1fr 1fr;
}

.stats {
  display: flex;
  gap: var(--space-7);
  margin-top: var(--space-6);
  justify-content: center;
}

/* Presence indicators: figures and labels centered (owner) */
.stat {
  text-align: center;
}

.stat__value {
  display: block;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 1.875rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1);
}

.stat__label {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* Challenge infographic — inline SVG, no image asset needed */
.infographic {
  width: 100%;
  height: auto;
}

/* ---------- Video (block 3) — v1 composition kept by owner ---------- */
.video-block {
  text-align: center;
}

.video-block .sup {
  margin-bottom: var(--space-2);
}

.video-block .section-title {
  margin-inline: auto;
  margin-bottom: var(--space-3);
}

.video-block .section-desc {
  margin-inline: auto;
  color: var(--color-on-dark-muted-soft);
}

.video-block__player {
  margin: var(--space-6) auto 0;
  max-width: 760px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-ink);
}

.video-block__player video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* ---------- Services (block 4) ---------- */

/* Auto-fit: the five function cards sit in one row on desktop, then wrap */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.card .sup {
  font-size: 0.66rem;
  margin-bottom: 0;
}

.card__title {
  font-size: 1rem;
}

.card__desc {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  flex: 1;
}

/* ---------- Featured articles / blog cards (block 6, blog index) ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Uniform card covers: fixed ratio on the img itself (a container aspect-ratio
   gets stretched by the intrinsic image height); crop keeps the TOP of the photo */
.post-card__cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-card__cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: top;
}

.post-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.post-card__body .sup {
  margin-bottom: 0;
  font-size: 0.66rem;
}

.post-card__title {
  font-size: 0.9375rem;
  line-height: 1.3;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a:hover,
.post-card__title a:focus-visible {
  color: var(--color-primary);
}

.post-card__date {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.post-card__excerpt {
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* ---------- Process (block 7) — collapsible steps, zero JS ---------- */
.steps {
  margin-top: var(--space-7);
  max-width: 780px;
}

.step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  margin-bottom: var(--space-3);
  transition: border-color var(--transition-fast);
}

.step summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 44px 1fr auto; /* 3rd col = the +/- marker, always right of the text */
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
}

.step summary::-webkit-details-marker {
  display: none;
}

.step summary::after {
  content: "+";
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

.step[open] summary::after {
  content: "\2013";
}

.step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-dark);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spans (not h3/p — summary only permits phrasing content), styled as blocks */
.step__title {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: 0.97rem;
  line-height: var(--leading-heading);
}

/* Owner request: the step intro sentence reads bold, in full ink */
.step__summary {
  display: block;
  color: var(--color-text);
  font-size: 0.8125rem;
  margin-top: var(--space-1);
  font-weight: 600;
}

.step__more {
  padding: 0 var(--space-5) var(--space-4) 76px;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.step__more ul {
  margin: var(--space-2) 0;
  padding-left: var(--space-4);
}

.step__more li {
  margin-block: var(--space-1);
}

.step__deliverable {
  display: inline-block;
  background: var(--color-hero-tint);
  color: var(--color-primary-dark);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  margin-top: var(--space-2);
}

/* ---------- Testimonials (block 8) ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.quote-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.quote-card::before {
  content: "\201C";
  display: block;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 2.375rem;
  font-weight: 700;
  line-height: 0.6;
  margin-bottom: var(--space-4);
}

.quote-card blockquote {
  margin: 0;
  font-size: 0.875rem;
}

.quote-card footer {
  margin-top: var(--space-4);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.quote-card cite {
  font-style: normal;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.8125rem;
  display: block;
}

/* Org logos: legible height, proportions preserved, full color (owner spec) */
.quote-card__logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* ---------- Partners (block 9) — logos only, capped height ---------- */
.partners {
  text-align: center;
  padding-block: var(--space-7);
}

.partners__logos {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: var(--space-6);
}

/* Full-color logos on white tiles — the white background is the default for
   every logo PNG added here, so transparent/matte logos always sit clean */
.partners__logos img {
  height: 46px;
  width: auto;
  box-sizing: content-box;
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

/* Cap height steps down when the row is crowded (10+ logos) */
.partners__logos--dense img {
  height: 38px;
}

/* ---------- Final CTA (block 10) ---------- */
.contact-block {
  text-align: center;
}

.contact-block .section-title,
.contact-block .section-desc {
  margin-inline: auto;
}

.contact-block .btn {
  margin-top: var(--space-6);
}

.contact-list {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  font-weight: 500;
  list-style: none;
  padding: 0;
}

.contact-list b {
  display: block;
  color: var(--color-text);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

.contact-list a {
  color: inherit;
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--color-primary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-ink);
  color: var(--color-on-dark);
  padding-block: var(--space-7) var(--space-5);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: var(--space-7);
}

.site-footer .brand {
  color: var(--color-on-dark);
}

.site-footer__blurb {
  color: var(--color-on-dark-muted);
  font-size: 0.84rem;
  line-height: 1.65;
  max-width: 38ch;
  margin-top: var(--space-3);
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-on-dark-muted);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.site-footer a {
  color: var(--color-on-dark);
  text-decoration: none;
  font-size: var(--text-small);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.site-footer__address {
  color: var(--color-on-dark-muted);
  font-size: 0.8125rem;
  font-style: normal;
  line-height: 1.6;
}

.site-footer__legal {
  border-top: 1px solid rgb(255 255 255 / 12%);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--color-on-dark-muted);
  font-size: 0.78rem;
}

/* ---------- Blog index & article pages ---------- */
.page-head {
  padding-top: var(--space-8);
}

.pillbar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-5);
  list-style: none;
  padding: 0;
}

.pill {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-decoration: none;
}

.pill:hover,
.pill:focus-visible,
.pill[aria-current="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-dark);
}

/* Article/service title: large and fluid; wraps rather than clipping when long */
.post-title {
  font-size: var(--text-post-title);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}

.post-meta {
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

/* Shared reading column for all article bodies (blog, services, About).
   Wider than a classic prose column, owner-chosen, centered on the page. */
.prose {
  max-width: 56rem;
  margin-top: var(--space-6);
  margin-inline: auto;
}

.prose p {
  margin-bottom: var(--space-4);
}

.prose h2,
.prose h3 {
  font-size: var(--text-h3);
  margin: var(--space-6) 0 var(--space-3);
}

.prose ul,
.prose ol {
  padding-left: var(--space-5);
  margin: 0 0 var(--space-4);
}

.prose li {
  margin-block: var(--space-2);
}

.prose blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-1) 0 var(--space-1) var(--space-4);
  border-left: 3px solid var(--color-primary);
  color: var(--color-text-muted);
  font-style: italic;
}

/* Inline images in posts/services: full-width figure (owner request) */
.prose img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-block: var(--space-5);
}

.prose .btn {
  margin-top: var(--space-4);
}

/* ---------- About page ----------
   Wider text column than a blog post (may exceed the photo), title and
   subtitle centered, everything aligned in one centered block (owner) */
.about-page .sup,
.about-page .post-title,
.about-page .post-meta {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}

.about-page .post-title {
  white-space: normal;
}

/* About shares the same .prose width as blog/service articles (56rem);
   only its photo is held a touch narrower so the text can exceed it. */
.about-page .prose img {
  max-width: 44rem;
  margin-inline: auto;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
}

.faq__category {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: var(--space-6) 0 var(--space-3);
  font-weight: 600;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  margin-bottom: var(--space-3);
  overflow: hidden; /* clips the inverted summary background to the rounded corners */
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.faq-item summary {
  cursor: pointer;
  padding: var(--space-4);
  font-weight: 600;
  font-size: 0.9375rem;
  list-style: none;
  position: relative;
  padding-right: var(--space-8);
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: var(--space-4);
  top: var(--space-4);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item__answer {
  /* top padding keeps the answer clear of the question row (dark on hover) */
  padding: var(--space-4) var(--space-4) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  max-width: 75ch;
}

/* ---------- 404 ---------- */
.error-page {
  text-align: center;
  padding-block: var(--space-10);
}

.error-page .section-title {
  margin-inline: auto;
}

.error-page .btn {
  margin-top: var(--space-6);
}

/* ---------- Micro-interactions (audit) ----------
   Subtle 160ms transitions; the prefers-reduced-motion block below disables all. */
.btn,
.link-more,
.pill,
.lang-switch,
.nav__menu a,
.site-footer a {
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.lang-switch:hover,
.lang-switch:focus-visible {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Interactive cards lift slightly — they contain the page's links */
.card,
.post-card {
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.card:hover,
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border-strong);
}

/* Accordions acknowledge the pointer */
.step:hover {
  border-color: var(--color-border-strong);
}

/* FAQ items behave like cards on hover: lift + shadow, and the question
   inverts its colors like the secondary button (owner request) */
.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border-strong);
}

.faq-item summary:hover {
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.faq-item summary:hover::after {
  color: var(--color-on-dark);
}

/* Branded empty state for missing article covers (replaces the dashed TODO box) */
.post-card__cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-hero-tint) 0%, var(--color-bg-alt) 100%);
}

.post-card__cover--empty img {
  height: 40px;
  width: auto;
  opacity: 0.5;
}

/* ---------- Responsive ---------- */
@media (width <= 1024px) {
  .card-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 768px) {
  .section {
    padding-block: var(--section-pad-mobile);
  }

  .container {
    padding-inline: var(--gutter-mobile);
  }

  .hero__cols,
  .feature-row,
  .feature-row--presence,
  .site-footer__cols {
    grid-template-columns: 1fr;
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: repeat(3, 1fr);
    row-gap: var(--space-5);
  }

  /* One-line titles wrap on mobile — a forced single line would be unreadable */
  .section-title--oneline {
    white-space: normal;
    font-size: clamp(1.25rem, 5vw, 1.625rem);
  }

  .post-title {
    white-space: normal;
    font-size: clamp(1.375rem, 5.5vw, 1.75rem);
  }

  .stats {
    gap: var(--space-6);
  }

  /* Mobile nav: hamburger toggles the menu (the site's only JavaScript) */
  .nav__toggle {
    display: block;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-card); /* separates the open panel from page content */
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4) var(--gutter-mobile) var(--space-5);
    gap: var(--space-4);
  }

  .nav__menu.is-open {
    display: flex;
  }
}

@media (width <= 520px) {
  .card-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
