/* Final client-requested home refinements: hero motion, raised marks and centred directions. */

.home .exact-hero .hero-accent-word {
  display: inline-block;
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(9, 21, 29, .38);
}

html:not(.intro-complete) .home .hero-opening-copy .hero-slogan-line,
html:not(.intro-complete) .home .hero-opening-copy h1 em,
html:not(.intro-complete) .home .hero-opening-copy > span {
  opacity: 0;
  transform: translateY(24px);
}

html.intro-complete .home .hero-opening-copy .hero-slogan-line {
  animation: client-hero-copy-reveal .9s 0s cubic-bezier(.2, .78, .2, 1) both !important;
}

html.intro-complete .home .hero-opening-copy h1 em {
  animation: client-hero-copy-reveal .9s .16s cubic-bezier(.2, .78, .2, 1) both !important;
}

html.intro-complete .home .hero-opening-copy > span {
  animation: client-hero-copy-reveal .9s .34s cubic-bezier(.2, .78, .2, 1) both !important;
}

html.intro-complete .home .hero-opening-copy .hero-accent-word {
  animation: client-hero-accent-settle .8s .45s cubic-bezier(.2, .78, .2, 1) both !important;
}

@keyframes client-hero-copy-reveal {
  from { opacity: 0; transform: translateY(24px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes client-hero-accent-settle {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.home .opening-logo {
  opacity: 1 !important;
  filter: drop-shadow(-1px -1px 0 rgba(255, 255, 255, .58)) drop-shadow(3px 4px 3px rgba(9, 21, 29, .4)) !important;
}

@media (min-width: 881px) {
  body.home #footer.site-footer.snap-section {
    min-height: 54svh !important;
    height: auto !important;
    padding-top: 46px !important;
    padding-bottom: 34px !important;
  }

  body.home #footer.site-footer .footer-top img {
    width: 180px !important;
  }

  body.home #footer.site-footer p {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    line-height: 1.65 !important;
  }

  body.home #footer.site-footer small {
    margin-top: 20px !important;
  }
}

.home .exact-contact .contact-title strong {
  color: #263241;
  letter-spacing: -.075em;
}

.home .contact-place > div a.is-registration,
.home .contact-bottom > a {
  border-color: #263241 !important;
  background: #263241 !important;
  color: #fff !important;
}

.home .contact-place > div a.is-registration {
  flex: 1 1 100%;
  justify-content: space-between;
}

body.home .exact-contact .contact-place > div a.is-kakao,
body.home .exact-contact .contact-place.is-active > div a.is-kakao {
  border-color: #fee500 !important;
  background: #fee500 !important;
  color: #191919 !important;
}

body.home .exact-contact .contact-place > div a.is-naver,
body.home .exact-contact .contact-place.is-active > div a.is-naver {
  border-color: #03c75a !important;
  background: #03c75a !important;
  color: #fff !important;
}

body.home .exact-contact .contact-place > div a.is-kakao:hover,
body.home .exact-contact .contact-place > div a.is-kakao:focus-visible {
  border-color: #f4dc00 !important;
  background: #f4dc00 !important;
}

body.home .exact-contact .contact-place > div a.is-naver:hover,
body.home .exact-contact .contact-place > div a.is-naver:focus-visible {
  border-color: #02b351 !important;
  background: #02b351 !important;
}

body.home .exact-contact .contact-map-shell {
  aspect-ratio: 886 / 736 !important;
}

@media (min-width: 881px) {
  body.home .exact-contact {
    height: auto !important;
    min-height: 100svh !important;
    padding-bottom: 42px !important;
  }

  body.home .exact-contact .contact-title,
  body.home .exact-contact .contact-bottom {
    width: min(900px, calc(100% - 80px)) !important;
    max-width: 900px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.home .exact-contact .contact-map-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(900px, calc(100% - 80px)) !important;
    max-width: 900px !important;
    height: auto !important;
    aspect-ratio: auto !important;
    margin-right: auto !important;
    margin-left: auto !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.home .exact-contact .contact-map-shell {
    width: min(100%, 560px) !important;
    aspect-ratio: 886 / 736 !important;
    margin-right: auto !important;
    margin-left: auto !important;
    border: 1px solid rgba(38, 50, 65, .22) !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(38, 50, 65, .09);
  }

  body.home .exact-contact .contact-place-list {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    margin-top: 14px;
  }

  body.home .exact-contact .contact-place {
    min-height: 190px;
    padding-bottom: 64px !important;
    border: 1px solid rgba(38, 50, 65, .18) !important;
  }
}

@media (max-width: 880px) {
  body.home .exact-contact .contact-map-shell {
    margin-right: auto !important;
    margin-left: auto !important;
  }

  body.home .contact-place > div a.is-registration {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.intro-complete .home .hero-opening-copy .hero-slogan-line,
  html.intro-complete .home .hero-opening-copy h1 em,
  html.intro-complete .home .hero-opening-copy > span,
  html.intro-complete .home .hero-opening-copy .hero-accent-word {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Keep contractor labels and names together in the customer form footer. */
.customer-company-line {
  display: inline-block;
}

.customer-company-builder::before {
  content: " · ";
  white-space: pre;
}

.customer-company-contact {
  display: block;
}

@media (max-width: 700px) {
  .customer-company-line {
    display: block;
    white-space: nowrap;
  }

  .customer-company-builder::before {
    content: none;
  }
}

/* Directions-page map buttons: neutralise legacy link spacing and keep brand treatment aligned. */
body:not(.home) main.detail-page--directions .directions-visit-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 16px 0 0 !important;
  gap: 10px !important;
}

body:not(.home) main.detail-page--directions .directions-visit-actions a {
  display: flex !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 42px 0 18px !important;
  position: relative !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -.02em !important;
  text-decoration: none !important;
}

body:not(.home) main.detail-page--directions .directions-visit-actions a span {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
}

body:not(.home) main.detail-page--directions .directions-visit-actions a b {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  color: inherit !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}

body:not(.home) main.detail-page--directions .directions-visit-actions .is-kakao {
  border: 1px solid #e8d000 !important;
  background: #fee500 !important;
  color: #191919 !important;
}

body:not(.home) main.detail-page--directions .directions-visit-actions .is-naver {
  border: 1px solid #02b351 !important;
  background: #03c75a !important;
  color: #fff !important;
}

@media (min-width: 768px) {
  body:not(.home) main.detail-page--directions .directions-visit-actions {
    min-width: 340px !important;
  }
}

@media (max-width: 480px) {
  body:not(.home) main.detail-page--directions .directions-visit-actions {
    margin-top: 12px !important;
    gap: 8px !important;
  }

  body:not(.home) main.detail-page--directions .directions-visit-actions a {
    min-height: 48px !important;
    padding: 0 38px 0 14px !important;
    font-size: 14px !important;
  }

  body:not(.home) main.detail-page--directions .directions-visit-actions a b {
    right: 13px !important;
    font-size: 15px !important;
  }
}

/* Compact mobile floor-plan flow requested by the client reference. */
@media (max-width: 880px) {
  .home .exact-hero .hero-accent-word {
    color: #263241 !important;
    text-shadow: none !important;
  }

  body:not(.home) main.detail-page--floor-plan #detail-content.brochure-units {
    padding: 16px 15px 34px !important;
    background: #fff !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-tabs {
    margin: 0 0 18px !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-tabs button {
    min-height: 54px !important;
    padding: 8px 5px !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-list {
    gap: 0 !important;
    margin: 0 !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 0 !important;
    border: 0 !important;
    background: #fff !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit[hidden]:not(.is-active) {
    display: none !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-heading {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 6px 12px 6px 16px !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-heading > span {
    display: none !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-heading h3 {
    margin: 0 !important;
    font-size: 36px !important;
    line-height: 1 !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-heading h3 small {
    font-size: 14px !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-heading strong {
    margin: 0 !important;
    padding: 6px 9px !important;
    align-self: center !important;
    font-size: 13px !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-plan {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px 0 8px !important;
    background: #fff !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-plan a {
    display: flex !important;
    width: 100% !important;
    height: 297px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-plan img {
    display: block !important;
    width: min(100%, 310px) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    transform: scale(1.665) !important;
    transform-origin: center !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-data {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-data figure {
    order: -1;
    margin: 0 !important;
    padding: 10px 10px 22px !important;
    border-bottom: 1px solid #e2e5e6 !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-data figure img {
    display: block !important;
    width: auto !important;
    max-width: min(100%, 285px) !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-data figure figcaption {
    margin-top: 9px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-data dl {
    margin: 0 !important;
    padding: 0 !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-data dl > div {
    min-height: 0 !important;
    padding: 13px 2px !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-unit-data dt,
  body:not(.home) main.detail-page--floor-plan .brochure-unit-data dd {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  body:not(.home) main.detail-page--floor-plan .brochure-note {
    margin-top: 18px !important;
    padding-top: 18px !important;
    font-size: 12px !important;
    line-height: 1.65 !important;
  }
}
