/* =========================================
   Royal Shop at Home Section
   Clean rewrite — modern luxury, unified icons,
   refined step badges, calmer hierarchy.
   ========================================= */

.royal-shop-home-section,
.royal-shop-home-section *,
.royal-shop-home-section *::before,
.royal-shop-home-section *::after {
  box-sizing: border-box;
}

.royal-shop-home-section {
  --royal-navy: #13233e;
  --royal-navy-deep: #0e1728;
  --royal-navy-soft: #516072;
  --royal-gold: #c6a75b;
  --royal-gold-deep: #a88633;
  --royal-gold-soft: #f3ead7;
  --royal-gold-wash: #fbf6ec;
  --royal-white: #ffffff;
  --royal-border: rgba(19, 35, 62, 0.10);
  --royal-border-strong: rgba(198, 167, 91, 0.30);
  --royal-shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.10);
  --royal-shadow-md: 0 18px 40px rgba(15, 23, 42, 0.08);
  --royal-shadow-sm: 0 10px 22px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: visible;
  padding: clamp(4.5rem, 7vw, 6.75rem) 1.25rem;
  background:
    radial-gradient(900px 280px at 8% 0%, rgba(198, 167, 91, 0.14), transparent 46%),
    radial-gradient(820px 260px at 100% 0%, rgba(19, 35, 62, 0.08), transparent 44%),
    linear-gradient(180deg, #fbf8f2 0%, #ffffff 54%, #f7f2e9 100%);
}

.royal-shop-home__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border-radius: 34px;
  border: 1px solid var(--royal-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 247, 241, 0.96) 100%);
  box-shadow:
    var(--royal-shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.royal-shop-home__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88),
    rgba(198, 167, 91, 0.20),
    rgba(19, 35, 62, 0.08),
    rgba(255, 255, 255, 0.84)
  );
  -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-shop-home__header,
.royal-shop-home__grid,
.royal-shop-home__video-block,
.royal-shop-home__cta {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* -----------------------------------------
   Header
   ----------------------------------------- */

.royal-shop-home__header {
  margin-bottom: 3rem;
  text-align: center;
}

.royal-shop-home__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, #1f2c47 0%, #131a2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.royal-shop-home__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
   gap: 0;
  flex-wrap: wrap;
  text-align: center;
  line-height: 1.06;
}

.royal-title-logo {
  width: 48px;
  height: auto;
  display: inline-block;
  flex: 0 0 auto;
  transform: translateY(-1px);
  filter:
    drop-shadow(0 6px 14px rgba(15, 23, 42, 0.12))
    drop-shadow(0 2px 5px rgba(198, 167, 91, 0.15));
}

.royal-shop-home__title span {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #f7e7b4 0%, var(--royal-gold) 40%, var(--royal-gold-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.royal-shop-home__subtitle {
  max-width: 760px;
  margin: 1.05rem auto 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1.04rem;
  line-height: 1.82;
  color: var(--royal-navy-soft);
}

.royal-shop-home__subtitle strong {
  color: var(--royal-navy);
  font-weight: 800;
}

.royal-shop-home__header::after {
  content: "";
  display: block;
  width: 124px;
  height: 2px;
  margin: 1.3rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(198, 167, 91, 0), rgba(198, 167, 91, 1), rgba(198, 167, 91, 0));
  box-shadow: 0 0 16px rgba(198, 167, 91, 0.22);
}

/* -----------------------------------------
   Card grid
   ----------------------------------------- */

.royal-shop-home__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
  align-items: stretch;
  margin-bottom: 3rem;
}

.royal-shop-home__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 335px;
  padding: 1.5rem;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(249, 245, 237, 0.98) 100%);
  border: 1px solid var(--royal-border);
  box-shadow:
    var(--royal-shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.royal-shop-home__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(198, 167, 91, 0.95), transparent);
  opacity: 0.95;
}

.royal-shop-home__card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at center, rgba(198, 167, 91, 0.10), transparent 68%);
  pointer-events: none;
}

.royal-shop-home__card:hover {
  transform: translateY(-6px);
  border-color: var(--royal-border-strong);
  box-shadow:
    0 26px 56px rgba(15, 23, 42, 0.12),
    0 12px 24px rgba(198, 167, 91, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.royal-shop-home__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.royal-shop-home__icon {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.28rem;
  color: var(--royal-navy);
  border: 1px solid rgba(198, 167, 91, 0.34);
  background: linear-gradient(180deg, #fffdfa 0%, var(--royal-gold-soft) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 12px 28px rgba(15, 23, 42, 0.08);
}

.royal-shop-home__icon::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 1px solid rgba(198, 167, 91, 0.18);
}

/* Legacy modifier override so old per-card icon colors cannot bleed through */
.royal-shop-home__card--shop .royal-shop-home__icon,
.royal-shop-home__card--estimate .royal-shop-home__icon,
.royal-shop-home__card--install .royal-shop-home__icon,
.royal-shop-home__card--promise .royal-shop-home__icon {
  background: linear-gradient(180deg, #fffdfa 0%, var(--royal-gold-soft) 100%);
}

.royal-shop-home__card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 36px;
  padding: 0 0.95rem;
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--royal-navy);
  background: linear-gradient(180deg, #ffffff 0%, #f5eee0 100%);
  border: 1px solid rgba(198, 167, 91, 0.32);
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.royal-shop-home__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.royal-shop-home__card-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.28rem;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--royal-navy);
}

.royal-shop-home__card-text {
  margin: 0;
  max-width: 34ch;
  font-family: 'Roboto', sans-serif;
  font-size: 0.98rem;
  line-height: 1.76;
  color: var(--royal-navy-soft);
}

.royal-shop-home__card-text strong {
  color: var(--royal-navy);
  font-weight: 800;
}

.royal-shop-home__card-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 1.3rem;
}

.royal-shop-home__card-button,
.royal-shop-home__primary-button {
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}

.royal-shop-home__card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.92rem 1.15rem;
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--royal-navy) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8f3ea 100%);
  border: 1px solid rgba(19, 35, 62, 0.10);
  box-shadow:
    0 10px 20px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.royal-shop-home__card-button::after {
  content: "→";
  font-size: 1rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}
.royal-shop-home__header {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.royal-shop-home__eyebrow {
  margin-bottom: 0.5rem; /* was 1rem */
}
.royal-shop-home__card-button:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  background: linear-gradient(180deg, #1f2c47 0%, #131a2c 100%);
  border-color: rgba(198, 167, 91, 0.46);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.royal-shop-home__card-button:hover::after {
  transform: translateX(2px);
}

/* -----------------------------------------
   Video block
   ----------------------------------------- */

.royal-shop-home__video-block {
  margin-bottom: 1.75rem;
}

.royal-shop-home__video-wrap {
  position: relative;
  padding: 10px;
  border-radius: 28px;
  border: 1px solid var(--royal-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 242, 233, 0.95) 100%);
  box-shadow:
    var(--royal-shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.royal-explainer-video.royal-shop-home__video {
  display: block;
  width: 100%;
  border-radius: 20px;
  background: #000;
  box-shadow: none;
}

.video-sound-toggle.royal-shop-home__sound-toggle {
  position: absolute;
  right: 22px;
  bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.68rem 1.08rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(19, 35, 62, 0.86);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-sound-toggle.royal-shop-home__sound-toggle:hover {
  transform: translateY(-1px);
  background: rgba(19, 35, 62, 0.96);
}

.royal-shop-home__video-note {
  max-width: 760px;
  margin: 1rem auto 0;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
  color: var(--royal-navy-soft);
}

/* -----------------------------------------
   CTA
   ----------------------------------------- */

.royal-shop-home__cta {
  padding-top: 0.2rem;
  text-align: center;
}

.royal-shop-home__primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 56px;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff !important;
  background: linear-gradient(180deg, #1f2c47 0%, #131a2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.royal-shop-home__primary-button:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #2a3a5d 0%, #101824 100%);
  border-color: rgba(198, 167, 91, 0.55);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.22),
    0 8px 18px rgba(198, 167, 91, 0.12);
}

.royal-shop-home__cta-copy {
  max-width: 700px;
  margin: 0.95rem auto 0;
  font-family: 'Roboto', sans-serif;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--royal-navy-soft);
}

#appointment-wizard {
  scroll-margin-top: 120px;
}
.royal-video-lazy {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.royal-video-poster {
    width: 100%;
    height: auto;
    display: block;
}

.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.06));
    pointer-events: none;
}

.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;
}

.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;
}

.royal-video-lazy:hover .royal-video-play,
.royal-video-lazy:focus-within .royal-video-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(0, 0, 0, 0.82);
}

.royal-video-lazy.is-loaded .royal-video-play {
    opacity: 0;
    pointer-events: none;
}

.royal-shop-home__video-wrap video,
.royal-shop-home__video-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

@media (max-width: 767px) {
    .royal-video-play {
        width: 68px;
        height: 68px;
    }

    .royal-video-play::before {
        border-top-width: 12px;
        border-bottom-width: 12px;
        border-left-width: 20px;
    }
}
/* -----------------------------------------
   Responsive
   ----------------------------------------- */

@media (min-width: 1200px) {
  .royal-title-logo {
    width: 50px;
  }

  .royal-shop-home__title span {
    font-size: 3.2rem;
  }
}

@media (max-width: 991px) {
  .royal-shop-home__title {
    gap: 0.75rem;
  }

  .royal-title-logo {
    width: 42px;
  }

  .royal-shop-home__title span {
    font-size: clamp(1.8rem, 4.6vw, 2.55rem);
  }

  .royal-shop-home__subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .royal-shop-home-section {
    padding: 4.4rem 1rem;
  }

  .royal-shop-home__inner {
    padding: 1.2rem 0.95rem;
    border-radius: 24px;
  }

  .royal-shop-home__header {
    margin-bottom: 2.35rem;
  }

  .royal-shop-home__eyebrow {
    padding: 0.42rem 0.78rem;
    font-size: 0.69rem;
    letter-spacing: 0.14em;
  }

  .royal-shop-home__title {
    gap: 0.55rem;
  }

  .royal-title-logo {
    width: 36px;
  }

  .royal-shop-home__title span {
    font-size: 1.72rem;
    line-height: 1.12;
  }

  .royal-shop-home__subtitle,
  .royal-shop-home__card-text,
  .royal-shop-home__cta-copy,
  .royal-shop-home__video-note {
    font-size: 0.96rem;
  }

  .royal-shop-home__header::after {
    width: 96px;
    margin-top: 1rem;
  }

  .royal-shop-home__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 2.35rem;
  }

  .royal-shop-home__card {
    min-height: auto;
    padding: 1.25rem 1rem 1rem;
    border-radius: 22px;
  }

  .royal-shop-home__card-top {
    margin-bottom: 1.1rem;
  }

  .royal-shop-home__icon {
    width: 62px;
    height: 62px;
    font-size: 1.16rem;
  }

  .royal-shop-home__card-number {
    min-width: 50px;
    height: 34px;
    font-size: 0.72rem;
  }

  .royal-shop-home__card-title {
    font-size: 1.18rem;
  }

  .royal-shop-home__card-text {
    max-width: none;
  }

  .royal-shop-home__card-actions {
    padding-top: 1.15rem;
  }

  .royal-shop-home__card-button,
  .royal-shop-home__primary-button {
    width: 100%;
  }

  .royal-shop-home__video-wrap {
    padding: 8px;
    border-radius: 22px;
  }

  .royal-explainer-video.royal-shop-home__video {
    border-radius: 16px;
  }

  .video-sound-toggle.royal-shop-home__sound-toggle {
    right: 14px;
    bottom: 14px;
    padding: 0.56rem 0.9rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 420px) {
  .royal-title-logo {
    width: 32px;
  }

  .royal-shop-home__title span {
    font-size: 1.48rem;
  }

  .royal-shop-home__subtitle {
    font-size: 0.93rem;
  }

  .royal-shop-home__card-title {
    font-size: 1.08rem;
  }

  .royal-shop-home__card-button,
  .royal-shop-home__primary-button {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .royal-shop-home__card,
  .royal-shop-home__card-button,
  .royal-shop-home__primary-button,
  .video-sound-toggle.royal-shop-home__sound-toggle {
    transition: none;
  }

  .royal-shop-home__card:hover,
  .royal-shop-home__card-button:hover,
  .royal-shop-home__primary-button:hover,
  .video-sound-toggle.royal-shop-home__sound-toggle:hover {
    transform: none;
  }
}
