/* Fonts - loaded via global-styles.php (Google Fonts link) */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Geist", sans-serif;
  --heading-span: "Prata", serif;
  --geist-font: "Geist", sans-serif;
}

/* Global Colors */
:root {
  --background-color: hsl(0, 0%, 100%);
  --default-color: hsl(0, 0%, 26.7%);
  --heading-color: hsl(0, 0%, 7.8%);
  --accent-color: hsl(20, 21%, 53%);
  --accent-light: hsl(30, 22%, 96%);
  --accent-light-hover: hsl(24, 11%, 91%);
  --primary-color: hsl(51, 98%, 54%);
  --contrast-color: hsl(0, 0%, 100%);
  --bg-light: hsl(0, 0%, 90%);
  --bg-lightest: hsl(0, 0%, 97%);
  --bg-lightest-2: hsl(223, 54%, 97%);
  --black: hsl(0, 0%, 0%);
  --black2: hsl(0, 0%, 4%);
  --black3: hsl(0, 0%, 45%);
  --text-light: hsl(0, 0%, 56%);
}

/* Nav Menu Colors */
:root {
  --nav-color: hsl(0, 0%, 100%);
  --nav-hover-color: hsl(0, 0%, 100%);
  --nav-mobile-background-color: hsl(0, 0%, 100%);
  --nav-dropdown-background-color: hsl(0, 0%, 100%);
  --nav-dropdown-color: hsl(0, 0%, 13%);
  --nav-dropdown-hover-color: hsl(218, 87%, 50%);
}

/* Smooth scroll */
:root,
html {
  scroll-behavior: smooth;
  height: 100%;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

h1.aos,
h2.aos,
h3.aos,
h4.aos,
h5.aos,
h6.aos,
p.aos,
div.aos,
img.aos {
  filter: blur(6px);
}

main {
  min-height: 100vh;
  overflow: clip;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Text scroll up effect
--------------------------------------------------------------*/

.text-effect {
  position: relative;
  height: 1em;
  line-height: 1em;

  & .text-wrap {
    display: inline-block;
    position: relative;
    overflow: hidden;
    min-width: 16px;
    transition: 0.4s ease;
  }

  & .text-top,
  & .text-bottom {
    display: block;
    transition: 0.4s ease;
    white-space: nowrap;
  }

  & .text-bottom {
    position: absolute;
    left: 0;
    top: 20px;
  }
}

.aos {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}
.aos img {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 100px 0;
  scroll-margin-top: 78px;
  position: relative;
  z-index: 1;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 60px;
  }
}

.bg-light {
  background: var(--bg-light);
}
.bg-light2 {
  background: var(--bg-lightest-2);
}

.section_bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: -1;
  opacity: 0.6;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/*--------------------------------------------------------------
# Lenis smooth scroll
--------------------------------------------------------------*/

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;

  & .small_title {
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    justify-self: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 16px;
    margin-bottom: 20px;
    background: var(--contrast-color);
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1);
  }

  & h2 {
    color: #000;
    text-align: center;
    font-family: var(--heading-font);
    font-size: 40px;
    font-weight: 500;
    line-height: 48px;
    letter-spacing: -1px;
    margin-bottom: 20px;

    & span {
      font-family: var(--heading-span);
      background: linear-gradient(
        90deg,
        var(--black) 25%,
        var(--text-light) 75%
      );
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }

  & p {
    color: var(--text-light);
    font-family: var(--heading-font);
    text-align: center;
    font-size: 18px;
    font-style: normal;
    text-wrap-style: balance;

    & .description-title {
      color: var(--accent-color);
    }
  }
}

/*--------------------------------------------------------------
# Global Page Titles
--------------------------------------------------------------*/
.page-title {
  --background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;

  & h1 {
    font-size: 24px;
    font-weight: 600;
  }
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/

.breadcrumbs {
  & ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 400;
    color: #949494;
    background: #ffffff24;
    width: max-content;
    padding: 5px 10px;
    border-radius: 50px;

    & li + li {
      padding-left: 10px;
      color: #d1d1d1;

      &::before {
        content: "/";
        display: inline-block;
        padding-right: 10px;
        color: #949494;
      }
    }
  }
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-default,
.btn-default:focus {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: clip;
  gap: 5px;
  height: 48px;
  width: fit-content;
  padding: 16px 20px;
  border-radius: 50px;
  background: var(--contrast-color);
  color: var(--black);
  box-shadow: 0px 4px 0px 0px hsl(0deg 0% 50% / 50%);
  transition: 0.5s ease;

  &:hover {
    color: var(--contrast-color);
    background: var(--accent-color);

    &::before {
      opacity: 1;
    }
  }

  & i {
    font-size: 30px;
    transition: 0.5s ease;

    &:first-child {
      opacity: 0;
      position: relative;
      left: -30px;
      width: 0;
      transition: 0.5s ease;
    }
    &:last-child {
      opacity: 1;
      position: relative;
      left: 0;
      width: 30px;
      transition: 0.5s ease;
    }
  }
  &:hover i {
    &:first-child {
      opacity: 1;
      position: relative;
      left: 0;
      width: 30px;
    }
    &:last-child {
      opacity: 0;
      visibility: hidden;
      position: relative;
      left: 30px;
      width: 0;
    }
  }
}

.btn-black {
  background: var(--black);
  color: var(--contrast-color);

  &:hover {
    color: var(--contrast-color);
    background: var(--black);
  }
}

span.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 1.2s linear forwards;
  background-color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
