/* B9 Game Pakistan - Stylesheet */
:root {
  --primary: #0d6e3f;
  --primary-dark: #094d2c;
  --primary-light: #1a9d5a;
  --secondary: #d4af37;
  --accent: #e63946;
  --success: #2a9d8f;
  --warning: #f4a261;
  --error: #e63946;
  --bg: #fafafa;
  --bg-alt: #f0f4f0;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #e0e0e0;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --font-urdu: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', serif;
  --font-en: 'Noto Sans Arabic', sans-serif;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-urdu);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-size: 17px;
  direction: rtl;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 999;
  border-radius: 0 0 0 8px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-lg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-img { width: 44px; height: 44px; }
.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}
.logo-sub { color: var(--text); font-weight: 500; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.main-nav a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}
.main-nav a.active {
  background: var(--primary);
  color: #fff;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #e8f5e9 100%);
  padding: 60px 0 50px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1, .page-hero h1 {
  font-size: 36px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 16px;
  font-weight: 700;
}
.hero-lead, .page-hero .hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.9;
}
.hero-en, .en-note {
  font-family: var(--font-en);
  direction: ltr;
  text-align: left;
  font-size: 14px;
  color: #777;
  margin-bottom: 16px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.stat {
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 26px;
  color: var(--primary);
  font-weight: 700;
}
.stat span {
  font-size: 13px;
  color: var(--text-muted);
}
.hero-images {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}
.hero-img-main {
  width: 300px;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.hero-img-side {
  width: 160px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #e8f5e9 100%);
  padding: 50px 0 40px;
  text-align: center;
}

/* Buttons */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13,110,63,0.3);
  border: none;
  cursor: pointer;
  font-family: var(--font-urdu);
}
.btn-download:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,110,63,0.4);
}
.btn-download.btn-lg {
  padding: 18px 44px;
  font-size: 20px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
  font-family: var(--font-urdu);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Sections */
.section {
  padding: 50px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section h2, .page-hero h1 + .container h2 {
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.section h3 {
  font-size: 21px;
  color: var(--text);
  margin: 24px 0 12px;
  font-weight: 600;
}
.section p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 2;
}
.section ul, .section ol {
  margin-bottom: 16px;
  padding-right: 24px;
}
.section li {
  margin-bottom: 8px;
  line-height: 1.9;
}

/* Info Table */
.info-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 400px;
}
.info-table th, .info-table td {
  padding: 14px 18px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.info-table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary-dark);
  width: 40%;
}
.info-table thead th {
  background: var(--primary);
  color: #fff;
}
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:hover td { background: #f9fbf9; }

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.card h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 19px;
}
.card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Showcase */
.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.showcase-item {
  text-align: center;
}
.showcase-item img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.showcase-item img:hover { transform: scale(1.03); }
.showcase-item p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 70px 20px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border-right: 4px solid var(--primary);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  right: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-en);
}
.steps h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 18px;
}
.steps p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* Check List */
.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.check-list li {
  position: relative;
  padding-right: 30px;
  margin-bottom: 10px;
  line-height: 1.8;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

/* Tips Grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.tip {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--secondary);
}
.tip h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 18px;
}
.tip p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Pros Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.pros, .cons {
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pros {
  background: #e8f5e9;
  border-right: 4px solid var(--success);
}
.cons {
  background: #fff3e0;
  border-right: 4px solid var(--warning);
}
.pros h3, .cons h3 {
  margin-bottom: 16px;
  font-size: 20px;
}
.pros h3 { color: var(--success); }
.cons h3 { color: #e65100; }

/* Payment Grid */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.payment-item {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}
.payment-item h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 19px;
}
.payment-item p {
  font-size: 15px;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  margin: 24px 0;
}
.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--primary-dark);
  list-style: none;
  position: relative;
  padding-left: 44px;
  transition: background 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item summary:hover { background: var(--bg-alt); }
.faq-item p {
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.9;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  margin: 30px 0;
  box-shadow: var(--shadow-lg);
}
.cta-box h2, .cta-box h3 {
  color: #fff;
  margin-bottom: 12px;
}
.cta-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}
.cta-box .btn-download {
  background: #fff;
  color: var(--primary);
}
.cta-box .btn-download:hover {
  background: var(--secondary);
  color: #fff;
}
.cta-note {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 24px 0;
  background: var(--surface);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-urdu);
  transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-info {
  font-family: var(--font-en);
  direction: ltr;
  text-align: left;
  color: var(--primary);
  font-weight: 600;
  margin-top: 8px;
}

/* Footer */
.site-footer {
  background: #1a2e1a;
  color: #ccc;
  padding: 50px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  padding-bottom: 30px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo span {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.footer-about {
  font-size: 14px;
  line-height: 1.8;
  color: #aaa;
  margin-bottom: 12px;
}
.footer-en {
  font-family: var(--font-en);
  direction: ltr;
  text-align: left;
  font-size: 13px;
  color: #888;
}
.footer-col h3 {
  color: #fff;
  font-size: 17px;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--secondary);
}
.footer-btn {
  margin-top: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 14px;
  color: #999;
  margin-bottom: 4px;
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 90;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-images {
    justify-content: center;
    margin-top: 20px;
  }
  .hero-img-main { width: 260px; }
  .hero-img-side { width: 140px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 68px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 68px);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }
  .main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
  }
  .hero h1, .page-hero h1 {
    font-size: 28px;
  }
  .section h2 {
    font-size: 24px;
  }
  .hero-stats {
    justify-content: center;
    gap: 16px;
  }
  .stat strong { font-size: 22px; }
}

@media (max-width: 500px) {
  body { font-size: 16px; }
  .container { padding: 0 14px; }
  .hero h1, .page-hero h1 { font-size: 24px; }
  .section h2 { font-size: 21px; }
  .section h3 { font-size: 18px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-download, .btn-outline { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-img-main { width: 220px; }
  .hero-img-side { width: 120px; }
  .cta-box { padding: 24px 18px; }
  .contact-form { padding: 20px; }
  .steps li { padding: 16px 60px 16px 16px; }
}
