
/* ===========================
   About Us Page
   =========================== */

.about-page {
  /* background-color: #ffffff; */
}

/* Hero Section */
.about-hero {
  padding: 110px 0;
  background-color: var(--color-bg-page);
}

.about-hero__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0px;
}

.about-hero__intro {
  margin-bottom: 60px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 0 40px;

  .brandmark-logo {
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
  img {
        width: 100%;
        max-width: 100px;
      }
}
}

.brandmark-logo > img:hover {
  transform: none;
}

.brandmark-logo-show-everywhere {
  justify-content: flex-end;
  /* align-items: flex-end;
  width: 100%; */
  display: contents;
  img {
        width: 50px;
        max-width: 100px;
      }
}


.about-hero__title {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-text-dark);
  margin: 0 0 0px 0;
  max-width: 100%;
}

.about-hero__text {
  font-size: 18px;
  line-height: 1.6;
  color: #666;
  max-width: 70%;
}

.about-hero__text p {
  margin: 0 0 16px 0;
}

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

.about-hero__image {
  width: 100%;
  margin-bottom: 60px;
  border-radius: 8px;
  overflow: hidden;
  animation: scaleIn 1.2s ease-out forwards;
  transition: transform 0.3s ease;
}

.about-hero__image img,
.about-hero__video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.about-hero__quote-section {
  /* max-width: 900px; */
}

.about-hero__quote-container {
  display: grid;
  grid-template-columns: 230px 4fr;
  gap: 40px;
  align-items: start;
  padding: 0 20px !important;
}

.about-hero__quote-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-hero__quote-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text-dark);
  margin: 0;
  white-space: nowrap;
}

.about-hero__quote-divider {
  width: 1px;
  height: 100%;
  background-color: #e0e0e0;
}

.about-hero__quote-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 2rem;
  width: 65%;
}

.about-hero__quote-content--how-it-works {
  padding-top: 84px;
}

.about-hero__quote-content::before { content:'';
  position:absolute; left:0; top:0;
  width:1px; height:100%;
  background:#000;
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.6s ease-out; }
.about-hero__quote-content.scroll-reveal.is-visible::before {
  transform: scaleY(1);
  transition-delay: 0.2s;
 }

.about-hero__quote-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

.about-hero__quote-cta {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #1a1a1a;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
  margin-top: 8px;
}

.about-hero__quote-cta:hover {
  background-color: var(--color-text-dark);
  color: #ffffff;
}

/* Media Block Component - Reusable left image + right content block */
.media-block {
  padding: 20px 0;
  background-color: var(--color-bg-page);
}

.media-block__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: center;
}

.media-block__media {
  border-radius: 4px;
  overflow: hidden;
}

.media-block__media img {
  width: 100%;
  height: auto;
  display: block;
    animation: scaleIn 1.2s ease-out forwards;

}

.media-block__content {
    height: 100%;
    padding: 0 2rem;
    position: relative;
}

.media-block__content::before { content:'';
  position:absolute; left:0; top:0;
  width:1px; height:100%;
  background:#000;
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.6s ease-out;
 }
.media-block__content.scroll-reveal.is-visible::before {
  transform: scaleY(1);
  transition-delay: 0.5s;
}

.media-block__title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-dark);
  margin: 0 0 24px 0;
}

.media-block__description {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
}

.media-block__description p {
  margin: 0 0 16px 0;
}

.media-block__description p:last-child {
  margin-bottom: 0;
}

/* Team Grid Section */
.about-team-grid {
  padding: 40px 0;
  background-color: var(--color-bg-page);
}

.about-team-grid__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-team-grid__title {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-dark);
  margin: 0 0 60px 0;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  row-gap: 32px;
}

.team-member {
  padding-right: 16px;
  border-right: 1px solid var(--color-secondary);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-member:hover {
  /* transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); */
}

.team-member__image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #e0e0e0;
}

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

.team-member__placeholder {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
}

.team-member__content {
  padding: 24px 6px 0 0;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-member__name {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-text-dark);
  margin: 0 0 8px 0;
}

.team-member__role {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  color: #666;
  margin: 0 0 16px 0;
}

.team-member__description {
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-text-dark);
  font-weight: 300;
  margin: 0 0 0px 0;
      display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow-y: scroll;
    -webkit-line-clamp: 8;
}

.team-member__description p {
  margin: 0 0 12px 0;
}

.team-member__description p:last-child {
  margin-bottom: 0;
}

.team-member__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
      min-height: 30px;
}

.team-member__action-link {
  font-size: 14px;
  color: var(--color-text-dark);
  text-decoration: underline;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.team-member__action-link:hover {
  color: #666;
}

.team-member__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #f0f0f0;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  margin-left: auto;
}

.team-member__linkedin:hover {
  background-color: #e0e0e0;
}

.team-member__linkedin img {
  width: 18px;
  height: 18px;
}

.team-member__bio {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.no-team-members {
  color: #666;
  font-style: italic;
  text-align: center;
  padding: 40px 20px;
  grid-column: 1 / -1;
  font-size: 16px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .about-hero__intro {
    flex-direction: column;
    gap: 20px;
        padding: 0 0px;
        margin-bottom: 0;
  }
  .about-hero__quote-content {
    width: 100%;
    padding-left: 0;
    border-left: none;
  }
    .about-hero__quote-content::before { display:none; }
  .about-hero__title {
    font-size: 24px;
    max-width: 100%;
  }

  .about-hero__video {
    height: 100%;
    background-size: cover;
    width: auto;    
}

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

  .about-hero__quote-main {
    font-size: 32px;
  }

  .media-block__container {
    gap: 60px;
  }
  .media-block__content {
    padding: 0 0px;
  }

  .media-block__content::before { display:none; }

  .team-member {
    padding-right: 0px;
    border-right: none;
  }

  .top-level {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
  }
  
  .top-level::after {
    content: "";
    position: absolute;
    right: 0px;
    top: 0;
    width: 21px;
    height: 21px;
    background: url(/wp-content/themes/rj-theme/assets/icons/down-arrow-black.svg) no-repeat center / contain;
    pointer-events: none;
    transition: transform 0.3s ease;
  }

  .team-member--open .top-level::after {
    transform: rotate(180deg);
  }

  /* Hide description and actions by default on mobile */
  .team-member__description,
  .team-member__actions {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .team-member__content {
    height: auto;
  }
  
  /* Show when open with animation */
  .team-member--open .team-member__description,
  .team-member--open .team-member__actions {
    display: flex;
    animation: slideDownFade 0.3s ease-out forwards;
  }

  .team-role {
    width: 70%;
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .about-hero__quote-content--how-it-works {
    padding-top: 0px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 60px 0;
  }

  .about-hero__container {
    padding: 0 20px;
  }

  .about-hero__title {
    font-size: 32px;
    max-width: 100%;
  }

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

  .about-hero__quote-main {
    font-size: 24px;
  }

  .media-block {
    padding: 20px 0;
  }

  .media-block__container {
    padding: 0 20px;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .media-block__title {
    font-size: 28px;
  }

  .about-team-grid {
    padding: 20px 0;
  }

  .about-team-grid__container {
    padding: 0 20px;
  }

  .about-team-grid__title {
    font-size: 32px;
    margin-bottom: 40px;
  }

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

@media (max-width: 480px) {

  .brandmark-logo {
    display: none;
  }
  .about-hero__title {
    font-size: 28px;
  }

  .about-hero__quote-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-hero__quote-header {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .about-hero__quote-divider {
    width: 100%;
    height: 1px;
  }

  .about-hero__quote-main {
    font-size: 20px;
  }

  .media-block__title,
  .about-team-grid__title {
    font-size: 28px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
