/* Taj Battery — site styles.
   Brand: signboard blue + sun yellow (logo B), Nunito for headings and body.
   Layout: deep blue hero band, light content sections, yellow for the main action. */
:root {
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #e9f0fa;
  --ink: #14213d;
  --muted: #4f5d78;
  --line: #d8e1ef;
  --brand: #1e5bb8;
  --brand-ink: #ffffff;
  --sun: #f5b400;
  --sun-ink: #1a1400;
  --sun-text: #154391;
  --logo-bg: transparent;
  --leaf: #13873f;
  --leaf-ink: #ffffff;
  --panel: #12336b;
  --panel-2: #1a4588;
  --on-panel: #ffffff;
  --on-panel-muted: #f2f6fc;

  --font-display: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Nunito", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;

  --radius: 12px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1424;
    --surface: #131e33;
    --surface-2: #18253f;
    --ink: #e9eef7;
    --muted: #a3b0c6;
    --line: #26355a;
    --brand: #2d6ccc;
    --logo-bg: #ffffff;
    --sun-text: #f5c02a;
    --leaf: #1c9a4c;
    --panel: #0e2754;
    --panel-2: #163a74;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1424;
  --surface: #131e33;
  --surface-2: #18253f;
  --ink: #e9eef7;
  --muted: #a3b0c6;
  --line: #26355a;
  --brand: #2d6ccc;
  --logo-bg: #ffffff;
  --sun-text: #f5c02a;
  --leaf: #1c9a4c;
  --panel: #0e2754;
  --panel-2: #163a74;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.8vw, 3.1rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.ur { font-family: var(--font-urdu); direction: rtl; line-height: 2.1; font-weight: 400; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 8vw, 88px); }
.section--alt { background: var(--surface-2); }
.stack { display: grid; gap: 16px; }
.eyebrow {
  font-family: var(--font-body); font-weight: 800; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--sun-text);
}
.section-head { display: grid; gap: 10px; max-width: 64ch; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.section-head .ur { color: var(--muted); font-size: 1.05rem; }
/* Hidden until focused; clipped in place (not moved off-screen) so right-to-left pages don't get extra width */
.skip { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; inset-inline-start: 16px; top: 16px; z-index: 100; background: var(--sun); color: var(--sun-ink); padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 700 1.02rem/1.2 var(--font-display); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sun { background: var(--sun); color: var(--sun-ink); }
.btn--blue { background: var(--brand); color: var(--brand-ink); }
.btn--wa { background: var(--leaf); color: var(--leaf-ink); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--sm { padding: 8px 14px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand img { width: 44px; height: 44px; flex: none; background: var(--logo-bg); border-radius: 10px; padding: 2px; }
.brand b { display: block; font: 800 1.25rem/1.1 var(--font-display); color: var(--ink); }
.brand span { display: block; font: 700 0.7rem/1.3 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; padding: 6px 10px; border-radius: 8px; color: var(--muted); display: grid; justify-items: center; line-height: 1.2; }
.nav a span { font: 700 1rem/1.3 var(--font-display); }
.nav a small { font-size: 0.72rem; line-height: 1.9; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--sun-text); background: var(--surface-2); }
.nav a[aria-current="page"] span { font-weight: 800; }
.header-cta { display: flex; gap: 8px; }
.menu { display: none; }
@media (max-width: 1100px) { .header-cta .btn { display: none; } }
@media (max-width: 1240px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; padding: 6px 14px; border: 1px solid var(--line);
    border-radius: 10px; font: 700 1rem/1.4 var(--font-display); display: flex; align-items: center; gap: 8px;
  }
  .menu summary .ur { font-size: 0.8rem; line-height: 1.8; color: var(--muted); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .nav {
    display: grid; position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(280px, 86vw);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  }
  .menu[open] .nav a { grid-template-columns: 1fr auto; justify-items: start; align-items: center; padding: 10px 12px; }
  .menu[open] .nav a span { font-size: 1.05rem; }
}

/* Hero (always the dark panel band) */
.hero {
  background-color: #12336b; /* fallback if custom properties fail */
  background-color: var(--panel);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--on-panel);
  padding-block: clamp(48px, 8vw, 96px);
}
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 1.25fr 1fr; align-items: center; }
.hero p.lead { color: var(--on-panel-muted); font-size: 1.15rem; max-width: 56ch; }
.hero-sm { padding-block: clamp(28px, 5vw, 52px); }
.hero-sm h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.hero-sm .hero-copy { gap: 12px; }
.hero .ur-line { color: var(--sun); font-size: clamp(1.15rem, 2.6vw, 1.5rem); }
.hero-copy { display: grid; gap: 20px; }
.hero .btn--ghost { color: var(--on-panel); }
.hero-sm .wrap { grid-template-columns: 1fr; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Spec board: a sample system breakdown */
.spec {
  background: var(--panel-2); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius); padding: 24px; display: grid; gap: 16px;
}
.spec h2 { font-size: 1.6rem; }
.spec dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; }
.spec dt { color: var(--on-panel-muted); }
.spec dd { margin: 0; font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
.spec dd.big { color: var(--sun); font: 700 1.6rem/1 var(--font-display); }
.spec h2 { font-size: 1.35rem; }
.spec small { color: var(--on-panel-muted); font-size: 0.82rem; }

/* Trust strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.facts a { background: var(--surface); padding: 20px var(--gutter); display: grid; gap: 4px; text-decoration: none; color: var(--ink); position: relative; transition: background .15s ease; }
.facts a::after { content: "→"; position: absolute; inset-inline-end: 16px; top: 18px; color: var(--sun-text); font-weight: 800; }
.facts a:lang(ur)::after, html:lang(ur) .facts a::after { content: "←"; }
.facts a:hover { background: var(--surface-2); }
.facts a:hover b { color: var(--sun-text); }
.facts b { font: 800 1.08rem/1.3 var(--font-display); }
.facts span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.card p { color: var(--muted); }
.card .ur { font-size: 0.95rem; }
.card .more { margin-top: auto; font-weight: 700; color: var(--sun-text); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.icon { width: 44px; height: 44px; border-radius: 8px; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; }

/* Package cards */
.pkg { position: relative; }
.pkg--top { border: 2px solid var(--sun); }
.pkg .tag {
  align-self: flex-start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.pkg--top .tag { background: var(--sun); color: var(--sun-ink); }
.pkg .size { font: 800 2.7rem/1 var(--font-display); color: var(--ink); }
.pkg .size small { font-size: 1.2rem; font-weight: 700; color: var(--muted); }
.pkg .kind { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.pkg .units { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; color: var(--muted); }
.pkg .units b { font: 800 1.3rem/1.2 var(--font-display); color: var(--sun-text); }
.pkg dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; border-block: 1px solid var(--line); padding-block: 14px; font-size: 0.95rem; }
.pkg dt { color: var(--muted); }
.pkg dd { margin: 0; font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; }
.pkg ul { margin: 0; padding-inline-start: 1.1em; color: var(--muted); font-size: 0.95rem; display: grid; gap: 4px; }
.pkg .btn { margin-top: auto; }
.note { font-size: 0.88rem; color: var(--muted); max-width: 80ch; }

/* Compare table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.97rem; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--font-display); font-size: 1.02rem; font-weight: 800; background: var(--surface-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; }

/* Accessory catalogue */
.cat { display: grid; gap: 14px; }
.cat h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cat h3 .ur { font-size: 1rem; color: var(--muted); }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.items li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
}
.items b { font-size: 1.02rem; }
.items span { color: var(--muted); font-size: 0.92rem; }
.items a { margin-top: auto; align-self: flex-start; font-size: 0.9rem; font-weight: 700; color: var(--leaf); text-decoration: none; padding-top: 6px; }
.items a:hover { text-decoration: underline; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.jump a { text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; background: var(--surface); }
.jump a:hover { border-color: var(--sun); }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: "Step " counter(step); font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun-text); }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Small battery band (de-emphasised) */
.band { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.band p { color: var(--muted); }
@media (max-width: 700px) { .band { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.faq summary { cursor: pointer; font: 700 1.05rem/1.5 var(--font-display); }
.faq details p { margin-top: 10px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.nap { display: grid; gap: 18px; }
.nap div { display: grid; gap: 2px; }
.nap dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.nap dd { margin: 0; font-size: 1.2rem; font-weight: 700; }
.nap dd a { text-decoration: none; }
.nap dd a:hover { text-decoration: underline; }
form.quote { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
form.quote label { display: grid; gap: 6px; font-weight: 700; font-size: 0.95rem; }
form.quote input, form.quote select, form.quote textarea {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; width: 100%;
}
form.quote textarea { min-height: 96px; resize: vertical; }
form.quote .hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }

/* CTA band */
.cta { background-color: #12336b; background-color: var(--panel); color: #ffffff; }
.cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta p { color: var(--on-panel-muted); }
.cta .ur { color: var(--sun); font-size: 1.2rem; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: 1.2rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer p { color: var(--muted); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 0.85rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Call + WhatsApp bar fixed to the bottom on phones and tablets */
.callbar { display: none; }
@media (max-width: 1100px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
  }
  .callbar .btn { padding-block: 12px; font-size: 1.05rem; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

.crumbs { font-size: 0.9rem; color: var(--on-panel-muted); }
.crumbs a { color: var(--on-panel-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: 0.6; }

/* Shop photo */
.shop { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.shop figure { margin: 0; }
.shop img, .shop-photo img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 619 / 510; object-fit: cover; }
.shop p { color: var(--muted); }
.shop p a { color: var(--sun-text); font-weight: 700; }
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } }

/* Sunlight in the hero corner (pure CSS, no image download) */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(245, 180, 0, 0.32), rgba(245, 180, 0, 0) 65%);
  animation: sunrise 1.6s ease-out both;
}
@keyframes sunrise { from { transform: translateY(80px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

/* Photos */
.ph { margin: 0; display: grid; gap: 8px; align-content: start; }
.ph img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--surface-2); }
.ph figcaption { font-size: 0.88rem; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip .ph img { aspect-ratio: 4 / 3; object-fit: cover; }
.strip--2 { grid-template-columns: 1fr 1fr; }
.strip-section { padding-block-start: 0; }
@media (max-width: 860px) { .strip { grid-template-columns: 1fr 1fr; } }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.media-row p, .media-row li { color: var(--muted); }
.media-row ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 4px; }
.media-row--tall { grid-template-columns: minmax(0, 0.6fr) 1fr; }
.media-row--tall .ph img { max-height: 560px; width: auto; margin-inline: auto; }
@media (max-width: 860px) { .media-row, .media-row--tall { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery .ph img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.gallery .ph { overflow: hidden; }
.gallery .ph:hover img { transform: scale(1.02); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery, .strip--2 { grid-template-columns: 1fr; } }
.cat-media { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 16px; align-items: start; }
.cat-media .ph img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 700px) { .cat-media { grid-template-columns: 1fr; } }
.gallery .ph img[src*="exide-sign"] { object-position: center 30%; }

/* ===================== Phone-first adjustments ===================== */
@media (max-width: 1100px) {
  .site-header .wrap { min-height: 62px; }
  .brand img { width: 38px; height: 38px; }
  .site-footer li a { display: inline-block; padding-block: 6px; }
}
@media (max-width: 620px) {
  body { font-size: 1.0625rem; }
  .section { padding-block: 40px; }
  .section-head { margin-bottom: 22px; }
  .hero { padding-block: 32px 36px; }
  .hero .wrap { gap: 24px; }
  .hero p.lead { font-size: 1.05rem; }
  .spec { display: none; } /* packages right below show the same numbers */
  .btn-row { display: grid; grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .cta .btn-row .btn { width: 100%; }
  .facts a { padding: 14px 16px; }
  .card { padding: 18px; }

  /* Swipe rows: packages and shop photos scroll sideways, the next card peeks in */
  .swipe {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  .swipe > * { scroll-snap-align: start; }

  /* Accessories: category chips scroll in one line; price links become tap-friendly buttons */
  .jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 6px; }
  .jump a { white-space: nowrap; padding: 8px 14px; }
  .items { grid-template-columns: 1fr; }
  .items a { align-self: stretch; text-align: center; padding: 10px; border: 1px solid var(--leaf); border-radius: 10px; margin-top: 8px; }

  /* Tables: tighter cells; the sizing table fits the screen without sideways scrolling */
  th, td { padding: 10px 12px; }
  table { font-size: 0.95rem; min-width: 520px; }
  table.fit { min-width: 0; }

  .steps li, .faq details { padding: 16px; }
  form.quote { padding: 18px; }
  .nap dd { font-size: 1.1rem; }
}

/* Text on the dark blue bands: yellow labels, near-white body text */
.hero .eyebrow, .spec .eyebrow, .cta .eyebrow { color: var(--sun); }
.hero p.lead, .cta p { color: #ffffff; font-weight: 700; }
.hero p.lead { font-size: 1.2rem; line-height: 1.6; }
.spec dt, .spec small, .crumbs, .crumbs a { color: #ffffff; }

/* "Coming soon" tag */
.soon {
  display: inline-block; vertical-align: middle; margin-inline-start: 6px;
  font: 800 0.72rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--sun); color: var(--sun-ink); padding: 5px 9px; border-radius: 999px;
}
.card--soon { border-style: dashed; }

/* Car battery highlight */
.carbat .ph img { aspect-ratio: 4 / 3; object-fit: cover; }
.brands { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.brands li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 700; color: var(--ink); }

/* Language switch (English | اردو) */
.lang {
  display: inline-flex; align-items: center; text-decoration: none; padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--ink); font-weight: 700; white-space: nowrap;
}
.lang:lang(ur) { font-family: var(--font-urdu); font-weight: 400; font-size: 1.05rem; line-height: 1.6; padding-block: 2px 8px; }
.lang:hover { border-color: var(--sun); }

/* ===================== Urdu pages (ur/) ===================== */
:root:lang(ur) {
  --font-display: "Nunito", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --font-body: "Nunito", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
}
html:lang(ur) body { line-height: 2.2; }
html:lang(ur) h1, html:lang(ur) h2, html:lang(ur) h3 { line-height: 1.9; letter-spacing: 0; }
html:lang(ur) h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
html:lang(ur) .hero-sm h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
html:lang(ur) h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
html:lang(ur) h3 { font-size: 1.2rem; }
/* Letter-spacing and capitals break joined Urdu letters */
html:lang(ur) .eyebrow, html:lang(ur) .tag, html:lang(ur) .soon, html:lang(ur) .nap dt,
html:lang(ur) .steps li::before { letter-spacing: 0; text-transform: none; }
html:lang(ur) .eyebrow { font-size: 0.95rem; }
html:lang(ur) .nav a { font-size: 1.02rem; line-height: 1.7; padding-block: 2px 8px; }
html:lang(ur) .btn { line-height: 1.8; padding-block: 8px 12px; }
html:lang(ur) .pkg .kind, html:lang(ur) .brand { text-align: left; }
html:lang(ur) .brand span { letter-spacing: 0.1em; text-transform: uppercase; }
html:lang(ur) .ur-line { font-size: clamp(1.2rem, 2.8vw, 1.6rem); }
html:lang(ur) .faq summary { line-height: 1.9; }
html:lang(ur) form.quote input, html:lang(ur) form.quote textarea, html:lang(ur) form.quote select { line-height: 1.9; }

/* Jump links land below the sticky header */
section[id], .cat[id], article[id] { scroll-margin-top: 90px; }

/* Keep the header on one line on laptops */
.nav a, .btn, .lang { white-space: nowrap; }
@media (max-width: 1440px) { .header-cta .btn--call { display: none; } }
.brand { flex: none; } .brand div { white-space: nowrap; }

/* Nastaliq needs tall lines everywhere, including the hero paragraph */
html:lang(ur) p, html:lang(ur) li, html:lang(ur) dd, html:lang(ur) dt, html:lang(ur) .hero p.lead, html:lang(ur) .cta p { line-height: 2.2; }
html:lang(ur) .hero-copy { gap: 16px; }
html:lang(ur) .menu summary { padding-block: 2px 8px; line-height: 1.8; }

/* A swipe row that is itself the .wrap keeps its own gutter instead of bleeding past the screen */
@media (max-width: 620px) { .wrap.swipe { margin-inline: 0; } }
html:lang(ur) .steps li::before { content: "مرحلہ " counter(step); font-family: var(--font-urdu); font-size: 0.95rem; }

/* Car batteries page */
.cars li { font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 70ch; }
.checklist li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; padding-inline-start: 44px; position: relative; }
.checklist li::before { content: "!"; position: absolute; inset-inline-start: 14px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; }
@media (max-width: 960px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.shop .visit { background: var(--surface-2); border-radius: var(--radius); padding: 12px 16px; color: var(--ink); }
@media (max-width: 400px) {
  .site-header .wrap { gap: 8px; }
  .header-cta { gap: 6px; }
  .lang, .menu summary { padding-inline: 10px; }
}
/* Two short side-by-side cards instead of comparison tables */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo .card { padding: 18px 20px; gap: 6px; }
@media (max-width: 520px) { .duo { grid-template-columns: 1fr; } }
.media-row ul.brands { display: flex; flex-wrap: wrap; padding: 0; gap: 8px; }

/* Battery exchange banner (home page): bold, with a soft light sweep instead of flashing */
.swap {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  padding: 12px var(--gutter); background: var(--sun); color: var(--sun-ink);
  text-decoration: none; text-align: center; font-size: 1.02rem; line-height: 1.5;
}
.swap b { font-weight: 800; }
.swap-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sun-ink); color: var(--sun); flex: none; }
.swap-icon svg { width: 20px; height: 20px; animation: swap-turn 4.5s ease-in-out infinite; }
.swap-cta { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.swap::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; width: 35%; left: -40%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  animation: swap-shine 4.5s ease-in-out infinite;
}
.swap:hover .swap-cta { text-decoration-thickness: 2px; }
@keyframes swap-shine { 0% { left: -40%; } 45%, 100% { left: 110%; } }
@keyframes swap-turn { 0%, 55% { transform: rotate(0); } 75%, 100% { transform: rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .swap::after, .swap-icon svg { animation: none; } .swap::after { display: none; } }
html:lang(ur) .swap { line-height: 2; }
@media (max-width: 620px) { .swap { font-size: 0.98rem; padding-block: 10px; } }
@media (max-width: 620px) {
  .swap { justify-content: flex-start; text-align: start; gap: 4px 12px; }
  .swap-icon { width: 30px; height: 30px; }
  .swap-text { flex: 1 1 0; min-width: 0; }
  .swap-cta { flex-basis: 100%; padding-inline-start: 42px; }
}

/* Package detail pages: line-art appliance tiles */
.loads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .loads { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.load { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; display: grid; justify-items: center; gap: 4px; text-align: center; }
.load-art { width: 64px; height: 64px; color: var(--sun-text); }
.load-art svg { width: 100%; height: 100%; }
.load-n { font: 800 1.6rem/1.2 var(--font-display); color: var(--ink); }
.load span:last-child { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 620px) { .loads { grid-template-columns: repeat(2, 1fr); } .load-art { width: 52px; height: 52px; } }
.pkg .size a, .spec h2 a { color: inherit; text-decoration: none; }
.pkg .size a:hover, .spec h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.pkg-switch a[aria-current="page"] { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); font-weight: 800; }
.nowrap { white-space: nowrap; }
.spec-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-chips li { border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); color: #ffffff; border-radius: 999px; padding: 6px 14px; font-weight: 700; }
html:lang(ur) .spec-chips li { line-height: 2; padding-block: 2px 6px; }
