/* ==========================================================================
   EM3 Energy - brand.css
   Authoritative design tokens + typography + components.
   Source: docs/design-notes.md (extracted from 4 client-approved landing pages).
   Loaded after Hello Elementor parent styles. No em dashes in any content.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Self-hosted fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-Variable.woff2") format("woff2-variations"),
       url("../assets/fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Background tones (deep blues, dark-to-light) */
  --em3-bg-deep:    #050d33;
  --em3-bg:         #08124a;
  --em3-bg-elev:    #0d1b66;
  --em3-panel:      #1d3ad1;
  --em3-panel-soft: #2347d6;

  /* Accents */
  --em3-accent:     #2e5dff;   /* primary - CTAs, links, focus */
  --em3-accent-mid: #4a78ff;   /* button gradient mid-stop (from landing pages) */
  --em3-accent-hot: #6a8aff;   /* hover/active, accent words, numbers */
  --em3-accent-warm:#ffd66b;   /* warm yellow - very sparing, micro-moments only */

  /* Brand secondary */
  --em3-mint:       #95fe6d;   /* live/now status dots, success only */

  /* Surfaces (light) */
  --em3-white:      #ffffff;
  --em3-snow:       #f8f8f8;   /* light section bg + input fill on white panels */
  --em3-charcoal:   #313131;   /* body text on genuine light theme */
  --em3-ink-navy:   #0a1858;   /* on-white text + submit btn bg + strapline ink (from LPs) */

  /* Ink (text on dark) */
  --em3-ink:        #ffffff;
  --em3-ink-muted:  rgba(255,255,255,0.85);
  --em3-ink-dim:    rgba(255,255,255,0.65);

  /* Lines */
  --em3-line:        rgba(255,255,255,0.22);
  --em3-line-soft:   rgba(255,255,255,0.18);
  --em3-line-onwhite:#e7ebf3;

  /* States */
  --em3-danger:     #ff6b6b;
  --em3-ok:         #6ee7a7;

  /* Form inputs (dark-context forms: white field on navy) */
  --em3-input-bg:   #ffffff;
  --em3-input-ink:  #0a1858;

  /* Type */
  --em3-font-sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --em3-font-serif: "Instrument Serif", "Times New Roman", serif;

  /* Layout */
  --em3-maxw:        1180px;
  --em3-pad-x:       32px;
  --em3-radius:      1px;   /* near-square - the #1 brand signal */
  --em3-radius-card: 4px;   /* cards only */

  /* Spacing scale (multiples of 8) */
  --em3-space-1: 24px;
  --em3-space-2: 40px;
  --em3-space-3: 64px;
  --em3-space-4: 96px;
  --em3-space-5: 128px;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--em3-font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Base anchor reset. The WP stack's reset.css (loads before this) forces
   `a {color:#cc3366}` and `a:hover, a:active {color:#333366}` onto every link.
   brand.css loads after it at equal specificity, so inheriting the parent colour
   here neutralises that legacy pink/navy. Every component sets its own link colour
   at higher (class) specificity, so this only affects otherwise-unstyled anchors.
   Mirror reset.css's exact selectors (`a` + `a:hover, a:active`) so the neutralisation is
   precise; we deliberately do NOT touch `a:visited`/`a:focus` (reset never coloured them, and
   `a:visited {color:inherit}` (0,1,1) would override a component's base colour (0,1,0)).
   NOTE: interactive components must still declare their own :hover colour, since
   `a:hover {color:inherit}` (0,1,1) outranks a component's base `.class {color}` (0,1,0). */
a { color: inherit; }
a:hover, a:active { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--em3-font-sans);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 5.4vw, 76px); font-weight: 700; line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 4vw, 56px);   font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: clamp(24px, 2.5vw, 36px); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
h4 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; line-height: 1.3; }
h5 { font-size: 18px; font-weight: 600; line-height: 1.4; }
h6 { font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0.22em; text-transform: uppercase; }

small, .em3-small { font-size: 13px; line-height: 1.4; }

p { text-wrap: pretty; }

/* Accent word - serif italic, H1/H2 only */
.accent,
h1 em, h2 em {
  font-family: var(--em3-font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--em3-accent-hot);
  letter-spacing: -0.02em;
}
h2 .accent, h2 em { letter-spacing: -0.015em; }
/* On white surfaces the accent word turns primary blue */
.on-light .accent, .em3-form-panel .accent { color: var(--em3-accent); }

/* --------------------------------------------------------------------------
   4. Eyebrow / label
   -------------------------------------------------------------------------- */
.em3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--em3-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--em3-ink-dim);
}
.em3-eyebrow.series { letter-spacing: 0.28em; }
.em3-eyebrow.tagged { color: var(--em3-accent-hot); }
.on-light .em3-eyebrow { color: rgba(10,24,88,0.6); }

/* --------------------------------------------------------------------------
   5. Pulsing dots
   -------------------------------------------------------------------------- */
.em3-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.em3-dot--live {
  background: var(--em3-mint);
  box-shadow: 0 0 0 4px rgba(149,254,109,0.22);
  animation: em3-pulse-mint 2.4s ease-in-out infinite;
}
.em3-dot--blue {
  width: 6px; height: 6px;
  background: var(--em3-accent);
  box-shadow: 0 0 0 4px rgba(46,93,255,0.18);
  animation: em3-pulse-blue 2.4s ease-in-out infinite;
}
.em3-dot--static {
  width: 6px; height: 6px;
  background: var(--em3-accent-hot);
  box-shadow: 0 0 0 4px rgba(106,138,255,0.18);
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
/* Primary CTA = reference .nav-cta / .btn-lg.primary (blue gradient + glow).
   NOT the form-submit button - that stays solid navy (.gform_button = ref .submit-btn). */
.em3-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--em3-accent) 0%, var(--em3-accent-mid) 100%);
  color: #ffffff;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--em3-radius);
  font-family: var(--em3-font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(46,93,255,0.55), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform .2s ease, box-shadow .2s ease, background .25s ease;
}
.em3-btn-primary::after { content: "\2192"; font-size: 14px; line-height: 1; display: inline-block; transition: transform .2s; }
.em3-btn-primary:hover {
  background: linear-gradient(135deg, var(--em3-accent-mid) 0%, var(--em3-accent-hot) 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(46,93,255,0.65), inset 0 1px 0 rgba(255,255,255,0.3);
}
.em3-btn-primary:hover::after { transform: translateX(3px); }
.em3-btn-primary:focus-visible { outline: 2px solid var(--em3-accent-hot); outline-offset: 2px; }
.em3-btn-primary:active { transform: translateY(0); box-shadow: inset 0 1px 0 rgba(255,255,255,0.15); }

/* Nav size = reference .nav-cta (the header menu button).
   Shadow repeated here (0,2,0) so it beats Elementor's `.elementor a {box-shadow:none}`. */
.em3-btn-primary.is-nav {
  padding: 10px 20px;
  gap: 6px;
  font-weight: 600;
  box-shadow: 0 8px 20px -6px rgba(46,93,255,0.55), inset 0 1px 0 rgba(255,255,255,0.22);
}
/* (0,3,0) so the hover glow wins over the rest shadow above (which ties the base :hover). */
.em3-btn-primary.is-nav:hover { box-shadow: 0 14px 28px -8px rgba(46,93,255,0.65), inset 0 1px 0 rgba(255,255,255,0.3); }

/* Large size = reference .btn-lg.primary (hero CTAs) */
.em3-btn-primary.is-lg {
  padding: 16px 28px;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.005em;
  box-shadow: 0 14px 32px -10px rgba(46,93,255,0.55), inset 0 1px 0 rgba(255,255,255,0.22);
}
.em3-btn-primary.is-lg::after { font-size: 16px; }
.em3-btn-primary.is-lg:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -10px rgba(46,93,255,0.7), inset 0 1px 0 rgba(255,255,255,0.3); }
.em3-btn-primary.is-lg:hover::after { transform: translateX(4px); }

/* Ghost CTA = reference .btn-lg.ghost (translucent on dark; no forced arrow). */
.em3-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--em3-ink);
  border: 1px solid var(--em3-line);
  border-radius: var(--em3-radius);
  padding: 16px 28px;
  font-family: var(--em3-font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, border-color .2s, transform .2s, box-shadow .25s, gap .2s;
}
.em3-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(106,138,255,0.45); }
/* .solid promotes a ghost to the gradient primary look */
.em3-btn-ghost.solid { background: linear-gradient(135deg, var(--em3-accent) 0%, var(--em3-accent-mid) 100%); border-color: transparent; color: #fff; }
.em3-btn-ghost.solid:hover { background: linear-gradient(135deg, var(--em3-accent-mid) 0%, var(--em3-accent-hot) 100%); }

/* The site's reset.css sets `a:hover, a:active { color:#333366 }` (0,1,1), which beats the
   (0,1,0) base button colour and darkens hovered button text. Re-assert white on every
   interactive state at (0,2,0) so the text stays white - matches LP `.nav-cta`/`.btn-lg.primary`. */
.em3-btn-primary:visited, .em3-btn-primary:hover, .em3-btn-primary:focus, .em3-btn-primary:active { color: #ffffff; }
.em3-btn-ghost:visited, .em3-btn-ghost:hover, .em3-btn-ghost:focus, .em3-btn-ghost:active { color: var(--em3-ink); }

/* Inline text link with arrow */
.em3-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--em3-accent-hot);
  font-weight: 600;
  text-decoration: none;
  transition: gap .2s, color .2s;
}
.em3-link::after { content: "\2192"; transition: transform .2s; }
.em3-link:hover { gap: 12px; color: var(--em3-white); }
.on-light .em3-link { color: var(--em3-accent); }
.on-light .em3-link:hover { color: var(--em3-ink-navy); }

/* --------------------------------------------------------------------------
   7. Fixed glass nav (Elementor header template uses these classes)
   -------------------------------------------------------------------------- */
.em3-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px var(--em3-pad-x);
  background: rgba(6,17,66,0.28);
  -webkit-backdrop-filter: saturate(140%) blur(22px);
  backdrop-filter: saturate(140%) blur(22px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .4s, border-color .4s, padding .3s, box-shadow .4s;
}
.em3-nav.scrolled {
  background: rgba(5,13,51,0.96);
  border-bottom-color: rgba(255,255,255,0.10);
  padding: 10px var(--em3-pad-x);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.55);
}
.em3-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--em3-maxw);
}
.em3-nav .brand img, .em3-nav-logo img { height: 30px; width: auto; display: block; }
.em3-nav-links { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 500; }
.em3-nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--em3-radius);
  text-decoration: none;
  transition: background .18s, color .18s;
}
.em3-nav-links a:hover { color: #fff; background: rgba(255,255,255,0.10); }

/* --------------------------------------------------------------------------
   8. Numbered list ("what you'll learn" style)
   -------------------------------------------------------------------------- */
.em3-learn-list { display: grid; gap: 4px; }
.em3-learn-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--em3-line-soft);
  transition: background .2s;
}
.em3-learn-item:last-child { border-bottom: none; }
.em3-learn-num {
  font-family: var(--em3-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--em3-accent-hot);
  letter-spacing: .05em;
  padding-top: 2px;
  transition: color .18s;
}
.em3-learn-item:hover .em3-learn-num { color: #fff; }
.em3-learn-title { color: var(--em3-white); font-weight: 600; font-size: 16px; line-height: 1.3; margin: 0 0 6px; }
.em3-learn-body  { color: var(--em3-ink-muted); font-size: 14.5px; line-height: 1.55; margin: 0; }
@media (max-width: 640px) { .em3-learn-item { grid-template-columns: 44px 1fr; } }

/* Big serif-italic numbered points (hub sections - brief "Numbered Points Block") */
.em3-point-num {
  font-family: var(--em3-font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  color: var(--em3-accent-hot);
}

/* Dash bullet list (editorial motif) */
.em3-bullet { list-style: none; padding: 0; margin: 0; }
.em3-bullet li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--em3-line-soft); }
.em3-bullet li::before { content: ""; position: absolute; left: 0; top: 17px; width: 14px; height: 1px; background: var(--em3-accent-hot); }

/* --------------------------------------------------------------------------
   9. Meta cell / strip + stat strip
   -------------------------------------------------------------------------- */
.em3-meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 64px;
  padding-top: 36px;
  border-top: 1px solid var(--em3-line-soft);
  text-align: center;
}
.em3-meta-cell { display: flex; flex-direction: column; align-items: center; }
.em3-meta-key {
  font-family: var(--em3-font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--em3-ink-dim);
  margin-bottom: 6px;
}
.em3-meta-val { font-size: 16px; font-weight: 600; color: var(--em3-white); line-height: 1.25; }
.em3-meta-val small { display: block; font-weight: 400; font-size: 12.5px; color: var(--em3-ink-dim); margin-top: 3px; }
@media (max-width: 640px) { .em3-meta-strip { display: grid; grid-template-columns: 1fr 1fr; text-align: left; } }
@media (max-width: 420px) { .em3-meta-strip { grid-template-columns: 1fr; } }

.em3-stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.em3-stat-num {
  font-family: var(--em3-font-sans);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 1;
  color: var(--em3-white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.em3-stat-num .unit, .em3-stat-num .prefix {
  font-family: var(--em3-font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.5em;
  color: var(--em3-accent-hot);
}
.em3-stat-label {
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--em3-ink-dim);
}

/* --------------------------------------------------------------------------
   10. Hero helpers
   -------------------------------------------------------------------------- */
.em3-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--em3-bg-deep); }
.em3-hero-banner { background-color: #061142; background-size: cover; background-position: center; }
.em3-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(5,13,51,0) 0%, rgba(5,13,51,0) 55%,
    rgba(5,13,51,0.4) 75%, rgba(5,13,51,0.9) 92%, var(--em3-bg-deep) 100%);
  pointer-events: none;
}
.em3-hero-body { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   11. Cards + white form panel
   -------------------------------------------------------------------------- */
.em3-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--em3-line-soft);
  border-radius: var(--em3-radius-card);
  transition: transform .25s, border-color .2s, box-shadow .25s;
}
.em3-card:hover {
  transform: translateY(-4px);
  border-color: rgba(106,138,255,0.40);
  box-shadow: 0 30px 60px -20px rgba(46,93,255,0.18);
}
.em3-card .media { overflow: hidden; border-radius: var(--em3-radius-card); }
.em3-card .media img { display: block; width: 100%; object-fit: cover; transition: transform .6s; }
.em3-card:hover .media img { transform: scale(1.04); }
.em3-card .role { color: var(--em3-accent-hot); font-size: 13px; font-weight: 500; }

.em3-form-panel {
  position: relative;
  background: var(--em3-white);
  border-radius: var(--em3-radius-card);
  padding: 32px 30px 26px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,0,0,0.02);
}
.em3-form-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,93,255,0.6), transparent);
}

/* --------------------------------------------------------------------------
   12. Footer (net-new, token built)
   -------------------------------------------------------------------------- */
.em3-footer { background: var(--em3-bg-deep); border-top: 1px solid var(--em3-line-soft); color: var(--em3-ink-dim); }
.em3-footer a { color: var(--em3-ink-dim); text-decoration: none; transition: color .18s; }
.em3-footer a:hover { color: var(--em3-white); }
.em3-social { display: flex; gap: 10px; }
.em3-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--em3-line-soft);
  border-radius: var(--em3-radius);
  color: var(--em3-ink-muted);
  transition: background .18s, color .18s, transform .18s;
}
.em3-social a:hover { background: var(--em3-accent); color: #fff; transform: translateY(-1px); }

/* --------------------------------------------------------------------------
   13. Layout primitives + utilities
   -------------------------------------------------------------------------- */
.em3-wrap { max-width: var(--em3-maxw); margin: 0 auto; padding: 0 var(--em3-pad-x); }
.em3-section { padding: var(--em3-space-4) 0; }
.em3-bg-deep { background: var(--em3-bg-deep); color: var(--em3-ink); }
.em3-bg { background: var(--em3-bg); color: var(--em3-ink); }
.em3-bg-snow { background: var(--em3-snow); color: var(--em3-ink-navy); }
@media (max-width: 980px) { :root { --em3-pad-x: 24px; } .em3-section { padding: var(--em3-space-3) 0; } }
@media (max-width: 640px) { :root { --em3-pad-x: 18px; } .em3-section { padding: var(--em3-space-2) 0; } }
@media (max-width: 420px) { :root { --em3-pad-x: 16px; } }

/* --------------------------------------------------------------------------
   14. Animations
   -------------------------------------------------------------------------- */
@keyframes em3-pulse-mint {
  0%, 100% { box-shadow: 0 0 0 4px rgba(149,254,109,0.22); }
  50%      { box-shadow: 0 0 0 7px rgba(149,254,109,0.06); }
}
@keyframes em3-pulse-blue {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46,93,255,0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(46,93,255,0.05); }
}

/* --------------------------------------------------------------------------
   15. Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible { outline: 2px solid var(--em3-accent-hot); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   17. Section component layouts (reusable Elementor templates)
   -------------------------------------------------------------------------- */
.em3-hero-body { padding: 60px 0 44px; }
.em3-hero-eyebrow { margin-bottom: 18px; }
.em3-hero h1 { max-width: 16ch; }
.em3-hero-sub { color: var(--em3-ink-muted); font-size: 18px; line-height: 1.55; max-width: 720px; margin-top: 18px; }
.on-light .em3-hero-sub { color: rgba(10,24,88,0.7); }

.em3-points-head { max-width: 720px; margin-bottom: 40px; }
.em3-points-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.em3-point { display: flex; flex-direction: column; gap: 10px; }
.em3-point-title { font-size: 18px; font-weight: 600; color: var(--em3-white); margin: 0; }
.on-light .em3-point-title { color: var(--em3-ink-navy); }
.em3-point-body { font-size: 16px; line-height: 1.5; color: var(--em3-ink-muted); margin: 0; }
.on-light .em3-point-body { color: var(--em3-charcoal); }
@media (max-width: 900px) { .em3-points-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .em3-points-grid { grid-template-columns: 1fr; } }

.em3-cta-section { position: relative; background: var(--em3-bg-deep); }
.em3-cta-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(46,93,255,0.16), transparent 55%); pointer-events: none; }
.em3-cta-block { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.em3-cta-block .em3-hero-sub { margin-left: auto; margin-right: auto; }
.em3-cta-actions { margin-top: 28px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.em3-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.em3-two-col.reverse .em3-two-col-text { order: 2; }
.em3-two-col-media img { width: 100%; display: block; border: 1px solid var(--em3-line-soft); border-radius: var(--em3-radius-card); }
@media (max-width: 860px) { .em3-two-col, .em3-two-col.reverse { grid-template-columns: 1fr; } .em3-two-col.reverse .em3-two-col-text { order: 0; } }

.em3-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 860px) { .em3-stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .em3-stat-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   18. Gravity Forms (GF default CSS disabled; brand styling here)
   Default context = white inputs on dark. Add .on-light to a wrapper for light panels.
   -------------------------------------------------------------------------- */
.gform_wrapper { font-family: var(--em3-font-sans); }
.gform_wrapper .gform_fields { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.gform_wrapper .gfield { min-width: 0; }
.gform_wrapper .gfield--type-textarea,
.gform_wrapper .gfield--type-name,
.gform_wrapper .gfield--type-consent,
.gform_wrapper .gfield--type-checkbox,
.gform_wrapper .gfield--width-full { grid-column: 1 / -1; }
.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--em3-ink-muted); margin-bottom: 6px; }
.on-light .gform_wrapper .gfield_label { color: rgba(10,24,88,0.7); }
.gform_wrapper input[type=text],
.gform_wrapper input[type=email],
.gform_wrapper input[type=tel],
.gform_wrapper input[type=url],
.gform_wrapper input[type=number],
.gform_wrapper textarea,
.gform_wrapper select {
  width: 100%; box-sizing: border-box;
  background: var(--em3-input-bg); color: var(--em3-input-ink);
  border: 1.5px solid transparent; border-radius: var(--em3-radius);
  padding: 12px 14px; font-family: var(--em3-font-sans); font-size: 14.5px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.gform_wrapper textarea { min-height: 120px; resize: vertical; }
.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus { border-color: var(--em3-accent); box-shadow: 0 0 0 4px rgba(46,93,255,0.14); outline: none; }
.gform_wrapper .ginput_complex label { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--em3-ink-dim); }
.gform_wrapper .gfield_required { color: var(--em3-accent-hot); }
.gform_wrapper .gchoice label,
.gform_wrapper .gfield_consent_label { color: var(--em3-ink-muted); font-size: 13.5px; }
.gform_wrapper .gform_footer { grid-column: 1 / -1; margin-top: 8px; }
.gform_wrapper .gform_footer .gform_button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--em3-ink-navy); color: #fff; border: none; border-radius: var(--em3-radius);
  padding: 15px 28px; font-family: var(--em3-font-sans); font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: background .18s, transform .12s;
}
.gform_wrapper .gform_footer .gform_button:hover { background: var(--em3-accent); transform: translateY(-1px); }
.gform_wrapper .validation_message { color: var(--em3-danger); font-size: 12.5px; }
/* Hide GF honeypot/validation field (GF's own hiding CSS is disabled site-wide). */
.gform_wrapper .gform_validation_container,
.gform_wrapper .gfield--type-honeypot,
.gform_wrapper .gform_honeypot,
.gform_wrapper li[id*="validation_container"] { display: none !important; position: absolute !important; left: -9000px !important; }
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select { border-color: var(--em3-danger); }
@media (max-width: 600px) { .gform_wrapper .gform_fields { grid-template-columns: 1fr; } }
