/* HAMOVAKI — restrained, restorative image language */
:root {
  --ink: #24352b;
  --forest: #3f5545;
  --moss: #788573;
  --cream: #f5f2eb;
  --paper: #fffdfa;
  --clay: #ddcbb4;
  --line: rgba(49, 66, 53, .15);
  --media-shadow: 0 22px 54px rgba(38, 48, 39, .15);
  --media-shadow-hover: 0 30px 72px rgba(38, 48, 39, .22);
  --media-ease: cubic-bezier(.22, .7, .25, 1);
}

.hero-image-wrap,
.quiet-photo,
.direction-card,
.catalog-card__media,
.ritual-card .picture-section,
.about-hero__photo {
  isolation: isolate;
  overflow: hidden;
}

.hero-image-wrap,
.quiet-photo,
.direction-card,
.catalog-card__media,
.about-hero__photo {
  box-shadow: var(--media-shadow);
}

/* The portrait reads as a photograph, not as a boxed illustration. */
.about-hero__photo {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.about-hero__photo::after {
  display: none;
}

.about-hero__photo img {
  aspect-ratio: 4 / 5 !important;
  border-radius: 48% 48% 3px 3px !important;
  box-shadow: 0 24px 58px rgba(48, 38, 30, .17);
}

.about-hero__photo figcaption {
  position: relative;
  z-index: 2;
  display: inline-block;
  width: auto;
  margin: -2px 18px 0;
  padding: 11px 15px;
  background: var(--clay);
  color: var(--ink);
}

.picture-section .lazy-image,
.catalog-card__media,
.hero-image-wrap,
.quiet-photo,
.about-hero__photo {
  background: #d9d3c8;
}

.picture-section .lazy-image::after,
.catalog-card__media::after,
.quiet-photo::after,
.about-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255, 245, 224, .13), transparent 42%),
    linear-gradient(0deg, rgba(20, 30, 24, .17), transparent 45%);
  transition: opacity .7s var(--media-ease);
}

.picture-section .lazy-image,
.catalog-card__media,
.quiet-photo,
.about-hero__photo {
  position: relative;
}

.picture-section img,
.catalog-card__media img,
.quiet-photo img,
.about-hero__photo img,
.hero-image-wrap img,
.direction-card img {
  display: block;
  transform: scale(1.001);
  filter: saturate(.9) contrast(1.035) brightness(1.025);
  transition: transform 1.15s var(--media-ease), filter .8s var(--media-ease);
  will-change: transform;
}

.picture-section:hover img,
.catalog-card:hover .catalog-card__media img,
.quiet-photo:hover img,
.about-hero__photo:hover img,
.hero-image-wrap:hover img,
.direction-card:hover img {
  transform: scale(1.055);
  filter: saturate(1) contrast(1.045) brightness(1.045);
}

.catalog-card:hover .catalog-card__media,
.quiet-photo:hover,
.about-hero__photo:hover {
  box-shadow: var(--media-shadow-hover);
}

.catalog-card:hover .catalog-card__media::after,
.quiet-photo:hover::after,
.about-hero__photo:hover::after {
  opacity: .55;
}

.hero-image-wrap img {
  animation: spa-breathe 12s ease-in-out infinite alternate;
}

.premium-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--media-ease), transform .8s var(--media-ease);
}

.premium-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reviews are intentionally quiet and readable: the guests' words lead. */
.reviews-hero {
  grid-template-columns: 1fr auto;
  min-height: 460px;
}

.reviews-hero__note {
  align-self: end;
  padding: 22px 28px;
  border: 1px solid var(--line);
  color: var(--moss);
  font: 12px/1.6 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 30px clamp(24px, 7vw, 120px) 96px;
}

.review-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(30px, 4vw, 52px);
  background: #fbf9f4;
  border: 1px solid rgba(57, 73, 59, .1);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(48, 58, 47, .07);
}

.review-card__top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.review-card__avatar {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--clay);
  color: var(--forest);
  font: 25px 'Playfair Display', Georgia, serif;
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card h2 {
  font-size: clamp(25px, 2.2vw, 34px);
  letter-spacing: -.03em;
}

.review-card__top a {
  display: inline-block;
  margin-top: 5px;
  color: var(--moss);
  font: 10px 'DM Mono', monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.review-card__text {
  color: #667064;
  font-size: 17px;
  line-height: 1.72;
}

.review-card__text p {
  margin: 0;
}

.review-card__text p + p {
  margin-top: 14px;
}

@keyframes spa-breathe {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.065) translate3d(0, -1.2%, 0); }
}

@media (max-width: 760px) {
  .picture-section .lazy-image::after,
  .catalog-card__media::after,
  .quiet-photo::after,
  .about-hero__photo::after { background: linear-gradient(0deg, rgba(20, 30, 24, .12), transparent 55%); }
  .hero-image-wrap img { animation-duration: 16s; }
  .reviews-hero { grid-template-columns: 1fr; min-height: 0; }
  .reviews-hero__note { justify-self: start; }
  .reviews-grid { grid-template-columns: 1fr; padding: 24px 18px 68px; }
  .review-card { min-height: 0; padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .premium-reveal { opacity: 1; transform: none; }
}
