/* ============================================================
   SSY.AI Theme — New site design, old plugin class names
   ============================================================ */

/* --- Base --- */
body {
  background: #F7FFFD;
  font-family: 'Fira Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Background Sections --- */
.background {
  position: relative;
  padding-top: 1px;
  margin-top: -1px;
  background-repeat: no-repeat;
  overflow: hidden;

  &.bg-color-transparent {
    background-color: transparent;
  }
  &.bg-color-dark {
    background-color: #000;
  }
  &.bg-color-dark_blue {
    background-color: #050525;
  }
  &.bg-color-purple {
    background-color: #E2D1FF;
  }

  > * {
    position: relative;
    z-index: 2;
  }
}

.bg-color-purple .font-color-dark mark {
  color: #FFFFFF !important;
}

/* --- Navigation --- */
#main-nav {
  transition: all .3s ease;
  padding: 20px 0;
  margin-bottom: -104px;

  .dropdown-menu {
    border: none;
    background: none;
    margin: 0;
    padding: 0;

    .dropdown-item {
      color: #F7FFFD;
      background: none;
      &:hover { color: #E2D1FF; }
      &.active {
        color: #E2D1FF;
        font-weight: 700;
      }
    }
  }
}

.scrolled #main-nav {
  background: rgba(5, 5, 37, .75);
  padding: 5px 0;
}

.navbar-nav {
  .nav-link {
    color: #F7FFFD;
    &:hover { color: #E2D1FF; }
    &.active {
      color: #E2D1FF;
      font-weight: 700;
    }
  }
}

.lang-switch .nav-link.active {
  color: #04FFBF;
}

@media (max-width: 991.98px) {
  #main-nav {
    padding: 12px 0;
    margin-bottom: -60px;
    background-color: rgba(5, 5, 37, .75);
  }
  .dropdown-item { text-align: center; }
}

/* --- Decorative Dots --- */
.deco {
  display: inline-block;
  border-radius: 100%;
  position: relative;

  &.deco_type_1 {
    width: 63px; height: 63px;
    background: #CCFFCC;
    &:after {
      content: '';
      display: inline-block;
      position: absolute;
      top: -5px; right: -3px;
      width: 33px; height: 33px;
      background: #04FFBF;
      border-radius: 100%;
    }
  }
  &.deco_type_2 {
    width: 63px; height: 63px;
    background: #E2D1FF;
  }
  &.deco_type_3 {
    width: 33px; height: 33px;
    background: #1DEBAE;
    &:after {
      content: '';
      display: inline-block;
      position: absolute;
      bottom: -16px; left: -10px;
      width: 15px; height: 15px;
      background: #04FFBF;
      border-radius: 100%;
    }
  }
  &.deco_type_4 {
    width: 66px; height: 66px;
    background: #050525;
    &:after {
      content: '';
      display: inline-block;
      position: absolute;
      bottom: -15px; left: -2px;
      width: 33px; height: 33px;
      background: #04FFBF;
      border-radius: 100%;
    }
  }
  &.deco_type_5 {
    width: 15px; height: 15px;
    background: #CCFFCC;
  }
  &.deco_type_6 {
    width: 69px; height: 69px;
    background: #04FFBF;
  }
  &.deco_type_7 {
    width: 52px; height: 52px;
    background: #CCFFCC;
    &:after {
      content: '';
      display: inline-block;
      position: absolute;
      bottom: -20px; right: -35px;
      width: 28px; height: 28px;
      background: #04FFBF;
      border-radius: 100%;
    }
  }
}

/* --- Corner Cuts --- */
.corner_cut {
  width: 100%;
  height: 500px;
  position: absolute;
  z-index: 1;
  bottom: 0;

  &.corner-top-right, &.corner-top-left {
    bottom: auto; top: 0;
  }
}

@media (max-width: 991.98px) {
  .corner_cut { height: 350px; }
}

/* --- Font Colors --- */
.font-color-teal   { color: #1DEBAE; }
.font-color-purple { color: #E2D1FF; }
.font-color-grey   { color: #999999; }

.font-color-light {
  color: #F7FFFD;
  mark {
    color: #1DEBAE;
    background: transparent;
    padding: 0;
  }
}

.font-color-dark {
  color: #000000;
  mark {
    color: #1DEBAE;
    background: transparent;
    padding: 0;
  }
}

/* --- Font Sizes --- */
.font-size-14  { font-size: 0.875rem; }
.font-size-18  { font-size: 1.125rem; }
.font-size-20  { font-size: 1.25rem; }
.font-size-25  { font-size: 1.5625rem; }
.font-size-30  { font-size: 1.875rem; }
.font-size-48  { font-size: 3rem; }
.font-size-55  { font-size: 3.438rem; }
.font-size-64  { font-size: 4rem; }
.font-size-72  { font-size: 4.5rem; }
.font-size-150 { font-size: 9.375rem; }

@media (max-width: 991.98px) {
  .font-size-14  { font-size: 0.75rem; }
  .font-size-18  { font-size: 0.875rem; }
  .font-size-20  { font-size: 0.875rem; }
  .font-size-25  { font-size: 1.25rem; }
  .font-size-30  { font-size: 1rem; }
  .font-size-48  { font-size: 1.875rem; }
  .font-size-55  { font-size: 1.875rem; }
  .font-size-64  { font-size: 2.375rem; }
  .font-size-72  { font-size: 2.375rem; }
  .font-size-150 { font-size: 3.125rem; }
}

/* --- Font Weights --- */
.font-weight-300 { font-weight: 300; }
.font-weight-400 { font-weight: 400; }
.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }

/* --- Misc --- */
.border-radius-12 { border-radius: 12px; }
.pt-8 { padding-top: 5rem !important; }
.pb-8 { padding-bottom: 5rem !important; }
.hr-light { color: #CCFFCC; opacity: 1; }
strike { font-style: italic; }

/* --- SSY Card --- */
.ssy_card {
  background-color: #F7FFFD;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

/* --- News Block --- */
.news-block {
  width: 100%;
  background: #F7FFFD;
  border-radius: 7px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);

  a { text-decoration: none; }
}

/* --- Forms --- */
.async-form {
  position: relative;

  .loader-wrap {
    display: none;
    z-index: 1000;
    position: absolute;
    background: rgba(5, 5, 37, .75);
    left: 0; right: 0;
    top: 0; bottom: 0;

    .spinner-border {
      position: absolute;
      left: 50%; top: 50%;
    }
  }

  &.loading .loader-wrap { display: block; }
}

.nav-item .btn {
  width: auto;
  padding: 9px 16px;
  font-family: 'Fira Sans', sans-serif !important;
}

.form-control {
  border: 1px solid #F7FFFD;
  box-shadow: none;
  outline: none;
  color: #050525;
  background: transparent;

  &:placeholder-shown { background: transparent; }

  &:focus {
    color: #050525;
    background: #F7FFFD;
    &::placeholder { color: #666; }
  }

  &::placeholder {
    color: #FFFFFF;
    opacity: 1;
  }
}

.form-check .form-check-input[type="radio"] {
  border: 2px solid #F7FFFD;
  &:checked { background-color: #1DEBAE; }
}
.form-check .form-check-label { color: #F7FFFD !important; }

.purple-line-right {
  border-top: 0px solid transparent;
  opacity: 1;
  &:after {
    display: block;
    position: absolute;
    content: '';
    border-top: 3px solid #E2D1FF;
    width: 300%;
  }
}

/* --- Footer --- */
.footer {
  box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.15);

  a {
    color: #666666;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
  }
}

/* --- Analytics headers --- */
.analytic_header_right, .analytic_header_left {
  position: relative;
  display: inline-block;
}
.analytic_header_right:after, .analytic_header_left:after {
  margin-left: 5px;
  content: "";
  position: absolute;
  left: 100%; right: auto;
  bottom: 10px;
  display: block;
  width: 1000%;
  background: #000;
  height: 1px;
}

@media (min-width: 992px) {
  .analytic_header_right:after {
    right: 100%; left: auto;
    margin-right: 5px;
  }
}

/* --- Steps Loop --- */
.steps_loop {
  aspect-ratio: 1;
  padding-right: 6px;
  position: relative;

  .steps_loop_bg {
    background: url('/static/images/steps_loop.svg') no-repeat;
    background-size: contain;
    background-position: center;
    width: 100%; height: 100%;
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
  }

  .steps_loop_item {
    position: absolute;
    vertical-align: middle;
    text-align: center;
  }

  .item_header {
    border-radius: 100%;
    border: 4px solid #04FFBF;
    aspect-ratio: 1;
    background-color: #04FFBF;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);

    &.selected {
      width: 150%;
      margin-left: -25%;
    }
  }

  .item_header_wrap { position: absolute; }
  .steps_loop_items_wrap {
    position: relative;
    width: 100%; height: 100%;
  }

  .item_header_wrap_1 {
    bottom: 54%; left: 15%; right: 54%;
    &.selected { top: 0; left: 0; }
  }
  .item_header_wrap_2 { top: 15%; bottom: 5%; left: 54%; right: 15%; }
  .item_header_wrap_3 { top: 54%; bottom: 15%; left: 15%; right: 54%; }
  .item_header_wrap_4 { top: 54%; bottom: 15%; left: 54%; right: 15%; }

  &.with_select {
    .item_header { background: none; }
    .item_header_wrap.selected_purple .item_header {
      border-color: #E2D1FF;
      background-color: #E2D1FF;
    }
    .item_header_wrap.selected_teal .item_header {
      border-color: #04FFBF;
      background-color: #04FFBF;
    }
  }
}

.append-line-right {
  position: relative;
  &:after {
    content: '';
    position: absolute;
    bottom: 20px;
    width: 10000%;
    border: 1px solid black;
  }
}
.append-line-left {
  position: relative;
  &::before {
    content: '';
    position: absolute;
    bottom: 20px;
    width: 10000%;
    border: 1px solid black;
    transform: translateX(-100%);
  }
}

/* --- Banner --- */
.ssy_banner_wrap {
  background: #E2D1FF;
  white-space: nowrap;

  .ssy_banner {
    overflow: hidden;
    font-family: 'Fira Sans', sans-serif !important;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;

    .ssy_banner_banner { height: 37px; }
  }
}

/* --- Scoti / Organic Shapes --- */
.scoti-backdrop{
  display: block;
  background: url("/static/images/scoti-backdrop.svg") no-repeat top center;
  background-size: 3100px;
  position: relative;
}

.scoti-backdrop-own-page{
  display: block;
  background: url("/static/images/scoti-backdrop_own_page.svg") no-repeat top center;
  background-size: 3100px;
  position: relative;
  background-position-y: -230px;
}

.scoti-waves{
  position: absolute !important;
  inset: 0;
  z-index: 0;
  display: block;
  background: url("/static/images/scoti_waves.png") no-repeat;
  background-size: 1500px;
  background-position: top right;
  opacity: 0.5;
  pointer-events: none;
}

/* Wrapper for grills spanning multiple dark sections */
.grill-group {
  position: relative;
}
.grill-group > .scoti-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/static/images/scoti_waves.png") no-repeat;
  background-size: 1500px;
  background-position: top right;
  opacity: 0.5;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: #050525;

  .container { position: relative; z-index: 2; }
}

.hero-headline {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: #F7FFFD;

  mark {
    background: transparent;
    color: #1DEBAE;
    padding: 0;
  }
}

.hero-subheadline {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #E2D1FF;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 4rem;
  }
  .hero-headline { font-size: 2.5rem; }
}

@media (max-width: 767.98px) {
  .hero-headline { font-size: 2rem; }
}

/* --- Contact Form (dark background) --- */
#contactForm .form-control {
  background: rgba(247, 255, 253, 0.08);
  border: 1px solid rgba(247, 255, 253, 0.2);
  color: #F7FFFD;
}
#contactForm .form-control:focus {
  background: rgba(247, 255, 253, 0.12);
  border-color: #1DEBAE;
  box-shadow: 0 0 0 0.2rem rgba(29, 235, 174, 0.25);
  color: #F7FFFD;
}
#contactForm .form-control::placeholder {
  color: rgba(247, 255, 253, 0.4);
}
