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

/* ── ACTIVE NAV LINK (About page) ─────────────────────────── */
.site-header .header-nav a.nav-active {
  color: var(--color-red);
  position: relative;
}

.site-header .header-nav a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -0.1000rem;
  left: 1.6rem;
  right: 1.6rem;
  height: 0.2rem;
  background: var(--color-red);
}

/* ── BANNER ──────────────────────────────────────────────────
──────────────────────────────────────────────────────────── */
.innerpage-banner {
  position: relative;
  height: 39.3rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.innerpage-banner .container {
  height: 100%;
}

/* Background image layer */
.inner-banner-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  
}

.inner-banner-bg:after{
  position: absolute;
  left: 0;
  top: 0;
  content: "";
  z-index: 1;
  width: 100%;
  height: 100%;
  background: linear-gradient(89.8deg, rgba(255, 255, 255, 0.7) 0.18%, rgba(255, 255, 255, 0) 58.07%);
}

.inner-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Left-side white gradient */
.inner-banner-gradient {
position: absolute;
width: 37%;
height: 100%;
left: 0;
top: 0;
background: linear-gradient(90.23deg, rgba(255, 255, 255, 0.01) 0.2%, rgba(255, 255, 255, 0) 99.8%);
backdrop-filter: blur(0.2rem);
z-index: 1;


}

/* Hero text — absolutely placed at bottom-left */
.inner-banner-content {
     position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    padding: 10rem 0 4rem;
    justify-content: center;
    flex-direction: column;
    gap: 2.0rem;
}

.inner-banner-text {
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.inner-banner-text h1 {
  font-size: 4rem;     
  font-weight: 400;
  line-height: 4.6rem;  
  color: var(--color-black);
}

.inner-banner-text p {
  font-size: 1.8rem;   
  font-weight: 300;
  line-height: 2.8rem;  
  color: var(--color-black);
  max-width: 52.9rem; 
}

/* ── 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);
}

/* ── ABOUT INTRO ──────────────────────────────────────────────
──────────────────────────────────────────────────────────── */
.about-intro {
  padding: 6rem 0 0;
  background: var(--color-white);
}

.about-intro-inner {
  max-width: 88.7rem; 
  display: flex;
  flex-direction: column;
  gap: 0.8rem;           
}

.about-intro-heading {
  font-size: 3.6rem;     
  font-weight: 400;
  line-height: 4.6rem;  
  color: var(--color-black);
}

.about-intro-body {
  font-size: 1.6rem;        
  font-weight: 300;
  line-height: 2.4rem;   
  color: var(--color-black);
}

/* ── OUR STORY ────────────────────────────────────────────────
──────────────────────────────────────────────────────────── */
.about-story {
  padding: 6rem 0 0;
  background: var(--color-white);
}

.about-story-card {
  position: relative;
  height: 42rem;       
  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;
}

/* Radial dark-purple overlay — lighter at centre, denser at edges */
.about-story-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(61, 48, 127, 0) 0%,
    rgba(61, 48, 127, 0.8) 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 ────────────────────────────────────────────
──────────────────────────────────────────────────────────── */
.about-team {
  padding: 6rem 0 0;
  background: var(--color-white);
}

.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);
}

.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');
}

/* Light-blue content body — top padding makes room for avatar overlap */
.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);
}

/* Blue divider line beneath name */
.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: 10;
  background: var(--color-blue-light);
}

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

/* ── WHAT SETS US APART ───────────────────────────────────────
──────────────────────────────────────────────────────────── */
.about-apart {
  padding: 6rem 0 0;
  background: var(--color-white);
}

.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: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 2.4rem;
  opacity: 0;
  transform: scale(1.04);
  transition: var(--transition);

  /* Default bg image — overridden per-card below */
  background-image: url('../images/about-apart-bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--gray5); 
}

/* Dark overlay so white text is always readable */
.apart-card-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black-rgba3);
  z-index: 0;
}

/* Per-card background images — swap in your own photos here */
.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 ────────────────────────────────────── */
/* Hide default content */
.apart-card:hover .apart-card-default,
.apart-card:focus-within .apart-card-default {
  opacity: 0;
  transform: scale(0.96);
}

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

/* ── Legacy featured-card styles (kept for reference) ─────── */
.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 ──────────────────────────────────────────
──────────────────────────────────────────────────────────── */
.about-profile {
  padding: 6rem 0 0;
  background: var(--color-white);
}

/* Extra spacing between heading and table */
.about-profile-title {
  margin-bottom: 3rem; 
}

/* Definition list used as a labelled data table */
.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--last {
  border-bottom: none;
}

.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);
}

/* When value contains multiple paragraphs */
.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-banner-content {
    padding: 0 8rem;   
  }

  .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) {
  /* Banner */
  .about-banner {
    height: auto;
    min-height: 32rem;
    padding-bottom: 4.8rem;
  }

  .about-banner-content {
    position: static;
    padding: 2.4rem 2.4rem 0;
    margin-top: 3.2rem;
  }

  .about-banner-text h1 {
    font-size: 2.8rem;  
    line-height: 3.6rem; 
  }

  .about-banner-text p {
    max-width: 100%;
  }

  /* Subnav */
  .about-subnav {
    top: 7rem;
    padding: 0 0.8rem;
  }

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

  /* Intro */
  .about-intro-heading {
    font-size: 2.8rem;
    line-height: 3.6rem;
  }

  /* Story */
  .about-story-card {
    height: auto;
    min-height: 32rem;
    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-banner-content {
    padding: 2rem 2rem 0;
  }

  .about-banner-text h1 {
    font-size: 2.4rem;
    line-height: 3.2rem;
  }

  .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;
  }
}
