/* ==========================================================================
   Front Page Specific Styles
   ========================================================================== */

/* Hero Section Enhancements */
.landing-hero {
  position: fixed;
  top: 5.875rem;
  left: 0;
  width: 100%;
  height: 46.625rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 1.875rem;
  padding-bottom: 1.875rem;
  z-index: 1;

  @media (max-width: 910px) {
    height: 36.875rem;
  }

  @media (max-width: 480px) {
    height: 23.125rem;
  }
}

.hero-content {
  text-align: center;
  padding: 2rem 0;
  position: relative;
  z-index: 99;
  max-width: 56.75rem;
  margin: 0 auto;

  @media (max-width: 480px) {
    padding: 0rem;
  }
}

.hero-copy h1 {
  font-family: var(--font-primary);
  font-size: 5.625rem;
  margin-bottom: 1.125rem;

  color: var(--bs-white);
  font-weight: 700;
  text-shadow: 0 0.25rem 0.625rem #214355;

  span {
    padding: 0.625rem 1rem;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 0.313rem solid var(--bs-secondary);

      @media (max-width: 480px) {
        border: 0.25rem solid var(--bs-secondary);
      }
    }
  }

  i {
    font-style: normal;
    color: var(--bs-secondary);
  }

  @media (max-width: 1024px) {
    font-size: 4.25rem;
  }

  @media (max-width: 480px) {
    font-size: 1.875rem;
  }
}

.hero-copy h2 {
  font-family: var(--font-primary);
  font-size: 1.875rem;
  margin-bottom: 2rem;
  color: var(--bs-white);

  @media (max-width: 1024px) {
    font-size: 1.5rem;
  }

  @media (max-width: 480px) {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
  }
}

.sub-hero-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;

  @media (max-width: 480px) {
    padding: 0 1rem;

    a {
      font-size: 0.75rem;
    }
  }
}

.hero-learn-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 99;
  flex-grow: 1;
  text-align: center;
  margin-top: 3.125rem;

  @media (max-width: 480px) {
    margin-top: 1.5rem;
  }
}

.slogan-section {
  margin-top: auto;

  position: relative;
  z-index: 99;
  text-align: center;

  h3 {
    font-size: 3.125rem;
    margin-bottom: 0;

    color: var(--bs-white);

    @media (max-width: 1024px) {
      font-size: 2.125rem;
    }

    @media (max-width: 480px) {
      font-size: 1.125rem;
    }
  }
}

.hero-learn-more-content {
  .scroll-down:hover {
    img {
      transform: rotate(90deg);
      transition: var(--bs-transition-slow);
    }

    & + .hero-learn-more-title {
      visibility: visible;
      opacity: 1;
    }
  }

  .hero-learn-more-title {
    visibility: hidden;
    opacity: 0;
    transition: var(--bs-transition-slow);
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--bs-white);
    margin-top: 1rem;

    @media (max-width: 480px) {
      font-size: 1.25rem;
      margin-bottom: 1.25rem;
    }
  }
}

.scroll-down {
  display: inline-block;
  animation: bounce 2s infinite;

  img {
    width: 2.75rem;
    height: 2.75rem;

    @media (max-width: 480px) {
      width: 2.25rem;
      height: 2.25rem;
    }
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-0.625rem);
  }

  60% {
    transform: translateY(-0.3125rem);
  }
}

/* .landing-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  background-color: var(--bs-dark);
} */

/* .landing-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
} */

.landing-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  background-color: var(--bs-dark);
}

.landing-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  object-position: bottom center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Call Outs Section */
.landing-call-outs {
  padding: 4rem 0;
  background: var(--bs-primary);

  .btn {
    padding: 0.75rem 3.125rem;
  }
}

.call-outs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 2rem;
  margin-top: -15.875rem;
}

.call-outs {
  padding: 2.75rem 3.5rem;
  border-radius: 1.25rem;
  -webkit-backdrop-filter: blur(3.125rem);
  backdrop-filter: blur(3.125rem);
  background-color: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.call-outs:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.call-outs h3 {
  font-family: var(--font-primary);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 2rem;
}

.call-outs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.call-outs li {
  display: flex;
  align-items: first baseline;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--bs-body-color);

  &:not(:last-child) {
    margin-bottom: 2rem;
  }

  p {
    margin-bottom: 0;
  }
}

.co-icon {
  margin-right: 1rem;
  flex-shrink: 0;
  transform: translateY(-0.375rem);
}

.co-icon img {
  width: 2rem;
  height: 2rem;
}

.main-section {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  position: relative;
  z-index: 9;
  margin-top: 46.625rem;

  .container {
    max-width: 67.5rem;
  }

  @media (max-width: 910px) {
    margin-top: 36.875rem;
  }

  @media (max-width: 480px) {
    margin-top: 23.125rem;
  }
}

.main-section .section-content {
  padding: 4.5rem 0;
  padding-bottom: 15.875rem;

  h3 {
    font-size: 3.125rem;
    font-weight: 700;
    color: var(--bs-primary);
    text-align: center;
    margin: 0;
    padding: 0;
  }
}

.counter-section {
  padding-top: 4.375rem;
  padding-bottom: 6.25rem;
  background-color: var(--bs-primary);
}

.counter-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
  gap: 2rem;
}

.counter {
  display: flex;
  flex-direction: column;
  align-items: center;

  h3 {
    font-size: 8.125rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--bs-white);
    text-align: center;
  }

  .counter-title {
    font-size: 2.125rem;
    font-weight: 500;
    color: var(--bs-secondary);
  }
}

.counter-number {
  display: inline-block;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-align: inherit;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.services-section {
  .services-section-content {
    padding-top: 4.5rem;
  }

  h3 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--bs-body-color);
    text-align: center;
  }
}

.service-section-card-container {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  padding: 7.5rem 0;
  margin-top: 20.375rem;
}

.service-card-listing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 7.625rem;
  margin-top: calc(-15.875rem - 7.5rem);
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-backdrop-filter: blur(3.125rem);
  backdrop-filter: blur(3.125rem);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 1.25rem;
  gap: 1.875rem;
  padding: 1.625rem 1.25rem;
  box-shadow: 0 0 0.9375rem -0.3125rem rgba(0, 0, 0, 0.05);

  h4 {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.38;
    text-align: center;
    color: var(--bs-primary);
    margin-bottom: 0;
  }

  p {
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.52;
    text-align: center;
    color: var(--bs-body-color);
    margin-bottom: 0;
  }
}

.service-card-listing > *:nth-child(3) {
  grid-column: span 2;

  &.service-item {
    border-radius: 1.25rem;
    background-blend-mode: multiply;
    background-color: rgba(49, 56, 62, 0.6);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;

    h4 {
      color: var(--bs-white);
    }

    p {
      color: var(--bs-white);
    }
  }
}

.download-section {
  padding: 4.5rem 0;
}

.download-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .call-outs-container,
  .counter-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .call-outs {
    padding: 2rem 1.5rem;
  }

  .call-outs h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .call-outs li {
    font-size: 1.125rem;

    &:not(:last-child) {
      margin-bottom: 1.5rem;
    }
  }

  .service-card-listing {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .service-card-listing > *:nth-child(3) {
    grid-column: span 1;
  }

  .service-item {
    padding: 2rem 1.5rem;
    gap: 1.5rem;

    h4 {
      font-size: 1.5rem;
    }

    p {
      font-size: 1rem;
    }
  }
}

@media (max-width: 480px) {
  .call-outs {
    padding: 1.5rem 1rem;
  }

  .call-outs h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .call-outs li {
    font-size: 1rem;

    &:not(:last-child) {
      margin-bottom: 1rem;
    }
  }

  .co-icon {
    margin-right: 0.75rem;
  }

  .co-icon img {
    width: 1.5rem;
    height: 1.5rem;
  }

  .main-section .section-content {
    padding: 3rem 0;
    padding-bottom: 10rem;
  }

  .main-section .section-content h3 {
    font-size: 2rem;
  }

  .counter-section {
    padding-top: 0;
    padding-bottom: 4rem;
  }

  .counter h3 {
    font-size: 4rem;
  }

  .counter .counter-title {
    font-size: 1.5rem;
  }

  .services-section .services-section-content {
    padding-top: 3rem;
  }

  .services-section h3 {
    font-size: 2rem;
  }

  .service-section-card-container {
    padding: 4rem 0;
    margin-top: 12rem;
  }

  .service-card-listing {
    margin-top: calc(-10rem - 4rem);
    row-gap: 1.5rem;
  }

  .service-item {
    padding: 1.5rem 1rem;
    gap: 1rem;

    h4 {
      font-size: 1.25rem;
    }

    p {
      font-size: 0.9rem;
    }
  }

  .download-list {
    flex-direction: column;

    a {
      width: 100%;
    }
  }
}

@media (max-width: 1200px) {
  .call-outs-container {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    margin-top: -11.875rem;
  }

  .counter-container {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}

@media (max-width: 992px) {
  .call-outs h3 {
    font-size: 1.75rem;
  }

  .counter h3 {
    font-size: 6rem;
  }

  .counter .counter-title {
    font-size: 1.875rem;
  }

  .services-section h3 {
    font-size: 2.5rem;
  }

  .service-item h4 {
    font-size: 2rem;
  }

  .service-item p {
    font-size: 1.125rem;
  }
}
