/* ==========================================================================
   091 · IRIS & THREAD (قزحية وخيط) — 1:1 Bespoke Eyewear & Clinical Optometry
   Linen #F3EBDD / #EADFCB / #FAF5EA · Ink #231F1C · Thread #C8402F · Indigo #2B3A67 · Daisy #F2C14E
   Signature dashed embroidery stitching · Optical iris reticle HUD · 3-Step Frame Quiz · 45m Exam
   ========================================================================== */

:root {
  --linen: #F3EBDD;
  --linen-2: #EADFCB;
  --linen-3: #FAF5EA;
  --ink: #231F1C;
  --thread: #C8402F;
  --indigo: #2B3A67;
  --daisy: #F2C14E;
  --sage: #8FA98A;
  --serif: 'Amiri', Georgia, serif;
  --sans: 'IBM Plex Sans Arabic', '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(--linen);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

body {
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; letter-spacing: 0; }
.bidi { unicode-bidi: isolate; font-family: var(--mono); }

/* Signature Dashed Thread Divider */
.it-stitch {
  border: 0;
  border-top: 2px dashed var(--thread);
  opacity: 0.65;
}

/* Inset Stitched Card Surface */
.it-stitched-card {
  position: relative;
  background: var(--linen-3);
  border-radius: 26px;
  padding: 28px;
}

.it-stitched-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1.5px dashed rgba(35, 31, 28, 0.18);
  pointer-events: none;
}

.it-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.2s ease;
}

.it-btn:hover { transform: translateY(-1px); }
.it-btn-red { background: var(--thread); color: #FAF5EA; }
.it-btn-indigo { background: var(--indigo); color: #FAF5EA; }
.it-btn-ghost {
  background: rgba(250, 245, 234, 0.72);
  border-color: rgba(35, 31, 28, 0.25);
  color: var(--ink);
}

/* ======================== FIXED NAVBAR ======================== */
.it-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 75;
  height: 68px;
  padding: 0 clamp(18px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.it-header.scrolled {
  background: rgba(243, 235, 221, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(35, 31, 28, 0.12);
}

.it-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.it-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.it-nav a {
  padding-bottom: 3px;
  border-bottom: 1.5px dashed transparent;
}

.it-nav a:hover {
  color: var(--thread);
  border-bottom-color: var(--thread);
}

/* ======================== 1. HERO (100svh OPTICAL RETICLE + PD RULER) ======================== */
.it-hero {
  position: relative;
  min-height: 100dvh;
  padding: 96px clamp(20px, 3.5vw, 52px) 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.it-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.it-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.it-hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    #F3EBDD 0%,
    #F3EBDD 34%,
    rgba(243, 235, 221, 0.84) 54%,
    rgba(243, 235, 221, 0.18) 82%
  );
}

/* Interactive Optical SVG HUD over Eye */
.it-optical-hud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.it-pd-ruler {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 30px;
  z-index: 4;
  background: rgba(243, 235, 221, 0.9);
  border-top: 1.5px dashed rgba(200, 64, 47, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
}

.it-hero-copy {
  position: relative;
  z-index: 5;
  max-width: 600px;
}

.it-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--linen-3);
  border: 1.5px dashed rgba(200, 64, 47, 0.45);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.it-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--thread);
}

.it-h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 3.85rem);
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 20px;
}

.it-h1 em, .it-h2 em {
  font-style: italic;
  color: var(--thread);
}

.it-proof-strip {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1.5px dashed rgba(35, 31, 28, 0.22);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.it-proof-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--indigo);
  line-height: 1.1;
}

/* ======================== SECTIONS ======================== */
.it-sec {
  padding: 86px clamp(20px, 3.5vw, 52px);
}

.it-sec-alt { background: var(--linen-2); }
.it-container { max-width: 1220px; margin: 0 auto; }

.it-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--thread);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.it-h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 1.32;
}

/* 2. Studio 2x2 Craft Bench */
.it-studio-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.it-bench-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* 3. Frames 3-Column Swatch Grid */
.it-frames-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
}

.it-frame-card {
  background: var(--linen-3);
  border-radius: 24px;
  padding: 24px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.it-frame-card:hover { transform: translateY(-4px); }
.it-frame-card.suggested {
  border-color: var(--thread);
  box-shadow: 0 14px 34px rgba(200, 64, 47, 0.14);
}

.it-glasses-stage {
  height: 120px;
  background: var(--linen);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.it-swatch-dots {
  display: inline-flex;
  gap: 8px;
}

.it-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  cursor: pointer;
}

.it-swatch[aria-pressed="true"] {
  outline: 2px solid var(--thread);
  outline-offset: 2px;
}

/* 4. Interactive 3-Step Face Shape Quiz */
.it-quiz-split {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 38px;
  align-items: center;
}

.it-q-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.it-q-ans {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px dashed rgba(35, 31, 28, 0.28);
  background: var(--linen);
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.it-q-ans:hover, .it-q-ans.selected {
  background: rgba(242, 193, 78, 0.34);
  border-style: solid;
  border-color: var(--thread);
}

/* 5. 45-Minute Segmented Exam Timeline */
.it-timeline-bar {
  display: grid;
  grid-template-columns: 1fr 2fr 3fr 1fr 1fr 1fr;
  gap: 6px;
  margin: 30px 0;
}

.it-seg {
  height: 16px;
  border-radius: 999px;
}

.it-exam-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.it-exam-step {
  background: var(--linen-3);
  border-radius: 20px;
  padding: 20px;
  border-top: 3px dashed var(--thread);
}

/* 6. Pinned Reviews Masonry */
.it-reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.it-note-card {
  position: relative;
  background: var(--linen-3);
  border-radius: 10px;
  padding: 24px 20px 20px;
  box-shadow: 0 10px 24px rgba(35, 31, 28, 0.08);
  border: 1.5px dashed rgba(35, 31, 28, 0.18);
  font-size: 15px;
}

.it-note-card:nth-child(even) { margin-top: 22px; transform: rotate(1deg); }
.it-note-card:nth-child(odd) { transform: rotate(-1deg); }

.it-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--thread);
  border: 2px solid #FAF5EA;
}

/* 7. Indigo Booking Band (#2B3A67) */
.it-book-band {
  background: var(--indigo);
  color: var(--linen);
  padding: 88px clamp(20px, 3.5vw, 52px);
}

.it-book-split {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 38px;
  align-items: center;
}

.it-days-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.it-day-btn {
  padding: 10px 6px;
  border-radius: 14px;
  border: 1.5px solid rgba(35, 31, 28, 0.2);
  background: #FFFFFF;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.it-day-btn.active {
  background: var(--indigo);
  color: #FFFFFF;
}

.it-slots-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.it-slot-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(35, 31, 28, 0.22);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.it-slot-pill.on {
  background: var(--thread);
  color: #FFFFFF;
  border-color: var(--thread);
}

/* Terracotta CTA & Ink Footer */
.it-cta-band {
  background: var(--thread);
  color: var(--linen-3);
  padding: 74px 24px;
  text-align: center;
  border-top: 2px dashed rgba(250, 245, 234, 0.55);
  border-bottom: 2px dashed rgba(250, 245, 234, 0.55);
}

.it-footer {
  background: var(--ink);
  color: var(--linen);
  padding: 58px clamp(20px, 3.5vw, 52px) 36px;
}

.it-showcase-nav {
  max-width: 1220px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1.5px dashed rgba(243, 235, 221, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

@media (max-width: 720px) {
  .it-nav { display: none; }
  .it-studio-split,
  .it-bench-2x2,
  .it-frames-grid,
  .it-quiz-split,
  .it-exam-grid,
  .it-reviews-grid,
  .it-book-split {
    grid-template-columns: 1fr;
  }
}
