/* Tadabur website — colours and type follow the app (src/theme/tokens.ts). */
:root {
  --forest: #14523b;
  --forest2: #1c6a4d;
  --deep: #0c3326;
  --tint: #1a6448;
  --sage: #7fa894;
  --gold: #c79a3e;
  --gold2: #d9b263;
  --gold-soft: #f6eedc;
  --gold-text: #9b7425;
  --bg: #f1f5f2;
  --surface: #ffffff;
  --pale: #e3eee7;
  --pale2: #eef5f0;
  --label: #0f1712;
  --secondary: #5d6a63;
  --separator: rgba(60, 72, 66, 0.16);
  --teal: #4a8a82;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(15, 40, 28, 0.06), 0 12px 32px rgba(15, 40, 28, 0.08);
  --max: 1160px;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--label);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--tint);
}
.ar {
  font-family: var(--arabic);
  direction: rtl;
}
.ur {
  font-family: var(--urdu);
  direction: rtl;
  line-height: 2.3;
}
.wrap {
  width: min(var(--max), 100% - 40px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
}

/* ── Header ─────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 245, 242, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--separator);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--label);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.3px;
}
.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.brand small {
  font-family: var(--arabic);
  font-weight: 400;
  font-size: 20px;
  color: var(--forest);
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover {
  color: var(--forest);
  background: var(--pale2);
}
.nav a[aria-current="page"] {
  color: var(--forest);
}
.nav .btn {
  margin-left: 8px;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  border-radius: 10px;
  color: var(--label);
  cursor: pointer;
}
.menu-toggle svg {
  display: block;
  width: 26px;
  height: 26px;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--forest);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(20, 82, 59, 0.28);
}
.btn-light {
  background: #fff;
  color: var(--forest) !important;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 12px;
}
.play-btn {
  background: #0f1712;
  color: #fff !important;
  padding: 11px 20px 11px 16px;
}
.play-btn svg {
  width: 26px;
  height: 26px;
}
.play-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.play-btn small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.play-btn strong {
  font-size: 18px;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(74, 138, 130, 0.55) 0%, transparent 55%),
    linear-gradient(150deg, #17593f 0%, var(--deep) 100%);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.5px);
  background-size: 46px 46px;
  opacity: 0.12;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 84px 0 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold2);
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  margin: 14px 0 18px;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold2);
}
.hero p.lead {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin: 0 0 30px;
}
.hero .ur {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.78);
  margin: -14px 0 26px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-note span::before {
  content: "✓ ";
  color: var(--gold2);
  font-weight: 800;
}
.hero-phones {
  position: relative;
  height: 600px;
  align-self: end;
}
.phone {
  position: absolute;
  width: 270px;
  border-radius: 38px;
  padding: 9px;
  background: #0b1410;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone img {
  border-radius: 30px;
  width: 100%;
  aspect-ratio: 540 / 1200;
  object-fit: cover;
}
.hero-phones .phone:nth-child(1) {
  right: 150px;
  bottom: -90px;
  transform: rotate(-6deg);
}
.hero-phones .phone:nth-child(2) {
  right: 0;
  bottom: -40px;
  transform: rotate(5deg);
  width: 250px;
}

/* ── Sections ───────────────────────────────────────── */
section {
  padding: 96px 0;
}
.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head .eyebrow {
  color: var(--gold-text);
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: -1px;
  line-height: 1.12;
  margin: 10px 0 14px;
}
.section-head p {
  color: var(--secondary);
  font-size: 18px;
  margin: 0;
}
.verse-band {
  background: var(--surface);
  padding: 64px 0;
  text-align: center;
  border-bottom: 1px solid var(--separator);
}
.verse-band .ar {
  font-size: clamp(30px, 4vw, 44px);
  color: var(--forest);
  line-height: 1.9;
}
.verse-band p {
  color: var(--secondary);
  margin: 6px auto 0;
  max-width: 640px;
}
.verse-band cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 14px;
  color: var(--gold-text);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 {
  font-size: 20px;
  margin: 16px 0 8px;
  letter-spacing: -0.3px;
}
.card p {
  margin: 0;
  color: var(--secondary);
  font-size: 16px;
}
.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--pale);
  color: var(--forest);
  display: grid;
  place-items: center;
}
.icon-tile svg {
  width: 26px;
  height: 26px;
}
.icon-tile.gold {
  background: var(--gold-soft);
  color: var(--gold-text);
}

/* Feature rows with screenshots */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0;
}
.feature + .feature {
  border-top: 1px solid var(--separator);
}
.feature.flip .feature-media {
  order: -1;
}
.feature h3 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin: 10px 0 14px;
}
.feature p {
  color: var(--secondary);
  margin: 0 0 18px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ticks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2314523B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--pale);
}
.feature-media {
  display: flex;
  justify-content: center;
  position: relative;
}
.feature-media::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border-radius: 40px;
  background: linear-gradient(150deg, var(--pale), var(--gold-soft));
  transform: rotate(-4deg);
}
.feature-media .phone {
  position: relative;
  width: 280px;
}

/* Gallery */
.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 20px 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery figure {
  margin: 0;
  flex: none;
  width: 230px;
  scroll-snap-align: center;
  text-align: center;
}
.gallery .phone {
  position: relative;
  width: 100%;
  border-radius: 32px;
  padding: 8px;
}
.gallery .phone img {
  border-radius: 25px;
}
.gallery figcaption {
  margin-top: 14px;
  font-weight: 700;
  font-size: 15px;
}

/* Principles band */
.dark {
  background: linear-gradient(150deg, #17593f, var(--deep));
  color: #fff;
}
.dark .section-head p,
.dark .card p {
  color: rgba(255, 255, 255, 0.72);
}
.dark .section-head .eyebrow {
  color: var(--gold2);
}
.dark .card {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.dark .icon-tile {
  background: rgba(217, 178, 99, 0.16);
  color: var(--gold2);
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr 300px;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  color: var(--forest);
  background: var(--pale);
  border: 2px dashed rgba(46, 125, 91, 0.35);
}
.step h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.4px;
}
.step p {
  margin: 0 0 10px;
  color: var(--secondary);
}
.step .phone {
  position: relative;
  width: 170px;
  justify-self: center;
  border-radius: 26px;
  padding: 6px;
}
.step .phone img {
  border-radius: 21px;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border-radius: 16px;
  padding: 4px 22px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 16px 30px 16px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 24px;
  color: var(--forest);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 0 0 18px;
  color: var(--secondary);
}

/* CTA band */
.cta-band {
  padding: 0 0 96px;
}
.cta-card {
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(74, 138, 130, 0.6), transparent 60%),
    linear-gradient(150deg, #17593f, var(--deep));
  color: #fff;
}
.cta-card img {
  width: 110px;
}
.cta-card h2 {
  margin: 0 0 6px;
  font-size: 32px;
  letter-spacing: -0.6px;
}
.cta-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(150deg, #17593f, var(--deep));
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 360px;
  height: 360px;
  background: url("logo-white.png") center / contain no-repeat;
  opacity: 0.07;
}
.page-hero h1 {
  font-size: clamp(36px, 4.6vw, 54px);
  letter-spacing: -1.2px;
  margin: 10px 0 12px;
  line-height: 1.08;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
  margin: 0;
  max-width: 640px;
}

/* Prose (legal pages, about) */
.prose {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.prose h2 {
  font-size: 23px;
  letter-spacing: -0.3px;
  margin: 34px 0 10px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  color: #2f3b35;
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose .meta {
  color: var(--secondary);
  font-size: 15px;
  margin-top: 0;
}
.callout {
  background: var(--gold-soft);
  border-radius: 16px;
  padding: 18px 22px;
  color: #5b4413;
  margin: 22px 0;
}
.callout strong {
  color: var(--gold-text);
}
.table-wrap {
  overflow-x: auto;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}
.prose th,
.prose td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--separator);
  vertical-align: top;
}
.prose th {
  color: var(--secondary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* About */
.dedication {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.dedication .heart {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-text);
  display: grid;
  place-items: center;
}
.dedication blockquote {
  margin: 20px 0 14px;
  font-size: clamp(20px, 2.4vw, 25px);
  font-style: italic;
  line-height: 1.55;
  color: var(--label);
}
.dedication .sign {
  font-weight: 800;
}
.dedication .role {
  color: var(--secondary);
  font-size: 15px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-size: 32px;
  color: var(--forest);
  letter-spacing: -1px;
}
.stat span {
  color: var(--secondary);
  font-size: 14px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 14px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item h3 {
  margin: 0 0 2px;
  font-size: 17px;
}
.contact-item p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}
form label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin: 16px 0 6px;
}
form input,
form select,
form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--separator);
  background: var(--bg);
  color: var(--label);
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: #fff;
}
form textarea {
  min-height: 140px;
  resize: vertical;
}
form .btn {
  margin-top: 20px;
}
.form-note {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 12px;
}
.field-error {
  color: #c9473f;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}
.invalid + .field-error {
  display: block;
}
.invalid {
  border-color: #c9473f !important;
}

/* ── Footer ─────────────────────────────────────────── */
.site-foot {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 28px;
  font-size: 15px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.site-foot h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 15px;
}
.site-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.site-foot a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.site-foot a:hover {
  color: #fff;
}
.foot-brand img {
  width: 64px;
  margin-bottom: 14px;
}
.foot-brand p {
  margin: 0;
  max-width: 300px;
}
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: center;
  }
  .hero p.lead {
    margin-inline: auto;
  }
  .cta,
  .hero-note {
    justify-content: center;
  }
  .hero-phones {
    height: 460px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }
  .hero-phones .phone:nth-child(1) {
    right: auto;
    left: 6%;
    width: 220px;
  }
  .hero-phones .phone:nth-child(2) {
    right: 6%;
    width: 205px;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .feature {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature.flip .feature-media {
    order: 0;
  }
  .step {
    grid-template-columns: 56px 1fr;
  }
  .step .phone {
    grid-column: 1 / -1;
  }
  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 40px 28px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--separator);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px;
  }
  .nav .btn {
    margin: 8px 0 0;
    justify-content: center;
  }
  section {
    padding: 64px 0;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .hero-phones {
    height: 400px;
  }
  .hero-phones .phone:nth-child(1) {
    width: 190px;
    left: 2%;
  }
  .hero-phones .phone:nth-child(2) {
    width: 178px;
    right: 2%;
  }
  .wrap {
    width: calc(100% - 32px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
