/* ==========================================================================
   080 · PRESSWORK (مطبعة ريزو) — 1:1 Risograph Print Shop & Zine Studio
   Uncoated #EFE6D6 · Slab #F7F1E6 · Ink #1A1A22 · Riso Blue #2B2F8F & Orange #FF5A36 · Lime #B6FF2E
   ========================================================================== */

:root {
  --paper: #EFE6D6;
  --card: #F7F1E6;
  --ink: #1A1A22;
  --ia: #2B2F8F;
  --ib: #FF5A36;
  --lime: #B6FF2E;
  --misreg: 2.2px;
  --sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
  --display: 'Cairo', 'Readex Pro', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: clip;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(26, 26, 34, 0.08) 1px, transparent 0);
  background-size: 18px 18px;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  letter-spacing: 0;
}

.bidi {
  unicode-bidi: isolate;
  font-family: var(--mono);
}

/* Brutalist Riso Buttons */
.pw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--card);
  color: var(--ink);
}

.pw-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.pw-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.pw-btn-orange {
  background: var(--ib);
  color: #FFFFFF;
}

.pw-btn-blue {
  background: var(--ia);
  color: #FFFFFF;
}

.pw-btn-lime {
  background: var(--lime);
  color: var(--ink);
}

/* ======================== FLOATING PILL NAVBAR ======================== */
.pw-header {
  position: fixed;
  top: 16px;
  inset-inline: 20px;
  z-index: 70;
  max-width: 1240px;
  margin: 0 auto;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ib);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
  white-space: nowrap;
}

.pw-drum-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: linear-gradient(135deg, var(--ia) 50%, var(--ib) 50%);
  display: inline-block;
  flex-shrink: 0;
}

.pw-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
}

.pw-nav a:hover {
  color: var(--ib);
}

.pw-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.pw-bag-btn {
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.pw-dir-chip {
  padding: 7px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
}

/* ======================== SLIDE-OVER BAG DRAWER ======================== */
.pw-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(26, 26, 34, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pw-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.pw-drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  bottom: 0;
  width: min(410px, 92vw);
  z-index: 95;
  background: var(--card);
  border-inline-start: 3px solid var(--ink);
  box-shadow: -8px 0 0 var(--ia);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(-105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html[dir="ltr"] .pw-drawer {
  transform: translateX(105%);
}

.pw-drawer.open {
  transform: translateX(0);
}

.pw-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.pw-drawer-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pw-bag-row {
  border: 2px solid var(--ink);
  background: #FFFFFF;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ======================== 1. HERO (100dvh RISO STAGE) ======================== */
.pw-hero {
  position: relative;
  min-height: 100dvh;
  padding: 108px 28px 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}

.pw-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pw-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  filter: contrast(1.06) saturate(1.12);
}

.pw-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* 4× Halftone Inspection Loupe */
.pw-loupe {
  position: absolute;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--lime), inset 0 0 0 2px #FFFFFF;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  background-image:
    radial-gradient(var(--ia) 2.2px, transparent 2.4px),
    radial-gradient(var(--ib) 2.2px, transparent 2.4px),
    url('../assets/art/presswork.webp');
  background-size: 10px 10px, 10px 10px, 260% auto;
  background-position: 0 0, var(--misreg) var(--misreg), center;
}

.pw-loupe.active {
  opacity: 1;
}

.pw-loupe-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Crop marks & registration crosshairs */
.pw-crop {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 3;
  pointer-events: none;
  border-color: var(--ink);
  border-style: solid;
}
.pw-crop.tl { top: 88px; left: 22px; border-width: 2px 0 0 2px; }
.pw-crop.tr { top: 88px; right: 22px; border-width: 2px 2px 0 0; }
.pw-crop.bl { bottom: 20px; left: 22px; border-width: 0 0 2px 2px; }
.pw-crop.br { bottom: 20px; right: 22px; border-width: 0 2px 2px 0; }

.pw-reg-mark {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
  pointer-events: none;
}

/* Start-aligned Slab Card */
.pw-hero-slab {
  position: relative;
  z-index: 5;
  max-width: 590px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 36px 34px 30px;
  box-shadow: 10px 10px 0 var(--ia), -6px -6px 0 var(--ib);
}

.pw-sticker {
  position: absolute;
  top: -26px;
  inset-inline-end: 24px;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: var(--lime);
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  transform: rotate(-12deg);
}

.pw-kicker {
  display: inline-block;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #FFFFFF;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
}

.pw-h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 14px;
  text-shadow: var(--misreg) var(--misreg) 0 rgba(255, 90, 54, 0.42),
               calc(var(--misreg) * -1) 0 0 rgba(43, 47, 143, 0.28);
}

.pw-h1 em {
  font-style: normal;
  color: var(--ia);
  text-decoration: underline wavy var(--ib) 3px;
  text-underline-offset: 6px;
}

.pw-lead {
  font-size: 15.5px;
  color: rgba(26, 26, 34, 0.84);
  margin-bottom: 22px;
}

.pw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

/* Live Misregistration Slider Box */
.pw-misreg-box {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pw-misreg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 800;
}

.pw-range {
  width: 100%;
  accent-color: var(--ib);
  cursor: pointer;
}

/* ======================== TILTED LIME MARQUEE ======================== */
.pw-marquee-wrap {
  background: var(--lime);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 12px 0;
  transform: rotate(-1.1deg) scale(1.02);
  overflow: hidden;
  box-shadow: 0 6px 0 var(--ink);
  margin: 10px 0 24px;
}

.pw-marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  font-weight: 900;
  font-size: 15px;
  animation: pwMarquee 26s linear infinite;
}

@keyframes pwMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ======================== SECTIONS ======================== */
.pw-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 84px 28px;
}

.pw-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.pw-h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
}

/* 3 Rotated Step Cards */
.pw-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pw-step-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 8px 8px 0 var(--ia);
  transition: transform 0.2s ease;
}

.pw-step-card:nth-child(1) { transform: rotate(-1.3deg); }
.pw-step-card:nth-child(2) { transform: rotate(1.1deg); box-shadow: 8px 8px 0 var(--ib); }
.pw-step-card:nth-child(3) { transform: rotate(-0.9deg); box-shadow: 8px 8px 0 var(--ink); }
.pw-step-card:hover { transform: rotate(0deg) translateY(-4px); }

.pw-step-num {
  display: inline-block;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 14px;
}

.pw-step-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}

/* Ink Swatch Picker + Print Shop */
.pw-swatch-bar {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 16px 22px;
  margin-bottom: 34px;
  box-shadow: 6px 6px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pw-swatches {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pw-swatch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.pw-swatch-btn.active {
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--ink);
}

.pw-swatch-dots {
  display: inline-flex;
  gap: 4px;
}

.pw-swatch-dots i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: inline-block;
}

.pw-prints-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pw-print-card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
  display: flex;
  flex-direction: column;
}

.pw-print-art {
  position: relative;
  aspect-ratio: 4 / 4.4;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pw-print-art svg {
  width: 78%;
  height: 78%;
  filter: drop-shadow(var(--misreg) var(--misreg) 0 var(--ib));
}

.pw-edition-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.pw-print-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pw-print-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 2px dashed rgba(26, 26, 34, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pw-price {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  color: var(--ia);
}

/* Royal Blue Quote Estimator Band */
.pw-quote-band {
  background: var(--ia);
  color: #FFFFFF;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 86px 28px;
}

.pw-quote-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.pw-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.pw-mode-pill {
  padding: 9px 16px;
  border: 2px solid #FFFFFF;
  border-radius: 999px;
  background: transparent;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.pw-mode-pill.active {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.pw-est-readout {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  padding: 22px;
  margin-top: 16px;
}

.pw-est-big {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--lime);
}

.pw-form-card {
  background: var(--card);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 10px 10px 0 var(--ib);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pw-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #FFFFFF;
  font-size: 14px;
}

/* Studio Stats + FAQ */
.pw-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.pw-stats-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pw-stat-box {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 5px 5px 0 var(--ink);
}

.pw-stat-box strong {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 900;
  color: var(--ib);
}

.pw-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pw-faq-item {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
}

.pw-faq-item summary {
  padding: 18px 22px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pw-faq-item p {
  padding: 0 22px 18px;
  color: rgba(26, 26, 34, 0.82);
}

/* Lime Newsletter Band & Obsidian Footer */
.pw-news-band {
  background: var(--lime);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 54px 28px;
}

.pw-news-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pw-footer {
  background: var(--ink);
  color: var(--card);
  padding: 68px 28px 40px;
}

.pw-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.pw-giant-wordmark {
  font-family: var(--mono);
  font-size: clamp(3.6rem, 12vw, 9.4rem);
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  color: var(--card);
  text-shadow: 7px 7px 0 var(--ib), -5px -5px 0 var(--ia);
  margin: 28px 0 36px;
  direction: ltr;
}

.pw-showcase-nav {
  border-top: 1px solid rgba(247, 241, 230, 0.2);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.pw-showcase-nav a {
  padding: 8px 16px;
  border: 1.5px solid rgba(247, 241, 230, 0.35);
  border-radius: 999px;
}

.pw-showcase-nav a:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

@media (max-width: 720px) {
  .pw-nav { display: none; }
  .pw-steps-grid,
  .pw-prints-grid,
  .pw-quote-inner,
  .pw-studio-grid {
    grid-template-columns: 1fr;
  }
  .pw-sticker {
    width: 84px;
    height: 84px;
    font-size: 10.5px;
  }
}
