/* Hebat303 — rapidsuppliesqatar.com | Varian A + Liquid Design */

:root {
  --bg-deep: #0a0a12;
  --bg-mid: #14141f;
  --bg-soft: #1c1c2a;
  --gold: #ffd700;
  --gold-light: #ffe566;
  --yellow: #ffcc00;
  --orange: #ff8c00;
  --amber: #ffb300;
  --text: #f8f4e8;
  --muted: #9a9080;
  --line: rgba(255, 215, 0, 0.22);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.35rem;
  --radius-xl: 1.75rem;
  --flow-grad: linear-gradient(135deg, var(--gold) 0%, var(--orange) 55%, var(--yellow) 100%);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(0.94rem, 2.2vw, 1.02rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(255, 204, 0, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(255, 140, 0, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255, 215, 0, 0.06), transparent 60%);
  min-height: 100vh;
  padding-bottom: 2rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--yellow); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.65rem; }
h1 { font-size: clamp(1.55rem, 4.5vw, 2.35rem); }
h2 { font-size: clamp(1.25rem, 3.2vw, 1.65rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.85rem; }
p:last-child { margin-bottom: 0; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: currentColor;
}

.ico--sm { width: 0.95em; height: 0.95em; }
.ico--btn { width: 1.05em; height: 1.05em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg-deep);
}

.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container {
  width: min(var(--max), 100% - 1.5rem);
  margin-inline: auto;
}

/* --- Header center-logo (Variant A) --- */
.flow-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 10, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.flow-header__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
  width: min(var(--max), 100% - 1.25rem);
  margin-inline: auto;
  padding: 0.35rem 0;
}

.flow-nav {
  display: flex;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.flow-nav--left { justify-content: flex-end; }
.flow-nav--right { justify-content: flex-start; }

.flow-nav a {
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.flow-nav a:hover,
.flow-nav a.is-active {
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
}

.flow-brand {
  display: flex;
  justify-content: center;
  padding: 0.15rem 0.5rem;
}

.flow-brand img {
  width: min(9.5rem, 42vw);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.35));
}

.flow-header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-width: 0;
}

.flow-cta-desk {
  display: flex;
  gap: 0.4rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--gold);
  cursor: pointer;
}

.menu-toggle .ico-close { display: none; }
.menu-toggle.is-open .ico-menu { display: none; }
.menu-toggle.is-open .ico-close { display: block; }

.mobile-sheet {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 190;
  background: rgba(10, 10, 18, 0.96);
  padding: 1.25rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.mobile-sheet.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-sheet a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.5rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  font-size: 0.95rem;
}

.mobile-sheet .sheet-cta {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.5rem;
}

@media (max-width: 860px) {
  .flow-header__grid {
    grid-template-columns: auto 1fr auto;
  }
  .flow-header__right { display: none; }
  .menu-toggle { display: flex; }
  .mobile-sheet { display: block; }
  .flow-brand { grid-column: 2; }
  .menu-toggle { grid-column: 3; justify-self: end; }
}

/* --- Buttons (Liquid) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-flow {
  background: var(--flow-grad);
  color: var(--bg-deep);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(255, 180, 0, 0.35);
}

.btn-flow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 200, 0, 0.45);
  color: var(--bg-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  border-radius: 999px;
}

.btn-ghost:hover { background: rgba(255, 215, 0, 0.08); color: var(--gold-light); }

.btn-lg { padding: 0.7rem 1.35rem; font-size: 0.95rem; }

/* --- Hero asymmetric (Variant A) --- */
.edit-hero {
  padding: clamp(1.5rem, 4vw, 2.75rem) 0 2rem;
}

.edit-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.hero-visual {
  position: relative;
  order: 2;
}

.tilt-frame {
  position: relative;
  transform: rotate(2deg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid rgba(255, 215, 0, 0.35);
  box-shadow:
    0 0 32px rgba(255, 200, 0, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.4);
  background: var(--bg-mid);
  max-width: 26rem;
  margin-inline: auto;
}

.tilt-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.hero-copy {
  order: 1;
  min-width: 0;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--flow-grad);
  border-radius: 999px;
}

.hero-lead {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.typing-line {
  display: block;
  min-height: 1.4em;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 0.65rem;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Path picker */
.path-picker {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(20, 20, 31, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.path-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.path-tab {
  flex: 1;
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.06);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.path-tab.is-active {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border-color: rgba(255, 215, 0, 0.35);
}

.path-panel { display: none; }
.path-panel.is-active { display: block; }

.path-panel p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

/* Stat row */
.stat-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 1rem;
}

.stat-cell {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 215, 0, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 215, 0, 0.12);
}

.stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 720px) {
  .edit-hero__grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .tilt-frame { transform: none; max-width: 20rem; }
}

@media (max-width: 480px) {
  .stat-flow { grid-template-columns: 1fr; }
}

/* --- Sections --- */
.section {
  padding: clamp(2rem, 5vw, 3rem) 0;
}

.blob-divider {
  height: 2.5rem;
  margin: -0.5rem 0 0.5rem;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255, 204, 0, 0.08), transparent);
}

.blob-panel {
  padding: clamp(1rem, 3vw, 1.5rem);
  background: rgba(20, 20, 31, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

/* Benefit tabs + mosaic */
.benefit-zone { margin-top: 1rem; }

.benefit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.benefit-tab {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.07);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.benefit-tab.is-active {
  background: var(--flow-grad);
  color: var(--bg-deep);
}

.benefit-pane { display: none; }
.benefit-pane.is-active { display: block; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.mosaic-card {
  padding: 1rem;
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.14);
  border-radius: var(--radius-md);
  transition: transform 0.25s;
}

.mosaic-card:nth-child(odd) { border-radius: var(--radius-md) var(--radius-xl) var(--radius-md) var(--radius-lg); }
.mosaic-card:nth-child(even) { border-radius: var(--radius-xl) var(--radius-md) var(--radius-lg) var(--radius-md); }

.mosaic-card--wide {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mosaic-card h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-light);
}

.mosaic-card p {
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .mosaic { grid-template-columns: 1fr; }
  .mosaic-card--wide { flex-direction: column; text-align: center; }
}

/* FAQ horizontal rail */
.faq-rail-wrap {
  position: relative;
  margin-top: 1rem;
}

.faq-rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0.5rem;
  padding: 0.5rem 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--bg-soft);
}

.faq-rail::-webkit-scrollbar { height: 5px; }
.faq-rail::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

.faq-card {
  flex: 0 0 min(85%, 300px);
  scroll-snap-align: start;
  padding: 1rem 1.1rem;
  background: rgba(20, 20, 31, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.faq-card h3 {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--gold-light);
  margin-bottom: 0.55rem;
}

.faq-card p {
  font-size: 0.84rem;
  color: var(--muted);
}

.faq-rail-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--gold);
  cursor: pointer;
  z-index: 2;
}

.rail-btn--prev { left: -0.5rem; }
.rail-btn--next { right: -0.5rem; }

@media (min-width: 640px) {
  .rail-btn { display: flex; }
  .faq-card { flex: 0 0 280px; }
}

/* Footer */
.flow-footer {
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.flow-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.flow-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.flow-footer a { color: var(--muted); font-size: 0.82rem; }
.flow-footer a:hover { color: var(--gold); }

.meta-date {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.article h3 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  color: var(--gold-light);
}

.article-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 215, 0, 0.2);
  font-size: 0.86rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typing-cursor { animation: none; }
  .btn-flow:hover { transform: none; }
  .mosaic-card { transition: none; }
}
