/* About page — DR INTERNATIONAL (Jewellery NX reference layout) */

body[data-page="company"] {
  background: #fff;
  color: #141414;
}

/* Banner styles live in page-banner.css (shared with inner pages) */

/* Image curtain wipe (also used on in-page media frames) */
.nx-img-wipe {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
}

.nx-img-wipe__col {
  width: 100%;
  height: 100%;
  background: #fff;
  transform-origin: right center;
}

.nx-img-wipe.is-done {
  display: none;
}

/* ─── Scroll headline ─── */
.nx-about-section {
  padding: clamp(4rem, 9vw, 5.75rem) 0;
}

.nx-scroll-lines {
  max-width: 1150px;
  margin: 0 auto 3.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.nx-scroll-lines__mask {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.nx-scroll-lines__text {
  margin: 0;
  font-family: var(--nx-font-serif, 'Alice', Georgia, serif);
  font-size: clamp(1.35rem, 3.4vw, 2.3rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  color: #141414;
}

.nx-scroll-lines__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
  transform: translateX(0);
  pointer-events: none;
}

/* ─── About split ─── */
.nx-about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.nx-about-split__media {
  position: relative;
  isolation: isolate;
}

.nx-about-split__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f3f3f3;
}

.nx-about-split__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nx-about-split__shapes {
  position: absolute;
  inset: 8% 8% auto auto;
  width: 42%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.nx-about-split__shape {
  height: 48px;
  background: #051e33;
}

.nx-about-split__shape:nth-child(even) {
  transform: translateY(18px);
}

.nx-about-split__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nx-about-block {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: start;
}

.nx-about-block__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(201, 150, 46, 0.18), rgba(201, 150, 46, 0.05));
  border: 1px solid rgba(201, 150, 46, 0.35);
  color: var(--nx-gold, #C9962E);
  position: relative;
}

.nx-about-block__icon::after {
  content: '';
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: calc(100% + 1.25rem);
  background: linear-gradient(180deg, rgba(201, 150, 46, 0.45), transparent);
}

.nx-about-block:last-of-type .nx-about-block__icon::after {
  display: none;
}

.nx-about-block__icon svg {
  width: 24px;
  height: 24px;
}

.nx-about-block h3 {
  margin: 0 0 0.45rem;
  font-family: var(--nx-font-serif, 'Alice', Georgia, serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #141414;
}

.nx-about-block p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #474747;
}

.nx-about-split__cta {
  margin-top: 0.5rem;
}

.nx-about-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--nx-font-sans, 'Open Sans', sans-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border: 1px solid #051e33;
  background: #051e33;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.3s, box-shadow 0.3s;
}

.nx-about-btn:hover {
  background: #c9962e;
  border-color: #c9962e;
  color: #051e33;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(7, 29, 58, 0.22);
}

/* ─── Counters (Jewellery-NX odometer) ─── */
.nx-counter-section {
  background: #f7f7f7;
  padding: clamp(4rem, 9vw, 5.5rem) 0;
}

.nx-counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.nx-counter-card {
  text-align: left;
}

.nx-counter {
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  height: 96px;
  margin-bottom: 0.65rem;
  color: #141414;
  font-family: var(--nx-font-serif, 'Alice', Georgia, serif);
  font-size: clamp(2.75rem, 5vw, 4.35rem);
  font-weight: 500;
  line-height: 96px;
  letter-spacing: 0.02em;
}

.nx-counter__prefix,
.nx-counter__postfix {
  flex-shrink: 0;
  height: 96px;
  color: #a08a5a;
  font-size: inherit;
  line-height: 96px;
}

.nx-counter__prefix {
  margin-right: 0.02em;
  opacity: 0;
  transform: translateX(-20px);
}

.nx-counter.is-done .nx-counter__prefix {
  opacity: 1;
  transform: translateX(0);
}

.nx-counter__postfix {
  margin-left: 0.02em;
}

.nx-counter__col {
  position: relative;
  flex-shrink: 0;
  height: 96px;
  min-width: 0.58em;
  will-change: transform;
}

.nx-counter__col--forward {
  transform: translateY(-1000%);
}

.nx-counter__col--reverse {
  transform: translateY(0%);
}

.nx-counter__digit {
  display: block;
  height: 96px;
  margin: 0;
  font-size: inherit;
  line-height: 96px;
  letter-spacing: 0.02em;
  text-align: center;
  color: #141414;
}

.nx-counter.is-done .nx-counter__col--forward {
  transform: translateY(0%);
}

.nx-counter.is-done .nx-counter__col--reverse {
  transform: translateY(-1000%);
}

.nx-counter__title {
  margin: 0 0 0.4rem;
  font-family: var(--nx-font-serif, 'Alice', Georgia, serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: #141414;
}

.nx-counter-card > p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #6a6a6a;
  max-width: 220px;
}

/* ─── Team ─── */
.nx-team-head {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.nx-team-head h2,
.nx-testi-head h2 {
  margin: 0 0 0.85rem;
  font-family: var(--nx-font-serif, 'Alice', Georgia, serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #141414;
}

.nx-team-head p,
.nx-testi-head p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  color: #474747;
}

.nx-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.nx-team-card {
  position: relative;
}

.nx-team-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #eee;
}

.nx-team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.nx-team-card__social {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.45s, transform 0.45s;
  z-index: 2;
}

.nx-team-card__social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #051e33;
  text-decoration: none;
  transition: background 0.25s, color 0.25s;
}

.nx-team-card__social a:hover {
  background: var(--nx-gold, #C9962E);
  color: #fff;
}

.nx-team-card__social svg {
  width: 14px;
  height: 14px;
}

.nx-team-card__info {
  position: relative;
  width: 90%;
  margin: -3.5rem auto 0;
  padding: 1.15rem 1rem 1.25rem;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.nx-team-card__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: #051e33;
  transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.nx-team-card__info h3,
.nx-team-card__info p {
  position: relative;
  z-index: 1;
  transition: color 0.4s;
}

.nx-team-card__info h3 {
  margin: 0 0 0.3rem;
  font-family: var(--nx-font-serif, 'Alice', Georgia, serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: #141414;
}

.nx-team-card__info p {
  margin: 0;
  font-size: 0.82rem;
  color: #a08a5a;
  letter-spacing: 0.02em;
}

.nx-team-card:hover .nx-team-card__media img {
  transform: scale(1.1);
}

.nx-team-card:hover .nx-team-card__social {
  opacity: 1;
  transform: translateX(0);
}

.nx-team-card:hover .nx-team-card__bar {
  height: 100%;
}

.nx-team-card:hover .nx-team-card__info h3 {
  color: #fff;
}

.nx-team-card:hover .nx-team-card__info p {
  color: #e9e9e9;
}

/* ─── Testimonials ─── */
.nx-testi {
  padding-bottom: clamp(4.5rem, 9vw, 6rem);
}

.nx-testi-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.nx-testi-slider-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.nx-testi-swiper {
  overflow: visible;
  padding: 0 0 2.5rem;
}

.nx-testi-card {
  background: transparent;
}

.nx-testi-card__body {
  background: #f7f7f7;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  min-height: 180px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #474747;
}

.nx-testi-card__client {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: -1.75rem;
  padding-left: 1.5rem;
  position: relative;
  z-index: 1;
}

.nx-testi-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  background: #eee;
}

.nx-testi-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-testi-card__meta strong {
  display: block;
  font-family: var(--nx-font-serif, 'Alice', Georgia, serif);
  font-size: 1rem;
  font-weight: 500;
  color: #141414;
}

.nx-testi-card__meta span {
  font-size: 0.8rem;
  color: #6a6a6a;
}

.nx-testi-nav {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.nx-testi-nav__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #051e33;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.nx-testi-nav__btn:hover {
  background: var(--nx-gold, #C9962E);
  transform: translateY(-2px);
}

.nx-testi-nav__btn svg {
  width: 18px;
  height: 18px;
}

/* Reveal helpers */
.nx-about-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.nx-about-split__content.nx-about-reveal {
  transform: translateX(12%) rotate(3deg);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .nx-about-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nx-about-split__frame {
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 5 / 4;
  }

  .nx-counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .nx-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .nx-scroll-lines {
    margin-bottom: 2.5rem;
  }

  .nx-scroll-lines__text {
    font-size: clamp(1.1rem, 5.2vw, 1.45rem);
  }

  .nx-about-block {
    grid-template-columns: 48px 1fr;
  }

  .nx-about-block__icon {
    width: 48px;
    height: 48px;
  }

  .nx-about-block__icon::after {
    display: none;
  }

  .nx-counter {
    height: 72px;
    font-size: 2.5rem;
    line-height: 72px;
  }

  .nx-counter__prefix,
  .nx-counter__postfix,
  .nx-counter__digit {
    height: 72px;
    line-height: 72px;
  }

  .nx-counter__col {
    height: 72px;
  }

  .nx-team-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .nx-team-card__info {
    margin-top: -2.75rem;
  }
}

@media (max-width: 479px) {
  .nx-counter-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-scroll-lines__overlay,
  .nx-img-wipe {
    display: none !important;
  }

  .nx-about-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .nx-counter {
    opacity: 1 !important;
  }

  .nx-counter__prefix {
    opacity: 1 !important;
    transform: none !important;
  }

  .nx-counter__col--forward {
    transform: translateY(0%) !important;
  }

  .nx-counter__col--reverse {
    transform: translateY(-1000%) !important;
  }
}
