/* Purpose: "Room Landing" template (page-room-landing.php) — Figma 466:5589 Master Bathroom.
   Self-contained: hero + quote form, How We Work, inline CTA, Designer, Team, Before/After,
   Brands (copied from home.css), Get In Touch. Testimonials reuse global .testi. Mobile-first. */

/* ===================================================================
   Shared section primitives
   =================================================================== */
.rl-sec-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.rl-sec-title {
  font-family: var(--font-display); font-weight: 400; text-transform: capitalize;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.18; letter-spacing: 0;
  color: var(--color-primary); margin: 0;
}
/* How We Work heading = Cinzel-style all-caps (Figma uses Cinzel) */
.rl-work .rl-sec-title { font-variant: small-caps; text-transform: none; }
/* Portfolio intro line — a touch narrower for a balanced 2-line wrap */
.rl-portfolio .rl-sec-lead { max-width: 760px; }
.rl-sec-title--light { color: #fff; }
.rl-sec-lead {
  font-family: var(--font-body); font-weight: 400; font-size: 18px; line-height: 1.44;
  color: var(--color-text-muted); margin: 0; max-width: 860px;
}
.rl-accent { color: var(--color-gold); }

/* Eyebrow — Cinzel caps with optional side rules */
.rl-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  font-family: var(--font-eyebrow); font-weight: 400; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text);
}
.rl-eyebrow--center { justify-content: center; }
.rl-eyebrow--gold { color: var(--color-gold); }
.rl-eyebrow--on-navy { color: var(--color-gold); }
.rl-eyebrow__rule { width: 44px; height: 1px; background: var(--color-gold); opacity: 0.7; flex: 0 0 auto; }
.rl-eyebrow--on-navy .rl-eyebrow__rule { opacity: 0.9; }

/* Buttons */
.rl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px; line-height: 22px;
  text-transform: uppercase; letter-spacing: 0.02em; text-decoration: none;
  padding: 12px 20px; border: 1px solid transparent; cursor: pointer;
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.rl-btn--gold { background: var(--color-gold); color: var(--color-primary); }
.rl-btn--gold:hover { background: var(--color-gold-light); color: var(--color-primary); }
.rl-btn--ghost { background: transparent; color: var(--color-primary); border-color: rgba(11,30,56,0.25); }
.rl-btn--ghost:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ===================================================================
   Hero
   =================================================================== */
.rl-hero { position: relative; overflow: hidden; background: var(--color-primary); isolation: isolate; }
.rl-hero__bg { position: absolute; inset: 0; z-index: -2; }
.rl-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rl-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11,30,56,0.92) 0%, rgba(11,30,56,0.78) 45%, rgba(11,30,56,0.55) 100%);
}
.rl-hero__inner {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding-block: clamp(48px, 7vw, 96px); align-items: center;
}
.rl-hero__copy { display: flex; flex-direction: column; gap: 20px; }
.rl-hero__crumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,0.7); }
.rl-hero__crumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.rl-hero__crumb a:hover { color: #fff; }
.rl-hero__crumb-cur { color: #fff; }
.rl-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 16px; margin: 0;
  font-family: var(--font-eyebrow); font-size: 14px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--color-gold);
}
.rl-hero__eyebrow-rule { width: 40px; height: 1px; background: var(--color-gold); opacity: 0.8; }
.rl-hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 6.5vw, 88px); line-height: 1.02; letter-spacing: -0.01em;
  color: #fff; margin: 0;
}
.rl-hero__desc {
  font-family: var(--font-body); font-weight: 400; font-size: 18px; line-height: 1.6;
  color: rgba(255,255,255,0.82); margin: 0; max-width: 610px;
}

/* ===================================================================
   Quote form card (reused: hero + contact)
   =================================================================== */
.rl-form { background: #fff; padding: clamp(20px, 2.4vw, 32px); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 20px; }
.rl-form__head { display: flex; flex-direction: column; gap: 6px; }
.rl-form__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; color: var(--color-primary); margin: 0; }
.rl-form__accent { color: var(--color-gold); }
.rl-form__sub { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--color-text-muted); margin: 0; }
.rl-form__notice { font-family: var(--font-body); font-size: 14px; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 10px 12px; margin: 0; }
.rl-form__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.rl-form__field { display: flex; flex-direction: column; gap: 8px; }
.rl-form__field label {
  font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-primary);
}
.rl-form__field input,
.rl-form__field textarea,
.rl-form__select select {
  font-family: var(--font-body); font-size: 14px; color: var(--color-text);
  background: #fafaf6; border: 1px solid var(--color-border); padding: 12px;
  width: 100%; border-radius: 0; transition: border-color var(--duration-base) var(--ease-out);
}
.rl-form__field input::placeholder,
.rl-form__field textarea::placeholder { color: #9a988f; }
.rl-form__field input:focus,
.rl-form__field textarea:focus,
.rl-form__select select:focus { outline: none; border-color: var(--color-gold); }
.rl-form__field textarea { resize: vertical; min-height: 96px; }
.rl-form__select { position: relative; }
.rl-form__select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.rl-form__select::after {
  content: ""; position: absolute; right: 18px; top: 44%; width: 9px; height: 9px;
  transform: translateY(-50%) rotate(45deg); pointer-events: none;
  border-right: 1.5px solid var(--color-primary); border-bottom: 1.5px solid var(--color-primary);
}
.rl-form__submit {
  font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff; background: var(--color-primary);
  border: none; padding: 14px 20px; cursor: pointer; width: 100%;
  transition: background var(--duration-base) var(--ease-out);
}
.rl-form__submit:hover { background: var(--color-gold); color: var(--color-primary); }

/* --- Contact Form 7 rendering of the same form ------------------------------
   CF7 wraps its <form> in a .wpcf7 div and each control in a
   .wpcf7-form-control-wrap span, so both need to become block-level for the
   existing .rl-form__field flex layout to survive untouched. */
.rl-form .wpcf7 { width: 100%; }
.rl-form__cf7 { display: flex; flex-direction: column; gap: 20px; }
.rl-form__field .wpcf7-form-control-wrap { display: block; }
/* Two copies of this form sit on one page, so the control is wrapped INSIDE the
   label (implicit association) rather than using for/id — ids would collide. */
.rl-form__cf7 .rl-form__field label {
  display: flex; flex-direction: column; gap: 8px;
  font-weight: 400; font-size: inherit; letter-spacing: normal; text-transform: none;
}
.rl-form__cf7 .rl-form__label {
  font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-primary);
}
/* CF7's control wrapper is inline by default — block keeps the original
   8px label→field spacing. (autop is disabled for this form in helpers.php,
   otherwise injected <br>s would add another ~34px here.) */
.rl-form__cf7 .rl-form__select { display: block; }
.rl-form__cf7 .rl-form__field input,
.rl-form__cf7 .rl-form__field select,
.rl-form__cf7 .rl-form__field textarea { display: block; }
/* CF7's spinner is always in the DOM. Left visible it adds 24px + the 20px
   flex gap under the submit button; only show it while the form is sending. */
.rl-form__cf7 .wpcf7-spinner { display: none; margin: 0 auto; }
.rl-form__cf7.submitting .wpcf7-spinner { display: block; }
.rl-form__cf7 .wpcf7-not-valid-tip {
  font-family: var(--font-body); font-size: 12px; color: #b91c1c; margin-top: 6px;
}
.rl-form__cf7 .wpcf7-response-output {
  font-family: var(--font-body); font-size: 14px; line-height: 1.5;
  margin: 0; padding: 10px 12px; border-radius: 0;
  color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0;
}
.rl-form__cf7.invalid .wpcf7-response-output,
.rl-form__cf7.failed .wpcf7-response-output,
.rl-form__cf7.aborted .wpcf7-response-output {
  color: #b91c1c; background: #fef2f2; border-color: #fecaca;
}

/* ===================================================================
   How We Work — 3 steps
   =================================================================== */
.rl-work { background: #fff; }
.rl-work__inner { display: flex; flex-direction: column; gap: 48px; padding-block: clamp(56px, 6vw, 80px); }
.rl-work__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.rl-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 16px; }
.rl-step__num { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: 52px; line-height: 1.15; color: var(--color-gold); font-feature-settings: "lnum" 1, "tnum" 1; }
.rl-step__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.33; color: var(--color-primary); margin: 0; }
.rl-step__text { font-family: var(--font-body); font-size: 18px; line-height: 1.44; color: var(--color-text-muted); margin: 0; max-width: 348px; }

/* ===================================================================
   Inline CTA bar
   =================================================================== */
.rl-ctabar { background: var(--color-primary); }
.rl-ctabar__inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-block: 40px; }
.rl-ctabar__l { display: flex; flex-direction: column; gap: 8px; }
.rl-ctabar__eyebrow { font-family: var(--font-eyebrow); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gold); margin: 0; }
.rl-ctabar__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; color: #fff; margin: 0; }
.rl-ctabar__accent { font-style: italic; color: var(--color-gold-light); }
.rl-ctabar__r { display: flex; flex-wrap: wrap; gap: 12px; }
/* Ghost button on the navy CTA band → gold border + text */
.rl-ctabar .rl-btn--ghost { color: var(--color-gold); border-color: var(--color-gold); }
.rl-ctabar .rl-btn--ghost:hover { background: var(--color-gold); color: var(--color-primary); border-color: var(--color-gold); }

/* ===================================================================
   In-House Designer
   =================================================================== */
.rl-designer { background: var(--color-bg-alt); }
.rl-designer__inner { display: grid; grid-template-columns: 1fr; gap: 40px; padding-block: clamp(56px, 6vw, 96px); align-items: center; }
.rl-designer__media { overflow: hidden; }
.rl-designer__img { width: 100%; height: auto; display: block; object-fit: cover; }
.rl-designer__copy { display: flex; flex-direction: column; gap: 20px; }
.rl-designer__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.1; margin: 0; }
.rl-designer__body { font-family: var(--font-body); font-size: 18px; line-height: 1.44; color: var(--color-text-muted); }
.rl-designer__body p { margin: 0 0 16px; }
.rl-designer__body p:last-child { margin-bottom: 0; }
.rl-designer__lead { color: var(--color-primary); font-weight: 600; }

/* ===================================================================
   Meet the Team
   =================================================================== */
.rl-team { background: #fff; }
.rl-team__inner { display: flex; flex-direction: column; gap: 40px; padding-block: clamp(56px, 6vw, 80px); align-items: center; }
.rl-team__media { width: 100%; overflow: hidden; }
.rl-team__img { width: 100%; height: auto; display: block; object-fit: cover; }

/* ===================================================================
   Before / After (navy band)
   =================================================================== */
.rl-ba { background: var(--color-primary); }
.rl-ba__inner { display: flex; flex-direction: column; gap: 40px; padding-block: clamp(56px, 6vw, 80px); }
.rl-ba__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.rl-ba__card {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 380 / 500; overflow: hidden; text-decoration: none;
  background: linear-gradient(180deg, #c7ccd6 0%, #8895a8 45%, #2b3f5c 100%);
}
.rl-ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rl-ba__play {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.12); color: #fff; backdrop-filter: blur(2px);
}
.rl-ba__play svg { width: 16px; height: 16px; margin-left: 2px; }
.rl-ba__label {
  position: absolute; z-index: 1; left: 24px; bottom: 24px;
  font-family: var(--font-display); font-weight: 500; font-size: 22px; color: #fff;
}

/* ===================================================================
   Brands (copied from home.css .brands so this template is self-contained)
   =================================================================== */
.brands { background: #fff; }
.brands__inner { display: flex; flex-direction: column; align-items: center; gap: 32px; padding-block: clamp(56px, 6vw, 80px); }
.brands__head { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.brands__eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-family: var(--font-eyebrow); font-weight: 400; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text);
}
.brands__eyebrow-line { width: 44px; height: 1px; background: var(--color-gold); opacity: 0.5; }
.brands__heading {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 3.9vw, 54px); line-height: 1.185;
  letter-spacing: 0; color: var(--color-primary); text-align: center; margin: 0;
}
.brands__heading--accent { color: var(--color-gold); }
.brands__row { display: flex; align-items: center; justify-content: center; gap: 32px; width: 100%; flex-wrap: wrap; }
.brands__logos { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.brands__item { display: inline-flex; align-items: center; justify-content: center; padding: 16px; }
.brands__logo { width: 144px; max-height: 44px; height: auto; object-fit: contain; display: block; }
.brands__stores { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brands__store { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: var(--color-navy-2); padding: 16px 24px; }
.brands__store-title { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-eyebrow); font-size: 16px; line-height: 1; letter-spacing: 1px; color: var(--color-gold-light); }
.brands__store-title .icon { width: 15px; height: 15px; }
.brands__store-sub { font-family: var(--font-body); font-weight: 300; font-size: 12px; line-height: 20px; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }
.brands__store--light { background: var(--color-bg-alt); width: 110px; padding: 12px 8px; gap: 6px; }
.brands__store--light .brands__store-title { flex-direction: column; gap: 6px; color: var(--color-primary); text-transform: uppercase; font-size: 13px; letter-spacing: 0.5px; line-height: 1.15; }
.brands__store--light .brands__store-title .icon { width: 24px; height: 24px; color: var(--color-gold); }
.brands__store--light .brands__store-sub { color: var(--color-gold); font-size: 8px; line-height: 12px; letter-spacing: 0.3px; }
.brands__store--img { background: transparent; padding: 0; }
.brands__store--img .brands__store-logo { height: 84px; width: auto; display: block; }

/* Desktop: all logos + partner cards on ONE line, uniform spacing (mirrors home.css) */
@media (min-width: 1200px) {
  .brands__row    { flex-wrap: nowrap; gap: 32px; }
  .brands__logos  { flex-wrap: nowrap; gap: 32px; }
  .brands__stores { flex-wrap: nowrap; gap: 32px; }
  .brands__item   { padding: 0; }
}
@media (max-width: 900px) {
  .brands__inner { padding-block: var(--space-10); }
  .brands__row { flex-direction: column; justify-content: center; gap: 16px; }
  .brands__logos, .brands__stores { justify-content: center; }
}
@media (max-width: 600px) {
  .brands__logos { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .brands__item { padding: 8px; }
  .brands__logo { width: auto; height: 40px; max-height: 40px; max-width: 150px; }
  .brands__stores { flex-wrap: wrap; gap: 12px; align-items: stretch; justify-content: center; }
  .brands__store { flex: 1 1 0; min-width: 0; padding: 16px 10px; justify-content: center; }
  .brands__store-title { font-size: 14px; letter-spacing: 0.5px; white-space: nowrap; }
}

/* ===================================================================
   Get In Touch
   =================================================================== */
.rl-contact { background: #fff; }
.rl-contact__inner { display: grid; grid-template-columns: 1fr; gap: 40px; padding-block: clamp(56px, 6vw, 80px); align-items: center; }
.rl-contact__copy { display: flex; flex-direction: column; gap: 16px; }
.rl-contact .rl-eyebrow--gold { color: var(--color-gold); }
.rl-contact__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; color: var(--color-primary); margin: 0; }
.rl-contact__desc { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--color-text-muted); margin: 0; max-width: 510px; }
.rl-contact__form .rl-form { box-shadow: none; border: 1px solid var(--color-border); }

/* ===================================================================
   Projects Portfolio
   =================================================================== */
.rl-portfolio { background: var(--color-bg-alt); }
/* This page only: testimonials band uses the portfolio background tone */
.page-template-page-room-landing .testi { background: var(--color-bg-alt); }
.rl-portfolio__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; padding-block: clamp(56px, 6vw, 80px); }
.rl-pin { width: 15px; height: 17px; flex: 0 0 auto; }

/* filter tabs */
.rl-portfolio__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rl-pfilter {
  font-family: var(--font-eyebrow); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-primary); background: #fff; border: 1px solid var(--color-border);
  padding: 12px 18px; cursor: pointer; transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.rl-pfilter:hover { border-color: var(--color-primary); }
.rl-pfilter.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* grid + cards */
.rl-portfolio__grid { display: grid; grid-template-columns: 1fr; gap: 32px; width: 100%; }
.rl-pcard { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.rl-pcard.is-hidden, .rl-pcard.is-filtered-out { display: none; }
.rl-pcard__media { position: relative; overflow: hidden; aspect-ratio: 380 / 417; background: var(--color-bg-alt); }
.rl-pcard__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--duration-slow) var(--ease-out); }
.rl-pcard:hover .rl-pcard__img { transform: scale(1.04); }
.rl-pcard__badge {
  position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(11, 30, 56, 0.72); color: var(--color-gold-light); backdrop-filter: blur(2px);
  font-family: var(--font-eyebrow); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px;
}
.rl-pcard__badge .rl-pin { color: var(--color-gold); }
.rl-pcard__foot { display: flex; flex-direction: column; gap: 4px; }
.rl-pcard__cat { font-family: var(--font-body); font-weight: 400; font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-gold); }
.rl-pcard__title { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.33; color: var(--color-primary); margin: 0; }

.rl-btn--navy { background: var(--color-primary); color: #fff; padding: 14px 28px; }
.rl-btn--navy:hover { background: var(--color-gold); color: var(--color-primary); }
.js-portfolio-more { margin-top: 8px; }

/* ===================================================================
   Responsive — tablet & up
   =================================================================== */
@media (min-width: 480px) {
  .rl-form__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  .rl-portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .rl-work__grid { grid-template-columns: repeat(3, 1fr); }
  .rl-step { border-left: 1px solid var(--color-border); }
  .rl-step:first-child { border-left: none; }
  .rl-ba__grid { grid-template-columns: repeat(3, 1fr); }
  .rl-ctabar__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .rl-portfolio__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .rl-hero__inner { grid-template-columns: 1fr minmax(0, 480px); gap: 60px; min-height: 640px; }
  .rl-designer__inner { grid-template-columns: minmax(0, 420px) 1fr; gap: 32px; align-items: stretch; }
  .rl-designer__media { height: 100%; }
  .rl-designer__media .rl-designer__img { height: 100%; }
  .rl-contact__inner { grid-template-columns: 1fr minmax(0, 560px); gap: 80px; }
}

@media (min-width: 1280px) {
  .rl-hero__inner { min-height: 700px; }
}
