/*-----------------------------------*\
    #ABOUT HEADER
\*-----------------------------------*/

.about-header-section {
  width: 100%;
  min-height: 456px;
  height: auto;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  margin-top: -128px;
  padding-top: 128px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 100px;
}

.about-title-text {
  margin-top: 48px;
  font-size: 64px;
  line-height: 70px;
  text-align: center;
  font-weight: var(--semiBold);
  color: var(--neutral-green-01);
  z-index: 10;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
}

/*-----------------------------------*\
    #ABOUT IMAGES
\*-----------------------------------*/
.about-images-container {
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: -120px 80px 64px 80px;
}

.about-image {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 240px;
  height: 240px;
  border-radius: 20px;
  object-fit: cover;
  /* crop instead of stretch */
  object-position: center;
  /* center the crop */
  display: block;
  /* avoids inline-gap quirks */
}

.about-images-container::-webkit-scrollbar {
  display: none;
}

.about-images-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
  border-radius: 20px;
}

/*-----------------------------------*\
    #ABOUT MAIN
\*-----------------------------------*/

.about-main-section {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 128px;
}

.about-main-width-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 80px;
  width: 1280px;
}

.about-text-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.about-text-header {
  max-width: 510px;
  font-size: 26px;
  line-height: 34px;
  font-weight: var(--semiBold);
  color: var(--dark-green-02);
}

.text-green {
  font-size: 26px;
  line-height: 34px;
  font-weight: var(--semiBold);
  color: var(--brand-green-01);
}

.about-paragraph {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.5px;
  color: var(--dark-green-02);
  max-width: 585px;
}

/*-----------------------------------*\
    #ABOUT NUMBERS
\*-----------------------------------*/

.about-numbers-section {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  background-color: #e4ebe0;
  flex-wrap: nowrap;
  /* don't wrap the cards */
}

.about-number-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-direction: column;
}

.about-number {
  font-size: 104px;
  line-height: 104px;
  font-weight: var(--bold);
  color: var(--brand-green-02);
}

.about-number-placeholder {
  font-size: 18px;
  line-height: 18px;
  font-weight: var(--medium);
  color: var(--neutral-14);
  text-align: center;
}

.about-numbers-separator {
  width: 1px;
  height: 88px;
  background-color: var(--neutral-04);
  flex-shrink: 0;
}

.main-button-arrow-icon.about {
  transform: rotate(45deg);
}

.main-button:is(:hover, :focus-visible, :focus-within)
  .main-button-arrow-icon.about {
  transform: rotate(450deg);
}

#ABOUT-TEAM {
  scroll-margin-top: 96px;
}

/*-----------------------------------*\
    #ABOUT TEAM
\*-----------------------------------*/

.team-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0 64px 0;
  width: 100%;
  height: auto;
}

.team-width-container {
  width: 1280px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 64px;
}

.team-titles-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.team-main-title {
  font-size: 56px;
  line-height: 56px;
  font-weight: var(--semiBold);
  height: 60px;
  text-align: center;
}

.team-description-text {
  font-size: 20px;
  line-height: 20px;
  font-weight: var(--semiBold);
  color: var(--neutral-12);
  text-align: center;
}

.team-grid-container {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.team-member-card {
  width: 100%;
  height: 376px;
  border-radius: 20px;
  background-color: #cbd1ca;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  padding: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-direction: column;
  transition: 0.5s;
}

.team-member-card:is(:hover, :focus-visible, :focus-within) {
  transform: scale(1.05);
}

.team-member-info-container {
  width: 100%;
  min-height: 62px;
  height: auto;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  border-radius: 12px;
  background-color: #f0f4eee5;
  border: solid 1px var(--neutral-05);
  padding: 12px;
}

.team-member-info-container.desktop {
  display: flex;
}

.team-member-info-container.mobile {
  display: none;
}

.team-member-name {
  font-size: 16px;
  line-height: 16px;
  font-weight: var(--semiBold);
  color: var(--dark-green-02);
  text-align: center;
}

.team-member-position {
  font-size: 14px;
  line-height: 14px;
  font-weight: var(--medium);
  color: var(--neutral-10);
  text-align: center;
}

.linkedin-button-team-member {
  margin-bottom: auto;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--brand-green-02);
}

.linkedin-icon-team-member {
  width: 28px;
  height: 28px;
  filter: var(--filter-white);
  transition: transform 1s;
}

/* when expanded (minus), shrink just the icon */
.team-member-card.expanded .linkedin-icon-team-member {
  width: 20px;
  height: 20px;
}

.linkedin-button-team-member:is(:hover, :focus-visible, :focus-within) {
  background-image: url("../images/Gradient/gradient.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  scale: 1.05;
}

.linkedin-button-team-member:is(:hover, :focus-visible, :focus-within)
  .linkedin-icon-team-member {
  transform: rotate(360deg);
}

/* ---------- TEAM CARD — expandable state ---------- */
.team-member-card {
  position: relative;
  overflow: hidden;
}

/* Keep your real SVG icon; no generated +/– text */
.linkedin-button-team-member {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--brand-green-02);
  z-index: 2;
  /* keep above overlay */
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.linkedin-icon-team-member {
  width: 28px;
  height: 28px;
  filter: var(--filter-white);
  transition: transform 1s;
}

.linkedin-button-team-member:is(:hover, :focus-visible, :focus-within) {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  scale: 1.05;
}

/* When expanded: remove the button background (transparent icon only) */
.team-member-card.expanded .linkedin-button-team-member {
  background: transparent;
  box-shadow: none;
}

/* Green mode */
.team-member-card.expanded {
  background-image: none !important;
  background-color: var(--brand-green-02);
  transform: none;
}

.team-member-card.expanded:is(:hover, :focus-visible, :focus-within) {
  transform: none;
}

/* Hide the default info when expanded */
.team-member-card.expanded .team-member-info-container {
  opacity: 0;
  pointer-events: none;
}

/* Overlay content in green mode (now split into header + text) */
.team-member-bio {
  position: absolute;
  inset: 12px;
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  text-align: center;
  font-weight: var(--medium);
  z-index: 1;
  /* below the button */
  display: none;
  gap: 14px;
  /* center nicely but leave room for the corner button */
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.team-member-card.expanded .team-member-bio {
  display: flex;
  animation: teamBioFadeIn 0.25s ease;
}

/* Separate containers */
.team-member-bio__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.team-member-bio__name {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-align: center;

  color: white;
}

.team-member-bio__role {
  font-size: 13px;
  line-height: 16px;
  opacity: 0.95;
  color: white;
}

.team-member-bio__text {
  max-width: 90%;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: #e5e5e5;
}

@keyframes teamBioFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DARK MODE */

:root[data-theme="dark"] .about-paragraph {
  color: var(--neutral-green-03);
}

:root[data-theme="dark"] .about-text-header {
  color: var(--neutral-green-01);
}

:root[data-theme="dark"] .about-numbers-section {
  background-color: #181f14;
}

:root[data-theme="dark"] .about-number {
  color: var(--neutral-green-01);
}

:root[data-theme="dark"] .about-number-placeholder {
  color: var(--neutral-green-03);
}

:root[data-theme="dark"] .about-numbers-separator {
  background-color: var(--neutral-17);
}

:root[data-theme="dark"] .team-description-text {
  color: var(--neutral-green-03);
}

:root[data-theme="dark"] .team-member-info-container.mobile {
  background-color: var(--dark-green-02);
  border: solid 1px var(--neutral-18);
}

:root[data-theme="dark"] .team-member-info-container.mobile .team-member-name {
  color: var(--neutral-green-01);
}

@media (max-width: 1280px) {
  .about-images-container,
  .about-main-width-container,
  .team-width-container {
    width: 1000px;
  }

  .about-numbers-section {
    gap: 32px;
  }
}

@media (max-width: 1080px) {
  .about-images-section,
  .about-main-section,
  .team-section,
  .about-numbers-section {
    padding-left: 48px;
    padding-right: 48px;
  }

  .about-images-container,
  .about-main-width-container,
  .team-width-container {
    width: 100%;
  }

  .about-images-container {
    width: 100%;
    margin: -120px 0px 64px 0px;
  }

  .about-number-container {
    height: 100%;
    justify-content: flex-start;
  }

  .about-number {
    font-size: 72px;
    line-height: 72px;
  }

  .about-numbers-section {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: repeat(2, 1fr);
    height: fit-content;
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 32px;
  }

  .about-numbers-separator {
    display: none;
  }

  .team-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 970px) {
  .about-images-section,
  .about-main-section,
  .team-section,
  .about-numbers-section {
    padding-left: 32px;
    padding-right: 32px;
  }

  .about-image {
    width: 200px;
    height: 200px;
  }

  /* .about-numbers-section {
    justify-content: flex-start;
    gap: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    margin-bottom: -8px;
  }

  .about-number-container {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }

  .about-numbers-separator {
    flex: 0 0 1px;
  }

  .about-numbers-section::-webkit-scrollbar {
    display: none;
  }
  .about-numbers-section {
    scrollbar-width: none;
  } */
}

@media (max-width: 820px) {
  .team-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-text-container {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 700px) {
  .about-images-section,
  .about-main-section,
  .team-section,
  .about-numbers-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .team-section {
    padding-top: 64px;
  }

  .team-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .team-width-container {
    gap: 40px;
  }

  .about-header-section {
    min-height: 240px;
  }

  .about-images-container {
    margin: -64px 0 64px 0;
    border-radius: 20px;
    gap: 16px;
  }

  .about-title-text {
    font-weight: 600;
    font-size: 26px;
    line-height: 28px;
    text-align: center;
  }

  .about-image {
    width: 160px;
    height: 160px;
  }

  .about-main-section {
    padding-bottom: 64px;
  }

  .about-text-header,
  .text-green {
    font-size: 20px;
    line-height: 28px;
    letter-spacing: 0px;
  }

  .about-paragraph {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 1px;
  }

  .team-main-title {
    font-size: 28px;
    line-height: 28px;
    height: unset;
  }

  .team-description-text {
    font-size: 14px;
    line-height: 14px;
  }
}

@media (max-width: 500px) {
  .about-images-section,
  .about-main-section,
  .team-section,
  .about-numbers-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .big-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .team-member-card {
    height: 228px;
  }

  .team-member-bio__header {
    display: none;
  }

  .team-member-info-container.desktop {
    display: none;
  }

  .team-member-info-container.mobile {
    display: flex;
    min-height: 72px;
    padding: 8px;
  }

  .team-member-name {
    font-size: 14px;
    line-height: 18px;
  }

  .team-member-position {
    font-size: 12px;
    line-height: 12px;
  }

  .linkedin-button-team-member {
    width: 32px;
    height: 32px;
  }

  .linkedin-icon-team-member {
    width: 16px;
    height: 16px;
  }

  .team-member-card.expanded .linkedin-icon-team-member {
    width: 14px;
    height: 14px;
  }

  .team-member-bio__text {
    max-width: unset;
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    color: #e5e5e5;
  }

  .about-number {
    font-size: 48px;
    line-height: 48px;
  }

  .about-number-placeholder {
    font-size: 14px;
    line-height: 16px;
  }
}

@media (max-width: 380px) {
  .team-grid-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .team-member-card {
    height: 360px;
  }
}
