/* =====================================================================
   Concrete Inspection Specialist — Components
   ===================================================================== */

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: var(--z-modal);
  background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: var(--r-sm);
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0;
  z-index: var(--z-header);
  background: rgba(247, 249, 251, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 20px -16px rgba(15, 23, 42, 0.5);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; color: var(--accent); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.06rem; letter-spacing: -0.02em; color: var(--ink);
}
.brand__sub {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--steel-500);
  margin-top: 3px;
}

/* Nav */
.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  display: inline-flex; align-items: center;
  padding: 0.55rem 0.85rem; border-radius: var(--r-sm);
  color: var(--steel-700); font-weight: 500; font-size: 0.96rem;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--steel-100); }
.nav__link--active { color: var(--accent-700); }
.nav__link--active::after {
  content: ""; display: block;
}
.nav__cta-li { margin-left: 0.5rem; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-sm); cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .nav__list {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem clamp(1.1rem, 4vw, 2.5rem) 1.25rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav__list.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: 0.85rem 0.75rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav__link--active { background: var(--accent-050); }
  .nav__cta-li { margin: 0.5rem 0 0; }
  .nav__cta { width: 100%; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--accent-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  line-height: 1; letter-spacing: 0.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; text-align: center;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--accent-600); box-shadow: 0 10px 22px -12px rgba(11,108,176,0.7); }
.btn--primary:hover { --btn-bg: var(--accent-700); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover { --btn-bg: var(--white); border-color: var(--steel-400); box-shadow: var(--shadow-sm); }

.btn--on-dark { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--on-dark:hover { --btn-bg: #eaf2f9; }
.btn--ghost-on-dark {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost-on-dark:hover { --btn-bg: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); color:#fff; }

.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(110% 120% at 88% -20%, rgba(11,108,176,0.30), transparent 52%),
    linear-gradient(180deg, var(--steel-950), #0c1422 70%);
  color: var(--steel-300);
}
.hero::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero__eyebrow { color: var(--accent-bright); margin-bottom: 1.3rem; }
.hero__title {
  font-size: var(--fs-display); color: #fff; letter-spacing: -0.025em;
  line-height: 1.02;
}
.hero__title .accent { color: var(--accent-bright); }
.hero__lead {
  margin-top: 1.4rem; font-size: var(--fs-lead);
  color: var(--steel-300); max-width: 46ch;
}
.hero__actions { margin-top: 2rem; }
.hero__note {
  margin-top: 1.4rem; display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em;
  color: var(--steel-400);
}
.hero__note svg { width: 1.05rem; height: 1.05rem; color: var(--accent-bright); flex:none; }
.hero__panel { position: relative; }
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { order: -1; max-width: 460px; }
}

/* Blueprint figure inside hero */
.blueprint {
  width: 100%; border-radius: var(--r-lg);
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(8, 16, 28, 0.55);
  box-shadow: var(--shadow-lg);
}

/* ---------- Trust strip ---------- */
.trust {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
}
.trust__item {
  background: var(--white); padding: 1.25rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.trust__k {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em;
}
.trust__l {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--steel-500); line-height: 1.3;
}
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .trust { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--r);
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--accent-050); color: var(--accent-700);
  border: 1px solid var(--accent-100);
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card__body { color: var(--steel-600); font-size: 0.99rem; }
.card__more {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.92rem; color: var(--accent-700);
}
.card--link:hover .card__more { gap: 0.65rem; }
.card__link { position: absolute; inset: 0; border-radius: inherit; }
.card__index {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--steel-400); position: absolute; top: 1.2rem; right: 1.4rem;
}

/* ---------- Steps (how it works) ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .steps--3 { grid-template-columns: 1fr; } }
.step {
  position: relative; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem 1.5rem;
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-weight: 600; font-size: 1rem;
  margin-bottom: 1rem;
}
.step--free .step__num { background: var(--accent-600); }
.step__tag {
  position: absolute; top: 1.4rem; right: 1.4rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: var(--r-pill);
}
.step__tag--free { background: var(--ok-050); color: var(--ok); border: 1px solid #bfe3d6; }
.step__tag--fee { background: var(--accent-050); color: var(--accent-700); border: 1px solid var(--accent-100); }
.step__tag--final { background: var(--steel-100); color: var(--steel-700); border: 1px solid var(--border); }
.step__title { font-size: 1.18rem; margin-bottom: 0.5rem; }
.step__body { color: var(--steel-600); font-size: 0.98rem; }

/* ---------- Callout ---------- */
.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.3rem 1.5rem; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--border);
  border-left: 4px solid var(--steel-400);
}
.callout__icon { flex: none; width: 28px; height: 28px; color: var(--steel-500); }
.callout--danger { background: var(--danger-050); border-color: var(--danger-200); border-left-color: var(--danger); }
.callout--danger .callout__icon { color: var(--danger); }
.callout--accent { background: var(--accent-050); border-color: var(--accent-100); border-left-color: var(--accent); }
.callout--accent .callout__icon { color: var(--accent-700); }
.callout h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.callout p { color: var(--steel-700); font-size: 0.98rem; }

/* ---------- Split feature (text + panel) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.feature-list { display: grid; gap: 0.9rem; margin-top: 1.5rem; }
.feature-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.feature-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--accent-050); color: var(--accent-700);
  display: grid; place-items: center; margin-top: 1px;
}
.feature-list .tick svg { width: 14px; height: 14px; }
.feature-list b { color: var(--ink); font-weight: 600; }
.feature-list span { color: var(--steel-600); }
.section--dark .feature-list b { color: #fff; }
.section--dark .feature-list span { color: var(--steel-300); }
.section--dark .feature-list .tick { background: rgba(58,160,224,0.16); color: var(--accent-bright); }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.98rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.15rem; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare thead th {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel-500); font-weight: 600;
  background: var(--paper-2);
}
.compare thead th:first-child { border-top-left-radius: var(--r); }
.compare thead th:last-child { border-top-right-radius: var(--r); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 32%; }
.compare td { color: var(--steel-700); }
.compare-card-label { display: none; } /* mobile-only stacked labels; shown in the max-width:680px block */
.compare .col-full { background: var(--accent-050); }
.compare .col-full.is-head { background: var(--accent-600); color: #fff; }
.compare-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 680px) {
  .compare, .compare tbody, .compare tr, .compare td, .compare th { display: block; }
  .compare thead { display: none; }
  .compare tbody th { width: auto; background: var(--paper-2); }
  .compare-card-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--steel-500); display: block; }
}

/* ---------- Badges & chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--border); color: var(--steel-700);
}
.section--dark .chip { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: var(--steel-300); }
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ok); background: var(--ok-050);
  padding: 0.3rem 0.65rem; border-radius: var(--r-pill); border: 1px solid #bfe3d6;
}

/* spec line, mono */
.spec { font-family: var(--font-mono); color: var(--steel-500); font-size: 0.85rem; }

/* ---------- Placeholder flag (for David/Mati to fill) ---------- */
.ph {
  background: repeating-linear-gradient(135deg, rgba(183,121,31,0.10) 0 8px, rgba(183,121,31,0.04) 8px 16px);
  border-bottom: 1px dashed var(--warn);
  padding: 0 0.18em; border-radius: 2px;
  color: var(--warn); font-style: normal;
}
.ph::after {
  content: "TBC"; font-family: var(--font-mono); font-size: 0.6em;
  letter-spacing: 0.1em; vertical-align: super; margin-left: 0.25em; opacity: 0.7;
}
.ph--bare::after { content: none; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band__title { font-size: var(--fs-h2); color: #fff; }
.cta-band__lead { margin: 1rem auto 2rem; max-width: 54ch; color: #dcebf8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel-950); color: var(--steel-400); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: var(--steel-300); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.10);
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand .brand__name { color: #fff; }
.site-footer__brand .brand__sub { color: var(--steel-400); }
.site-footer__brand .brand__mark { color: var(--accent-bright); }
.foot-tag { margin-top: 1rem; max-width: 34ch; font-size: 0.92rem; color: var(--steel-400); }
.foot-indep {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--accent-bright); text-transform: uppercase;
}
.foot-indep svg { width: 1rem; height: 1rem; }
.foot-col h4 {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--steel-500); margin-bottom: 1rem; font-weight: 600;
}
.foot-col ul { display: grid; gap: 0.6rem; }
.foot-col a { font-size: 0.96rem; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  padding-top: 1.5rem; font-size: 0.84rem; color: var(--steel-500);
}
.site-footer__legal .spec { color: var(--steel-500); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(100% 120% at 90% -30%, rgba(11,108,176,0.22), transparent 55%),
    var(--steel-950);
  color: var(--steel-300); padding-block: clamp(3rem, 6vw, 4.75rem);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero h1 { color: #fff; font-size: var(--fs-h1); margin-top: 0.8rem; }
.page-hero__lead { margin-top: 1.1rem; max-width: 60ch; color: var(--steel-300); font-size: var(--fs-lead); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--steel-500); }
.breadcrumb a { color: var(--steel-400); }
.breadcrumb a:hover { color: #fff; }

/* prose for advice/article pages */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p { margin-top: 0.9rem; color: var(--steel-700); }
.prose ul.bullets { margin-top: 0.9rem; display: grid; gap: 0.55rem; }
.prose ul.bullets li { position: relative; padding-left: 1.4rem; color: var(--steel-700); }
.prose ul.bullets li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
