/*
 * client.css — Decisio CMS Compatibility Layer
 * ─────────────────────────────────────────────
 * This file supplements decisio.css with:
 *   1. CMS content area styles (what the editor outputs)
 *   2. Legacy utility class overrides
 *   3. CMS-specific form/admin helpers
 *
 * All primary design tokens & layout live in decisio.css
 */

/* ── Reset CMS content area ──────────────────────── */
.content {
  color: var(--offwht);
  line-height: 1.75;
}

.content h1, .content h2 {
  font-family: var(--fh);
  font-weight: 300;
  color: var(--white);
  text-transform: none;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.content h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.content h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }

.content h3 {
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--teal);
  text-transform: none;
  margin-bottom: 0.6rem;
  margin-top: 1.8rem;
}

.content h4, .content h5, .content h6 {
  font-family: var(--fh);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.content p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: var(--offwht);
}

.content a {
  color: var(--ltblue);
  text-decoration: underline;
  text-decoration-color: rgba(27,174,234,0.35);
  transition: color 0.2s;
}

.content a:hover { color: var(--teal); }

.content ul, .content ol {
  margin: 0 0 1.2rem 1.4rem;
  color: var(--offwht);
}

.content li { margin-bottom: 0.45rem; line-height: 1.65; }

.content strong, .content b { color: var(--white); font-weight: 600; }

.content em { color: var(--teal); font-style: normal; }

.content blockquote {
  background: rgba(26,174,234,0.07);
  border: 1px solid rgba(26,174,234,0.2);
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.8rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--offwht);
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.content table th {
  background: rgba(26,174,234,0.1);
  color: var(--white);
  font-weight: 500;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border2);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.content table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--offwht);
}

.content table tr:hover td { background: rgba(26,174,234,0.04); }

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* ── CMS page wrapper ────────────────────────────── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 3rem 4rem;
}

.page-wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 6rem 3rem 4rem;
}

/* ── Legacy CMS classes → Decisio equivalents ─────── */
/* Keep old class names working so existing content pages 
   don't break before they're updated */
.wrapper_home { background-color: var(--navy); }

.add_pad { height: 40px; }

.shadow { box-shadow: 0 8px 32px rgba(0,0,0,0.4); }

hr {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  border: none;
  margin: 2rem 0;
}

.block {
  display: block;
  background: rgba(26,174,234,0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.imageAlignLeft  { float: left;  margin: 0 2rem 1.5rem 0; border-radius: 8px; }
.imageAlignRight { float: right; margin: 0 0 1.5rem 2rem; border-radius: 8px; }
.imageAlignFull  { width: 100%; height: auto; margin: 1.5rem 0; border-radius: 8px; }

.two_column img,
.three_column img { width: 100%; height: auto; margin: 0 0 1.2rem 0; border-radius: 8px; }

.two_column   { column-count: 2; column-gap: 3rem; }
.three_column { column-count: 3; column-gap: 2rem; }

/* ── Pagination ──────────────────────────────────── */
.pagination { margin: 2rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}

.pagination a:hover {
  border-color: var(--ltblue);
  color: var(--ltblue);
}

.pagination .current {
  background: var(--grad);
  border-color: transparent;
  color: white;
}

.paginationDisabled { display: none; }

/* ── Contact strip (legacy) ──────────────────────── */
#contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--slate);
  border-top: 1px solid var(--border);
  padding: 1.2rem 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

#contact a { color: var(--ltblue); }
#contact a:hover { color: var(--teal); }

/* ── Utility: skip nav for accessibility ─────────── */
.skip {
  position: absolute;
  top: -1000px;
  left: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--teal);
  color: #000;
  font-size: 0.85rem;
}

.skip:focus { top: 0; }

/* ── Overflow fix (CMS layout safety) ───────────── */
.content div { overflow-x: hidden; }

/* ── Responsive: inner page padding ─────────────── */
@media (max-width: 768px) {
  .page-wrap, .page-wrap-narrow {
    padding: 5rem 1.5rem 3rem;
  }
  #contact { padding: 1rem 1.5rem; }
}

/* ── Hero: equalise vertical spacing ─────────────── */
.hero-headline { margin-bottom: 2.5rem; }
.hero-pills    { margin-top: 2.5rem; }

/* ── Responsive: tighten hero on small screens ───── */
@media (max-width: 768px) {
  .hero-wordmark img { height: 48px !important; margin-bottom: 2rem !important; }
  .hero-headline { margin-bottom: 1.5rem; }
  .hero-body { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .hero-pill { padding: 1rem 1.2rem; }
}

/* ── Net zero ecosystem diagram ──────────────────── */
.nz-wrap { background: #080f1a; border-radius: 12px; width: 100%; aspect-ratio: 2/1; overflow: hidden; position: relative; }
.nz-wrap svg.layout { display: block; width: 100%; height: 100%; }
.cn { fill: none; stroke: rgba(26,174,234,0.28); stroke-width: .85; stroke-dasharray: 4 4; }
@media (max-width: 600px) { .nz-wrap { aspect-ratio: 500/700; } }

/* ── Logo ticker ─────────────────────────────────── */
.logo-ticker-outer {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logo-ticker-track {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  width: max-content;
  padding: 0.75rem 0 1.25rem;
  animation: logo-marquee 90s linear infinite;
}
.logo-ticker-track:hover { animation-play-state: paused; }
.logo-ticker-item {
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
}
.logo-ticker-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
@keyframes logo-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Hero sector pills ───────────────────────────── */
.hero-sector-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  font-family: var(--fh);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.2s;
}
.hero-sector-pill:hover {
  transform: translateY(-2px);
}

/* ── Sub-brand dot/word gap fix ─────────────────── */
/* Kills gap between bold dot and sector word in     */
/* card-links, buttons and any inline sector label   */
.card-link,
.btn-primary,
.btn-outline {
  letter-spacing: 0;
}

/* ── Sub-brand dot treatment ─────────────────────── */
.sector-subbrand {
  font-family: var(--fh);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* ── BMA footer strip ────────────────────────────── */
.footer-bma {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-bma-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.footer-bma a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.footer-bma-logo {
  height: 22px;
  width: auto;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.footer-bma a:hover .footer-bma-logo {
  opacity: 0.85;
}

/* ── BMA about page callout ──────────────────────── */
.bma-callout {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.bma-callout-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.8;
}

.bma-callout-text {
  flex: 1;
  min-width: 200px;
}

.bma-callout-text p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.bma-callout-text a {
  color: var(--ltblue);
  text-decoration: none;
}

.bma-callout-text a:hover {
  color: var(--teal);
}
