/* ==========================================================================
   rates.css — package pricing page
   Hero, three package cards, grouped comparison table, add-ons grid,
   custom-listing CTA. Built on the global tokens in style.css.
   ========================================================================== */

/* Screen-reader-only helper, scoped to this page's components */
.rt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.rt-hero {
  text-align: center;
  padding: calc(var(--nav-height) + clamp(var(--s-12), 9vw, var(--s-24))) var(--container-padding) var(--s-16);
  background: var(--cedar);
}

.rt-hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.rt-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--evergreen);
  margin: 0 0 var(--s-4);
}

.rt-hero__sub {
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto var(--s-5);
  max-width: 620px;
}

.rt-hero__fineprint {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   2. PACKAGE CARDS
   -------------------------------------------------------------------------- */
.rt-cards {
  /* Boxier card radius, scoped to this page so it cascades to the cards. */
  --rt-card-radius: 10px;
  background: var(--white);
  padding: var(--s-7) var(--container-padding) var(--section-spacing);
}

.rt-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  align-items: stretch; /* even card height regardless of feature count */
  max-width: var(--max-width);
  margin: 0 auto;
  /* pull the cards up slightly while leaving cleaner separation from the hero */
  margin-top: calc(-1 * var(--s-4));
}

.rt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--rt-card-radius);
  box-shadow: var(--shadow-sm);
  padding: var(--s-7) var(--s-6) var(--s-6);
  transition: transform var(--ease) ease, box-shadow var(--ease) ease;
}

.rt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Featured (Plus) card — same height as the others, stronger border and a
   faint tint so it reads as recommended without breaking the even row. */
.rt-card--featured {
  border: 2px solid var(--evergreen);
  background: var(--evergreen-04);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

/* "Most popular" pill, top-right inside the card. Solid evergreen so it
   reads clearly against the faint featured tint. */
.rt-card__badge {
  position: absolute;
  top: calc(-1 * var(--s-3));
  right: var(--s-5);
  display: inline-flex;
  align-items: center;
  margin: 0;
  background: var(--evergreen);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.rt-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--evergreen);
  margin: 0 0 var(--s-3);
}

.rt-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--charcoal);
  margin: 0 0 var(--s-2);
}

.rt-card__save {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  background: var(--color-gold);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin: 0 0 var(--s-5);
}

.rt-card__save--placeholder {
  visibility: hidden;
}

.rt-card__cta {
  width: 100%;
  justify-content: center;
  margin: 0 0 var(--s-3);
}

/* Reassurance chip under the CTA, like a money-back promise row. Filled so
   it stands out as a real guarantee, not fine print. */
.rt-card__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0 0 var(--s-5);
  padding: 0.8rem 1rem;
  background: #eef2f5;
  border: 1px solid rgba(16, 38, 50, 0.08);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--evergreen);
  text-align: center;
}
.rt-card__trust svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--evergreen);
}

.rt-card__listheading {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s-2);
  padding-top: var(--s-5);
  border-top: 1px solid var(--card-border);
}

/* Feature list — each row is a dropdown that expands for detail. */
.rt-card__feats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rt-feat {
  border-bottom: 1px solid var(--card-border);
}
.rt-feat:last-child {
  border-bottom: none;
}

.rt-feat__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--s-3) 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--charcoal);
  transition: color var(--ease);
}
.rt-feat__toggle:hover {
  color: var(--evergreen);
}
.rt-feat__toggle:focus-visible {
  outline: 2px solid var(--evergreen);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.rt-feat__label {
  flex: 1 1 auto;
}

.rt-feat__chev {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform var(--ease) ease;
}
.rt-feat__toggle[aria-expanded="true"] .rt-feat__chev {
  transform: rotate(180deg);
  color: var(--evergreen);
}

.rt-feat__detail {
  padding: 0 0 var(--s-3);
}
.rt-feat__detail p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   3. SHARED SECTION HEADER
   -------------------------------------------------------------------------- */
.rt-section {
  padding: var(--section-spacing) var(--container-padding);
}

.rt-section--alt {
  background: var(--cedar);
}

.rt-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s-10);
}

.rt-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.15;
  color: var(--evergreen);
  margin: 0 0 var(--s-3);
}

.rt-section__sub {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. COMPARISON TABLE
   -------------------------------------------------------------------------- */
.rt-compare__scroll {
  max-width: var(--max-width);
  margin: 0 auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.rt-compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.rt-compare th,
.rt-compare td {
  padding: var(--s-4);
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--card-border);
}

/* Sticky plan header: name + price + Book button stay pinned under the nav
   while the feature rows scroll past (desktop / tablet, vertical scroll). */
.rt-compare thead th {
  position: sticky;
  top: var(--nav-height);
  z-index: 3;
  background: var(--white);
  border-bottom: 2px solid var(--card-border);
  box-shadow: 0 10px 16px -14px rgba(16, 38, 50, 0.5);
}

.rt-compare__planhead {
  /* Bottom-align so the name, price, and button line up across all three
     columns; the badge then sits in the extra space above the Plus name. */
  vertical-align: bottom;
  padding-top: var(--s-4);
  padding-bottom: var(--s-5);
}

.rt-compare__feature {
  text-align: left;
  font-weight: 400;
  color: var(--charcoal);
  width: 31%;
}

.rt-compare thead .rt-compare__feature {
  font-weight: 700;
  color: var(--evergreen);
  vertical-align: bottom;
}

.rt-compare__plan {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--evergreen);
}

.rt-compare__planprice {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0.15rem 0 var(--s-3);
}

.rt-compare__plan-badge {
  display: inline-block;
  margin: 0 0 var(--s-3);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--evergreen);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.rt-compare__planbtn.btn {
  width: 100%;
  padding: 0.7rem 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
}

/* Highlight the recommended (Plus) column. The header cell composites the
   tint over white so scrolling rows never show through the sticky header. */
.rt-compare__col--featured {
  background: var(--evergreen-04);
}
.rt-compare thead .rt-compare__col--featured {
  background: var(--cedar);
}

.rt-compare__group th {
  text-align: left;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--cedar);
  padding-top: var(--s-4);
  padding-bottom: var(--s-4);
}

/* Row hover makes left-to-right reading easier */
.rt-compare tbody tr:not(.rt-compare__group):hover td,
.rt-compare tbody tr:not(.rt-compare__group):hover th {
  background: var(--evergreen-06);
}

.rt-compare__value {
  font-weight: 600;
  color: var(--charcoal);
}

.rt-tick {
  width: 20px;
  height: 20px;
  color: var(--evergreen);
}

.rt-dash {
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--card-border);
  vertical-align: middle;
}

/* "Swipe to compare" hint — only shown when the table scrolls horizontally */
.rt-compare__hint {
  display: none;
}

/* On mobile the side-by-side table is hard to read, so hide it entirely and
   let the package cards above carry the comparison. */
@media (max-width: 768px) {
  .rt-compare-section {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   5. ADD-ONS GRID
   -------------------------------------------------------------------------- */
.rt-addons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 280px));
  justify-content: center;
  gap: var(--s-4);
  max-width: var(--max-width);
  margin: 0 auto;
}

.rt-addon {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: var(--s-5);
  transition: transform var(--ease) ease, box-shadow var(--ease) ease;
}

.rt-addon:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.rt-addon__icon {
  width: 26px;
  height: 26px;
  color: var(--evergreen);
}

.rt-addon__name {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--evergreen);
  margin: var(--s-1) 0 0;
}

.rt-addon__desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
  flex: 1 1 auto;
}

.rt-addon__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-2);
}

.rt-addon__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--charcoal);
}

.rt-addon__incl {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--evergreen);
  background: var(--success-tint);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   6. WHAT EVERY BOOKING GETS (selling trio)
   -------------------------------------------------------------------------- */
.rt-trio {
  padding: var(--section-spacing) var(--container-padding);
  background: var(--slate-light);
}

.rt-trio__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s-10);
}

.rt-trio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  max-width: var(--max-width);
  margin: 0 auto;
}

.rt-trio__card {
  text-align: center;
  padding: var(--s-4) var(--s-4) var(--s-2);
}

.rt-trio__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: var(--s-4);
  border-radius: var(--radius-card);
}
.rt-trio__icon svg {
  width: 28px;
  height: 28px;
}
/* Soft, distinct colour tiles per benefit. */
.rt-trio__icon--a {
  background: var(--evergreen-08);
  color: var(--evergreen);
}
.rt-trio__icon--b {
  background: rgba(201, 166, 107, 0.18); /* warm gold tint */
  color: var(--color-gold-hover);
}
.rt-trio__icon--c {
  background: rgba(63, 82, 90, 0.12); /* coastal slate tint */
  color: var(--evergreen-mid);
}

.rt-trio__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--evergreen);
  margin: 0 0 var(--s-2);
}

.rt-trio__copy {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   7. PRICING FAQ
   -------------------------------------------------------------------------- */
.rt-faq {
  padding: var(--section-spacing) var(--container-padding);
  background: var(--cedar);
}

.rt-faq__inner {
  max-width: 820px;
  margin: 0 auto;
}

.rt-faq .rt-section__head {
  margin-bottom: var(--s-8);
}

/* Lift the reused FAQ list onto a clean card so it stands out on the tint. */
.rt-faq .faq__list {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-sm);
  padding: 0 var(--s-6);
}
.rt-faq .faq__item:first-child {
  border-top: none;
}
.rt-faq .faq__question {
  padding: var(--s-5) 0;
  font-size: 1rem;
}
.rt-faq .faq__answer {
  padding-bottom: var(--s-5);
}

/* --------------------------------------------------------------------------
   8. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .rt-cards__grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-top: 0;
    gap: var(--s-6);
  }
  /* Stacked on mobile, lead with the entry price (matches the "from $179"
     promise across the site) and ladder up. DOM order is unchanged. */
  .rt-cards__grid > .rt-card:nth-child(1) { order: 3; } /* Luxe $499 */
  .rt-cards__grid > .rt-card:nth-child(2) { order: 2; } /* Plus (Most popular) */
  .rt-cards__grid > .rt-card:nth-child(3) { order: 1; } /* Essentials $179 */
  .rt-trio__grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    gap: var(--s-8);
  }
}

@media (max-width: 520px) {
  .rt-cards__grid {
    margin-top: var(--s-2);
  }
  .rt-card {
    padding: var(--s-6) var(--s-5) var(--s-5);
  }

  .rt-card__trust {
    font-size: 0.88rem;
    padding: 0.75rem 0.9rem;
  }
}

/* Honour reduced-motion: kill the lift/scale and chevron transitions */
@media (prefers-reduced-motion: reduce) {
  .rt-card,
  .rt-card--featured,
  .rt-addon,
  .rt-feat__chev {
    transition: none;
  }
  .rt-card:hover,
  .rt-card--featured:hover,
  .rt-addon:hover {
    transform: none;
  }
}
