/* ================================================================= */
/*  ABOUT PAGE                                                         */
/* ================================================================= */

/* ── Connected blocks widget ───────────────────────────────────────── */

/* ── Origin Story ──────────────────────────────────────────────────── */
.origin {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px;
}

.origin__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 40px;
}

.origin__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.origin__image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.origin__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

/* ── Mission / Vision / Values ──────────────────────────────────────── */
.mvv {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px;
}

.mvv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mvv__card {
  border-radius: 16px;
  padding: 40px 32px;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.mvv__card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.mvv__card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.mvv__card:hover::before {
  opacity: 1;
}

.mvv__card--green  { background: var(--pepla-green); }
.mvv__card--orange { background: var(--pepla-orange); }
.mvv__card--blue   { background: var(--pepla-blue); }

.mvv__title {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.mvv__card p {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* ── Logo Story ────────────────────────────────────────────────────── */
.logo-story {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px;
}

.logo-story__heading {
  text-align: center;
  color: #000;
  margin-bottom: 50px;
}

.logo-story__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  align-items: start;
}

.logo-story__image {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.logo-story__image .speech-bubble {
  width: 220px;
  min-height: 220px;
  font-size: 22px;
}

.logo-story__image img {
  max-width: 280px;
  width: 100%;
  height: auto;
}

.logo-story__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.logo-story__colours {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.logo-story__colour {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.logo-story__swatch {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  margin-top: 3px;
}

.logo-story__colour p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.logo-story__funfact {
  background: #f8f8f8;
  border-left: 4px solid var(--pepla-green);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.95rem !important;
}

/* ── Company Culture ───────────────────────────────────────────────── */
.culture {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px;
}

.culture__heading {
  text-align: center;
  color: #000;
  margin-bottom: 50px;
}

.culture__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Culture Carousel ──────────────────────────────────────────────── */
.culture-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.culture-carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}

.culture-carousel__slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.culture-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}

.culture-carousel__btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.culture-carousel__btn--prev { left: 10px; }
.culture-carousel__btn--next { right: 10px; }

.culture__content {
  max-width: none;
  margin: 0;
}

.culture__content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.culture__quote {
  position: relative;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
  color: #222;
  text-align: center;
  padding: 30px 40px;
  margin: 40px 0;
  border-top: 3px solid var(--pepla-green);
  border-bottom: 3px solid var(--pepla-green);
}

.culture__quote:last-of-type {
  border-top-color: var(--pepla-blue);
  border-bottom-color: var(--pepla-blue);
}

/* Culture speech bubbles — staggered drop-in */
.culture-bubble {
  opacity: 0;
  transform: translateY(-30px) scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.culture-bubble.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.culture-bubble:nth-child(1) { transition-delay: 0s; }
.culture-bubble:nth-child(2) { transition-delay: 0.2s; }
.culture-bubble:nth-child(3) { transition-delay: 0.4s; }
.culture-bubble:nth-child(4) { transition-delay: 0.6s; }
.culture-bubble:nth-child(5) { transition-delay: 0.8s; }
.culture-bubble:nth-child(6) { transition-delay: 1.0s; }

.culture__quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: #666;
}

/* ── Workforce Section ──────────────────────────────────────────────── */
.workforce {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px;
}

.workforce__heading {
  text-align: center;
  color: #000;
  margin-bottom: 50px;
}

.workforce__layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
}

.workforce__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

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

.workforce__team {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 12px;
  background: #f8f8f8;
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.workforce__team:hover {
  transform: translateX(4px);
}

.workforce__team-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .workforce__layout {
    grid-template-columns: 1fr;
  }
  .workforce__teams {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── Team Section ──────────────────────────────────────────────────── */
.team {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px;
  position: relative;
  z-index: 1;
}

.team__heading {
  text-align: center;
  color: #000;
  margin-bottom: 60px;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ── Team Card ─────────────────────────────────────────────────────── */
.team-card {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.team-card:nth-child(1) { transition-delay: 0s; }
.team-card:nth-child(2) { transition-delay: 0.2s; }
.team-card:nth-child(3) { transition-delay: 0.4s; }

.team-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Flip Card ─────────────────────────────────────────────────────── */
.flip-card {
  width: 100%;
  aspect-ratio: 3 / 4;
  perspective: 1000px;
  margin-bottom: 20px;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
}

.flip-card__front {
  background: #f5f5f5;
}

.flip-card__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.flip-card__back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  padding: 28px;
  position: relative;
}

.flip-card__back--orange { background: var(--pepla-orange); }
.flip-card__back--green  { background: var(--pepla-green); }
.flip-card__back--blue   { background: var(--pepla-blue); }

.flip-card__info {
  position: relative;
  z-index: 1;
}

.flip-card__info h4 {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.flip-card__info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.flip-card__hero {
  position: absolute;
  right: -10px;
  bottom: 0;
  height: 65%;
  width: auto;
  opacity: 0.25;
  z-index: 0;
}

/* ── Bio ───────────────────────────────────────────────────────────── */
.team-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

.team-card__bio p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* ── Downloads Section ─────────────────────────────────────────────── */
.downloads {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px;
}

.downloads__heading {
  text-align: center;
  color: #000;
  margin-bottom: 50px;
}

.downloads__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.downloads__card {
  background: #f8f8f8;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.downloads__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.downloads__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.downloads__icon--green {
  background: rgba(119, 185, 0, 0.12);
  color: var(--pepla-green);
}

.downloads__icon--blue {
  background: rgba(0, 131, 202, 0.12);
  color: var(--pepla-blue);
}

.downloads__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.downloads__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 24px;
  max-width: 380px;
}

.downloads__card .btn {
  margin-top: auto;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .origin__grid {
    grid-template-columns: 1fr;
  }
  .culture__layout {
    grid-template-columns: 1fr;
  }
  .mvv__grid {
    grid-template-columns: 1fr;
  }
  .logo-story__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .logo-story__image img {
    max-width: 200px;
  }
  .team__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .downloads__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .origin, .mvv, .logo-story, .culture, .team, .downloads {
    padding: 48px 20px;
  }
  .origin__title {
    font-size: 1.6rem;
  }
  .culture__quote {
    font-size: 1.1rem;
    padding: 20px;
  }
}
