/*
 * Rayehe Kimia 1.2.0 — About / Contact / customer-service pages and footer.
 * One type scale for these pages (mobile: 30 / 21 / 16 / 15 / 14.5 / 12 px; desktop keeps its
 * larger titles), full-width hero image on mobile, larger phone numbers, entrance motion.
 */

/* ---------------------------------------------------------- hero entrance */
@keyframes rk-page-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rk-page-image { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.rk-wp .rk-info-hero .rk-info-hero__copy > * { animation: rk-page-rise 460ms cubic-bezier(.23, 1, .32, 1) backwards; }
.rk-wp .rk-info-hero .rk-info-hero__copy > *:nth-child(2) { animation-delay: 60ms; }
.rk-wp .rk-info-hero .rk-info-hero__copy > *:nth-child(3) { animation-delay: 120ms; }
.rk-wp .rk-info-hero .rk-info-hero__copy > *:nth-child(n+4) { animation-delay: 180ms; }
.rk-wp .rk-info-hero .rk-info-hero__image { animation: rk-page-image 560ms cubic-bezier(.23, 1, .32, 1) 120ms backwards; }
@media (prefers-reduced-motion: reduce) {
  .rk-wp .rk-info-hero .rk-info-hero__copy > *, .rk-wp .rk-info-hero .rk-info-hero__image { animation: none; }
}

/* ------------------------------------------------------------- phones */
.rk-wp bdi.rk-ph { display: inline-block; font: inherit; letter-spacing: inherit; color: inherit; }
.rk-wp bdi.rk-ph + bdi.rk-ph { margin-inline-start: .34em; }
/* Numbers stay legible: medium-bold weight (the 900 cut fills the counters of ۰ ۲ ۳ ۵ at large sizes),
   a little tracking and equal-width digits. */
body.rk-wp .rk-contact .rk-contact-phone-card .rk-contact-call b { font-size: 26px; font-weight: 600; letter-spacing: .04em; line-height: 1.5; font-variant-numeric: tabular-nums; }
body.rk-wp .site-footer .rk-footer-support .rk-footer-phone-pair a { font-size: 20px; font-weight: 550; letter-spacing: .04em; padding-inline: 14px; font-variant-numeric: tabular-nums; }
body.rk-wp #footer .rk-footer-support .rk-footer-phone-pair { width: auto; grid-template-columns: repeat(2, max-content); }

/* ------------------------------------------------------- mobile scale */
@media (max-width: 640px) {
  body.rk-wp :is(.rk-about, .rk-contact) .rk-info-hero__copy h1 { font-size: 30px; line-height: 1.45; font-weight: 850; }
  body.rk-wp :is(.rk-about, .rk-contact) .rk-info-hero .rk-info-hero__copy p,
  body.rk-wp .rk-about .rk-editorial-split .rk-lead { font-size: 15px; line-height: 2; }
  body.rk-wp :is(.rk-about, .rk-contact) .eyebrow { font-size: 12px; }
  body.rk-wp :is(.rk-about, .rk-contact) main .rk-h2,
  body.rk-wp :is(.rk-about, .rk-contact) .rk-h2 { font-size: 21px; line-height: 1.55; font-weight: 850; }
  body.rk-wp :is(.rk-about, .rk-contact) .rk-h3 { font-size: 16px; line-height: 1.7; font-weight: 800; }
  body.rk-wp :is(.rk-about, .rk-contact) :is(.rk-prose p, .rk-contact-intro, .rk-contact-address p, .rk-contact-form-wrap > p, .rk-about-cards p) { font-size: 14.5px; line-height: 2; }

  /* Hero image: full content width, calm landscape crop. */
  body.rk-wp :is(.rk-about, .rk-contact) .rk-info-hero .rk-info-hero__image {
    width: 100%; max-width: none; height: auto; margin: 18px 0 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 22px 0;
  }
  body.rk-wp :is(.rk-about, .rk-contact) .rk-info-hero .rk-info-hero__image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: inherit; }

  body.rk-wp .rk-contact .rk-contact-phone-card .rk-contact-call b { font-size: 22px; }
  body.rk-wp .rk-contact .rk-contact-methods { gap: 10px; }

  /* Footer: contact details sit in the «ارتباط با ما» tab. */
  body.rk-wp .site-footer .rk-footer-support { display: none; }
}

/* footer contact tab (mobile accordion) */
.rk-footer-contact-tab { display: grid; gap: 8px; margin: 4px 0 12px; }
.rk-footer-contact-tab__phone {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 14px;
  border: 1px solid rgba(231, 242, 234, .16); border-radius: 14px 0; background: rgba(255, 255, 255, .06);
  color: #fff; text-decoration: none;
}
.rk-footer-contact-tab__phone > span { color: #c4dace; font-size: 12.5px; font-weight: 600; }
.rk-footer-contact-tab__phone > bdi { font-size: 20px; font-weight: 550; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.rk-footer-contact-tab__phone:active { transform: scale(.98); }
.rk-footer-contact-tab__hours, .rk-footer-contact-tab__address {
  display: flex; align-items: flex-start; gap: 8px; margin: 0; color: #d8e8de; font-size: 13.5px; line-height: 1.9;
}
.rk-footer-contact-tab__hours svg, .rk-footer-contact-tab__address svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; color: #f2d76b; }
.rk-footer-contact-tab__hours b { color: #fff; font-weight: 650; letter-spacing: .02em; }
.rk-footer-contact-tab__address span { text-align: start; text-justify: none; word-spacing: normal; }
@media (min-width: 901px) { .rk-footer-contact-tab { display: none; } }

/* ------------------------------------------------------------------
 * 1.2.3 — footer on phones (≤760px; wider screens use the desktop grid):
 * logo + short text (centred, justified) → link groups → trust seal (centred)
 * → purchase benefits → copyright.
 * ------------------------------------------------------------------ */
.rk-footer-benefits { display: none; }
@media (max-width: 760px) {
  body.rk-wp #footer > .rk-footer-shell { display: flex; flex-direction: column; }
  body.rk-wp #footer .rk-footer-identity { display: contents; }
  body.rk-wp #footer .rk-footer-support { order: 0; }
  body.rk-wp #footer .rk-footer-brand { order: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 22px; text-align: center; }
  body.rk-wp #footer .rk-footer-brand .rk-footer-logo-link { display: inline-flex; justify-content: center; }
  body.rk-wp #footer .rk-footer-brand .footer-logo { width: 150px; height: auto; margin: 0 auto; }
  body.rk-wp #footer .rk-footer-brand p { max-width: 34em; margin: 0 auto; text-align: justify; text-align-last: center; line-height: 2; }
  body.rk-wp #footer .rk-footer-navigation { order: 2; }
  body.rk-wp #footer .rk-footer-trust { order: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 22px auto 0; text-align: center; }
  body.rk-wp #footer .rk-footer-trust .rk-footer-enamad-slot { display: flex; justify-content: center; }
  body.rk-wp #footer .rk-footer-benefits {
    order: 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; padding: 18px 0 0; list-style: none;
    border-top: 1px solid var(--rk-footer-divider, rgba(231, 242, 234, .14));
  }
  body.rk-wp #footer .rk-footer-benefits li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid rgba(231, 242, 234, .12); border-radius: 14px 0; background: rgba(255, 255, 255, .04); }
  body.rk-wp #footer .rk-footer-benefits__icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px 0; background: rgba(242, 215, 107, .14); color: #f2d76b; }
  body.rk-wp #footer .rk-footer-benefits__icon svg { width: 18px; height: 18px; }
  body.rk-wp #footer .rk-footer-benefits strong { display: block; color: #fff; font-size: 13px; font-weight: 800; line-height: 1.6; }
  body.rk-wp #footer .rk-footer-benefits small { display: block; color: #b6d0c2; font-size: 11.5px; line-height: 1.6; }
  body.rk-wp #footer .footer-bottom { order: 5; }
}

/* 1.2.9: purchase benefits in the desktop footer as well (a row above the copyright), so they
   no longer need their own section on the home page. */
@media (min-width: 761px) {
  body.rk-wp #footer > .rk-footer-shell {
    grid-template-areas:
      "support support support"
      "brand links seal"
      "benefits benefits benefits"
      "copyright copyright copyright";
  }
  body.rk-wp #footer .rk-footer-benefits {
    grid-area: benefits; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
    margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--rk-footer-divider, rgba(231, 242, 234, .14));
  }
  body.rk-wp #footer .rk-footer-benefits li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid rgba(231, 242, 234, .12); border-radius: 14px 0; background: rgba(255, 255, 255, .04); }
  body.rk-wp #footer .rk-footer-benefits__icon { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px 0; background: rgba(242, 215, 107, .14); color: #f2d76b; }
  body.rk-wp #footer .rk-footer-benefits__icon svg { width: 19px; height: 19px; }
  body.rk-wp #footer .rk-footer-benefits strong { display: block; color: #fff; font-size: 13.5px; font-weight: 800; line-height: 1.6; }
  body.rk-wp #footer .rk-footer-benefits small { display: block; color: #b6d0c2; font-size: 12px; line-height: 1.6; }
}
@media (min-width: 761px) and (max-width: 1024px) {
  body.rk-wp #footer .rk-footer-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
