/* ===========================
   ABOUT.CSS — Kteam Architects
   =========================== */

/* ============================================================
   NAV — standalone on about page
   ============================================================ */
.nav {
  background: var(--color-cream);
}

/* ============================================================
   SHARED BODY TEXT
   ============================================================ */
.about__body-text {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: #505050;
  margin: 0;
}


/* ============================================================
   ABOUT HERO
   ============================================================ */
.about-hero .section__main {
  gap: 48px;
}

/* Two headings stacked vertically */
.about-hero__heading {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.about-hero__h1 {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  color: #000;
  max-width: 55%;
  margin: 0;
}

.about-hero__h2 {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  color: #000;
  text-align: right;
  width: 100%;
  margin: 0;
}

/* Body: text block + video placeholder — centered, stacked */
.about-hero__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: 800px;
  width: 100%;
}

.about-hero__text {
  max-width: 40%;
  width: 100%;
}

.about-hero__video {
  max-width: 40%;
  width: 100%;
  flex: 1;
  background: #f3f0e1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.about-hero__video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 1;
	object-fit: cover;
  cursor: pointer;
}

.about-hero__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(1);
  z-index: 2;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.about-hero__play.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
}


/* ============================================================
   PHILOSOPHY
   ============================================================ */
.phil__main {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 48px;
  width: 100%;
}

/* Left col */
.phil__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.phil__title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.15;
  color: #000;
  margin: 0;
}

/* Accordion */
.phil__accordion {
  display: flex;
  flex-direction: column;
}

.phil-item {
  border-bottom: 1px solid var(--color-border);
}

.phil-item__row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
}

.phil-item__num {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: #888888;
  letter-spacing: 1.68px;
  line-height: 1.3;
  flex-shrink: 0;
}

.phil-item__text {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: #000;
  flex: 1;
}

/* Images row */
.phil__images {
  display: flex;
  gap: 24px;
}

.phil__img-sm {
  flex: 0 0 40%;
  height: 160px;
  position: relative;
  overflow: hidden;
}

.phil__img-lg {
  flex: 1;
max-width: 424px;
  position: relative;
  overflow: hidden;
}

.phil__img-sm img,
.phil__img-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* Right col */
.phil__right {
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-width: 0;
}

.phil__right-image {
  position: relative;
  overflow: hidden;
}

.phil__right-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}




/* ============================================================
   APPROACH (dark background section)
   ============================================================ */
.about-approach {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.about-approach__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}



.about-approach__inner {
  position: relative;
  z-index: 2;
  display: flex;
}

.about-approach__rail {
  border-right-color: var(--color-border);
}

.about-approach__label {
  color: var(--color-border);
}

.about-approach__main {
  flex: 1;
  padding: clamp(60px, 7.94vw, 120px) clamp(24px, 3.17vw, 48px) clamp(60px, 7.94vw, 120px) 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-approach__title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin: 0;
}

.about-approach__grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-approach__row {
  display: flex;
  gap: 48px;
	width: 75%;
}

.about-approach__row--right {
  justify-content: flex-end;
	margin-left: auto;
}

.about-approach__card {
  flex: 0 0 calc(50% - 24px);
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
	min-height: 170px;
}

.about-approach__card-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: #000;
}

.about-approach__card-desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: #505050;
  margin: 0;
}


/* ============================================================
   CREDENTIALS
   ============================================================ */
.cred__main {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 48px;
  width: 100%;
}

.cred__photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

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

.cred__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-width: 0;
}

.cred__h2 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.23vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  color: #000;
  margin: 0;
}

.cred__table {
  display: flex;
  flex-direction: column;
}

.cred__row {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.cred__cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;

  justify-content: center;
}

.cred__cell--right {
  padding-left: 24px;
  border-left: 1px solid var(--color-border);
}

.cred__cell-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: #000;
}

.cred__cell-desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: #505050;
  margin: 0;
}


/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert__main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  align-items: flex-end;
}

.cert__images {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.cert__images::-webkit-scrollbar {
  display: none;
}

.cert__image {
display: flex;
align-items:center;
justify-content:center;
  height: auto;
  flex: 0 0 calc((100% - 24px) / 2);
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden;
}

.cert__image img {
  display: block;
  width: 100%;
  height: auto;
}

.cert__nav {
  display: flex;
  gap: 12px;
}

.cert__nav--mobile-only {
  display: none;
}


/* ============================================================
   TEAM
   ============================================================ */
.team__main {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.team__title-wrap {
  max-width: 55%;
}

.team__title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.15;
  color: #000;
  margin: 0;
}

.team__row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.team-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  min-width: 0;
}

.team-card--hidden {
  opacity: 0;
  pointer-events: none;
}

.team-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f0e1;
}

.team-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: #000;
}

.team-card__role {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.92px;
  line-height: 1.4;
  color: #888888;
  text-transform: lowercase;
}


/* ============================================================
   FAQ — About page (Lora 24px questions)
   ============================================================ */
.about-faq__title {
  max-width: 55%;
}

.about-faq__list .faq__q-text {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: #000;
}


/* ============================================================
   TEAM HEADER (title + nav buttons row)
   ============================================================ */
.team__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.team__nav {
  display: none; /* hidden on desktop */
  gap: 12px;
  flex-shrink: 0;
}

.team__cards-scroll {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}


/* ============================================================
   MOBILE — @media (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {

  /* ---- HERO ---- */
	.about-hero__heading{
		gap: 24px;
	}
  .about-hero__h1,
  .about-hero__h2 {
    font-size: 40px;
    max-width: 350px;

  }
	.about-hero__h2 {
		margin-left: auto;
	}

  .about-hero__body {
    flex-direction: column;
    min-height: auto;
    gap: 24px;
  }

  .about-hero__text {
    max-width: 100%;
  }

  .about-hero__video {
    max-width: 100%;
    min-height: 524px;
  }
	.about-hero .section__main {
  gap: 24px;
}

  /* ---- PHILOSOPHY ---- */
  .phil__main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .phil__title {
    font-size: 32px;
  }

  .phil__left {
    gap: 24px;
  }

  .phil__images {
    flex-direction: column;
    gap: 16px;
  }

  .phil__img-sm,
  .phil__img-lg {
    flex: none;
    width: 100%;
    height: 120px;
  }

  .phil__right {
    gap: 24px;
  }

  .phil__right-image {
    aspect-ratio: auto;
    height: 358px;
  }

  /* ---- APPROACH ---- */
  .about-approach__inner {
    flex-direction: column;
  }

  .about-approach__rail {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: none;
    padding: 48px 16px 0;
    justify-content: flex-start;
    align-items: flex-start;
    align-self: auto;
  }

  .about-approach__rail .section__label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    padding: 0;
  }

  .about-approach__main {
    padding: 16px 16px 48px;
    gap: 24px;
  }

  .about-approach__title {
    font-size: 32px;
  }

  .about-approach__grid {
    gap: 16px;
  }

  .about-approach__row {
    gap: 16px;
		width: 100%;
		flex-direction: column;
  }

  .about-approach__row--right {
    gap: 24px;
  }

  .about-approach__card {
    flex: 1;
    min-height: 170px;
  }

  /* ---- CREDENTIALS ---- */
  .cred__main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cred__photo {
    aspect-ratio: auto;
    height: 488px;
  }

  .cred__h2 {
    font-size: 40px;
  }
	.cred__row {
		flex-direction: column;
		border-bottom: 0px solid var(--color-border);

	}
	.cred__cell--right{
		border-left: 0 solid var(--color-border);
		padding-left: 0;
	}
	.cred__cell{
		border-bottom: 1px solid var(--color-border);
		padding-bottom: 24px;
		margin-top: 0;
	}

  /* ---- CERTIFICATIONS ---- */
  .cert__images {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 0;
  }

  .cert__images::-webkit-scrollbar { display: none; }

  .cert__image {
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: auto;
  }

  .cert__nav {
    width: 100%;
    justify-content: flex-end;
  }

  .cert__nav--mobile-only {
    display: flex;
  }

  /* ---- TEAM ---- */
  .team__title-wrap {
    max-width: 100%;
  }

  .team__title {
    font-size: 32px;
  }

  .team__nav {
    display: flex;
  }

  .team__cards-scroll {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex-direction: row;
    gap: 0;
  }

  .team__cards-scroll::-webkit-scrollbar { display: none; }

  .team__row {
    display: contents;
  }

  .team-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    opacity: 1 !important;
    pointer-events: auto !important;
    border-bottom: 1px solid var(--color-border);
  }

  .team-card__image {
    aspect-ratio: auto;
    height: 358px;
  }

  .team-card__name {
    font-size: 32px;
  }

  /* ---- FAQ ---- */
  .about-faq__title {
    max-width: 100%;
  }

  .about-faq__list .faq__q-text {
    font-size: 18px;
  }
}
