/* ============================================================
   LocalShouts — Global Footer + Region & Language modal
   Premium, modern, Stripe/Notion-grade calm.
   ============================================================ */

/* ── Footer surface ─────────────────────────────────────── */

.ls-footer {
  position: relative;
  /* extra bottom padding so the fixed .line-fab (chat button at
     bottom-right) never sits on top of the social icons row when the
     user scrolls to the very end of the page */
  padding: 72px 0 104px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f5ff 100%);
  border-top: 1px solid rgba(124,58,237,0.08);
  font-family: var(--font-sans);
  color: var(--brand-navy);
  overflow: hidden;
}

/* Soft inner glow strip just below the border */
.ls-footer-rule {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(960px, 90%);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124,58,237,0.35) 50%,
    transparent 100%);
  filter: blur(0.5px);
  pointer-events: none;
}

/* Decorative purple halo in upper-right */
.ls-footer::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(167,139,250,0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.ls-footer .container { position: relative; z-index: 1; }

/* ── Top grid ──────────────────────────────────────────── */

.ls-footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) 2.2fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 48px;
}

/* Brand column */
.ls-footer-brand { max-width: 360px; }

.ls-foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ls-foot-wordmark {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
}
.ls-foot-wordmark em {
  font-style: normal;
  color: var(--brand-purple);
}

.ls-foot-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-3);
  margin: 0 0 22px;
  text-wrap: pretty;
}

/* Region & Language button — compact, premium */
.ls-region-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(124,58,237,0.16);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset,
              0 6px 18px -10px rgba(124,58,237,0.30);
  transition: all 180ms var(--ease-out);
}
.ls-region-btn:hover {
  background: white;
  border-color: var(--brand-purple-200);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset,
              0 10px 24px -10px rgba(124,58,237,0.45),
              0 0 0 4px rgba(124,58,237,0.06);
}
.ls-region-btn:active { transform: translateY(0); }
.ls-region-globe {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: white;
  flex-shrink: 0;
}
.ls-region-flag {
  font-size: 16px;
  line-height: 1;
  filter: saturate(1.05);
}
.ls-region-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.005em;
}
.ls-region-text em {
  font-style: normal;
  font-weight: 500;
  color: var(--brand-purple-700);
}
.ls-region-sep {
  color: var(--fg-4);
  font-weight: 300;
}
.ls-region-caret {
  color: var(--fg-3);
  margin-left: 2px;
  transition: transform 180ms var(--ease-out);
}
.ls-region-btn:hover .ls-region-caret { transform: translateY(1px); color: var(--brand-purple); }

/* ── Link columns ──────────────────────────────────────── */

.ls-foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.ls-foot-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-navy);
  margin: 0 0 16px;
}
.ls-foot-col a {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-3);
  padding: 5px 0;
  transition: color 120ms var(--ease-out), transform 180ms var(--ease-out);
  position: relative;
  width: max-content;
  max-width: 100%;
}
.ls-foot-col a:hover {
  color: var(--brand-purple);
  transform: translateX(2px);
}
.ls-foot-col a:hover::before {
  opacity: 1;
  transform: translate(2px, -50%);
}
.ls-foot-col a::before {
  content: '→';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translate(-4px, -50%);
  color: var(--brand-purple);
  font-size: 12px;
  line-height: 1;
  opacity: 0;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.ls-foot-contact {
  /* `flex` (not inline-flex) so each contact link stays on its own line.
     Inline-flex made the three Contact entries flow side-by-side, so the
     "Live chat" speech-bubble icon ended up rendering right next to the
     email's ".com", and the hover-arrow ::before of one link overlapped
     the icon of the next. */
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}
/* Each contact row already has its own icon (envelope / chat / phone) —
   the hover-arrow ::before reads as a misaligned glyph next to the icon
   and adds nothing. Suppress it on Contact rows; plain text columns
   (Company / Resources / Legal) keep the slide-in arrow on hover. */
.ls-foot-contact::before { content: none !important; }
.ls-foot-contact svg {
  color: var(--brand-purple);
  opacity: 0.7;
}

/* ── SEO paragraph ─────────────────────────────────────── */

.ls-foot-seo {
  max-width: 880px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--fg-4);
  margin: 8px 0 32px;
  padding: 18px 0;
  border-top: 1px dashed rgba(124,58,237,0.12);
  border-bottom: 1px dashed rgba(124,58,237,0.12);
  text-wrap: pretty;
}

/* ── Bottom bar ────────────────────────────────────────── */

.ls-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ls-foot-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--fg-3);
  font-weight: 500;
}
.ls-foot-copy .dot { color: var(--fg-4); opacity: 0.6; }
.ls-foot-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 600;
}
.ls-foot-status-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.16);
  animation: pulse 1.8s var(--ease-out) infinite;
}

/* Social */
.ls-foot-social {
  display: inline-flex;
  gap: 8px;
}
.ls-soc {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(124,58,237,0.12);
  color: var(--fg-2);
  transition: all 180ms var(--ease-out);
  backdrop-filter: blur(6px);
}
.ls-soc:hover {
  transform: translateY(-2px);
  background: white;
  border-color: var(--brand-purple-200);
  color: var(--brand-purple);
  box-shadow: 0 8px 18px -10px rgba(124,58,237,0.50);
}

/* ============================================================
   REGION & LANGUAGE MODAL
   ============================================================ */

.rl-bg {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30, 27, 75, 0.40);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 32px 20px;
  animation: rlFade 220ms var(--ease-out);
}
@keyframes rlFade { from { opacity: 0; } to { opacity: 1; } }

.rl-modal {
  width: 100%;
  max-width: 720px;
  max-height: min(720px, calc(100vh - 64px));
  background: rgba(255, 255, 255, 0.94);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.90) 100%);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow:
    0 32px 80px -16px rgba(30, 27, 75, 0.32),
    0 8px 24px -8px rgba(124, 58, 237, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: rlRise 320ms var(--ease-out);
  transform-origin: 50% 60%;
}
@keyframes rlRise {
  from { transform: translateY(16px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Glow accent in the corners */
.rl-modal::before, .rl-modal::after {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}
.rl-modal::before {
  top: -120px; right: -100px;
  background: radial-gradient(closest-side, rgba(167,139,250,0.40), transparent 70%);
}
.rl-modal::after {
  bottom: -140px; left: -120px;
  background: radial-gradient(closest-side, rgba(236,72,153,0.20), transparent 70%);
}

.rl-grabber {
  display: none;
}

/* ── Sticky header ─────────────────────────────────────── */

.rl-head {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 22px 24px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124,58,237,0.08);
}
.rl-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.rl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--brand-purple-50);
  color: var(--brand-purple-700);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.rl-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  margin: 0;
  text-wrap: balance;
}
.rl-close {
  width: 36px; height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(245, 241, 255, 0.6);
  color: var(--fg-3);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 120ms var(--ease-out);
  flex-shrink: 0;
}
.rl-close:hover {
  background: var(--brand-purple-100);
  color: var(--brand-purple);
}

.rl-search {
  position: relative;
  display: flex;
  align-items: center;
}
.rl-search-ico {
  position: absolute;
  left: 14px;
  color: var(--fg-3);
  pointer-events: none;
}
.rl-search input {
  width: 100%;
  padding: 12px 80px 12px 40px;
  border-radius: 12px;
  border: 1px solid rgba(124,58,237,0.18);
  background: rgba(255,255,255,0.85);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--brand-navy);
  outline: none;
  transition: all 180ms var(--ease-out);
}
.rl-search input::placeholder { color: var(--fg-4); font-weight: 400; }
.rl-search input:focus {
  background: white;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.10);
}
.rl-search-clear {
  position: absolute;
  right: 50px;
  width: 22px; height: 22px;
  border: 0;
  background: transparent;
  color: var(--fg-3);
  display: grid; place-items: center;
  border-radius: 999px;
  cursor: pointer;
  transition: all 120ms var(--ease-out);
}
.rl-search-clear:hover { background: var(--brand-purple-50); color: var(--brand-purple); }
.rl-kbd {
  position: absolute;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 7px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--fg-3);
  font-weight: 600;
  letter-spacing: 0.03em;
  pointer-events: none;
}

/* ── Body / scroll ─────────────────────────────────────── */

.rl-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 8px;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}
/* Custom scrollbar */
.rl-body::-webkit-scrollbar { width: 10px; }
.rl-body::-webkit-scrollbar-track { background: transparent; }
.rl-body::-webkit-scrollbar-thumb {
  background: rgba(124,58,237,0.18);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.rl-body::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.30); background-clip: padding-box; border: 3px solid transparent; }

.rl-section { padding: 12px 0 6px; }
.rl-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}
.rl-section-head h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin: 0;
}
.rl-section-sub {
  font-size: 11.5px;
  color: var(--fg-4);
  font-weight: 500;
}
.rl-section-action {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-purple);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rl-section-action:hover { text-decoration: underline; }

/* Popular regions grid */
.rl-pop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.rl-pop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border: 1px solid rgba(124,58,237,0.10);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 180ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.rl-pop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), transparent 50%);
  opacity: 0;
  transition: opacity 180ms;
}
.rl-pop:hover {
  border-color: var(--brand-purple-200);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -14px rgba(124, 58, 237, 0.45),
              0 0 0 4px rgba(124,58,237,0.04);
}
.rl-pop:hover::before { opacity: 1; }
.rl-pop.on {
  border-color: var(--brand-purple);
  background: linear-gradient(135deg, var(--brand-purple-50) 0%, white 70%);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.rl-pop-flag {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  filter: saturate(1.05);
}
.rl-pop-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.rl-pop-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rl-pop-meta em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--fg-3);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rl-pop-check {
  margin-left: auto;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--brand-purple);
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* Recents — horizontal scroll row */
.rl-recent-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -2px;
}
.rl-recent-row::-webkit-scrollbar { height: 4px; }
.rl-recent-row::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.18); border-radius: 999px; }
.rl-recent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  background: var(--brand-purple-50);
  border: 1px solid rgba(124,58,237,0.16);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 180ms var(--ease-out);
  flex-shrink: 0;
}
.rl-recent:hover {
  background: white;
  border-color: var(--brand-purple);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(124,58,237,0.45);
}
.rl-recent-flag { font-size: 16px; line-height: 1; }
.rl-recent-meta { display: inline-flex; align-items: baseline; gap: 6px; }
.rl-recent-meta strong { font-size: 12.5px; font-weight: 700; color: var(--brand-navy); }
.rl-recent-meta em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--fg-3); }
.rl-recent-meta em::before { content: '·'; margin-right: 6px; color: var(--fg-4); }

/* ── All-regions list ──────────────────────────────────── */

.rl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rl-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 180ms var(--ease-out);
}
.rl-row:hover {
  background: rgba(245, 241, 255, 0.6);
  border-color: rgba(124,58,237,0.10);
  transform: translateX(2px);
}
.rl-row.on {
  background: linear-gradient(90deg, var(--brand-purple-50), transparent);
  border-color: rgba(124,58,237,0.18);
}
.rl-row-flag {
  font-size: 22px;
  line-height: 1;
  text-align: center;
  filter: saturate(1.05);
}
.rl-row-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rl-row-meta strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
  letter-spacing: -0.005em;
}
.rl-row-meta span {
  font-size: 11.5px;
  color: var(--fg-4);
  font-weight: 500;
}
.rl-row-langs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rl-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: white;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
  transition: all 150ms var(--ease-out);
  white-space: nowrap;
}
.rl-lang:hover {
  background: var(--brand-purple-50);
  border-color: var(--brand-purple-200);
  color: var(--brand-purple-700);
  transform: translateY(-1px);
}
.rl-lang.on {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: white;
  box-shadow: 0 4px 12px -4px rgba(124, 58, 237, 0.55);
}
.rl-lang.on svg { color: white; }

/* Empty state */
.rl-empty {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border-radius: 14px;
  background: rgba(245, 241, 255, 0.5);
  border: 1px dashed rgba(124,58,237,0.20);
  color: var(--fg-2);
}
.rl-empty svg { color: var(--brand-purple); flex-shrink: 0; }
.rl-empty strong { display: block; font-size: 13.5px; color: var(--brand-navy); margin-bottom: 2px; }
.rl-empty span { font-size: 12.5px; color: var(--fg-3); }

/* ── Footer of modal ───────────────────────────────────── */

.rl-foot {
  position: sticky;
  bottom: 0;
  padding: 12px 24px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.94) 35%);
  border-top: 1px solid rgba(124,58,237,0.06);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.rl-foot-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--fg-3);
  font-weight: 500;
}
.rl-foot-hint svg { color: var(--brand-purple); flex-shrink: 0; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
  .ls-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ls-foot-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .rl-pop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* On mobile the FAB shifts to bottom: 92px (above the sticky mobile-cta),
     so the social row needs ~120px clearance below it instead of 104. */
  .ls-footer { padding: 56px 0 124px; }
  .ls-footer-grid { gap: 32px; padding-bottom: 32px; }
  .ls-foot-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ls-foot-copy { font-size: 12px; }

  /* Region button — make wrap nicely */
  .ls-region-btn { font-size: 13px; padding: 9px 12px 9px 10px; }
  .ls-region-text { max-width: 200px; overflow: hidden; }

  /* Bottom-sheet modal */
  .rl-bg {
    place-items: end stretch;
    padding: 0;
  }
  .rl-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    animation: rlSheet 360ms var(--ease-out);
  }
  @keyframes rlSheet {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .rl-grabber {
    display: block;
    width: 44px; height: 5px;
    border-radius: 999px;
    background: rgba(30,27,75,0.20);
    margin: 10px auto 0;
    flex-shrink: 0;
  }
  .rl-head { padding-top: 14px; }
  .rl-pop-grid { grid-template-columns: 1fr 1fr; }

  .rl-row { grid-template-columns: 24px 1fr; row-gap: 8px; }
  .rl-row-langs { grid-column: 1 / -1; justify-content: flex-start; }

  .rl-kbd { display: none; }
  .rl-search input { padding-right: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .rl-bg, .rl-modal, .ls-region-btn, .rl-pop, .rl-row, .rl-lang, .ls-soc {
    animation: none !important;
    transition: none !important;
  }
}
