/* ==========================================================================
   E-Taxi Scheme 2026 - Official Theme Stylesheet
   Color Palette: Deep Pakistan Emerald (#005a2b), Forest Green (#083e21),
                  Accent Gold (#d4af37), Mint (#e6f4ea), Off-White (#f8fdfa)
   Optimized for 100% Lighthouse / PageSpeed Performance & Full Responsiveness
   ========================================================================== */

:root {
  --primary-green: #005a2b;
  --primary-dark: #02381b;
  --primary-light: #198754;
  --accent-gold: #d4af37;
  --accent-gold-light: #fff8e1;
  --bg-mint: #f0f7f2;
  --bg-light: #f8fcf9;
  --surface-white: #ffffff;
  --text-dark: #1b2a21;
  --text-muted: #526358;
  --border-color: #d1e2d7;
  --shadow-sm: 0 2px 8px rgba(0, 90, 43, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 90, 43, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 90, 43, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  word-spacing: 0.05em;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1.25rem; font-size: 1.05rem; }
a { color: var(--primary-green); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { margin-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.5rem; }

/* Utility Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-green);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 90, 43, 0.25);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 90, 43, 0.35);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #000000 !important;
  font-weight: 700;
}
.btn-gold:hover {
  background-color: #b89528;
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--primary-green);
  color: var(--primary-green) !important;
  background: transparent;
}
.btn-outline:hover {
  background-color: var(--primary-green);
  color: #ffffff !important;
}

/* Header & Top Announcement Ticker */
.top-bar {
  background-color: var(--primary-dark);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 2px solid var(--accent-gold);
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}
.ticker-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.badge-live {
  background-color: var(--accent-gold);
  color: #000;
  padding: 0.15rem 0.6rem;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.top-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.top-links a { color: #d0e8d9; font-size: 0.85rem; }
.top-links a:hover { color: #ffffff; }

/* Main Header */
.main-header {
  background-color: var(--surface-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.header-logo-img {
  height: 54px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.logo-icon {
  width: 46px;
  height: 46px;
  background-color: var(--primary-green);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-subtitle {
  font-size: 0.7rem;
  color: var(--primary-light);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.75rem;
  margin: 0;
  align-items: center;
  flex-wrap: nowrap;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.4rem 0.2rem;
  position: relative;
  white-space: nowrap;
  display: inline-block;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-green);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-green);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
  color: #ffffff;
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
  max-width: 100%;
  line-height: 1.4;
  flex-wrap: wrap;
}
.hero-title {
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.hero-title span {
  color: var(--accent-gold);
}
.hero-lead {
  font-size: 1.15rem;
  color: #e0f2e7;
  margin-bottom: 2rem;
  max-width: 650px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item h3 {
  color: var(--accent-gold);
  font-size: 1.75rem;
  margin-bottom: 0.2rem;
}
.stat-item p {
  color: #d0e8d9;
  font-size: 0.85rem;
  margin: 0;
}

/* Official CM Punjab E-Taxi Banner Section */
.hero-banner-section {
  padding: 2.5rem 0 1rem;
  background-color: var(--bg-light);
}
.hero-banner-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--primary-green);
  position: relative;
  transition: var(--transition);
}
.hero-banner-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}
.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Urdu Infographic Banner Styling */
.info-banner-wrapper {
  margin: 3rem 0 2.5rem;
}
.info-banner-card {
  background-color: var(--surface-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--primary-green);
  transition: var(--transition);
}
.info-banner-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}
.info-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* Quick Eligibility Widget Card */
.hero-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--accent-gold);
}
.hero-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}
.hero-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}
.form-control, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #fafdfb;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 90, 43, 0.15);
  background-color: #ffffff;
}

/* Quick Features Section */
.features-section {
  padding: 4rem 0;
  background-color: var(--surface-white);
}
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}
.section-subtitle {
  color: var(--primary-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--primary-dark);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-green);
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green);
}
.feature-card:hover::before {
  width: 8px;
  background-color: var(--accent-gold);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background-color: var(--bg-mint);
  color: var(--primary-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

/* Content Body & Article Styling */
.main-content-section {
  padding: 4.5rem 0;
  background-color: var(--bg-light);
}
.content-wrapper {
  background-color: var(--surface-white);
  padding: 3.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.content-article h2 {
  font-size: 1.85rem;
  color: var(--primary-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-mint);
  position: relative;
}
.content-article h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background-color: var(--primary-green);
}
.content-article h3 {
  font-size: 1.35rem;
  color: var(--primary-green);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.content-article p {
  line-height: 1.8;
  color: #2c3e33;
}
.highlight-box {
  background-color: var(--bg-mint);
  border-left: 5px solid var(--primary-green);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
}
.highlight-box.gold-box {
  background-color: var(--accent-gold-light);
  border-left-color: var(--accent-gold);
}
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
}
.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.custom-table th, .custom-table td {
  padding: 1rem;
  border: 1px solid var(--border-color);
}
.custom-table th {
  background-color: var(--primary-dark);
  color: #ffffff;
  font-weight: 700;
}
.custom-table tr:nth-child(even) {
  background-color: #f7faf8;
}

/* Calculator Widget */
.calc-card {
  background: linear-gradient(135deg, #f0f8f3 0%, #e1f0e6 100%);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 2.5rem 0;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.calc-result-box {
  background: var(--primary-dark);
  color: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 2px solid var(--accent-gold);
}
.calc-result-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 0.5rem 0;
}

/* Accordion FAQ */
.faq-container {
  margin-top: 2rem;
}
.faq-item {
  background: var(--surface-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-header:hover {
  background-color: var(--bg-mint);
}
.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--primary-green);
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-body {
  padding: 0 1.5rem 1.25rem;
  display: none;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.active .faq-body {
  display: block;
}

/* Footer Styling */
.footer {
  background-color: var(--primary-dark);
  color: #e0f2e7;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--accent-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: #b0d4bd;
}
.footer-col h4 {
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.4rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent-gold);
}
.footer-links {
  list-style: none;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: #c2e2cc;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #9ebea9;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-wrapper { padding: 1.75rem; }

  /* Mobile Header Navbar: Logo on Left, Hamburger Menu Icon on Right */
  .navbar {
    position: relative;
    padding: 0.75rem 0;
  }

  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-mint);
    border: 1.5px solid var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 1.6rem;
    color: var(--primary-dark);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
  }
  .mobile-toggle:hover {
    background: var(--primary-green);
    color: #ffffff;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--surface-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 12px 30px rgba(0, 90, 43, 0.15);
    display: none;
    border-top: 3px solid var(--accent-gold);
    border-bottom: 4px solid var(--primary-green);
    gap: 0.4rem;
    z-index: 999;
  }

  .nav-menu.show {
    display: flex !important;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: block;
    font-size: 1rem;
    border-bottom: 1px solid #eef5f0;
  }

  .nav-link:hover, .nav-link.active {
    background-color: var(--bg-mint);
    color: var(--primary-green);
  }

  .top-links {
    display: none !important;
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-badge {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
    border-radius: 12px;
    display: inline-flex;
    justify-content: center;
    text-align: center;
    line-height: 1.35;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-stats { grid-template-columns: 1fr; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .content-wrapper { padding: 1.25rem; }
  .logo-title { font-size: 1.05rem; }
  .logo-subtitle { font-size: 0.65rem; }
  .logo-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}

