/**
 * CSS File: about-company.css
 * 2026-05-11 | Final checked
 */

.l-abt-cmp-section {
  position: relative;
  background-color: #aee4e1;
  padding: 40px 20px;
  text-align: center;
  overflow: hidden;
  z-index: var(--z_0-base);
}

.p-abt-cmp-header {
  width: 100%;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.p-abt-cmp-header__title {
  display: block;
  width: 100%;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.p-abt-cmp-header__lead {
  display: block;
  width: 100%;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 5px;
}

.p-abt-cmp-header__title-img {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.p-abt-cmp-header__title-img img {
  max-width: 200px;
  height: auto;
}

.p-abt-cmp-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 0 10px;
  margin: 0 auto 30px;
  max-width: 400px;
}

.p-feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 6px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.p-feature-card__bg {
  aspect-ratio: 1 / 1;
  border-radius: 15px;
  overflow: hidden;
}

.p-feature-card__bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.p-feature-card__content {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 12px 15px;
  text-align: left;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.p-feature-card__title {
  font-size: 0.9375rem;
  font-weight: bold;
  color: #333;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 35px;
  position: relative;
  transition: all 0.3s ease;
}

.p-feature-card__icon::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #666;
  border-right: 2px solid #666;
  transform: rotate(-45deg);
  position: absolute;
  right: 5px;
  top: 50%;
  margin-top: -3px;
  transition: transform 0.3s ease;
}

.p-feature-card.is-active .p-feature-card__icon::before {
  transform: rotate(135deg);
  margin-top: -7px;
}

.p-feature-card__body {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.p-abt-cmp-features__catch {
  color: #f69381;
  font-size: 1.5em;
  font-weight: bold;
  margin: 40px auto;
  line-height: 1.6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 768px) {
  .p-abt-cmp-features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
  }
}

@media screen and (min-width: 1024px) {
  .l-abt-cmp-section {
    padding: 60px 20px 20px;
  }

  .p-abt-cmp-header__title {
    font-size: 3.5rem;
  }

  .p-abt-cmp-header__title-img img {
    max-width: 420px;
  }

  .p-abt-cmp-features__grid {
    max-width: 1380px;
    gap: 40px;
  }

  .p-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  }

  .p-feature-card:hover .p-feature-card__title {
    transform: translateY(-2px);
    color: #d97706;
    transition: all 0.3s ease;
  }

  .p-feature-card__content {
    max-height: 70px;
    padding: 20px 25px;
    bottom: 20px;
  }

  .p-feature-card.is-active .p-feature-card__content {
    max-height: 90%;
  }

  .p-feature-card__title {
    font-size: 1.25rem;
    padding-right: 50px;
  }

  .p-feature-card__icon::before {
    width: 14px;
    height: 14px;
    right: 10px;
  }

  .p-feature-card.is-active .p-feature-card__icon::before {
    margin-top: -10px;
  }

  .p-feature-card__body {
    font-size: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 15px;
    margin-top: 20px;
  }
}

@media screen and (max-width: 950px) and (orientation: landscape) {
  .p-abt-cmp-features__grid {
    max-width: 550px;
    gap: 15px;
  }

  .p-feature-card__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 6px;
  }

  .p-feature-card__bg {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    aspect-ratio: 1 / 1;
  }

  .p-feature-card__content {
    position: static;
    flex: 1;
    background: transparent;
    backdrop-filter: none;
    padding: 0 10px 0 0;
    max-height: none;
  }

  .p-feature-card__title {
    font-size: 0.95rem;
    padding-right: 25px;
    margin-bottom: 6px;
  }

  .p-feature-card__body {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-top: 0;
  }
}
