/* ==========================================================================
   Riksa Uji Hub Page Styles (/riksa-uji/) — Shining & Frosted Glass Edition
   100% Semantic Tokens • Zero Raw Colors • Standard Breakpoints (640/768/1024)
   ========================================================================== */

.ru-filter-section {
  background:
    radial-gradient(circle at 80% 50%, color-mix(in srgb, var(--emerald-600) 28%, transparent), transparent 50%),
    linear-gradient(90deg, var(--green-950) 0%, var(--slate-900) 55%, var(--green-900) 100%);
  padding: 18px 0;
  border-bottom: 3px solid var(--orange-400);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--on-brand) 25%, transparent), var(--shadow-md);
  scroll-margin-top: 136px;
}

.ru-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.ru-filter-chip {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, color-mix(in srgb, var(--on-brand) 18%, transparent), color-mix(in srgb, var(--on-brand) 8%, transparent));
  color: var(--on-brand);
  border: 1.5px solid color-mix(in srgb, var(--on-brand) 32%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--on-brand) 38%, transparent);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}

.ru-filter-chip:hover {
  background: color-mix(in srgb, var(--on-brand) 26%, transparent);
  border-color: var(--orange-300);
  transform: var(--lift-sm);
}

.ru-filter-chip.active {
  background: linear-gradient(135deg, var(--orange-300) 0%, var(--orange-400) 100%);
  color: var(--slate-950);
  border-color: var(--pure-white);
  box-shadow: inset 0 1.5px 0 var(--pure-white), 0 6px 16px -4px color-mix(in srgb, var(--orange-500) 55%, transparent);
}

.ru-filter-chip:focus-visible {
  outline: 3px solid var(--orange-300);
  outline-offset: 2px;
}

.ru-catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.ru-catalog-count {
  margin: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, color-mix(in srgb, var(--pure-white) 85%, var(--emerald-100)), var(--emerald-100));
  border: 1.5px solid var(--pure-white);
  box-shadow: inset 0 1.5px 0 var(--pure-white), var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
  color: var(--success-dark);
}

.ru-catalog-count strong {
  color: var(--green-950);
}

.ru-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  margin-top: 32px;
}

.ru-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--pure-white);
  border-top: 6px solid var(--info);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pure-white) 85%, transparent) 0%, color-mix(in srgb, var(--blue-50) 76%, var(--pure-white)) 100%);
  box-shadow: inset 0 2px 1px var(--pure-white), var(--shadow-glass-hover);
  backdrop-filter: blur(18px) saturate(175%);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
  transition: transform var(--dur-hover) var(--ease-standard), box-shadow var(--dur-hover) var(--ease-standard), border-color var(--dur-hover) var(--ease-standard);
}

.ru-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, color-mix(in srgb, var(--pure-white) 68%, transparent) 0%, color-mix(in srgb, var(--pure-white) 16%, transparent) 38%, transparent 65%);
  pointer-events: none;
}

.ru-card:nth-child(4n+2) {
  border-top-color: var(--success);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pure-white) 85%, transparent) 0%, color-mix(in srgb, var(--emerald-50) 78%, var(--pure-white)) 100%);
}

.ru-card:nth-child(4n+3) {
  border-top-color: var(--warning);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pure-white) 85%, transparent) 0%, color-mix(in srgb, var(--amber-50) 80%, var(--pure-white)) 100%);
}

.ru-card:nth-child(4n+4) {
  border-top-color: var(--lead-action);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pure-white) 85%, transparent) 0%, color-mix(in srgb, var(--red-50) 76%, var(--pure-white)) 100%);
}

.ru-card:hover {
  transform: var(--lift-md);
  box-shadow: inset 0 2px 2px var(--pure-white), var(--shadow-lg);
  border-color: var(--orange-400);
}

.ru-card-top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.ru-card-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--pure-white) 40%, transparent);
  color: var(--on-brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ru-card:nth-child(4n+2) .ru-card-tag {
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--green-800) 100%);
}

.ru-card:nth-child(4n+3) .ru-card-tag {
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-800) 100%);
}

.ru-card:nth-child(4n+4) .ru-card-tag {
  background: linear-gradient(135deg, var(--lead-action) 0%, var(--red-800) 100%);
}

.ru-card-price {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--orange-300) 0%, var(--orange-400) 100%);
  border: 1px solid var(--pure-white);
  box-shadow: inset 0 1px 0 var(--pure-white);
  color: var(--slate-950);
  font-size: 12px;
  font-weight: 800;
}

.ru-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.ru-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ru-card h3 a:hover {
  color: var(--lead-action);
}

.ru-card-desc {
  position: relative;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.ru-card-scope {
  position: relative;
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  flex-grow: 1;
}

.ru-card-scope strong {
  color: var(--text);
}

.ru-card-meta {
  position: relative;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--pure-white) 86%, transparent);
  border: 1px solid var(--pure-white);
  border-left: 4px solid var(--brand-dark);
  box-shadow: inset 0 1px 0 var(--pure-white), var(--shadow-sm);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.ru-card-meta div + div {
  margin-top: 6px;
}

.ru-card-meta strong {
  color: var(--text);
}

.ru-card-actions {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
}

.ru-card-actions .rux-btn-wa-sq {
  padding: 0;
  min-width: 48px;
}

/* Hub RFQ Section Copy Column */
.ru-rfq-points {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.ru-rfq-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--pure-white) 86%, transparent), color-mix(in srgb, var(--emerald-50) 75%, var(--pure-white)));
  border: 1.5px solid var(--pure-white);
  border-left: 5px solid var(--success);
  box-shadow: inset 0 1.5px 0 var(--pure-white), var(--shadow-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.ru-rfq-points svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--success);
}

.ru-rfq-direct-box {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--orange-400);
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--emerald-600) 35%, transparent), transparent 55%),
    linear-gradient(135deg, var(--green-950) 0%, var(--slate-900) 55%, var(--green-800) 100%);
  color: var(--on-brand);
  box-shadow: inset 0 1.5px 0 color-mix(in srgb, var(--on-brand) 35%, transparent), var(--shadow-lg);
}

.ru-rfq-direct-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16.5px;
  color: var(--orange-300);
}

.ru-rfq-direct-box p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--on-brand) 90%, transparent);
}

/* 4-Step Workflow — Shining Frosted Glass Step Cards */
.ru-workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ru-step-card {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--pure-white);
  border-top: 6px solid var(--info);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pure-white) 86%, transparent) 0%, color-mix(in srgb, var(--blue-200) 52%, var(--pure-white)) 100%);
  box-shadow: inset 0 2px 1px var(--pure-white), var(--shadow-glass-hover);
  backdrop-filter: blur(16px) saturate(175%);
  -webkit-backdrop-filter: blur(16px) saturate(175%);
  transition: transform var(--dur-hover) var(--ease-standard), box-shadow var(--dur-hover) var(--ease-standard);
}

.ru-step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, color-mix(in srgb, var(--pure-white) 68%, transparent) 0%, color-mix(in srgb, var(--pure-white) 16%, transparent) 40%, transparent 65%);
  pointer-events: none;
}

.ru-step-card:hover {
  transform: var(--lift-sm);
  box-shadow: inset 0 2px 2px var(--pure-white), var(--shadow-lg);
}

.ru-step-card:nth-child(2) {
  border-top-color: var(--warning);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pure-white) 86%, transparent) 0%, color-mix(in srgb, var(--amber-200) 58%, var(--pure-white)) 100%);
}

.ru-step-card:nth-child(3) {
  border-top-color: var(--lead-action);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pure-white) 86%, transparent) 0%, color-mix(in srgb, var(--red-200) 52%, var(--pure-white)) 100%);
}

.ru-step-card:nth-child(4) {
  border-top-color: var(--success);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pure-white) 86%, transparent) 0%, color-mix(in srgb, var(--emerald-200) 58%, var(--pure-white)) 100%);
}

.ru-step-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
  border: 1.5px solid var(--pure-white);
  box-shadow: inset 0 1.5px 0 color-mix(in srgb, var(--pure-white) 45%, transparent), var(--shadow-sm);
  color: var(--on-brand);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}

.ru-step-card:nth-child(2) .ru-step-num {
  background: linear-gradient(135deg, var(--orange-300) 0%, var(--orange-500) 100%);
  color: var(--slate-950);
}

.ru-step-card:nth-child(3) .ru-step-num {
  background: linear-gradient(135deg, var(--lead-action) 0%, var(--red-800) 100%);
  color: var(--on-cta);
}

.ru-step-card:nth-child(4) .ru-step-num {
  background: linear-gradient(135deg, var(--emerald-600) 0%, var(--green-800) 100%);
  color: var(--on-brand);
}

.ru-step-card h3 {
  position: relative;
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 17.5px;
  font-weight: 800;
  color: var(--text);
}

.ru-step-card p {
  position: relative;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Regional Coverage Cards — Dark Frosted Glass */
.ru-region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ru-region-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--on-brand) 16%, transparent) 0%, color-mix(in srgb, var(--on-brand) 6%, transparent) 100%);
  border: 1px solid color-mix(in srgb, var(--on-brand) 30%, transparent);
  border-top: 5px solid var(--orange-400);
  box-shadow: inset 0 1.5px 0 color-mix(in srgb, var(--on-brand) 42%, transparent), var(--shadow-dark-glass);
  backdrop-filter: blur(18px) saturate(175%);
  -webkit-backdrop-filter: blur(18px) saturate(175%);
}

.ru-region-card:nth-child(2) {
  border-top-color: var(--green-400);
}

.ru-region-card:nth-child(3) {
  border-top-color: var(--blue-200);
}

.ru-region-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--orange-300) 0%, var(--orange-400) 100%);
  border: 1px solid var(--pure-white);
  color: var(--slate-950);
  font-size: 11.5px;
  font-weight: 800;
}

.ru-region-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--on-brand);
}

.ru-region-card p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: color-mix(in srgb, var(--on-brand) 90%, transparent);
  flex-grow: 1;
}

.ru-region-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--orange-300);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ru-region-link:hover {
  color: var(--on-brand);
}

/* Compliance Ecosystem Interlink Grid — Frosted Glass Cards */
.ru-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ru-eco-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--pure-white);
  border-top: 6px solid var(--info);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pure-white) 86%, transparent) 0%, color-mix(in srgb, var(--blue-50) 76%, var(--pure-white)) 100%);
  box-shadow: inset 0 2px 1px var(--pure-white), var(--shadow-glass-hover);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
}

.ru-eco-card:nth-child(2) {
  border-top-color: var(--lead-action);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pure-white) 86%, transparent) 0%, color-mix(in srgb, var(--amber-50) 78%, var(--pure-white)) 100%);
}

.ru-eco-card:nth-child(3) {
  border-top-color: var(--success);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pure-white) 86%, transparent) 0%, color-mix(in srgb, var(--emerald-50) 78%, var(--pure-white)) 100%);
}

.ru-eco-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.ru-eco-card p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  flex-grow: 1;
}

.ru-eco-card a {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--green-950) 0%, var(--slate-800) 100%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--pure-white) 35%, transparent);
  color: var(--on-brand);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
}

.ru-eco-card a:hover {
  background: linear-gradient(135deg, var(--lead-action) 0%, var(--orange-700) 100%);
}

@media (max-width: 1024px) {
  .ru-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ru-region-grid,
  .ru-eco-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ru-workflow-grid {
    grid-template-columns: 1fr;
  }
}
