/* Hamara Chakwal app downloads: shared styles for English and Urdu. */
:root {
  color-scheme: light;
  --hc-yellow: #FFBA00;
  --hc-orange: #FF6600;
  --hc-grey: #A7A7A7;
  --hc-dark: #3C4142;
  --bg: #FFFDF7;
  --surface: #FFFFFF;
  --surface-2: #FFF7E4;
  --ink: #2A2E2F;
  --ink-soft: #63696B;
  --line: #E9E2D2;
  --shadow: 0 1px 2px rgb(60 65 66 / 6%), 0 12px 32px -12px rgb(60 65 66 / 18%);
  --road: #3C4142;
  --display: 'Salsa', ui-rounded, Georgia, serif;
  --body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --urdu: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Noto Naskh Arabic', serif;
  --r: 14px;
  --pad: clamp(12px, 4vw, 48px);
  --section-space: clamp(36px, 6vw, 60px);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1F2426;
  --surface: #282E30;
  --surface-2: #31383A;
  --ink: #F2EFE7;
  --ink-soft: #A7AFB1;
  --line: #3A4245;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 14px 36px -14px rgb(0 0 0 / 65%);
  --road: #8D9698;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
  transition: background .25s ease, color .25s ease;
}
html[lang="ur"] body { font-family: var(--urdu); line-height: 2.35; font-size: 16px; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
button { touch-action: manipulation; }
a, button { -webkit-tap-highlight-color: rgb(255 186 0 / 20%); }
:focus-visible { outline: 3px solid var(--hc-orange); outline-offset: 4px; border-radius: 6px; }
[hidden], .tracking-pixel { display: none !important; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--pad); }

/* The header may wrap at high browser zoom instead of overflowing. */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-block: 12px; }
.brand { display: flex; min-width: 0; min-height: 44px; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.brand span { font-family: var(--display); font-size: 15px; letter-spacing: .2px; }
html[lang="ur"] .brand span { font-family: var(--urdu); font-size: 14px; }
.switch { display: flex; flex: none; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.switch button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--ink-soft);
  font: 600 13px/1.4 var(--body);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .18s, color .18s;
}
.switch button:hover { color: var(--ink); }
.switch button[aria-pressed="true"] { background: var(--hc-yellow); color: #2A2E2F; }
.switch button svg { width: 17px; height: 17px; }
.switch button[lang="ur"] { font-family: var(--urdu); line-height: 1.9; }

/* Hero. Block-only spacing keeps the shared page gutters intact. */
.hero { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 36px); text-align: center; }
.eyebrow {
  display: inline-block;
  max-width: 100%;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hc-orange);
  border: 1px solid var(--hc-orange);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 18px;
  text-wrap: balance;
}
html[lang="ur"] .eyebrow { letter-spacing: 0; text-transform: none; font-family: var(--urdu); padding: 6px 14px; }
.hero h1 { font: 400 clamp(30px, 5.3vw, 54px)/1.18 var(--display); margin: 0 auto 16px; max-width: 18ch; text-wrap: balance; }
html[lang="ur"] .hero h1 { font-family: var(--urdu); line-height: 1.9; max-width: 24ch; }
.hero > p:not(.eyebrow) { color: var(--ink-soft); max-width: 48ch; margin: 0 auto; font-size: clamp(15px, 2.2vw, 18px); }

/* App cards. Zero minimum grid tracks allow content to wrap naturally. */
.lanes { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: clamp(40px, 7vw, 72px); }
.lanes::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: clamp(40px, 7vw, 72px);
  inset-inline-start: calc(var(--pad) + 5px);
  width: 3px;
  background: repeating-linear-gradient(to bottom, var(--road) 0 18px, transparent 18px 34px);
  opacity: .28;
  animation: drive 2.4s linear infinite;
  pointer-events: none;
}
@keyframes drive { to { background-position-y: 34px; } }
.lane {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
  margin-inline-start: 24px;
}
.lane > * { max-width: 100%; }
.lane__tag { display: inline-block; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; margin: 0 0 14px; }
html[lang="ur"] .lane__tag { letter-spacing: 0; text-transform: none; font-family: var(--urdu); }
.lane--rider .lane__tag { background: var(--hc-yellow); color: #2A2E2F; }
.lane--driver .lane__tag { background: var(--hc-orange); color: #fff; }
.lane h2 { font: 400 clamp(24px, 3vw, 32px)/1.3 var(--display); margin: 0 0 12px; text-wrap: balance; }
html[lang="ur"] .lane h2 { font-family: var(--urdu); line-height: 1.9; }
.lane__desc { color: var(--ink-soft); margin: 0 0 20px; font-size: 16px; }
.lane__points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 9px; }
.lane__points li { position: relative; padding-inline-start: 22px; font-size: 15px; color: var(--ink-soft); }
.lane__points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--hc-yellow); }
.lane--driver .lane__points li::before { background: var(--hc-orange); }
html[lang="ur"] .lane__points li::before { top: 1em; }

/* Buttons respond to their card's available width, not just the viewport. */
.stores, .dl { display: grid; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 10px; }
.stores { width: 100%; margin-top: auto; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(10.5rem, calc((100% - 10px) / 2))), 1fr)); }
.dl { margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
html[lang="ur"] .stores { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(12rem, calc((100% - 10px) / 2))), 1fr)); }
.store {
  display: flex;
  min-width: 0;
  min-height: 60px;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  background: var(--hc-dark);
  color: #fff;
  border: 1px solid var(--hc-dark);
  border-radius: 11px;
  padding: 12px 14px;
  transition: transform .16s ease, filter .16s ease;
}
[data-theme="dark"] .store { background: #F2EFE7; color: #23282A; border-color: #F2EFE7; }
.store svg { width: 24px; height: 24px; flex: none; }
.store > span { min-width: 0; }
.store b { display: block; font: 600 15px/1.35 var(--body); overflow-wrap: anywhere; }
.store small { display: block; font: 400 11px/1.5 var(--body); letter-spacing: .04em; text-transform: uppercase; opacity: .75; overflow-wrap: anywhere; }
html[lang="ur"] .store b, html[lang="ur"] .store small { font-family: var(--urdu); letter-spacing: 0; text-transform: none; line-height: 2.2; }
html[lang="ur"] .store small { font-size: 11px; }
.store[aria-disabled="true"] { background: transparent; color: var(--ink-soft); border: 1px dashed var(--line); pointer-events: none; opacity: .85; }
.store--apk { grid-column: 1 / -1; background: transparent; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .store--apk { background: transparent; color: var(--ink); border-color: var(--line); }
.store--apk svg { color: var(--hc-orange); }

/* Getting started and troubleshooting. */
.steps, .fix { border-top: 1px solid var(--line); padding-block: var(--section-space); }
.steps h2, .fix h2, .more h2 { font: 400 clamp(22px, 3vw, 28px)/1.35 var(--display); margin: 0 0 6px; text-wrap: balance; }
html[lang="ur"] .steps h2, html[lang="ur"] .fix h2, html[lang="ur"] .more h2 { font-family: var(--urdu); line-height: 1.95; }
.steps h2 { margin-bottom: 26px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.steps li { display: flex; min-width: 0; gap: 14px; align-items: flex-start; }
.steps li > div { min-width: 0; }
.steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font: 600 14px/1 var(--body); display: grid; place-items: center; color: var(--hc-orange); }
.steps b { display: block; font-weight: 600; font-size: 16px; }
.steps span { color: var(--ink-soft); font-size: 15px; }
.steps__hint { margin: 22px 0 0; font-size: 15px; }
.steps__hint a { display: inline-block; padding-block: 8px; color: var(--hc-orange); text-underline-offset: 3px; }
#otp-help { scroll-margin-top: 16px; }
.fix__sub { color: var(--ink-soft); font-size: 15px; margin: 0 0 20px; max-width: 70ch; }
.tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.tabs button { flex: 1 1 0; min-width: 0; border: 0; cursor: pointer; background: transparent; color: var(--ink-soft); font: 600 14px/1.5 var(--body); padding: 11px 12px; min-height: 48px; border-radius: 9px; overflow-wrap: anywhere; transition: background .18s, color .18s; }
html[lang="ur"] .tabs button { font-family: var(--urdu); font-size: 13px; line-height: 2.25; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--hc-yellow); color: #2A2E2F; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.panel__lead { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }
.panel ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; }
.panel ol li { font-size: 15px; color: var(--ink-soft); padding-inline-start: 4px; }
.panel ol li::marker { color: var(--hc-orange); font-weight: 600; }
.panel__note { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }

/* Help and footer. Phone numbers keep their reading direction in Urdu. */
.help { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: clamp(34px, 5vw, 52px); }
.help > div { min-width: 0; }
.help h2 { font: 400 22px/1.4 var(--display); margin: 0 0 4px; }
html[lang="ur"] .help h2 { font-family: var(--urdu); line-height: 2; }
.help p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.help__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; min-width: 0; min-height: 48px; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: 600 15px/1.6 var(--body); padding: 11px 16px; border-radius: 10px; border: 1px solid var(--hc-dark); background: var(--hc-dark); color: #fff; transition: transform .16s ease; }
.btn span { min-width: 0; }
html[lang="ur"] .btn { font-family: var(--urdu); line-height: 2.2; }
.btn[href^="tel:"] span { direction: ltr; unicode-bidi: isolate; font-family: var(--body); white-space: nowrap; }
[data-theme="dark"] .btn { background: #F2EFE7; color: #23282A; border-color: #F2EFE7; }
.btn--ghost, [data-theme="dark"] .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn svg { width: 17px; height: 17px; flex: none; }
footer { border-top: 1px solid var(--line); padding-block: 26px 40px; font-size: 14px; color: var(--ink-soft); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; min-width: 0; }
.foot a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; text-underline-offset: 5px; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Other Hamara Chakwal services. */
.more { border-top: 1px solid var(--line); padding-block: var(--section-space) clamp(28px, 4vw, 42px); text-align: center; }
.more__sub { color: var(--ink-soft); font-size: 15px; margin: 0 0 clamp(20px, 3vw, 30px); }
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 16px; }
.tile { flex: 0 1 185px; min-width: 0; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; padding-bottom: 6px; }
.tile--services { --halo: #FFD466; --pill: #B57C00; }
.tile--mart { --halo: #E3ED5A; --pill: #6E7A16; }
.tile--deals { --halo: #FF8A3D; --pill: #C25400; }
.tile--property { --halo: #9BB4FF; --pill: #2D6FE0; }
.tile--food { --halo: #8ADCB0; --pill: #2E9E68; }
.tile__art { position: relative; width: 150px; max-width: 100%; height: 150px; margin-bottom: -14px; display: grid; place-items: center; }
.tile__art::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(180deg, var(--halo) 0%, transparent 84%); opacity: .6; transition: opacity .2s ease; }
[data-theme="dark"] .tile__art::before { opacity: .34; }
.tile__disc { position: relative; width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px -9px rgb(60 65 66 / 50%); transition: transform .2s ease; }
.tile__disc img { width: 56px; height: 56px; object-fit: contain; }
.tile__pill { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); max-width: 100%; background: var(--pill); color: #fff; white-space: nowrap; font: 600 11.5px/1.6 var(--body); letter-spacing: .03em; padding: 5px 13px; border-radius: 999px; box-shadow: 0 4px 10px -4px rgb(0 0 0 / 45%); }
html[lang="ur"] .tile__pill { font-family: var(--urdu); letter-spacing: 0; padding: 3px 13px; line-height: 2; }
.tile__title { position: relative; max-width: 100%; font: 400 19px/1.4 var(--display); margin-bottom: 5px; }
html[lang="ur"] .tile__title { font-family: var(--urdu); line-height: 2; }
.tile__desc { position: relative; font-size: 14px; line-height: 1.5; color: var(--ink-soft); max-width: min(100%, 23ch); }
html[lang="ur"] .tile__desc { line-height: 2.2; }

/* Wide cards begin only when both columns remain comfortable to read. */
@media (min-width: 900px) {
  .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .lanes::before { inset-inline-start: calc(50% - 1.5px); }
  .lane { margin-inline-start: 0; }
  .steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .help { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 599px) {
  body { font-size: 16px; }
  .top__in { gap: 6px; padding-block: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand span { display: none; }
  .switch { padding: 2px; }
  .switch button { padding: 8px; font-size: 12px; }
  .hero h1 { max-width: 18ch; }
  .eyebrow { font-size: 11px; padding: 5px 11px; margin-bottom: 14px; }
  .lane { margin-inline-start: 20px; padding: 22px 17px; }
  .lane__desc { font-size: 15px; }
  .tabs { flex-direction: column; }
  .tabs button { flex-basis: auto; }
  .help__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: 9px; }
  .btn { padding: 11px 10px; font-size: 14px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tiles { gap: 24px 12px; }
  .tile { flex-basis: calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); }
  .tile__art { width: 124px; height: 124px; margin-bottom: -10px; }
  .tile__disc { width: 78px; height: 78px; }
  .tile__disc img { width: 46px; height: 46px; }
  .tile__pill { bottom: 8px; font-size: 10.5px; padding: 4px 10px; }
  .tile__title { font-size: 17px; }
  .tile__desc { font-size: 13px; }
}

@media (hover: hover) and (pointer: fine) {
  .store:hover { transform: translateY(-2px); filter: brightness(1.08); }
  .btn:hover { transform: translateY(-2px); }
  .tile:hover .tile__disc { transform: translateY(-5px); }
  .tile:hover .tile__art::before { opacity: .85; }
  [data-theme="dark"] .tile:hover .tile__art::before { opacity: .5; }
  .tile:hover .tile__title { color: var(--hc-orange); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
