/* ==========================================================================
   content.css — long-form pages (About) and the Services grid
   ========================================================================== */

/* --------------------------------------------------------------------------
   Two-column content layout
   -------------------------------------------------------------------------- */

.content-layout {
  display: grid;
  gap: var(--space-7);
  padding-block: var(--space-7);
}

@media (min-width: 900px) {
  .content-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: var(--space-8);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */

.prose { max-width: 68ch; }

.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-accent);
}

.prose h2:first-child { margin-top: 0; }

.prose p { margin-bottom: var(--space-4); }

.prose__list {
  list-style: none;
  margin-bottom: var(--space-4);
}

.prose__list li {
  position: relative;
  padding-left: var(--space-5);
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

.prose__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.prose__list strong { color: var(--color-text); }

.prose__note {
  background: var(--color-bg-subtle);
  border-left: 4px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.content-aside { position: sticky; top: var(--space-5); }

@media (max-width: 899px) {
  .content-aside { position: static; }
}

/* --------------------------------------------------------------------------
   Services grid
   -------------------------------------------------------------------------- */

.service-grid {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-7);
}

.service {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.service__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.service__body {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  flex: 1 1 auto;
}

.service__meta {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-text);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Licence card (About → Licensing)
   --------------------------------------------------------------------------
   A licence number is the one fact on this site a cautious customer will try to
   verify, so it is set out as a document rather than buried in a sentence: a
   tinted header carrying the seal and the legal entity, then the details as a
   definition list with the number given the most weight. Everything here is
   built from existing tokens — no new colours — so it reads as part of the
   site rather than as a badge dropped in from elsewhere.
   -------------------------------------------------------------------------- */

.licence {
  margin: var(--space-5) 0 var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.licence__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-primary-tint);
  border-bottom: 1px solid var(--color-border);
}

.licence__seal {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-strong);
  color: var(--color-accent);
}

.licence__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.licence__holder {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-primary-strong);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.licence__facts {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
}

.licence__fact dt {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.licence__fact dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}

/* The number is the fact people copy down, so it gets the size, the brand
   colour and tabular figures — and a rule under it, the way it is printed on
   the certificate itself. `anywhere` because it is 22 unbreakable characters
   and the aside column on this page is 20rem wide. */
.licence__number {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.licence__fact--wide {
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-accent);
}

.licence__note {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (min-width: 560px) {
  .licence__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* The number spans the row above the three shorter facts. */
  .licence__fact--wide { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Callout
   -------------------------------------------------------------------------- */

.callout {
  background: var(--color-primary-tint);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
  max-width: 70ch;
}

/* The default inline padding is 32px a side, which on a 320px phone eats a
   fifth of the line. */
@media (max-width: 559px) {
  .callout { padding: var(--space-4) var(--space-5); }
}

.callout__title {
  font-size: var(--text-md);
  margin-bottom: var(--space-3);
}

.callout__body {
  font-size: var(--text-sm);
  color: var(--ink-700);
}
