/* Royal Smoke — pages 1: hero, about, service, catalog */

/* ——— Hero ——— */
.rs-hero {
  position: relative;
  min-height: 560px;
  height: 100vh;
  height: 100dvh;
  background: var(--rs-bark);
  overflow: hidden;
}

.rs-hero__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rs-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
  pointer-events: none;
}

.rs-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.rs-hero__slide img,
.rs-hero__slide .rs-hero__placeholder {
  width: 100%;
  height: 100%;
  margin-top: 0;
  object-fit: cover;
  object-position: center 58%;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Slide 1 = 02: raise crop so cigars sit higher in frame */
.rs-hero__slide:nth-child(1) img {
  object-position: 42% 72%;
}

.rs-hero__slide:nth-child(2) img {
  object-position: 68% 70%;
}

.rs-hero__slide:nth-child(3) img {
  object-position: 28% 55%;
}

/* Mobile / iOS: cover + zoom into subject (cigars live on the right) */
@media (max-width: 767px) {
  .rs-hero__slide img,
  .rs-hero__slide .rs-hero__placeholder {
    object-fit: cover;
    object-position: 78% 52%;
    -webkit-transform: translateZ(0) scale(1.16);
    transform: translateZ(0) scale(1.16);
    -webkit-transform-origin: 78% 52%;
    transform-origin: 78% 52%;
  }

  .rs-hero__slide:nth-child(1) img {
    object-position: 70% 46%;
    -webkit-transform-origin: 70% 46%;
    transform-origin: 70% 46%;
  }

  .rs-hero__slide:nth-child(2) img {
    object-position: 80% 58%;
    -webkit-transform-origin: 80% 58%;
    transform-origin: 80% 58%;
  }

  .rs-hero__slide:nth-child(3) img {
    object-position: 68% 40%;
    -webkit-transform-origin: 68% 40%;
    transform-origin: 68% 40%;
  }
}

.rs-hero__placeholder {
  background: var(--rs-slot);
}

.rs-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(
      105deg,
      rgba(20, 16, 14, 0.82) 0%,
      rgba(20, 16, 14, 0.55) 32%,
      rgba(20, 16, 14, 0.18) 58%,
      rgba(20, 16, 14, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 16, 14, 0.35) 0%,
      rgba(20, 16, 14, 0.08) 28%,
      rgba(20, 16, 14, 0.55) 100%
    );
  pointer-events: none;
}

.rs-hero__content {
  position: relative;
  /* Above expand + thumb — brand/CTA never covered mid-expand */
  z-index: 8;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--rs-pad-x) 88px;
  max-width: var(--rs-container);
  margin-inline: auto;
  /* Let thumb receive clicks where content has no interactive children */
  pointer-events: none;
}

.rs-hero__content a,
.rs-hero__content button {
  pointer-events: auto;
}

.rs-hero__title {
  font-family: var(--rs-font-display);
  font-weight: var(--rs-weight-display);
  font-size: 34px;
  line-height: 1.18;
  color: var(--rs-seashell);
  text-wrap: pretty;
  margin-bottom: 10px;
}

.rs-hero__sub {
  color: var(--rs-text-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 36ch;
  margin-bottom: 26px;
}

.rs-hero__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 420px;
  margin-bottom: 28px;
}

.rs-hero__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: min(100%, calc(100vw - 96px));
}

.rs-hero__dots {
  display: flex;
  gap: 8px;
}

.rs-hero__dot {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.rs-hero__dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(252, 242, 238, 0.4);
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.rs-hero__dot.is-active span,
.rs-hero__dot[aria-current="true"] span {
  background: var(--rs-gold);
  transform: scale(1.15);
}

.rs-hero__counter {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--rs-text-muted);
  margin-right: 0;
}

.rs-hero__next {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--rs-gold);
  flex-shrink: 0;
  margin: 0;
}

.rs-hero__thumb {
  --rs-thumb-peek: 0px;
  --rs-thumb-size: 112px;
  position: absolute;
  /* Above expand + bottom fade, below brand/CTA */
  z-index: 7;
  top: auto;
  /* Left of float call button, slightly above it */
  right: calc(16px + 52px + 16px + var(--rs-safe-r, 0px));
  bottom: calc(16px + 52px + 10px + 52px + 12px + var(--rs-safe-b, 0px));
  width: var(--rs-thumb-size);
  height: var(--rs-thumb-size);
  margin-top: 0;
  transform: translate3d(var(--rs-thumb-peek), 0, 0);
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(252, 242, 238, 0.32);
  outline: 0;
  padding: 0;
  background: rgba(16, 13, 12, 0.35);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.rs-hero__thumb.is-away {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.rs-hero__thumb:focus,
.rs-hero__thumb:focus-visible {
  outline: 0;
  box-shadow: none;
}

.rs-hero__thumb img,
.rs-hero__thumb .rs-hero__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.rs-hero__thumb.is-expanding {
  z-index: 7;
  box-shadow: none;
  border-color: transparent;
  outline: 0;
}

/* Expand: thumb clone grows into full hero (above veil, under content) */
.rs-hero__expand {
  position: absolute;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  display: none;
  will-change: left, top, width, height, border-radius, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.rs-hero__expand.is-on {
  display: block;
}

.rs-hero__expand-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  will-change: object-position, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.rs-hero__expand-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
  background:
    linear-gradient(
      105deg,
      rgba(20, 16, 14, 0.82) 0%,
      rgba(20, 16, 14, 0.55) 32%,
      rgba(20, 16, 14, 0.18) 58%,
      rgba(20, 16, 14, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 16, 14, 0.35) 0%,
      rgba(20, 16, 14, 0.08) 28%,
      rgba(20, 16, 14, 0.55) 100%
    );
}

/* ——— Service ——— */
.rs-service {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px var(--rs-pad-x) 40px;
  background: transparent;
}

.rs-service-block {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--rs-bark);
  border: 1px solid var(--rs-hairline);
  overflow: hidden;
}

.rs-service-block__media {
  min-height: 240px;
  background: var(--rs-slot);
  overflow: hidden;
}

.rs-service-block__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rs-service-block__body {
  padding: 36px var(--rs-pad-x);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rs-service-block__text {
  color: var(--rs-text-muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 46ch;
}

.rs-service-block__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 10px;
}

.rs-service-block__list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--rs-text-soft);
}

.rs-service-block__list li::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--rs-gold);
  margin-top: 0.7em;
  flex-shrink: 0;
}

.rs-service-block__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rs-seashell);
  margin-top: 8px;
}

/* ——— Catalog ——— */
.rs-page-head {
  padding: 28px var(--rs-pad-x) 8px;
  max-width: var(--rs-container);
  margin-inline: auto;
  text-align: center;
}

.rs-page-head h1 {
  text-align: center;
}

.rs-page-head p {
  margin-top: 10px;
  margin-inline: auto;
  color: var(--rs-text-muted);
  max-width: 48ch;
  text-align: center;
}

.rs-catalog {
  display: grid;
  gap: 28px;
  padding-block: 24px 56px;
}

.rs-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rs-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rs-filters__select {
  min-height: 44px;
  padding: 0 14px;
  background: var(--rs-bark-light);
  border: 1px solid var(--rs-border-soft);
  color: var(--rs-seashell);
  appearance: none;
  -webkit-appearance: none;
}

.rs-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--rs-text-muted);
}