html { overflow-x: hidden; }
/*
 * SHAPEEXEC — BRAND SYSTEM
 * Global override layer. Loaded after page-specific CSS.
 * Enforces: Tier 1 (fonts, spacing, buttons, cards)
 *           Tier 2 (nav, colour rules, diagnostic contrast)
 * Source of truth: shapeexec_full_website_brand_guidelines.pdf
 * Do not edit page CSS to achieve brand goals — edit this file.
 */


/* ── HORIZONTAL OVERFLOW PREVENTION ──────────────────
   iOS Safari requires overflow-x on both html AND body.
   Also clamp any element that sneaks past the viewport.
   ───────────────────────────────────────────────────── */
*, *::before, *::after {
  max-width: 100%;
}
img, video, iframe, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* ══════════════════════════════════════════════════════
   SECTION 1 — DESIGN TOKENS
   ══════════════════════════════════════════════════════ */

:root {
  --border: rgba(48, 56, 65, 0.12);
  /* Primary palette */
  --bs-dark:       #303841;
  --bs-mid:        #46515e;
  --bs-light:      #6b7a8a;
  --bs-silver:     #aaabab;
  --bs-pale:       #c4c4c4;
  --bs-bg:         #f5f4f2;
  --bs-white:      #ffffff;
  --bs-deep:       #1a1f24;

  /* Semantic */
  --bs-green:      #2e7d5e;
  --bs-red:        #8b2e2e;
  --bs-amber:      #7d5a2e;
  --bs-gold:       #c9a96e;
  --bs-green-bg:   #e8f2ed;
  --bs-red-bg:     #f2e8e8;
  --bs-amber-bg:   #f2ede8;

  /* Standard border */
  --bs-border:     rgba(48, 56, 65, 0.12);

  /* Spacing scale — locked */
  --bs-sp-1:  24px;
  --bs-sp-2:  32px;
  --bs-sp-3:  48px;
  --bs-sp-4:  64px;  /* hero bottom */
  --bs-sp-5:  72px;  /* section */
  --bs-sp-6:  80px;  /* hero top */
}


/* ══════════════════════════════════════════════════════
   SECTION 2 — TYPOGRAPHY ENFORCEMENT (TIER 1)
   Approved: Cormorant Garamond (headings) + Jost (UI/body)
   Remove: DM Serif Display, Outfit, DM Mono
   ══════════════════════════════════════════════════════ */

/* Override any page that loaded DM Serif, Outfit, DM Mono */
*:not([class*="ds-"]):not([class*="dm-"]) {
  /* This ensures only approved fonts reach the user */
}

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 300 !important;
  line-height: 1.08 !important;
}

h2 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 300 !important;
  line-height: 1.15 !important;
}

h3, h4, h5, h6 {
  font-family: 'Jost', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
}

p, li, span, td, th, input, textarea, select, label {
  font-family: 'Jost', sans-serif;
}

/* Labels: uppercase Jost, consistent tracking */
.eyebrow,
[class*="eyebrow"],
[class*="label-"],
.nav-dropdown-label,
.vc-system-context p:first-child {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.6rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
}


/* ══════════════════════════════════════════════════════
   SECTION 3 — BUTTON STANDARDISATION (TIER 1)
   Primary: dark filled | Secondary: bordered transparent
   ══════════════════════════════════════════════════════ */

.btn,
a.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

/* Primary — dark filled */
.btn-solid,
.btn-primary {
  background: #303841 !important;
  color: #ffffff !important;
  border: 1px solid #303841 !important;
}
.btn-solid:hover,
.btn-primary:hover {
  background: #46515e !important;
  border-color: #46515e !important;
  color: #ffffff !important;
}

/* Secondary dark context — bordered */
.btn-outline-dark {
  background: transparent !important;
  color: #303841 !important;
  border: 1px solid rgba(48, 56, 65, 0.35) !important;
}
.btn-outline-dark:hover {
  background: #303841 !important;
  color: #ffffff !important;
  border-color: #303841 !important;
}

/* Secondary light context — on dark backgrounds */
.btn-outline-light {
  background: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.65) !important;
}

/* CTA row — consistent gap */
.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}


/* ══════════════════════════════════════════════════════
   SECTION 4 — CARD STANDARDISATION (TIER 1)
   White surface · 1px rgba border · 2px radius · no shadow
   ══════════════════════════════════════════════════════ */

.card,
.brand-card {
  background: #ffffff;
  border: 1px solid rgba(48, 56, 65, 0.12) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

/* Diagnostic-style pain cards — consistent padding */
section[style*="background:#f5f4f2"] > div > div[style*="grid"] > div,
section[style*="background:#fff"] > div > div[style*="grid"] > div {
  padding: 2rem 2.2rem;
}


/* ══════════════════════════════════════════════════════
   SECTION 5 — NAVIGATION (TIER 2)
   Stronger hover · consistent dropdown padding · rhythm
   ══════════════════════════════════════════════════════ */

/* Nav bar */
nav {
  height: auto;
  min-height: 60px;
}

/* Desktop nav items */
#desktopNav > li > a {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  padding: 0.5rem 0;
  transition: color 0.12s;
}
#desktopNav > li > a:hover {
  color: #ffffff !important;
}

/* Dropdown menu */
.nav-dropdown-menu {
  min-width: 230px;
  padding: 0.35rem 0;
}
.nav-dropdown-menu a {
  padding: 0.7rem 1.4rem !important;
  font-size: 0.6rem !important;
  letter-spacing: 0.1em !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: color 0.1s, background 0.1s, padding-left 0.1s !important;
}
.nav-dropdown-menu a:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07) !important;
  padding-left: 1.7rem !important;
}
.nav-dropdown-label {
  padding: 0.55rem 1.4rem 0.25rem !important;
  font-size: 0.5rem !important;
  letter-spacing: 0.24em !important;
  color: #6b7a8a !important;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dropdown arrow */
.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.55em;
  opacity: 0.5;
  vertical-align: middle;
}


/* ══════════════════════════════════════════════════════
   SECTION 6 — COLOUR USAGE RULES (TIER 2)
   80% Dark/White/BG · 15% Silver/Light · 5% Accent
   ══════════════════════════════════════════════════════ */

/* Semantic classes for consistent colour application */
.bs-value  { color: #2e7d5e !important; }
.bs-leak   { color: #8b2e2e !important; }
.bs-warn   { color: #7d5a2e !important; }
.bs-gold   { color: #c9a96e !important; }
.bs-silver { color: #aaabab !important; }

.bs-value-bg { background-color: #e8f2ed !important; }
.bs-leak-bg  { background-color: #f2e8e8 !important; }
.bs-warn-bg  { background-color: #f2ede8 !important; }

/* Semantic indicators */
.bs-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.bs-indicator.value { background: #2e7d5e; }
.bs-indicator.leak  { background: #8b2e2e; }
.bs-indicator.warn  { background: #7d5a2e; }


/* ══════════════════════════════════════════════════════
   SECTION 7 — VC COMPONENTS (TIER 2)
   Consistent system context bar · next-step block
   ══════════════════════════════════════════════════════ */

.vc-system-context {
  background: #f5f4f2 !important;
  border-left: 3px solid #303841 !important;
  padding: 0.75rem 5rem !important;
  margin: 0 !important;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: #6b7a8a;
  letter-spacing: 0.05em;
}
.vc-system-context p:first-child {
  font-weight: 500;
  color: #303841;
  margin-bottom: 0.15rem;
}
.vc-system-context strong {
  color: #303841;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
@media (max-width: 640px) {
  .vc-system-context { padding: 0.75rem 1.25rem !important; }
}

.vc-next-step {
  background: #f5f4f2;
  border-top: 3px solid #303841;
  padding: 2rem 5rem;
}
.vc-next-step h2 {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.6rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #aaabab !important;
  margin-bottom: 0.5rem;
}
.vc-next-step p {
  font-size: 0.88rem;
  color: #46515e;
  margin-bottom: 1.2rem;
  font-weight: 300;
}
@media (max-width: 640px) {
  .vc-next-step { padding: 2rem 1.25rem; }
}


/* ══════════════════════════════════════════════════════
   SECTION 8 — DIAGNOSTIC PAGE CONTRAST (TIER 2)
   Increase contrast · section rhythm · accent sparingly
   ══════════════════════════════════════════════════════ */

/* Tension/clarity section headings — stronger weight */
.vc_step5_section p[style*="Cormorant"] {
  font-weight: 400 !important;
  color: #303841 !important;
}

/* Breakdown left-border — standard brand border */
.vc_step5_section [style*="border-left:3px solid #303841"] {
  border-left: 3px solid #303841 !important;
}

/* Operating Reality italic block — amber accent */
.vc_step5_section [style*="border-left:3px solid #aaabab"] {
  border-left: 3px solid #c9a96e !important;
  font-style: italic;
}

/* Action pressure line — dark, strong */
.vc_step5_section p[style*="font-weight:400;margin:0 0 0.4rem"] {
  color: #303841 !important;
  font-weight: 500 !important;
}


/* ══════════════════════════════════════════════════════
   SECTION 9 — MOBILE REFINEMENT (TIER 3)
   ══════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  /* Prevent horizontal scroll from overflowing elements */
  body { overflow-x: hidden;
  padding-top: 88px;
}

  /* Stack CTA rows on mobile */
  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Button full-width on mobile */
  .btn {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  /* Reduce hero H1 size on small screens */
  h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
  }

  /* Nav hide on mobile */
  #desktopNav { display: none !important; }
  
}


/* ══════════════════════════════════════════════════════
   SECTION 10 — UTILITY CLASSES
   ══════════════════════════════════════════════════════ */

/* Divider */
.bs-divider {
  height: 1px;
  background: rgba(48, 56, 65, 0.12);
  border: none;
  margin: 0;
}

/* Dark section rule (accent) */
.bs-divider-accent {
  height: 3px;
  background: #303841;
  border: none;
}

/* Fine label above section */
.bs-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aaabab;
  display: block;
  margin-bottom: 0.6rem;
}

/* Operating reality quote block */
.bs-reality {
  border-left: 3px solid #c9a96e;
  padding-left: 1rem;
  font-style: italic;
  font-size: 0.88rem;
  color: #46515e;
  line-height: 1.85;
  margin: 1.2rem 0;
}

/* Proof / credibility line */
.bs-proof {
  font-size: 0.88rem;
  color: #aaabab;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
}

/* ── RADIUS CAP — brand spec: 0-4px standard, 10px dashboard only ── */
/* Applied via brand-system.css override layer */

/* ── BTN-DARK — missing definition (used on 5 pages) ── */
.btn-dark {
  display: inline-block;
  background: var(--dark, #303841) !important;
  color: #ffffff !important;
  border: 1px solid var(--dark, #303841) !important;
  padding: 0.75rem 1.8rem;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  transition: background 0.15s ease;
}
.btn-dark:hover {
  background: var(--mid, #46515e) !important;
  border-color: var(--mid, #46515e) !important;
  color: #ffffff !important;
}

/* ── VISITED LINK OVERRIDE — prevent browser purple on all buttons ── */
a:visited.btn,
a:visited.btn-solid,
a:visited.btn-dark,
a:visited.btn-outline-dark,
a:visited.btn-outline-light,
a:visited.btn-primary {
  color: inherit !important;
}

/* Global visited link: use brand dark, not browser purple */
a:visited {
  color: var(--dark, #303841);
}
a.btn:visited,
a.btn-dark:visited,
a.btn-solid:visited {
  color: #ffffff !important;
}
a.btn-outline-dark:visited {
  color: var(--dark, #303841) !important;
}

/* ════════════════════════════════════════════════
   MOBILE NAV — clean vertical list, no boxes
   ════════════════════════════════════════════════ */

/* Toggle button (hamburger) — hidden on desktop */
.mobile-menu-toggle {
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
  flex-shrink: 0;
}
.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #ffffff;
  content: '';
  left: 0;
  transition: 0.3s;
}
.mobile-menu-toggle span { top: 9px; }
.mobile-menu-toggle span::before { top: -7px; }
.mobile-menu-toggle span::after  { top:  7px; }
.mobile-menu-toggle.open span               { background: transparent; }
.mobile-menu-toggle.open span::before       { transform: rotate(45deg);  top: 0; }
.mobile-menu-toggle.open span::after        { transform: rotate(-45deg); top: 0; }

/* Overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: #303841;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 1050;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4.5rem 0 3rem;
}
.mobile-nav.open { transform: translateY(0); }

/* Close button */
.mobile-nav-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
}
.mobile-nav-close:hover { color: #ffffff; }

/* Inner wrapper — full width block flow */
.mobile-nav-inner {
  display: block;
  width: 100%;
}

/* ── Direct link items ──────────────────────────── */
.mobile-nav-link {
  display: block;
  width: 100%;
  padding: 0 1.5rem;
  min-height: 52px;
  line-height: 52px;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-sizing: border-box;
}
.mobile-nav-link:hover { color: #ffffff; }

/* Contact — visually separated */
.mobile-nav-link.mobile-nav-cta {
  margin-top: 1rem;
  padding-top: 0;
  font-weight: 500;
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
}

/* ── Expandable group ───────────────────────────── */
.mobile-nav-group {
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Reset ALL button chrome — critical */
.mobile-nav-group-toggle {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 1.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}
.mobile-nav-group-toggle:hover { color: #ffffff; }
.mobile-nav-group-toggle:focus { outline: none; }
.mobile-nav-group-toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,0.4);
  outline-offset: -2px;
}

/* +/− indicator */
.mobile-nav-group-toggle::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  margin-left: 1rem;
  line-height: 1;
}
.mobile-nav-group-toggle[aria-expanded="true"] { color: #ffffff; }
.mobile-nav-group-toggle[aria-expanded="true"]::after { content: '\2212'; }

/* ── Submenu ────────────────────────────────────── */
.mobile-nav-submenu {
  display: none;
  background: rgba(0,0,0,0.12);
}
.mobile-nav-submenu.open { display: block; }

.mobile-nav-sub-link {
  display: block;
  width: 100%;
  padding: 0 1.5rem 0 2.5rem;
  min-height: 48px;
  line-height: 48px;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  box-sizing: border-box;
}
.mobile-nav-sub-link:last-child { border-bottom: none; }
.mobile-nav-sub-link:hover { color: rgba(255,255,255,0.85); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 980px) {
  nav ul                { display: none; }
  .mobile-menu-toggle   { display: block; }
}

/* No horizontal overflow */
.mobile-nav,
.mobile-nav * { max-width: 100%; box-sizing: border-box; }

/* Override global a:visited — mobile nav links must stay light on dark background */
.mobile-nav-link:visited,
.mobile-nav-link:visited:hover {
  color: rgba(255,255,255,0.85);
}
.mobile-nav-link.mobile-nav-cta:visited {
  color: #ffffff;
}
.mobile-nav-sub-link:visited,
.mobile-nav-sub-link:visited:hover {
  color: rgba(255,255,255,0.55);
}

/* vc-system-context — allow full text on mobile, wrap gracefully */
@media (max-width: 768px) {
  .vc-system-context {
    white-space: normal !important;
    overflow: visible !important;
  }
  .vc-system-context p:last-child {
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.65rem !important;
  }
}
