/* ArtPlus v20: tighter hierarchy, calmer motion and unambiguous navigation. */

/* Navigation ------------------------------------------------------------- */
.nav-list > li > a {
  transition: transform .3s var(--ap-ease), background .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.nav-list > li > a:hover {
  transform: translateY(-2px);
}

/* The active notch overlaps the button by one pixel and follows its hover lift. */
.nav-list > li.current-menu-item::after,
.nav-list > li.current_page_item::after,
.nav-list > li.current-menu-ancestor::after,
.nav-list > li.current_page_ancestor::after,
.nav-list > li.is-section-current::after {
  bottom: -9px;
  border-left-width: 10px;
  border-right-width: 10px;
  border-top-width: 10px;
  transition: transform .3s var(--ap-ease);
}

.nav-list > li.current-menu-item:hover::after,
.nav-list > li.current_page_item:hover::after,
.nav-list > li.current-menu-ancestor:hover::after,
.nav-list > li.current_page_ancestor:hover::after,
.nav-list > li.is-section-current:hover::after {
  transform: translate(-50%, -2px);
}

/* Plus symbols inherit the white active-state color instead of the source SVG. */
.nav-list > li.current-menu-item > a::before,
.nav-list > li.current_page_item > a::before,
.nav-list > li.current-menu-ancestor > a::before,
.nav-list > li.current_page_ancestor > a::before,
.nav-list > li.is-section-current > a::before,
.nav-list > li > a[aria-current="page"]::before {
  background: #fff !important;
  background-image: none !important;
  -webkit-mask: url('../Icons/plus_icon.svg') center / contain no-repeat;
  mask: url('../Icons/plus_icon.svg') center / contain no-repeat;
}

/* No diagonal external-link arrows on internal navigation or service cards. */
.nav-list > li > a::after,
.ap-service-arrow {
  display: none !important;
  content: none !important;
}

/* Homepage density ------------------------------------------------------- */
body.home .apb-hero.home-hero {
  min-height: clamp(560px, 72svh, 760px);
  padding-top: clamp(62px, 7vw, 104px);
  padding-bottom: clamp(68px, 7.5vw, 112px);
  gap: clamp(34px, 5vw, 76px);
}

body.home .apb-hero.home-hero.apb-hero--text,
body.home .apb-hero.home-hero:not(:has(.apb-hero-media)) {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.home .apb-hero--text .home-hero-copy,
body.home .apb-hero.home-hero:not(:has(.apb-hero-media)) .home-hero-copy {
  grid-column: 1 !important;
  justify-self: start;
  width: min(1040px, 100%);
  max-width: 1040px;
  margin: 0;
}

body.home .apb-hero .home-hero-copy h1 {
  max-width: 1040px;
  font-size: clamp(60px, 5.35vw, 102px);
  line-height: .88;
  letter-spacing: -.068em;
}

body.home .home-kicker {
  margin-bottom: clamp(22px, 2.5vw, 36px);
}

body.home .apb-hero .home-hero-copy > p {
  max-width: 720px;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.48;
}

body.home .apb-section {
  padding-top: clamp(68px, 7vw, 106px);
  padding-bottom: clamp(68px, 7vw, 106px);
}

body.home .simple-section-head {
  margin-bottom: clamp(34px, 4.5vw, 62px);
}

body.home .simple-section-head h2,
body.home .ap-showreel-heading h2,
body.home .apb-image-text-copy h2 {
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: .94;
  letter-spacing: -.055em;
}

body.home .simple-section-head .ap-section-intro,
body.home .ap-showreel-heading p {
  font-size: clamp(15px, 1.15vw, 18px);
}

body.home .ap-showreel {
  padding-top: clamp(72px, 7vw, 108px);
  padding-bottom: clamp(72px, 7vw, 108px);
  gap: clamp(32px, 4.5vw, 70px);
}

body.home .ap-showreel-heading {
  gap: 22px;
}

body.home .ap-showreel-play {
  width: clamp(76px, 7vw, 108px);
  height: clamp(76px, 7vw, 108px);
  font-size: clamp(27px, 2.4vw, 38px);
}

/* Service cards become compact summaries instead of full-screen panels. */
body.home .ap-services-grid {
  gap: clamp(16px, 1.7vw, 26px);
}

body.home .ap-service-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(25, 53, 51, .1);
}

body.home .ap-service-visual {
  aspect-ratio: 2.35 / 1;
  background-size: 32px 32px;
}

body.home .ap-service-plus {
  font-size: clamp(74px, 7vw, 112px);
}

body.home .ap-service-icon {
  width: clamp(52px, 5vw, 82px);
  height: clamp(52px, 5vw, 82px);
}

body.home .ap-service-copy {
  min-height: 150px;
  padding: clamp(22px, 2.4vw, 34px);
}

body.home .ap-service-copy h3 {
  max-width: 560px;
  font-size: clamp(25px, 2.25vw, 38px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

body.home .ap-service-copy p {
  max-width: 570px;
  margin-top: 14px;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.45;
}

body.home .apb-reference:hover,
body.home .home-project-image:hover {
  transform: translateY(-3px);
}

body.home .apb-image-text {
  gap: clamp(36px, 5vw, 78px);
}

body.home .apb-image-text-media,
body.home .apb-image-text-media img,
body.home .apb-image-text-media:empty::before {
  min-height: 390px;
}

body.home .apb-image-text-copy {
  gap: 22px;
}

body.home .apb-image-text-copy p {
  font-size: clamp(16px, 1.3vw, 20px);
}

.artplus-modal-cta {
  justify-content: center;
}

@media (max-width: 900px) {
  .nav-list > li > a {
    min-height: 58px !important;
    font-size: clamp(20px, 5vw, 25px) !important;
  }

  .nav-list > li > a:hover {
    transform: none;
  }

  .nav-list > li::after {
    display: none !important;
  }

  body.home .apb-hero.home-hero {
    padding-top: 52px;
    padding-bottom: 66px;
  }

  body.home .apb-hero .home-hero-copy h1 {
    max-width: 560px;
    font-size: clamp(46px, 12.5vw, 66px);
    line-height: .9;
  }

  body.home .apb-section,
  body.home .ap-showreel {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  body.home .simple-section-head h2,
  body.home .ap-showreel-heading h2,
  body.home .apb-image-text-copy h2 {
    font-size: clamp(38px, 10vw, 54px);
  }

  body.home .ap-service-visual {
    aspect-ratio: 2.15 / 1;
  }

  body.home .ap-service-copy {
    min-height: 0;
  }

  body.home .apb-image-text-media,
  body.home .apb-image-text-media img,
  body.home .apb-image-text-media:empty::before {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  body.home .apb-hero.home-hero {
    padding: 44px 18px 58px;
  }

  body.home .apb-hero .home-hero-copy h1 {
    font-size: clamp(43px, 12.8vw, 58px);
  }

  body.home .apb-hero .home-hero-copy > p {
    font-size: 16px;
  }

  body.home .apb-section,
  body.home .ap-showreel {
    padding: 54px 18px;
  }

  body.home .ap-service-copy h3 {
    font-size: clamp(24px, 7.8vw, 33px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-list > li > a,
  .nav-list > li::after,
  body.home .ap-service-card-link {
    transition: none !important;
  }
}
