/* ═══════════════════════════════════════════════════
   SWARAAJ — SHARED CSS (shared.css)
   Include on every page via header.php
   Last updated: 2025
═══════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --p:   #490d52;
  --pm:  #6d3d74;
  --pl:  #f3e8f7;
  --g:   #ffcc00;
  --gd:  #d4a800;
  --dk:  #1a0d1e;
  --bd:  #4a4568;
  --lt:  #faf7ff;
  --wh:  #ffffff;
  --gr:  #16a34a;
  --rd:  #dc2626;
  --r:   14px;
  --sh:  0 4px 24px rgba(73,13,82,.13);
  --fw:  'Baloo Bhai 2', sans-serif;
  --fb:  'Hind', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
body {
  font-family: var(--fb);
  background: #fff;
  color: var(--dk);
  margin: 0; padding: 0;
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.sw-navbar {
  background-color: var(--p);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.sw-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 20px; height: 68px;
}
.sw-nav-logo img {
  height: 52px; width: auto; object-fit: contain;
  display: block;
}
.sw-nav-links {
  display: flex; align-items: center;
  gap: 4px; list-style: none; margin: 0; padding: 0;
}
.sw-nav-links li a,
.sw-nav-links li button.sw-nav-btn-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: var(--fw);
  font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 8px;
  display: block; transition: all 0.18s;
  background: none; border: none; cursor: pointer;
  white-space: nowrap;
}
.sw-nav-links li a:hover,
.sw-nav-links li button.sw-nav-btn-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.sw-nav-links li a.active { color: var(--g); }

/* Download btn in nav */
.sw-nav-dl {
  background: var(--g) !important;
  color: var(--dk) !important;
  font-weight: 800 !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
}
.sw-nav-dl:hover {
  background: var(--gd) !important;
  box-shadow: 0 4px 14px rgba(255,204,0,0.4) !important;
}

/* Hamburger */
.sw-hamburger {
  display: none; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.sw-hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all 0.25s;
}
.sw-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sw-hamburger.open span:nth-child(2) { opacity: 0; }
.sw-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.sw-nav-drawer {
  display: none;
  background: var(--dk);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sw-nav-drawer.open { display: block; }
.sw-nav-drawer ul {
  list-style: none; margin: 0; padding: 12px 16px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.sw-nav-drawer ul li a,
.sw-nav-drawer ul li button {
  display: block; padding: 12px 16px;
  color: rgba(255,255,255,0.85);
  text-decoration: none; font-family: var(--fw);
  font-weight: 600; font-size: 15px;
  border-radius: 10px; transition: background 0.15s;
  background: none; border: none; cursor: pointer;
  text-align: left; width: 100%;
}
.sw-nav-drawer ul li a:hover,
.sw-nav-drawer ul li button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sw-nav-drawer .sw-drawer-dl {
  background: var(--g) !important;
  color: var(--dk) !important;
  font-weight: 800 !important;
  text-align: center !important;
  border-radius: 50px !important;
  margin-top: 6px;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.sw-footer {
  background-color: var(--p);
  color: #fff; padding: 44px 0 0;
}
.sw-footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
}
.sw-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
  gap: 36px;
}
.sw-footer-logo img { height: 44px; width: auto; margin-bottom: 14px; }
.sw-footer-desc {
  font-family: var(--fb); font-size: 13px;
  color: rgba(255,255,255,0.65); line-height: 1.7;
  margin-bottom: 16px;
}
.sw-footer-apps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.sw-footer-app-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-family: var(--fw); font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all 0.2s; border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #fff;
}
.sw-footer-app-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.sw-footer-app-btn.driver { border-color: rgba(255,204,0,0.4); }
.sw-footer-app-btn.driver:hover { background: rgba(255,204,0,0.15); }
.sw-footer-app-btn.rider { border-color: rgba(255,255,255,0.3); }

.sw-footer-social { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.sw-footer-social a {
  color: rgba(255,255,255,0.7); font-size: 1.3rem;
  transition: color 0.2s; text-decoration: none;
}
.sw-footer-social a:hover { color: var(--g); }

.sw-footer-col h5 {
  font-family: var(--fw); font-weight: 800; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--g); margin-bottom: 14px;
}
.sw-footer-links { display: flex; flex-direction: column; gap: 8px; }
.sw-footer-links a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-family: var(--fb); font-size: 13.5px;
  transition: color 0.15s; line-height: 1.4;
}
.sw-footer-links a:hover { color: #fff; }

.sw-footer-divider {
  border: none; border-top: 1px solid rgba(255,255,255,0.1);
  margin: 32px 0 0;
}
.sw-footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px 18px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.sw-footer-bottom p {
  font-family: var(--fb); font-size: 12px;
  color: rgba(255,255,255,0.4); margin: 0;
}
.sw-footer-seo {
  font-size: 11px !important;
  color: rgba(255,255,255,0.2) !important;
  max-width: 560px; text-align: right;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════
   SHARED SECTION STYLES (sw-*)
══════════════════════════════════════════════ */
.sw-hero {
  background: linear-gradient(150deg, var(--dk) 0%, var(--p) 55%, var(--pm) 100%);
  padding: 52px 20px 44px; text-align: center;
  color: var(--wh); position: relative; overflow: hidden;
}
.sw-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,204,0,.08), transparent);
}
.sw-hero-img-full {
  width: 100%; display: block;
  max-height: 480px; object-fit: cover;
  object-position: center top;
}
@media (max-width: 575px) {
  .sw-hero-img-full {
    max-height: 55vw;
    min-height: 200px;
  }
}
.sw-badge {
  display: inline-block; background: var(--g); color: var(--dk);
  font-family: var(--fw); font-weight: 800; font-size: 12px;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 14px; letter-spacing: .2px;
}
.sw-hero h1 {
  font-family: var(--fw); font-size: clamp(22px,6vw,42px);
  font-weight: 900; line-height: 1.15;
  margin: 0 0 14px; color: var(--wh);
}
.sw-hero h1 em { color: var(--g); font-style: normal; }
.sw-hero p {
  font-family: var(--fb); font-size: clamp(14px,3.5vw,17px);
  color: rgba(255,255,255,.88); margin: 0 0 28px;
  max-width: 580px; margin-inline: auto; line-height: 1.65;
}
.sw-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Buttons */
.sw-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fw); font-weight: 700; font-size: 15px;
  padding: 12px 24px; border-radius: 50px;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
  cursor: pointer; border: none; line-height: 1;
}
.sw-btn:hover { transform: translateY(-2px); }
.sw-btn-g  { background: var(--g); color: var(--dk); }
.sw-btn-g:hover { background: var(--gd); box-shadow: 0 6px 20px rgba(255,204,0,.4); color: var(--dk); text-decoration: none; }
.sw-btn-ol { background: transparent; color: var(--wh); border: 2px solid rgba(255,255,255,.5); }
.sw-btn-ol:hover { background: rgba(255,255,255,.12); color: var(--wh); text-decoration: none; }
.sw-btn-p  { background: var(--p); color: var(--wh); }
.sw-btn-p:hover { background: #5c1568; color: var(--wh); text-decoration: none; box-shadow: var(--sh); }

/* Trust bar */
.sw-trust {
  display: flex; flex-wrap: wrap; gap: 9px;
  justify-content: center; padding: 16px;
  background: var(--wh); border-bottom: 1px solid var(--pl);
}
.sw-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--pl); border-radius: 50px; padding: 7px 14px;
}
.sw-pill span { font-family: var(--fw); font-size: 13px; font-weight: 700; color: var(--p); }

/* Sections */
.sw-sec { padding: 44px 16px; }
.sw-sec-alt { background: var(--lt); }
.sw-sec-dk { background: linear-gradient(135deg,var(--dk),var(--p)); color: var(--wh); }
.sw-sec h2 {
  font-family: var(--fw); font-size: clamp(19px,5vw,30px);
  font-weight: 900; color: var(--p);
  text-align: center; margin: 0 0 6px; line-height: 1.25;
}
.sw-sec-dk h2 { color: var(--wh); }
.sw-sec h2.hindi { font-size: clamp(21px,5.5vw,32px); }
.sw-sec .sub {
  font-family: var(--fb); font-size: 14px; color: var(--bd);
  text-align: center; margin: 0 0 28px;
  max-width: 540px; margin-inline: auto; line-height: 1.7;
}
.sw-sec-dk .sub { color: rgba(255,255,255,.82); }
.sw-bar { width: 54px; height: 3px; background: var(--g); border-radius: 2px; margin: 0 auto 22px; }

/* Grid layouts */
.g2, .g3, .g4 { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr 1fr; }
@media(min-width:560px) { .g2 { grid-template-columns: 1fr 1fr; gap: 18px; } .g4 { grid-template-columns: repeat(4,1fr); gap: 12px; } }
@media(min-width:768px) { .g3 { grid-template-columns: repeat(3,1fr); gap: 20px; } .g2 { gap: 24px; } }
@media(min-width:992px) { .g4 { gap: 18px; } }

/* Cards */
.sw-card {
  background: var(--wh); border-radius: var(--r);
  padding: 22px 18px; box-shadow: var(--sh);
  border: 1px solid rgba(73,13,82,.07);
  transition: transform .2s, box-shadow .2s;
}
.sw-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(73,13,82,.2); }
.sw-card-icon { font-size: 34px; margin-bottom: 10px; }
.sw-card h3 { font-family: var(--fw); font-size: 17px; font-weight: 800; color: var(--p); margin: 0 0 6px; }
.sw-card p  { font-family: var(--fb); font-size: 14px; color: var(--bd); line-height: 1.65; margin: 0; }

/* Steps */
.sw-steps { display: flex; flex-direction: column; }
.sw-step  { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.sw-step:not(:last-child)::after {
  content: ''; position: absolute; left: 18px; top: 40px; bottom: 0;
  width: 2px; background: linear-gradient(var(--g),var(--pl));
}
.sw-step-n {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--p); color: var(--wh);
  font-family: var(--fw); font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.sw-step-b h4  { font-family: var(--fw); font-weight: 800; font-size: 15px; color: var(--p); margin: 7px 0 2px; }
.sw-step-b .hin { font-family: var(--fw); font-size: 14px; color: var(--pm); display: block; margin-top: 7px; }
.sw-step-b p   { font-family: var(--fb); font-size: 13px; color: var(--bd); line-height: 1.6; margin: 3px 0 0; }

/* FAQ */
.sw-faq { background: var(--wh); border-radius: 12px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(73,13,82,.08); overflow: hidden; }
.sw-faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 15px 18px; font-family: var(--fw); font-size: 15px;
  font-weight: 700; color: var(--p); cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.sw-faq-q:hover { background: var(--pl); }
.sw-faq-arr { font-size: 20px; transition: transform .25s; flex-shrink: 0; margin-top: 1px; }
.sw-faq-a { display: none; padding: 0 18px 15px; font-family: var(--fb); font-size: 14px; color: var(--bd); line-height: 1.75; }
.sw-faq-a ul { padding-left: 18px; margin: 6px 0; }
.sw-faq-a li { margin-bottom: 5px; }
.sw-faq.open .sw-faq-a { display: block; }
.sw-faq.open .sw-faq-arr { transform: rotate(180deg); }

/* Store button */
.sw-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--dk); color: var(--wh); border-radius: 12px;
  padding: 10px 20px; text-decoration: none; transition: all .2s;
}
.sw-store:hover { background: #2a1535; transform: translateY(-2px); color: var(--wh); text-decoration: none; }
.sw-store-text { display: flex; flex-direction: column; }
.sw-store-sm { font-family: var(--fb); font-size: 10px; opacity: .75; }
.sw-store-lg { font-family: var(--fw); font-size: 15px; font-weight: 800; }
.sw-store-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }

/* Comparison table */
.sw-cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); border: 1px solid var(--pl); }
.sw-cmp { width: 100%; min-width: 500px; border-collapse: collapse; font-family: var(--fb); font-size: 14px; }
.sw-cmp th { background: var(--p); color: var(--wh); padding: 12px 14px; font-family: var(--fw); font-weight: 800; font-size: 13px; text-align: left; }
.sw-cmp td { padding: 10px 14px; border-bottom: 1px solid var(--pl); vertical-align: middle; }
.sw-cmp tr:nth-child(even) td { background: var(--lt); }
.sw-cmp .yes { color: var(--gr); font-weight: 700; }
.sw-cmp .no  { color: var(--rd); font-weight: 700; }

/* Benefit pills */
.sw-bpills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0; }
.sw-bp { display: flex; align-items: center; gap: 7px; background: var(--wh); border-radius: 50px; padding: 9px 16px; box-shadow: 0 2px 10px rgba(73,13,82,.1); font-family: var(--fw); font-size: 14px; font-weight: 700; color: var(--p); }

/* SEO block */
.sw-seo { background: var(--lt); border-radius: var(--r); padding: 26px 20px; margin-top: 4px; }
.sw-seo h2 { font-family: var(--fw); font-size: 17px; font-weight: 800; color: var(--p); margin: 0 0 10px; }
.sw-seo h3 { font-family: var(--fw); font-size: 14px; font-weight: 700; color: var(--pm); margin: 14px 0 5px; }
.sw-seo p, .sw-seo li { font-family: var(--fb); font-size: 13px; color: var(--bd); line-height: 1.8; }
.sw-seo ul { padding-left: 16px; margin: 4px 0; }
.sw-seo a { color: var(--p); }

/* Slider */
.slider-container { padding: 32px 0; overflow: hidden; }
.slider-item { padding: 0 8px; }
.slider-img-container { position: relative; width: 100%; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,.1); }
.slider-img-container img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* Cross-link strip */
.sw-crosslinks {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; padding: 22px 16px; background: var(--pl);
}
.sw-crosslinks a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--wh); border: 1px solid rgba(73,13,82,.18);
  border-radius: 50px; padding: 8px 16px; text-decoration: none;
  font-family: var(--fw); font-size: 13px; font-weight: 700; color: var(--p);
  transition: all .15s;
}
.sw-crosslinks a:hover { background: var(--p); color: var(--wh); border-color: var(--p); }

/* Bootstrap override */
.btn-primary { background-color: var(--g) !important; border-color: var(--g) !important; color: var(--dk) !important; font-weight: 600; }
.btn-primary:hover { background-color: var(--gd) !important; border-color: var(--gd) !important; }
.section-title { position: relative; margin-bottom: 40px; color: var(--p); }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 3px; background-color: var(--g); }

/* ══════════════════════════════════════════════
   MOBILE RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sw-hamburger { display: flex; }
  .sw-nav-links  { display: none; }
  .sw-nav-inner  { height: 58px; }
  .sw-nav-logo img { height: 42px; }

  .sw-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sw-footer-apps { flex-direction: column; }
  .sw-footer-seo { text-align: left; }
  .sw-footer-bottom { flex-direction: column; align-items: flex-start; }

  .sw-sec { padding: 32px 14px; }
  .sw-sec h2 { font-size: clamp(18px,5.5vw,24px); }
  .sw-sec .sub { font-size: 13px; }
  .sw-hero { padding: 32px 14px 36px; }
  .sw-hero h1 { font-size: clamp(20px,7vw,28px); }
  .sw-hero p  { font-size: 14px; }
  .sw-btn { font-size: 13px; padding: 11px 18px; }
  .sw-trust { padding: 12px; gap: 7px; }
  .sw-pill { padding: 6px 12px; }
  .sw-pill span { font-size: 12px; }
  .sw-card { padding: 18px 14px; }
  .sw-card h3 { font-size: 15px; }
  .sw-faq-q { padding: 13px 14px; font-size: 14px; }
  .sw-faq-a { padding: 0 14px 13px; font-size: 13px; }
  .sw-store { width: 100%; justify-content: center; }
  .sw-store-row { padding: 0 14px; }
  .sw-seo { padding: 18px 14px; }
  .sw-seo h2 { font-size: 15px; }
  .modal-body iframe { min-height: 450px; width: 100% !important; }
  .modal-dialog { margin: 8px; }
}

@media (max-width: 480px) {
  .sw-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  footer .sw-btn-ol { border-color: rgba(255,255,255,.7); color: var(--wh) !important; }
  .sw-crosslinks a { padding: 9px 14px; font-size: 12px; }
}
