/* Above-the-fold styles for the landing page while bootstrap.min.css loads async */
:root {
  --white-color: #fff;
  --heading-color: #5189c9;
  --body-color: #555;
  --accent-color: #5189c9;
  --gray-color: #f4f3ef;
  --border-color: #d9d9d9;
  --heading-font: "Euclid Circular A", sans-serif;
  --body-font: "Euclid Circular A", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--body-color);
  background: var(--white-color);
}

.container {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}
@media (min-width: 768px) {
  .container { max-width: 720px; }
}
@media (min-width: 992px) {
  .container { max-width: 960px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

.text-center { text-align: center !important; }
.mb-0 { margin-bottom: 0 !important; }
.position-absolute { position: absolute !important; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-baseline { align-items: baseline !important; }
.justify-content-center { justify-content: center !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.mt-auto { margin-top: auto !important; }
.pt-3 { padding-top: 1rem !important; }
.text-uppercase { text-transform: uppercase !important; }

.td_preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
}

.td_hero.td_style_2 {
  min-height: 700px;
  height: 100vh;
  max-height: 1000px;
  position: relative;
  padding: 140px 0 0;
}

@media (max-width: 991px) {
  .td_hero.td_style_2 {
    height: auto;
    max-height: none;
    padding: 160px 0 80px;
  }
}

.td_hero.td_style_2::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background: linear-gradient(180deg, #280bb7 46.11%, #120551 60.51%);
}

.td_hero.td_style_2 .container {
  position: relative;
  z-index: 3;
}

.td_hero.td_style_2 .td_hero_title {
  line-height: 1.31em;
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.td_hero.td_style_2 .td_hero_title span {
  position: relative;
  display: inline-block;
  color: #fff;
  padding: 0 50px;
}

.td_hero.td_style_2 .td_hero_text {
  max-width: 1050px;
  margin-inline: auto;
}

.td_hero.td_style_2 .td_hero_subtitle {
  max-width: 720px;
  margin-inline: auto;
}

.td_hero.td_style_2 .td_btns_group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.td_btn.td_style_1 {
  display: inline-flex;
  text-decoration: none;
}

.td_btn.td_style_1 .td_btn_in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
}

.td_accent_bg { background-color: var(--accent-color); }
.td_white_color { color: #fff; }
.td_heading_color { color: var(--heading-color); }

.curved-bg {
  background-image: url(/images/curve-right-1.webp);
  background-repeat: no-repeat;
  background-position: right;
}

.td_site_header.td_sticky_header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff;
}
/* Keep the header visible while scrolling (neutralize theme hide-on-scroll-down) */
.td_site_header.td_gescout_sticky {
  top: 0 !important;
  opacity: 1 !important;
}

.td_main_header { position: relative; }
.td_main_header_in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 16px;
}
.td_main_header_left { display: flex; align-items: center; flex-shrink: 0; }
.td_main_header_center { flex: 1 1 auto; }
.td_site_branding img { max-width: 200px; height: auto; }
.td_nav_list { list-style: none; margin: 0; padding: 0; }
.td_nav_list a { color: var(--heading-color); text-decoration: none; }
.td_lang_dropdown { display: none; }

/* ── Desktop nav (≥1200px) ─────────────────────────────────── */
@media (min-width: 1200px) {
  .td_main_header_right { display: flex; align-items: center; flex-shrink: 0; }
  .td_header_btns_extra { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .td_nav_list { display: flex; align-items: center; gap: 24px; }
  .td_menu_toggle,
  .td_nav_mobile_actions { display: none !important; }
}

/* ── Mobile nav (≤1199px): off-canvas panel + hamburger ─────── */
@media (max-width: 1199px) {
  .td_main_header_right { display: none; }
  .td_site_branding { position: relative; z-index: 101; }
  .td_nav_list_wrap {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: #fff;
    padding-top: 90px;
    transition: left 0.4s ease, right 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  .td_nav_list_wrap.td_active { left: 0; }
  .td_nav_list { display: flex; flex-direction: column; gap: 0; width: 100%; }
  .td_nav_list a { display: block; padding: 12px 20px; font-size: 18px; }
  .td_nav_mobile_actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px; }
  .td_menu_toggle {
    display: inline-block;
    position: absolute;
    right: 0;
    top: 50%;
    margin-top: -13px;
    width: 30px;
    height: 27px;
    cursor: pointer;
    color: var(--heading-color);
    /* Must sit above the open off-canvas panel (z-index:1000) so the close (X) stays visible/tappable */
    z-index: 1002;
  }
  .td_menu_toggle span,
  .td_menu_toggle span::before,
  .td_menu_toggle span::after {
    width: 100%;
    height: 2px;
    background-color: currentColor;
    display: block;
    transition: transform 0.2s ease, margin 0.2s ease, background-color 0.2s ease;
  }
  .td_menu_toggle span { position: relative; top: 12px; }
  .td_menu_toggle span::before { content: ""; position: absolute; margin-top: -9px; }
  .td_menu_toggle span::after { content: ""; position: absolute; margin-top: 9px; }

  /* Open state: hamburger becomes an X (close button) */
  .td_menu_toggle.td_toggle_active span { background-color: transparent; }
  .td_menu_toggle.td_toggle_active span::before { margin-top: 0; transform: rotate(45deg); }
  .td_menu_toggle.td_toggle_active span::after { margin-top: 0; transform: rotate(-45deg); }

  /* RTL: slide in from the right */
  [dir="rtl"] .td_nav_list_wrap { left: auto; right: -100vw; }
  [dir="rtl"] .td_nav_list_wrap.td_active { left: auto; right: 0; }
  [dir="rtl"] .td_menu_toggle { right: auto; left: 0; }
}

.td_fs_64 { font-size: clamp(2rem, 5vw, 4rem); }
.td_fs_18 { font-size: 18px; }
.td_fs_20 { font-size: 20px; }
.td_mb_30 { margin-bottom: 30px; }
.td_mb_40 { margin-bottom: 40px; }
.td_semibold { font-weight: 600; }
.td_medium { font-weight: 500; }
