/* The home page, redesigned after Havenly's (owner, Oct 30): ivory, navy,
   burgundy and brass, Didot headlines, pill buttons, a video hero. Every rule
   is scoped to the home view (.rs-*, or body.on-home for the header), so the
   form, results and checkout screens keep styles.css as they are. */

.rs-home { --rs-paper: #F7F5F0; --rs-linen: #EFEAE1; background: var(--rs-paper); color: var(--ink); }
body.on-home { background: #F7F5F0; }
.rs-home h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; margin: 0; text-wrap: balance; }
.rs-home h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.15; }
.rs-kicker { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--accent-text); margin: 0 0 14px; }
.rs-rule { width: 56px; height: 2px; background: var(--brass); margin: 18px 0 22px; border: 0; }
.rs-soft { color: var(--ink-soft); }
.rs-micro { font-size: 14px; color: var(--ink-faint); margin: 12px 0 0; }
.rs-section { padding: 96px 0; position: relative; }
.rs-section-tight { padding-top: 0; }
.rs-home [id] { scroll-margin-top: 76px; }  /* menu links land below the sticky header */

/* pill buttons */
.rs-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px;
  border-radius: 999px; border: 0; background: var(--ink); color: var(--rs-paper, #F7F5F0); font: inherit; font-weight: 600;
  font-size: 16px; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s;
}
.rs-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.rs-btn-light { background: #F7F5F0; color: var(--ink); }
.rs-btn-light:hover { background: #fff; }
.rs-btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.rs-btn-ghost:hover { background: rgba(31,42,58,0.06); }
.rs-btn-wide { width: 100%; margin-top: 10px; }

/* announcement bar and header, home page only */
.rs-announce { display: none; background: var(--navy-deep); color: #F7F5F0; text-align: center; font-size: 14px; padding: 9px 16px; letter-spacing: 0.02em; }
.rs-announce b { color: var(--rose); font-weight: 600; }
body.on-home .rs-announce { display: block; }
body.on-home header.top-home {
  /* sticky, so .bleed's "left: 50%" would pin it instead of centering it: margin alone makes it full width */
  position: sticky; top: 0; left: auto; margin-left: calc(50% - 50vw); z-index: 20; background: rgba(247,245,240,0.94); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
body.on-home header.top-home .brand { color: var(--ink); }
body.on-home .top-nav a { color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
body.on-home .top-nav a:hover { color: var(--ink); }
body.on-home .top-cta { background: var(--ink); color: #F7F5F0; border-radius: 999px; text-transform: none; letter-spacing: 0.02em; font-size: 15px; padding: 12px 22px; }
body.on-home .top-cta:hover { background: var(--accent-hover); }

/* hero: the video fills the top of the page, the words over its left side */
.rs-hero { position: relative; height: min(88vh, 820px); min-height: 560px; overflow: hidden; color: #F7F5F0; background: var(--navy-deep); }
.rs-media { position: absolute; inset: 0; overflow: hidden; }
.rs-scene { position: absolute; inset: 0; }
.rs-scene img, .rs-scene video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.rs-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,24,32,.78) 0%, rgba(20,24,32,.55) 34%, rgba(20,24,32,0) 62%),
              linear-gradient(0deg, rgba(20,24,32,.35), transparent 30%);
}
.rs-hero-copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.rs-hero-copy > * { max-width: 540px; }
.rs-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: 1.12; margin: 0; color: #F7F5F0; text-wrap: balance; }
.rs-lede { font-size: 19px; line-height: 1.6; color: rgba(247,245,240,.9); margin: 22px 0 32px; max-width: 470px; }
.rs-hero .rs-micro { color: rgba(247,245,240,.78); }
/* "AI-styled preview": small plain type in a photo's corner, no box (owner, Oct 30: keep it, make it quiet). */
.rs-tag { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-size: 11px; letter-spacing: .02em; color: rgba(255,255,255,.8); text-shadow: 0 1px 2px rgba(0,0,0,.5); pointer-events: none; }
.rs-tag-compare { right: 12px; bottom: 10px; }

/* two ways to finish a room */
.rs-ways { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 24px; margin-top: 48px; }
.rs-way { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 36px 32px; position: relative; display: flex; flex-direction: column; }
.rs-way .rs-btn { margin-top: auto; align-self: flex-start; }
.rs-way-note { margin: -14px 0 24px; font-size: 14.5px; color: var(--ink-soft); }
.rs-way-rec { box-shadow: 0 18px 50px -24px rgba(31,42,58,.35); border-color: rgba(168,134,75,.55); }
.rs-badge { position: absolute; top: -13px; left: 40px; background: var(--brass); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.rs-way h3 { font-size: 30px; }
.rs-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 6px; }
.rs-price b { font-size: 40px; font-weight: 600; }
.rs-price span { color: var(--ink-faint); font-size: 15px; }
.rs-way p.rs-soft { margin: 0; }
.rs-way ul { padding: 0; margin: 20px 0 30px; list-style: none; }
.rs-way li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid var(--line); font-size: 16px; }
.rs-way li::before { content: "\2713"; position: absolute; left: 4px; color: var(--accent-text); font-weight: 700; }

/* before and after: the words beside the slider */
.rs-ba { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.rs-ba .rs-btn { margin-top: 18px; }
.rs-compare { margin: 0; }
.rs-compare .compare-frame { border-radius: 14px; max-height: 720px; aspect-ratio: 928 / 1152; }
.rs-compare .compare-frame img { height: 100%; object-fit: cover; }

/* a room's shopping list */
.rs-shop { background: var(--rs-linen); }
.rs-tabs { display: flex; gap: 10px; margin: 32px 0 28px; flex-wrap: wrap; }
.rs-tabs button { font: inherit; font-size: 15px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; }
.rs-tabs button[aria-selected="true"] { background: var(--ink); color: #F7F5F0; border-color: var(--ink); }
.rs-shopgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.rs-room { border-radius: 14px; overflow: hidden; position: relative; }
.rs-room img { width: 100%; height: auto; aspect-ratio: 1264 / 848; object-fit: cover; display: block; transition: opacity .35s; }
.rs-room .rs-tag { right: 12px; bottom: 10px; }
.rs-list { background: #fff; border-radius: 14px; padding: 28px 30px; }
.rs-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.rs-row small { display: block; color: var(--ink-faint); font-size: 13px; }
.rs-row b { font-weight: 600; white-space: nowrap; }
.rs-total { display: flex; justify-content: space-between; padding-top: 16px; font-size: 18px; }
.rs-total b { color: var(--accent-text); font-size: 22px; }

/* steps */
.rs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.rs-step img { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; display: block; }
.rs-n { font-family: var(--serif); font-size: 44px; color: var(--brass); line-height: 1; margin: 22px 0 8px; }
.rs-step h3 { font-size: 26px; margin-bottom: 8px; }
.rs-step p { margin: 0; color: var(--ink-soft); }

/* the looks */
.rs-looks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.rs-looks .look-card-img { border-radius: 12px; }
.rs-looks .look-card-name { font-family: var(--sans); font-size: 16px; margin: 12px 0 0; }

/* the designer */
.rs-designer { background: var(--navy-deep); color: #F7F5F0; }
.rs-designer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.rs-designer img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; display: block; }
.rs-designer .rs-kicker { color: var(--rose); }
.rs-designer blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 36px); line-height: 1.28; }
.rs-sig { font-family: var(--serif); font-style: italic; font-size: 26px; margin: 28px 0 0; }
.rs-sig small { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--rose); margin-top: 4px; }
.rs-designer-note { color: rgba(247,245,240,.82); margin: 26px 0 18px; }

/* the promise */
.rs-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.rs-promise div { border-top: 2px solid var(--brass); padding-top: 22px; }
.rs-promise h3 { font-size: 26px; margin-bottom: 10px; }
.rs-promise p { margin: 0; color: var(--ink-soft); }

/* questions */
.rs-home .faq { margin-top: 0; margin-bottom: 0; padding: 0 0 96px; }  /* only top and bottom: .bleed's margin-left makes it full width */
.rs-home .faq .faq-list { margin-top: 28px; }
.rs-home .faq summary { font-size: 19px; font-weight: 400; padding: 18px 28px 18px 0; }

/* closing */
.rs-closing { position: relative; overflow: hidden; color: #F7F5F0; text-align: center; padding: 150px 0; }
.rs-scene-pan { animation: rs-pan 46s ease-in-out infinite alternate; transform-origin: 50% 55%; }
@keyframes rs-pan { from { transform: scale(1.03) translate3d(-1%, 0, 0); } to { transform: scale(1.08) translate3d(1%, -0.5%, 0); } }
.rs-closing-shade { position: absolute; inset: 0; background: rgba(18,21,28,.55); }
.rs-closing-copy { position: relative; z-index: 2; }
.rs-closing h2 { font-size: clamp(40px, 5vw, 64px); color: #F7F5F0; }
.rs-closing p { color: rgba(247,245,240,.85); font-size: 19px; margin: 16px 0 30px; }
.rs-closing .rs-micro { color: rgba(247,245,240,.75); font-size: 14px; margin: 12px 0 0; }

/* sections fade up as they scroll in (app.js adds rs-motion when it runs) */
.rs-motion .rs-reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s ease; }
.rs-motion .rs-reveal.in { opacity: 1; transform: none; }

/* the phone's sticky button: a rose ring keeps it visible over the navy section */
.rs-home .sticky-cta { border-radius: 999px; text-transform: none; letter-spacing: 0.02em; font-size: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 0 0 1.5px rgba(217,174,180,.55); }

@media (max-width: 900px) {
  .rs-section { padding: 68px 0; }
  .rs-section-tight { padding-top: 0; }
  .rs-home .faq { padding-bottom: 68px; }
  /* Phones: the room on top, so the fire is not hidden behind the words, and the words below on navy. */
  .rs-hero { height: auto; min-height: 0; }
  .rs-media { position: relative; height: 50vh; }
  .rs-shade { background: linear-gradient(0deg, var(--navy-deep) 0%, rgba(24,33,47,0) 28%); }
  .rs-hero-copy { height: auto; padding-top: 8px; padding-bottom: 44px; }
  .rs-hero .rs-tag { top: calc(50vh - 34px); bottom: auto; }
  .rs-hero h1 { font-size: 40px; }
  .rs-lede { font-size: 17px; margin: 14px 0 22px; }
  .rs-ways, .rs-ba, .rs-shopgrid, .rs-designer-grid, .rs-promise, .rs-steps { grid-template-columns: 1fr; }
  .rs-ba { gap: 36px; }
  .rs-looks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}
@media (max-width: 560px) {
  body.on-home .top-cta { display: none; }  /* the sticky button does this job on phones */
  .rs-announce { font-size: 13px; }
  .rs-way { padding: 32px 24px; }
  .rs-badge { left: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-scene-pan { animation: none; }
  .rs-motion .rs-reveal { opacity: 1; transform: none; transition: none; }
  .rs-btn { transition: none; }
}
