/*
=========================================================
CHG MASTER JOOMLA PAGE STYLING — CSS V1.1
Carl Henry Global
Date: 2026-09-03

PURPOSE
A reusable, scoped CHG design system for Joomla content pages.

RECOMMENDED WRAPPER
<div class="chg-page"> ... </div>

EXISTING PAGE WRAPPERS ALSO SUPPORTED
<div class="chg-contact"> ... </div>
<div class="chg-products"> ... </div>

DESIGN PRINCIPLES
- Midnight Aubergine base
- Imperial Plum depth layers
- Royal Signal controlled accent
- Muted Monaco Gold highlights
- Soft Stone body copy
- Large, uncluttered hierarchy
- Mobile-first responsive grids
- Scoped styles to avoid damaging Joomla/template UI
=========================================================
*/


/* =========================================================
   01. DESIGN TOKENS / BASE
   ========================================================= */

.chg-page,
.chg-contact,
.chg-products {
  --chg-midnight: #14001F;
  --chg-deep-purple: #220030;
  --chg-purple-medium: #3C0054;
  --chg-purple-dark: #310045;
  --chg-royal: #58007C;

  --chg-gold: #B89A5A;
  --chg-gold-light: #D5BA77;
  --chg-gold-flat: #D4AF37;
  --chg-gold-metallic: #C7A800;

  --chg-stone: #E6E2DA;
  --chg-white: #FFFFFF;

  --chg-green: #35C98A;
  --chg-amber: #E2B93B;
  --chg-red: #E05A5A;

  --chg-panel: #2C0638;
  --chg-panel-light: #350743;
  --chg-panel-dark: #0F0018;

  --chg-border: rgba(184,154,90,.48);
  --chg-border-strong: rgba(184,154,90,.72);
  --chg-border-soft: rgba(230,226,218,.15);

  --chg-shadow-sm: 0 10px 28px rgba(0,0,0,.18);
  --chg-shadow: 0 22px 60px rgba(0,0,0,.28);

  --chg-radius-sm: 3px;
  --chg-radius: 6px;

  --chg-max: 1180px;

  background: var(--chg-midnight);
  color: var(--chg-stone);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow: hidden;
}

.chg-page,
.chg-page *,
.chg-contact,
.chg-contact *,
.chg-products,
.chg-products * {
  box-sizing: border-box;
}

.chg-page img,
.chg-contact img,
.chg-products img {
  max-width: 100%;
  height: auto;
}

.chg-page p,
.chg-contact p,
.chg-products p {
  margin-top: 0;
}

.chg-page strong,
.chg-contact strong,
.chg-products strong {
  color: var(--chg-white);
}

.chg-page a,
.chg-contact a,
.chg-products a {
  transition:
    background .22s ease,
    color .22s ease,
    border-color .22s ease,
    transform .22s ease,
    box-shadow .22s ease,
    opacity .22s ease;
}

.chg-page [id],
.chg-contact [id],
.chg-products [id] {
  scroll-margin-top: 110px;
}


/* =========================================================
   02. LAYOUT
   ========================================================= */

.chg-wrap,
.chg-contact-wrap,
.chg-products-wrap {
  width: min(var(--chg-max), calc(100% - 36px));
  margin: 0 auto;
}

.chg-section {
  padding: 72px 0;
}

.chg-section-alt {
  background: var(--chg-deep-purple);
}

.chg-section-dark {
  background: var(--chg-panel-dark);
}

.chg-divider {
  border: 0;
  border-top: 1px solid var(--chg-border);
  margin: 32px 0;
}


/* =========================================================
   03. TYPOGRAPHY
   ========================================================= */

.chg-eyebrow,
.chg-contact-eyebrow,
.chg-products-eyebrow {
  margin: 0 0 11px;
  color: var(--chg-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.chg-lead {
  max-width: 880px;
  color: var(--chg-white);
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.45;
}

.chg-section-head,
.chg-contact-section-head,
.chg-products-section-head {
  max-width: 880px;
  margin-bottom: 34px;
}

.chg-section-head h2,
.chg-contact-section-head h2,
.chg-products-section-head h2 {
  margin: 0 0 14px;
  color: var(--chg-white);
  font-size: clamp(31px,4vw,48px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.chg-section-head p:last-child,
.chg-contact-section-head p:last-child,
.chg-products-section-head p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   04. STANDARD HERO
   ========================================================= */

.chg-hero,
.chg-contact-hero,
.chg-products-hero {
  position: relative;
  padding: 72px 0 66px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(88,0,124,.48), transparent 40%),
    radial-gradient(circle at 88% 35%, rgba(184,154,90,.09), transparent 26%),
    linear-gradient(145deg, #14001F 0%, #220030 57%, #2D003D 100%);
  border-bottom: 1px solid var(--chg-border);
}

.chg-hero .chg-wrap,
.chg-contact-hero .chg-contact-wrap,
.chg-products-hero .chg-products-wrap {
  text-align: center;
}

.chg-hero h1,
.chg-contact-hero h1,
.chg-products-hero h1 {
  margin: 0 auto 18px;
  color: var(--chg-white);
  font-size: clamp(42px,6vw,70px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-align: center;
}

.chg-logo,
.chg-contact-logo,
.chg-products-logo {
  display: block;
  width: 145px;
  max-width: 42vw;
  margin: 0 auto 22px;
}


/* =========================================================
   05. BUTTON SYSTEM
   ========================================================= */

.chg-actions,
.chg-contact-cta-row,
.chg-products-hero-actions,
.chg-products-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chg-actions {
  margin-top: 30px;
}

.chg-actions-center,
.chg-products-hero-actions,
.chg-products-final-actions {
  justify-content: center;
}

.chg-btn,
.chg-contact-btn,
.chg-products-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--chg-gold);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
}

.chg-btn:hover,
.chg-btn:focus,
.chg-contact-btn:hover,
.chg-contact-btn:focus,
.chg-products-btn:hover,
.chg-products-btn:focus {
  transform: translateY(-2px);
}

.chg-btn-primary,
.chg-contact-btn-primary,
.chg-products-btn-primary,
.chg-products-btn-gold {
  background: var(--chg-gold);
  color: var(--chg-midnight) !important;
}

.chg-btn-primary:hover,
.chg-btn-primary:focus,
.chg-contact-btn-primary:hover,
.chg-contact-btn-primary:focus,
.chg-products-btn-primary:hover,
.chg-products-btn-primary:focus,
.chg-products-btn-gold:hover,
.chg-products-btn-gold:focus {
  background: var(--chg-gold-light);
  color: var(--chg-midnight) !important;
  box-shadow: 0 10px 25px rgba(184,154,90,.15);
}

.chg-btn-secondary,
.chg-contact-btn-secondary,
.chg-products-btn-secondary {
  background: transparent;
  color: var(--chg-white) !important;
}

.chg-btn-secondary:hover,
.chg-btn-secondary:focus,
.chg-contact-btn-secondary:hover,
.chg-contact-btn-secondary:focus,
.chg-products-btn-secondary:hover,
.chg-products-btn-secondary:focus {
  background: rgba(255,255,255,.06);
  border-color: var(--chg-gold-light);
}

.chg-btn-outline,
.chg-contact-btn-outline {
  background: rgba(255,255,255,.025);
  color: var(--chg-stone) !important;
  border-color: rgba(230,226,218,.32);
}

.chg-btn-outline:hover,
.chg-btn-outline:focus,
.chg-contact-btn-outline:hover,
.chg-contact-btn-outline:focus {
  background: rgba(255,255,255,.07);
  border-color: var(--chg-gold);
  color: var(--chg-white) !important;
}


/* =========================================================
   06. REUSABLE CARDS / PANELS
   ========================================================= */

.chg-card {
  padding: 26px;
  background: linear-gradient(145deg, var(--chg-panel), var(--chg-panel-light));
  border: 1px solid var(--chg-border-soft);
}

.chg-card h3 {
  margin: 0 0 10px;
  color: var(--chg-white);
  font-size: 22px;
  line-height: 1.2;
}

.chg-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.chg-signal-panel {
  background:
    radial-gradient(circle at 90% 10%, rgba(184,154,90,.14), transparent 32%),
    linear-gradient(135deg, var(--chg-royal), var(--chg-purple-medium));
  border: 1px solid var(--chg-gold);
  box-shadow: var(--chg-shadow);
}

.chg-notice {
  padding: 22px 24px;
  border-left: 4px solid var(--chg-gold);
  background: rgba(255,255,255,.045);
}

.chg-quote {
  padding: 28px 30px;
  border-left: 5px solid var(--chg-gold);
  background: rgba(255,255,255,.04);
}

.chg-definition {
  padding: 26px 28px;
  background: rgba(184,154,90,.08);
  border: 1px solid var(--chg-border);
}


/* =========================================================
   07. LINK / QUICK NAV GRID
   ========================================================= */

.chg-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.chg-link-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
  background: linear-gradient(155deg, rgba(44,6,56,.94), rgba(34,0,48,.94));
  border: 1px solid var(--chg-border-soft);
  color: var(--chg-stone) !important;
  text-decoration: none !important;
}

.chg-link-card:hover,
.chg-link-card:focus {
  transform: translateY(-3px);
  border-color: var(--chg-gold);
  background: linear-gradient(155deg, #350743, #250033);
  box-shadow: var(--chg-shadow-sm);
}


/* =========================================================
   08. ACCESSIBILITY
   ========================================================= */

.chg-page a:focus-visible,
.chg-contact a:focus-visible,
.chg-products a:focus-visible {
  outline: 3px solid var(--chg-gold-light);
  outline-offset: 4px;
}


/* =========================================================
   09. CONTACT PAGE — BACKWARD-COMPATIBLE STYLES
   ========================================================= */

.chg-contact-lead {
  max-width: 790px;
  margin: 0 auto;
  color: var(--chg-stone);
  font-size: clamp(19px,2.1vw,24px);
  line-height: 1.52;
}

.chg-contact-signal {
  display: inline-block;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--chg-gold);
  color: var(--chg-white);
  font-size: clamp(20px,2.3vw,27px);
  font-weight: 700;
  letter-spacing: -.01em;
}

.chg-contact-positioning {
  max-width: 900px;
  margin: 12px auto 0;
  color: var(--chg-stone);
  font-size: 16px;
}

.chg-contact-positioning span {
  margin: 0 5px;
  color: var(--chg-gold);
}

.chg-contact-main {
  padding: 64px 0;
  background: linear-gradient(180deg, var(--chg-midnight), var(--chg-deep-purple));
}

.chg-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
}

.chg-contact-card {
  position: relative;
  padding: 34px;
  background: linear-gradient(145deg, var(--chg-panel), var(--chg-panel-light));
  border: 1px solid var(--chg-border-soft);
  box-shadow: 0 14px 35px rgba(0,0,0,.15);
}

.chg-contact-card-featured {
  border-color: var(--chg-border);
}

.chg-contact-card-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--chg-gold), var(--chg-gold-light), var(--chg-gold));
}

.chg-contact-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 23px;
  border: 1px solid var(--chg-border);
  background: rgba(184,154,90,.08);
  color: var(--chg-gold);
  font-size: 24px;
  font-weight: 800;
}

.chg-contact-card-label {
  margin-bottom: 5px;
  color: var(--chg-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.chg-contact-card h2 {
  margin: 0 0 13px;
  color: var(--chg-white);
  font-size: clamp(27px,3vw,35px);
  line-height: 1.12;
}

.chg-contact-small {
  margin: 14px 0 0 !important;
  color: rgba(230,226,218,.68);
  font-size: 13px;
}

.chg-contact-achieve {
  padding: 20px 0 66px;
  background: var(--chg-deep-purple);
}

.chg-contact-achieve-panel {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(240px,.5fr);
  gap: 34px;
  align-items: center;
  padding: 38px;
  background:
    radial-gradient(circle at 90% 10%, rgba(184,154,90,.14), transparent 30%),
    linear-gradient(135deg, var(--chg-royal), var(--chg-purple-medium));
  border: 1px solid var(--chg-gold);
  box-shadow: var(--chg-shadow);
}

.chg-contact-achieve h2 {
  margin: 0 0 13px;
  color: var(--chg-white);
  font-size: clamp(31px,4vw,46px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.chg-contact-achieve-action {
  text-align: right;
}

.chg-contact-links {
  padding: 68px 0 74px;
  background: var(--chg-midnight);
}

.chg-contact-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.chg-contact-link-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 24px;
  background: linear-gradient(155deg, rgba(44,6,56,.94), rgba(34,0,48,.94));
  border: 1px solid var(--chg-border-soft);
  color: var(--chg-stone) !important;
  text-decoration: none !important;
}

.chg-contact-link-card:hover,
.chg-contact-link-card:focus {
  transform: translateY(-3px);
  border-color: var(--chg-gold);
  background: linear-gradient(155deg, #350743, #250033);
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}

.chg-contact-link-number {
  display: block;
  margin-bottom: 22px;
  color: var(--chg-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}

.chg-contact-link-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--chg-white);
  font-size: 21px;
  line-height: 1.18;
}

.chg-contact-link-card > span:not(.chg-contact-link-number) {
  display: block;
  flex-grow: 1;
  font-size: 15px;
  line-height: 1.55;
}

.chg-contact-link-card b {
  display: block;
  margin-top: 20px;
  color: var(--chg-gold);
  font-size: 14px;
}

.chg-contact-about {
  padding: 72px 0;
  background: var(--chg-panel-dark);
  border-top: 1px solid var(--chg-border);
  border-bottom: 1px solid var(--chg-border);
}

.chg-contact-about-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 62px;
  align-items: start;
}

.chg-contact-about h2 {
  margin: 0;
  color: var(--chg-white);
  font-size: clamp(31px,4vw,47px);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.chg-contact-about-copy {
  padding-left: 30px;
  border-left: 1px solid var(--chg-border);
}

.chg-contact-human {
  margin-top: 25px;
  color: var(--chg-gold);
}

.chg-contact-final {
  padding: 74px 0 82px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(88,0,124,.35), transparent 40%),
    var(--chg-midnight);
}

.chg-contact-final h2 {
  max-width: 850px;
  margin: 0 auto 18px;
  color: var(--chg-white);
  font-size: clamp(34px,5vw,54px);
  line-height: 1.07;
  letter-spacing: -.03em;
}

.chg-contact-final > .chg-contact-wrap > p:not(.chg-contact-eyebrow) {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}

.chg-contact-cta-row {
  justify-content: center;
  margin-top: 30px;
}


/* =========================================================
   10. PRODUCTS PAGE
   ========================================================= */

.chg-products-lead {
  max-width: 880px;
  margin: 0 auto 12px;
  color: var(--chg-white);
  font-size: clamp(21px,2.4vw,28px);
  line-height: 1.4;
}

.chg-products-intro {
  max-width: 780px;
  margin: 0 auto;
  color: var(--chg-stone);
  font-size: 17px;
}

.chg-products-outcomes {
  padding: 72px 0 78px;
  background: var(--chg-midnight);
}

.chg-products-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.chg-products-outcome-card {
  position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 27px;
  background: linear-gradient(145deg, var(--chg-panel), var(--chg-panel-light));
  border: 1px solid var(--chg-border-soft);
  color: var(--chg-stone) !important;
  text-decoration: none !important;
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

.chg-products-outcome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--chg-gold);
  transition: width .3s ease;
}

.chg-products-outcome-card:hover,
.chg-products-outcome-card:focus {
  transform: translateY(-3px);
  border-color: var(--chg-gold);
  background: linear-gradient(145deg, #350743, #270034);
  box-shadow: 0 18px 38px rgba(0,0,0,.21);
}

.chg-products-outcome-card:hover::before,
.chg-products-outcome-card:focus::before {
  width: 100%;
}

.chg-products-number {
  display: block;
  margin-bottom: 19px;
  color: var(--chg-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.chg-products-outcome-card h3 {
  margin: 0 0 11px;
  color: var(--chg-white);
  font-size: clamp(21px,2.3vw,27px);
  line-height: 1.15;
}

.chg-products-outcome-card p {
  flex-grow: 1;
  margin-bottom: 18px;
  font-size: 15px;
}

.chg-products-outcome-card strong {
  color: var(--chg-gold);
  font-size: 14px;
}

.chg-products-bridge {
  padding: 0 0 72px;
  background: var(--chg-midnight);
}

.chg-products-bridge-panel {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(250px,.5fr);
  gap: 35px;
  align-items: center;
  padding: 38px;
}

.chg-products-bridge h2 {
  margin: 0 0 12px;
  color: var(--chg-white);
  font-size: clamp(29px,4vw,43px);
  line-height: 1.08;
}

.chg-products-bridge-action {
  text-align: right;
}

.chg-products-featured {
  padding: 76px 0 82px;
  background: var(--chg-deep-purple);
  border-top: 1px solid var(--chg-border);
}

.chg-products-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
}

.chg-products-feature-card {
  overflow: hidden;
  background: linear-gradient(155deg, var(--chg-panel), var(--chg-panel-light));
  border: 1px solid var(--chg-border-soft);
  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.chg-products-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--chg-border);
  box-shadow: 0 20px 45px rgba(0,0,0,.23);
}

.chg-products-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--chg-panel-dark);
}

.chg-products-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform .45s ease,
    filter .45s ease;
}

.chg-products-feature-card:hover .chg-products-image-link img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.chg-products-feature-content {
  padding: 27px;
}

.chg-products-product-type {
  margin: 0 0 5px;
  color: var(--chg-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.chg-products-feature-content h3 {
  margin: 0 0 3px;
  color: var(--chg-white);
  font-size: clamp(26px,3vw,34px);
  line-height: 1.1;
}

.chg-products-subtitle {
  margin: 0 0 14px;
  color: var(--chg-gold-light);
  font-size: 15px;
  font-weight: 700;
}

.chg-products-text-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--chg-gold) !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}

.chg-products-text-link:hover,
.chg-products-text-link:focus {
  color: var(--chg-white) !important;
}

.chg-products-text-link-muted {
  margin-left: 20px;
  color: var(--chg-stone) !important;
}

.chg-products-more {
  padding: 72px 0;
  background: var(--chg-midnight);
}

.chg-products-more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 13px;
}

.chg-products-mini-card {
  display: flex;
  min-height: 175px;
  flex-direction: column;
  padding: 22px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--chg-border-soft);
  color: var(--chg-stone) !important;
  text-decoration: none !important;
}

.chg-products-mini-card:hover,
.chg-products-mini-card:focus {
  transform: translateY(-2px);
  background: rgba(184,154,90,.07);
  border-color: var(--chg-gold);
}

.chg-products-mini-card > span {
  margin-bottom: 14px;
  color: var(--chg-gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.chg-products-mini-card strong {
  flex-grow: 1;
  color: var(--chg-white);
  font-size: 20px;
}

.chg-products-mini-card b {
  margin-top: 18px;
  color: var(--chg-gold);
  font-size: 13px;
}

.chg-products-custom {
  padding: 70px 0;
  background: var(--chg-panel-dark);
  border-top: 1px solid var(--chg-border);
  border-bottom: 1px solid var(--chg-border);
}

.chg-products-custom-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 65px;
}

.chg-products-custom h2 {
  margin: 0;
  color: var(--chg-white);
  font-size: clamp(31px,4vw,47px);
  line-height: 1.08;
}

.chg-products-final {
  padding: 76px 0 84px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(88,0,124,.36), transparent 42%),
    var(--chg-midnight);
}

.chg-products-final h2 {
  margin: 0 auto 16px;
  color: var(--chg-white);
  font-size: clamp(35px,5vw,55px);
  line-height: 1.07;
  letter-spacing: -.03em;
}

.chg-products-final > .chg-products-wrap > p:not(.chg-products-eyebrow) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}

.chg-back-top {
  display: inline-flex;
  align-items: center;
  padding: 13px 8px;
  color: var(--chg-gold) !important;
  font-weight: 800;
  text-decoration: none !important;
}

.chg-back-top:hover,
.chg-back-top:focus {
  color: var(--chg-white) !important;
}


/* =========================================================
   11. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1000px) {
  .chg-link-grid,
  .chg-contact-link-grid,
  .chg-products-more-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .chg-card-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}


/* =========================================================
   12. RESPONSIVE — SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {
  .chg-contact-grid,
  .chg-contact-achieve-panel,
  .chg-contact-about-grid,
  .chg-products-outcome-grid,
  .chg-products-feature-grid,
  .chg-products-bridge-panel,
  .chg-products-custom-grid {
    grid-template-columns: 1fr;
  }

  .chg-contact-achieve-action,
  .chg-products-bridge-action {
    text-align: left;
  }

  .chg-contact-about-copy {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--chg-border);
  }
}


/* =========================================================
   13. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .chg-wrap,
  .chg-contact-wrap,
  .chg-products-wrap {
    width: min(calc(100% - 22px), var(--chg-max));
  }

  .chg-hero,
  .chg-contact-hero,
  .chg-products-hero {
    padding: 52px 0 50px;
  }

  .chg-logo,
  .chg-contact-logo,
  .chg-products-logo {
    width: 125px;
  }

  .chg-section,
  .chg-contact-main,
  .chg-contact-links,
  .chg-contact-about,
  .chg-contact-final,
  .chg-products-outcomes,
  .chg-products-featured,
  .chg-products-more,
  .chg-products-custom,
  .chg-products-final {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .chg-card-grid,
  .chg-link-grid,
  .chg-contact-link-grid,
  .chg-products-more-grid {
    grid-template-columns: 1fr;
  }

  .chg-btn,
  .chg-contact-btn,
  .chg-products-btn {
    width: 100%;
  }

  .chg-actions,
  .chg-contact-cta-row,
  .chg-products-hero-actions,
  .chg-products-final-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chg-contact-card,
  .chg-contact-achieve-panel,
  .chg-products-bridge-panel,
  .chg-products-feature-content {
    padding: 23px;
  }

  .chg-contact-link-card,
  .chg-products-outcome-card {
    min-height: 0;
  }

  .chg-products-mini-card {
    min-height: 140px;
  }

  .chg-contact-positioning span {
    display: none;
  }

  .chg-contact-positioning {
    max-width: 350px;
  }

  .chg-products-text-link-muted {
    display: block;
    margin-left: 0;
    margin-top: 12px;
  }

  .chg-back-top {
    justify-content: center;
  }
}


/* =========================================================
   END CHG MASTER JOOMLA PAGE STYLING
   ========================================================= */

/* =========================================================
   14. CHG HOMEPAGE / WDYWTA GATEWAY
   Add to CHG MASTER JOOMLA PAGE STYLING
   ========================================================= */

.chg-home-hero {
  position: relative;
  padding: 74px 0 66px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(88,0,124,.52), transparent 38%),
    radial-gradient(circle at 85% 38%, rgba(184,154,90,.10), transparent 25%),
    linear-gradient(145deg, #14001F 0%, #220030 58%, #2D003D 100%);
  border-bottom: 1px solid var(--chg-border);
}

.chg-home-logo {
  margin-bottom: 22px;
}

.chg-home-hero h1 {
  max-width: 1020px;
  margin: 0 auto 20px;
  color: var(--chg-white);
  font-size: clamp(44px,6.5vw,76px);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-align: center;
}

.chg-home-lead {
  max-width: 880px;
  margin: 0 auto;
  color: var(--chg-stone);
  font-size: clamp(20px,2.2vw,25px);
  line-height: 1.52;
}

.chg-home-question-box {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  width: min(900px, 100%);
  min-height: 72px;
  margin: 34px auto 0;
  padding: 8px 8px 8px 24px;
  background: var(--chg-stone);
  border: 2px solid rgba(230,226,218,.92);
  box-shadow: 0 20px 55px rgba(0,0,0,.24);
  color: var(--chg-midnight) !important;
  text-decoration: none !important;
}

.chg-home-question-box:hover,
.chg-home-question-box:focus {
  transform: translateY(-2px);
  border-color: var(--chg-gold-light);
  box-shadow: 0 24px 65px rgba(0,0,0,.30);
}

.chg-home-question-placeholder {
  overflow: hidden;
  color: rgba(20,0,31,.72);
  font-size: clamp(17px,2vw,20px);
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chg-home-question-action {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--chg-gold);
  color: var(--chg-midnight);
  font-size: 14px;
  font-weight: 800;
}

.chg-home-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  max-width: 980px;
  margin: 18px auto 0;
}

.chg-home-prompts a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--chg-border-soft);
  background: rgba(255,255,255,.035);
  color: var(--chg-stone) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.chg-home-prompts a:hover,
.chg-home-prompts a:focus {
  border-color: var(--chg-gold);
  background: rgba(184,154,90,.10);
  color: var(--chg-white) !important;
}

.chg-home-signal {
  display: inline-block;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--chg-gold);
  color: var(--chg-white);
  font-size: clamp(20px,2.3vw,27px);
  font-weight: 700;
  letter-spacing: -.01em;
}

.chg-home-positioning {
  max-width: 900px;
  margin: 10px auto 0;
  color: var(--chg-stone);
  font-size: 15px;
}

.chg-home-positioning span {
  margin: 0 5px;
  color: var(--chg-gold);
}


/* ROUTES */

.chg-home-routes {
  background: var(--chg-midnight);
}

.chg-home-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 15px;
}

.chg-home-route-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 27px;
  background: linear-gradient(145deg, var(--chg-panel), var(--chg-panel-light));
  border: 1px solid var(--chg-border-soft);
  color: var(--chg-stone) !important;
  text-decoration: none !important;
}

.chg-home-route-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--chg-gold);
  transition: width .3s ease;
}

.chg-home-route-card:hover,
.chg-home-route-card:focus {
  transform: translateY(-3px);
  border-color: var(--chg-gold);
  background: linear-gradient(145deg, #350743, #270034);
  box-shadow: var(--chg-shadow-sm);
}

.chg-home-route-card:hover::before,
.chg-home-route-card:focus::before {
  width: 100%;
}

.chg-home-route-card-signal {
  background:
    radial-gradient(circle at 90% 10%, rgba(184,154,90,.12), transparent 30%),
    linear-gradient(135deg, var(--chg-royal), var(--chg-purple-medium));
  border-color: var(--chg-border);
}

.chg-home-route-number {
  display: block;
  margin-bottom: 19px;
  color: var(--chg-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.chg-home-route-card h3 {
  margin: 0 0 10px;
  color: var(--chg-white);
  font-size: clamp(23px,2.6vw,30px);
  line-height: 1.13;
}

.chg-home-route-card p {
  flex-grow: 1;
  margin-bottom: 18px;
  font-size: 15px;
}

.chg-home-route-card strong {
  color: var(--chg-gold);
  font-size: 14px;
}


/* METHOD */

.chg-home-method {
  padding: 72px 0;
  background: var(--chg-panel-dark);
  border-top: 1px solid var(--chg-border);
  border-bottom: 1px solid var(--chg-border);
}

.chg-home-method-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 64px;
  align-items: start;
}

.chg-home-method h2 {
  margin: 0;
  color: var(--chg-white);
  font-size: clamp(31px,4vw,48px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.chg-home-method-copy {
  padding-left: 30px;
  border-left: 1px solid var(--chg-border);
}

.chg-home-human {
  margin-top: 24px;
  color: var(--chg-gold);
}


/* FEATURED SOLUTIONS */

.chg-home-featured {
  background: var(--chg-deep-purple);
}

.chg-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.chg-home-feature-card {
  overflow: hidden;
  background: linear-gradient(155deg, var(--chg-panel), var(--chg-panel-light));
  border: 1px solid var(--chg-border-soft);
  color: var(--chg-stone) !important;
  text-decoration: none !important;
}

.chg-home-feature-card:hover,
.chg-home-feature-card:focus {
  transform: translateY(-3px);
  border-color: var(--chg-border);
  box-shadow: var(--chg-shadow-sm);
}

.chg-home-feature-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--chg-panel-dark);
}

.chg-home-feature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.chg-home-feature-card:hover .chg-home-feature-image img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.chg-home-feature-copy {
  padding: 24px;
}

.chg-home-feature-copy > span {
  display: block;
  margin-bottom: 5px;
  color: var(--chg-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.chg-home-feature-copy h3 {
  margin: 0 0 10px;
  color: var(--chg-white);
  font-size: 28px;
  line-height: 1.1;
}

.chg-home-feature-copy p {
  min-height: 78px;
  font-size: 15px;
}

.chg-home-feature-copy strong {
  color: var(--chg-gold);
  font-size: 14px;
}

.chg-home-products-link {
  margin-top: 28px;
}


/* FLOW */

.chg-home-flow {
  padding: 72px 0;
  background: var(--chg-midnight);
}

.chg-home-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--chg-border);
  border-bottom: 1px solid var(--chg-border);
}

.chg-home-flow-step {
  padding: 24px 20px;
  border-right: 1px solid var(--chg-border-soft);
}

.chg-home-flow-step:last-child {
  border-right: 0;
}

.chg-home-flow-step > span {
  display: block;
  margin-bottom: 9px;
  color: var(--chg-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}

.chg-home-flow-step strong {
  display: block;
  margin-bottom: 6px;
  color: var(--chg-white);
  font-size: 18px;
}

.chg-home-flow-step p {
  margin-bottom: 0;
  font-size: 14px;
}


/* FINAL CTA */

.chg-home-final {
  padding: 78px 0 84px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(88,0,124,.36), transparent 42%),
    var(--chg-midnight);
}

.chg-home-final h2 {
  margin: 0 auto 16px;
  color: var(--chg-white);
  font-size: clamp(35px,5vw,55px);
  line-height: 1.07;
  letter-spacing: -.03em;
}

.chg-home-final > .chg-wrap > p:not(.chg-eyebrow) {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
}


/* RESPONSIVE */

@media (max-width: 1000px) {
  .chg-home-route-grid,
  .chg-home-feature-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .chg-home-flow-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .chg-home-flow-step:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 800px) {
  .chg-home-method-grid {
    grid-template-columns: 1fr;
  }

  .chg-home-method-copy {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--chg-border);
  }
}

@media (max-width: 600px) {
  .chg-home-hero {
    padding: 52px 0 48px;
  }

  .chg-home-question-box {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .chg-home-question-placeholder {
    padding: 8px 6px;
    white-space: normal;
    text-align: center;
  }

  .chg-home-question-action {
    width: 100%;
  }

  .chg-home-prompts {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chg-home-prompts a {
    justify-content: center;
  }

  .chg-home-route-grid,
  .chg-home-feature-grid,
  .chg-home-flow-grid {
    grid-template-columns: 1fr;
  }

  .chg-home-route-card {
    min-height: 0;
  }

  .chg-home-feature-copy p {
    min-height: 0;
  }

  .chg-home-flow-step,
  .chg-home-flow-step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--chg-border-soft);
  }

  .chg-home-flow-step:last-child {
    border-bottom: 0;
  }

  .chg-home-positioning span {
    display: none;
  }
}
