/* 3PattiGoo.pk — layout inspired by clean card-game landing pages */
:root {
  --bg: #0f1419;
  --bg-card: #161d27;
  --surface: #1c2633;
  --text: #e8eef5;
  --muted: #9aa8b8;
  --accent: #22c55e;
  --accent-dim: #16a34a;
  --gold: #f59e0b;
  --gold-soft: #fcd34d;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --font-en: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", Georgia, serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
}

.ur {
  font-family: var(--font-ur);
  direction: rtl;
  text-align: right;
  line-height: 1.9;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand:hover {
  text-decoration: none;
  color: var(--gold-soft);
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}
.nav-list a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #111;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 3.5rem;
  }
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 40%, rgba(34, 197, 94, 0.15), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.section h2 {
  font-size: 1.65rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.section-muted {
  color: var(--muted);
  margin-top: 0;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.2s;
}
.card:hover {
  border-color: rgba(34, 197, 94, 0.35);
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose {
  max-width: 760px;
}
.prose.wide {
  max-width: var(--max);
}
.prose p {
  margin: 0 0 1rem;
}
.prose h2 {
  margin-top: 2rem;
}
.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--muted);
}
.prose .ur {
  margin-bottom: 1.15rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.figure {
  margin: 1.5rem 0;
}
.figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.cta-bar {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(245, 158, 11, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.cta-bar p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.keyword-strip {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .nav.is-open {
    display: block;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 0;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
