/* Patients Care Rehab Welfare Society — main stylesheet */
:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --red-soft: #fbe9ec;
  --ink: #1c1517;
  --ink-2: #4a4245;
  --muted: #7a7073;
  --bg: #fbf8f5;
  --card: #ffffff;
  --line: #ece4df;
  --gold: #e7b04a;
  --green: #1f8a5b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 21, 23, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.urdu {
  font-family: "Noto Nastaliq Urdu", serif;
  direction: rtl;
  line-height: 2.2;
}
.container { width: min(var(--max), 92%); margin: 0 auto; }
.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.01em; margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 8px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 680px; }
.center .lead { margin: 0 auto; }
.text-red { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; transition: all .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--red-soft); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* Top bar */
.topbar { background: var(--ink); color: #e9e1de; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar .tb-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .tb-slogan { color: var(--gold); font-weight: 500; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 60px; width: auto; }
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-size: 17px; color: var(--ink); }
.brand-text span { font-size: 12px; color: var(--red); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--red); background: var(--red-soft); }
.nav a.active { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; display: grid; place-items: center;
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center;
}
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #fde2e6 0%, transparent 60%), var(--bg); }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 84px 0 96px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 span { color: var(--red); }
.hero p.lead { margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-urdu { margin-top: 30px; font-size: 22px; color: var(--ink); border-right: 4px solid var(--red); padding-right: 16px; }
.hero-card {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 40px 36px; position: relative; box-shadow: var(--shadow);
}
.hero-card::before {
  content: ""; position: absolute; inset: -14px -14px auto auto; width: 120px; height: 120px; border-radius: 28px; background: var(--red); z-index: -1;
}
.hero-card .big-quote { font-size: 30px; font-weight: 700; line-height: 1.25; }
.hero-card .big-quote em { color: var(--gold); font-style: normal; }
.hero-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 26px 0; }
.hero-flow { display: grid; gap: 14px; }
.hero-flow div { display: flex; gap: 14px; align-items: center; font-size: 15px; color: #e6dfdc; }
.hero-flow b { width: 34px; height: 34px; flex: none; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; font-size: 14px; }

/* Slogan band */
.band { background: var(--red); color: #fff; overflow: hidden; }
.band-track { display: flex; gap: 48px; padding: 18px 0; white-space: nowrap; animation: marquee 38s linear infinite; width: max-content; }
.band-track span { font-weight: 600; font-size: 17px; display: inline-flex; align-items: center; gap: 48px; }
.band-track span::after { content: "✦"; color: var(--gold); }
.band-track .urdu { font-size: 18px; line-height: 1.6; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--ink-2); font-size: 15px; }
.icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--red-soft); color: var(--red);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 28px; height: 28px; }
.icon.dark { background: var(--ink); color: #fff; }
.card ul.ticks { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.free-tag { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: #e7f5ee; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* Section heading */
.section-head { margin-bottom: 48px; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* Model (how it works) */
.model { background: var(--ink); color: #fff; }
.model .lead { color: #cfc6c3; }
.model-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.model-step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px; position: relative; }
.model-step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 40px; font-weight: 800; color: var(--red); display: block; margin-bottom: 10px; line-height: 1;
}
.model-step h3 { color: #fff; }
.model-step p { color: #cfc6c3; font-size: 15px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.stat strong { display: block; font-size: 42px; font-weight: 800; color: var(--red); line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: 15px; }

/* Split feature */
.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.photo-slot {
  aspect-ratio: 4 / 3; border-radius: 24px; background:
    linear-gradient(135deg, rgba(200,16,46,.92), rgba(28,21,23,.92)),
    repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 14px);
  color: #fff; display: grid; place-items: center; text-align: center; padding: 32px; position: relative; overflow: hidden;
}
.photo-slot .ps-inner { max-width: 340px; }
.photo-slot .ps-inner .urdu { font-size: 28px; }
.photo-slot small { display: block; margin-top: 10px; opacity: .75; font-size: 13px; }
.quote-box { border-left: 4px solid var(--red); padding: 6px 0 6px 20px; margin: 24px 0; font-size: 19px; font-weight: 600; }

/* Products */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.chip.active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-thumb { aspect-ratio: 16/10; display: grid; place-items: center; font-size: 56px; background: var(--red-soft); position: relative; }
.product-thumb .p-brand { position: absolute; left: 14px; top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #fff; color: var(--red); padding: 4px 10px; border-radius: 999px; }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 17px; margin: 0; }
.product-body p { font-size: 14px; color: var(--muted); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.price { font-weight: 700; font-size: 18px; }
.price small { font-weight: 500; font-size: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 16px; color: var(--ink-2); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red-soft); border-color: var(--red); }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: #fff; z-index: 100;
  transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cart-item .ci-emoji { width: 52px; height: 52px; border-radius: 12px; background: var(--red-soft); display: grid; place-items: center; font-size: 26px; }
.cart-item h4 { font-size: 15px; font-weight: 600; }
.cart-item small { color: var(--muted); }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }
.checkout { display: none; }
.checkout.show { display: grid; gap: 12px; margin-top: 18px; }

/* Page hero */
.page-hero { background: var(--ink); color: #fff; padding: 72px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(200,16,46,.5); }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 50px); }
.page-hero p { color: #d8cfcc; max-width: 640px; margin-top: 14px; font-size: 18px; }
.crumbs { font-size: 14px; color: #b9aeab; margin-bottom: 14px; }
.crumbs a:hover { color: #fff; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta p { color: #ffe3e7; margin-top: 10px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -32px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.tl-item h4 { font-size: 17px; }
.tl-item p { color: var(--ink-2); font-size: 15px; }

/* Contact */
.contact-list { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon { margin: 0; width: 48px; height: 48px; flex: none; }
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: 16px; }
.contact-item p, .contact-item a { color: var(--ink-2); font-size: 15px; }
.contact-item a:hover { color: var(--red); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* Footer */
.footer { background: #140f10; color: #cbc2bf; padding: 72px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer .f-brand img { height: 74px; background: #fff; border-radius: 14px; padding: 6px; margin-bottom: 16px; }
.footer .f-brand p { font-size: 15px; }
.footer .f-urdu { color: var(--gold); font-size: 18px; margin-top: 12px; text-align: left; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 22px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; background: #25d366; color: #fff; border-radius: 999px;
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-weight: 600; box-shadow: 0 10px 25px rgba(37,211,102,.4);
}
.wa-float svg { width: 24px; height: 24px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; font-size: 14px; z-index: 120; transition: transform .3s ease; }
.toast.show { transform: translate(-50%, 0); }

/* Doctors */
.doc { text-align: center; }
.doc .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-weight: 700; font-size: 26px; }
.doc span { color: var(--muted); font-size: 14px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4, .stats, .model-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 10px; font-size: 14px; white-space: nowrap; }
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; top: 82px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 4%; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
}
@media (max-width: 860px) {
  .hero .container, .split-feature, .cta, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .cta .actions { justify-content: flex-start; }
  .header-actions .btn { display: none; }
  .topbar .tb-slogan { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-4, .stats, .model-steps, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .cta { padding: 36px 26px; }
  .brand-text span { display: none; }
  .brand-text strong { font-size: 14px; }
  .brand img { height: 50px; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .topbar .tb-left a:nth-child(n+2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .band-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
