/* ============================= */
/* COMPANY PAGE SECTIONS */
/* ============================= */

.company-page-section {
  padding: 100px 0;
}

.company-about-copy {
  max-width: 600px;
}

.company-about-copy h2 {
  margin-bottom: 24px;
  max-width: 480px;
}

.company-about-copy p {
   margin-bottom: 28px;
   line-height: 1.85;
}

/* ============================= */
/* TEAM SECTION */
/* ============================= */

.team-section {
  padding: 100px 0 120px;
  background: #f8f8f7;
}

.team-section__header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.team-section__header h2 {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  color: #111;
}

.team-section__intro {
  margin: 0 auto;
  max-width: 680px;
  font-family: "Inter", sans-serif;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #5b6470;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.team-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.team-card {
  border: none;
  background: #fff;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12);
}

.team-card__image {
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: #e9edf3;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.team-card__img--adjust {
  object-position: 50% 15%;
}

.team-card:hover .team-card__image img {
  transform: scale(1.04);
}

.team-card__content {
  padding: 22px 24px 24px;
}

.team-card__content h3 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  color: #111;
}

.team-card__content p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5b6470;
}

.team-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #2f57b7;
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.team-card__cta span {
  transition: transform 0.25s ease;
}

.team-card:hover .team-card__cta {
  opacity: 1;
}

.team-card:hover .team-card__cta span {
  transform: translateX(4px);
}

/* ============================= */
/* TEAM MODAL */
/* ============================= */

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.team-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 28, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.team-modal__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(720px, 100%);
  height: 100%;
  background: #ffffff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-modal.is-open .team-modal__panel {
  transform: translateX(0);
}

.team-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: rgba(12, 18, 28, 0.08);
  color: #111;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.team-modal__close:hover {
  background: rgba(12, 18, 28, 0.14);
  transform: scale(1.04);
}

.team-modal__image {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  background: #e8edf3;
}

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

.modal-img--center {
  object-position: center;
}

.team-modal__body {
  padding: 36px 38px 46px;
}

.team-modal__body h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  color: #111;
}

.team-modal__title {
  margin: 0 0 28px;
  display: inline-block;
  padding: 10px 18px;
  background: #2f57b7;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 999px;
}

.team-modal__bio {
  font-family: "Inter", sans-serif;
  font-size: 1.02rem;
  line-height: 1.9;
  color: #4b5563;
}

.team-modal__bio p {
  margin: 0 0 22px;
}

/* ============================= */
/* TESTIMONIAL SECTION */
/* ============================= */

.testimonial-section {
  padding: 110px 0 130px;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f8f7 100%);
  padding-top: 40px;
}

.testimonial-section__header {
  text-align: center;
  margin-bottom: 42px;
}

.testimonial-section__header h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  color: #111;
}

.testimonial-slider {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  min-height: 560px;
}

.testimonial-slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 760px;
  height: 760px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(47, 87, 183, 0.08) 0%,
    rgba(47, 87, 183, 0.04) 35%,
    rgba(47, 87, 183, 0.00) 70%
  );
  z-index: 0;
  pointer-events: none;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1;

  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0s linear 0.45s;
}

.testimonial-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;

  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0s linear 0s;
}

.testimonial-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 28px;
  padding: 46px 52px 36px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  text-align: center;
  width: 100%;
}

.testimonial-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 560px;
}

.testimonial-stars {
  margin-bottom: 22px;
  font-size: 1.2rem;
  letter-spacing: 6px;
  color: #2f57b7;
}

.testimonial-card blockquote {
  margin: 0 auto 28px;
  max-width: 640px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  line-height: 1.75;
  color: #374151;
  position: relative; 
  padding: 0 10px;
}

.testimonial-card blockquote::before {
  content: "“";
  position: absolute;
  left: -18px;
  top: -12px;
  font-size: 3rem;
  color: rgba(47,87,183,0.15);
  font-family: "Playfair Display", serif;
}

.testimonial-author {
  margin: 0;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(47, 87, 183, 0.10);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2f57b7;
}


.testimonial-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.18);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.testimonial-dot:hover {
  transform: scale(1.1);
}

.testimonial-dot.is-active {
  background: #2f57b7;
}

/* ============================= */
/* RESPONSIVE - COMPANY PAGE */
/* ============================= */

@media (max-width: 1100px) {
  .company-page-section {
    padding: 84px 0;
  }

  .team-section {
    padding: 84px 0 96px;
  }

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

  .team-card__content h3 {
    font-size: 1.35rem;
  }

  .testimonial-section {
    padding: 90px 0 110px;
  }

  .testimonial-slider {
    max-width: 860px;
    min-height: 620px;
  }

  .testimonial-slider::before {
    width: 620px;
    height: 620px;
  }

  .testimonial-dots {
    padding-top: 620px;
  }
}

@media (max-width: 768px) {
  .company-page-section {
    padding: 64px 0;
  }

  .company-about-copy h2 {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .company-about-copy p {
    margin-bottom: 22px;
    line-height: 1.75;
  }

  .team-section {
    padding: 68px 0 82px;
  }

  .team-section__header {
    margin: 0 auto 38px;
  }

  .team-section__header h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .team-section__intro {
    font-size: 0.98rem;
    line-height: 1.75;
  }

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

  .team-card {
    border-radius: 22px;
  }

  .team-card__image {
    aspect-ratio: 4 / 3.2;
  }

  .team-card__image img {
    object-position: 50% 5%;
  }

  .team-card__img--adjust {
    object-position: 50% 20% !important;
  }

  .team-card__img__camille--adjust {
    object-position: 50% 35% !important;
  }

  .team-card__content {
    padding: 18px 18px 20px;
  }

  .team-card__content h3 {
    margin: 0 0 6px;
    font-size: 1.28rem;
    line-height: 1.15;
  }

  .team-card__content p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .team-card__cta {
    margin-top: 12px;
    font-size: 0.78rem;
  }

  .team-modal__panel {
    width: 100%;
  }

  .team-modal__close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.7rem;
  }

  .team-modal__image {
    aspect-ratio: 4 / 3.4;
  }

  .team-modal__body {
    padding: 26px 20px 34px;
  }

  .team-modal__body h3 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .team-modal__title {
    margin: 0 0 20px;
    padding: 9px 15px;
    font-size: 0.84rem;
  }

  .team-modal__bio {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .team-modal__bio p {
    margin: 0 0 18px;
  }

  .testimonial-section {
    padding: 72px 0 88px;
  }

  .testimonial-section__header {
    margin-bottom: 28px;
  }

  .testimonial-section__header h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .testimonial-slider {
    max-width: 100%;
    min-height: 0;
  }

  .testimonial-slider::before {
    width: 440px;
    height: 440px;
  }

  .testimonial-slide {
    position: relative;
    inset: auto;
    display: none;
    transform: none;
  }

  .testimonial-slide.is-active {
    display: flex;
  }

  .testimonial-card {
    border-radius: 22px;
    padding: 30px 20px 24px;
  }

  .testimonial-stars {
    margin-bottom: 16px;
    font-size: 1rem;
    letter-spacing: 4px;
  }

  .testimonial-card blockquote {
    margin: 0 auto 22px;
    max-width: 100%;
    font-size: clamp(1rem, 4.8vw, 1.2rem);
    line-height: 1.65;
    padding: 0;
  }

  .testimonial-card blockquote::before {
    left: -8px;
    top: -10px;
    font-size: 2.3rem;
  }

  .testimonial-author {
    padding: 9px 16px;
    font-size: 0.9rem;
  }

  .testimonial-dots {
    margin-top: 20px;
    padding-top: 0;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .company-page-section {
    padding: 56px 0;
  }

  .team-section {
    padding: 60px 0 72px;
  }

  .team-section__header {
    margin-bottom: 32px;
  }

  .team-card__image {
    aspect-ratio: 4 / 3;
  }

  .team-card__content {
    padding: 16px 16px 18px;
  }

  .team-card__content h3 {
    font-size: 1.18rem;
  }

  .team-card__content p {
    font-size: 0.9rem;
  }

  .team-modal__body {
    padding: 22px 16px 28px;
  }

  .testimonial-section {
    padding: 64px 0 78px;
  }

  .testimonial-slider::before {
    width: 340px;
    height: 340px;
  }

  .testimonial-card {
    padding: 26px 16px 22px;
    border-radius: 20px;
  }

  .testimonial-card blockquote {
    font-size: clamp(0.98rem, 5vw, 1.1rem);
    line-height: 1.6;
  }

  .testimonial-card blockquote::before {
    left: -4px;
    top: -8px;
    font-size: 2rem;
  }

  .testimonial-author {
    font-size: 0.86rem;
  }
}
