/* ============================================
   Contact Page - Scoped Styles
   Root class: .contact-page
   ============================================ */

body {
  margin: 0;
  padding: 0;
}

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

.contact-page {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #1c1c1c;
  color: #fafafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

.contact-header__logo-icon {
  height: 40px;
  width: auto;
  filter: none;
}

.contact-header__logo-text {
  height: 30px;
  width: auto;
  filter: none;
}

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

.contact-header__nav-link {
  font-family: "Jost", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.contact-header__nav-link:hover {
  opacity: 0.7;
}

.contact-header__nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #bda600;
}

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

.contact-header__lang-btn {
  font-family: "Jost", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.contact-header__mobile-bar {
  display: none;
}

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

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

/* ============================================
   Main Layout
   ============================================ */
.contact-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 88px; /* header height */
}

/* ============================================
   Left: Hero Image
   ============================================ */
.contact-main__image {
  position: relative;
  flex: 0 0 56.25%; /* ~1080/1920 */
  height: 670px;
  overflow: hidden;
}

.contact-main__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-main__overlay {
  position: absolute;
  inset: 0;
  background: rgba(51, 51, 51, 0.6);
  mix-blend-mode: multiply;
}

/* ============================================
   Right: Contact Info
   ============================================ */
.contact-main__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 60px 80px;
}

.contact-main__title {
  font-family: "Jost", "Century Gothic", "Trebuchet MS", Arial, sans-serif !important;
  font-size: 54px;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

/* ============================================
   Offices
   ============================================ */
.contact-offices {
  display: flex;
  gap: 60px;
}

.contact-office {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 222px;
  flex-shrink: 0;
}

.contact-office__name {
  font-family: "Montserrat", sans-serif !important;
  font-size: 16px;
  font-weight: 700;
  color: #fafafc;
  line-height: 1.5;
}

.contact-office__address {
  font-family: "Montserrat", sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  color: #999;
  line-height: 1.5;
}

.contact-office__map-link {
  font-family: "Montserrat", sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  color: #fafafc;
  text-decoration: underline;
  line-height: 1.5;
}

/* ============================================
   Divider
   ============================================ */
.contact-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   Email and Phone
   ============================================ */
.contact-channels {
  display: flex;
  gap: 60px;
  align-items: flex-end;
}

.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 222px;
  flex-shrink: 0;
}

.contact-channel__label {
  font-family: "Montserrat", sans-serif !important;
  font-size: 16px;
  font-weight: 700;
  color: #fafafc;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

.contact-channel__details {
  display: flex;
  flex-direction: column;
}

.contact-channel__text {
  font-family: "Montserrat", sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  color: #999;
  line-height: 1.5;
}

/* iOS Safari auto-wraps numbers/dates that look like phones/addresses in
   <a> tags — override their default blue/underline so they look like text.
   Covers both the contact-channel block (phone/email) and the office
   address paragraph (where the Japanese postal code gets auto-detected). */
.contact-channel__text a,
.contact-channel__text a:visited,
.contact-office__address a,
.contact-office__address a:visited {
  color: inherit;
  text-decoration: none;
}

.contact-channel__link {
  font-family: "Montserrat", sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  color: #fafafc;
  text-decoration: underline;
  line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */
.contact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

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

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

.contact-footer__link {
  transition: opacity 0.3s ease;
}

.contact-footer__link:hover {
  opacity: 0.7;
}

.contact-footer__right {
  display: flex;
}

/* ============================================
   RWD - Tablet
   ============================================ */
@media (max-width: 1024px) {
  .contact-header {
    padding: 20px 24px;
  }
  .contact-header__nav {
    gap: 32px;
  }

  .contact-main {
    flex-direction: column;
    padding-top: 88px;
  }

  .contact-main__image {
    flex: 0 0 auto;
    height: 400px;
  }

  .contact-main__info {
    padding: 48px 40px;
  }

  .contact-main__title {
    font-size: 42px;
  }

  .contact-footer {
    padding: 20px 24px;
  }
  .contact-footer__left {
    gap: 32px;
  }
}

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

  .contact-header__nav,
  .contact-header__lang {
    display: none;
  }

  .contact-header__logo {
    width: auto;
    gap: 4px;
  }
  .contact-header__logo-icon {
    height: 20px;
  }
  .contact-header__logo-text {
    height: 15px;
    margin-top: 3px;
  }

  .contact-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;
  }

  /* Main: stacked, hero becomes banner */
  .contact-main {
    flex-direction: column;
    padding-top: 0;
  }

  .contact-main__image {
    flex: 0 0 auto;
    width: 100%;
    height: 232px;
  }

  .contact-main__info {
    padding: 0 20px 60px;
    gap: 32px;
  }

  .contact-main__title {
    font-size: 40px;
    margin-top: -24px;
    position: relative;
    z-index: 2;
  }

  .contact-offices {
    flex-direction: column;
    gap: 24px;
  }

  .contact-office {
    width: 100%;
  }

  .contact-office__address,
  .contact-office__map-link {
    font-size: 14px;
  }

  .contact-channels {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .contact-channel {
    width: 100%;
  }

  .contact-channel__text,
  .contact-channel__link {
    font-size: 14px;
  }

  /* Footer: centered grid */
  .contact-footer {
    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;
  }
  .contact-footer__left {
    display: contents;
  }
  .contact-footer__right {
    display: contents;
  }
  .contact-footer__text {
    grid-area: year;
  }
  .contact-footer__right .contact-footer__link {
    grid-area: linkedin;
  }
  .contact-footer__left a:nth-of-type(1) {
    grid-area: privacy;
  }
  .contact-footer__left a:nth-of-type(2) {
    grid-area: legal;
  }

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

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

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