/* =====================================================================
   Snooze Mattress – Beautyrest brand page
   Built from the Beautyrest Partner Retail Landing Page mockup (2025).
   Everything is scoped to .beautyrest-wrapper so it can't touch the site.
   Shared local sections (visit, promo, why, FAQ) are styled by
   shared/css/snooze-brand-local.css.
   ===================================================================== */

.beautyrest-wrapper {
  --br-ink: #181D27;
  --br-text: #3B3F47;
  --br-cream: #F6F3EE;
  --br-line: #E6E1D8;
  --br-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --br-sans: "Inter", Helvetica, Arial, sans-serif;
  color: var(--br-text);
  font-family: var(--br-sans);
  font-size: 16px;
  line-height: 1.55;
  background: #fff;
}
.beautyrest-wrapper *, .beautyrest-wrapper *::before, .beautyrest-wrapper *::after { box-sizing: border-box; }
.beautyrest-wrapper img { max-width: 100%; height: auto; display: block; }
.beautyrest-wrapper sup { font-size: 0.6em; line-height: 0; }
.beautyrest-wrapper .br-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.beautyrest-wrapper .br-h2 {
  font-family: var(--br-serif);
  font-weight: 400;
  color: var(--br-ink);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.2;
  text-align: center;
  margin: 0 0 32px;
}

/* ---------- Buttons (sentence case) ---------- */
.beautyrest-wrapper .br-btn {
  display: inline-block;
  background: var(--br-ink);
  color: #fff;
  font: 600 0.9rem/1 var(--br-sans);
  letter-spacing: 0.02em;
  padding: 15px 26px;
  border: 2px solid var(--br-ink);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.beautyrest-wrapper .br-btn:hover, .beautyrest-wrapper .br-btn:focus-visible { background: #fff; color: var(--br-ink); }
.beautyrest-wrapper .br-btn--light { background: #fff; color: var(--br-ink); border-color: #fff; }
.beautyrest-wrapper .br-btn--light:hover, .beautyrest-wrapper .br-btn--light:focus-visible { background: transparent; color: #fff; }
.beautyrest-wrapper .br-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.beautyrest-wrapper .br-btn--ghost:hover, .beautyrest-wrapper .br-btn--ghost:focus-visible { background: #fff; color: var(--br-ink); }

/* ---------- Hero ---------- */
.beautyrest-wrapper .br-hero { position: relative; background: #1d2026; color: #fff; overflow: hidden; }
.beautyrest-wrapper .br-hero__media { position: relative; aspect-ratio: 1920 / 1067; max-height: 720px; width: 100%; }
.beautyrest-wrapper .br-hero__img,
.beautyrest-wrapper .br-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.beautyrest-wrapper .br-hero__video { z-index: 1; opacity: 0; transition: opacity .6s; }
.beautyrest-wrapper .br-hero__video.is-playing { opacity: 1; }
.beautyrest-wrapper .br-hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,.15) 45%, rgba(10,12,16,0) 70%);
}
.beautyrest-wrapper .br-hero__content {
  position: absolute; z-index: 3; top: 0; left: 0; right: 0;
  text-align: center; padding: clamp(24px, 5vw, 64px) 20px 0;
}
.beautyrest-wrapper .br-hero__eyebrow { font: 400 clamp(1.1rem, 2.2vw, 1.75rem)/1.2 var(--br-serif); margin: 0; }
.beautyrest-wrapper .br-hero__eyebrow em { font-weight: 600; }
.beautyrest-wrapper .br-hero__logo { margin: 8px auto 0; }
.beautyrest-wrapper .br-hero__logo img { width: clamp(200px, 32vw, 440px); margin: 0 auto; }
.beautyrest-wrapper .br-hero h1.snz-h1 {
  font: 600 0.8rem/1.3 var(--br-sans);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin: 18px 0 0;
}
.beautyrest-wrapper .br-hero__sub { max-width: 640px; margin: 12px auto 0; font-size: 1rem; color: rgba(255,255,255,.92); }
.beautyrest-wrapper .br-hero__btns { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Under 900px the copy sits below the picture so the mattresses stay visible. */
@media (max-width: 899px) {
  .beautyrest-wrapper .br-hero__media::after { display: none; }
  .beautyrest-wrapper .br-hero__content { position: static; padding: 28px 20px 36px; }
}

/* ---------- At a glance ---------- */
.beautyrest-wrapper .br-glance { padding: 64px 0; }
.beautyrest-wrapper .br-glance .br-inner { background: var(--br-cream); padding: 48px 32px; }
.beautyrest-wrapper .br-glance__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.beautyrest-wrapper .br-card { background: #fff; }
.beautyrest-wrapper .br-card img { width: 100%; aspect-ratio: 800 / 541; object-fit: cover; }
.beautyrest-wrapper .br-card__body { padding: 22px 22px 26px; text-align: center; }
.beautyrest-wrapper .br-card h3 { font: 500 1.1rem/1.3 var(--br-sans); color: var(--br-ink); margin: 0 0 10px; }
.beautyrest-wrapper .br-card p { font-size: 0.92rem; margin: 0; }
@media (max-width: 799px) {
  .beautyrest-wrapper .br-glance__grid { grid-template-columns: 1fr; }
  .beautyrest-wrapper .br-glance .br-inner { padding: 36px 20px; }
}

/* ---------- Collections ---------- */
.beautyrest-wrapper .br-collections { padding: 24px 0 64px; }
.beautyrest-wrapper .br-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.beautyrest-wrapper .br-row--flip .br-row__text { order: 2; }
.beautyrest-wrapper .br-row__text { padding: 32px clamp(20px, 5vw, 64px); }
.beautyrest-wrapper .br-row__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.beautyrest-wrapper .br-logo-h { margin: 0 0 18px; }
.beautyrest-wrapper .br-logo-h img { width: auto; max-width: 240px; max-height: 92px; }
.beautyrest-wrapper .br-row p { margin: 0 0 12px; color: var(--br-ink); font-size: 1.05rem; }
.beautyrest-wrapper .br-row ul { margin: 0 0 14px; padding-left: 20px; }
.beautyrest-wrapper .br-row li { margin: 0 0 6px; font-size: 0.95rem; }
.beautyrest-wrapper .br-row .br-note { font-size: 0.78rem; color: #6b6f76; }
.beautyrest-wrapper .br-row .br-btn { margin-top: 10px; }
@media (max-width: 799px) {
  .beautyrest-wrapper .br-row { grid-template-columns: 1fr; margin-bottom: 28px; }
  .beautyrest-wrapper .br-row--flip .br-row__text { order: 0; }
  .beautyrest-wrapper .br-row__img { order: -1; }
  .beautyrest-wrapper .br-row__text { padding: 24px 20px 8px; }
}

/* ---------- Adjustable bases ---------- */
.beautyrest-wrapper .br-adjust { padding: 0 0 64px; }
.beautyrest-wrapper .br-adjust__hero { position: relative; }
.beautyrest-wrapper .br-adjust__hero img { width: 100%; aspect-ratio: 1400 / 791; object-fit: cover; }
.beautyrest-wrapper .br-adjust__head {
  position: absolute; top: 0; left: 0; right: 0; text-align: center; color: #fff;
  padding: 28px 20px 60px; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.beautyrest-wrapper .br-adjust__head .br-h2 { color: #fff; margin-bottom: 10px; }
.beautyrest-wrapper .br-adjust__head p { max-width: 640px; margin: 0 auto; }
.beautyrest-wrapper .br-uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: -60px 36px 0; position: relative; }
.beautyrest-wrapper .br-uses > div { background: var(--br-cream); padding: 20px; }
.beautyrest-wrapper .br-uses h3 { font: 500 1.05rem/1.3 var(--br-sans); color: var(--br-ink); margin: 0 0 6px; }
.beautyrest-wrapper .br-uses p { font-size: 0.85rem; margin: 0; }
.beautyrest-wrapper .br-bases { margin-top: 48px; }
.beautyrest-wrapper .br-base { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; padding: 24px clamp(0px, 4vw, 48px); }
.beautyrest-wrapper .br-base h3 { font: 300 1.5rem/1.25 var(--br-sans); margin: 0 0 12px; }
.beautyrest-wrapper .br-tier { display: block; font-size: 1.1rem; font-weight: 400; }
.beautyrest-wrapper .br-tier--platinum { color: #8f949b; }
.beautyrest-wrapper .br-tier--gold { color: #A88B4C; }
.beautyrest-wrapper .br-tier--silver { color: #9aa0a8; }
.beautyrest-wrapper .br-tier--bronze { color: #A8714A; }
.beautyrest-wrapper .br-base h3 { color: var(--br-ink); }
.beautyrest-wrapper .br-base p { font-size: 0.92rem; margin: 0; }
.beautyrest-wrapper .br-adjust__cta { text-align: center; margin: 24px 0 0; }
@media (max-width: 899px) {
  .beautyrest-wrapper .br-adjust__head { position: static; color: var(--br-ink); background: none; padding: 24px 0 0; }
  .beautyrest-wrapper .br-adjust__head .br-h2 { color: var(--br-ink); }
  .beautyrest-wrapper .br-adjust__hero { display: flex; flex-direction: column-reverse; }
  .beautyrest-wrapper .br-uses { grid-template-columns: 1fr 1fr; margin: 20px 0 0; }
  .beautyrest-wrapper .br-base { grid-template-columns: 1fr; gap: 12px; }
  .beautyrest-wrapper .br-base img { order: -1; }
}

/* ---------- The Beautyrest difference ---------- */
.beautyrest-wrapper .br-diff { padding: 0 0 64px; }
.beautyrest-wrapper .br-diff__text { background: var(--br-cream); text-align: center; padding: 48px clamp(20px, 8vw, 120px) 40px; }
.beautyrest-wrapper .br-diff__text p { max-width: 760px; margin: 0 auto 14px; font-size: 0.95rem; }
.beautyrest-wrapper .br-diff__band { background: #111318; }
.beautyrest-wrapper .br-diff__img { width: 100%; aspect-ratio: 1600 / 696; object-fit: cover; }
.beautyrest-wrapper .br-badges {
  list-style: none; margin: 0; padding: 28px 20px 36px;
  display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: 24px;
  color: #fff; text-align: center;
}
.beautyrest-wrapper .br-badges li { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; max-width: 150px; }
.beautyrest-wrapper .br-badges li img, .beautyrest-wrapper .br-badges li svg { height: 44px; width: auto; }
.beautyrest-wrapper .br-badges .br-badges__100 img { height: 72px; }

/* ---------- Disclaimers ---------- */
.beautyrest-wrapper .br-disclaimers { padding: 24px 0 40px; font-size: 0.75rem; color: #6b6f76; text-align: center; }
