/* ==========================================================================
   rates.css — package pricing page
   Hero, four 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: 500;
  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(4, 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: 500;
  font-size: 1.5rem;
  color: var(--evergreen);
  margin: 0 0 var(--s-3);
}

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

.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;
}

/* Simple checkmark feature rows (no accordion) */
.rt-feat {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: var(--s-2) 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--charcoal);
}

.rt-feat__check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--evergreen);
}

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

/* Featured card uses gold checks for a touch of contrast on the tint */
.rt-card--featured .rt-feat__check {
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   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: 500;
  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: 500;
  line-height: 1.1;
  color: var(--evergreen);
}

.rt-compare__planprice {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  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-btn);
}

/* 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: 500;
  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: 500;
  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: 1024px) {
  /* Four equal cards get cramped on tablets — drop to a 2x2 grid. */
  .rt-cards__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin-top: 0;
    gap: var(--s-6);
  }
}

@media (max-width: 900px) {
  .rt-trio__grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    gap: var(--s-8);
  }
}

@media (max-width: 640px) {
  /* DOM order is cheapest-first so cards stack low-to-high naturally. */
  .rt-cards__grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
}

@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 {
    transition: none;
  }
  .rt-card:hover,
  .rt-card--featured:hover,
  .rt-addon:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   10. TRUSTED BY (brokerage logos) — light-mode logo strip
   -------------------------------------------------------------------------- */
.rt-brokerages {
  background: var(--white);
  padding: var(--section-spacing) var(--container-padding);
}
.rt-brokerages__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.rt-brokerages__label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 var(--s-7);
}
.rt-brokerages__logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--card-border);
  border-radius: var(--rt-card-radius, 10px);
  overflow: hidden;
}
.rt-brokerages__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--card-border);
}
.rt-brokerages__logo:last-child {
  border-right: none;
}
.rt-brokerages__logo img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity var(--ease), filter var(--ease);
}
.rt-brokerages__logo img:hover {
  opacity: 1;
  filter: none;
}
@media (max-width: 768px) {
  .rt-brokerages__logos {
    grid-template-columns: repeat(2, 1fr);
  }
  .rt-brokerages__logo {
    min-height: 96px;
  }
  /* keep only the inner vertical divider on each row, drop dangling borders */
  .rt-brokerages__logo:nth-child(2n) {
    border-right: none;
  }
  .rt-brokerages__logo:nth-child(1),
  .rt-brokerages__logo:nth-child(2) {
    border-bottom: 1px solid var(--card-border);
  }
}

/* --------------------------------------------------------------------------
   11. CONTACT SECTION
   -------------------------------------------------------------------------- */
.rt-contact {
  background: var(--cedar);
  padding: var(--section-spacing) var(--container-padding);
  text-align: center;
}
.rt-contact__inner {
  max-width: 560px;
  margin: 0 auto;
}
.rt-contact__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--evergreen);
  margin: 0 0 var(--s-3);
}
.rt-contact__sub {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 var(--s-8);
}
.rt-contact__actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 var(--s-5);
}
.rt-contact__email {
  font-size: 0.9rem;
  color: var(--muted);
}
.rt-contact__email a {
  color: var(--evergreen);
  text-decoration: underline;
  text-underline-offset: 3px;
}
