/* =============================================================================
   Everest Wealth v4 - Design tokens (v2 Institutional Plum)
   Locked 2026-11-01. See Phase 0 brand-tokens-locked.md.
   ============================================================================ */

/* Self-hosted variable fonts - no external requests.
   Montserrat: headings and all interface text. Source Serif 4: running text.
   'Everest Display' is Montserrat with size-adjust, used only for the display roles (H1/H2, stats,
   figures). Their sizes across the kit and the calculators were set for Cormorant Garamond, a much
   narrower face, so the display cut is scaled once here instead of in every rule. */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght-latin-ext.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Everest Display';
  src: url('../fonts/Montserrat-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  size-adjust: 70%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Everest Display';
  src: url('../fonts/Montserrat-VariableFont_wght-latin-ext.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
  size-adjust: 70%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Everest Display';
  src: url('../fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: italic; font-display: swap;
  size-adjust: 70%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4-VariableFont.woff2') format('woff2-variations');
  font-weight: 200 900; font-style: normal; font-display: swap;
  size-adjust: 110%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4-VariableFont-latin-ext.woff2') format('woff2-variations');
  font-weight: 200 900; font-style: normal; font-display: swap;
  size-adjust: 110%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4-Italic-VariableFont.woff2') format('woff2-variations');
  font-weight: 200 900; font-style: italic; font-display: swap;
  size-adjust: 110%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4-Italic-VariableFont-latin-ext.woff2') format('woff2-variations');
  font-weight: 200 900; font-style: italic; font-display: swap;
  size-adjust: 110%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* 1. Brand foundations */
  --ew-plum-950: #1A0B2B;
  --ew-plum-900: #32174D;
  --ew-plum-800: #3E1C61;
  --ew-plum-700: #461F6E;
  --ew-plum-600: #6B3FA0;
  --ew-interactive-hover: #240F38;

  /* 2. Surfaces + borders */
  --bg-canvas:  #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-muted:   #F1F3F5;
  --border-subtle: #E5E7EB;

  /* 3. Typography + dark-mode accents */
  --ew-text-main:     #181322;
  --ew-text-muted:    #524C61;
  --ew-platinum:      #E2D9F3;
  --ew-silver-violet: #C4B5FD;

  /* 4. Semantic status (no green/yellow/red) */
  --status-positive:        #32174D;
  --status-positive-bg:     #F3EFF8;
  --status-positive-border: #D8CEE6;
  --status-positive-dark:   #C4B5FD;
  --status-negative:        #4B5563;
  --status-negative-bg:     #F1F3F5;
  --status-negative-border: #D1D5DB;

  /* 5. Interactive states */
  --interactive-primary:      #32174D;
  --interactive-hover:        #240F38;
  --interactive-active:       #1A0B2B;
  --interactive-gradient:     linear-gradient(135deg, #32174D 0%, #240F38 100%);
  --interactive-gradient-alt: linear-gradient(135deg, #32174D 0%, #3E1C61 55%, #4D2378 100%);
  --interactive-tint:         #F3EFF8;
  --interactive-tint-hover:   #F8F5FC;
  --interactive-border:       #D8CEE6;
  --interactive-hover-border: #8E7CA6;
  --interactive-glow:         rgba(50, 23, 77, 0.28);
  --card-hover-glow:          rgba(50, 23, 77, 0.14);
  --slider-halo:              rgba(50, 23, 77, 0.20);

  /* 6. Allocation bar monochrome */
  --alloc-1: #32174D;
  --alloc-2: #461F6E;
  --alloc-3: #6B3FA0;
  --alloc-4: #475569;
  --alloc-5: #94A3B8;

  /* 7. Type */
  /* The three families are set in the html:root block below, which outranks the Elementor kit. */
  /* Display scale (H1/H2 + figures): mirrors the Elementor size variables of the same name. */
  --ew-fs-h1: clamp(3.2rem, 6.6vw, 5.6rem);
  --ew-fs-h2: clamp(2.3rem, 4.4vw, 3.5rem);
  --ew-fs-h3: clamp(1.6rem, 2.3vw, 1.9rem);
  --ew-fs-stat: clamp(3.2rem, 5.4vw, 4.4rem);
  --ew-fs-figure: clamp(2.8rem, 4vw, 3.3rem);
  --ew-fs-h4: 0.875rem;
  --ew-fs-lead: 1.18rem;
  --ew-fs-body: 1rem;
  --ew-fs-sm:   0.875rem;

  /* 8. Spacing */
  --ew-s-1: 4px;  --ew-s-2: 8px;  --ew-s-3: 12px; --ew-s-4: 16px;
  --ew-s-5: 20px; --ew-s-6: 24px; --ew-s-8: 32px; --ew-s-10: 48px;
  --ew-s-12: 64px; --ew-s-14: 80px; --ew-s-16: 96px;
  --ew-section-y: clamp(44px, 5.2vw, 76px); /* mirrors the Elementor kit variable of the same name */
  --ew-container: 1200px;
  --ew-container-narrow: 880px;
  --ew-container-wide:   1360px;
  --ew-gutter: max(20px, 4vw);

  /* 9. Radii */
  --ew-r-sm: 8px; --ew-r-md: 12px; --ew-r-lg: 18px; --ew-r-xl: 28px; --ew-r-pill: 999px;

  /* 10. Motion */
  --ew-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ew-ease-out:    cubic-bezier(0.2, 0.6, 0.2, 1);
  --ew-d-fast:   160ms;
  --ew-d-base:   280ms;
  --ew-d-slow:   560ms;
  --ew-d-reveal: 720ms;
}

/* Type families. The Elementor kit still declares these three variables on :root with its older
   values; html:root has the higher specificity, so this block is the one that applies. */
html:root {
  --ew-font-heading: 'Everest Display', 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --ew-font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --ew-font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;
}
/* Sub-headings set through the body variable (kit defaults and per-element styles) resolve to
   Montserrat instead of the serif. Re-pointing the variable needs no !important. */
h3, h4, h5, h6 { --ew-font-body: var(--ew-font-display); }
/* The header is interface chrome throughout (trust line, wordmark, links), so it stays in Montserrat. */
.elementor-location-header { --ew-font-body: var(--ew-font-display); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; margin: 0 !important; padding: 0 !important; }
body {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--bg-canvas);
  color: var(--ew-text-main);
  font-family: var(--ew-font-body);
  font-weight: 400;
  font-size: var(--ew-fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Elementor Theme Builder wrapper reset - kill parent gutter */
.site, .site-header, .elementor-location-header,
.site-header > .elementor,
.elementor-location-header > .elementor,
.elementor-location-header .elementor-section-wrap,
.elementor-location-header .elementor-container {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.elementor-location-header .elementor-widget-wrap { padding: 0 !important; }
.elementor-location-header .elementor-column-gap-default > .elementor-column > .elementor-element-populated { padding: 0 !important; }

/* Nuke all underlines inside the header */
.elementor-location-header a,
.elementor-location-header a:visited,
.elementor-location-header a:hover,
.elementor-location-header a:active,
.elementor-location-header a:focus { text-decoration: none !important; }
/* Paragraph-wrapped links (trust bar + nav items) must inherit the paragraph's color,
   not the default plum link or the browser-visited purple.
   Explicitly EXCLUDE button-styled anchors so the Speak to Everest CTA keeps its white text. */
.elementor-location-header p a,
.elementor-location-header p a:visited,
.elementor-location-header p a:hover,
.elementor-location-header p a:active,
.elementor-location-header p a:focus { color: inherit !important; }

/* Footer: same rule. Paragraph-wrapped links take the paragraph's colour (platinum, white on
   hover) instead of the kit's default plum link, which is invisible on the obsidian footer. */
.elementor-location-footer p a,
.elementor-location-footer p a:visited,
.elementor-location-footer p a:hover,
.elementor-location-footer p a:active,
.elementor-location-footer p a:focus { color: inherit !important; text-decoration: none !important; }

p, .entry-content li { max-width: 65ch; margin-bottom: 1.25em; }

/* Montserrat for every heading: the size-adjusted display cut for H1/H2, the plain cut below. */
h1, h2 { font-family: var(--ew-font-heading); }
h3, h4, h5, h6 { font-family: var(--ew-font-display); }
h1, h2, h3, h4, h5, h6 {
  color: var(--ew-plum-900);
  line-height: 1.2;
  margin-top: 1.5em; margin-bottom: 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--ew-fs-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--ew-fs-h2); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.125rem, 1.4vw, 1.3rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
h4, .eyebrow {
  font-size: var(--ew-fs-h4); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ew-text-muted);
}

a {
  color: var(--ew-plum-900);
  text-decoration: none;
  transition: color var(--ew-d-fast) ease, border-color var(--ew-d-fast) ease;
}
a:hover { color: var(--ew-interactive-hover); }

::selection { background: var(--ew-plum-900); color: #fff; }
/* Two-tone focus ring: plum outline outside a white halo, so it reads on light sections and on the
   obsidian/plum bands, footer and hero video alike (WCAG 2.4.7 / C40). */
/* !important: Elementor's paragraph-link base applies `all: unset` at higher specificity, which
   would otherwise strip the ring from every paragraph-wrapped link (nav, footer). */
*:focus-visible {
  outline: 2px solid var(--ew-plum-900) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #FFFFFF !important;
  border-radius: 4px;
}

img, svg, video { max-width: 100%; display: block; height: auto; }

/* Figures: lining + tabular so rates and rand values line up and do not jiggle when they change. */
.financial-table td, .roi-calculator-output, .tabular-nums, .ew-figure, .ew-stat-number, .ewc {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1; /* survives Elementor local font-variant overrides */
}

/* Headings are set in capitals site-wide. Capitals have no descenders and read as a solid band, so
   they take tighter leading and open tracking, more of both as the size drops. !important is needed
   because Elementor writes per-element line-height and letter-spacing on individual headings. */
html body :is(h1, h2, h3, h4, h5, h6) {
  text-transform: uppercase !important;
  overflow-wrap: break-word;
  text-wrap: balance;
}
/* H1/H2 use the display cut, drawn at 70% of the declared size, so 0.84 here is a true 1.2. */
html body :is(h1, h2) { line-height: 0.84 !important; letter-spacing: 0.02em !important; }
@media (max-width: 767px) {
  /* Tighter leading lifts the first line; keep it clear of the header lockup on phones. */
  html body h1 { padding-top: 0.2em; }
}
html body h3 { line-height: 1.25 !important; letter-spacing: 0.04em !important; }
html body :is(h4, h5, h6) { line-height: 1.35 !important; letter-spacing: 0.08em !important; }
