/* V2 Rich — editorial galleries and richer service-page composition */
.rich-proof {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: -34px auto 76px;
  overflow: hidden;
  color: #f9f4ea;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(7, 21, 34, .18);
  backdrop-filter: blur(14px);
}

.rich-proof__item {
  min-height: 92px;
  padding: 20px 24px;
  background: rgba(8, 31, 49, .9);
}

.rich-proof__item small {
  display: block;
  margin-bottom: 6px;
  color: #d4a66c;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rich-proof__item strong {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  line-height: 1.35;
}

.rich-gallery {
  --rich-gap: clamp(16px, 2.2vw, 28px);
  position: relative;
  margin-block: clamp(90px, 12vw, 150px);
  padding-block: clamp(72px, 9vw, 116px);
  overflow: hidden;
  color: #f8f3e9;
  background:
    radial-gradient(circle at 88% 10%, rgba(24, 119, 117, .28), transparent 28rem),
    radial-gradient(circle at 12% 92%, rgba(207, 106, 81, .16), transparent 24rem),
    #091d2d;
}

.rich-gallery::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .13;
  background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.rich-gallery__head,
.rich-gallery__status {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.rich-gallery__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

.rich-gallery__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #d9ad76;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rich-gallery__eyebrow::before {
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
}

.rich-gallery h2 {
  max-width: 760px;
  margin: 0;
  color: #fffaf1;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.rich-gallery__intro {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(248, 243, 233, .68);
  font-size: clamp(.98rem, 1.5vw, 1.12rem);
  line-height: 1.65;
}

.rich-gallery__controls { display: flex; gap: 10px; }

.rich-gallery__button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease, opacity .25s ease;
}

.rich-gallery__button:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.rich-gallery__button:disabled { opacity: .32; cursor: default; transform: none; }
.rich-gallery__button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.rich-gallery__track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--rich-gap);
  margin: 0;
  padding: 4px max(20px, calc((100vw - 1120px) / 2)) 28px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: max(20px, calc((100vw - 1120px) / 2));
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(217, 173, 118, .65) rgba(255, 255, 255, .08);
  scrollbar-width: thin;
  cursor: grab;
}

.rich-gallery__track:active { cursor: grabbing; }
.rich-gallery__track:focus-visible { outline: 2px solid #d9ad76; outline-offset: -3px; }

.rich-gallery__card {
  position: relative;
  flex: 0 0 clamp(310px, 36vw, 470px);
  margin: 0;
  overflow: hidden;
  color: #122638;
  background: #f7f1e6;
  border-radius: 18px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .24);
  scroll-snap-align: start;
  transition: transform .35s ease, box-shadow .35s ease;
}

.rich-gallery__card:hover { transform: translateY(-5px); box-shadow: 0 32px 70px rgba(0, 0, 0, .3); }

.rich-gallery__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #d8d1c5; }
.rich-gallery__media::after { position: absolute; inset: 0; content: ""; box-shadow: inset 0 -40px 50px rgba(8, 29, 45, .08); }
.rich-gallery__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.rich-gallery__card:hover img { transform: scale(1.035); }

.rich-gallery__index {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: rgba(8, 29, 45, .76);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.rich-gallery__copy { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; min-height: 132px; padding: 22px 24px 24px; }
.rich-gallery__copy h3 { margin: 0 0 7px; color: #10283b; font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.025em; }
.rich-gallery__copy p { margin: 0; color: #5d6970; font-size: .92rem; line-height: 1.5; }
.rich-gallery__tag { padding: 7px 10px; color: #0e6969; background: rgba(14, 105, 105, .09); border-radius: 999px; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.rich-gallery__status { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: rgba(255, 255, 255, .52); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.rich-gallery__status::before { width: 46px; height: 1px; content: ""; background: #d9ad76; }

@media (max-width: 760px) {
  .rich-proof { grid-template-columns: 1fr; margin-top: -22px; margin-bottom: 58px; }
  .rich-proof__item { min-height: 0; padding: 16px 19px; }
  .rich-gallery { margin-block: 76px; padding-block: 68px; }
  .rich-gallery__head { grid-template-columns: 1fr; align-items: start; }
  .rich-gallery__controls { display: none; }
  .rich-gallery__card { flex-basis: min(84vw, 390px); }
  .rich-gallery__copy { grid-template-columns: 1fr; min-height: 150px; }
  .rich-gallery__tag { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .rich-gallery__track { scroll-behavior: auto !important; }
  .rich-gallery__card,
  .rich-gallery__button,
  .rich-gallery__media img { transition: none !important; }
}
