/**
 * Commercial section (cx-) — editorial band system for /commercial/*.
 *
 * Design language: full-bleed bands alternating ink / paper / white,
 * serif display headlines (system serif stack — no webfont payload),
 * letterspaced eyebrows, big stat numerals, and CBRE-style service
 * rows. Scoped under .cx- so it never leaks into the rest of the site.
 */

:root {
  --cx-ink: #101c2c;
  --cx-ink-soft: #1b2a3d;
  --cx-paper: #f6f4ef;
  --cx-line: #d9d3c7;
  --cx-accent: var(--color-primary, #012169);
  --cx-display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
}

/* ── Shared band scaffolding ─────────────────────────────────────── */
.cx-band { padding: clamp(3rem, 7vw, 5.5rem) 1.25rem; background: #fff; }
.cx-band--paper { background: var(--cx-paper); }
.cx-band--ink { background: var(--cx-ink); color: #fff; }
.cx-wrap { max-width: 1160px; margin: 0 auto; }

.cx-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cx-accent);
  margin: 0 0 0.9rem;
}
.cx-band--ink .cx-eyebrow, .cx-hero .cx-eyebrow { color: #c9d4e6; }

.cx-display { font-family: var(--cx-display); font-weight: 400; letter-spacing: -0.01em; }

.cx-h2 {
  font-family: var(--cx-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin: 0 0 1.8rem;
}

.cx-link {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  color: var(--cx-accent);
  border-bottom: 2px solid var(--cx-accent);
  padding-bottom: 2px;
}
.cx-link:hover { opacity: 0.75; }
.cx-band--ink .cx-link { color: #fff; border-color: #fff; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.cx-hero {
  background: var(--cx-ink);
  color: #fff;
  padding: clamp(4rem, 9vw, 7rem) 1.25rem;
  position: relative;
  overflow: hidden;
}
/* ogImage promotion adds .is-image + an inline background-image. */
.cx-hero.is-image { background-size: cover; background-position: center; }
.cx-hero.is-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 18, 30, 0.92) 0%, rgba(10, 18, 30, 0.72) 55%, rgba(10, 18, 30, 0.45) 100%);
}
.cx-hero .cx-wrap { position: relative; }
.cx-hero-inner { max-width: 640px; }
.cx-hero h1 {
  font-family: var(--cx-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  color: #fff;
}
.cx-lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.65; color: #dbe2ec; margin: 0 0 1.9rem; }

.cx-cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.cx-btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 3px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.cx-btn:hover { transform: translateY(-1px); opacity: 0.92; }
.cx-btn--solid { background: #fff; color: var(--cx-ink); }
.cx-btn--ghost { border: 1px solid rgba(255, 255, 255, 0.65); color: #fff; }

/* ── Ticker strip (headline links under the hero) ─────────────────── */
.cx-ticker { background: var(--cx-ink-soft); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.cx-ticker-row {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cx-ticker-row a {
  display: block;
  padding: 1rem 1.25rem;
  color: #e7ecf4;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.45;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.cx-ticker-row a:first-child { border-left: none; }
.cx-ticker-row a:hover { background: rgba(255, 255, 255, 0.06); }
.cx-ticker-row a span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93a3ba;
  margin-bottom: 0.2rem;
}

/* ── Mission statement ────────────────────────────────────────────── */
.cx-mission {
  font-family: var(--cx-display);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.5;
  max-width: 60ch;
  margin: 0;
}
.cx-mission em { font-style: normal; color: var(--cx-accent); }

/* ── Stats band ───────────────────────────────────────────────────── */
.cx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.cx-stat { border-top: 3px solid var(--cx-ink); padding-top: 1.1rem; }
.cx-stat-value {
  font-family: var(--cx-display);
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1;
  color: var(--cx-ink);
}
/* Stat mentions resolve to a span.stat-value that other pages style —
   inside the band it must inherit the display numeral treatment. */
.cx-stat-value .stat-value { font: inherit; color: inherit; }
.cx-stat-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted, #64748b);
}

/* ── Intent picker ("What brings you here?") ──────────────────────── */
.cx-intents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.cx-intent {
  display: block;
  background: #fff;
  border: 1px solid var(--cx-line);
  padding: 1.5rem 1.4rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cx-intent:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16, 28, 44, 0.12); }
.cx-intent strong {
  display: block;
  font-family: var(--cx-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--cx-ink);
}
.cx-intent span { font-size: 0.92rem; color: var(--color-muted, #64748b); line-height: 1.5; }
.cx-intent::after { content: '⟶'; display: block; margin-top: 0.9rem; color: var(--cx-accent); }

/* ── Service rows (label / big headline / blurb) ──────────────────── */
.cx-rows { border-top: 1px solid var(--cx-line); }
.cx-row {
  display: grid;
  grid-template-columns: 140px 1.4fr 1fr;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--cx-line);
  align-items: start;
}
.cx-row-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--color-muted, #64748b);
  padding-top: 0.5rem;
}
.cx-row h3 {
  font-family: var(--cx-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  margin: 0;
}
.cx-row-side p { margin: 0 0 0.9rem; font-size: 0.95rem; line-height: 1.6; color: var(--color-muted, #4b5563); }
@media (max-width: 760px) {
  .cx-row { grid-template-columns: 1fr; gap: 0.7rem; padding: 1.7rem 0; }
}

/* ── Resource cards ───────────────────────────────────────────────── */
.cx-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.cx-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cx-line);
  padding: 1.4rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cx-band--paper .cx-card { background: #fff; }
.cx-band .cx-card { min-height: 190px; }
.cx-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16, 28, 44, 0.12); }
.cx-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted, #64748b);
  margin-bottom: 0.5rem;
}
.cx-card strong {
  font-family: var(--cx-display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--cx-ink);
  margin-bottom: 0.5rem;
}
.cx-card p { font-size: 0.9rem; line-height: 1.55; color: var(--color-muted, #4b5563); margin: 0 0 0.9rem; }
.cx-card-go { margin-top: auto; color: var(--cx-accent); font-weight: 600; font-size: 0.9rem; }

/* ── Duo CTA panels ───────────────────────────────────────────────── */
.cx-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.cx-duo-card {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2.2rem 2rem;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s ease;
}
.cx-duo-card:hover { background: rgba(255, 255, 255, 0.07); }
.cx-duo-card strong {
  display: block;
  font-family: var(--cx-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 0.6rem;
}
.cx-duo-card p { color: #c3cddc; font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.1rem; }
.cx-duo-card em { font-style: normal; font-weight: 600; border-bottom: 2px solid #fff; padding-bottom: 2px; }

/* ── Band header row (title + side link) ──────────────────────────── */
.cx-band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cx-band-head .cx-h2 { margin-bottom: 1.4rem; }
