
/* ==========================================
   YALLA MEDITERRANEO
   ABOUT US PAGE
========================================== */

/* ==========================================
   01 / PAGE OPENING - NO HERO
========================================== */

.about-opening {
  position: relative;
  overflow: hidden;
  padding-block: 85px 32px;
  background: var(--off-white);
}

.about-opening::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -130px;
  width: 350px;
  height: 350px;
  border: 55px solid var(--mist);
  border-radius: 50%;
  opacity: .7;
  pointer-events: none;
}

.about-opening-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: end;
  gap: 75px;
  padding-bottom: 85px;
}

.about-opening h1 {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(3.3rem, 6.7vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.07em;
}

.about-opening h1 span {
  display: block;
}

.about-opening-highlight {
  color: var(--coral);
}

.about-opening-aside {
  padding-bottom: 8px;
}

.about-opening-aside > p {
  max-width: 410px;
  margin-bottom: 30px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.85;
}

.about-opening-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
}

.about-meta-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.about-opening-rule {
  height: 3px;
  background: linear-gradient(
    to right,
    var(--blue) 0 40%,
    var(--saffron) 40% 65%,
    var(--coral) 65% 85%,
    var(--teal) 85% 100%
  );
}

/* ==========================================
   02 / OUR STORY
========================================== */

.about-story {
  background: var(--off-white);
}

.about-story-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 105px;
}

.about-story-heading {
  position: relative;
  min-width: 0;
}

.about-story-heading h2 {
  max-width: 490px;
  margin-bottom: 50px;
  color: var(--navy);
}

.about-story-decoration {
  position: relative;
  width: min(100%, 390px);
  height: 245px;
  overflow: hidden;
  border-radius: 180px 180px 20px 20px;
  background: var(--mist);
  isolation: isolate;
}

.story-arch {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  transform: translateX(-50%);
  border: 10px solid var(--blue);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.arch-one {
  width: 78%;
  height: 85%;
}

.arch-two {
  width: 45%;
  height: 58%;
  border-color: var(--coral);
}

.story-circle {
  position: absolute;
  top: 18px;
  right: 36px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--saffron);
}

.about-story-content > p {
  margin-bottom: 22px;
  font-size: 1.04rem;
  line-height: 1.95;
}

.about-story-content .about-story-lead {
  margin-bottom: 28px;
  color: var(--blue);
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.5;
}

.about-story-quote {
  margin-top: 40px;
  padding: 30px 35px;
  border-inline-start: 5px solid var(--coral);
  border-radius: 0 18px 18px 0;
  background: var(--sand);
}

.about-story-quote > span {
  display: block;
  margin-bottom: -10px;
  color: var(--coral);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

.about-story-quote p {
  max-width: 510px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.5;
}

/* ==========================================
   03 / MISSION & VISION
========================================== */

.about-purpose {
  background: var(--sand);
}

.about-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-purpose-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 455px;
  overflow: hidden;
  padding: 38px;
  border-radius: var(--radius);
}

.purpose-mission {
  background: var(--blue);
  color: var(--off-white);
}

.purpose-vision {
  background: var(--mist);
  color: var(--navy);
}

.about-purpose-card::after {
  content: "";
  position: absolute;
  top: -105px;
  right: -85px;
  width: 300px;
  height: 300px;
  border: 45px solid currentColor;
  border-radius: 50%;
  opacity: .075;
  pointer-events: none;
}

.about-purpose-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  font-size: .82rem;
  font-weight: 850;
}

.about-purpose-icon {
  font-size: 3rem;
  line-height: 1;
}

.about-purpose-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.about-purpose-label {
  margin-bottom: 16px;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.about-purpose-body h3 {
  max-width: 455px;
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.1vw, 3.2rem);
  font-weight: 850;
  line-height: 1.15;
}

.about-purpose-body > p:last-child {
  max-width: 475px;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.8;
}

/* ==========================================
   04 / OUR VALUES
========================================== */

.about-values {
  background: var(--off-white);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-value-card {
  display: flex;
  flex-direction: column;
  min-height: 385px;
  padding: 33px;
  border-radius: var(--radius);
  transition: transform .3s var(--ease);
}

.about-value-card:hover {
  transform: translateY(-7px);
}

.value-blue {
  background: var(--navy);
  color: var(--off-white);
}

.value-yellow {
  background: var(--saffron);
  color: var(--navy);
}

.value-coral {
  background: var(--coral);
  color: var(--off-white);
}

.about-value-number {
  font-size: .85rem;
  font-weight: 850;
}

.about-value-mark {
  width: 65px;
  height: 65px;
  margin: 22px 0 auto;
  border: 11px solid currentColor;
  border-radius: 50% 50% 12px 12px;
  opacity: .5;
}

.about-value-card h3 {
  max-width: 350px;
  margin-top: 32px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 850;
  line-height: 1.2;
}

.about-value-card p {
  max-width: 360px;
  margin-bottom: 0;
  font-size: .96rem;
  line-height: 1.8;
}

/* ==========================================
   05 / HOW WE WORK
========================================== */

.about-approach {
  background: var(--blue);
  color: var(--off-white);
}

.about-approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
}

.about-approach-heading h2 {
  max-width: 580px;
  margin-bottom: 26px;
}

.about-approach-heading > p:last-child {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--mist);
  font-size: 1.06rem;
  line-height: 1.85;
}

.about-approach-list {
  border-top: 1px solid rgba(247,248,250,.4);
}

.about-approach-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  padding-block: 30px;
  border-bottom: 1px solid rgba(247,248,250,.4);
}

.about-approach-number {
  padding-top: 7px;
  color: var(--saffron);
  font-size: .85rem;
  font-weight: 850;
}

.about-approach-item h3 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  font-weight: 850;
}

.about-approach-item p {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--mist);
  font-size: .98rem;
  line-height: 1.85;
}

/* ==========================================
   06 / OUR JOURNEY
========================================== */

.about-journey {
  background: var(--sand);
}

.about-timeline {
  position: relative;
  margin-top: 65px;
}

.about-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 42px;
  inset-inline-start: 148px;
  width: 2px;
  background: var(--blue-light);
}

.about-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 36px minmax(0, 1fr);
  align-items: start;
  column-gap: 20px;
  padding-bottom: 48px;
}

.about-timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 900;
  line-height: 1.2;
}

.timeline-marker {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: 19px;
  height: 19px;
  margin-top: 9px;
  border: 4px solid var(--sand);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 2px var(--coral);
}

.timeline-content {
  max-width: 760px;
  padding: 0 0 35px 25px;
  border-bottom: 1px solid rgba(21,43,85,.18);
}

.timeline-label {
  margin-bottom: 11px;
  color: var(--coral);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.timeline-content h3 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.6rem, 2.7vw, 2.55rem);
  font-weight: 850;
}

.timeline-content > p:last-child {
  max-width: 625px;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.85;
}

/* ==========================================
   07 / THE TEAM
========================================== */

.about-team {
  background: var(--off-white);
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-member-card {
  overflow: hidden;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--off-white);
  transition:
    transform .3s var(--ease),
    box-shadow .3s;
}

.about-member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(21,43,85,.09);
}

.about-member-image {
  position: relative;
  display: grid;
  place-items: center;
  height: 285px;
  overflow: hidden;
}

.about-member-image::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -65px;
  width: 250px;
  height: 250px;
  border: 40px solid currentColor;
  border-radius: 50%;
  opacity: .12;
}

.member-blue {
  background: var(--blue);
  color: var(--off-white);
}

.member-mist {
  background: var(--mist);
  color: var(--navy);
}

.member-coral {
  background: var(--coral);
  color: var(--off-white);
}

.about-member-initials {
  position: relative;
  z-index: 2;
  font-size: clamp(5rem, 7vw, 7.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
  transform: rotate(-8deg);
}

.about-member-index {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: .8rem;
  font-weight: 850;
}

.about-member-info {
  min-height: 150px;
  padding: 28px;
}

.about-member-info h3 {
  margin-bottom: 11px;
  color: var(--navy);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 850;
}

.about-member-info p {
  margin: 0;
  color: var(--blue);
  font-size: .94rem;
  font-weight: 750;
}

.about-team-note {
  max-width: 690px;
  margin: 35px auto 0;
  color: var(--blue);
  font-size: .94rem;
  text-align: center;
}

/* ==========================================
   08 / FINAL CTA
========================================== */

.about-cta {
  position: relative;
  overflow: hidden;
  background: var(--saffron);
}

.about-cta::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -175px;
  width: 500px;
  height: 500px;
  border: 75px solid var(--coral);
  border-radius: 50%;
  opacity: .3;
  pointer-events: none;
}

.about-cta::after {
  content: "";
  position: absolute;
  bottom: -230px;
  left: -100px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .25;
  pointer-events: none;
}

.about-cta-content {
  position: relative;
  z-index: 2;
  max-width: 950px;
  margin-inline: auto;
  text-align: center;
}

.about-cta .eyebrow {
  justify-content: center;
  color: var(--navy);
}

.about-cta h2 {
  margin-bottom: 26px;
  color: var(--navy);
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  line-height: 1.12;
}

.about-cta-content > p:not(.eyebrow) {
  max-width: 630px;
  margin-inline: auto;
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.85;
}

.about-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 35px;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1050px) {

  .about-opening-grid {
    gap: 40px;
  }

  .about-story-grid,
  .about-approach-grid {
    gap: 50px;
  }

  .about-purpose-card {
    padding: 30px;
  }

  .about-value-card {
    padding: 27px;
  }

}

@media (max-width: 900px) {

  .about-opening {
    padding-top: 65px;
  }

  .about-opening-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 60px;
  }

  .about-opening h1 {
    max-width: 800px;
    font-size: clamp(3rem, 8vw, 5.9rem);
  }

  .about-opening-aside > p {
    max-width: 650px;
  }

  .about-story-grid,
  .about-approach-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .about-story-heading h2 {
    max-width: 750px;
  }

  .about-story-decoration {
    width: 300px;
    height: 180px;
  }

  .about-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-value-card:last-child {
    grid-column: span 2;
    min-height: 290px;
  }

  .about-team-grid {
    gap: 12px;
  }

  .about-member-image {
    height: 225px;
  }

  .about-member-info {
    padding: 20px;
  }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 650px) {

  .about-opening {
    padding-top: 48px;
    padding-bottom: 20px;
  }

  .about-opening-grid {
    gap: 25px;
    padding-bottom: 45px;
  }

  .about-opening h1 {
    font-size: clamp(2.8rem, 10.6vw, 4.5rem);
    letter-spacing: -.05em;
  }

  .about-opening-aside > p {
    font-size: 1rem;
    margin-bottom: 22px;
  }

  .about-opening-meta {
    font-size: .65rem;
  }

  .about-story-heading h2 {
    margin-bottom: 30px;
  }

  .about-story-decoration {
    width: 230px;
    height: 145px;
  }

  .about-story-content > p {
    font-size: .98rem;
  }

  .about-story-content .about-story-lead {
    font-size: 1.45rem;
  }

  .about-story-quote {
    padding: 25px;
    margin-top: 28px;
  }

  .about-purpose-grid {
    grid-template-columns: 1fr;
  }

  .about-purpose-card {
    min-height: 395px;
    padding: 28px;
  }

  .about-purpose-body h3 {
    font-size: 2.1rem;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .about-value-card,
  .about-value-card:last-child {
    grid-column: auto;
    min-height: 320px;
  }

  .about-value-card h3 {
    font-size: 2rem;
  }

  .about-approach-item {
    grid-template-columns: 35px 1fr;
    gap: 15px;
    padding-block: 27px;
  }

  .about-approach-item h3 {
    font-size: 1.8rem;
  }

  .about-timeline {
    margin-top: 42px;
  }

  .about-timeline::before {
    inset-inline-start: 9px;
    top: 7px;
    bottom: 35px;
  }

  .about-timeline-item {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 22px;
    row-gap: 6px;
    padding-bottom: 35px;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 7px;
  }

  .timeline-date {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.8rem;
  }

  .timeline-content {
    grid-column: 2;
    grid-row: 2;
    padding: 0 0 25px;
  }

  .timeline-content h3 {
    font-size: 1.65rem;
  }

  .about-team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-member-image {
    height: 260px;
  }

  .about-member-initials {
    font-size: 6rem;
  }

  .about-member-info {
    min-height: auto;
    padding: 25px;
  }

  .about-cta h2 {
    font-size: clamp(2.8rem, 10vw, 4.3rem);
  }

  .about-cta-actions {
    flex-direction: column;
  }

  .about-cta-actions .btn {
    width: 100%;
  }

}

/* ==========================================
   RTL - ARABIC
========================================== */

html[dir="rtl"] .about-opening h1,
html[dir="rtl"] .about-purpose-body h3,
html[dir="rtl"] .about-cta h2 {
  letter-spacing: 0;
  line-height: 1.3;
}

html[dir="rtl"] .about-opening-meta,
html[dir="rtl"] .about-purpose-label,
html[dir="rtl"] .timeline-label {
  letter-spacing: 0;
}

html[dir="rtl"] .about-story-decoration,
html[dir="rtl"] .about-member-image {
  direction: ltr;
}

html[dir="rtl"] .about-story-quote {
  border-radius: 18px 0 0 18px;
}

html[dir="rtl"] .timeline-content {
  padding-left: 0;
  padding-right: 25px;
}

html[dir="rtl"] .about-member-index {
  right: auto;
  left: 25px;
}

@media (max-width: 650px) {

  html[dir="rtl"] .timeline-content {
    padding-right: 0;
  }

}
