@font-face {
  font-family: "Jameel Noori Nastaleeq";
  src: url("../fonts/jameel-noori-nastaleeq.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4f0;
  --ink: #1c1917;
  --mute: #6f6860;
  --line: #e4e0d8;
  --paper: #fffdf8;
  --wa: #128c7e;
  --wa-dark: #0e6e63;
  --max: 1120px;
  --nav: 4.25rem;
  --urdu: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Noto Nastaliq Urdu Draft", serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] body {
  text-align: start;
}

.urdu,
html[lang="ur"] body,
html[lang="ur"] button,
html[lang="ur"] .btn,
html[lang="ur"] .brand,
html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3 {
  font-family: var(--urdu);
  font-weight: 400;
  font-feature-settings: normal;
  font-variant-ligatures: common-ligatures;
}

html[lang="ur"] body {
  font-size: 18px;
  line-height: 2.5;
}

html[lang="ur"] p,
html[lang="ur"] address,
html[lang="ur"] .tags li,
html[lang="ur"] .banner p,
html[lang="ur"] .service-cta,
html[lang="ur"] .motto,
html[lang="ur"] .mute {
  font-family: var(--urdu);
  font-weight: 400;
}

html[lang="ur"] .tags li,
html[lang="ur"] .banner p {
  font-size: 16px;
  line-height: 2.3;
}

html[lang="ur"] h1,
html[lang="ur"] h2,
html[lang="ur"] h3,
html[lang="ur"] p,
html[lang="ur"] address {
  overflow-wrap: break-word;
}

html[lang="ur"] .nav,
html[lang="ur"] .nav-inner {
  min-height: 4.75rem;
}

html[lang="ur"] .brand-name {
  font-size: 16px;
  line-height: 1.75;
}

.t-ur {
  display: none;
}

html[lang="ur"] .t-en {
  display: none;
}

html[lang="ur"] .t-ur {
  display: inline;
}

img {
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ol,
ul,
address {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
}

.skip:focus {
  top: 1rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--nav);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
}

.nav-inner {
  min-height: var(--nav);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 9px;
  flex: none;
}

.brand-name {
  min-width: 0;
  font-size: clamp(0.84rem, 3.2vw, 1.02rem);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-inline-start: auto;
  color: var(--mute);
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang {
  min-width: 3.4rem;
  height: 2.15rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.86rem;
}

.lang:hover {
  border-color: #cfc8bc;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.15rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #111;
}

.btn:active {
  transform: scale(0.98);
}

.btn-small {
  min-height: 2.15rem;
  padding: 0 0.9rem;
  font-size: 0.86rem;
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: #fff;
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}

.btn-wa:hover {
  background: var(--wa-dark);
}

.wa-ico {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  flex: none;
}

.crumbs {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
}

.crumbs li {
  display: flex;
  align-items: center;
}

.crumbs li + li::before {
  content: "/";
  margin-inline: 0.55rem;
  color: #c4beb4;
}

.crumbs a:hover {
  color: var(--ink);
}

.hero,
.services,
.steps,
.why,
.faq,
.visit {
  padding: 2.6rem 0;
}

.hero {
  padding-top: 3.25rem;
  padding-bottom: 3rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--mute);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[lang="ur"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 16px;
}

html[lang="ur"] .btn {
  min-height: 3.15rem;
  padding-block: 0.4rem;
  font-size: 18px;
}

html[lang="ur"] .btn-small {
  min-height: 2.4rem;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

html[lang="ur"] h1 {
  max-width: 16em;
  letter-spacing: 0;
  line-height: 2.2;
  font-size: 28px;
}

.lede {
  max-width: 34rem;
  margin-top: 1.1rem;
  color: var(--mute);
  font-size: 1.1rem;
}

html[lang="ur"] .lede {
  font-size: 18px;
  line-height: 2.5;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.docket {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.75rem;
  border-top: 1px solid var(--line);
}

.docket a {
  display: block;
  padding: 1.05rem 0.85rem 0 0;
  min-height: 5.2rem;
}

.docket li + li a {
  padding-inline-start: 0.85rem;
  border-inline-start: 1px solid var(--line);
}

.docket .num {
  display: block;
  color: var(--mute);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.docket strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[lang="ur"] .docket strong {
  font-weight: 400;
  font-size: 18px;
  line-height: 2;
}

.docket a:hover strong {
  color: var(--wa);
}

.banner {
  background: #fff4d6;
  border-block: 1px solid #f0dd9a;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
}

.banner p {
  max-width: 44rem;
  font-size: 0.98rem;
}

.section-head {
  margin-bottom: 1.15rem;
}

h2 {
  max-width: 28ch;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

html[lang="ur"] h2 {
  letter-spacing: 0;
  line-height: 2.2;
  font-size: 22px;
  max-width: 18em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--paper);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service:hover {
  transform: translateY(-3px);
  border-color: #d5cfc4;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.06);
}

.icon {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  margin-bottom: 1rem;
  border-radius: 0.95rem;
}

.icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.is-filer .icon {
  background: #e5f6ec;
  color: #187a45;
}

.is-returns .icon {
  background: #e7f0fa;
  color: #1d4e89;
}

.is-online .icon {
  background: #e4f5f6;
  color: #0f6c7a;
}

.is-legal .icon {
  background: #eceef6;
  color: #243056;
}

.is-registry .icon {
  background: #f8ebe4;
  color: #9a3412;
}

.is-estamp .icon {
  background: #f3eaf8;
  color: #6b3fa0;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

html[lang="ur"] h3 {
  letter-spacing: 0;
  font-size: 18px;
  line-height: 2.3;
}

.service p,
.step-list p,
.why-list p {
  margin-top: 0.4rem;
  color: var(--mute);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
  margin-bottom: 0.9rem;
}

.tags li {
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  min-height: 2.4rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: #e7f5f2;
  color: var(--wa);
  font-size: 0.88rem;
  font-weight: 700;
}

.service:hover .service-cta {
  color: var(--wa-dark);
}

.step-list,
.why-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-list li,
.why-list li {
  padding: 1.2rem;
  border-radius: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  border-radius: 0.7rem;
  background: #e7f5f2;
  color: var(--wa);
}

.step-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.steps,
.why,
.faq,
.visit {
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--paper);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--mute);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

html[lang="ur"] .faq-item summary {
  font-weight: 400;
  font-size: 18px;
  line-height: 2.1;
}

.faq-body {
  padding: 0 1rem 0.9rem;
  color: var(--mute);
}

html[lang="ur"] .faq-body {
  font-size: 18px;
  line-height: 2.35;
}

.faq .hero-actions {
  margin-top: 1rem;
}

.motto {
  margin-top: 1.15rem;
  color: var(--mute);
  font-size: 1.05rem;
}

.visit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--paper);
}

.visit-row h2 {
  max-width: none;
  font-size: 1.45rem;
}

html[lang="ur"] .visit-row h2 {
  font-size: 22px;
}

address {
  margin-top: 0.45rem;
  font-style: normal;
  color: var(--mute);
  line-height: 1.65;
}

html[lang="ur"] address {
  line-height: 2.2;
}

.footer {
  padding: 1.4rem 0 2.25rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--mute);
  font-size: 0.92rem;
}

.mute {
  color: var(--mute);
}

.float {
  position: fixed;
  inset-inline-end: 1.1rem;
  bottom: 1.1rem;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.28);
}

.float:hover {
  background: #1ebe5d;
}

.dock {
  display: none;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 800px) {
  .hero,
  .services,
  .steps,
  .why,
  .faq,
  .visit {
    padding: 2rem 0;
  }

  .hero {
    padding-top: 2.25rem;
  }

  .docket {
    grid-template-columns: repeat(2, 1fr);
  }

  .docket li:nth-child(odd) a {
    border-inline-start: 0;
    padding-inline-start: 0;
  }

  .docket li:nth-child(n + 3) a {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }

  .visit-row,
  .banner-inner,
  .step-list,
  .why-list,
  .hero-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .banner-inner .btn,
  .visit-row .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: start;
  }

  .float {
    display: none;
  }

  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }

  .dock {
    position: fixed;
    inset-inline: 0.75rem 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.3rem;
    padding: 0 1rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(18, 140, 126, 0.28);
  }

  html[lang="ur"] .dock {
    font-weight: 400;
    font-family: var(--urdu);
    min-height: 3.55rem;
  }

  .dock .wa-ico {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.5rem));
  }

  .nav-actions .btn-small {
    display: none;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 20ch;
  }

  html[lang="ur"] h1 {
    font-size: 24px;
    max-width: none;
  }

  html[lang="ur"] h2 {
    font-size: 20px;
  }

  html[lang="ur"] h3,
  html[lang="ur"] body,
  html[lang="ur"] .lede,
  html[lang="ur"] .btn {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .service {
    transition: none;
  }

  .service:hover {
    transform: none;
  }
}
