/*
 * Fignoc Online — content pages
 *
 * Shared by the written landing pages: /prices/, /wholesale/,
 * /back-to-school/, /faq/, /contact/, /delivery-areas/ and the price lists.
 * Built on tokens.css; nothing here defines a colour of its own except the
 * two tints used to mark an answer block and a price cell.
 *
 * The answer block is the one piece of design that exists for a machine as
 * much as a person: one short, quotable paragraph at the top of the page,
 * stating the fact the page is about.
 */

.content-page {
  --cp-ink: var(--color-text-primary, #111);
  --cp-body: #3d4762;
  --cp-muted: #62708a;
  --cp-line: #e3e8f2;
  --cp-tint: #f5f7fc;
  --cp-navy: var(--color-primary, #0D2A6E);
  --cp-red: var(--color-accent, #E42837);
  background: #fff;
}

.cp-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* ── Header ─────────────────────────────────────────────────────────── */
.cp-head {
  background: linear-gradient(135deg, #071A5E 0%, #081B4A 60%, #163190 100%);
  border-bottom: 3px solid var(--cp-red);
  padding: clamp(1.4rem, 4vw, 2.6rem) 0 clamp(1.5rem, 4vw, 2.4rem);
}
.cp-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .76rem;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .8rem;
}
.cp-crumb a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.cp-crumb a:hover { color: #fff; text-decoration: underline; }
.cp-crumb span[aria-hidden] { color: rgba(255, 255, 255, .3); }

.cp-head h1 {
  color: #fff;
  font-size: clamp(1.45rem, 3.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 .6rem;
  max-width: 22ch;
  text-wrap: balance;
}
.cp-lede {
  color: rgba(255, 255, 255, .74);
  font-size: clamp(.92rem, 1.6vw, 1.02rem);
  line-height: 1.65;
  margin: 0;
  max-width: 62ch;
}
.cp-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.15rem;
}

/* ── The quotable answer ────────────────────────────────────────────── */
.cp-answer {
  margin: clamp(1.2rem, 3vw, 2rem) 0 0;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.5rem);
  background: var(--cp-tint);
  border: 1px solid var(--cp-line);
  border-left: 4px solid var(--cp-navy);
  border-radius: 10px;
}
.cp-answer__label {
  display: block;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cp-navy);
  margin-bottom: .4rem;
}
.cp-answer p {
  margin: 0;
  color: #26314c;
  font-size: clamp(.95rem, 1.7vw, 1.06rem);
  line-height: 1.62;
  max-width: 72ch;
}

/* ── Sections ───────────────────────────────────────────────────────── */
.cp-body { padding: clamp(1.4rem, 4vw, 2.6rem) 0 clamp(2rem, 5vw, 3.2rem); }
.cp-section { margin-top: clamp(1.6rem, 4vw, 2.6rem); }
.cp-section:first-child { margin-top: 0; }
.cp-section > h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: var(--cp-navy);
  margin: 0 0 .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--cp-line);
  text-wrap: balance;
}
.cp-section p {
  color: var(--cp-body);
  font-size: .94rem;
  line-height: 1.72;
  margin: 0 0 .7rem;
  max-width: 72ch;
}
.cp-list { margin: 0 0 .5rem; padding: 0; list-style: none; }
.cp-list li {
  position: relative;
  padding: .3rem 0 .3rem 1.5rem;
  color: var(--cp-body);
  font-size: .94rem;
  line-height: 1.68;
  max-width: 72ch;
}
.cp-list li::before {
  content: "";
  position: absolute;
  left: .35rem;
  top: .95em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cp-red);
}

/* ── Cards ──────────────────────────────────────────────────────────── */
.cp-cards {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.cp-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .95rem 1rem;
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cp-card:hover {
  border-color: rgba(13, 42, 110, .35);
  box-shadow: 0 8px 22px rgba(8, 27, 74, .1);
  transform: translateY(-1px);
}
.cp-card__title { font-weight: 800; color: var(--cp-navy); font-size: .96rem; }
.cp-card__meta { color: var(--cp-muted); font-size: .8rem; }
.cp-card__cta { color: var(--cp-red); font-size: .78rem; font-weight: 700; margin-top: .2rem; }

/* ── Tables ─────────────────────────────────────────────────────────── */
.cp-table-wrap { overflow-x: auto; border: 1px solid var(--cp-line); border-radius: 12px; }
table.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: #fff;
}
table.cp-table th,
table.cp-table td {
  padding: .6rem .8rem;
  text-align: left;
  border-bottom: 1px solid var(--cp-line);
  vertical-align: top;
}
table.cp-table thead th {
  background: var(--cp-tint);
  color: var(--cp-navy);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
table.cp-table tbody tr:last-child td { border-bottom: 0; }
table.cp-table tbody tr:hover td { background: #fbfcfe; }
table.cp-table td a { color: var(--cp-navy); font-weight: 600; text-decoration: none; }
table.cp-table td a:hover { color: var(--cp-red); text-decoration: underline; }
.cp-price { font-weight: 800; color: var(--cp-navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-bulk { color: #157347; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-dash { color: #9aa5bb; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.cp-faq { display: grid; gap: .5rem; }
.cp-faq details {
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.cp-faq details[open] { border-color: rgba(13, 42, 110, .3); }
.cp-faq summary {
  cursor: pointer;
  padding: .8rem 1rem;
  font-weight: 700;
  color: var(--cp-navy);
  font-size: .93rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary::after {
  content: "+";
  color: var(--cp-red);
  font-weight: 800;
  flex: none;
}
.cp-faq details[open] summary::after { content: "\2013"; }
.cp-faq details > p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--cp-body);
  font-size: .92rem;
  line-height: 1.7;
  max-width: 74ch;
}

/* ── Closing call to action ─────────────────────────────────────────── */
.cp-cta {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: 14px;
  background: linear-gradient(135deg, #071A5E 0%, #0D2A6E 55%, #163190 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
}
.cp-cta p { color: rgba(255, 255, 255, .82); margin: 0; font-size: .95rem; max-width: 46ch; }
.cp-cta__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: .86rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.cp-btn--wa { background: #25D366; color: #06331a; }
.cp-btn--wa:hover { background: #1eb257; }
.cp-btn--solid { background: var(--cp-red); color: #fff; }
.cp-btn--solid:hover { background: #c72535; }
.cp-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.cp-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* ── Meta row (price list stamp, downloads) ─────────────────────────── */
.cp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  margin: 1rem 0 0;
  font-size: .82rem;
  color: var(--cp-muted);
}
.cp-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .6rem;
  border: 1px solid var(--cp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cp-navy);
  font-weight: 700;
  font-size: .78rem;
  text-decoration: none;
}
.cp-chip:hover { border-color: rgba(228, 40, 55, .45); color: var(--cp-red); }

/* ── Category page header on /shop/<slug>/ ──────────────────────────── */
.cat-intro { margin: 0 0 1.1rem; }
.cat-intro__answer {
  margin: .75rem 0 0;
  padding: .85rem 1rem;
  background: #f5f7fc;
  border: 1px solid #e3e8f2;
  border-left: 4px solid #0D2A6E;
  border-radius: 10px;
  color: #26314c;
  font-size: .93rem;
  line-height: 1.62;
  max-width: 74ch;
}
.cat-intro__text { color: #3d4762; font-size: .93rem; line-height: 1.7; max-width: 74ch; margin: .7rem 0 0; }
.cat-intro__words {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
}
.cat-intro__words li {
  padding: .25rem .6rem;
  border: 1px solid #dfe4ef;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  color: #46536b;
  background: #fff;
}
.cat-outro { margin-top: 2rem; }
.cat-outro > h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0D2A6E;
  margin: 0 0 .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #e3e8f2;
}

/* ── Homepage brief (the quotable paragraph + link hub) ─────────────── */
.home-brief { padding: clamp(1.6rem, 4vw, 2.6rem) 0; background: #f7f9fd; border-top: 1px solid #e3e8f2; }
.home-brief__title {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: #0D2A6E;
  margin: 0 0 .6rem;
}
.home-brief__answer {
  color: #26314c;
  font-size: .95rem;
  line-height: 1.68;
  margin: 0 0 1.3rem;
  max-width: 78ch;
}
.home-brief__grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.home-brief__col h3 {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #62708a;
  margin: 0 0 .5rem;
}
.home-brief__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.home-brief__col a { color: #3d4762; font-size: .88rem; text-decoration: none; }
.home-brief__col a:hover { color: #E42837; text-decoration: underline; }

/* Sidebar category links on a category page (see home/shop.html). */
#category-list li a { color: #3d4762; text-decoration: none; display: block; padding: .4rem .6rem; border-radius: 8px; font-size: .86rem; }
#category-list li a:hover { background: #f1f4fb; color: #0D2A6E; }
#category-list li.active a { background: #0D2A6E; color: #fff; font-weight: 700; }
