/* Azadari Events — event.azadari.media
   Brand tokens match azadari.media (Flutter app theme). Dark-only by design. */
:root {
  --bg: #0b1414;
  --bg-2: #0d1a1a;
  --surface: #0f1d1d;
  --surface-2: #14302f;
  --teal: #06bfbf;
  --teal-soft: rgba(6, 191, 191, 0.12);
  --coral: #f25c69;
  --ink: #e6f6f6;
  --muted: #8fb0b0;
  --line: #22403f;
  --paper: #ece3cf;
  --paper-ink: #2b2620;
  --radius: 18px;
  --max: 1120px;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Faint girih-style lattice behind the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%2306bfbf' stroke-width='1'%3E%3Cpath d='M40 4 L52 28 L76 40 L52 52 L40 76 L28 52 L4 40 L28 28 Z'/%3E%3Cpath d='M40 20 L60 40 L40 60 L20 40 Z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; top: 12px; left: 16px; transform: translateY(-200%); }
[dir="rtl"] .skip { left: auto; right: 16px; }
.skip:focus { transform: none; background: var(--teal); color: #031212; padding: 8px 14px; border-radius: 10px; z-index: 50; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 20, 20, 0.78);
  border-bottom: 1px solid rgba(34, 64, 63, 0.6);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; line-height: 1.1; }
.brand span { line-height: 1.15; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.lang { font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.lang:hover { border-color: var(--teal); }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #031212; box-shadow: 0 10px 30px -10px rgba(6,191,191,.6); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(6,191,191,.75); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow-x: clip; }
.hero::after {
  content: ""; position: absolute; inset: -80px 0 auto 0; height: 620px; z-index: -1;
  background:
    radial-gradient(50% 60% at 18% 20%, rgba(6,191,191,.16), transparent 70%),
    radial-gradient(40% 50% at 85% 40%, rgba(242,92,105,.08), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } .hero { padding-top: 44px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--teal); }

h1, h2, h3 { margin: 0; font-weight: 400; }
h1 {
  font-family: var(--display);
  font-size: clamp(44px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 18px 0 20px;
}
h1 em, h2 em { font-style: italic; color: var(--teal); }
.lede { font-size: 18px; color: #c3dada; max-width: 34em; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 13.5px; color: var(--muted); padding: 0; list-style: none; }
.trust li::before { content: "✓"; color: var(--teal); margin-right: 7px; font-weight: 700; }

/* The "before → after" visual: photocopied timetable becomes a findable page */
.morph { position: relative; min-height: 470px; }
.paper {
  position: absolute; left: 0; top: 10px; width: 66%;
  background: var(--paper); color: var(--paper-ink);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
  padding: 22px 22px 26px; border-radius: 3px;
  transform: rotate(-4deg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  filter: contrast(1.05) saturate(.7);
  animation: settle-left 1s cubic-bezier(.2,.8,.2,1) both .15s;
}
.paper::after { /* photocopy grain + fold */
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(0,0,0,.07) 50%, transparent 50.5%),
    radial-gradient(circle at 80% 90%, rgba(0,0,0,.12), transparent 40%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 3px);
}
.paper b { display: block; text-align: center; font-size: 14px; letter-spacing: .06em; margin-bottom: 2px; }
.paper .c { text-align: center; display: block; margin-bottom: 12px; opacity: .75; }
.paper .row { display: flex; gap: 10px; border-top: 1px dashed rgba(43,38,32,.35); padding: 5px 0; }
.paper .row span:first-child { min-width: 62px; }
.paper .fwd {
  margin-top: 14px; font-family: var(--sans); font-size: 11px; color: #5c554a;
  display: flex; align-items: center; gap: 6px;
}
.paper .fwd::before { content: "↪"; font-size: 13px; }

.card-ev {
  position: absolute; right: 0; bottom: 0; width: 70%;
  background: linear-gradient(180deg, #11292a, #0d1c1c);
  border: 1px solid #2c5554; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(6,191,191,.08);
  animation: settle-right 1s cubic-bezier(.2,.8,.2,1) both .45s;
}
.card-ev .url {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  font-size: 11.5px; color: var(--muted); background: rgba(0,0,0,.25); border-bottom: 1px solid #1f3d3c;
}
.card-ev .url i { width: 8px; height: 8px; border-radius: 50%; background: #2c5554; display: inline-block; }
.card-ev .url b { color: var(--ink); font-weight: 500; }
.card-ev .poster {
  height: 92px; position: relative;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(6,191,191,.35), transparent 55%),
    linear-gradient(135deg, #0f3b3b, #0b1414 70%);
}
.card-ev .poster::after {
  content: "مجلسِ عزا"; position: absolute; right: 16px; bottom: 6px;
  font-family: var(--urdu); font-size: 22px; color: rgba(230,246,246,.85);
}
.card-ev .body { padding: 14px 16px 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(242,92,105,.25); }
.card-ev h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; margin: 9px 0 6px; line-height: 1.3; }
.card-ev .meta { font-size: 12.5px; color: var(--muted); display: grid; gap: 3px; }
.card-ev .acts { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.card-ev .acts span { font-size: 11px; padding: 5px 9px; border-radius: 9px; background: var(--surface-2); color: var(--ink); }
.card-ev .acts span.g { background: #25d366; color: #052e16; font-weight: 600; }
.google {
  position: absolute; right: 8%; top: 0; z-index: 2;
  background: #fff; color: #202124; border-radius: 14px; padding: 10px 14px; width: 250px;
  font-family: Arial, sans-serif; font-size: 12px; box-shadow: 0 20px 40px -16px rgba(0,0,0,.6);
  animation: drop 1s cubic-bezier(.2,.8,.2,1) both .85s;
}
.google .q { display: flex; align-items: center; gap: 8px; border: 1px solid #dfe1e5; border-radius: 999px; padding: 5px 10px; color: #4d5156; margin-bottom: 8px; }
.google .q::before { content: ""; width: 10px; height: 10px; border: 2px solid #9aa0a6; border-radius: 50%; }
.google .r { color: #1a0dab; font-size: 13.5px; }
.google .s { color: #006621; font-size: 11px; }
.arrow-lbl {
  position: absolute; left: 2%; bottom: 18%; z-index: 3;
  font-family: var(--display); font-style: italic; font-size: 20px; color: var(--teal);
  display: flex; align-items: center; gap: 6px; transform: rotate(-6deg);
  animation: fade 1s ease both 1.1s;
}
@media (max-width: 540px) {
  .morph { min-height: 520px; }
  .paper { width: 82%; }
  .card-ev { width: 88%; }
  .google { right: 0; width: 220px; top: -6px; }
  .arrow-lbl { display: none; }
}
@keyframes settle-left { from { opacity: 0; transform: rotate(-10deg) translate(-30px, 20px); } }
@keyframes settle-right { from { opacity: 0; transform: translate(30px, 30px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-16px); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.sec-head { max-width: 760px; margin-bottom: 40px; }
h2 { font-family: var(--display); font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.01em; margin: 12px 0 14px; }
.sec-head p { color: var(--muted); font-size: 17px; margin: 0; }
.divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 0; }

/* Definition block — the one sentence we want quoted */
.define {
  border: 1px solid var(--line); border-left: 3px solid var(--teal);
  background: linear-gradient(90deg, rgba(6,191,191,.07), transparent 60%);
  padding: 26px 28px; border-radius: 4px 18px 18px 4px;
}
.define p { margin: 0; font-size: clamp(18px, 2.1vw, 22px); line-height: 1.55; }
.define strong { color: var(--teal); font-weight: 600; }
.define .k { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  counter-increment: s; position: relative; padding: 28px 24px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--display); font-size: 56px; line-height: 1; color: var(--teal); opacity: .9;
  display: block; margin-bottom: 14px;
}
.steps h3 { font-family: var(--sans); font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.grid > div { background: var(--bg-2); padding: 26px 24px; transition: background .2s; }
.grid > div:hover { background: #102222; }
.grid .ic { font-size: 22px; margin-bottom: 10px; display: block; }
.grid h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Split: audience cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.aud { padding: 32px 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.aud.alt { background: linear-gradient(160deg, #103030, #0d1a1a 60%); border-color: #2c5554; }
.aud h3 { font-family: var(--display); font-size: 32px; margin-bottom: 8px; }
.aud ul { margin: 16px 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.aud li { padding-left: 26px; position: relative; color: #c3dada; font-size: 15px; }
.aud li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 10px; height: 2px; background: var(--teal); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips a, .chips span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 14.5px;
  transition: border-color .2s, background .2s;
}
.chips a:hover { border-color: var(--teal); background: #102222; }
.chips .ur { font-family: var(--urdu); font-size: 13px; color: var(--muted); line-height: 1.9; }

/* Comparison table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface); }
thead th:last-child { color: var(--teal); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--muted); width: 28%; }
td:last-child { background: rgba(6,191,191,.05); color: var(--ink); }
td .no { color: #c98a8f; }

/* Ecosystem band */
.eco { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .eco { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { padding: 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; color: var(--teal); font-weight: 400; }
.stat span { font-size: 13px; color: var(--muted); }
.links { display: grid; gap: 10px; margin-top: 18px; }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--bg-2); transition: border-color .2s; }
.links a:hover { border-color: var(--teal); }
.links a span { color: var(--muted); font-size: 13.5px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: #2c5554; }
.faq summary { cursor: pointer; list-style: none; padding: 19px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: #b9d0d0; }

/* Final CTA */
.final { text-align: center; padding: 96px 0 104px; position: relative; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 50% 100%, rgba(6,191,191,.16), transparent 70%);
}
.final h2 { max-width: 15em; margin: 12px auto 16px; }
.final p { color: var(--muted); max-width: 34em; margin: 0 auto 28px; font-size: 17px; }
.final .cta-row { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Scroll reveal (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Urdu / RTL ---------- */
[dir="rtl"] body, [dir="rtl"] { font-family: var(--urdu); }
[dir="rtl"] body { line-height: 2.1; }
[dir="rtl"] h1 { font-family: var(--urdu); font-size: clamp(27px, 5vw, 56px); line-height: 1.75; letter-spacing: 0; }
[dir="rtl"] h2 { font-family: var(--urdu); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.8; letter-spacing: 0; }
[dir="rtl"] h1 em, [dir="rtl"] h2 em { font-style: normal; }
[dir="rtl"] .aud h3 { font-family: var(--urdu); font-size: 24px; line-height: 1.9; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 14px; }
[dir="rtl"] .eyebrow::before { order: 2; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .aud li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .aud li::before { left: auto; right: 4px; top: 18px; }
[dir="rtl"] .define { border-left: 1px solid var(--line); border-right: 3px solid var(--teal); border-radius: 18px 4px 4px 18px; background: linear-gradient(270deg, rgba(6,191,191,.07), transparent 60%); }
[dir="rtl"] .trust li::before { margin-right: 0; margin-left: 7px; }
[dir="rtl"] .steps li::before { font-family: var(--display); }
[dir="rtl"] .faq summary { font-size: 16px; line-height: 2; }
[dir="rtl"] .lede { font-size: 17px; }
[dir="rtl"] .btn { font-family: var(--urdu); font-weight: 600; padding-top: 9px; padding-bottom: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; font-family: var(--sans); }

/* Small phones: keep the header on one line */
.brand span { white-space: nowrap; }
@media (max-width: 440px) {
  .top .wrap { gap: 10px; }
  .brand small { display: none; }
  .top .btn-sm { padding: 8px 12px; font-size: 13px; }
  .lang { padding: 5px 10px; font-size: 13px; }
}

/* Comparison table → stacked cards on phones, so the Azadari Events column is never off-screen */
@media (max-width: 640px) {
  .tbl-wrap { overflow: visible; border: 0; }
  table { min-width: 0; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tbody { display: grid; gap: 12px; }
  tr { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
  td { border: 0; padding: 10px 16px; }
  td.lbl { width: 100%; font-weight: 700; color: var(--ink); padding-top: 14px; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  td:last-child { padding-bottom: 14px; }
  td:last-child::before { color: var(--teal); }
  [dir="rtl"] td[data-label]::before { letter-spacing: 0; font-size: 12.5px; }
}
.links a span { white-space: nowrap; margin-inline-start: 12px; }
[dir="rtl"] .stat b { font-family: var(--urdu); font-size: 30px; line-height: 1.6; }
