/*==========================================================================
  Royal Home Decors - brand layer
  --------------------------------------------------------------------------
  Derived from the client-approved flyer (assets/img/logo/kayout.jpeg):
  royal blue on white, generous rounding, pill-shaped labels, circular icon
  badges and a solid blue feature strip above the contact details.

  Loaded AFTER style.css so it can restate a handful of the base theme's
  decisions without editing 8,800 lines. Everything new is namespaced .rhd-*;
  the few unprefixed rules are deliberate re-skins of shared primitives.
==========================================================================*/

:root {
  /* The logo blue is the anchor - the flyer's blue reads the same on white. */
  --rhd-blue: #124185;
  --rhd-blue-dark: #0C2E60;
  --rhd-blue-mid: #1B57B0;
  --rhd-blue-tint: #EAF0FA;
  --rhd-surface: #FFFFFF;
  --rhd-page: #F4F7FC;
  --rhd-ink: #14243D;
  --rhd-ink-soft: #4A5B73;
  --rhd-hairline: rgba(18, 65, 133, 0.14);
  --rhd-radius: 28px;
  --rhd-radius-sm: 18px;
  --rhd-shadow: 0 18px 44px rgba(18, 65, 133, 0.12);
  --rhd-shadow-lg: 0 26px 60px rgba(18, 65, 133, 0.16);
}

/*--------------------------------------------------------------
  1. Shared primitives
  The flyer has no pure-black anywhere: headings are blue-black and
  surfaces are white or a faint blue tint.
--------------------------------------------------------------*/
.light-mode .rhd-section {
  background: var(--rhd-page);
}

.rhd-section {
  position: relative;
  padding: 104px 0;
}

@media only screen and (max-width: 767px) {
  .rhd-section {
    padding: 72px 0;
  }
}

/* Pill label - the flyer's "OUR PREMIUM PRODUCTS" and "COMPLETE HOME DECOR
   SOLUTIONS" both sit inside a solid blue lozenge. */
.rhd-pill {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 999px;
  background: var(--rhd-blue);
  color: #ffffff;
  font-family: var(--body-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: var(--rhd-shadow);
}

@media only screen and (max-width: 575px) {
  .rhd-pill {
    padding: 12px 24px;
    font-size: 15px;
  }
}

.rhd-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--rhd-blue);
  font-family: var(--body-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

/* Headings inside the brand layer stay on the body sans, like the flyer -
   the display serif is reserved for the editorial sections. */
.rhd-heading {
  font-family: var(--body-font);
  font-weight: 800;
  letter-spacing: normal;
  text-shadow: none;
  color: var(--rhd-ink);
  line-height: 1.15;
}

.rhd-heading .thin {
  display: block;
  font-weight: 400;
  color: var(--rhd-ink-soft);
}

.rhd-heading .blue {
  color: var(--rhd-blue);
}

.rhd-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  background: var(--rhd-blue);
  color: #ffffff;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.rhd-btn:hover {
  background: var(--rhd-blue-mid);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--rhd-shadow);
}

.rhd-btn-ghost {
  background: transparent;
  border: 2px solid var(--rhd-blue);
  color: var(--rhd-blue);
}

.rhd-btn-ghost:hover {
  background: var(--rhd-blue);
  color: #ffffff;
}

/*--------------------------------------------------------------
  2. Hero - flyer's split layout
  Text column left, photograph right under a large circular sweep, with the
  round "complete home decor solutions" seal straddling the two.
--------------------------------------------------------------*/
.rhd-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--rhd-page) 100%);
}

/* Faint dot matrix, top-left, exactly as the flyer opens. */
.rhd-hero:before {
  content: "";
  position: absolute;
  top: 34px;
  left: 26px;
  width: 118px;
  height: 92px;
  background-image: radial-gradient(var(--rhd-blue) 1.6px, transparent 1.6px);
  background-size: 17px 17px;
  opacity: 0.28;
  pointer-events: none;
}

.rhd-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: 640px;
}

.rhd-hero-copy {
  padding: 96px 0 96px 12px;
  position: relative;
  z-index: 2;
}

.rhd-hero-title {
  margin-bottom: 10px;
  font-family: var(--body-font);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.18;
  text-transform: uppercase;
  text-shadow: none;
  color: var(--rhd-ink);
}

.rhd-hero-title strong {
  display: block;
  font-weight: 800;
  color: var(--rhd-blue);
}

/* Thin rule with a diamond, the flyer's divider under the logo lockup. */
.rhd-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--rhd-blue);
}

.rhd-rule:before,
.rhd-rule:after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--rhd-hairline);
}

.rhd-rule span {
  width: 9px;
  height: 9px;
  flex: none;
  background: var(--rhd-blue);
  transform: rotate(45deg);
}

.rhd-hero-usp {
  display: inline-block;
  margin-bottom: 26px;
  padding: 13px 30px;
  border-radius: 999px;
  background: var(--rhd-blue);
  color: #ffffff;
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.rhd-hero-usp i {
  margin: 0 9px;
  font-size: 7px;
  vertical-align: middle;
  opacity: 0.75;
}

/* The flyer sets "Enhance Every Corner of Your Home" in a script face; the
   site loads no script family, so the display serif in italic carries it. */
.rhd-script {
  margin-bottom: 34px;
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: normal;
  color: var(--rhd-blue-dark);
}

.rhd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Media half. The arc is the flyer's signature move: a circle far wider than
   the column, so only its left edge crosses the layout. */
.rhd-hero-media {
  position: relative;
  align-self: stretch;
  min-height: 640px;
}

.rhd-hero-media img,
.rhd-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 460px 0 0 460px;
}

.rhd-hero-media:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 460px 0 0 460px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

/* Round seal, straddling the copy/photo boundary. */
.rhd-seal {
  position: absolute;
  top: 74px;
  left: -78px;
  z-index: 3;
  width: 168px;
  height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 50%;
  background: var(--rhd-blue);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 0 0 7px #ffffff, var(--rhd-shadow-lg);
  font-family: var(--body-font);
  line-height: 1.25;
}

.rhd-seal .sm {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rhd-seal .lg {
  margin: 3px 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.rhd-seal .bar {
  width: 62px;
  height: 1px;
  margin: 5px 0;
  background: rgba(255, 255, 255, 0.55);
}

@media only screen and (max-width: 1199px) {
  .rhd-hero-title {
    font-size: 33px;
  }

  .rhd-script {
    font-size: 25px;
  }

  .rhd-seal {
    width: 138px;
    height: 138px;
    left: -56px;
  }

  .rhd-seal .lg {
    font-size: 13px;
  }
}

@media only screen and (max-width: 991px) {
  .rhd-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 0;
  }

  .rhd-hero-copy {
    padding: 76px 0 34px;
    text-align: center;
  }

  .rhd-rule:before {
    display: none;
  }

  .rhd-hero-actions {
    justify-content: center;
  }

  .rhd-hero-media {
    min-height: 380px;
    margin-bottom: 64px;
  }

  .rhd-hero-media img,
  .rhd-hero-media video,
  .rhd-hero-media:after {
    border-radius: var(--rhd-radius);
  }

  .rhd-seal {
    top: auto;
    bottom: -46px;
    left: 50%;
    transform: translateX(-50%);
  }

  .rhd-hero:before {
    display: none;
  }
}

@media only screen and (max-width: 575px) {
  .rhd-hero-title {
    font-size: 26px;
  }

  .rhd-script {
    font-size: 21px;
  }

  .rhd-hero-usp {
    padding: 11px 18px;
    font-size: 12px;
  }
}

/*--------------------------------------------------------------
  3. Premium products - rounded panel, pill title on its top edge,
  four image cards each with a circular icon badge.
--------------------------------------------------------------*/
.rhd-products {
  background: var(--rhd-page);
}

.rhd-panel {
  position: relative;
  margin-top: 34px;
  padding: 74px 34px 44px;
  border: 1px solid var(--rhd-hairline);
  border-radius: var(--rhd-radius);
  background: var(--rhd-surface);
  box-shadow: var(--rhd-shadow);
}

/* The pill sits on the panel's top border rather than above it. */
.rhd-panel-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

@media only screen and (max-width: 767px) {
  .rhd-panel {
    padding: 62px 18px 30px;
  }

  .rhd-panel-title {
    white-space: normal;
    width: calc(100% - 36px);
    text-align: center;
  }
}

.rhd-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

@media only screen and (max-width: 991px) {
  .rhd-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 479px) {
  .rhd-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.rhd-product {
  display: block;
  text-align: center;
}

.rhd-product-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--rhd-radius-sm);
  aspect-ratio: 3 / 4;
}

.rhd-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.rhd-product:hover .rhd-product-media img {
  transform: scale(1.06);
}

/* Badge overlaps the image's bottom edge, as on the flyer. */
.rhd-product-icon {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  margin: -31px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rhd-blue);
  color: #ffffff;
  box-shadow: 0 0 0 5px #ffffff;
  transition: background 0.3s ease;
}

.rhd-product:hover .rhd-product-icon {
  background: var(--rhd-blue-mid);
}

.rhd-product-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rhd-product h3 {
  margin-bottom: 8px;
  font-family: var(--body-font);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: none;
  color: var(--rhd-blue);
}

.rhd-product p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--rhd-ink-soft);
}

.light-mode .rhd-product p {
  color: var(--rhd-ink-soft);
}

/*--------------------------------------------------------------
  4. Feature strip - solid blue band, four items split by hairlines.
--------------------------------------------------------------*/
.rhd-features {
  padding: 34px 0;
  background: var(--rhd-blue);
}

.rhd-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.rhd-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  text-align: left;
}

.rhd-feature:first-child {
  border-left: 0;
}

.rhd-feature i {
  font-size: 30px;
  flex: none;
  opacity: 0.95;
}

.rhd-feature span {
  font-family: var(--body-font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media only screen and (max-width: 991px) {
  .rhd-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 0;
  }

  /* With two per row the third item starts a new row, so it needs no rule. */
  .rhd-feature:nth-child(odd) {
    border-left: 0;
  }
}

@media only screen and (max-width: 479px) {
  .rhd-feature {
    gap: 10px;
    padding: 6px 8px;
  }

  .rhd-feature i {
    font-size: 23px;
  }

  .rhd-feature span {
    font-size: 12px;
  }
}

/*--------------------------------------------------------------
  5. Contact bar - white address pill over a phone pill, on blue.
--------------------------------------------------------------*/
.rhd-contactbar {
  padding: 0 0 46px;
  background: var(--rhd-blue);
  text-align: center;
}

.rhd-contactbar .rhd-cbar-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 16px;
  padding: 15px 32px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--rhd-blue);
  font-family: var(--body-font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: transform 0.3s ease;
}

.rhd-contactbar .rhd-cbar-line:last-child {
  margin-bottom: 0;
  max-width: 520px;
}

.rhd-contactbar a.rhd-cbar-line:hover {
  color: var(--rhd-blue-mid);
  transform: translateY(-2px);
}

.rhd-contactbar .rhd-cbar-line i {
  font-size: 21px;
}

@media only screen and (max-width: 575px) {
  .rhd-contactbar .rhd-cbar-line {
    padding: 12px 18px;
    font-size: 16px;
  }

  .rhd-contactbar .rhd-cbar-line i {
    font-size: 15px;
  }
}

/*--------------------------------------------------------------
  6. Site-wide re-skin
  Pulls the existing pages onto the flyer's palette without touching their
  markup: blue section labels, blue-black headings, rounded media.
--------------------------------------------------------------*/
.light-mode .sub-title {
  color: var(--rhd-blue);
  font-weight: 700;
  letter-spacing: 2.4px;
}

/* The base theme fakes weight with a 2px shadow on h1/h2; on white that
   reads as a printing error rather than a bold. */
.light-mode h1,
.light-mode .h1,
.light-mode h2,
.light-mode .h2 {
  text-shadow: none;
}

.light-mode .page-banner-area,
.light-mode .page-banner {
  background-color: var(--rhd-page);
}

/* Primary buttons across the site inherit the flyer's pill. */
.light-mode .btn-primary,
.light-mode .theme-btn,
.light-mode .btn-white-bg {
  border-radius: 999px;
}

.light-mode .faq-card,
.light-mode .fabric-card,
.light-mode .ctype-panel {
  border-radius: var(--rhd-radius-sm);
}

.light-mode .faq-num {
  background: var(--rhd-blue);
  color: #ffffff;
}
