.royal-carpet-install-section,
.royal-carpet-install-section *,
.royal-carpet-install-section *::before,
.royal-carpet-install-section *::after {
  box-sizing: border-box;
}

.royal-carpet-install-section {
  --royal-navy: #0f213f;
  --royal-navy-deep: #08152d;
  --royal-navy-soft: #5b6e82;
  --royal-gold-light: #fff1bf;
  --royal-gold: #d6b25e;
  --royal-gold-deep: #8a6217;
  --royal-border: rgba(15, 33, 63, 0.11);
  --royal-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(247, 250, 252, 0.97) 100%);
  --royal-shadow-xl: 0 30px 70px rgba(15, 23, 42, 0.12);
  --royal-shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.10);

  position: relative;
  overflow: visible;
  padding: clamp(4rem, 6.2vw, 5.8rem) 1rem;
  background:
    radial-gradient(900px 300px at 0% 0%, rgba(127, 166, 225, 0.10), transparent 46%),
    radial-gradient(760px 240px at 100% 0%, rgba(214, 178, 94, 0.08), transparent 42%),
    linear-gradient(180deg, #f5f8fb 0%, #ffffff 52%, #f7fafc 100%);
}

.royal-carpet-install__inner {
  position: relative;
  z-index: 1;
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: clamp(1.3rem, 2.8vw, 2.3rem);
  border-radius: 34px;
  border: 1px solid var(--royal-border);
  background: var(--royal-surface);
  box-shadow: var(--royal-shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.royal-carpet-install__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.92),
    rgba(214,178,94,0.22),
    rgba(127,166,225,0.12),
    rgba(255,255,255,0.90)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.royal-carpet-install__header,
.royal-carpet-install__gallery,
.royal-carpet-install__video-block {
  width: min(1000px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.royal-carpet-install__header {
  text-align: center;
  margin-bottom: 2.3rem;
}

.royal-carpet-install__eyebrow,
.royal-carpet-install__video-kicker {
  margin: 0;
  font-family: 'Roboto', 'Inter', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.royal-carpet-install__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #ffffff;
  background: linear-gradient(145deg, #1a2748 0%, #2e4575 54%, #0a2342 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 22px rgba(10, 35, 66, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.royal-carpet-install__title {
  margin: 1rem 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  line-height: 1.05;
}

.royal-carpet-install__title-logo {
  width: 52px;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 8px 18px rgba(10, 35, 66, 0.14)) drop-shadow(0 4px 10px rgba(214, 178, 94, 0.16));
}

.royal-carpet-install__title span {
  display: inline-block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.1rem, 4.3vw, 3.45rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  background: linear-gradient(180deg, var(--royal-gold-light) 0%, var(--royal-gold) 42%, var(--royal-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.royal-carpet-install__subtitle,
.royal-carpet-install__image-text,
.royal-carpet-install__video-text {
  margin: 0;
  font-family: 'Roboto', 'Inter', system-ui, sans-serif;
  color: var(--royal-navy-soft);
}

.royal-carpet-install__subtitle {
  max-width: 860px;
  margin: 1rem auto 0;
  font-size: 1.04rem;
  line-height: 1.84;
}

.royal-carpet-install__signals {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.2rem auto 0;
  padding: 0;
  max-width: 920px;
}

.royal-carpet-install__signals li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  font-family: 'Roboto', 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--royal-navy);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  border: 1px solid rgba(15, 33, 63, 0.10);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255,255,255,0.96);
}

.royal-carpet-install__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.royal-carpet-install__button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none !important;
  font-family: 'Roboto', 'Inter', system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.royal-carpet-install__button--primary {
  color: #ffffff !important;
  background: linear-gradient(145deg, #1a2748 0%, #2d4373 56%, #0a2342 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 24px rgba(10, 35, 66, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.royal-carpet-install__button--secondary {
  color: #ffffff !important;
  background: linear-gradient(145deg, #950870, #b3188d, #d24fb2);
  border: none;
  box-shadow: 0 10px 24px rgba(149, 8, 112, 0.30);
  position: relative;
  padding-left: 2.2rem; /* space for icon */
}

.royal-carpet-install__button--secondary::before {
  content: "→"; /* you can change this */
  position: absolute;
  left: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}
.royal-carpet-install__button:hover,
.royal-carpet-install__button:focus-visible {
  transform: translateY(-2px);
}

.royal-carpet-install__button--primary:hover,
.royal-carpet-install__button--primary:focus-visible {
  background: linear-gradient(145deg, #22345c 0%, #355289 58%, #0b1a34 100%);
  border-color: rgba(214,178,94,0.40);
}

.royal-carpet-install__button--secondary:hover,
.royal-carpet-install__button--secondary:focus-visible {
  color: #ffffff !important;
  background: linear-gradient(145deg, #7a0660, #9d157c, #c43aa5);
  transform: translateY(-2px);
}

.royal-carpet-install__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.royal-carpet-install__image-card,
.royal-carpet-install__video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--royal-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(248,250,252,0.97) 100%);
  box-shadow: var(--royal-shadow-lg), inset 0 1px 0 rgba(255,255,255,0.98);
}

.royal-carpet-install__image-card::before,
.royal-carpet-install__video-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.4rem;
  right: 1.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,178,94,0.94), transparent);
}

.royal-carpet-install__image-frame {
  position: relative;
  overflow: hidden;
  background: #eef3f8;
  border-bottom: 1px solid rgba(15, 33, 63, 0.08);
}

.royal-carpet-install__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.royal-carpet-install__image-copy {
  padding: 1.15rem 1.15rem 1.2rem;
}

.royal-carpet-install__image-title,
.royal-carpet-install__video-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--royal-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.royal-carpet-install__image-title {
  font-size: 1.2rem;
  line-height: 1.2;
}

.royal-carpet-install__image-text {
  margin-top: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.78;
}

.royal-carpet-install__video-block {
  margin-top: 2.2rem;
}

.royal-carpet-install__video-shell {
  padding: clamp(1.2rem, 2.7vw, 1.8rem);
}

.royal-carpet-install__video-kicker {
  font-size: 0.72rem;
  color: var(--royal-gold-deep);
}

.royal-carpet-install__video-title {
  font-size: clamp(1.45rem, 2.5vw, 1.98rem);
  line-height: 1.18;
}

.royal-carpet-install__video-text {
  margin-top: 0.65rem;
  max-width: 710px;
  font-size: 0.98rem;
  line-height: 1.78;
}

.royal-carpet-install__video-wrap {
  margin-top: 1rem;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(15, 33, 63, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(247,250,252,0.96) 100%);
}

.royal-carpet-install__video {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #000;
}
/* =========================
   Universal lazy video shell
   Carpet section
========================= */

.royal-carpet-install__video-wrap.royal-video-lazy {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    cursor: pointer;
    line-height: 0;
}

/* Poster image */
.royal-carpet-install__video-wrap .royal-video-poster {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
}

/* Loaded video */
.royal-carpet-install__video-wrap .royal-lazy-loaded-video,
.royal-carpet-install__video-wrap video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    background: #000;
}

/* Soft overlay */
.royal-carpet-install__video-wrap.royal-video-lazy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.18),
        rgba(0, 0, 0, 0.04)
    );
    pointer-events: none;
    z-index: 1;
}

/* Play button */
.royal-carpet-install__video-wrap .royal-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 2;
    transition: transform 0.25s ease, background 0.25s ease, opacity 0.25s ease;
}

/* Triangle icon */
.royal-carpet-install__video-wrap .royal-video-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-38%, -50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid #fff;
}

/* Hover/focus */
.royal-carpet-install__video-wrap.royal-video-lazy:hover .royal-video-play,
.royal-carpet-install__video-wrap.royal-video-lazy:focus-within .royal-video-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(0, 0, 0, 0.82);
}

/* Hide play button after load */
.royal-carpet-install__video-wrap.royal-video-lazy.is-loaded .royal-video-play::before,
.royal-carpet-install__video-wrap.royal-video-lazy.is-loaded::after {
    display: none;
}

.royal-carpet-install__video-wrap.royal-video-lazy.is-loaded .royal-video-play {
    opacity: 0;
    pointer-events: none;
}

/* Mobile */
@media (max-width: 767px) {
    .royal-carpet-install__video-wrap .royal-video-play {
        width: 68px;
        height: 68px;
    }

    .royal-carpet-install__video-wrap .royal-video-play::before {
        border-top-width: 12px;
        border-bottom-width: 12px;
        border-left-width: 20px;
    }
}
@media (max-width: 980px) {
  .royal-carpet-install__gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .royal-carpet-install-section {
    padding: 3.6rem 0.9rem;
  }

  .royal-carpet-install__inner {
    padding: 1.1rem;
    border-radius: 24px;
  }

  .royal-carpet-install__title {
    gap: 0.7rem;
  }

  .royal-carpet-install__title-logo {
    width: 42px;
  }

  .royal-carpet-install__title span {
    font-size: 1.95rem;
  }

  .royal-carpet-install__subtitle,
  .royal-carpet-install__image-text,
  .royal-carpet-install__video-text {
    font-size: 0.96rem;
  }

  .royal-carpet-install__signals {
    justify-content: flex-start;
  }

  .royal-carpet-install__button {
    width: 100%;
  }

  .royal-carpet-install__image-card,
  .royal-carpet-install__video-shell {
    border-radius: 22px;
  }

  .royal-carpet-install__video-wrap {
    padding: 6px;
    border-radius: 18px;
  }

  .royal-carpet-install__video {
    border-radius: 12px;
  }
}

@media (max-width: 560px) {
  .royal-carpet-install__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    padding: 0.42rem 0.74rem;
  }

  .royal-carpet-install__title {
    flex-direction: column;
  }

  .royal-carpet-install__title-logo {
    width: 36px;
  }

  .royal-carpet-install__title span {
    font-size: 1.7rem;
  }

  .royal-carpet-install__image-title,
  .royal-carpet-install__video-title {
    font-size: 1.08rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .royal-carpet-install__button {
    transition: none;
  }

  .royal-carpet-install__button:hover,
  .royal-carpet-install__button:focus-visible {
    transform: none;
  }
}
