/* Site footer (layouts/store/partials/site-footer.blade.php). RidenRoll palette, navy neutrals. */
.rr-f {
  --f-primary: #0074D9;
  --f-deep: #0b4a8f;
  --f-accent: #FFD400;
  --f-ink: #0b1f3a;
  --f-body: #33465d;
  --f-muted: #5b6c81;
  --f-line: #e1e7ef;
  --f-bg: #f5f8fb;
  --f-card: #fff;
  --f-ease: cubic-bezier(.2, .8, .2, 1);
  position: relative;
  margin-top: 40px;
  border-top: 1px solid var(--f-line);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(0, 116, 217, .06), rgba(0, 116, 217, 0) 60%),
    var(--f-bg);
  color: var(--f-body);
  font-size: 14.5px;
  line-height: 1.5;
}
.rr-f *, .rr-f *::before, .rr-f *::after { box-sizing: border-box; }
.rr-f .rr-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rr-f ul { margin: 0; padding: 0; list-style: none; }
.rr-f li { margin: 0; padding: 0; }
.rr-f p { margin: 0; line-height: 1.5; letter-spacing: 0; }
.rr-f a { text-decoration: none; }
.rr-f svg { flex: 0 0 auto; }

/* Brand accent line across the top */
.rr-f::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: min(220px, 30%);
  height: 3px;
  background: linear-gradient(90deg, var(--f-primary), var(--f-accent));
  border-radius: 0 3px 3px 0;
}

/* ---------- Grid ---------- */
.rr-f__grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) repeat(var(--groups, 2), minmax(140px, 1fr)) minmax(270px, 1.3fr);
  gap: 32px 28px;
  padding: 48px 0 40px;
}

/* ---------- Brand ---------- */
.rr-f__logo { display: inline-flex; border-radius: 8px; }
.rr-f__logo img { display: block; width: 160px; height: auto; }
.rr-f__logo:focus-visible { outline: 2px solid var(--f-primary); outline-offset: 4px; }
.rr-f__pitch { max-width: 280px; margin-top: 12px !important; color: var(--f-muted); font-size: 14px; }

.rr-f__contact { display: grid; gap: 2px; margin-top: 18px !important; }
.rr-f__contact a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px 8px 0;
  border-radius: 10px;
  color: var(--f-body);
  font-weight: 600;
  transition: color .15s ease;
}
.rr-f__contact a span { overflow-wrap: anywhere; }
.rr-f__contact svg {
  width: 30px; height: 30px; padding: 7px; margin-top: -4px;
  border-radius: 9px; background: var(--f-card); box-shadow: 0 0 0 1px var(--f-line);
  fill: none; stroke: var(--f-primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: background-color .15s ease, stroke .15s ease;
}
.rr-f__contact a:hover { color: var(--f-ink); }
.rr-f__contact a:hover svg { background: var(--f-primary); stroke: #fff; }
.rr-f__contact a:focus-visible { outline: 2px solid var(--f-primary); outline-offset: 2px; }

.rr-f__social { margin-top: 18px; }
.rr-f__social-title { margin-bottom: 10px !important; color: var(--f-ink); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rr-f__social ul { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-f__social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--f-card); box-shadow: 0 0 0 1px var(--f-line);
  color: var(--f-ink); font-weight: 800;
  transition: background-color .15s ease, color .15s ease, transform .2s var(--f-ease), box-shadow .2s ease;
}
.rr-f__social svg { width: 18px; height: 18px; fill: currentColor; }
.rr-f__social a:hover { background: var(--f-ink); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgba(11, 31, 58, .7); }
.rr-f__social a:focus-visible { outline: 2px solid var(--f-primary); outline-offset: 2px; }

/* ---------- Link groups ---------- */
.rr-f__group { min-width: 0; }
.rr-f__group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; list-style: none; cursor: default; }
.rr-f__group-head::-webkit-details-marker { display: none; }
.rr-f__group-head::marker { content: ''; }
.rr-f .rr-f__group-title { margin: 0; color: var(--f-ink); font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.rr-f__chev { display: none; width: 18px; height: 18px; fill: none; stroke: var(--f-muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--f-ease); }
.rr-f__links { display: grid; gap: 2px; }
.rr-f__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
  color: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: color .15s ease, transform .2s var(--f-ease);
}
.rr-f__links a::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--f-primary);
  opacity: 0;
  transform: translate(-4px, -50%);
  transition: opacity .15s ease, transform .2s var(--f-ease);
}
.rr-f__links a:hover { color: var(--f-primary); transform: translateX(4px); }
.rr-f__links a:hover::before { opacity: 1; transform: translate(0, -50%); }
.rr-f__links a:focus-visible { outline: 2px solid var(--f-primary); outline-offset: 2px; border-radius: 4px; }
.rr-f__links a[aria-current="page"] { color: var(--f-ink); font-weight: 800; }
.rr-f__link-text { display: grid; gap: 1px; }
.rr-f__link-text small { color: var(--f-muted); font-size: 12px; font-weight: 500; line-height: 1.3; }
.rr-f__links a:hover .rr-f__link-text small { color: var(--f-muted); }

/* ---------- Apps column (partial app-download) ---------- */
.rr-f .rr-apps__title { margin: 0 0 12px !important; color: var(--f-ink); font-size: 15px; font-weight: 800; line-height: 1.3; }
.rr-f .rr-apps__card { max-width: none; }

/* ---------- Bottom bar ---------- */
.rr-f__bar { background: var(--f-ink); color: rgba(255, 255, 255, .78); }
.rr-f__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
.rr-f__copy { font-size: 13px; }
.rr-f__legal { margin-left: auto; }
.rr-f__legal ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.rr-f__legal li { display: inline-flex; align-items: center; }
.rr-f__legal li + li::before { content: ''; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.rr-f__legal a { display: inline-flex; align-items: center; min-height: 32px; color: rgba(255, 255, 255, .86); font-size: 13px; font-weight: 600; }
.rr-f__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rr-f__legal a:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 2px; border-radius: 4px; }
.rr-f__legal a[aria-current="page"] { color: var(--f-accent); }
.rr-f__top {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: transparent;
  color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.rr-f__top svg { width: 16px; height: 16px; fill: none; stroke: var(--f-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--f-ease); }
.rr-f__top:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.rr-f__top:hover svg { transform: translateY(-2px); }
.rr-f__top:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 2px; }

/* ---------- Laptop / tablet: brand + apps on top, link groups below ---------- */
@media (max-width: 1199px) {
  .rr-f__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 24px; padding-top: 40px; }
  .rr-f__brand { grid-column: span 3; }
  .rr-f__apps { grid-column: span 3; grid-row: 1; grid-column-end: -1; }
  .rr-f__group { grid-column: span 2; }
  .rr-f__grid[data-groups="2"] .rr-f__group { grid-column: span 3; }
  .rr-f__grid[data-groups="1"] .rr-f__group { grid-column: 1 / -1; }
}

/* ---------- Phones: tap-to-open sections ---------- */
@media (max-width: 767px) {
  .rr-f { margin-top: 24px; }
  .rr-f__grid { grid-template-columns: 1fr; gap: 0; padding: 32px 0 24px; }
  .rr-f__brand, .rr-f__apps, .rr-f__group { grid-column: auto; grid-row: auto; }
  .rr-f__brand { padding-bottom: 20px; }
  .rr-f__group { border-top: 1px solid var(--f-line); }
  .rr-f__group:last-of-type { border-bottom: 1px solid var(--f-line); }
  .rr-f__group-head { min-height: 52px; margin: 0; cursor: pointer; }
  .rr-f__group-head:focus-visible { outline: 2px solid var(--f-primary); outline-offset: -2px; border-radius: 6px; }
  .rr-f__chev { display: block; }
  .rr-f__group[open] .rr-f__chev { transform: rotate(180deg); }
  .rr-f__links { padding: 0 0 14px; }
  .rr-f__links a { min-height: 44px; font-size: 15px; }
  .rr-f__links a:hover { transform: none; }
  .rr-f__links a::before { display: none; }
  .rr-f__apps { padding-top: 24px; }
  .rr-f__bar-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .rr-f__legal { order: -1; margin-left: 0; }
  .rr-f__legal a { min-height: 40px; font-size: 14px; }
  .rr-f__top { order: 2; }
}

/* RTL */
.rtl .rr-f::before, [dir="rtl"] .rr-f::before { left: auto; right: 0; border-radius: 3px 0 0 3px; }
.rtl .rr-f__links a::before { left: auto; right: -12px; }
.rtl .rr-f__links a:hover { transform: translateX(-4px); }
.rtl .rr-f__contact a { padding: 8px 0 8px 10px; }
.rtl .rr-f__legal { margin-left: 0; margin-right: auto; }

/* Dark theme */
.dark .rr-f { --f-ink: #eef2f8; --f-body: #cfd8e3; --f-muted: #9aa8ba; --f-line: #22324a; --f-bg: #0b1626; --f-card: #12223a; }
.dark .rr-f__bar { background: #06101d; }

@media (forced-colors: active) {
  .rr-f__social a, .rr-f__contact svg { border: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  .rr-f *, .rr-f *::before, .rr-f *::after { transition: none !important; animation: none !important; }
}
@media print {
  .rr-f__apps, .rr-f__social, .rr-f__top { display: none !important; }
}
