@import url("/website/assets/6878e5267469-fonts.css");

/* ==========================================================================
   Royal Home Flooring — Lifetime Installation Warranty Certificate
   HD certificate-style reusable component
   ========================================================================== */

.royal-lifetime-warranty {
  --rlw-ivory: #fff8e6;
  --rlw-ivory-2: #f4ead0;
  --rlw-ivory-3: #ead9ae;

  --rlw-navy: #17385f;
  --rlw-navy-deep: #0d2442;
  --rlw-navy-soft: rgba(23, 56, 95, 0.72);

  --rlw-gold: #feda6a;
  --rlw-gold-2: #d8a63d;
  --rlw-gold-3: #a87920;
  --rlw-gold-4: #70490c;

  --rlw-brown: #5c3d14;
  --rlw-red-ribbon: #7b1f22;
  --rlw-blue-ribbon: #17385f;

  width: 100%;
  display: grid;
  justify-items: center;
  margin: clamp(1.5rem, 4vw, 3rem) 0;
  isolation: isolate;
  perspective: 1600px;
}

/* Certificate paper */
.royal-lifetime-warranty__certificate {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  min-height: clamp(560px, 54vw, 690px);
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(3rem, 5vw, 4.8rem) clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  text-align: center;
  color: var(--rlw-navy-deep);
  border-radius: 0.85rem;

  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.65), transparent 20%),
    radial-gradient(circle at 88% 82%, rgba(112, 73, 12, 0.10), transparent 24%),
    linear-gradient(135deg, var(--rlw-ivory) 0%, #fffaf0 38%, var(--rlw-ivory-2) 100%);

  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.46),
    0 18px 44px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.78),
    inset 0 0 0 10px rgba(23, 56, 95, 0.07);

  transform: none !important;
}

/* Shadow under certificate */
.royal-lifetime-warranty::after {
  content: "";
  width: min(82%, 900px);
  height: 34px;
  margin-top: -12px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.38), transparent 70%);
  filter: blur(12px);
  opacity: 0.8;
  pointer-events: none;
}

/* Fine paper texture, not image-like */
.royal-lifetime-warranty__paper-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-linear-gradient(
      35deg,
      rgba(23, 56, 95, 0.028) 0,
      rgba(23, 56, 95, 0.028) 1px,
      transparent 1px,
      transparent 13px
    ),
    repeating-linear-gradient(
      112deg,
      rgba(112, 73, 12, 0.032) 0,
      rgba(112, 73, 12, 0.032) 1px,
      transparent 1px,
      transparent 16px
    );
  mix-blend-mode: multiply;
}

/* Outer ornate border */
.royal-lifetime-warranty__ornate-border {
  position: absolute;
  inset: clamp(0.95rem, 1.8vw, 1.35rem);
  z-index: 1;
  pointer-events: none;
  border-radius: 0.62rem;
  border: 7px double rgba(23, 56, 95, 0.58);

  background:
    radial-gradient(circle at 0 0, transparent 0 1.42rem, rgba(216, 166, 61, 0.70) 1.45rem 1.55rem, transparent 1.58rem),
    radial-gradient(circle at 100% 0, transparent 0 1.42rem, rgba(216, 166, 61, 0.70) 1.45rem 1.55rem, transparent 1.58rem),
    radial-gradient(circle at 0 100%, transparent 0 1.42rem, rgba(216, 166, 61, 0.70) 1.45rem 1.55rem, transparent 1.58rem),
    radial-gradient(circle at 100% 100%, transparent 0 1.42rem, rgba(216, 166, 61, 0.70) 1.45rem 1.55rem, transparent 1.58rem),
    linear-gradient(90deg, transparent 0 7%, rgba(23, 56, 95, 0.18) 7.35% 7.65%, transparent 8% 92%, rgba(23, 56, 95, 0.18) 92.35% 92.65%, transparent 93%),
    linear-gradient(0deg, transparent 0 7%, rgba(23, 56, 95, 0.18) 7.35% 7.65%, transparent 8% 92%, rgba(23, 56, 95, 0.18) 92.35% 92.65%, transparent 93%);

  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.70),
    inset 0 0 0 9px rgba(216, 166, 61, 0.20),
    inset 0 0 0 12px rgba(23, 56, 95, 0.12);
}

.royal-lifetime-warranty__ornate-border::before,
.royal-lifetime-warranty__ornate-border::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.royal-lifetime-warranty__ornate-border::before {
  inset: 0.75rem;
  border: 1px solid rgba(216, 166, 61, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(23, 56, 95, 0.18),
    inset 0 0 0 5px rgba(255, 255, 255, 0.26);
}

.royal-lifetime-warranty__ornate-border::after {
  inset: 1.25rem;
  opacity: 0.36;
  background:
    repeating-linear-gradient(90deg, rgba(23, 56, 95, 0.28) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(0deg, rgba(23, 56, 95, 0.22) 0 1px, transparent 1px 12px);
  padding: 0.8rem;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* Inner fine border */
.royal-lifetime-warranty__inner-border {
  position: absolute;
  inset: clamp(2.05rem, 3.4vw, 2.85rem);
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(23, 56, 95, 0.28);
  border-radius: 0.35rem;
  box-shadow:
    0 0 0 1px rgba(216, 166, 61, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

/* Subtle watermark */
.royal-lifetime-warranty__certificate::before {
  content: "ROYAL";
  position: absolute;
  top: 52%;
  left: 50%;
  z-index: 0;
  color: rgba(23, 56, 95, 0.045);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 900;
  letter-spacing: 0.10em;
  line-height: 1;
  transform: translate(-50%, -48%);
  pointer-events: none;
}

/* Decorative corner medallions */
.royal-lifetime-warranty__certificate::after {
  content: "";
  position: absolute;
  inset: clamp(1.5rem, 2.7vw, 2.1rem);
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, rgba(216, 166, 61, 0.72) 0 0.25rem, transparent 0.27rem),
    radial-gradient(circle at 100% 0, rgba(216, 166, 61, 0.72) 0 0.25rem, transparent 0.27rem),
    radial-gradient(circle at 0 100%, rgba(216, 166, 61, 0.72) 0 0.25rem, transparent 0.27rem),
    radial-gradient(circle at 100% 100%, rgba(216, 166, 61, 0.72) 0 0.25rem, transparent 0.27rem);
}

/* Content should sit above decorative layers */
.royal-lifetime-warranty__certificate > *:not(.royal-lifetime-warranty__paper-texture):not(.royal-lifetime-warranty__ornate-border):not(.royal-lifetime-warranty__inner-border) {
  position: relative;
  z-index: 3;
}

/* Top registry line */
.royal-lifetime-warranty__topline {
  width: min(100%, 810px);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(0.8rem, 1.5vw, 1.15rem);
  color: var(--rlw-navy-soft);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.58rem, 0.85vw, 0.72rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Crest */
.royal-lifetime-warranty__crest {
  width: clamp(3rem, 5vw, 4.35rem);
  height: clamp(3rem, 5vw, 4.35rem);
  display: grid;
  place-items: center;
  margin: 0 0 clamp(0.65rem, 1.1vw, 0.95rem);
  border-radius: 50%;
  color: #fff9dd;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.92), transparent 18%),
    conic-gradient(from 16deg, #74500f, #d8a63d, #fff0a6, #b97e1e, #74500f);
  box-shadow:
    0 0 0 3px rgba(23, 56, 95, 0.13),
    0 10px 26px rgba(0, 0, 0, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.52),
    inset 0 0 0 9px rgba(112, 73, 12, 0.28);
}

.royal-lifetime-warranty__crest span {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.38);
}

/* Eyebrow */
.royal-lifetime-warranty__eyebrow {
  margin: 0;
  color: var(--rlw-gold-4);
  -webkit-text-fill-color: var(--rlw-gold-4);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Main certificate title */
.royal-lifetime-warranty h3 {
  max-width: 820px;
  margin: clamp(0.45rem, 1vw, 0.85rem) 0 0;
  color: var(--rlw-navy-deep);
  -webkit-text-fill-color: currentColor;
  font-family: "Cinzel", Georgia, serif;
  text-align: center;
  text-rendering: geometricPrecision;
}

.royal-lifetime-warranty h3 span {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.85rem, 5vw, 4.35rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.royal-lifetime-warranty h3 em {
  display: block;
  margin-top: -0.05em;
  color: var(--rlw-gold-4);
  -webkit-text-fill-color: currentColor;
  font-family: "Great Vibes", "Edwardian Script ITC", "Palace Script MT", "Brush Script MT", cursive;
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  font-style: normal;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.012em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Statement */
.royal-lifetime-warranty__statement {
  width: min(100%, 700px);
  margin-top: clamp(0.75rem, 1.4vw, 1.1rem);
  padding-top: clamp(0.7rem, 1.2vw, 1rem);
  border-top: 1px solid rgba(23, 56, 95, 0.22);
}

.royal-lifetime-warranty__statement p {
  margin: 0;
  color: rgba(13, 36, 66, 0.82);
  -webkit-text-fill-color: rgba(13, 36, 66, 0.82);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 400;
  line-height: 1.72;
}

/* Gold embossed seal with serrated edge */
.royal-lifetime-warranty__seal {
  position: absolute !important;
  right: clamp(2.4rem, 6vw, 5.2rem);
  bottom: clamp(5rem, 8vw, 6.6rem);
  z-index: 5;
  width: clamp(6.2rem, 11vw, 8.6rem);
  height: clamp(6.2rem, 11vw, 8.6rem);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #563507;
  background:
    radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.98), transparent 16%),
    radial-gradient(circle at center, #fff2a8 0 25%, #e5b947 26% 48%, #a87218 49% 70%, #f3cf65 71% 100%);
  box-shadow:
    0 18px 38px rgba(87, 52, 8, 0.28),
    0 0 0 5px rgba(255, 255, 255, 0.50),
    0 0 0 9px rgba(216, 166, 61, 0.16),
    inset 0 0 0 2px rgba(86, 53, 7, 0.34),
    inset 0 0 0 12px rgba(255, 255, 255, 0.20);
  transform: rotate(7deg);
}

.royal-lifetime-warranty__seal::before {
  content: "";
  position: absolute;
  inset: -0.68rem;
  z-index: -1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      #f3cf65 0deg 5deg,
      #996715 5deg 10deg,
      #ffe58a 10deg 15deg
    );
  clip-path: polygon(50% 0%, 55% 8%, 62% 2%, 66% 10%, 75% 7%, 77% 16%, 87% 15%, 85% 25%, 95% 29%, 90% 37%, 100% 45%, 91% 51%, 98% 60%, 88% 63%, 92% 74%, 82% 74%, 79% 85%, 70% 80%, 63% 91%, 56% 82%, 50% 100%, 44% 82%, 37% 91%, 30% 80%, 21% 85%, 18% 74%, 8% 74%, 12% 63%, 2% 60%, 9% 51%, 0% 45%, 10% 37%, 5% 29%, 15% 25%, 13% 15%, 23% 16%, 25% 7%, 34% 10%, 38% 2%, 45% 8%);
  filter: drop-shadow(0 6px 10px rgba(87, 52, 8, 0.25));
}

.royal-lifetime-warranty__seal::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2.35rem;
  z-index: -2;
  width: clamp(2.7rem, 5.2vw, 3.65rem);
  height: clamp(2.5rem, 4.7vw, 3.3rem);
  background: linear-gradient(180deg, var(--rlw-blue-ribbon), var(--rlw-navy-deep));
  clip-path: polygon(0 0, 100% 0, 78% 100%, 50% 72%, 22% 100%);
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.royal-lifetime-warranty__seal-ring {
  position: absolute;
  top: clamp(1rem, 1.7vw, 1.35rem);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(86, 53, 7, 0.90);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.44rem, 0.78vw, 0.6rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.royal-lifetime-warranty__seal strong {
  display: block;
  color: #563507;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.92rem, 1.75vw, 1.28rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.royal-lifetime-warranty__seal small {
  display: block;
  position: absolute;
  bottom: clamp(1rem, 1.8vw, 1.45rem);
  color: rgba(86, 53, 7, 0.82);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.44rem, 0.78vw, 0.58rem);
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

/* Signature fields */
.royal-lifetime-warranty__signature-row {
  width: min(100%, 650px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 7vw, 4.8rem);
  margin-top: clamp(1.1rem, 2.2vw, 1.75rem);
}

.royal-lifetime-warranty__field {
  display: grid;
  align-items: end;
  min-height: clamp(3rem, 5vw, 4rem);
}

.royal-lifetime-warranty__script {
  display: block;
  padding-bottom: 0.32rem;
  border-bottom: 1px solid rgba(23, 56, 95, 0.46);
  color: var(--rlw-navy-deep);
  -webkit-text-fill-color: var(--rlw-navy-deep);
  font-family: "Great Vibes", "Edwardian Script ITC", "Palace Script MT", "Brush Script MT", cursive;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1;
  transform: rotate(-1.2deg);
}

.royal-lifetime-warranty__field small {
  display: block;
  margin-top: 0.45rem;
  color: rgba(13, 36, 66, 0.72);
  -webkit-text-fill-color: rgba(13, 36, 66, 0.72);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.52rem, 0.78vw, 0.64rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

/* Fine print */
.royal-lifetime-warranty__fineprint {
  width: min(100%, 720px);
  margin: clamp(1rem, 1.5vw, 1.25rem) 0 0;
  color: rgba(13, 36, 66, 0.58);
  -webkit-text-fill-color: rgba(13, 36, 66, 0.58);
  font-size: clamp(0.6rem, 0.82vw, 0.74rem);
  font-weight: 700;
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 900px) {
  .royal-lifetime-warranty__certificate {
    min-height: auto;
    padding: 3.5rem 1.75rem 2rem;
  }

  .royal-lifetime-warranty__topline {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
  }

  .royal-lifetime-warranty h3 span {
    font-size: clamp(1.65rem, 9vw, 3.2rem);
    letter-spacing: 0.035em;
  }

  .royal-lifetime-warranty h3 em {
    font-size: clamp(3rem, 14vw, 5.6rem);
  }

  .royal-lifetime-warranty__statement {
    width: 100%;
  }

  .royal-lifetime-warranty__seal {
    position: relative !important;
    right: auto;
    bottom: auto;
    width: 6.5rem;
    height: 6.5rem;
    margin-top: 1.25rem;
    transform: rotate(5deg);
  }

  .royal-lifetime-warranty__signature-row {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .royal-lifetime-warranty__field {
    min-height: 2.75rem;
  }

  .royal-lifetime-warranty__fineprint {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .royal-lifetime-warranty__certificate {
    border-radius: 0.6rem;
    padding: 2.7rem 1.1rem 1.5rem;
  }

  .royal-lifetime-warranty__ornate-border {
    inset: 0.65rem;
    border-width: 5px;
  }

  .royal-lifetime-warranty__inner-border {
    inset: 1.35rem;
  }

  .royal-lifetime-warranty__certificate::before {
    font-size: 5.2rem;
  }

  .royal-lifetime-warranty__eyebrow {
    letter-spacing: 0.16em;
  }

  .royal-lifetime-warranty__statement p {
    font-size: 0.82rem;
  }
}
