/* ============================================
   Home Page - Scoped Styles
   Root class: .home-page
   Font: Futura (with fallbacks)
   ============================================ */

@font-face {
  font-family: "Futura";
  src: local("Futura Medium"), local("Futura-Medium");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura";
  src: local("Futura Bold"), local("Futura-Bold");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Hide Salient parent theme header/footer on Home page --- */
body.page-template-page-home #header-outer,
body.page-template-page-home #header-space,
body.page-template-page-home #footer-outer,
body.page-template-page-home #slide-out-widget-area,
body.page-template-page-home #to-top {
  display: none !important;
}

body.page-template-page-home #ajax-content-wrap {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* --- Body reset (for static preview; WP theme handles this) --- */
body {
  margin: 0;
  padding: 0;
}

/* --- Reset (scoped) --- */
.home-page {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

/* --- Override Salient !important font --- */
.home-page h1,
.home-page p,
.home-page a,
.home-page span,
.home-page button,
.home-page div {
  font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
}

/* --- Hero Section (full viewport) --- */
.home-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: #333;
}

/* --- Slides --- */
.home-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.home-hero__slide.is-active {
  opacity: 1;
}

.home-hero__slide-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* --- Overlay --- */
.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgba(51, 51, 51, 0.6);
  mix-blend-mode: multiply;
}

/* --- Header --- */
.home-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

.home-header__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.home-header__logo-icon {
  height: 40px;
  width: auto;
}

.home-header__logo-text {
  height: 30px;
  width: auto;
  margin-top: 4px;
}

.home-header__nav {
  display: flex;
  align-items: center;
  gap: 54px;
}

.home-header__nav-link {
  font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.home-header__nav-link:hover {
  color: #f5f5f7;
}

.home-header__lang {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

.home-header__lang-btn {
  font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.home-header__lang-btn:hover {
  color: #f5f5f7;
}

/* --- Hero Content (Copy + Arrows) --- */
.home-hero__content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px; /* top: clear header (~88px) */
  gap: 238px;
}

/* --- Arrow Buttons --- */
.home-hero__arrow {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.home-hero__arrow--prev:hover {
  transform: translateX(-5px);
}

.home-hero__arrow--next:hover {
  transform: translateX(5px);
}

.home-hero__arrow-icon {
  display: block;
}

/* Stroke animation: draw circle outline on hover */
.home-hero__arrow-stroke-anim {
  stroke-dasharray: 170 170;
  stroke-dashoffset: 170;
  transition: stroke-dashoffset 1s ease;
}

.home-hero__arrow:hover .home-hero__arrow-stroke-anim {
  stroke-dashoffset: 0;
}

/* --- Copy Area --- */
.home-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1183px;
  width: 100%;
}

/* --- Slide Indicators --- */
.home-hero__indicators {
  display: flex;
  gap: 60px;
}

.home-hero__indicator {
  font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
  transition: color 0.5s ease;
}

/* Indicator colors: active bright, fade by distance (per Figma) */
.home-hero__indicator {
  color: #333;
}

.home-hero__indicator.is-active {
  color: #fafafc;
}
.home-hero__indicator[data-fade="1"] {
  color: #999;
}
.home-hero__indicator[data-fade="2"] {
  color: #666;
}
.home-hero__indicator[data-fade="3"] {
  color: #333;
}

/* --- Title --- */
.home-hero__text {
  display: grid;
  position: relative;
}

.home-hero__title {
  font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
  font-weight: 700;
  font-size: 80px;
  line-height: 1;
  color: #fff;
  white-space: pre-wrap;
  max-width: 1183px;
  text-shadow: 0 4px 17px rgba(51, 51, 51, 0.25);
}

.home-hero__desc {
  font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  max-width: 800px;
  margin-top: 48px;
  text-shadow: 0 4px 17px rgba(51, 51, 51, 0.25);
}

/* --- Footer --- */
.home-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

.home-footer__left {
  display: flex;
  align-items: center;
  gap: 54px;
}

.home-footer__text,
.home-footer__link {
  font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.home-footer__link {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.home-footer__link:hover {
  color: #f5f5f7;
}

/* --- Mobile bar (hidden on desktop) --- */
.home-header__mobile-bar {
  display: none;
}

.home-header__hamburger {
  width: 72px;
  height: 20px;
  border: none;
  border-top: 2px solid #1c1c1c;
  border-bottom: 2px solid #1c1c1c;
  background: none;
  cursor: pointer;
  padding: 0;
}

.home-header__mobile-lang {
  font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #1c1c1c;
  white-space: nowrap;
}

/* ============================================
   RWD - Responsive
   ============================================ */

/* Short viewport — prevent title from overlapping nav */
@media (max-height: 800px) {
  .home-hero__title {
    font-size: 60px;
  }
}

/* Large tablet / small desktop */
@media (max-width: 1280px) {
  .home-hero__content {
    gap: 80px;
  }

  .home-hero__title {
    font-size: 60px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .home-header {
    padding: 20px 24px;
  }

  .home-header__nav {
    gap: 32px;
  }

  .home-header__logo {
    width: auto;
  }

  .home-header__lang {
    width: auto;
  }

  .home-hero__content {
    padding: 100px 24px 60px;
    gap: 40px;
  }

  .home-hero__title {
    font-size: 56px;
  }

  .home-hero__desc {
    font-size: 16px;
    margin-top: 32px;
  }

  .home-hero__copy {
    gap: 32px;
  }

  .home-hero__indicators {
    gap: 40px;
  }

  .home-footer {
    padding: 20px 24px;
  }

  .home-footer__left {
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* --- Header --- */
  .home-header {
    padding: 12px 20px 0;
    gap: 22px;
    justify-content: flex-start;
  }

  .home-header__nav {
    display: none;
  }

  .home-header__lang {
    display: none;
  }

  .home-header__logo {
    width: auto;
    gap: 4px;
  }

  .home-header__logo-icon {
    height: 20px;
  }

  .home-header__logo-text {
    height: 15px;
    margin-top: 3px;
  }

  .home-header__mobile-bar {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    height: 67px;
    padding: 20px 20px 20px 10px;
    background: #fafafc;
  }

  /* --- Hero content --- */
  .home-hero__content {
    top: auto;
    bottom: 0;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0 40px 150px;
    gap: 0;
  }

  .home-hero__copy {
    width: 100%;
    order: 0;
    margin-bottom: 160px;
    gap: 24px;
    text-shadow: 0 4px 17px rgba(51, 51, 51, 0.25);
  }

  .home-hero__title {
    font-size: 24px;
    white-space: pre-wrap;
  }

  .home-hero__desc {
    font-size: 14px;
    margin-top: 40px;
    line-height: 1.5;
  }

  .home-hero__indicators {
    gap: 60px;
  }

  .home-hero__indicator {
    font-size: 14px;
  }

  /* Arrows: same row below copy, centered with 110px gap */
  .home-hero__arrow--prev {
    order: 1;
    margin-right: 55px;
  }

  .home-hero__arrow--next {
    order: 2;
    margin-left: 55px;
  }

  .home-hero__arrow-icon {
    width: 91px;
    height: 54px;
  }

  /* --- Footer --- */
  .home-footer {
    background: #1c1c1c;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "year linkedin"
      "privacy legal";
    justify-content: center;
    justify-items: center;
    align-items: center;
    gap: 24px 19px;
    padding: 16px 12px 32px;
  }

  .home-footer__left {
    display: contents;
  }

  .home-footer__right {
    display: contents;
  }

  /* Row 1: APLUS year + LinkedIn */
  .home-footer__text {
    grid-area: year;
  }

  .home-footer__right .home-footer__link {
    grid-area: linkedin;
  }

  /* Row 2: Privacy + Legal */
  .home-footer__left a:nth-of-type(1) {
    grid-area: privacy;
  }

  .home-footer__left a:nth-of-type(2) {
    grid-area: legal;
  }

  .home-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 19px;
  }

  .home-footer::after {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 3;
  }

  .home-footer__text {
    order: 1;
  }
  .home-footer__right .home-footer__link {
    order: 2;
  }
  .home-footer__left a:nth-of-type(1) {
    order: 4;
    margin-top: 24px;
  }
  .home-footer__left a:nth-of-type(2) {
    order: 5;
    margin-top: 24px;
    margin-left: -7px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .home-hero__indicators {
    gap: 40px;
  }

  .home-hero__arrow--prev {
    margin-right: 30px;
  }

  .home-hero__arrow--next {
    margin-left: 30px;
  }
}

/* Extra small screens */
@media (max-width: 350px) {
  .home-hero__indicators {
    display: none;
  }

  .home-hero__title {
    font-size: 20px;
  }

  .home-hero__desc {
    font-size: 13px;
  }

  .home-hero__copy {
    margin-bottom: 80px;
  }
}
