/* ============================================
   About Page - Scoped Styles
   Root class: .about-page
   Font: Jost (with fallbacks)
   ============================================ */

@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

/* --- Reset (scoped) --- */
body {
  margin: 0;
  padding: 0;
}

.about-page {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #fafafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* --- Header --- */
.about-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

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

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

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

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

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

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

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

.about-header__lang {
  flex-shrink: 0;
}

.about-header__lang-btn {
  font-family: "Jost", "Trebuchet MS", sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #003057;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.about-header__lang-btn:hover {
  opacity: 0.7;
}

/* --- About Intro Section --- */
.about-intro {
  padding: 60px 204px 80px;
}

.about-intro__title {
  font-family: "Jost", "Trebuchet MS", sans-serif !important;
  font-weight: 500;
  font-size: 54px;
  line-height: 1;
  color: #003057;
  margin-bottom: 48px;
}

.about-intro__columns {
  display: flex;
  gap: 40px;
}

.about-intro__left {
  flex: 0 0 736px;
  max-width: 736px;
}

.about-intro__left p {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #333333;
  margin-bottom: 16px;
}

.about-intro__left p:last-child {
  margin-bottom: 0;
}

.about-intro__right {
  flex: 1;
}

.about-intro__block {
  margin-bottom: 32px;
}

.about-intro__block:last-child {
  margin-bottom: 0;
}

.about-intro__block h3 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: #333333;
  margin-bottom: 8px;
}

.about-intro__block p {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #333333;
}

/* --- Banner --- */
.about-banner {
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.about-banner__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* --- Team Section --- */
.about-team {
  padding: 80px 204px;
}

.about-team__title {
  font-family: "Jost", "Trebuchet MS", sans-serif !important;
  font-weight: 500;
  font-size: 54px;
  line-height: 1;
  color: #003057;
  margin-bottom: 20px;
}

.about-team__group {
  margin-bottom: 32px;
}

.about-team__group:last-child {
  margin-bottom: 0;
}

.about-team__subtitle {
  font-family: "Jost", "Trebuchet MS", sans-serif !important;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.5;
  color: #003057;
  margin-bottom: 20px;
}

/* CEO Grid */
.about-team__ceo-grid {
  display: flex;
  gap: 100px;
}

.about-team__member--ceo {
  display: flex;
  gap: 24px;
  flex: 1;
  align-items: flex-end;
}

.about-team__photo--ceo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  flex-shrink: 0;
}

.about-team__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-team__name {
  font-family: "Jost", "Trebuchet MS", sans-serif !important;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  color: #003057;
}

.about-team__role {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #003057;
  margin-bottom: 0;
}

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

/* Management / Execution Grid */
.about-team__grid {
  display: flex;
  gap: 100px;
}

.about-team__member:not(.about-team__member--ceo) {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  flex: 1;
  min-width: 0;
}

.about-team__photo:not(.about-team__photo--ceo) {
  width: 264px;
  height: 264px;
  object-fit: cover;
  flex-shrink: 0;
}

.about-team__member:not(.about-team__member--ceo) .about-team__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-team__member:not(.about-team__member--ceo) .about-team__name {
  color: #003057;
  margin-bottom: 0;
}

.about-team__member:not(.about-team__member--ceo) .about-team__role {
  color: #666;
  margin-bottom: 0;
}

/* --- Projects Section --- */
.about-projects {
  padding: 80px 204px;
  position: relative;
}

.about-projects__title {
  font-family: "Jost", "Trebuchet MS", sans-serif !important;
  font-weight: 500;
  font-size: 54px;
  line-height: 1;
  color: #003057;
  margin-bottom: 24px;
}

.about-projects__layout {
  position: relative;
  display: block;
  align-items: center;
}

.about-projects__track-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.about-projects__track-wrapper::-webkit-scrollbar {
  display: none;
}

.about-projects__track {
  display: flex;
  gap: 110px;
}

.about-projects__card {
  display: block;
  flex: 0 0 431px;
  min-width: 280px;
  scroll-snap-align: start;
  color: inherit;
  text-decoration: none;
}

.about-projects__card-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
}

.about-projects__card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.about-projects__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-projects__card-city {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Jost", "Trebuchet MS", sans-serif !important;
  font-weight: 700;
  font-size: 80px;
  line-height: 1;
  color: #fff;
  filter: blur(1.5px);
  text-align: center;
  white-space: nowrap;
}

.about-projects__card-year {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #333333;
}

.about-projects__card-desc {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #333333;
}

.about-projects__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s ease;
}

.about-projects__arrow:hover {
  opacity: 0.7;
}

.about-projects__arrow--prev {
  left: -104px;
}

.about-projects__arrow--next {
  right: -104px;
}

/* --- Contact CTA --- */
.about-cta {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  margin-bottom: 80px;
}

.about-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.about-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.about-cta__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

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

.about-cta__link {
  font-family: "Jost", "Trebuchet MS", sans-serif !important;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.5;
  color: #fff;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.about-cta__link:hover {
  opacity: 0.7;
}

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

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

.about-footer__text,
.about-footer__link {
  font-family: "Jost", "Trebuchet MS", sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #003057;
  white-space: nowrap;
}

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

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

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

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

.about-header__mobile-lang {
  font-family: "Jost", "Trebuchet MS", sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #d0d0d0;
  white-space: nowrap;
}

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

@media (max-width: 1600px) {
  .about-team {
    padding: 80px 120px;
  }

  .about-team__grid {
    gap: 40px;
  }

  .about-team__photo:not(.about-team__photo--ceo) {
    width: 220px;
    height: 220px;
  }

  .about-projects {
    padding: 80px 120px;
  }

  .about-projects__track {
    gap: 60px;
  }

  .about-projects__card {
    flex: 0 0 360px;
  }
}

@media (max-width: 1440px) {
  .about-intro {
    padding: 60px 100px 80px;
  }

  .about-intro__left {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .about-team {
    padding: 80px 100px;
  }

  .about-projects {
    padding: 80px 100px;
  }

  .about-projects__arrow--prev {
    left: -84px;
  }

  .about-projects__arrow--next {
    right: -84px;
  }

  .about-projects__track {
    gap: 40px;
  }

  .about-projects__card {
    flex: 0 0 320px;
  }

  .about-team__ceo-grid {
    gap: 40px;
  }

  .about-team__member--ceo {
    gap: 20px;
  }

  .about-team__photo--ceo {
    width: 200px;
    height: 200px;
  }

  .about-team__grid {
    gap: 40px;
  }

  .about-team__photo:not(.about-team__photo--ceo) {
    width: 200px;
    height: 200px;
  }

  .about-projects__card-city {
    font-size: 60px;
  }
}

@media (max-width: 1280px) {
  .about-intro {
    padding: 60px 80px 80px;
  }

  .about-team {
    padding: 80px 80px;
  }

  .about-projects {
    padding: 80px 80px;
  }

  .about-projects__arrow--prev {
    left: -72px;
  }

  .about-projects__arrow--next {
    right: -72px;
  }

  .about-team__ceo-grid {
    flex-direction: column;
    gap: 40px;
  }

  .about-team__member--ceo {
    gap: 24px;
  }

  .about-team__photo--ceo {
    width: 240px;
    height: 240px;
  }

  .about-team__grid {
    gap: 32px;
  }

  .about-team__photo:not(.about-team__photo--ceo) {
    width: 180px;
    height: 180px;
  }

  .about-projects__track {
    gap: 32px;
  }

  .about-projects__card {
    flex: 0 0 300px;
  }
}

@media (max-width: 1024px) {
  .about-header {
    padding: 20px 24px;
  }

  .about-header__nav {
    gap: 32px;
  }

  .about-intro {
    padding: 40px 40px 60px;
  }

  .about-intro__title {
    font-size: 40px;
  }

  .about-intro__columns {
    flex-direction: column;
  }

  .about-intro__left {
    flex: none;
    max-width: 100%;
  }

  .about-team {
    padding: 60px 40px;
  }

  .about-team__title {
    font-size: 40px;
  }

  .about-team__ceo-grid {
    flex-direction: column;
    gap: 40px;
  }

  .about-team__grid {
    flex-wrap: wrap;
    gap: 40px;
  }

  .about-team__photo--ceo {
    width: 200px;
    height: 200px;
  }

  .about-team__photo:not(.about-team__photo--ceo) {
    width: 180px;
    height: 180px;
  }

  .about-projects {
    padding: 60px 40px 60px 24px;
  }

  .about-projects__track {
    gap: 24px;
  }

  .about-projects__card {
    flex: 0 0 280px;
  }

  .about-projects__title {
    font-size: 40px;
  }

  .about-projects__card-city {
    font-size: 48px;
  }

  .about-cta__title {
    font-size: 40px;
  }

  .about-cta__link {
    font-size: 24px;
  }

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

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

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

  .about-header__nav {
    display: none;
  }

  .about-header__lang {
    display: none;
  }

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

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

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

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

  /* --- Intro Section --- */
  .about-intro {
    padding: 20px;
  }

  .about-intro__title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .about-intro__columns {
    flex-direction: column;
    gap: 24px;
  }

  .about-intro__left {
    flex: none;
    max-width: 100%;
  }

  .about-intro__left p {
    font-size: 14px;
    color: #666;
  }

  .about-intro__block h3 {
    font-size: 14px;
    color: var(--Main-Main-01, #003057);
  }

  .about-intro__block p {
    font-size: 14px;
    color: var(--Main-Main-01, #003057);
  }

  /* --- Banner --- */
  .about-banner {
    height: 240px;
  }

  /* --- Team Section --- */
  .about-team {
    padding: 20px 20px 40px;
  }

  .about-team__title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .about-team__group {
    margin-bottom: 24px;
  }

  /* CEO - same flex layout as management/execution on mobile */
  .about-team__ceo-grid {
    flex-direction: column;
    gap: 24px;
  }

  .about-team__member--ceo {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
  }

  .about-team__member--ceo .about-team__photo--ceo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
  }

  .about-team__member--ceo .about-team__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .about-team__member--ceo .about-team__name {
    font-size: 16px;
    margin-bottom: 0;
  }

  .about-team__member--ceo .about-team__role {
    font-size: 14px;
    margin-bottom: 0;
  }

  .about-team__member--ceo .about-team__bio {
    font-size: 14px;
  }

  .about-team__name {
    font-size: 16px;
  }

  .about-team__role {
    font-size: 14px;
  }

  /* Management / Execution subtitle */
  .about-team__subtitle {
    font-size: 20px;
    margin-bottom: 16px;
  }

  /* Management / Execution grid */
  .about-team__grid {
    flex-direction: column;
    gap: 12px;
  }

  .about-team__member:not(.about-team__member--ceo) {
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
  }

  .about-team__photo:not(.about-team__photo--ceo) {
    width: 120px;
    height: 120px;
  }

  .about-team__member:not(.about-team__member--ceo) .about-team__role {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
  }

  /* --- CTA --- */
  .about-cta {
    height: 240px;
    margin-bottom: 0;
  }

  .about-cta__title {
    font-size: 16px;
  }

  .about-cta__link {
    font-size: 14px;
  }

  .about-cta__content {
    gap: 12px;
  }

  /* Reorder: Team → CTA → Projects on mobile */
  .about-page {
    display: flex;
    flex-direction: column;
  }

  .about-header {
    order: 0;
  }
  .mobile-menu {
    order: 0;
  }
  .about-intro {
    order: 1;
  }
  .about-banner {
    order: 2;
  }
  .about-team {
    order: 3;
  }
  .about-cta {
    order: 4;
  }
  .about-projects {
    order: 5;
  }
  .about-footer {
    order: 6;
  }

  /* --- Projects Section --- */
  .about-projects {
    padding: 20px 20px 60px;
  }

  .about-projects__title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .about-projects__track {
    flex-direction: column;
    gap: 40px;
  }

  .about-projects__card {
    flex: none;
    width: 100%;
  }

  .about-projects__card-text {
    gap: 12px;
    padding-top: 16px;
  }

  .about-projects__card-img {
    aspect-ratio: 1;
  }

  .about-projects__card-city {
    font-size: 80px;
    bottom: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .about-projects__card-year {
    font-size: 16px;
  }

  .about-projects__card-desc {
    font-size: 14px;
  }

  .about-projects__arrow {
    display: none;
  }

  /* --- Footer --- */
  .about-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;
    text-align: center;
  }

  .about-footer__left {
    display: contents;
  }

  .about-footer__right {
    display: contents;
  }

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

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

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

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

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

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

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

/* Extra-small screens: shrink the city label so it fits the narrower card */
@media (max-width: 374px) {
  .about-projects__card-city {
    font-size: 60px;
  }
}
