/**
 * Retreat Landing — calm visual language
 *
 * Everything is scoped under the .rl root class so it cannot affect the rest
 * of the site. See docs/retreat-landing-design-language.md for the rationale.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

.rl {
  /* Palette — brand values unchanged, only named and extended with warm neutrals */
  --rl-primary: #d46f09;
  --rl-primary-ink: #a85705;
  --rl-primary-soft: rgba(212, 111, 9, 0.08);
  --rl-cream: #fdf6ee;
  --rl-cream-deep: #f8ede0;
  --rl-ink: #211a14;
  --rl-body: #4a4542;
  --rl-muted: #6f6862;
  --rl-surface: #ffffff;
  --rl-hairline: rgba(41, 26, 10, 0.12);
  --rl-hairline-strong: rgba(41, 26, 10, 0.16);

  /* Type */
  --rl-font-head: "Marcellus", Georgia, serif;
  --rl-font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --rl-text-display: clamp(2.25rem, 5vw, 3.5rem);
  --rl-text-h2: clamp(1.6rem, 3vw, 2.125rem);
  --rl-text-h3: 1.25rem;
  --rl-text-eyebrow: 0.8125rem;
  --rl-text-lede: 1.1875rem;
  --rl-text-body: 1.0625rem;
  --rl-text-meta: 0.875rem;

  /* Space — 8px base */
  --rl-1: 0.25rem;
  --rl-2: 0.5rem;
  --rl-3: 0.75rem;
  --rl-4: 1rem;
  --rl-6: 1.5rem;
  --rl-8: 2rem;
  --rl-12: 3rem;
  --rl-16: 4rem;
  --rl-24: 6rem;
  --rl-32: 8rem;

  --rl-section-y: clamp(3.5rem, 8vw, 7rem);
  --rl-measure: 66ch;
  --rl-container: 1120px;
  --rl-container-narrow: 760px;

  /* Shape and depth — shadows tinted with the brand hue, never black */
  --rl-radius: 10px;
  --rl-radius-lg: 14px;
  --rl-radius-pill: 999px;
  --rl-shadow: 0 1px 2px rgba(41, 26, 10, 0.04),
               0 14px 36px -14px rgba(41, 26, 10, 0.1);
  --rl-shadow-lift: 0 1px 2px rgba(41, 26, 10, 0.05),
                    0 22px 48px -18px rgba(41, 26, 10, 0.16);

  /* Motion */
  --rl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --rl-duration: 500ms;

  font-family: var(--rl-font-body);
  font-size: var(--rl-text-body);
  font-weight: 400;
  line-height: 1.75;
  color: var(--rl-body);
  background: var(--rl-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Body-font toggle hooks, used by the preview switcher */
.rl[data-font="mulish"]      { --rl-font-body: "Mulish", sans-serif; }
.rl[data-font="nunito-sans"] { --rl-font-body: "Nunito Sans", sans-serif; }
.rl[data-font="karla"]       { --rl-font-body: "Karla", sans-serif; }

/* ==========================================================================
   2. Base
   ========================================================================== */

.rl *,
.rl *::before,
.rl *::after { box-sizing: border-box; }

.rl h1, .rl h2, .rl h3, .rl h4 {
  font-family: var(--rl-font-head);
  color: var(--rl-ink);
  font-weight: 400;
  margin: 0 0 var(--rl-4);
  text-wrap: balance;
}

.rl h1 { font-size: var(--rl-text-display); line-height: 1.12; letter-spacing: -0.01em; }
.rl h2 { font-size: var(--rl-text-h2); line-height: 1.25; }
.rl h3 { font-size: var(--rl-text-h3); line-height: 1.35; }

.rl p {
  margin: 0 0 var(--rl-4);
  text-wrap: pretty;
}

.rl p:last-child { margin-bottom: 0; }

.rl a { color: var(--rl-primary-ink); text-decoration: none; transition: color 0.2s var(--rl-ease); }
.rl a:hover { color: var(--rl-primary); }

.rl ul { margin: 0; padding: 0; list-style: none; }
.rl img { max-width: 100%; height: auto; display: block; }

.rl strong { font-weight: 600; color: var(--rl-ink); }

/* Visible focus, since these pages carry a form */
.rl :focus-visible {
  outline: 2px solid var(--rl-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.rl-container {
  width: 100%;
  max-width: var(--rl-container);
  margin-inline: auto;
  padding-inline: var(--rl-6);
}

.rl-container--narrow { max-width: var(--rl-container-narrow); }

.rl-section { padding-block: var(--rl-section-y); }

/* Bands group in a pattern rather than alternating every section, so the page
   breathes instead of striping. */
.rl-section--cream { background: var(--rl-cream); }

.rl-section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.rl-prose {
  max-width: var(--rl-measure);
  width: 100%;
  text-align: left;
}

.rl-prose > p + p { margin-top: var(--rl-4); }

.rl-center { text-align: center; }
.rl-center .rl-prose { margin-inline: auto; }

/* On phones and tablets the container is already narrow — drop the measure
   cap so intro/body copy uses the full content width. */
@media (max-width: 780px) {
  .rl-prose,
  .rl-facilitator__body .rl-prose {
    max-width: none;
  }
}

/* ==========================================================================
   4. Section marker: eyebrow + hairline
   Replaces the 40px heading with a lotus icon repeated six times per page.
   ========================================================================== */

.rl-eyebrow {
  display: block;
  font-family: var(--rl-font-body);
  font-size: var(--rl-text-eyebrow);
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rl-primary-ink);
  margin-bottom: var(--rl-3);
}

.rl-section-head { margin-bottom: var(--rl-8); }

.rl-section-head h2 { margin-bottom: var(--rl-3); }

.rl-section-head .rl-lede { margin-bottom: 0; }

.rl-hairline {
  border: 0;
  height: 1px;
  background: var(--rl-hairline);
  margin: 0;
}

.rl-lede {
  font-size: var(--rl-text-lede);
  line-height: 1.6;
  color: var(--rl-body);
  max-width: 54ch;
}

.rl-center .rl-lede { margin-inline: auto; }

.rl-meta {
  font-size: var(--rl-text-meta);
  line-height: 1.5;
  color: var(--rl-muted);
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

/* Prefixed with .rl throughout so these outrank the `.rl a` colour rule when a
   button is an anchor. */
.rl .rl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rl-2);
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--rl-radius-pill);
  font-family: var(--rl-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s var(--rl-ease),
              color 0.25s var(--rl-ease),
              border-color 0.25s var(--rl-ease),
              box-shadow 0.25s var(--rl-ease),
              transform 0.25s var(--rl-ease);
}

.rl .rl-btn--primary {
  background: var(--rl-primary);
  border-color: var(--rl-primary);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(212, 111, 9, 0.6);
}

.rl .rl-btn--primary:hover {
  background: var(--rl-primary-ink);
  border-color: var(--rl-primary-ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(212, 111, 9, 0.7);
}

.rl .rl-btn--secondary {
  background: transparent;
  border-color: var(--rl-hairline-strong);
  color: var(--rl-ink);
}

.rl .rl-btn--secondary:hover {
  border-color: var(--rl-primary);
  color: var(--rl-primary-ink);
  background: var(--rl-primary-soft);
}

.rl .rl-btn--on-image {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  backdrop-filter: blur(6px);
}

.rl .rl-btn--on-image:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #fff;
  color: var(--rl-ink);
}

.rl .rl-btn--block { width: 100%; }

.rl-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rl-3);
}

.rl-center .rl-btn-group { justify-content: center; }

/* ==========================================================================
   6. Minimal header — no primary nav, this is a paid landing page
   ========================================================================== */

.rl-header {
  position: relative;
  z-index: 20;
  background: var(--rl-cream);
  border-bottom: 1px solid var(--rl-hairline);
}

.rl-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rl-4);
  min-height: 72px;
  padding-block: var(--rl-3);
}

.rl-header__logo img { width: 148px; height: auto; }

.rl-header__actions {
  display: flex;
  align-items: center;
  gap: var(--rl-4);
}

.rl-header__phone {
  font-size: var(--rl-text-meta);
  font-weight: 600;
  color: var(--rl-ink);
  white-space: nowrap;
}

.rl-header__phone:hover { color: var(--rl-primary-ink); }

.rl-header .rl-btn { min-height: 42px; padding: 0.5rem 1.25rem; font-size: 0.9375rem; }

@media (max-width: 560px) {
  .rl-header__phone { display: none; }
  .rl-header__logo img { width: 120px; }
}

/* ==========================================================================
   7. Hero — full-bleed image, headline sits over it behind a soft scrim
   ========================================================================== */

.rl-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 76vh, 44rem);
  overflow: hidden;
  background: var(--rl-ink);
}

.rl-hero__media {
  position: absolute;
  inset: 0;
}

/* These sources are landscape, so a tall mobile frame crops them hard. The
   focal point is set per retreat rather than always taking the centre. */
.rl-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--rl-hero-focus, center);
}

/* Two stacked scrims: a bottom gradient for the text block, plus a gradient
   from the text side, so a bright image never swallows the headline. */
.rl-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(24, 15, 8, 0.62) 0%,
      rgba(24, 15, 8, 0.4) 34%,
      rgba(24, 15, 8, 0.06) 68%,
      rgba(24, 15, 8, 0) 100%
    ),
    linear-gradient(
      to top,
      rgba(24, 15, 8, 0.86) 0%,
      rgba(24, 15, 8, 0.66) 28%,
      rgba(24, 15, 8, 0.28) 58%,
      rgba(24, 15, 8, 0.08) 80%,
      rgba(24, 15, 8, 0.02) 100%
    );
}

@media (max-width: 640px) {
  /* No room for a side column on mobile. Instead the scrim stays dark under
     the text block and releases quickly above it, so the photograph still
     reads across the top of the frame. */
  .rl-hero__scrim {
    background: linear-gradient(
      to top,
      rgba(24, 15, 8, 0.92) 0%,
      rgba(24, 15, 8, 0.88) 46%,
      rgba(24, 15, 8, 0.6) 66%,
      rgba(24, 15, 8, 0.2) 84%,
      rgba(24, 15, 8, 0.04) 100%
    );
  }

  .rl-hero__media img { object-position: var(--rl-hero-focus-mobile, var(--rl-hero-focus, center)); }
}

.rl-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.rl-hero__content { max-width: 40rem; }

.rl-hero .rl-eyebrow { color: rgba(255, 255, 255, 0.82); }

.rl-hero h1 { color: #fff; margin-bottom: var(--rl-4); }

.rl-hero__lede {
  font-size: var(--rl-text-lede);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
  margin-bottom: var(--rl-6);
}

.rl-hero .rl-btn-group { margin-top: var(--rl-6); }

/* Meta chips — the one other place the pill radius is allowed */
.rl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rl-2);
}

.rl-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--rl-2);
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--rl-radius-pill);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  font-size: var(--rl-text-meta);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.4;
}

.rl-chip svg { width: 15px; height: 15px; flex: none; opacity: 0.85; }

@media (max-width: 640px) {
  .rl-hero { min-height: auto; padding-top: clamp(6rem, 34vw, 10rem); }
  .rl-hero__lede { margin-bottom: var(--rl-4); }
  .rl-hero .rl-btn-group { margin-top: var(--rl-4); }
  .rl-hero .rl-btn { flex: 1 1 100%; }
}

/* ==========================================================================
   8. Trust strip
   ========================================================================== */

.rl-trust {
  background: var(--rl-cream);
  border-bottom: 1px solid var(--rl-hairline);
}

.rl-trust__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: var(--rl-6);
}

.rl-trust__item {
  text-align: center;
  padding-inline: var(--rl-4);
}

.rl-trust__item + .rl-trust__item { border-left: 1px solid var(--rl-hairline); }

.rl-trust__value {
  display: block;
  font-family: var(--rl-font-head);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.2;
  color: var(--rl-ink);
  margin-bottom: var(--rl-1);
}

.rl-trust__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rl-muted);
  line-height: 1.4;
}

.rl-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--rl-primary);
  vertical-align: middle;
}

.rl-stars svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .rl-trust__inner { grid-template-columns: 1fr; gap: var(--rl-4); }
  .rl-trust__item + .rl-trust__item {
    border-left: 0;
    border-top: 1px solid var(--rl-hairline);
    padding-top: var(--rl-4);
  }
}

/* ==========================================================================
   9. Card grids — "Is this for you?" and "What you'll experience"
   ========================================================================== */

.rl-grid {
  display: grid;
  gap: var(--rl-4);
}

.rl-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rl-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Self-balancing, for lists whose length varies per retreat (4 to 7 items) */
.rl-grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }

@media (max-width: 860px) {
  .rl-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .rl-grid--2,
  .rl-grid--3 { grid-template-columns: 1fr; }
}

.rl-card {
  background: var(--rl-surface);
  border: 1px solid var(--rl-hairline);
  border-radius: var(--rl-radius);
  padding: var(--rl-6);
  box-shadow: var(--rl-shadow);
  transition: box-shadow 0.3s var(--rl-ease), transform 0.3s var(--rl-ease);
}

.rl-section--cream .rl-card { border-color: rgba(41, 26, 10, 0.08); }

.rl-card--hover:hover {
  box-shadow: var(--rl-shadow-lift);
  transform: translateY(-2px);
}

.rl-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--rl-4);
  border-radius: var(--rl-radius);
  background: var(--rl-primary-soft);
  color: var(--rl-primary-ink);
}

.rl-card__icon svg { width: 20px; height: 20px; }

.rl-card h3 { margin-bottom: var(--rl-2); }

.rl-card p:last-child { margin-bottom: 0; }

/* Experience list — thin-stroke marks instead of solid FontAwesome checks */
.rl-marklist { display: grid; gap: var(--rl-3); }

.rl-marklist--2 { grid-template-columns: repeat(2, 1fr); gap: var(--rl-3) var(--rl-8); }

@media (max-width: 600px) {
  .rl-marklist--2 { grid-template-columns: 1fr; }
}

.rl-marklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--rl-3);
  padding-block: var(--rl-2);
  line-height: 1.6;
}

.rl-marklist li + li { border-top: 1px solid var(--rl-hairline); }

.rl-marklist--2 li + li { border-top: 0; }

.rl-marklist svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 0.3em;
  color: var(--rl-primary);
  stroke-width: 1.5;
}

/* ==========================================================================
   10. Itinerary
   ========================================================================== */

.rl-itinerary {
  max-width: 46rem;
  width: 100%;
}

.rl-center .rl-itinerary { margin-inline: auto; text-align: left; }

@media (max-width: 780px) {
  .rl-itinerary { max-width: none; }
}

.rl-itinerary__item {
  position: relative;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--rl-6);
  padding-block: var(--rl-6);
}

.rl-itinerary__item + .rl-itinerary__item { border-top: 1px solid var(--rl-hairline); }

.rl-itinerary__day {
  font-family: var(--rl-font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rl-primary-ink);
  padding-top: 0.35em;
}

.rl-itinerary__body h3 { margin-bottom: var(--rl-2); }

@media (max-width: 600px) {
  .rl-itinerary__item {
    grid-template-columns: 1fr;
    gap: var(--rl-2);
    padding-block: var(--rl-4);
  }
  .rl-itinerary__day { padding-top: 0; }
}

/* ==========================================================================
   11. Inclusions / exclusions
   ========================================================================== */

.rl-inclusions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--rl-4);
}

@media (max-width: 720px) {
  .rl-inclusions { grid-template-columns: 1fr; }
}

.rl-panel {
  background: var(--rl-surface);
  border: 1px solid var(--rl-hairline);
  border-radius: var(--rl-radius-lg);
  padding: var(--rl-8);
  box-shadow: var(--rl-shadow);
}

.rl-panel > h3 {
  display: flex;
  align-items: center;
  gap: var(--rl-2);
  padding-bottom: var(--rl-4);
  margin-bottom: var(--rl-4);
  border-bottom: 1px solid var(--rl-hairline);
}

.rl-panel > h3 svg { width: 20px; height: 20px; flex: none; }

.rl-panel--included > h3 svg { color: var(--rl-primary); }
.rl-panel--excluded > h3 { color: var(--rl-muted); }
.rl-panel--excluded > h3 svg { color: var(--rl-muted); }
.rl-panel--excluded .rl-marklist svg { color: var(--rl-muted); }
.rl-panel--excluded { background: transparent; box-shadow: none; }

/* ==========================================================================
   12. Facilitator
   ========================================================================== */

.rl-facilitator {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(var(--rl-6), 5vw, var(--rl-16));
  align-items: center;
}

@media (max-width: 780px) {
  .rl-facilitator { grid-template-columns: 1fr; gap: var(--rl-6); }
  .rl-facilitator__media { max-width: 260px; }
}

.rl-facilitator__media {
  border-radius: var(--rl-radius-lg);
  overflow: hidden;
  box-shadow: var(--rl-shadow);
}

.rl-facilitator__media img { width: 100%; height: auto; }

.rl-facilitator__body .rl-prose { max-width: 56ch; }

.rl-facilitator__name { margin-bottom: var(--rl-1); }

.rl-facilitator__role {
  display: block;
  font-size: var(--rl-text-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rl-primary-ink);
  margin-bottom: var(--rl-4);
}

/* ==========================================================================
   13. Testimonials — quiet typographic treatment, no carousel
   ========================================================================== */

.rl-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--rl-6);
}

.rl-quote {
  display: flex;
  flex-direction: column;
  padding-top: var(--rl-6);
  border-top: 2px solid var(--rl-hairline-strong);
}

.rl-quote__text {
  font-family: var(--rl-font-head);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--rl-ink);
  margin-bottom: var(--rl-4);
  flex: 1;
}

.rl-quote__author {
  font-size: var(--rl-text-meta);
  font-weight: 600;
  color: var(--rl-ink);
}

.rl-quote__meta {
  display: block;
  font-size: var(--rl-text-meta);
  font-weight: 400;
  color: var(--rl-muted);
}

/* ==========================================================================
   14. Investment
   ========================================================================== */

.rl-investment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--rl-8);
  align-items: center;
  padding: clamp(var(--rl-6), 4vw, var(--rl-12));
  background: var(--rl-surface);
  border: 1px solid var(--rl-hairline);
  border-radius: var(--rl-radius-lg);
  box-shadow: var(--rl-shadow);
}

@media (max-width: 760px) {
  .rl-investment { grid-template-columns: 1fr; gap: var(--rl-6); text-align: left; }
}

.rl-investment__price {
  font-family: var(--rl-font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--rl-ink);
  margin-bottom: var(--rl-2);
}

.rl-investment__note { margin-bottom: 0; }

/* ==========================================================================
   15. FAQ accordion
   ========================================================================== */

.rl-faq {
  max-width: 46rem;
  width: 100%;
  border-top: 1px solid var(--rl-hairline);
}

.rl-center .rl-faq { margin-inline: auto; text-align: left; }

@media (max-width: 780px) {
  .rl-faq { max-width: none; }
}

.rl-faq__item { border-bottom: 1px solid var(--rl-hairline); }

.rl-faq__trigger {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--rl-4);
  width: 100%;
  padding: var(--rl-6) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--rl-font-head);
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--rl-ink);
  transition: color 0.2s var(--rl-ease);
}

.rl-faq__trigger:hover { color: var(--rl-primary-ink); }

.rl-faq__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.2em;
  color: var(--rl-primary);
}

.rl-faq__icon::before,
.rl-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--rl-ease), opacity 0.3s var(--rl-ease);
}

.rl-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.rl-faq__trigger[aria-expanded="true"] .rl-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

/* Height is driven by the grid-rows trick so the panel can animate to auto */
.rl-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--rl-ease);
}

.rl-faq__panel[data-open="true"] { grid-template-rows: 1fr; }

.rl-faq__panel-inner { overflow: hidden; }

.rl-faq__panel-inner > div { padding-bottom: var(--rl-6); max-width: 60ch; }

/* ==========================================================================
   16. Enquiry form
   ========================================================================== */

.rl-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(var(--rl-8), 5vw, var(--rl-16));
  align-items: start;
}

@media (max-width: 880px) {
  .rl-form-wrap { grid-template-columns: 1fr; gap: var(--rl-8); }
}

.rl-form {
  background: var(--rl-surface);
  border: 1px solid var(--rl-hairline);
  border-radius: var(--rl-radius-lg);
  padding: clamp(var(--rl-6), 4vw, var(--rl-8));
  box-shadow: var(--rl-shadow);
}

.rl-field { margin-bottom: var(--rl-4); }

.rl-field__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--rl-4);
}

@media (max-width: 540px) {
  .rl-field__row { grid-template-columns: 1fr; gap: 0; }
}

.rl-label {
  display: block;
  font-size: var(--rl-text-meta);
  font-weight: 600;
  color: var(--rl-ink);
  margin-bottom: var(--rl-2);
}

.rl-label .rl-req { color: var(--rl-primary); }

/* Radius 10px, not the 50px pill the current inputs use */
.rl-input,
.rl-textarea,
.rl-select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  font-family: var(--rl-font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--rl-ink);
  background: var(--rl-cream);
  border: 1px solid var(--rl-hairline);
  border-radius: var(--rl-radius);
  transition: border-color 0.2s var(--rl-ease),
              background-color 0.2s var(--rl-ease),
              box-shadow 0.2s var(--rl-ease);
}

.rl-textarea { min-height: 120px; resize: vertical; }

.rl-input::placeholder,
.rl-textarea::placeholder { color: var(--rl-muted); opacity: 0.75; }

.rl-input:focus,
.rl-textarea:focus,
.rl-select:focus {
  outline: none;
  background: var(--rl-surface);
  border-color: var(--rl-primary);
  box-shadow: 0 0 0 3px rgba(212, 111, 9, 0.14);
}

.rl-input[aria-invalid="true"],
.rl-textarea[aria-invalid="true"] {
  border-color: #b3261e;
  background: rgba(179, 38, 30, 0.03);
}

.rl-error {
  display: none;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #b3261e;
  margin-top: var(--rl-1);
}

.rl-error[data-visible="true"] { display: block; }

/* Honeypot — off-screen rather than display:none so bots still fill it */
.rl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rl-form__footnote {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--rl-muted);
  margin-top: var(--rl-3);
  margin-bottom: 0;
}

.rl-form__status {
  display: none;
  padding: var(--rl-3) var(--rl-4);
  border-radius: var(--rl-radius);
  font-size: var(--rl-text-meta);
  line-height: 1.5;
  margin-bottom: var(--rl-4);
}

.rl-form__status[data-state="success"] {
  display: block;
  background: rgba(212, 111, 9, 0.08);
  border: 1px solid var(--rl-hairline);
  color: var(--rl-ink);
}

.rl-form__status[data-state="error"] {
  display: block;
  background: rgba(179, 38, 30, 0.06);
  border: 1px solid rgba(179, 38, 30, 0.3);
  color: #b3261e;
}

.rl-btn[data-loading="true"] { opacity: 0.7; pointer-events: none; }

/* ==========================================================================
   17. Footer — trust and legal only
   ========================================================================== */

.rl-footer {
  background: var(--rl-cream);
  border-top: 1px solid var(--rl-hairline);
  padding-block: var(--rl-8);
}

.rl-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--rl-4);
  font-size: var(--rl-text-meta);
  color: var(--rl-muted);
}

.rl-footer__links { display: flex; flex-wrap: wrap; gap: var(--rl-4); }

/* ==========================================================================
   18. Sticky mobile CTA
   ========================================================================== */

.rl-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  gap: var(--rl-2);
  padding: var(--rl-3) var(--rl-4);
  padding-bottom: calc(var(--rl-3) + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rl-hairline);
  box-shadow: 0 -8px 24px -16px rgba(41, 26, 10, 0.4);
  transform: translateY(110%);
  transition: transform 0.35s var(--rl-ease);
}

.rl-sticky-cta[data-visible="true"] { transform: translateY(0); }

.rl-sticky-cta .rl-btn { flex: 1; min-height: 46px; padding-inline: var(--rl-3); font-size: 0.9375rem; }

@media (max-width: 780px) {
  .rl-sticky-cta { display: flex; }
  /* Keep the footer clear of the bar */
  .rl-has-sticky .rl-footer { padding-bottom: calc(var(--rl-8) + 72px); }
}

/* ==========================================================================
   19. Motion — reveal on scroll
   ========================================================================== */

.rl-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--rl-duration) var(--rl-ease),
              transform var(--rl-duration) var(--rl-ease);
  transition-delay: var(--rl-reveal-delay, 0ms);
  will-change: opacity, transform;
}

.rl-reveal[data-revealed="true"] {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Without JS, nothing should ever stay hidden */
.rl-no-js .rl-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rl *,
  .rl *::before,
  .rl *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .rl-reveal { opacity: 1; transform: none; transition: none; }
  .rl-btn:hover,
  .rl-card--hover:hover { transform: none; }
}

/* ==========================================================================
   20. Utilities
   ========================================================================== */

.rl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Prefixed so they outrank the element rules above, e.g. `.rl p`. */
.rl .rl-stack-4 > * + * { margin-top: var(--rl-4); }
.rl .rl-stack-6 > * + * { margin-top: var(--rl-6); }
.rl .rl-stack-8 > * + * { margin-top: var(--rl-8); }

.rl .rl-mt-6 { margin-top: var(--rl-6); }
.rl .rl-mt-8 { margin-top: var(--rl-8); }

/* Marks preview-only placeholder content. Not shipped to the live template. */
.rl-placeholder {
  position: relative;
  outline: 1px dashed rgba(212, 111, 9, 0.45);
  outline-offset: 10px;
}

.rl-placeholder::after {
  content: "Placeholder copy";
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(6px, -50%);
  font-family: var(--rl-font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rl-primary);
  background: var(--rl-surface);
  padding: 2px 8px;
  border-radius: 4px;
}
