/*
 * Royal Home Flooring — Clean Footer CSS
 * Purpose: clean replacement for royal-footer.css after adding the Commercial Flooring column.
 * Do not append this under the old footer CSS. Replace the old footer CSS with this file.
 */

.site-footer.royal-footer,
.site-footer.royal-footer * {
  box-sizing: border-box;
}

.site-footer.royal-footer {
  --rf-page: #f3f4f6;
  --rf-page-soft: #e7e9ee;
  --rf-page-line: #d9dee6;
  --rf-ink: #1f2638;
  --rf-ink-strong: #0a2342;
  --rf-muted: #687182;
  --rf-muted-strong: #4e5565;
  --rf-gold: #feda6a;
  --rf-gold-deep: #9b7422;
  --rf-card-dark: #1f2638;
  --rf-card-dark-2: #252d3f;
  --rf-radius-lg: 28px;
  --rf-radius-md: 22px;
  --rf-focus: rgba(254, 218, 106, 0.66);

  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(215, 181, 92, 0.14), transparent 34%),
    linear-gradient(180deg, var(--rf-page) 0%, var(--rf-page-soft) 100%) !important;
  color: var(--rf-ink) !important;
  font-family: var(--font-body, Inter, Manrope, "Helvetica Neue", Arial, sans-serif);
}

.site-footer.royal-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer.royal-footer a:focus-visible {
  outline: 3px solid var(--rf-focus);
  outline-offset: 4px;
  border-radius: 8px;
}

.royal-footer__wrap {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.royal-footer__eyebrow,
.royal-footer-reviews__eyebrow,
.royal-footer-brands__eyebrow,
.royal-footer-brand__kicker {
  margin: 0 0 0.8rem;
  color: var(--rf-gold-deep) !important;
  -webkit-text-fill-color: var(--rf-gold-deep) !important;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* ==========================================================
   Reviews
   ========================================================== */

.royal-footer-reviews {
  padding: clamp(48px, 5vw, 78px) 0;
  background: transparent !important;
  color: var(--rf-ink) !important;
  border-top: 1px solid var(--rf-page-line);
  border-bottom: 1px solid var(--rf-page-line);
}

.royal-footer-reviews__inner {
  display: block !important;
}

.royal-footer-reviews__heading {
  max-width: 860px;
  margin: 0 auto clamp(26px, 3vw, 42px);
  text-align: center;
}

.royal-footer-reviews__heading h2 {
  max-width: none;
  margin: 0;
  color: var(--rf-ink-strong) !important;
  -webkit-text-fill-color: var(--rf-ink-strong) !important;
  font-family: var(--font-heading, Manrope, Inter, "Helvetica Neue", Arial, sans-serif);
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.royal-footer-reviews__heading p:not(.royal-footer__eyebrow) {
  max-width: 720px;
  margin: 16px auto 0;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  font-size: clamp(1rem, 1.08vw, 1.12rem);
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: -0.018em;
}

.royal-footer-reviews__grid {
  width: min(100%, 1120px);
  margin-inline: auto;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.royal-footer-review-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(22px, 2.2vw, 30px);
  border: 1px solid var(--rf-card-dark-2);
  border-radius: var(--rf-radius-md);
  background: var(--rf-card-dark) !important;
  color: #fff !important;
  box-shadow: none;
}

.royal-footer-review-card__stars {
  margin: 0 0 14px;
  color: var(--rf-gold) !important;
  -webkit-text-fill-color: var(--rf-gold) !important;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
}

.royal-footer-review-card p {
  margin: 0;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: -0.012em;
}

.royal-footer-review-card__meta {
  margin-top: auto;
  padding-top: 20px;
}

.royal-footer-review-card__meta strong {
  display: block;
  color: #fff !important;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.royal-footer-review-card__meta span {
  display: block;
  margin-top: 4px;
  color: #d9dee6 !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.royal-footer-reviews__actions {
  width: min(100%, 1120px);
  margin: clamp(22px, 2.5vw, 34px) auto 0;
  display: flex;
  justify-content: center;
}

.royal-footer-text-link,
.royal-footer-reviews__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #d7b55c;
  border-radius: 999px;
  background: var(--rf-gold);
  color: #1d1e22 !important;
  -webkit-text-fill-color: #1d1e22 !important;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.royal-footer-text-link:hover,
.royal-footer-text-link:focus-visible,
.royal-footer-reviews__button:hover,
.royal-footer-reviews__button:focus-visible {
  background: #d7b55c;
  color: #1d1e22 !important;
}

/* ==========================================================
   Main footer area
   ========================================================== */

.royal-footer-main {
  padding: clamp(2.6rem, 5vw, 5rem) 0 clamp(2.2rem, 4vw, 4rem);
  background: transparent !important;
}

.royal-footer-main__grid {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr) !important;
  gap: clamp(2.2rem, 4vw, 4.8rem) !important;
  align-items: start !important;
}

.royal-footer-brand {
  min-width: 0;
}

.royal-footer-brand__logo {
  display: inline-flex;
  max-width: 280px;
  margin-bottom: 1rem;
}

.royal-footer-brand__logo img {
  display: block;
  width: min(260px, 100%);
  height: auto;
}

.royal-footer-brand__description {
  max-width: 32rem;
  margin: 0;
  color: var(--rf-muted-strong) !important;
  font-size: 1rem;
  font-weight: 460;
  letter-spacing: -0.012em;
  line-height: 1.68;
}

.royal-footer-brand__contact {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.royal-footer-brand__address {
  display: grid;
  gap: 0.2rem;
  margin: 0;
  color: var(--rf-muted) !important;
  font-style: normal;
  font-size: 0.94rem;
  line-height: 1.45;
}

.royal-footer-brand__phone {
  display: inline-flex;
  width: max-content;
  color: var(--rf-ink) !important;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

/* Six footer columns: 3 across / 2 rows on desktop */
.royal-footer-navgrid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(170px, 1fr)) !important;
  gap: clamp(2rem, 3vw, 3.4rem) clamp(1.55rem, 2.6vw, 3rem) !important;
  align-items: start !important;
  width: 100% !important;
}

.royal-footer-column {
  min-width: 0;
}

.royal-footer-column__title {
  margin: 0 0 0.9rem !important;
  color: var(--rf-gold-deep) !important;
  -webkit-text-fill-color: var(--rf-gold-deep) !important;
  font-family: var(--font-heading, Manrope, Inter, "Helvetica Neue", Arial, sans-serif);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  line-height: 1.15;
  text-transform: uppercase;
}

.royal-footer-column__menu {
  display: grid;
  gap: 0.48rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.royal-footer-column__menu li {
  margin: 0;
  padding: 0;
}

.royal-footer-column__menu a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: var(--rf-ink) !important;
  -webkit-text-fill-color: var(--rf-ink) !important;
  font-size: 0.92rem;
  font-weight: 520;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.royal-footer-column__menu a::after {
  content: "";
  width: 0;
  height: 1px;
  margin-left: 0.45rem;
  background: var(--rf-gold-deep);
  transition: width 180ms ease;
}

.royal-footer-column__menu a:hover,
.royal-footer-column__menu a:focus-visible {
  color: var(--rf-gold-deep) !important;
  -webkit-text-fill-color: var(--rf-gold-deep) !important;
}

.royal-footer-column__menu a:hover::after,
.royal-footer-column__menu a:focus-visible::after {
  width: 18px;
}

/* ==========================================================
   Brands strip
   ========================================================== */

.royal-footer-brands {
  padding: 1.35rem 0;
  border-top: 1px solid var(--rf-page-line);
  border-bottom: 1px solid var(--rf-page-line);
  background: rgba(255, 255, 255, 0.34) !important;
}

.royal-footer-brands__inner {
  display: grid;
  gap: 0.35rem;
  align-items: center;
}

.royal-footer-brands h2 {
  margin: 0;
  color: var(--rf-ink) !important;
  -webkit-text-fill-color: var(--rf-ink) !important;
  font-family: var(--font-heading, Manrope, Inter, "Helvetica Neue", Arial, sans-serif);
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

/* ==========================================================
   Bottom legal bar
   ========================================================== */

.royal-footer-bottom {
  background: rgba(231, 233, 238, 0.86) !important;
}

.royal-footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
  padding: 1rem 0;
}

.royal-footer-bottom p {
  margin: 0;
  color: var(--rf-muted) !important;
  font-size: 0.86rem;
  font-weight: 450;
  line-height: 1.42;
}

.royal-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.82rem 1rem;
}

.royal-footer-legal a {
  color: var(--rf-ink) !important;
  font-size: 0.86rem;
  font-weight: 560;
  line-height: 1.35;
}

.royal-footer-legal a:hover,
.royal-footer-legal a:focus-visible {
  color: var(--rf-gold-deep) !important;
}

/* Screen-reader helper */
.royal-footer .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 1180px) {
  .royal-footer-main__grid {
    grid-template-columns: 1fr !important;
    gap: clamp(2rem, 5vw, 3.5rem) !important;
  }

  .royal-footer-navgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .royal-footer-reviews__grid {
    grid-template-columns: 1fr !important;
    max-width: 620px;
  }

  .royal-footer-navgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .royal-footer-bottom__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  .royal-footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .royal-footer__wrap {
    width: min(100% - 30px, 1240px);
  }

  .royal-footer-reviews {
    padding: 42px 0;
  }

  .royal-footer-reviews__heading {
    text-align: left;
    margin-inline: 0;
  }

  .royal-footer-reviews__heading h2 {
    font-size: clamp(2.65rem, 14vw, 4.4rem);
    letter-spacing: -0.055em;
  }

  .royal-footer-reviews__heading p:not(.royal-footer__eyebrow) {
    margin-left: 0;
    margin-right: 0;
  }

  .royal-footer-reviews__actions {
    justify-content: flex-start;
  }

  .royal-footer-navgrid {
    grid-template-columns: 1fr !important;
    gap: 1.7rem !important;
  }

  .royal-footer-brand__phone {
    width: 100%;
  }
}

/* Restore dark centered footer brand/contact card */
.site-footer.royal-footer .royal-footer-brand.royal-footer-brand--contact {
  position: relative !important;
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  text-align: center !important;
  padding: clamp(2rem, 3vw, 2.65rem) clamp(1.35rem, 2.4vw, 2rem) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: clamp(26px, 3vw, 36px) !important;
  background:
    radial-gradient(620px 300px at 12% 0%, rgba(254, 218, 106, 0.12), transparent 58%),
    radial-gradient(540px 280px at 100% 18%, rgba(255, 255, 255, 0.08), transparent 56%),
    linear-gradient(145deg, #252d3f 0%, #141923 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 28px 90px rgba(31, 38, 56, 0.20) !important;
  overflow: hidden !important;
}

.site-footer.royal-footer .royal-footer-brand.royal-footer-brand--contact::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto !important;
  height: clamp(4rem, 8vw, 7rem) !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.10), transparent) !important;
}

.site-footer.royal-footer .royal-footer-brand.royal-footer-brand--contact > * {
  position: relative !important;
  z-index: 1 !important;
}

.site-footer.royal-footer .royal-footer-brand--contact .royal-footer-brand__logo {
  justify-content: center !important;
  margin: 0 auto 1.15rem !important;
}

.site-footer.royal-footer .royal-footer-brand--contact .royal-footer-brand__logo img {
  margin-inline: auto !important;
}

.site-footer.royal-footer .royal-footer-brand--contact .royal-footer-brand__kicker {
  margin: 0 0 0.7rem !important;
  color: #feda6a !important;
  -webkit-text-fill-color: #feda6a !important;
  text-align: center !important;
}

.site-footer.royal-footer .royal-footer-brand--contact .royal-footer-brand__description {
  max-width: 26rem !important;
  margin: 0 auto !important;
  color: rgba(255, 255, 255, 0.82) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.82) !important;
  text-align: center !important;
}

.site-footer.royal-footer .royal-footer-brand--contact .royal-footer-brand__contact {
  display: grid !important;
  justify-items: center !important;
  gap: 1rem !important;
  margin-top: 1.35rem !important;
  text-align: center !important;
}

.site-footer.royal-footer .royal-footer-brand--contact .royal-footer-brand__address,
.site-footer.royal-footer .royal-footer-brand--contact .royal-footer-brand__address span {
  display: block !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
  text-align: center !important;
  font-style: normal !important;
}

.site-footer.royal-footer .royal-footer-brand--contact .royal-footer-brand__phone {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: max-content !important;
  margin: 0 auto !important;
  padding: 0.72rem 1.15rem !important;
  border: 1px solid rgba(254, 218, 106, 0.52) !important;
  border-radius: 999px !important;
  background: rgba(254, 218, 106, 0.10) !important;
  color: #feda6a !important;
  -webkit-text-fill-color: #feda6a !important;
  font-size: 1.08rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
  text-align: center !important;
}

.site-footer.royal-footer .royal-footer-brand--contact .royal-footer-brand__phone:hover,
.site-footer.royal-footer .royal-footer-brand--contact .royal-footer-brand__phone:focus-visible {
  background: #feda6a !important;
  color: #141923 !important;
  -webkit-text-fill-color: #141923 !important;
}

@media (max-width: 640px) {
  .site-footer.royal-footer .royal-footer-brand.royal-footer-brand--contact {
    padding: 2rem 1.25rem !important;
  }

  .site-footer.royal-footer .royal-footer-brand--contact .royal-footer-brand__phone {
    width: auto !important;
  }
}


/* Restore softer blue-violet footer menu link color */
.site-footer.royal-footer .royal-footer-column__menu a {
  color: #4d5c73 !important;
  -webkit-text-fill-color: #4d5c73 !important;
}

.site-footer.royal-footer .royal-footer-column__menu a:hover,
.site-footer.royal-footer .royal-footer-column__menu a:focus-visible {
  color: #0a2342 !important;
  -webkit-text-fill-color: #0a2342 !important;
}

.site-footer.royal-footer .royal-footer-column__menu a::after {
  background: #d7b55c !important;
}


/* Footer menu links — lighter blue/slate tone */
.site-footer.royal-footer .royal-footer-column__menu a {
  color: #6b7c98 !important;
  -webkit-text-fill-color: #6b7c98 !important;
}

.site-footer.royal-footer .royal-footer-column__menu a:hover,
.site-footer.royal-footer .royal-footer-column__menu a:focus-visible {
  color: #4d5c73 !important;
  -webkit-text-fill-color: #4d5c73 !important;
}

.site-footer.royal-footer .royal-footer-column__menu a::after {
  background: #d7b55c !important;
}


/* Footer menu links — soft blue-violet tone */
.site-footer.royal-footer .royal-footer-column__menu a {
  color: #6A5ACD !important;
  -webkit-text-fill-color: #6A5ACD !important;
}

.site-footer.royal-footer .royal-footer-column__menu a:hover,
.site-footer.royal-footer .royal-footer-column__menu a:focus-visible {
  color: #4F46A6 !important;
  -webkit-text-fill-color: #4F46A6 !important;
}

.site-footer.royal-footer .royal-footer-column__menu a::after {
  background: #D7B55C !important;
}


/* Footer column titles — Royal yellow */
.site-footer.royal-footer .royal-footer-column__title {
  color: #FFCE1B !important;
  -webkit-text-fill-color: #FFCE1B !important;
}


/* Footer column titles — Royal gold */
.site-footer.royal-footer .royal-footer-column__title {
  color: #FFB921 !important;
  -webkit-text-fill-color: #FFB921 !important;
}


/* Footer category eyebrow / pill titles */
.site-footer.royal-footer .royal-footer-column__title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  margin: 0 0 1rem 0 !important;
  padding: 0.48rem 0.9rem !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #252d3f 0%, #141923 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #FFB921 !important;
  -webkit-text-fill-color: #FFB921 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12) !important;
}

.site-footer.royal-footer .royal-footer-column {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}


/* Center footer category pills and menu links */
.site-footer.royal-footer .royal-footer-navgrid {
  align-items: start !important;
}

.site-footer.royal-footer .royal-footer-column {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.site-footer.royal-footer .royal-footer-column__title {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.site-footer.royal-footer .royal-footer-column__menu {
  justify-items: center !important;
  text-align: center !important;
  width: 100% !important;
}

.site-footer.royal-footer .royal-footer-column__menu li {
  text-align: center !important;
}

.site-footer.royal-footer .royal-footer-column__menu a {
  justify-content: center !important;
  text-align: center !important;
}

.site-footer.royal-footer .royal-footer-column__menu a::after {
  display: none !important;
}


/* Footer menu links — dark navy blue */
.site-footer.royal-footer .royal-footer-column__menu a {
  color: #0A2342 !important;
  -webkit-text-fill-color: #0A2342 !important;
}

.site-footer.royal-footer .royal-footer-column__menu a:hover,
.site-footer.royal-footer .royal-footer-column__menu a:focus-visible {
  color: #13233E !important;
  -webkit-text-fill-color: #13233E !important;
}


/* Footer menu links — hover state */
.site-footer.royal-footer .royal-footer-column__menu a {
  color: #0A2342 !important;
  -webkit-text-fill-color: #0A2342 !important;
  transition: color 180ms ease, transform 180ms ease !important;
}

.site-footer.royal-footer .royal-footer-column__menu a:hover,
.site-footer.royal-footer .royal-footer-column__menu a:focus-visible {
  color: #FFB921 !important;
  -webkit-text-fill-color: #FFB921 !important;
  transform: translateY(-1px) !important;
}

