/*
Theme Name: Cherokee Wealth
Theme URI: https://cherokeewealth.co.za/
Author: Smart Design Works
Author URI: https://smartdesignworks.co.za/
Description: Custom Discovery co-branded WordPress theme for Cherokee Wealth, built around the approved navy, gold and white design system with compliance-first templates.
Version: 3.2.2
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: cherokee-wealth
*/

:root {
  --cw-navy-950: #032f5c;
  --cw-navy-900: #043b70;
  --cw-navy-800: #064d8e;
  --cw-navy-700: #0a5aa1;
  --cw-gold: #d79b38;
  --cw-gold-deep: #b87918;
  --cw-gold-soft: #f6e8cd;
  --cw-ink: #1e2b3b;
  --cw-muted: #5c6877;
  --cw-line: #dde5ed;
  --cw-cloud: #f4f8fb;
  --cw-mist: #edf4f9;
  --cw-white: #fff;
  --cw-success: #237a57;
  --cw-error: #a63b3b;
  --cw-radius: 10px;
  --cw-radius-lg: 18px;
  --cw-shadow: 0 12px 34px rgba(3,47,92,.09);
  --cw-shadow-strong: 0 18px 50px rgba(3,47,92,.14);
  --cw-wrap: min(1180px, calc(100% - 40px));
  --cw-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cw-ink);
  background: var(--cw-white);
  font-family: var(--cw-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.cw-menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cw-navy-800); text-underline-offset: 3px; }
a:hover { color: var(--cw-gold-deep); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  clip: auto !important; width: auto; height: auto; margin: 0; padding: 12px 16px;
  top: 10px; left: 10px; z-index: 99999; background: var(--cw-white); color: var(--cw-navy-950);
  border: 2px solid var(--cw-gold); border-radius: 6px;
}

.cw-wrap { width: var(--cw-wrap); margin-inline: auto; }
.cw-narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.cw-section { padding: clamp(64px, 7.5vw, 108px) 0; }
.cw-section--tight { padding: clamp(44px, 5vw, 72px) 0; }
.cw-section--cloud { background: var(--cw-cloud); }
.cw-section--mist { background: var(--cw-mist); }
.cw-section--navy { background: var(--cw-navy-950); color: var(--cw-white); }
.cw-section-heading { max-width: 760px; margin: 0 auto clamp(30px, 4vw, 52px); text-align: center; }
.cw-section-heading--left { margin-inline: 0; text-align: left; }
.cw-eyebrow {
  display: block; margin: 0 0 10px; color: var(--cw-gold-deep); font-size: .75rem;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.cw-gold-rule { display: block; width: 42px; height: 2px; margin: 17px 0 20px; background: var(--cw-gold); }
.cw-gold-rule--center { margin-inline: auto; }

h1, h2, h3, h4, h5, h6 {
  margin-top: 0; color: var(--cw-navy-950); font-family: var(--cw-text); font-weight: 750;
  line-height: 1.13; letter-spacing: -.025em; text-wrap: balance;
}
h1 { margin-bottom: 20px; font-size: clamp(2.5rem, 5vw, 4.55rem); }
h2 { margin-bottom: 16px; font-size: clamp(2rem, 3.6vw, 3.05rem); }
h3 { margin-bottom: 11px; font-size: clamp(1.25rem, 2vw, 1.65rem); }
h4 { margin-bottom: 8px; font-size: 1.08rem; }
p { margin: 0 0 1.15rem; }
.cw-lead { color: var(--cw-muted); font-size: clamp(1.05rem, 1.65vw, 1.24rem); }
.cw-muted { color: var(--cw-muted); }
.cw-section--navy h1, .cw-section--navy h2, .cw-section--navy h3, .cw-section--navy h4 { color: var(--cw-white); }

.cw-button, .wp-block-button__link, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px;
  padding: 12px 23px; border: 1px solid var(--cw-navy-900); border-radius: 6px;
  background: var(--cw-navy-900); color: var(--cw-white); font-weight: 750; line-height: 1.2;
  text-decoration: none; transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.cw-button:hover, .wp-block-button__link:hover, input[type="submit"]:hover {
  color: var(--cw-white); background: var(--cw-navy-800); transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(3,47,92,.16);
}
.cw-button--outline { background: var(--cw-white); color: var(--cw-navy-900); }
.cw-button--outline:hover { color: var(--cw-white); background: var(--cw-navy-900); }
.cw-button--gold { border-color: var(--cw-gold); background: var(--cw-gold); color: var(--cw-navy-950); }
.cw-button--gold:hover { background: #e3ad54; color: var(--cw-navy-950); }
.cw-button--text { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--cw-navy-800); }
.cw-button--text:hover { box-shadow: none; color: var(--cw-gold-deep); background: transparent; transform: none; }
.cw-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.cw-arrow { font-size: 1.15em; line-height: 1; }

/* Staging and admin-only indicators */
.cw-staging-bar { padding: 8px 20px; background: #fff4db; color: #6b4a00; text-align: center; font-size: .82rem; font-weight: 700; }
.cw-admin-note { margin: 20px 0; padding: 15px 17px; border: 1px dashed var(--cw-gold); border-radius: var(--cw-radius); background: #fffaf0; color: #72531a; font-size: .9rem; }
.cw-draft-badge { display: inline-block; margin-left: 8px; padding: 3px 7px; border-radius: 999px; background: #fff4db; color: #72531a; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

/* Header */
.cw-site-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--cw-header-border-color, #e2e8ef) !important;
  border-radius: 0 !important;
  background: var(--cw-header-background, #ffffff) !important;
  box-shadow: 0 5px 22px rgba(3,47,92,.045) !important;
}
.cw-site-header--static { position: relative !important; top: auto !important; }
.admin-bar .cw-site-header { top: 32px; }
.cw-header-inner {
  width: min(var(--cw-header-content-width, 1360px), calc(100% - 64px)) !important;
  min-height: var(--cw-header-height, 82px);
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: minmax(260px,1fr) auto minmax(190px,1fr);
  align-items: center;
  column-gap: var(--cw-header-gap, 24px);
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.cw-header-logo {
  display: flex;
  align-items: center;
  justify-self: start;
  width: min(var(--cw-header-logo-width, 286px), 100%);
  min-width: 0;
  height: 52px;
  line-height: 0;
}
.cw-header-logo > a {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.cw-header-logo img,
.cw-header-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
}
.cw-header-logo-fallback { gap: 14px; }
.cw-header-logo-fallback__discovery,
.cw-header-logo-fallback__cherokee { display: flex; align-items: center; height: 44px; }
.cw-header-logo-fallback__discovery { width: 122px; }
.cw-header-logo-fallback__cherokee { width: 146px; }
.cw-header-logo-fallback__discovery img,
.cw-header-logo-fallback__cherokee img { width: 100%; height: 100%; object-fit: contain; }
.cw-header-logo-fallback__divider { width: 1px; height: 31px; flex: 0 0 1px; background: var(--cw-header-accent-color, var(--cw-gold)); opacity: .72; }

/* Shared brand rules retained for the footer co-branding lockup. */
.cw-brand,
.cw-brand a { display: flex; align-items: center; justify-content: center; min-width: 0; line-height: 0; }
.cw-brand img { display: block; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.cw-brand-divider { width: 1px; height: 31px; flex: 0 0 1px; background: var(--cw-gold); opacity: .72; }

.cw-nav { justify-self: center; margin: 0; }
.cw-menu { display: flex; align-items: center; justify-content: center; gap: clamp(19px,1.55vw,29px); margin: 0; padding: 0; list-style: none; }
.cw-menu li { position: relative; }
.cw-menu a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--cw-header-height, 82px);
  padding: 3px 0 0;
  color: var(--cw-header-menu-color, var(--cw-navy-950));
  font-size: var(--cw-header-menu-font-size, 13px);
  font-weight: 610;
  text-decoration: none;
  white-space: nowrap;
}
.cw-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--cw-header-accent-color, var(--cw-gold));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.cw-menu a:hover::after,
.cw-menu .current-menu-item > a::after,
.cw-menu .current_page_item > a::after,
.cw-menu .current-menu-ancestor > a::after { transform: scaleX(1); }
.cw-menu .sub-menu { position: absolute; top: calc(100% - 8px); left: -18px; min-width: 225px; margin: 0; padding: 10px; list-style: none; background: #fff; border: 1px solid var(--cw-header-border-color, var(--cw-line)); border-radius: 8px; box-shadow: var(--cw-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.cw-menu li:hover > .sub-menu, .cw-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cw-menu .sub-menu a { min-height: 0; padding: 11px 12px; border-radius: 5px; white-space: normal; }
.cw-menu .sub-menu a::after { display: none; }
.cw-menu .sub-menu a:hover { background: var(--cw-cloud); }
.cw-header-cta {
  justify-self: end;
  min-height: 46px;
  padding: 12px 21px;
  border-radius: 6px;
  border-color: var(--cw-header-cta-background, var(--cw-navy-900));
  background: var(--cw-header-cta-background, var(--cw-navy-900));
  color: var(--cw-header-cta-color, var(--cw-white));
  font-size: .86rem;
  box-shadow: none;
}
.cw-header-cta:hover { border-color: var(--cw-navy-800); background: var(--cw-navy-800); color: var(--cw-header-cta-color, var(--cw-white)); }
.cw-menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--cw-header-border-color, var(--cw-line)); border-radius: 6px; background: #fff; color: var(--cw-header-menu-color, var(--cw-navy-950)); }
.cw-menu-toggle svg { width: 23px; height: 23px; }

/* Split heroes */
.cw-hero { position: relative; overflow: hidden; min-height: 510px; border-bottom: 1px solid var(--cw-line); background: linear-gradient(90deg, #fff 0%, #fff 44%, var(--cw-cloud) 100%); }
.cw-hero-grid { min-height: 510px; display: grid; grid-template-columns: minmax(0, .94fr) minmax(410px, 1.06fr); align-items: stretch; }
.cw-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: clamp(60px, 7vw, 94px) clamp(30px, 5vw, 68px) clamp(60px, 7vw, 94px) 0; }
.cw-hero-copy p:not(.cw-eyebrow) { max-width: 650px; color: #3c4856; font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.cw-hero-media { position: relative; min-height: 510px; background-color: var(--cw-mist); background-image: var(--cw-hero-image, linear-gradient(135deg,#edf4f9,#dce8f1)); background-position: center; background-size: cover; }
.cw-hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.74) 11%, rgba(255,255,255,.18) 29%, rgba(255,255,255,0) 48%); }
.cw-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(3,47,92,.04)); }
.cw-hero-placeholder { position: absolute; right: 22px; bottom: 20px; z-index: 2; padding: 8px 11px; border: 1px dashed rgba(3,47,92,.28); background: rgba(255,255,255,.82); color: var(--cw-muted); font-size: .72rem; font-weight: 700; }
.cw-breadcrumbs { margin-bottom: 28px; color: var(--cw-muted); font-size: .82rem; }
.cw-breadcrumbs a { text-decoration: none; }

/* Grids and cards */
.cw-grid { display: grid; gap: 22px; }
.cw-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cw-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cw-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.cw-card { position: relative; padding: 29px 25px; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); background: var(--cw-white); box-shadow: 0 8px 23px rgba(3,47,92,.05); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.cw-card:hover { transform: translateY(-3px); border-color: #c5d6e5; box-shadow: var(--cw-shadow); }
.cw-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 18px; color: var(--cw-navy-800); }
.cw-icon svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cw-icon::after { content: ""; position: absolute; width: 28px; height: 2px; margin-top: 74px; background: var(--cw-gold); }
.cw-card h3 a { color: inherit; text-decoration: none; }
.cw-card p { color: var(--cw-muted); font-size: .94rem; }
.cw-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--cw-navy-800); font-size: .86rem; font-weight: 750; text-decoration: none; }
.cw-card-link::after { content: "›"; font-size: 1.25rem; }

.cw-service-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.cw-service-card { min-height: 275px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cw-service-card .cw-card-link { margin-top: auto; }
.cw-service-card__excerpt { margin-bottom: 18px; }

/* Home about band */
.cw-about-band { background: linear-gradient(90deg, #f7fafc, #eef4f8); }
.cw-about-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: center; gap: clamp(38px, 7vw, 88px); }
.cw-about-points { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 34px; }
.cw-about-point { display: grid; grid-template-columns: 54px 1fr; gap: 15px; }
.cw-about-point .cw-icon { width: 54px; height: 54px; margin: 0; border-radius: 50%; background: var(--cw-white); box-shadow: 0 5px 18px rgba(3,47,92,.07); }
.cw-about-point .cw-icon svg { width: 34px; height: 34px; }
.cw-about-point .cw-icon::after { display: none; }
.cw-about-point h3 { margin: 2px 0 6px; font-size: 1rem; }
.cw-about-point p { margin: 0; color: var(--cw-muted); font-size: .88rem; }

/* Advisors */
.cw-advisor-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.cw-advisor-card { overflow: hidden; padding: 0; }
.cw-advisor-photo { aspect-ratio: 4/3; background: linear-gradient(135deg,#eef3f7,#dce6ed); overflow: hidden; }
.cw-advisor-photo img { width: 100%; height: 100%; object-fit: cover; }
.cw-advisor-body { padding: 24px; }
.cw-advisor-role { margin-bottom: 14px; color: var(--cw-gold-deep); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cw-advisor-detail { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: clamp(35px,6vw,90px); }
.cw-advisor-meta { padding: 27px; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); background: var(--cw-cloud); }
.cw-advisor-meta dl { margin: 0; }
.cw-advisor-meta dt { margin-top: 18px; color: var(--cw-gold-deep); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cw-advisor-meta dt:first-child { margin-top: 0; }
.cw-advisor-meta dd { margin: 4px 0 0; }

/* Values, stats, process */
.cw-values { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.cw-value { text-align: center; }
.cw-value .cw-icon { position: relative; margin-inline: auto; }
.cw-value p { color: var(--cw-muted); font-size: .88rem; }
.cw-process { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; }
.cw-step { position: relative; padding: 32px 32px 28px; border: 1px solid var(--cw-line); background: var(--cw-white); text-align: center; }
.cw-step + .cw-step { border-left: 0; }
.cw-step-number { position: absolute; top: -18px; left: calc(50% - 18px); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cw-navy-900); color: var(--cw-white); font-weight: 800; }
.cw-step p { color: var(--cw-muted); font-size: .9rem; }
.cw-list { margin: 18px 0 0; padding: 0; list-style: none; }
.cw-list li { position: relative; padding: 8px 0 8px 27px; }
.cw-list li::before { content: "✓"; position: absolute; left: 0; color: var(--cw-gold-deep); font-weight: 900; }

/* Contact */
.cw-contact-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: -54px; position: relative; z-index: 4; }
.cw-contact-card { min-height: 152px; display: grid; grid-template-columns: 58px 1fr; gap: 17px; align-items: start; }
.cw-contact-card .cw-icon { width: 58px; height: 58px; margin: 0; border-radius: 50%; background: var(--cw-cloud); }
.cw-contact-card .cw-icon svg { width: 34px; height: 34px; }
.cw-contact-card .cw-icon::after { display: none; }
.cw-contact-card p { margin-bottom: 0; }
.cw-contact-card > div { min-width: 0; }
.cw-contact-card--email h3 {
  margin-inline: auto;
  font-size: clamp(1rem, 1.25vw, 1.28rem);
  line-height: 1.25;
  text-align: center;
}
.cw-contact-card--email h3 a {
  display: block;
  white-space: nowrap;
}
.cw-contact-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(330px,.92fr); gap: 24px; }
.cw-form-panel, .cw-info-panel { padding: clamp(27px,4vw,42px); border: 1px solid var(--cw-line); border-radius: var(--cw-radius); background: var(--cw-white); box-shadow: 0 8px 24px rgba(3,47,92,.05); }
.cw-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.cw-field--full { grid-column: 1/-1; }
.cw-field label { display: block; margin-bottom: 6px; color: var(--cw-navy-950); font-size: .84rem; font-weight: 700; }
.cw-field input, .cw-field textarea, .cw-field select { width: 100%; padding: 12px 14px; border: 1px solid #d6e0e9; border-radius: 5px; background: var(--cw-white); color: var(--cw-ink); }
.cw-field input:focus, .cw-field textarea:focus, .cw-field select:focus { outline: 3px solid rgba(215,155,56,.18); border-color: var(--cw-gold); }
.cw-field textarea { min-height: 145px; resize: vertical; }
.cw-consent { display: flex; gap: 10px; align-items: flex-start; margin: 15px 0; color: var(--cw-muted); font-size: .82rem; }
.cw-consent input { margin-top: 4px; }
.cw-honeypot { position: absolute !important; left: -9999px !important; }
.cw-alert { margin: 0 0 18px; padding: 13px 15px; border-radius: 6px; font-size: .9rem; }
.cw-alert--success { background: #eaf7f1; color: var(--cw-success); }
.cw-alert--error { background: #fff0f0; color: var(--cw-error); }
.cw-info-list { display: grid; gap: 22px; margin-top: 25px; }
.cw-info-item { display: grid; grid-template-columns: 52px 1fr; gap: 15px; }
.cw-info-item .cw-icon { width: 52px; height: 52px; margin: 0; }
.cw-info-item .cw-icon svg { width: 36px; height: 36px; }
.cw-info-item .cw-icon::after { display: none; }
.cw-map { min-height: 340px; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); background: linear-gradient(135deg,#e9f0f5,#dfeaf1); overflow: hidden; }
.cw-map iframe { width: 100%; height: 340px; border: 0; }

/* Legal */
.cw-legal-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: clamp(36px,6vw,78px); align-items: start; }
.cw-legal-section { scroll-margin-top: 110px; padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--cw-line); }
.cw-legal-section:last-child { border-bottom: 0; }
.cw-legal-aside { position: sticky; top: 112px; padding: 24px; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); background: var(--cw-cloud); }
.cw-legal-aside ul { margin: 0; padding: 0; list-style: none; }
.cw-legal-aside li + li { margin-top: 9px; }
.cw-legal-aside a { text-decoration: none; font-size: .9rem; }
.cw-disclosure-box { padding: 24px; border-left: 4px solid var(--cw-gold); background: var(--cw-cloud); }
.cw-contact-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.cw-contact-table th, .cw-contact-table td { padding: 10px 12px; border: 1px solid var(--cw-line); text-align: left; vertical-align: top; }
.cw-contact-table th { width: 150px; background: var(--cw-cloud); color: var(--cw-navy-950); }

/* Content */
.cw-content { padding: clamp(55px,7vw,96px) 0; }
.cw-entry-content { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.cw-entry-content > * { max-width: 820px; margin-inline: auto; }
.cw-entry-content > .alignwide { max-width: 1180px; }
.cw-entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.cw-entry-content img { border-radius: var(--cw-radius); }
.cw-entry-content blockquote { margin: 30px 0; padding: 18px 24px; border-left: 3px solid var(--cw-gold); background: var(--cw-cloud); }
.cw-page-header { padding: clamp(62px,8vw,105px) 0; background: var(--cw-cloud); border-bottom: 1px solid var(--cw-line); }
.cw-page-header p { max-width: 720px; color: var(--cw-muted); }

/* Footer CTA */
.cw-footer-cta { background: linear-gradient(90deg,var(--cw-navy-800),var(--cw-navy-950)); color: var(--cw-white); }
.cw-footer-cta-inner { min-height: 150px; display: grid; grid-template-columns: 80px minmax(0,1fr) auto; gap: 28px; align-items: center; }
.cw-footer-cta .cw-icon { width: 72px; height: 72px; margin: 0; border: 1px solid var(--cw-gold); border-radius: 50%; color: var(--cw-gold); }
.cw-footer-cta .cw-icon svg { width: 42px; height: 42px; }
.cw-footer-cta .cw-icon::after { display: none; }
.cw-footer-cta h2 { margin-bottom: 8px; color: var(--cw-white); font-size: clamp(1.55rem,2.4vw,2.1rem); }
.cw-footer-cta p { margin: 0; color: rgba(255,255,255,.82); }
.cw-footer-contact { display: grid; gap: 5px; margin-top: 11px; font-size: .85rem; }
.cw-footer-contact a { color: var(--cw-white); text-decoration: none; }

.cw-site-footer { background: var(--cw-navy-950); color: rgba(255,255,255,.82); }
.cw-footer-main { display: grid; grid-template-columns: 1.1fr 1.15fr .8fr 1fr; gap: 42px; padding: 52px 0 42px; }
.cw-footer-brand-lockup { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.cw-footer-brand-lockup .cw-brand { height: 46px; }
/* Keep both co-brand logos at the same visual height. Their aspect ratios differ,
   so matching height gives a balanced lockup without stretching either logo. */
.cw-footer-brand-lockup .cw-brand img { width: auto; height: 38px; max-width: none; max-height: none; object-fit: contain; }
.cw-footer-brand-lockup .cw-brand--discovery img:not(.cw-discovery-logo--footer-upload) { filter: brightness(0) invert(1); }
.cw-footer-brand-lockup .cw-brand-divider { background: rgba(255,255,255,.25); }
.cw-footer-title { margin-bottom: 17px; color: var(--cw-gold); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cw-footer-menu { columns: 2; gap: 22px; margin: 0; padding: 0; list-style: none; }
.cw-footer-menu--single { columns: 1; }
.cw-footer-menu li { break-inside: avoid; margin-bottom: 7px; }
.cw-site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.cw-site-footer a:hover { color: var(--cw-gold); }
.cw-footer-main p { margin-bottom: 9px; font-size: .86rem; }
.cw-footer-disclosure { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); font-size: .74rem; line-height: 1.55; }
.cw-footer-disclosure p { margin: 0; }
.cw-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 24px; color: rgba(255,255,255,.62); font-size: .74rem; }

/* Posts and resources */
.cw-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.cw-post-card { overflow: hidden; border: 1px solid var(--cw-line); border-radius: var(--cw-radius); background: var(--cw-white); box-shadow: 0 7px 22px rgba(3,47,92,.05); }
.cw-post-card__image { display: block; aspect-ratio: 16/9; background: var(--cw-mist); overflow: hidden; }
.cw-post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.cw-post-card__body { padding: 24px; }
.cw-post-meta { color: var(--cw-gold-deep); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cw-post-card h2 { font-size: 1.35rem; }
.cw-post-card h2 a { color: inherit; text-decoration: none; }
.cw-pagination { margin-top: 35px; }

/* Responsive */
@media (max-width: 1180px) {
  .cw-header-inner { width: min(100% - 40px, var(--cw-header-content-width,1360px)) !important; grid-template-columns: auto 1fr auto; }
  .cw-header-cta { display: none; }
  .cw-nav { justify-self: end; }
  .cw-menu { gap: 18px; }
  .cw-service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cw-footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .admin-bar .cw-site-header { top: 46px; }
  .cw-header-inner { width: min(100% - 32px, var(--cw-header-content-width,1360px)) !important; min-height: var(--cw-header-mobile-height,72px); grid-template-columns: 1fr auto; column-gap: 16px; }
  .cw-header-logo { justify-self: start; width: min(var(--cw-header-logo-mobile-width,220px), 56vw); height: 44px; }
  .cw-header-logo-fallback { gap: 9px; }
  .cw-header-logo-fallback__discovery { width: 88px; }
  .cw-header-logo-fallback__cherokee { width: 108px; }
  .cw-header-logo-fallback__divider { height: 27px; }
  .cw-menu-toggle { display: inline-grid; place-items: center; justify-self: end; }
  .cw-nav { position: fixed; top: var(--cw-header-mobile-height,72px); right: 0; bottom: 0; left: 0; display: none; padding: 22px 24px 40px; overflow-y: auto; background: #fff; border-top: 1px solid var(--cw-line); }
  .admin-bar .cw-nav { top: calc(46px + var(--cw-header-mobile-height,72px)); }
  .cw-nav.is-open { display: block; }
  .cw-menu { display: block; }
  .cw-menu a { min-height: 0; padding: 15px 6px; border-bottom: 1px solid var(--cw-line); font-size: 1rem; }
  .cw-menu a::after { display: none; }
  .cw-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 18px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .cw-hero, .cw-hero-grid { min-height: auto; }
  .cw-hero-grid { grid-template-columns: 1fr; }
  .cw-hero-copy { padding: 62px 0 42px; }
  .cw-hero-media { min-height: 390px; order: 2; }
  .cw-hero-media::before { background: linear-gradient(180deg,#fff 0%,rgba(255,255,255,.35) 20%,rgba(255,255,255,0) 45%); }
  .cw-about-grid, .cw-contact-layout, .cw-advisor-detail, .cw-legal-layout { grid-template-columns: 1fr; }
  .cw-legal-aside { position: static; order: -1; }
  .cw-service-grid, .cw-values { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cw-contact-cards { grid-template-columns: 1fr; margin-top: 0; padding-top: 30px; }
  .cw-advisor-grid, .cw-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cw-footer-cta-inner { grid-template-columns: 68px 1fr; padding: 28px 0; }
  .cw-footer-cta-inner > :last-child { grid-column: 2; }
}
@media (max-width: 620px) {
  :root { --cw-wrap: min(100% - 28px, 1180px); }
  .cw-header-inner { width: min(100% - 24px, var(--cw-header-content-width,1360px)) !important; }
  .cw-header-logo { width: min(var(--cw-header-logo-mobile-width,220px), 66vw); height: 40px; }
  .cw-header-logo-fallback { gap: 7px; }
  .cw-header-logo-fallback__discovery { width: min(88px,24vw); }
  .cw-header-logo-fallback__cherokee { width: min(108px,29vw); }
  .cw-header-logo-fallback__divider { height: 24px; }
  .cw-hero-copy { padding-top: 48px; }
  .cw-hero-media { min-height: 300px; }
  .cw-contact-card--email h3 a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .cw-actions { display: grid; }
  .cw-actions .cw-button { width: 100%; }
  .cw-service-grid, .cw-grid--2, .cw-grid--3, .cw-grid--4, .cw-values, .cw-advisor-grid, .cw-post-grid, .cw-about-points, .cw-form-grid { grid-template-columns: 1fr; }
  .cw-process { grid-template-columns: 1fr; gap: 28px; }
  .cw-step + .cw-step { border-left: 1px solid var(--cw-line); }
  .cw-contact-card { grid-template-columns: 52px 1fr; }
  .cw-field--full { grid-column: auto; }
  .cw-footer-cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cw-footer-cta .cw-icon { margin-inline: auto; }
  .cw-footer-cta-inner > :last-child { grid-column: auto; }
  .cw-footer-main { grid-template-columns: 1fr; gap: 30px; }
  .cw-footer-menu { columns: 1; }
  .cw-footer-bottom { flex-direction: column; }
}
@media print {
  .cw-site-header, .cw-footer-cta, .cw-site-footer, .cw-actions, .cw-menu-toggle, .cw-staging-bar { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: none; }
}

/* =========================================================
   Version 2.4 — structured service pages and image controls
   ========================================================= */
.cw-hero {
  min-height: var(--cw-hero-height, 460px);
  background: linear-gradient(90deg, #fff 0%, #fff 50%, var(--cw-cloud) 50%, var(--cw-cloud) 100%);
}
.cw-hero-grid {
  min-height: var(--cw-hero-height, 460px);
  grid-template-columns: minmax(0, .96fr) minmax(430px, 1.04fr);
  gap: clamp(28px, 4vw, 58px);
}
.cw-hero-copy {
  padding: clamp(54px, 6vw, 82px) 0;
}
.cw-hero-media {
  position: relative;
  min-height: var(--cw-hero-height, 460px);
  overflow: hidden;
  background: var(--cw-mist);
}
.cw-hero-media::before,
.cw-hero-media::after {
  display: none;
}
.cw-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cw-hero-position, center);
}
.cw-hero-media--contain {
  background: linear-gradient(135deg, #f8fafc, #edf3f7);
}
.cw-hero-media--contain .cw-hero-image {
  inset: clamp(18px, 3vw, 38px);
  width: calc(100% - clamp(36px, 6vw, 76px));
  height: calc(100% - clamp(36px, 6vw, 76px));
  object-fit: contain;
}
.cw-hero--no-media {
  min-height: auto;
  background: linear-gradient(135deg, #fff, var(--cw-cloud));
}
.cw-hero--no-media .cw-hero-grid {
  min-height: auto;
  grid-template-columns: minmax(0, 840px);
  justify-content: center;
}
.cw-hero--no-media .cw-hero-copy {
  padding-inline: 0;
  text-align: center;
  align-items: center;
}
.cw-hero--no-media .cw-gold-rule { margin-inline: auto; }
.cw-hero--no-media .cw-actions { justify-content: center; }
.cw-hero-placeholder {
  left: 50%;
  right: auto;
  bottom: 24px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.cw-service-content-section { padding-bottom: clamp(54px, 6vw, 82px); }
.cw-service-intro-mark {
  display: flex;
  justify-content: center;
  margin: 0 auto 24px;
}
.cw-service-intro-mark .cw-icon {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0;
  border-radius: 50%;
  background: var(--cw-cloud);
}
.cw-service-intro-mark .cw-icon svg { width: 42px; height: 42px; }
.cw-service-intro-mark .cw-icon::after { display: none; }
.cw-service-entry-content { font-size: 1.02rem; }
.cw-service-entry-content > :first-child { margin-top: 0; }
.cw-service-entry-content h2,
.cw-service-entry-content h3 { margin-top: 1.8em; }

.cw-feature-grid {
  width: min(1080px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.cw-feature-card {
  min-height: 250px;
  padding: clamp(28px, 3.2vw, 38px);
  text-align: left;
}
.cw-feature-card .cw-icon {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 0 22px;
}
.cw-feature-card .cw-icon svg { width: 48px; height: 48px; }
.cw-feature-card .cw-icon::after {
  left: 0;
  bottom: -10px;
  margin: 0;
}
.cw-feature-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 1.4vw, 1.28rem);
}
.cw-feature-card p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.7;
}
.cw-service-disclaimer-section { background: #fff; }
.cw-disclosure-box p:last-child { margin-bottom: 0; }

.cw-service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cw-service-card {
  min-height: 310px;
  padding: 32px 27px;
}
.cw-service-card__excerpt {
  margin: 0 0 20px;
  line-height: 1.65;
}

.cw-advisor-photo img {
  object-position: var(--cw-advisor-photo-position, center);
}
.cw-advisor-body {
  display: flex;
  min-height: 270px;
  flex-direction: column;
}
.cw-advisor-body h3 { margin-bottom: 10px; }
.cw-advisor-caption {
  margin: 0 0 18px;
  color: var(--cw-muted);
  line-height: 1.65;
}
.cw-advisor-body .cw-card-link { margin-top: auto; }
.cw-advisor-profile-caption {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--cw-muted);
  font-size: 1.05rem;
}
.cw-advisor-photo--profile { aspect-ratio: 4 / 5; border-radius: var(--cw-radius); }
.cw-advisor-biography { width: auto; }

@media (max-width: 980px) {
  .cw-hero {
    min-height: auto;
    background: #fff;
  }
  .cw-hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cw-hero-copy { padding: 58px 0 42px; }
  .cw-hero-media { min-height: 390px; }
  .cw-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .cw-hero-copy { padding: 46px 0 34px; }
  .cw-hero-media { min-height: var(--cw-hero-mobile-height, 280px); }
  .cw-feature-grid,
  .cw-service-grid { grid-template-columns: 1fr; }
  .cw-feature-card { min-height: 0; }
  .cw-service-card { min-height: 0; }
  .cw-hero-placeholder {
    max-width: calc(100% - 28px);
    white-space: normal;
    text-align: center;
  }
}


/* =========================================================
   Version 2.5 — approved blended homepage hero
   ========================================================= */
.cw-home-hero {
  position: relative;
  isolation: isolate;
  --cw-hero-fade-start: calc(max(20px, calc((100% - 1180px) / 2)) + min(520px, calc(43vw - 20px)) + 10px);
  min-height: clamp(470px, var(--cw-hero-height, 520px), 610px);
  overflow: hidden;
  border-bottom: 1px solid rgba(221,229,237,.8);
  background: #fff;
}
.cw-home-hero__media {
  position: absolute;
  z-index: -3;
  inset: 0 0 0 var(--cw-hero-fade-start);
  overflow: hidden;
  background: var(--cw-mist);
  -webkit-mask-image: none;
  mask-image: none;
}
.cw-home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cw-home-hero-position, right);
}
.cw-home-hero__image--auto,
.cw-home-hero__image--balanced {
  object-fit: cover;
  object-position: var(--cw-home-hero-position, right);
  transform: none;
}
.cw-home-hero--compact-source .cw-home-hero__media {
  inset: 0 0 0 var(--cw-hero-fade-start);
  width: auto;
  background: #fff;
  -webkit-mask-image: none;
  mask-image: none;
}
.cw-home-hero--compact-source .cw-home-hero__image--auto,
.cw-home-hero--compact-source .cw-home-hero__image--balanced {
  object-fit: cover;
  object-position: right center;
}
.cw-home-hero__blend {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 var(--cw-hero-fade-start);
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      rgba(255,255,255,.92) 8%,
      rgba(255,255,255,.7) 18%,
      rgba(255,255,255,.35) 30%,
      rgba(255,255,255,.08) 42%,
      rgba(255,255,255,0) 52%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,.03) 0%,
      rgba(255,255,255,0) 70%,
      rgba(255,255,255,.42) 88%,
      #fff 100%
    );
}
.cw-home-hero__inner {
  display: flex;
  align-items: center;
  min-height: clamp(470px, var(--cw-hero-height, 520px), 610px);
}
.cw-home-hero__copy {
  width: min(590px, 53%);
  padding: clamp(62px, 7vw, 94px) 0 clamp(70px, 7vw, 98px);
}
.cw-home-hero__copy .cw-eyebrow {
  margin-bottom: 13px;
}
.cw-home-hero__copy h1 {
  max-width: 610px;
  margin-bottom: 0;
  font-size: clamp(2.75rem, 5.2vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.cw-home-hero__copy .cw-gold-rule {
  width: 44px;
  margin: 22px 0 24px;
}
.cw-home-hero__intro {
  max-width: 520px;
  color: #344354;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.62;
}
.cw-home-hero__copy .cw-actions {
  margin-top: 28px;
}
.cw-home-hero--no-image {
  background: linear-gradient(135deg, #fff 0%, #f4f8fb 100%);
}
.cw-home-hero--no-image .cw-home-hero__copy {
  width: min(680px, 100%);
}

@media (max-width: 1000px) {
  .cw-home-hero__blend {
    background:
      linear-gradient(
        90deg,
        #fff 0%,
        rgba(255,255,255,.88) 8%,
        rgba(255,255,255,.58) 20%,
        rgba(255,255,255,.22) 34%,
        rgba(255,255,255,0) 50%
      ),
      linear-gradient(180deg, rgba(255,255,255,0) 65%, #fff 100%);
  }
  .cw-home-hero__copy {
    width: min(610px, 61%);
  }
}

@media (max-width: 760px) {
  .cw-home-hero {
    min-height: auto;
    padding-bottom: var(--cw-hero-mobile-height, 300px);
  }
  .cw-home-hero__media {
    inset: auto 0 0;
    width: 100%;
    height: var(--cw-hero-mobile-height, 300px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 48%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 48%);
  }
  .cw-home-hero--compact-source .cw-home-hero__media {
    inset: auto 0 0;
    width: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 48%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 48%);
  }
  .cw-home-hero__image {
    object-position: var(--cw-home-hero-position, right);
  }
  .cw-home-hero--compact-source .cw-home-hero__image--auto,
  .cw-home-hero--compact-source .cw-home-hero__image--balanced {
    object-fit: contain;
    object-position: right center;
  }
  .cw-home-hero__blend {
    z-index: -1;
    inset: 0;
    background:
      linear-gradient(180deg, #fff 0%, rgba(255,255,255,.96) 16%, rgba(255,255,255,.28) 52%, rgba(255,255,255,0) 75%),
      linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  }
  .cw-home-hero__inner {
    min-height: 0;
    align-items: flex-start;
  }
  .cw-home-hero__copy {
    width: 100%;
    padding: 48px 0 42px;
  }
  .cw-home-hero__copy h1 {
    max-width: 620px;
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }
  .cw-home-hero__intro {
    max-width: 580px;
  }
}

@media (max-width: 520px) {
  .cw-home-hero {
    padding-bottom: var(--cw-hero-mobile-height, 280px);
  }
  .cw-home-hero__copy {
    padding-top: 42px;
  }
  .cw-home-hero__copy .cw-actions {
    display: grid;
  }
  .cw-home-hero__copy .cw-actions .cw-button {
    width: 100%;
  }
}

/* =========================================================
   Version 2.6 — one blended hero system across every page
   ========================================================= */
.cw-shared-hero .cw-breadcrumbs {
  max-width: 560px;
  margin: 0 0 16px;
  color: var(--cw-muted);
  font-size: .8rem;
  font-weight: 600;
}
.cw-shared-hero .cw-breadcrumbs a {
  color: var(--cw-navy-800);
  text-decoration: none;
}
.cw-home-hero__image--contain {
  object-fit: contain;
  padding: clamp(24px, 4vw, 58px) clamp(18px, 3vw, 44px) clamp(24px, 4vw, 58px) 42%;
  background: linear-gradient(90deg, #fff 0%, #f7fafc 44%, #edf4f9 100%);
}
.cw-service-grid--overview .cw-service-card {
  min-height: 300px;
}
.cw-service-grid--overview .cw-service-card h3 {
  margin-bottom: 12px;
}
#cw-services-process {
  scroll-margin-top: calc(var(--cw-header-height, 82px) + 24px);
}
@media (max-width: 760px) {
  .cw-home-hero__image--contain {
    padding: 18px;
  }
}

/* =========================================================
   Version 3.0 — complete page system
   ========================================================= */
.cw-v3-entry-reset,
.cw-v3-entry-reset > * { width: auto; max-width: none; margin-inline: 0; }
.cw-v3-centered-actions { display:flex; justify-content:center; margin-top:34px; }
.cw-v3-full-button { width:100%; }

/* About */
.cw-v3-story-grid { display:grid; grid-template-columns:minmax(320px,.82fr) minmax(0,1.18fr); gap:clamp(38px,7vw,88px); align-items:center; }
.cw-v3-story-media { min-height:460px; border-radius:var(--cw-radius-lg); overflow:hidden; background:linear-gradient(135deg,#eef4f8,#dde8f0); box-shadow:var(--cw-shadow); }
.cw-v3-story-media img { width:100%; height:100%; min-height:460px; object-fit:cover; }
.cw-v3-image-placeholder { min-height:460px; display:grid; place-items:center; align-content:center; gap:14px; padding:34px; color:var(--cw-muted); text-align:center; }
.cw-v3-image-placeholder .cw-icon { width:72px; height:72px; margin:0; }
.cw-v3-mission .cw-section-heading { margin-bottom:0; }
.cw-v3-values { grid-template-columns:repeat(4,minmax(0,1fr)); }
.cw-v3-reasons { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; }
.cw-v3-reasons > div { padding:18px 28px; text-align:center; border-right:1px solid var(--cw-line); }
.cw-v3-reasons > div:last-child { border-right:0; }
.cw-v3-reasons .cw-icon { margin-inline:auto; }
.cw-v3-reasons p { color:var(--cw-muted); font-size:.9rem; }

/* Services */
.cw-v3-service-card__icon .cw-icon { margin-inline:auto; }
.cw-v3-service-groups { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.cw-v3-service-groups > div { padding:28px 25px; border:1px solid var(--cw-line); border-radius:var(--cw-radius); background:#fff; }
.cw-v3-service-groups .cw-icon { margin:0 0 18px; }
.cw-v3-service-groups h3 { font-size:1.15rem; }
.cw-v3-service-groups p { margin:0; color:var(--cw-muted); font-size:.9rem; }
.cw-v3-service-overview { display:grid; grid-template-columns:110px minmax(0,1fr); gap:34px; align-items:center; max-width:980px; }
.cw-v3-service-overview__icon { display:grid; place-items:center; width:110px; height:110px; border:1px solid var(--cw-line); border-radius:var(--cw-radius-lg); background:#fff; box-shadow:var(--cw-shadow); }
.cw-v3-service-overview__icon .cw-icon { width:74px; height:74px; margin:0; }
.cw-v3-feature-grid { grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; }
.cw-v3-feature-grid .cw-feature-card { min-height:250px; text-align:center; }
.cw-v3-feature-grid .cw-icon { margin-inline:auto; }
.cw-v3-how-help__grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,.9fr); gap:clamp(38px,6vw,76px); align-items:center; }
.cw-v3-how-help__media { min-height:390px; border-radius:var(--cw-radius-lg); overflow:hidden; background:linear-gradient(135deg,#edf3f7,#dce8ef); }
.cw-v3-how-help__media img { width:100%; height:100%; min-height:390px; object-fit:cover; }
.cw-v3-check-list { margin:24px 0 0; padding:0; list-style:none; }
.cw-v3-check-list li { position:relative; padding:8px 0 8px 28px; }
.cw-v3-check-list li::before { content:"✓"; position:absolute; left:0; color:var(--cw-gold-deep); font-weight:900; }
.cw-v3-process { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.cw-v3-process .cw-step { border:1px solid var(--cw-line); border-radius:var(--cw-radius); }
.cw-v3-related-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.cw-v3-related-card { display:flex; align-items:center; gap:13px; min-height:82px; padding:16px 18px; border:1px solid var(--cw-line); border-radius:var(--cw-radius); background:#fff; color:var(--cw-navy-950); text-decoration:none; font-weight:750; }
.cw-v3-related-card .cw-icon { width:42px; height:42px; margin:0; flex:0 0 auto; }
.cw-v3-related-card b { margin-left:auto; color:var(--cw-gold-deep); font-size:1.35rem; }
.cw-v3-inline-cta__box { display:flex; justify-content:space-between; align-items:center; gap:30px; padding:28px 34px; border:1px solid rgba(215,155,56,.5); border-radius:var(--cw-radius-lg); background:linear-gradient(90deg,#fffaf1,#fff); }
.cw-v3-inline-cta__box > div { display:flex; align-items:center; gap:22px; }
.cw-v3-inline-cta__box .cw-icon { width:64px; height:64px; margin:0; flex:0 0 auto; }
.cw-v3-inline-cta__box h2 { margin-bottom:6px; font-size:clamp(1.5rem,2.2vw,2rem); }
.cw-v3-inline-cta__box p { margin:0; color:var(--cw-muted); }

/* Advisers */
.cw-v3-advisor-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.cw-v3-advisor-placeholder { display:grid; place-items:center; width:100%; height:100%; }
.cw-v3-advisor-placeholder .cw-icon { width:82px; height:82px; margin:0; opacity:.55; }
.cw-v3-adviser-profile { display:grid; grid-template-columns:minmax(285px,.72fr) minmax(0,1.28fr); gap:clamp(42px,7vw,90px); align-items:start; }
.cw-v3-adviser-sidebar { position:sticky; top:115px; }
.cw-v3-adviser-meta { margin-top:18px; }
.cw-v3-adviser-contact { display:grid; gap:10px; margin:22px 0; }
.cw-v3-adviser-contact a { display:flex; align-items:center; gap:10px; color:var(--cw-navy-950); text-decoration:none; font-weight:700; }
.cw-v3-adviser-contact .cw-icon { width:34px; height:34px; margin:0; }
.cw-v3-adviser-details { display:grid; gap:18px; margin-top:36px; }
.cw-v3-adviser-details section { display:grid; grid-template-columns:60px 1fr; gap:18px; padding:24px; border:1px solid var(--cw-line); border-radius:var(--cw-radius); background:var(--cw-cloud); }
.cw-v3-detail-icon .cw-icon { width:54px; height:54px; margin:0; }
.cw-v3-adviser-details p { margin:0; color:var(--cw-muted); }
.cw-v3-mini-team { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.cw-v3-mini-team > a { display:grid; grid-template-columns:64px 1fr auto; gap:15px; align-items:center; padding:16px 18px; border:1px solid var(--cw-line); border-radius:var(--cw-radius); background:#fff; color:var(--cw-navy-950); text-decoration:none; }
.cw-v3-mini-team__photo { width:64px; height:64px; display:grid; place-items:center; border-radius:50%; overflow:hidden; background:var(--cw-mist); }
.cw-v3-mini-team__photo img { width:100%; height:100%; object-fit:cover; }
.cw-v3-mini-team__photo .cw-icon { width:40px; height:40px; margin:0; }
.cw-v3-mini-team small { display:block; margin-top:4px; color:var(--cw-muted); }

/* Contact */
.cw-v3-contact-main { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr); gap:24px; align-items:stretch; }
.cw-v3-contact-reasons { padding:clamp(28px,4vw,42px); border:1px solid var(--cw-line); border-radius:var(--cw-radius); background:#fff; box-shadow:0 8px 24px rgba(3,47,92,.05); }
.cw-v3-contact-reason-list { display:grid; gap:20px; margin-top:28px; }
.cw-v3-contact-reason-list > div { display:grid; grid-template-columns:54px 1fr; gap:16px; }
.cw-v3-contact-reason-list .cw-icon { width:54px; height:54px; margin:0; }
.cw-v3-contact-reason-list h3 { margin-bottom:4px; font-size:1rem; }
.cw-v3-contact-reason-list p { margin:0; color:var(--cw-muted); font-size:.88rem; }
.cw-v3-submit { width:100%; }
.cw-v3-contact-lower { display:grid; grid-template-columns:minmax(300px,.65fr) minmax(0,1.35fr); gap:24px; align-items:stretch; }
.cw-v3-response-card { padding:34px; }
.cw-v3-response-card .cw-info-item + .cw-info-item { margin-top:22px; }
.cw-v3-map-panel { padding:30px; border:1px solid var(--cw-line); border-radius:var(--cw-radius); background:#fff; }
.cw-v3-map-panel .cw-section-heading { margin-bottom:20px; }
.cw-v3-map-placeholder { min-height:340px; display:grid; place-items:center; align-content:center; gap:14px; padding:28px; text-align:center; }
.cw-v3-map-placeholder .cw-icon { width:62px; height:62px; margin:0; }

/* Resources */
.cw-v3-resource-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.cw-v3-resource-card { display:flex; min-height:310px; flex-direction:column; }
.cw-v3-resource-card__icon .cw-icon { margin:0 0 22px; }
.cw-v3-resource-card .cw-card-link { margin-top:auto; }
.cw-v3-resource-help { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,.9fr); gap:clamp(44px,7vw,88px); align-items:center; }
.cw-v3-resource-help__points { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.cw-v3-resource-help__points > div { display:grid; grid-template-columns:48px 1fr; gap:13px; padding:20px; border:1px solid var(--cw-line); border-radius:var(--cw-radius); background:#fff; }
.cw-v3-resource-help__points .cw-icon { width:48px; height:48px; margin:0; }
.cw-v3-resource-help__points h3 { margin-bottom:4px; font-size:1rem; }
.cw-v3-resource-help__points p { margin:0; color:var(--cw-muted); font-size:.86rem; }

/* Legal */
.cw-v3-legal-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
.cw-v3-legal-facts > div { padding:17px 19px; border:1px solid var(--cw-line); border-radius:8px; background:var(--cw-cloud); }
.cw-v3-legal-facts__wide { grid-column:1/-1; }
.cw-v3-legal-facts span { display:block; margin-bottom:4px; color:var(--cw-gold-deep); font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.cw-v3-legal-policy-grid { display:grid; gap:12px; margin-top:22px; }
.cw-v3-legal-policy { display:grid; grid-template-columns:54px 1fr auto; gap:15px; align-items:center; padding:18px 20px; color:var(--cw-navy-950); text-decoration:none; }
.cw-v3-legal-policy .cw-icon { width:54px; height:54px; margin:0; }
.cw-v3-legal-policy small { display:block; margin-top:3px; color:var(--cw-muted); }
.cw-v3-legal-policy b { color:var(--cw-gold-deep); font-size:1.4rem; }
.cw-v3-complaints-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:22px; }
.cw-v3-complaints-grid .cw-card { min-height:300px; }
.cw-v3-complaints-grid .cw-icon { margin:0 0 20px; }
.cw-v3-legal-help { margin-top:26px; padding-top:22px; border-top:1px solid var(--cw-line); }
.cw-v3-legal-help p { color:var(--cw-muted); font-size:.86rem; }

@media (max-width: 1100px) {
  .cw-v3-values, .cw-v3-reasons, .cw-v3-feature-grid, .cw-v3-service-groups, .cw-v3-resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cw-v3-reasons > div:nth-child(2) { border-right:0; }
  .cw-v3-reasons > div { border-bottom:1px solid var(--cw-line); }
  .cw-v3-reasons > div:nth-last-child(-n+2) { border-bottom:0; }
  .cw-v3-related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .cw-v3-story-grid, .cw-v3-how-help__grid, .cw-v3-adviser-profile, .cw-v3-contact-main, .cw-v3-contact-lower, .cw-v3-resource-help { grid-template-columns:1fr; }
  .cw-v3-adviser-sidebar { position:static; }
  .cw-v3-advisor-grid, .cw-v3-mini-team { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cw-v3-process { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cw-v3-resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cw-v3-inline-cta__box { align-items:flex-start; flex-direction:column; }
  .cw-v3-story-media, .cw-v3-story-media img, .cw-v3-image-placeholder { min-height:360px; }
}
@media (max-width: 620px) {
  .cw-v3-values, .cw-v3-reasons, .cw-v3-feature-grid, .cw-v3-service-groups, .cw-v3-resource-grid, .cw-v3-related-grid, .cw-v3-advisor-grid, .cw-v3-mini-team, .cw-v3-process, .cw-v3-resource-help__points, .cw-v3-legal-facts, .cw-v3-complaints-grid { grid-template-columns:1fr; }
  .cw-v3-reasons > div { border-right:0; border-bottom:1px solid var(--cw-line) !important; }
  .cw-v3-reasons > div:last-child { border-bottom:0 !important; }
  .cw-v3-service-overview { grid-template-columns:1fr; text-align:center; }
  .cw-v3-service-overview__icon { margin-inline:auto; }
  .cw-v3-inline-cta__box { padding:24px 20px; }
  .cw-v3-inline-cta__box > div { align-items:flex-start; }
  .cw-v3-inline-cta__box .cw-icon { width:52px; height:52px; }
  .cw-v3-adviser-details section { grid-template-columns:1fr; }
  .cw-v3-legal-facts__wide { grid-column:auto; }
  .cw-v3-story-media, .cw-v3-story-media img, .cw-v3-image-placeholder, .cw-v3-how-help__media, .cw-v3-how-help__media img { min-height:280px; }
}

/* =========================================================
   Version 3.1 — mapped cards, compact homepage team + archive hero controls
   ========================================================= */
.cw-mapped-card {
  display: flex;
  color: inherit;
  text-decoration: none;
}
.cw-mapped-card:hover,
.cw-mapped-card:focus-visible {
  color: inherit;
}
.cw-mapped-card:focus-visible {
  outline: 3px solid rgba(215,155,56,.32);
  outline-offset: 3px;
}
.cw-mapped-card h3 { color: var(--cw-navy-950); }
.cw-mapped-card .cw-card-link { color: var(--cw-navy-800); }
.cw-home-section-action { margin: 32px 0 0; text-align: center; }

/* Keep the homepage deliberately selective: six services in two neat rows. */
.cw-home-service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }

/* Show every adviser without allowing the team section to dominate the homepage. */
.cw-home-advisor-grid {
  grid-template-columns: repeat(auto-fit,minmax(175px,1fr));
  gap: 16px;
}
.cw-home-advisor-card {
  min-width: 0;
  border-radius: 9px;
}
.cw-home-advisor-card .cw-advisor-photo { aspect-ratio: 1 / 1; }
.cw-home-advisor-card .cw-advisor-body {
  min-height: 0;
  padding: 16px 16px 17px;
}
.cw-home-advisor-card .cw-advisor-role {
  margin-bottom: 7px;
  font-size: .66rem;
  line-height: 1.35;
}
.cw-home-advisor-card h3 {
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.2;
}
.cw-home-advisor-card .cw-card-link {
  margin-top: 0;
  font-size: .78rem;
}
.cw-home-advisor-card .cw-v3-advisor-placeholder .cw-icon {
  width: 60px;
  height: 60px;
}

@media (max-width: 980px) {
  .cw-home-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cw-home-advisor-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .cw-home-service-grid { grid-template-columns: 1fr; }
  .cw-home-advisor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 430px) {
  .cw-home-advisor-grid { grid-template-columns: 1fr; }
  .cw-home-advisor-card { display:grid; grid-template-columns: 110px 1fr; align-items:stretch; }
  .cw-home-advisor-card .cw-advisor-photo { aspect-ratio:auto; min-height:130px; }
}


/* Version 3.1.3 — separate uploaded footer Discovery logo support */
@media (max-width: 560px) {
  .cw-footer-brand-lockup .cw-brand img { height: 32px; }
}

/* Version 3.1.18 — square and portrait uploads map into the wide hero automatically. */

/* Version 3.1.19 — fade the image layer itself so no hero renders as a hard split panel. */

/* Version 3.1.20 — begin the desktop fade 10px after the copy column and scale compact uploads to fill it. */

/* Version 3.1.21 — one gentler fade at the real text edge, with no competing desktop image mask. */

/* Version 3.1.22 — individual Service heroes now use the same automatic shared treatment. */

/* Version 3.1.23 — centre and safely size the Contact email address within its card. */

/* Version 3.2.2 — dynamic preferred-adviser selection on the enquiry form. */

/* Version 3.1.4 — service content remapping migration */


/* =========================================================
   Version 3.1.15 — repeatable values and wider service blend
   ========================================================= */
.cw-v3-values {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* =========================================================
   Version 3.1.17 — final hero framing and single footer logo
   ========================================================= */
.cw-footer-brand-lockup--single {
  display: block;
}
.cw-footer-brand-lockup--single .cw-brand {
  display: block;
  height: auto;
}
.cw-footer-brand-lockup--single .cw-brand img {
  width: auto;
  height: auto;
  max-width: min(260px, 100%);
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 560px) {
  .cw-footer-brand-lockup--single .cw-brand img {
    max-height: 60px;
  }
}

.cw-brand-placeholder{font-size:20px;font-weight:700;line-height:1.2;display:inline-block}.cw-header-logo{min-width:0}.cw-footer-logo-image{max-width:100%;height:auto}
