/* KYIV — soft luxury pink over ivory + warm rose */
:root {
  --ivory: #F9EFEC;
  --pearl: #FDF6F2;
  --cream: #F3E2DA;
  --bone:  #E5CFC6;
  --line:  #DDC2B6;

  --accent:        #B07E8C;   /* soft luxury rose */
  --accent-deep:   #7A4C5A;   /* deeper rose */
  --accent-soft:   #DCB0B6;   /* pale pink highlight */
  --accent-pearl:  #FDF6F2;

  --espresso: #2C1B1F;
  --noir:     #15080B;
  --on-dark-text: #FDF6F2;

  --hero-gradient:
    radial-gradient(circle at 65% 28%, rgba(252,222,222,.7), transparent 55%),
    radial-gradient(circle at 22% 80%, rgba(122,76,90,.5), transparent 60%),
    linear-gradient(180deg, #E9C2C7 0%, #B07E8C 55%, #2C1B1F 100%);
}

/* =====================================================
   Kyiv — Service cards with background photography
   ===================================================== */

.service-image-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 0;                      /* reset base svc-card padding */
  background: var(--accent-deep);  /* fallback colour if image fails to load */
  border-color: transparent;
  color: var(--on-dark-text);
}

/* The actual photo layer — background-image set via inline style on each card */
.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 0.85s ease;
  will-change: transform;
}

/* Ken-Burns-style subtle zoom on hover */
.service-image-card:hover .service-card-bg {
  transform: scale(1.07);
}

/* Rose-tinted overlay — mirrors the Kyiv hero tint */
.service-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(32, 16, 20, 0.26) 0%,
      rgba(122, 76, 90, 0.46) 55%,
      rgba(21, 8, 11, 0.68) 100%
    ),
    rgba(249, 239, 236, 0.06);
}

/* Text content sits above overlay */
.service-card-content {
  position: relative;
  z-index: 2;
  padding: 36px 32px 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ---- Text colour overrides for image cards ---- */
.service-image-card h3 { color: var(--on-dark-text); }

.service-image-card p  {
  color: var(--on-dark-text);
  opacity: 0.88;
}

.service-image-card ul {
  color: var(--on-dark-text);
  opacity: 1;
}

.service-image-card ul li {
  border-bottom-color: rgba(255, 255, 255, 0.20);
  color: var(--on-dark-text);
}

.service-image-card ul li:last-child { border-bottom: 0; }

.service-image-card .more {
  color: var(--on-dark-text);
  border-color: rgba(255, 255, 255, 0.36);
  margin-top: auto;
  padding-top: 22px;
}

.service-image-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Centre the last pair (Body + VIP) as a unit within the 3-column grid row */
.svc-center-pair {
  grid-column: 1 / -1;          /* span the full grid width */
  display: flex;
  justify-content: center;
  gap: 24px;                    /* match the parent .svc-grid gap */
}

.svc-center-pair > .svc-card {
  flex: 0 0 calc((100% - 48px) / 3);   /* same width as one 1fr column */
  min-height: 420px;
}

@media (max-width: 980px) {
  .svc-center-pair > .svc-card {
    flex: 0 0 calc(50% - 12px);   /* match the 2-column layout */
  }
}

@media (max-width: 600px) {
  .svc-center-pair {
    flex-direction: column;
  }
  .svc-center-pair > .svc-card {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Reduced motion — disable the Ken-Burns zoom */
@media (prefers-reduced-motion: reduce) {
  .service-card-bg { transition: none; }
  .service-image-card:hover .service-card-bg { transform: scale(1.02); }
}

/* =====================================================
   Kyiv — Gallery thumbnails (cropped cover fill)
   ===================================================== */

/* Thumbnails fill their tile cleanly; cropping is intentional here */
.gallery-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =====================================================
   Kyiv — Gallery full-image preview frame
   Scoped to .kyiv-gallery-full-preview — Kyiv only
   ===================================================== */

/* Large preview — sits between the heading and the thumbnail grid */
.kyiv-gallery-preview-frame {
  width: min(100%, 1080px);
  margin: 0 auto 32px;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(249, 239, 236, 0.72),
    rgba(122, 76, 90, 0.10)
  );
  border: 1px solid rgba(220, 176, 182, 0.45);
  box-shadow:
    0 28px 80px rgba(122, 76, 90, 0.14),
    0  4px 24px rgba(176, 126, 140, 0.10);
  padding: 14px;
}

/* Inner editorial frame line */
.kyiv-gallery-preview-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.40);
  pointer-events: none;
  z-index: 2;
}

/* Full-image preview — object-fit: contain so nothing is ever cropped */
.kyiv-gallery-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  transition: opacity 0.30s ease;
  position: relative;
  z-index: 1;
}

/* Thumbnail tile — gentle lift + rose border on hover / active */
.kyiv-gallery-full-preview .gallery-tile {
  transition:
    transform    0.55s cubic-bezier(.2, .7, .2, 1),
    box-shadow   0.55s cubic-bezier(.2, .7, .2, 1),
    border-color 0.35s ease,
    opacity      0.35s ease;
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
}

.kyiv-gallery-full-preview .gallery-tile:hover,
.kyiv-gallery-full-preview .gallery-tile.is-active {
  transform: scale(1.035) translateY(-3px);
  z-index: 4;
  border-color: rgba(220, 176, 182, 0.70);
  box-shadow: 0 10px 36px rgba(122, 76, 90, 0.18);
}

/* Focus ring for keyboard navigation */
.kyiv-gallery-full-preview .gallery-tile:focus-visible {
  outline: 2px solid rgba(176, 126, 140, 0.80);
  outline-offset: 2px;
}

/* Non-active tiles dim while a sibling is hovered */
.kyiv-gallery-full-preview .gallery-grid:has(.gallery-tile:hover) .gallery-tile:not(:hover):not(.is-active) {
  opacity: 0.65;
}

/* ---- Mobile / tablet — disable movement, keep tap-to-preview ---- */
@media (max-width: 768px) {
  .kyiv-gallery-preview-frame {
    aspect-ratio: 4 / 3;
    margin-bottom: 20px;
    padding: 10px;
  }
  .kyiv-gallery-preview-frame::after {
    inset: 10px;
  }
  .kyiv-gallery-full-preview .gallery-tile {
    transition: border-color 0.3s ease, opacity 0.3s ease;
  }
  .kyiv-gallery-full-preview .gallery-tile:hover,
  .kyiv-gallery-full-preview .gallery-tile.is-active {
    transform: none;
    box-shadow: none;
    border-color: rgba(220, 176, 182, 0.70);
  }
  .kyiv-gallery-full-preview .gallery-grid:has(.gallery-tile:hover) .gallery-tile:not(:hover):not(.is-active) {
    opacity: 1;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .kyiv-gallery-preview-img { transition: none; }
  .kyiv-gallery-full-preview .gallery-tile {
    transition: border-color 0.2s ease, opacity 0.2s ease;
  }
  .kyiv-gallery-full-preview .gallery-tile:hover,
  .kyiv-gallery-full-preview .gallery-tile.is-active {
    transform: none;
    box-shadow: none;
  }
}

/* =====================================================
   Kyiv — About section photo
   ===================================================== */

/* Override the CSS-gradient placeholder with the real photo */
.about-art {
  background: var(--accent-deep); /* solid fallback while image loads */
}

.about-art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Preserve caption legibility over the photo */
.about-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(21, 8, 11, 0.52) 100%
  );
  pointer-events: none;
}
