/* ============================================================
   SERVICES.CSS – Nozomi Japan Services page-specific styles
   ============================================================ */

/* ── ACTIVE NAV LINK (Services 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);
}

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

.services-intro-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

.services-intro-inner p {
  font-size: 1.6rem;        
  font-weight: 300;
  line-height: 2.4rem;    
  color: var(--color-black);
  max-width: 114rem;    
}

/* ── SERVICE SECTION (generic) ──────────────────────────────
──────────────────────────────────────────────────────────── */
.service-section {
  padding: 6rem 0 0;    
  background: var(--color-white);
}

.service-section + .service-section {
  padding-top: 9rem;  
}

.service-section-inner {
  display: flex;
  align-items: flex-start;
  gap: 4rem;            
}

/* Reverse column order for image-left sections */
.service-section-inner.image-left {
  flex-direction: row-reverse;
}

/* ── Text column ── */
.service-text {
  flex: 0 0 54.5rem;  
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Image column ── */
.service-image {
  flex: 0 0 54.5rem;  
  min-width: 0;
  align-self: stretch;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.4rem;
}

/* ── Section heading (H2) ── */
.service-title {
  font-size: 3.6rem;   
  font-weight: 400;
  line-height: 4.6rem;  
  color: var(--color-black);
  margin-bottom: 1.4rem; 
}

/* ── Sub-heading (H3) ── */
.service-subtitle {
  font-size: 1.8rem;    
  font-weight: 500;
  line-height: 3rem;   
  color: var(--color-black);
  margin-bottom: 1.6rem;
}

/* ── Body paragraphs ── */
.service-body {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 2.4rem;
  color: var(--color-black);
  margin-bottom: 2rem;
}

.service-body:last-child {
  margin-bottom: 0;
}

/* ── SERVICE FLOW ───────────────────────────────────────────
──────────────────────────────────────────────────────────── */
.service-flow {
  padding: 6rem 0;
  background: var(--color-white);
}

.service-flow-header {
  margin-bottom: 3.6rem;   
}

.service-flow-header h2 {
  font-size: 3.6rem;
  font-weight: 400;
  line-height: 4.6rem;
  color: var(--color-black);
  margin-bottom: 0.8rem;
}

.service-flow-header p {
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 2.4rem;
  color: var(--color-black);
}

.service-flow-grid {
  display: flex;
  align-items: flex-start;
  gap: 4rem;             
  position: relative;
}

/* Connecting line between steps */
.service-flow-grid::before {
  content: '';
  position: absolute;
  top: 3rem;           
  left: calc(3rem + 0.8rem); 
  right: calc(3rem + 0.8rem);
  height: 0.1rem;
  background: var(--color-blue-light);
  z-index: 0;
}

.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;       
  position: relative;
  z-index: 1;
}

/* Circular icon badge */
.flow-step-icon {
  width: 6.4rem;       
  height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue-light);
  border-radius: 50%;
  flex-shrink: 0;
}

.flow-step-icon img {
  width: 3.6rem;        
  height: 3.6rem;
  object-fit: contain;
}

.flow-step-title {
  font-size: 2rem;    
  font-weight: 400;
  line-height: 3rem;
  color: var(--color-blue);
}

.flow-step-desc {
  font-size: 1.5rem;     
  font-weight: 300;
  line-height: 2.2rem;   
  color: var(--color-black);
}

.service-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2.4rem;
  color: var(--color-red);
}

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

@media (max-width: 1300px) {
  .service-text,
  .service-image {
    flex-basis: 44%;
  }
}

@media (max-width: 1100px) {
  .service-section-inner,
  .service-section-inner.image-left {
    flex-direction: column;
    gap: 3.2rem;
  }

  .service-text,
  .service-image {
    flex: none;
    width: 100%;
  }

  .service-image {
    max-height: 40rem;
  }

  .service-image img {
    max-height: 40rem;
  }
}

@media (max-width: 1024px) {
  .service-flow-grid::before {
    display: none;
  }

  .service-flow-grid {
    flex-wrap: wrap;
    gap: 3.2rem;
  }

  .flow-step {
    flex: 1 1 calc(33.333% - 2.4rem);
    min-width: 14.4rem;
  }
}

@media (max-width: 768px) {
  .service-title {
    font-size: 2.8rem;
    line-height: 3.6rem;
  }

  .service-section + .service-section {
    padding-top: 6rem;
  }

  .flow-step {
    flex: 1 1 calc(50% - 1.6rem);
  }

  .services-intro-inner h2 {
    font-size: 2.8rem;
    line-height: 3.6rem;
  }
}

@media (max-width: 480px) {
  .flow-step {
    flex: 1 1 100%;
  } 
}
