/* ==========================================================================
   Rivajet One - brand layer. Load AFTER style.css + responsive.css.
   Source of truth: the approved design (desktop 1920 / mobile 440).
   Scoped: shared overrides first, then page blocks prefixed .rj-
   ========================================================================== */

:root {
  --rj-ink: #272727;
  --rj-charcoal: #474a50;
  --rj-teal: #01575d;
  --rj-cream: #fef4df;
  --rj-mint: #ebfdfd;
  --rj-green: #3ea83e;
  --rj-green-on-dark: #3bfa3b;
  --rj-gold: #b99c30;
  --rj-gold-grad: linear-gradient(270deg, #b09327 3.85%, #eddf9a 24.04%, #b09327 41.83%, #eddf9a 65.87%, #a68714 100%);
  --rj-font-head: "Barlow", "Poppins", sans-serif;
  --rj-font-cond: "Barlow Condensed", "Barlow", sans-serif;
}

/* ---------- shared: pricing table (fe_buttons.php) ---------- */
.pricing_table .basic_pack .header { opacity: 1; background: #b1b2b3; }
.pricing_table .silver_pack .header { opacity: 1; background: #78797b; }
.pricing_table .gold_pack .header { background: linear-gradient(0deg, #272727 26.39%, #494c52 100%); }
.pricing_table .gold_pack .header h3 {
  background: var(--rj-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.pricing_table .gold_pack .bg_teal_gradient { background: linear-gradient(0deg, #272727 26.39%, #494c52 100%); }
.pricing_table .gold_pack .bg_teal_gradient h3 {
  background: var(--rj-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.pricing_table .gold_pack .txt_green3 { color: var(--rj-green-on-dark) !important; }
.pricing_table .txt_green3 { color: var(--rj-green); }
.pricing_table .product_img4 { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.bg_teal.rounded-5 { background: var(--rj-charcoal); }

/* ---------- welcome page ---------- */
.rj-page { font-family: "Poppins", sans-serif; color: var(--rj-ink); background: #fff; }
.rj-page img { max-width: 100%; height: auto; }
.rj-wrap { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.rj-wrap--narrow { max-width: 1090px; }
.rj-wrap--faq { max-width: 1090px; }

/* header */
.rj-header { background: var(--rj-ink); height: 168px; display: flex; align-items: center; }
.rj-header .rj-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rj-logo { font-family: var(--rj-font-cond); font-weight: 700; font-size: 48px; line-height: 1; color: #fff; text-decoration: none; white-space: nowrap; letter-spacing: .5px; }
.rj-logo b { color: var(--rj-gold); font-weight: 700; }
.rj-nav { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.rj-nav a { color: #fff; text-decoration: none; text-align: center; font-size: 15px; line-height: 1.4; text-transform: uppercase; display: block; max-width: 170px; }
.rj-nav a.rj-nav__plain { text-transform: none; }
.rj-nav a:hover { color: #eddf9a; }
.rj-cta {
  display: inline-block; background: var(--rj-gold-grad); color: var(--rj-ink); font-weight: 700;
  font-size: 15px; text-transform: uppercase; text-decoration: none; padding: 17px 32px; border-radius: 4px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.rj-cta:hover { color: var(--rj-ink); filter: brightness(1.06); }
.rj-burger { display: none; background: transparent; border: 0; padding: 6px; }
.rj-burger span { display: block; width: 28px; height: 3px; background: #fff; border-radius: 2px; margin: 6px 0; }
.rj-offcanvas { background: var(--rj-ink); color: #fff; }
.rj-offcanvas .rj-nav { flex-direction: column; align-items: flex-start; gap: 18px; }
.rj-offcanvas .rj-nav a { text-align: left; max-width: none; font-size: 18px; }

/* hero */
.rj-hero { background: #fcffeb; padding: 53px 0 71px; }
.rj-hero .rj-wrap { display: flex; align-items: center; justify-content: center; gap: 40px; }
.rj-hero__img { flex: 0 0 420px; }
.rj-hero__img img { width: 420px; }
.rj-hero__txt { flex: 0 1 680px; }
.rj-hero h1 { font-family: var(--rj-font-cond); font-weight: 700; font-size: 64px; line-height: 60px; color: var(--rj-ink); margin: 0 0 30px; }
.rj-hero ul { list-style: none; padding: 0; margin: 0 0 30px; font-size: 24px; line-height: 36px; }
.rj-hero li { position: relative; padding-left: 24px; }
.rj-hero li::before { content: ""; position: absolute; left: 0; top: 12px; width: 15px; height: 15px; border-radius: 50%; background: var(--rj-ink); }
.rj-btn { display: inline-block; text-align: center; color: #fff; font-size: 20px; text-decoration: none; padding: 11px 22px; min-width: 195px; border-radius: 6.6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .11); }
.rj-btn:hover { color: #fff; filter: brightness(1.07); }
.rj-btn--gold { background: #b99c30; }
.rj-btn--sand { background: #bdb596; margin-left: 25px; }

/* difference */
.rj-diff { background: linear-gradient(180deg, #484b51 0%, #272727 100%); padding: 30px 0 60px; color: #fff; }
.rj-diff h2 { font-family: var(--rj-font-head); font-weight: 700; font-size: 40px; line-height: 48px; text-align: center; color: #cdb35a; margin: 0 0 45px; }
.rj-diff h2 b { color: #b99c30; font-weight: 800; }
.rj-diff__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.rj-diff__card img { width: 100%; border-radius: 20px; display: block; margin-bottom: 20px; }
.rj-diff__card h3 { font-weight: 700; font-size: 22px; line-height: 1.2; margin: 0 0 14px; }
.rj-diff__card p { font-size: 20px; line-height: 1.2; margin: 0; }

/* quality */
.rj-quality { padding: 100px 0 100px; background: #fff; }
.rj-quality .rj-wrap { display: flex; gap: 40px; align-items: flex-start; justify-content: center; max-width: 1090px; }
.rj-quality__txt { flex: 0 1 558px; }
.rj-quality h2 { font-family: var(--rj-font-cond); font-weight: 700; font-size: 34px; text-transform: uppercase; color: var(--rj-teal); margin: 0 0 16px; }
.rj-quality ul { list-style: none; padding: 0; margin: 0; color: var(--rj-teal); font-size: 20px; line-height: 2; }
.rj-quality__img { flex: 0 0 458px; }

/* cascade */
.rj-bar { background: var(--rj-gold-grad); height: 92px; display: flex; align-items: center; justify-content: center; }
.rj-bar h2 { font-family: var(--rj-font-head); font-weight: 700; font-size: 40px; color: var(--rj-ink); margin: 0; text-align: center; }
.rj-step { padding: 40px 0 55px; background: #fff; text-align: center; color: var(--rj-teal); }
.rj-step--cream { background: var(--rj-cream); }
.rj-step h3 { font-family: var(--rj-font-head); font-weight: 700; font-size: 32px; text-transform: uppercase; color: var(--rj-teal); margin: 0 0 10px; }
.rj-step > .rj-wrap > p { font-weight: 300; font-size: 24px; margin: 0 0 40px; text-transform: capitalize; }
.rj-ing { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 40px 40px; }
.rj-ing__item { width: 300px; }
.rj-ing--2 .rj-ing__item { width: 500px; }
.rj-ing--1 .rj-ing__item { width: 500px; }
.rj-step .rj-wrap--narrow { max-width: 1170px; }
.rj-ing--4 { gap: 40px 10px; }
.rj-ing--4 .rj-ing__item { width: 272px; }
.rj-ing__item img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 14px; }
.rj-ing__item h4 { font-weight: 800; font-size: 20px; line-height: 1.35; color: var(--rj-teal); margin: 0 0 10px; }
.rj-ing__item p { font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--rj-teal); text-transform: capitalize; margin: 0; }

/* badges */
.rj-badges { background: var(--rj-charcoal); padding: 30px 0; }
.rj-badges__box { background: #fff; border: 1px solid var(--rj-teal); border-radius: 20px; max-width: 1022px; margin: 0 auto; padding: 14px 20px 8px; text-align: center; }
.rj-badges__row { list-style: none; margin: 0 0 6px; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rj-badges__row li { flex: 1 1 120px; text-align: center; }
.rj-badges__row img { width: 100%; max-width: 160px; height: auto; }
.rj-badges__box p { font-family: "Inter", sans-serif; font-size: 14px; margin: 4px 0 0; text-transform: capitalize; color: var(--rj-ink); }

/* testimonials */
.rj-testi { padding: 55px 0 50px; }
.rj-testi h2 { font-weight: 700; font-size: 40px; line-height: 60px; text-align: center; margin: 0 0 30px; color: var(--rj-ink); }
.rj-testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1110px; margin: 0 auto; padding: 0 20px; }
.rj-testi__card { background: #f5f5f5; border-radius: 10px; padding: 19px 20px 30px; text-align: center; }
.rj-testi__card img { width: 210px; height: 210px; border-radius: 50%; object-fit: cover; margin: 0 auto 26px; display: block; }
.rj-testi__card strong { display: block; font-weight: 800; font-size: 25px; line-height: 30px; }
.rj-testi__card em { display: block; font-style: normal; font-weight: 300; font-size: 25px; line-height: 30px; }
.rj-stars { color: #fbb913; font-size: 22px; letter-spacing: 3px; margin: 6px 0 14px; }
.rj-testi__card p { font-size: 20px; line-height: 32px; margin: 0; }

/* bonuses */
.rj-bonus { background: linear-gradient(180deg, #494b51 0%, #272727 100%); color: #fff; padding: 55px 0 80px; position: relative; text-align: center; }
.rj-bonus::after { content: ""; position: absolute; left: 50%; bottom: -39px; transform: translateX(-50%); border-left: 40px solid transparent; border-right: 40px solid transparent; border-top: 40px solid #272727; }
.rj-bonus h2 { font-weight: 700; font-size: 32px; line-height: 45px; margin: 0 0 8px; }
.rj-bonus h2 .g { color: #3bfa3b; }
.rj-bonus > .rj-wrap > p { font-weight: 300; font-size: 24px; margin: 0 0 36px; }
.rj-bonus__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 46px; max-width: 1170px; margin: 0 auto; }
.rj-bonus__card { background: #fff; color: var(--rj-teal); border-radius: 30px; width: 561px; max-width: 100%; padding: 30px 40px 30px 42px; display: flex; gap: 28px; align-items: center; text-align: left; }
.rj-bonus__card img { width: 190px; flex: 0 0 auto; }
.rj-pill { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(180deg, #38d95d, #1ccf43); color: #fff; padding: 4px 16px; border-radius: 8px; font-size: 20px; box-shadow: 0 3px 5px rgba(0, 0, 0, .2); margin-bottom: 18px; }
.rj-pill s { font-weight: 700; }
.rj-pill b { font-weight: 700; }
.rj-bonus__card h3 { font-weight: 700; font-size: 20px; line-height: 1.25; margin: 0 0 14px; }
.rj-bonus__card p { font-size: 18px; line-height: 1.45; margin: 0; }

/* exclusive */
.rj-excl { padding: 80px 0 60px; }
.rj-excl__box { position: relative; background: #fef7d4; border: 6px solid #e30000; border-radius: 14px; max-width: 910px; margin: 0 auto; padding: 60px 30px 36px; text-align: center; }
.rj-excl__box img { position: absolute; top: -44px; left: 50%; width: 88px; transform: translateX(-50%); }
.rj-excl__box h2 { font-weight: 800; font-size: 40px; margin: 0 0 14px; }
.rj-excl__box p { font-size: 24px; line-height: 1.45; margin: 0; }
.rj-excl__box .r { color: #e30000; font-weight: 700; }
.rj-pricing { padding: 20px 0 30px; }
.rj-pricing .container-lg { max-width: 1282px; }

/* faq */
.rj-faq { background: var(--rj-cream); padding: 60px 0 100px; }
.rj-faq h2 { font-family: var(--rj-font-head); font-weight: 700; font-size: 40px; line-height: 48px; text-align: center; color: var(--rj-teal); margin: 0 0 70px; }
.rj-faq__item { background: var(--rj-mint); border: 1px solid var(--rj-teal); border-radius: 20px; margin-bottom: 30px; color: var(--rj-teal); overflow: hidden; }
.rj-faq__q { width: 100%; background: transparent; border: 0; text-align: left; padding: 22px 80px 14px 40px; font-weight: 800; font-size: 32px; line-height: 34px; color: var(--rj-teal); position: relative; cursor: pointer; }
.rj-faq__q::after { content: ""; position: absolute; right: 27px; top: 20px; width: 40px; height: 40px; border: 2px solid var(--rj-teal); border-radius: 50%; background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%2301575d' stroke-width='2'/%3E%3C/svg%3E"); transition: transform .25s; }
.rj-faq__item.is-open .rj-faq__q::after { transform: rotate(180deg); }
.rj-faq__a { display: none; padding: 0 80px 30px 40px; font-weight: 300; font-size: 24px; line-height: 34px; }
.rj-faq__item.is-open .rj-faq__a { display: block; }
.rj-faq__a a { color: inherit; }

/* disclaimer + references */
.rj-disc { padding: 35px 0; text-align: center; font-size: 16px; line-height: 1.6; color: var(--rj-ink); }
.rj-disc .rj-wrap { max-width: 990px; }
.rj-refs { background: var(--rj-mint); padding: 40px 0 70px; }
.rj-refs .rj-wrap { max-width: 1190px; }
.rj-refs h2 { font-weight: 700; font-size: 24px; margin: 0 0 14px; color: var(--rj-ink); }
.rj-refs ol { margin: 0; padding-left: 26px; font-size: 14px; line-height: 1.6; color: var(--rj-ink); }
.rj-refs li { margin-bottom: 6px; word-break: break-word; }
.rj-refs a { color: inherit; }

/* ---------- tablet / mobile ---------- */
@media (max-width: 991.98px) {
  .rj-header { height: 77px; }
  .rj-logo { font-size: 36px; }
  .rj-nav--desktop, .rj-header .rj-cta { display: none; }
  .rj-burger { display: block; }
  .rj-hero { background: #e6f4f1; padding: 22px 0 28px; }
  .rj-hero .rj-wrap { flex-direction: column; gap: 14px; }
  .rj-hero__img, .rj-hero__txt, .rj-quality__txt { flex: none; width: 100%; }
  .rj-hero__img img { width: 100%; max-width: 360px; margin: 0 auto; display: block; }
  .rj-hero h1 { font-size: 38px; line-height: 1.32; margin-bottom: 18px; }
  .rj-hero ul { font-size: 20px; line-height: 1.5; }
  .rj-hero li::before { top: 9px; width: 13px; height: 13px; }
  .rj-hero__btns { display: flex; gap: 10px; }
  .rj-hero__btns .rj-btn { flex: 1; min-width: 0; margin: 0; font-size: 17px; padding: 10px 6px; }
  .rj-diff h2 { font-size: 36px; line-height: 1.35; }
  .rj-diff__grid { grid-template-columns: 1fr; gap: 34px; }
  .rj-diff__card p { font-size: 20px; }
  .rj-quality { padding: 0 0 40px; }
  .rj-quality .rj-wrap { flex-direction: column-reverse; gap: 14px; }
  .rj-quality__img { flex-basis: auto; width: 100%; }
  .rj-quality h2 { font-size: 34px; }
  .rj-quality ul { font-size: 20px; line-height: 1.85; }
  .rj-bar { height: 88px; }
  .rj-bar h2 { font-size: 32px; line-height: 1.2; }
  .rj-step h3 { font-size: 30px; line-height: 1.15; }
  .rj-step > .rj-wrap > p { font-size: 22px; line-height: 1.2; margin-bottom: 30px; }
  /* ingredients: two per row on mobile, like RVR-BG (col-sm-6), so the page is not one long list */
  .rj-ing { gap: 26px 14px; justify-content: center; }
  .rj-ing__item, .rj-ing--2 .rj-ing__item, .rj-ing--1 .rj-ing__item, .rj-ing--4 .rj-ing__item { width: calc(50% - 7px); }
  .rj-ing__item img { width: 112px; height: 112px; margin-bottom: 10px; }
  .rj-ing__item h4 { font-size: 17px; line-height: 1.28; margin-bottom: 8px; }
  .rj-ing__item p { font-size: 14px; line-height: 1.5; }
  .rj-testi h2 { font-size: 32px; line-height: 1.25; }
  .rj-testi__grid { grid-template-columns: 1fr; max-width: 420px; }
  .rj-bonus h2 { font-size: 26px; line-height: 1.35; }
  .rj-bonus__card { flex-direction: column; text-align: center; padding: 28px 24px; }
  .rj-excl__box h2 { font-size: 30px; }
  .rj-excl__box p { font-size: 20px; }
  .rj-faq h2 { font-size: 32px; margin-bottom: 40px; }
  .rj-faq__q { font-size: 22px; line-height: 1.3; padding: 20px 64px 12px 22px; }
  .rj-faq__q::after { right: 16px; top: 18px; width: 34px; height: 34px; }
  .rj-faq__a { font-size: 18px; line-height: 1.5; padding: 0 22px 22px; }
}

/* ==========================================================================
   Footer: the BuyGoods disclaimer script injects a flex row whose item carries
   inline `flex:1 1 500px; min-width:280px`, which forces a 20 px horizontal
   overflow at 440 px (measured: scrollWidth 460 vs clientWidth 440).
   Let the injected blocks shrink instead of pushing the page wider.
   ========================================================================== */
#disclaimer div { min-width: 0 !important; }

/* FE pricing cards (fe_buttons.php): the three cards must have the same height as in the Figma welcome frame */
.pricing_table { display: flex; align-items: stretch; }
.pricing_table > .basic_pack, .pricing_table > .silver_pack, .pricing_table > .gold_pack { display: flex; flex: 1 1 0; min-width: 0; }
.pricing_table > .basic_pack > div, .pricing_table > .silver_pack > div, .pricing_table > .gold_pack > div { display: flex; flex-direction: column; width: 100%; }
.pricing_table .basic_pack .w-100.pt-3, .pricing_table .silver_pack .w-100.pt-3, .pricing_table .gold_pack .w-100.pt-3 { flex: 1 1 auto; }
@media (max-width: 899px) {
  /* same rule as RVR-BG/reviboost: on mobile the highest-value pack comes first */
  .pricing_table { display: flex !important; flex-direction: column; gap: 20px; align-items: stretch; }
  .pricing_table > .basic_pack, .pricing_table > .silver_pack, .pricing_table > .gold_pack { display: flex; flex: none; width: 100%; margin-bottom: 0; }
  .gold_pack { order: 1; }
  .silver_pack { order: 2; }
  .basic_pack { order: 3; }
}

/* the 2-bottle art is a tight close-up (418x600, bottles fill the frame): at the same box height the
   bottles read ~30% bigger than the 3/6-bottle packs, so it is scaled down to match their bottle height */



/* badges on mobile - Figma welcome frame (440): five badges in ONE row inside the white card,
   each ~74x72 with 18px card margins, caption under them at 13px */
@media (max-width: 600px) {
  .rj-badges { padding: 22px 0; }
  .rj-badges .rj-wrap { padding: 0; }
  .rj-badges__box { margin: 0 18px; padding: 12px 10px 10px; border-radius: 16px; }
  .rj-badges__row { flex-wrap: nowrap; gap: 5px; justify-content: space-between; margin: 0 0 8px; }
  .rj-badges__row li { flex: 1 1 0; min-width: 0; }
  .rj-badges__row img { width: 100%; max-width: 74px; height: auto; }
  .rj-badges__box p { font-size: 14px; line-height: 19px; margin: 0 auto; max-width: 379px; }
}

/* the tier label must not shift the pack: all three cards use the same label spacing */
.pricing_table .w-100.pt-3 > p:first-child { margin-bottom: 0 !important; }

/* gold/silver carry a "+3 FREE EBOOKS" line that the 2-bottle card does not have: reserve the same
   26 px under the price row so the rule, total and button line up in all three cards */
.pricing_table .basic_pack .w-100.pt-3 > .d-flex { margin-bottom: 42px !important; }

/* one fixed box for the pack image in every card: same height => price rows share one visual line,
   and contain + max-width stops the six-bottle art from being clipped by the card edges */
/* the 2-bottle art is a tight close-up, so it is capped smaller inside the same box */
.pricing_table .pack-img { height: 330px; display: flex; align-items: center; justify-content: center; margin: 0 0 24px; }
.pricing_table .basic_pack .pack-img { margin-bottom: 24px; }
.pricing_table .basic_pack .pack-img img { max-height: 262px; }
