/* Empower Charities — design foundation (DerekSol, 29 Nov 2026). Loaded after the Webflow template styles.
   Decisions (user): near-black #171719 stays the primary dark colour (logo navy only in the logo); brand gradient as a
   signature accent only; Inter only. (The variable name --ec-navy is kept for the dark colour; its value is near-black.)
   Colour roles from the UI/UX audit design system (contrast ratios computed for WCAG 2.2 AA). */

:root {
  /* brand (kept) */
  --ec-navy: #171719;          /* near-black — the primary dark colour (user decision); white on it 18:1 */
  --ec-slate: #8090a8;         /* logo chevrons — borders/dividers (3.24:1 on white) */
  /* Action colour = near-black (user decision 29 Nov: keep the live white / near-black buttons). The token keeps its old name. */
  --ec-blue: #171719;          /* white on it 17.9:1 */
  --ec-blue-hover: #34343a;
  --ec-blue-on-dark: #ffffff;  /* labels and links on dark areas */
  --ec-yellow: #f3e45e; --ec-green: #17b17c;
  --ec-gradient: linear-gradient(90deg, #f3e45e, #17b17c 54%, #0f5cfa);
  /* text */
  --ec-text: #45454f;          /* running text, 9.47:1 on white */
  --ec-muted: #5a5a68;         /* captions, 6.78:1 */
  --ec-on-dark: #ffffff; --ec-on-dark-muted: #c9d1de;
  /* surfaces */
  --ec-surface: #ffffff; --ec-surface-alt: #f9f9fa; --ec-tint: #f2f2f4; --ec-line: #e4e7ec;
  /* shape */
  --ec-radius-sm: 6px; --ec-radius-md: 14px; --ec-radius-pill: 999px;
  --ec-shadow-1: 0 1px 2px rgb(23 23 25 / .06), 0 2px 6px rgb(23 23 25 / .08);
  --ec-shadow-2: 0 4px 12px rgb(23 23 25 / .10), 0 12px 28px rgb(23 23 25 / .10);
  /* type scale (rem, so it follows the reader's browser setting; max ≤ 2.5× min for 200% zoom) */
  --ec-fs-display: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --ec-fs-h1: clamp(2rem, 1.55rem + 1.6vw, 2.75rem);
  --ec-fs-h2: clamp(1.625rem, 1.35rem + 1vw, 2.25rem);
  --ec-fs-h3: clamp(1.25rem, 1.12rem + .5vw, 1.5rem);
  --ec-fs-h4: 1.25rem; --ec-fs-body: 1.0625rem; --ec-fs-lead: 1.1875rem; --ec-fs-small: .875rem;

  /* re-map the template's own variables onto the brand */
  --primary-dark: #171719;     /* kept: the template's near-black stays the primary dark colour */
  --paragraph-gray: #45454f;   /* template body grey (2.63:1) becomes readable text grey */
  --gray: #e4e7ec; --dark-gray: #5a5a68; --light-gray: #f9f9fa; --primary-light: #f9f9fa;
}

/* ---------- Base text ---------- */
html { -webkit-text-size-adjust: 100%; }
body { letter-spacing: normal; line-height: 1.5; color: var(--ec-text); }
p { font-size: var(--ec-fs-body); line-height: 1.65; color: var(--ec-text); letter-spacing: normal; }
a { letter-spacing: normal; }
h1, h2, h3, h4, h5, h6 { color: var(--ec-navy); letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: var(--ec-fs-h1); }
h2 { font-size: var(--ec-fs-h2); }
h3 { font-size: var(--ec-fs-h3); }
h4 { font-size: var(--ec-fs-h4); }
h5 { font-size: 1.125rem; letter-spacing: normal; }
h6 { font-size: 1rem; letter-spacing: normal; }
.home-banner h1, .home-2-banner h1, .banner-2-title, .home-banner-title { font-size: var(--ec-fs-display); }

/* Lists: the template painted list text with a transparent "gradient-text" fill, hiding bullets and fading links */
ul, ol, .rich-text-style ol, .rich-text-style ul {
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important; color: inherit;
}
.rich-text-style ul, .rich-text-style ol { color: var(--ec-text); padding-left: 1.4em; row-gap: 8px; }
.rich-text-style ul { list-style: disc; }
.rich-text-style li { font-size: var(--ec-fs-body); line-height: 1.6; padding-left: .2em; }
.rich-text-style li::marker { color: var(--ec-blue); }

/* Readable rich text (service pages, policies): comfortable line length */
.rich-text-style p, .rich-text-style ul, .rich-text-style ol, .rich-text-style h2, .rich-text-style h3, .rich-text-style h4 { max-width: 68ch; }
.rich-text-style h2 { font-size: var(--ec-fs-h2); margin: 1.4em 0 .5em; }
.rich-text-style h3 { font-size: var(--ec-fs-h3); margin: 1.2em 0 .4em; }
.rich-text-style p { margin-bottom: .9em; }
.rich-text-style strong { color: var(--ec-navy); }
.rich-text-style blockquote { border-left: 4px solid var(--ec-blue); background: var(--ec-tint); color: var(--ec-navy); padding: 14px 18px; border-radius: 0 var(--ec-radius-md) var(--ec-radius-md) 0; font-size: var(--ec-fs-lead); }

/* Template classes that used the faint grey or a too-tight look */
.mission-text, .mission-2-text, .mission-4-text { color: var(--ec-navy); letter-spacing: -0.01em; font-size: var(--ec-fs-h2); }
.number-text, .number-text-copy { letter-spacing: -0.02em; }
.testimonial-text { letter-spacing: normal; font-size: var(--ec-fs-lead); line-height: 1.5; }
.home-banner-description, .home-banner-description-copy, .blog-banner-description { letter-spacing: normal; font-weight: 400; line-height: 1.6; }
.features-title.not-active-first, .features-title.not-active-second, .values-tab-link { color: var(--ec-muted); }
.accordion-list-content { color: var(--ec-text); font-size: var(--ec-fs-body); line-height: 1.65; letter-spacing: normal; }

/* Text on dark (navy) areas stays light and readable */
.dark-background, .section.dark-background, .home-banner, .home-2-banner, .solution-2-banner, .pages-banner, .footer, .navbar,
.solution-big-dark-item, .solution-collection-item-dark, .solutions-wrapper-dark, .values-tabs-content.dark-color, .text-white {
  --ec-text: var(--ec-on-dark-muted);
}
.dark-background p, .home-banner p, .solution-2-banner p, .pages-banner p, .solution-big-dark-item p,
.solution-collection-item-dark p, .solutions-wrapper-dark p, .footer p { color: var(--ec-on-dark-muted); }
.dark-background h1, .dark-background h2, .dark-background h3, .dark-background h4, .dark-background h5,
.home-banner h1, .solution-2-banner h1, .pages-banner h1, .text-white { color: #fff; }

/* ---------- Gradients: the brand signature, used generously but always readable (user decision 29 Nov) ----------
   Full yellow→green→blue on dark backgrounds; on white, big gradient text uses the deeper green→blue so it stays legible
   (the yellow end is 1.3:1 on white); small text stays solid with gradient accents beside it. */
:root { --ec-gradient-deep: linear-gradient(90deg, #12936a, #0f5cfa); }
.gradient-text, .procent-text {
  background-image: var(--ec-gradient-deep) !important; -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: var(--ec-blue);
}
.home-banner .gradient-text, .home-2-banner .gradient-text, .dark-background .gradient-text,
.solution-big-dark-item .gradient-text, .pricing-plan-item.center .gradient-text {
  background-image: var(--ec-gradient) !important;
}
.job-position-icon { -webkit-text-fill-color: currentColor !important; background: none !important; }
/* small labels: solid blue Inter capitals with a short gradient bar in front */
.section-subtitle {
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  font-family: Inter, sans-serif !important; color: var(--ec-blue) !important; font-size: var(--ec-fs-small);
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px;
}
.section-subtitle::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--ec-gradient); flex: none; }
.dark-background .section-subtitle, .home-banner .section-subtitle, .home-2-banner .section-subtitle { color: var(--ec-blue-on-dark) !important; }
/* signature lines */
.banner-title-center:has(h1)::after { content: ""; display: block; width: 72px; height: 4px; border-radius: 4px; background: var(--ec-gradient); margin: 18px auto 0; }
.pricing-plan-item.center { position: relative; overflow: hidden; }
.pricing-plan-item.center::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--ec-gradient); }
.ec-box { border-left: 0 !important; position: relative; overflow: hidden; padding-left: 28px; }
.ec-box::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: linear-gradient(180deg, #f3e45e, #17b17c 50%, #0f5cfa); }
.ec-phonebar::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--ec-gradient); }

/* ---------- Surfaces: the previous studio's gradient banners, footer fade and soft glows are kept ---------- */
.collaboration-icon { box-shadow: var(--ec-shadow-1) !important; }
.accordion-item, .portfolio-grid-collection-item, .career-list-item-wrapper { box-shadow: var(--ec-shadow-1) !important; }
.solution-2-banner { padding-bottom: 32px; }
.banner-title-center h1, .banner-title-center .text-white {
  color: #fff !important; -webkit-text-fill-color: #fff !important; letter-spacing: -0.01em !important;
  font-size: var(--ec-fs-h1) !important; line-height: 1.15 !important;
}

/* ---------- Buttons: the live site's near-black (light areas) and white (dark areas), larger tap size ---------- */
.primary-button, .primary-button-color, .primary-button-white, .nav-button-dark, .submit-button, .w-button.primary-button {
  background-color: var(--ec-blue) !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
  border: 0 !important; border-radius: var(--ec-radius-pill) !important; min-height: 48px; padding: 12px 26px !important;
  font-size: 1rem !important; font-weight: 600 !important; letter-spacing: normal !important; line-height: 1.4 !important;
  display: flex !important; align-items: center; justify-content: center; text-align: center;
  transition: background-color .15s ease-out !important; box-shadow: none !important;
}
.primary-button:hover, .primary-button-color:hover, .primary-button-white:hover, .nav-button-dark:hover, .submit-button:hover {
  background-color: var(--ec-blue-hover) !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
}
/* only inside dark areas are the buttons white with near-black words, as on the live site */
:is(.primary-button-white.white-hover, .footer :is(.primary-button, .primary-button-color, .primary-button-white), .home-banner :is(.primary-button, .primary-button-color, .primary-button-white), .home-2-banner :is(.primary-button, .primary-button-color, .primary-button-white),
  .dark-background :is(.primary-button, .primary-button-color, .primary-button-white), .pricing-plan-item.center :is(.primary-button, .primary-button-color, .primary-button-white)) {
  background-color: #fff !important; color: var(--ec-navy) !important; -webkit-text-fill-color: var(--ec-navy) !important;
}
:is(.primary-button-white.white-hover, .footer :is(.primary-button, .primary-button-color, .primary-button-white), .home-banner :is(.primary-button, .primary-button-color, .primary-button-white), .home-2-banner :is(.primary-button, .primary-button-color, .primary-button-white),
  .dark-background :is(.primary-button, .primary-button-color, .primary-button-white), .pricing-plan-item.center :is(.primary-button, .primary-button-color, .primary-button-white)):hover {
  background-color: #ececf0 !important; color: var(--ec-navy) !important; -webkit-text-fill-color: var(--ec-navy) !important;
}
/* header button: white with near-black words */
.nav-button {
  background-color: #fff !important; color: var(--ec-navy) !important; -webkit-text-fill-color: var(--ec-navy) !important;
  border: 0 !important; border-radius: var(--ec-radius-pill) !important; min-height: 44px; padding: 10px 20px !important;
  font-size: 1rem !important; font-weight: 600 !important; letter-spacing: normal !important; transition: background-color .15s ease-out !important;
}
.nav-button:hover { background-color: var(--ec-tint) !important; }
:where(.primary-button, .primary-button-color, .primary-button-white, .nav-button, .nav-button-dark, .submit-button, .ec-btn, .ec-submit, a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--ec-navy) !important; outline-offset: 3px !important;
}
:where(.dark-background, .home-banner, .navbar, .footer, .solution-2-banner) :where(a, button):focus-visible { outline-color: var(--ec-yellow) !important; }
.primary-button-white.white-hover { margin-bottom: 0; }

/* ---------- Motion: never hide content; small and optional ---------- */
[style*="opacity:0"], [style*="opacity: 0"] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .primary-button, .primary-button-color, .primary-button-white, .nav-button, .nav-button-dark, .ec-btn { border: 1px solid ButtonText !important; }
}

/* ---------- Fix-ups after first preview ---------- */
/* White content cards sit inside the navy banner section: their text must use the dark reading colours */
.numbers-container, .numbers-container .rich-text-style { --ec-text: #45454f; }
.numbers-container p, .numbers-container li, .numbers-container .rich-text-style p, .numbers-container .rich-text-style li,
.numbers-container .rich-text-style ul, .numbers-container .rich-text-style ol, .numbers-container .accordion-list-content { color: #45454f; }
.numbers-container h1, .numbers-container h2, .numbers-container h3, .numbers-container h4, .numbers-container h5, .numbers-container strong { color: var(--ec-navy); }
.numbers-container .ec-box.urgent, .numbers-container .ec-box { --ec-text: #45454f; }
/* Page-top banners (user decision 29 Nov, option A): near-black with a soft green-to-blue glow along the bottom edge.
   Replaces the template's blue fade. No yellow in the glow: faint yellow over near-black reads as olive. Titles white, 17.9:1. */
.banner-overlay-home-3, .inner-overlay {
  background-image: radial-gradient(45% 90% at 35% 100%, rgba(23,177,124,.38), transparent 70%),
    radial-gradient(50% 90% at 70% 100%, rgba(15,92,250,.45), transparent 70%), linear-gradient(var(--ec-navy), var(--ec-navy)) !important;
  height: 100% !important; opacity: 1 !important;
}
.inner-banner { background-color: var(--ec-navy) !important; }
.solution-2-banner { background-color: transparent !important; }
/* About and Contact tops (user, 29 Nov: "match them"): same near-black + green-to-blue glow instead of the office / blue-map photos.
   The photo files stay in /images in case they are wanted later. */
.section.about-2-banner, .section.contact-us {
  background-image: radial-gradient(45% 90% at 35% 100%, rgba(23,177,124,.38), transparent 70%),
    radial-gradient(50% 90% at 70% 100%, rgba(15,92,250,.45), transparent 70%) !important;
  background-color: var(--ec-navy) !important; background-size: auto !important; background-repeat: no-repeat !important;
  min-height: 360px;
}
.section.about-2-banner .banner-title, .section.contact-us .banner-title { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.section.contact-us .banner-description { color: var(--ec-on-dark-muted) !important; -webkit-text-fill-color: var(--ec-on-dark-muted) !important; }
.section.about-2-banner .center-title-wrapper::after, .section.contact-us .center-title-wrapper::after {
  content: ""; display: block; width: 72px; height: 4px; border-radius: 4px; background: var(--ec-gradient); margin: 18px auto 0;
}
/* on service/FAQ pages the dark layer runs behind the white card, so the glow sits just under the title instead of at the bottom */
.banner-overlay-home-3 {
  background-image: radial-gradient(420px 220px at 38% 300px, rgba(23,177,124,.34), transparent 70%),
    radial-gradient(480px 240px at 64% 300px, rgba(15,92,250,.42), transparent 70%),
    linear-gradient(180deg, var(--ec-navy) 0, var(--ec-navy) 520px, transparent 520px) !important;
  /* this layer is full height (it runs behind 'Let's Collaborate'): the dark band stops 520px down, behind the white card */
  filter: none !important; top: 0 !important; /* the template blurs this layer 55–60px on tablets/phones and starts it 30px down: grey smudge + white strip */
}
/* the section after the dark Pricing banner had no top spacing: give the label room */
.inner-banner + .section.without-top-spacing { padding-top: 56px; }
.solution-2-banner .section-title-center h1.text-white, .solution-2-banner .banner-title-center h1, .inner-banner .banner-title-center h1, .inner-banner h1 {
  color: #fff !important; -webkit-text-fill-color: #fff !important;
}
/* Footer: "Let's Collaborate" stays on white; the footer itself is solid near-black, full width, with the brand line on top */
.footer-overlay { background-image: none !important; background-color: #fff !important; }
.footer { background-color: var(--ec-navy); box-shadow: 0 0 0 100vmax var(--ec-navy); clip-path: inset(0 -100vmax); padding-top: 72px; margin-top: 40px; }
.footer::before { content: ""; position: absolute; top: 0; left: -100vmax; right: -100vmax; height: 4px; background: var(--ec-gradient); }
/* the full-width tricks above must never widen the page (phones scrolled sideways without this) */
.top-sections-wrapper:has(.footer) { overflow-x: clip; }
/* Featured price card is navy: its text and lists must be light */
.pricing-plan-item.center { --ec-text: var(--ec-on-dark-muted); }
.pricing-plan-item.center :is(p, li, ul, .paragraph, .pricing-plan-item-title-copy) { color: var(--ec-on-dark-muted) !important; -webkit-text-fill-color: var(--ec-on-dark-muted) !important; }
.pricing-plan-item.center :is(h1, h2, h3, h4, h5, h6, .pricing-plan-item-title, .pricing-plan-price, .text-white) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.pricing-plan-item.center .pricing-plan-list li::marker { color: var(--ec-blue-on-dark); }
