:root {
  --bwd-ink: #09090f;
  --bwd-paper: #f5f6fb;
  --bwd-white: #ffffff;
  --bwd-muted: #68697a;
  --bwd-line: rgba(13, 12, 22, .10);
  --bwd-violet: #6c5ce7;
  --bwd-cobalt: #3d55ff;
  --bwd-cyan: #31d7ff;
  --bwd-signal: #7cf4d0;
  --bwd-radius: 26px;
  --bwd-shadow: 0 28px 80px rgba(25, 15, 60, .11);
}

html { scroll-behavior: smooth; }

body.bwd-site-modern {
  margin: 0;
  overflow-x: hidden;
  color: var(--bwd-ink);
  background: var(--bwd-paper);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.bwd-site-modern h1,
.bwd-site-modern h2,
.bwd-site-modern h3,
.bwd-site-modern h4,
.bwd-site-modern h5,
.bwd-site-modern h6 {
  color: var(--bwd-ink);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
}

.bwd-site-modern p,
.bwd-site-modern li { line-height: 1.72; }

.bwd-site-modern a { transition: color .2s ease, background .2s ease, transform .2s ease; }

/* Campaign bar */
.bwd-site-modern .nx-bar,
.bwd-site-modern [class*="notificationx"] { display: none !important; }

.bwd-site-campaign {
  position: relative;
  z-index: 1001;
  color: #fff;
  background: #0a0920;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.bwd-site-campaign-inner {
  width: min(calc(100% - 32px), 1180px);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-inline: auto;
  font-size: 13px;
}

.bwd-site-campaign-phases { display: flex; align-items: center; gap: 7px; }

.bwd-site-campaign-phases span {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,255,255,.62);
  font-weight: 700;
}

.bwd-site-campaign-phases .active {
  color: #fff;
  border-color: rgba(49,215,255,.48);
  background: rgba(49,215,255,.12);
}

.bwd-site-campaign p { margin: 0; color: #fff !important; }
.bwd-site-campaign strong { color: var(--bwd-cyan); }
.bwd-site-campaign a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Reusable Elementor header */
.bwd-site-modern #masthead {
  position: sticky;
  z-index: 999;
  top: 0;
  padding: 12px 16px;
  background: rgba(247,248,255,.82);
  backdrop-filter: blur(20px);
}

.bwd-site-modern.admin-bar #masthead { top: 32px; }

.bwd-site-modern #masthead > .elementor {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 55px rgba(29,24,70,.14);
}

.bwd-site-modern #masthead > .elementor > .elementor-section,
.bwd-site-modern #masthead > .elementor > .e-con {
  border-radius: 22px !important;
  background: transparent !important;
}

.bwd-site-modern #masthead .elementor-nav-menu a,
.bwd-site-modern #masthead .hfe-nav-menu a,
.bwd-site-modern #masthead nav a {
  color: #343442 !important;
  font-family: "DM Sans", sans-serif !important;
  font-weight: 700 !important;
}

.bwd-site-modern #masthead .elementor-nav-menu a:hover,
.bwd-site-modern #masthead .hfe-nav-menu a:hover,
.bwd-site-modern #masthead nav a:hover { color: var(--bwd-violet) !important; }

.bwd-site-modern #masthead .elementor-button,
.bwd-site-modern #masthead a.elementor-button {
  color: #fff !important;
}

.bwd-site-modern #masthead img { max-height: 60px; object-fit: contain; }

/* Internal page canvas */
.bwd-site-modern main.site-main,
.bwd-site-modern #content {
  min-height: 60vh;
  background:
    radial-gradient(circle at 6% 7%, rgba(108,92,231,.12), transparent 24%),
    radial-gradient(circle at 93% 15%, rgba(49,215,255,.12), transparent 23%),
    linear-gradient(180deg, #fbfbff 0%, #f5f6fb 46%, #eef6ff 100%);
}

.bwd-site-modern main.site-main {
  padding: clamp(64px, 8vw, 110px) max(16px, calc((100vw - 1180px) / 2));
}

.bwd-site-modern main.site-main > .page-header,
.bwd-site-modern main.site-main > .entry-header {
  width: min(100%, 900px);
  margin: 0 auto 30px;
}

.bwd-site-modern main.site-main > .page-content,
.bwd-site-modern main.site-main > article,
.bwd-site-modern main.site-main > .site-main,
.bwd-site-modern .woocommerce {
  width: min(100%, 1180px);
  margin-inline: auto;
}

.bwd-site-modern main.site-main > article,
.bwd-site-modern main.site-main > .page-content > .elementor,
.bwd-site-modern .woocommerce {
  overflow: hidden;
  border: 1px solid var(--bwd-line);
  border-radius: 32px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--bwd-shadow);
  backdrop-filter: blur(18px);
}

.bwd-site-modern main.site-main > article { padding: clamp(28px, 5vw, 66px); }

.bwd-site-modern main.site-main > .page-content > .elementor > .elementor-section:first-child,
.bwd-site-modern main.site-main > .page-content > .elementor > .e-con:first-child {
  padding-top: clamp(28px, 5vw, 64px) !important;
}

.bwd-site-modern main.site-main .elementor-top-section,
.bwd-site-modern main.site-main .e-con.e-parent {
  padding-inline: clamp(18px, 4vw, 50px);
}

.bwd-site-modern main.site-main h1,
.bwd-site-modern main.site-main h2:first-child,
.bwd-site-modern main.site-main .entry-title {
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
}

.bwd-site-modern main.site-main p { color: var(--bwd-muted); }

/* Buttons and calls to action */
.bwd-site-modern .elementor-button,
.bwd-site-modern .wp-element-button,
.bwd-site-modern button:not(.menu-toggle),
.bwd-site-modern input[type="submit"],
.bwd-site-modern .woocommerce a.button,
.bwd-site-modern .woocommerce button.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(110deg, #5d4af0, #465eff 58%, #268ff6) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 30px rgba(70,94,255,.2);
}

.bwd-site-modern .elementor-button:hover,
.bwd-site-modern .wp-element-button:hover,
.bwd-site-modern button:not(.menu-toggle):hover,
.bwd-site-modern input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(40,45,130,.25);
}

/* Forms */
.bwd-site-modern form:not(.search-form) {
  border: 1px solid rgba(108,92,231,.12);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(245,247,255,.9));
}

.bwd-site-modern .wpcf7-form,
.bwd-site-modern .woocommerce-form,
.bwd-site-modern .woocommerce-EditAccountForm { padding: clamp(22px, 4vw, 46px); }

.bwd-site-modern label { color: #2d2d3a; font-weight: 700; }

.bwd-site-modern input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.bwd-site-modern textarea,
.bwd-site-modern select {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px !important;
  border: 1px solid rgba(13,12,22,.13) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--bwd-ink) !important;
  box-shadow: 0 7px 22px rgba(35,30,80,.035);
}

.bwd-site-modern textarea { min-height: 160px; resize: vertical; }

.bwd-site-modern input:focus,
.bwd-site-modern textarea:focus,
.bwd-site-modern select:focus {
  border-color: var(--bwd-violet) !important;
  outline: 3px solid rgba(108,92,231,.12) !important;
}

/* Blog and document pages */
.bwd-site-modern .elementor-post,
.bwd-site-modern article.post,
.bwd-site-modern .blog-post {
  border: 1px solid var(--bwd-line) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 18px 50px rgba(42,35,77,.07) !important;
}

.bwd-site-modern .entry-content h2,
.bwd-site-modern .entry-content h3,
.bwd-site-modern .page-content h2,
.bwd-site-modern .page-content h3 { margin-top: 1.35em; }

.bwd-site-modern .entry-content a,
.bwd-site-modern .page-content a { color: #5142d4; }

/* Footer */
.bwd-site-modern #colophon,
.bwd-site-modern footer.elementor-location-footer,
.bwd-site-modern footer.site-footer {
  color: #fff !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(108,92,231,.25), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(49,215,255,.12), transparent 28%),
    #0a0920 !important;
  border-top: 1px solid rgba(255,255,255,.1);
}

.bwd-site-modern #colophon h2,
.bwd-site-modern #colophon h3,
.bwd-site-modern footer h2,
.bwd-site-modern footer h3 { color: #fff !important; }

.bwd-site-modern #colophon a,
.bwd-site-modern footer a { color: rgba(255,255,255,.68) !important; }

.bwd-site-modern #colophon p,
.bwd-site-modern #colophon li,
.bwd-site-modern footer p,
.bwd-site-modern footer li { color: rgba(255,255,255,.62) !important; }

.bwd-site-modern #colophon a:hover,
.bwd-site-modern footer a:hover { color: #fff !important; }

.bwd-site-modern #colophon .elementor-section.elementor-section-boxed > .elementor-container,
.bwd-site-modern footer.elementor-location-footer .elementor-section.elementor-section-boxed > .elementor-container {
  width: 100% !important;
  max-width: none !important;
  padding-inline: clamp(20px, 4vw, 64px);
}

.bwd-mobile-app-nav { display: none; }

@media (max-width: 782px) {
  .bwd-site-modern.admin-bar #masthead { top: 46px; }
}

@media (max-width: 760px) {
  body.bwd-site-modern { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

  .bwd-site-modern #masthead { padding: 9px 10px; }
  .bwd-site-modern #masthead > .elementor { border-radius: 19px; }

  .bwd-site-modern #masthead .elementor-top-column:has(.mmm-menu-hamburger),
  .bwd-site-modern #masthead .elementor-inner-section:has(.mmm-menu-hamburger) {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    transform: none !important;
  }

  .bwd-site-modern #masthead .elementor-inner-section:has(.mmm-menu-hamburger) > .elementor-container {
    width: 100% !important;
    min-height: 72px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  .bwd-site-modern #masthead .elementor-inner-section:has(.mmm-menu-hamburger) > .elementor-container > .elementor-column:has(.elementor-widget-image) {
    width: auto !important;
    flex: 1 1 auto !important;
  }

  .bwd-site-modern #masthead .elementor-inner-section:has(.mmm-menu-hamburger) > .elementor-container > .elementor-column:has(.mmm-menu-hamburger) {
    position: relative !important;
    z-index: 20 !important;
    top: auto !important;
    right: auto !important;
    width: 62px !important;
    flex: 0 0 62px !important;
    margin-left: auto !important;
    transform: none !important;
  }

  .bwd-site-modern #masthead .elementor-inner-section:has(.mmm-menu-hamburger) > .elementor-container > .elementor-column:has(.elementor-widget-button) {
    display: none !important;
  }

  .bwd-site-modern #masthead .elementor-inner-section .elementor-column:has(.mmm-menu-hamburger) > .elementor-widget-wrap {
    width: 62px !important;
    min-height: 50px !important;
    padding: 0 !important;
  }

  .bwd-site-modern #masthead .mmm-menu-hamburger {
    width: 50px !important;
    height: 50px !important;
    margin: 0 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .bwd-site-modern #masthead .main-wrapper:has(.mmm-navbar.active) > .mmm-menu-hamburger {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .bwd-site-modern main.site-main { padding: 54px 14px 76px; }

  .bwd-site-modern main.site-main > article,
  .bwd-site-modern main.site-main > .page-content > .elementor,
  .bwd-site-modern .woocommerce { border-radius: 24px; }

  .bwd-site-modern main.site-main .elementor-top-section,
  .bwd-site-modern main.site-main .e-con.e-parent { padding-inline: 16px; }

  .bwd-site-modern main.site-main h1,
  .bwd-site-modern main.site-main h2:first-child,
  .bwd-site-modern main.site-main .entry-title { font-size: clamp(38px, 12vw, 56px); }

  .bwd-site-campaign-inner { min-height: 38px; font-size: 11px; }
  .bwd-site-campaign-phases,
  .bwd-site-campaign a { display: none; }

  .bwd-site-modern .mmm-navbar.mmm-for-nav.active {
    width: 100% !important;
    height: auto !important;
    min-height: 430px !important;
    max-height: calc(100vh - 48px) !important;
    overflow-y: auto !important;
    border-radius: 0 0 24px 24px !important;
    background: #fff !important;
    box-shadow: 0 26px 70px rgba(8,7,30,.22) !important;
  }

  .bwd-site-modern .mmm-navbar.active .mmm-nav-identity-panel,
  .bwd-site-modern .mmm-navbar.active .mmm-navbar-collapse,
  .bwd-site-modern .mmm-navbar.active .mmm-navbar-nav {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .bwd-site-modern .mmm-navbar.active .mmm-navbar-nav {
    display: grid !important;
    gap: 7px !important;
    padding: 8px 16px 26px !important;
    margin: 0 !important;
  }

  .bwd-site-modern .mmm-navbar.active .mmm-menu-link {
    width: 100% !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 16px !important;
    border: 1px solid rgba(13,12,22,.08) !important;
    border-radius: 14px !important;
    background: #f8f8fd !important;
    color: #252534 !important;
    font-family: "DM Sans", sans-serif !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
  }

  .bwd-site-modern #masthead .mmm-navbar.active .mmm-menu-link:hover,
  .bwd-site-modern #masthead .mmm-navbar.active .mmm-menu-link:focus-visible,
  .bwd-site-modern #masthead .mmm-navbar.active .current-menu-item > .mmm-menu-link,
  .bwd-site-modern #masthead .mmm-navbar.active .current_page_item > .mmm-menu-link,
  .bwd-site-modern #masthead .mmm-navbar.active .mmm-menu-link.bwd-current-link {
    background: #11101a !important;
    color: #fff !important;
    outline: none !important;
  }

  .bwd-mobile-app-nav {
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(calc(100% - 20px), 620px);
    min-height: 68px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: rgba(10,9,28,.94);
    box-shadow: 0 22px 60px rgba(7,5,30,.34);
    transform: translateX(-50%);
    backdrop-filter: blur(24px);
  }

  .bwd-mobile-app-link {
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    border-radius: 16px;
    color: rgba(255,255,255,.82) !important;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .bwd-mobile-app-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .bwd-mobile-app-link:hover,
  .bwd-mobile-app-link:focus-visible,
  .bwd-mobile-app-link.active {
    background: linear-gradient(145deg, #7564f5, #257fe8);
    color: #fff !important;
    outline: none;
  }

  .bwd-mobile-app-link:active { transform: scale(.96); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

