/* ========================================
   United Textile - Applications
   Style: About / Products light + blue
   Width: ~1400px content (NOTES)
   ======================================== */

/* Banner — title + breadcrumb only */
.page-applications .ap-banner {
  min-height: min(72vh, 680px);
  background: #eef1f3;
}

.page-applications .ap-banner .inner-banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: min(72vh, 680px);
  padding: calc(var(--header-h) + 48px) var(--page-pad) 72px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-applications .ap-banner .inner-banner-title {
  max-width: none;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: 0.04em;
  margin: 0 0 22px;
  text-shadow: 0 2px 24px rgba(18, 31, 74, 0.35);
}

.page-applications .ap-banner .inner-breadcrumb {
  justify-content: center;
}

.page-applications .ap-banner .inner-banner-shade {
  background: linear-gradient(
    180deg,
    rgba(18, 31, 74, 0.3) 0%,
    rgba(18, 31, 74, 0.2) 45%,
    rgba(18, 31, 74, 0.48) 100%
  );
}

/* Intro */
.ap-intro {
  background: var(--white);
  padding: clamp(88px, 12vw, 140px) 0;
}

.ap-intro .wrap {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.ap-intro .ns-heading {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0.05em;
}

.ap-intro .ns-text {
  color: var(--text-muted);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(17px, 1.55vw, 21px);
}

.ap-intro .ns-link {
  margin-top: 36px;
}

/* Scene grid — square cards */
.ap-scenes {
  background: #f5f6f7;
  padding: clamp(64px, 9vw, 100px) 0;
}

.ap-scenes > .wrap {
  max-width: 1400px;
  margin: 0 auto;
}

.ap-scene-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.ap-scene-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8eaed;
  color: var(--white);
  text-align: center;
}

.ap-scene-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.ap-scene-card:hover img {
  transform: scale(1.05);
}

.ap-scene-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 31, 74, 0.42);
  pointer-events: none;
}

.ap-scene-card strong {
  position: relative;
  z-index: 1;
  padding: 16px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.25;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

/* Detail zigzag rows */
.ap-detail {
  background: var(--white);
  padding: clamp(72px, 10vw, 120px) 0;
}

.ap-detail > .wrap {
  max-width: 1400px;
  margin: 0 auto;
}

.ap-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.ap-row:last-child {
  margin-bottom: 0;
}

.ap-row--flip .ap-row-media {
  order: 2;
}

.ap-row--flip .ap-row-copy {
  order: 1;
  text-align: right;
}

.ap-row--flip .ap-row-copy .ns-link {
  margin-left: auto;
}

.ap-row--flip .ap-row-copy p {
  margin-left: auto;
}

.ap-row-media {
  display: block;
  overflow: hidden;
  background: #eef1f3;
  min-height: 320px;
}

.ap-row-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 460px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.ap-row:hover .ap-row-media img {
  transform: scale(1.03);
}

.ap-row-copy em {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--blue-light);
  margin-bottom: 12px;
}

.ap-row-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.15;
}

.ap-row-copy p {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 0 8px;
}

@media (max-width: 1100px) {
  .ap-scene-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .ap-scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-row,
  .ap-row--flip {
    grid-template-columns: 1fr;
  }

  .ap-row--flip .ap-row-media,
  .ap-row--flip .ap-row-copy {
    order: initial;
    text-align: left;
  }

  .ap-row--flip .ap-row-copy .ns-link {
    margin-left: 0;
  }

  .ap-row--flip .ap-row-copy p {
    margin-left: 0;
  }

  .ap-row-media img {
    min-height: 280px;
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .ap-scene-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-scene-card img,
  .ap-row-media img {
    transition: none;
  }
}
