/* 3 Patti Pearl - Mobile-First SEO Site - Pakistan */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&family=Inter:wght@400;600;700&display=swap');

:root {
  --primary: #1a472a;
  --primary-light: #2d5a3d;
  --gold: #c9a227;
  --gold-light: #e8d48b;
  --bg: #0d1f14;
  --card-bg: #162a1c;
  --text: #e8e6e3;
  --text-muted: #a8b5a0;
  --border: #2d4a35;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --max-w: 900px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Nastaliq Urdu', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

.urdu {
  font-family: 'Noto Nastaliq Urdu', serif;
  font-size: 1.15em;
  line-height: 1.9;
  direction: rtl;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--card-bg) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-wrap img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}

.nav-links a:hover {
  background: rgba(201,162,39,0.15);
  color: var(--gold-light);
}

/* Hero */
.hero {
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--card-bg) 0%, transparent 100%);
}

.hero-img {
  max-width: 320px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, #a68520 100%);
  color: #0d1f14 !important;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(201,162,39,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,0.5);
  color: #0d1f14 !important;
}

/* Container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

/* Sections */
section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

section h3 {
  font-size: 1.2rem;
  color: var(--gold-light);
  margin: 1.25rem 0 0.5rem;
}

section p {
  margin-bottom: 0.9rem;
  color: var(--text);
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.card-body p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.card-body a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Article page */
.article-header {
  padding: 1.5rem 1.25rem 1rem;
}

.article-header h1 {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-content {
  padding: 0 1.25rem 2rem;
}

.article-content .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-content figure {
  margin: 1.5rem 0;
}

.article-content figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-content figcaption {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box p {
  margin-bottom: 1rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--gold-light);
}

/* Utility */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.5rem; }

@media (min-width: 600px) {
  .hero {
    padding: 3rem 1.5rem 3rem;
  }
  .hero-img {
    max-width: 400px;
  }
  .container, .header-inner, .footer-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  body {
    font-size: 1.05rem;
  }
  .urdu {
    font-size: 1.2em;
  }
}
