/* ============================================================
  ABOUT.CSS – Nozomi Japan About page-specific styles
============================================================ */

/* SECONDARY NAV */
.about-subnav {
  display: flex;
  align-items: stretch;
  height: 6rem;
  padding: 0 15rem;
  border-bottom: 0.1rem solid var(--black-rgba5);
  position: sticky;
  top: 8rem;
  z-index: 90;
  background: var(--color-white);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.about-subnav::-webkit-scrollbar {
  display: none;
}

.about-subnav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3.4rem;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-black);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 0.2rem solid transparent;
  margin-bottom: -0.1rem;
  transition: var(--transition);
}

.about-subnav-item:hover {
  color: var(--color-red);
}

.about-subnav-item.active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

/* OUR STORY */
.about-story-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url("../images/about/about-story-bg.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--color-blue2);
  padding: 4.8rem 2.4rem;
}

.about-story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgb(23 11 46 / 60%) 0%,
    rgb(23 11 46 / 80%) 100%
  );
  z-index: 1;
}

.about-story-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
  max-width: 73.6rem;
}

.about-story-content h2 {
  font-size: 3.6rem;
  font-weight: 400;
  line-height: 4.6rem;
  color: var(--color-white);
}

.about-story-content p {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 2.6rem;
  color: var(--color-white);
  max-width: 71.4rem;
}

/* MEET THE TEAM */

.team-grid {
  display: flex;
  gap: 3rem;
  align-items: stretch;
}

/* Team Card */
.team-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top banner */
.team-card-bg {
  height: 14rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center bottom;
  background-color: var(--color-blue-light);
  filter: blur(1px);
}

.team-card-bg--premal {
  background-image: url("../images/about/team-premal-bg.jpg");
}

.team-card-bg--devshree {
  background-image: url("../images/about/team-devshree-bg.jpg");
}

.team-card-body {
  flex: 1;
  background: var(--color-blue-light);
  padding: 8rem 4rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
}

.team-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}

.team-card-name {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 3rem;
  color: var(--color-black);
}

.team-card-divider {
  width: 6rem;
  height: 0.1rem;
  background: var(--color-blue);
  border: none;
}

.team-card-bio {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 2.2rem;
  color: var(--color-black);
}

.team-card-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.team-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.team-social-link:hover {
  opacity: 0.7;
}

/* Circular avatar */
.team-card-avatar {
  position: absolute;
  top: 8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  overflow: hidden;
  border: 0.4rem solid var(--color-white);
  z-index: 1;
  background: var(--color-blue-light);
}

.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* WHAT SETS US APART */

.apart-grid {
  display: flex;
  gap: 3rem;
  align-items: stretch;
}

/* Base card shell */
.apart-card {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 40rem;
  overflow: hidden;
  cursor: pointer;
}

/* All icon cards share cream background */
.apart-card--icon {
  background: var(--color-cream);
}

/* DEFAULT STATE (icon + title, visible at rest) */
.apart-card-default {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.6rem;
  padding: 4rem 2rem 7rem;
  transition: var(--transition);
  will-change: opacity, transform;
}

/* Icon container */
.apart-icon {
  flex-shrink: 0;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apart-icon img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
}

/* Title text */
.apart-card-title {
  font-size: 2.24rem;
  font-weight: 400;
  line-height: 3rem;
  color: var(--color-black);
  text-align: center;
}

/* HOVER STATE (image bg + description, hidden at rest) */
.apart-card-hover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 2.4rem;
  opacity: 0;
  transform: scale(1.04);
  transition: var(--transition);
  background-image: url("../images/about-apart-bg.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--gray5);
}

.apart-card-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(1px);
  z-index: 0;
}

.apart-hover-bg--1 {
  background-image: url("../images/about/apart-hover-1.jpg");
}

.apart-hover-bg--2 {
  background-image: url("../images/about/apart-hover-2.jpg");
}

.apart-hover-bg--3 {
  background-image: url("../images/about/apart-hover-3.jpg");
}

.apart-hover-bg--4 {
  background-image: url("../images/about/apart-hover-4.jpg");
}

/* Hover description text */
.apart-hover-desc {
  position: relative;
  z-index: 2;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2.24rem;
  color: var(--color-white);
  text-align: center;
}

/* Hover transitions */
.apart-card:hover .apart-card-default,
.apart-card:focus-within .apart-card-default {
  opacity: 0;
  transform: scale(0.96);
}

.apart-card:hover .apart-card-hover,
.apart-card:focus-within .apart-card-hover {
  opacity: 1;
  transform: scale(1);
}

.apart-card--featured {
  background-image: url("../images/about-apart-bg.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--color-cream);
}

.apart-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black-rgba2);
  z-index: 0;
}

.apart-card-desc {
  position: relative;
  z-index: 2;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2.2rem;
  color: var(--color-white);
  text-align: center;
}

/* COMPANY PROFILE */
.profile-table {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.profile-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 0.1rem solid var(--color-border);
}

.profile-row:first-child {
  padding-top: 0;
}
.profile-row--last {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-label {
  flex: 0 0 18rem;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 2.4rem;
  color: var(--color-blue);
}

.profile-value {
  flex: 1;
  min-width: 0;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 2.4rem;
  color: var(--color-black);
}

.profile-value--stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-value--stack p {
  margin: 0;
  line-height: 2.4rem;
}

/* ============================================================
  RESPONSIVE BREAKPOINTS
============================================================ */

@media (max-width: 1300px) {
  .about-subnav {
    padding: 0 8rem;
  }
}

@media (max-width: 1100px) {
  .apart-grid {
    flex-wrap: wrap;
  }

  .apart-card {
    flex: 1 1 calc(50% - 1.5rem);
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  .about-subnav {
    top: 7rem;
    padding: 0 4.8rem;
  }
}

@media (max-width: 768px) {
  /* Subnav */
  .about-subnav {
    top: 7rem;
    padding: 0 0.8rem;
  }

  .about-subnav-item {
    padding: 0 1.6rem;
    font-size: 1.4rem;
  }

  /* Story */
  .about-story-card {
    padding: 4.8rem 2.4rem;
  }

  .about-story-content h2 {
    font-size: 2.8rem;
    line-height: 3.6rem;
  }

  .about-story-content p {
    font-size: 1.6rem;
    line-height: 2.4rem;
  }

  /* Team */
  .team-grid {
    flex-direction: column;
    gap: 4.8rem;
  }

  /* Apart */
  .apart-grid {
    flex-direction: column;
  }

  .apart-card {
    flex: none;
    width: 100%;
    height: auto;
    min-height: 28.8rem;
  }

  /* On touch/mobile, always show hover state (tap to reveal) */
  .apart-card-default {
    min-height: 28.8rem;
  }

  .apart-card-hover {
    min-height: 28.8rem;
  }

  .apart-card--icon {
    padding: 0;
  }

  .apart-card--featured {
    min-height: 32rem;
  }

  /* Profile */
  .profile-row {
    flex-direction: column;
    gap: 0.4rem;
  }

  .profile-label {
    flex: none;
    width: 100%;
    font-weight: 400;
  }
}

@media (max-width: 480px) {
  .about-subnav-item {
    padding: 0 1.2rem;
    font-size: 1.3rem;
  }

  .about-story .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .team-card-body {
    padding: 8rem 2rem 3rem;
  }

  .team-card-info {
    gap: 1rem;
  }

  .apart-grid {
    gap: 1.6rem;
  }
}
