/*
Theme Name: Pakistan Income Tax Calculator
Theme URI: https://taxhisab.pk
Description: A professional Pakistan Income Tax Calculator WordPress theme with FBR 2025-26 slabs, Urdu & English bilingual support, SEO optimized, fully responsive.
Version: 1.0.0
Author: TaxHisab
Author URI: https://taxhisab.pk
Text Domain: pakistan-tax
Tags: tax, calculator, pakistan, urdu, bilingual, responsive, seo-friendly
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
*/

/* ═══════════════════════════════════════════════
   GOOGLE FONTS + DESIGN TOKENS
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;700&family=Merriweather:wght@400;700;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors — Pakistan Flag Inspired */
  --green:        #1a7a3c;
  --green-2:      #22a050;
  --green-3:      #2dc463;
  --green-dark:   #0d4d24;
  --green-xdark:  #062a13;
  --green-light:  #e6f7ec;
  --green-xlight: #f0faf4;

  /* Gold / Yellow accent */
  --gold:         #d4a017;
  --gold-2:       #f0b820;
  --gold-3:       #ffd000;
  --gold-dark:    #8a6510;
  --gold-light:   #fef8e0;
  --gold-xlight:  #fffdf0;

  /* Neutral */
  --white:        #ffffff;
  --off-white:    #f8faf8;
  --bg:           #f4f6f4;
  --text:         #1a2a1a;
  --text-2:       #2d4a2d;
  --text-3:       #5a7a5a;
  --text-4:       #8aaa8a;
  --border:       #c8e0c8;
  --border-2:     #a8cca8;
  --shadow-sm:    0 1px 8px rgba(26,122,60,.08);
  --shadow:       0 4px 20px rgba(26,122,60,.10);
  --shadow-lg:    0 8px 40px rgba(26,122,60,.14);
  --shadow-xl:    0 16px 64px rgba(26,122,60,.18);

  /* Typography */
  --font-en:      'DM Sans', sans-serif;
  --font-ur:      'Noto Nastaliq Urdu', serif;
  --font-display: 'Merriweather', serif;

  /* Layout */
  --container:    1200px;
  --nav-h:        70px;
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-2); }
ul { list-style: none; }
button { font-family: var(--font-en); cursor: pointer; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.ur { font-family: var(--font-ur); line-height: 2.2; }

/* ═══════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }

/* ═══════════════════════════════════════════════
   BADGE
═══════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-gold  { background: var(--gold-light);  color: var(--gold-dark);  }
.badge-white { background: rgba(255,255,255,.15); color: white; border: 1px solid rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-dark); background: var(--gold-light);
  padding: 5px 16px; border-radius: 20px; margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 900; color: var(--text); line-height: 1.25;
  margin-bottom: 14px;
}
.section-header h2 span { color: var(--green); }
.section-header .ur-title {
  font-family: var(--font-ur);
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--green-dark); display: block; line-height: 2.2;
  margin-bottom: 10px;
}
.section-header p {
  font-size: 16px; color: var(--text-3);
  max-width: 580px; margin: 0 auto; line-height: 1.75;
}
.section-divider {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; max-width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.section-divider span { font-size: 18px; }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; letter-spacing: .3px;
  border: none; transition: all .2s; text-decoration: none;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.1); opacity: 0; transition: opacity .2s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: white; box-shadow: 0 4px 16px rgba(26,122,60,.35);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(26,122,60,.45); color: white; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: white; box-shadow: 0 4px 16px rgba(212,160,23,.4);
}
.btn-gold:hover { box-shadow: 0 8px 24px rgba(212,160,23,.55); color: white; }

.btn-outline {
  background: transparent; color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green-light); }

.btn-white {
  background: white; color: var(--green);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover { background: var(--green-light); color: var(--green); }

.btn-ghost {
  background: rgba(255,255,255,.12); color: white;
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); color: white; }

.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius-sm); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════ */
.card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-lift:hover { transform: translateY(-4px); }
.card-title {
  font-family: var(--font-ur);
  font-size: 18px; color: var(--green); line-height: 2.2; margin-bottom: 4px;
}
.card-title-en {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700; color: var(--text);
  margin-bottom: 6px; line-height: 1.3;
}
.card-sub { font-size: 13px; color: var(--text-3); margin-bottom: 20px; line-height: 1.6; }

/* Feature card */
.feature-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 26px;
  text-align: center; transition: all .3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0); transition: transform .3s; transform-origin: left;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.feature-icon-wrap {
  width: 72px; height: 72px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-light), var(--gold-xlight));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 32px;
  border: 1.5px solid var(--border);
}
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.feature-card .ur { font-size: 14px; color: var(--green); display: block; }
.feature-card p { font-size: 13px; color: var(--text-3); line-height: 1.65; margin-top: 8px; }

/* ═══════════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-3); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .5px;
}
.form-label .ur { font-family: var(--font-ur); font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--green); display: block; line-height: 2; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--text); background: white;
  transition: border-color .2s, box-shadow .2s; outline: none;
  font-family: var(--font-en); appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,122,60,.12);
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7a5a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.form-error { font-size: 12px; color: #e53e3e; margin-top: 5px; }

/* ═══════════════════════════════════════════════
   ALERT BOXES
═══════════════════════════════════════════════ */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.65; margin-bottom: 16px;
}
.alert-info    { background: #e0f0ff; color: #1a4880; border-left: 4px solid #3b7dd8; }
.alert-success { background: var(--green-light); color: var(--green-dark); border-left: 4px solid var(--green); }
.alert-warning { background: var(--gold-light); color: var(--gold-dark); border-left: 4px solid var(--gold); }
.alert-danger  { background: #fff0f0; color: #8b1a1a; border-left: 4px solid #e53e3e; }

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: white; height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(26,122,60,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
/* Logo */
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(26,122,60,.3);
  position: relative; overflow: hidden;
}
.logo-icon::before {
  content: 'PKR'; font-size: 10px; font-weight: 900; color: white;
  letter-spacing: -.5px; font-family: var(--font-display);
}
.logo-text-wrap { line-height: 1.2; }
.logo-en {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 900; color: var(--green);
  display: block; letter-spacing: -.3px;
}
.logo-ur { font-family: var(--font-ur); font-size: 12px; color: var(--text-3); display: block; line-height: 2; }
/* Nav links */
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item {
  padding: 9px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: none; border: none; cursor: pointer;
  transition: all .2s; text-decoration: none;
  display: flex; align-items: center; gap: 5px;
}
.nav-item:hover, .nav-item.current { background: var(--green-light); color: var(--green); text-decoration: none; }
.nav-item.current { font-weight: 700; }
.nav-cta-wrap { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 10px; background: none; border: none; cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: white; padding: 16px 20px; z-index: 999;
  border-bottom: 1.5px solid var(--border);
  box-shadow: var(--shadow-lg); flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-nav-item {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; color: var(--text-2);
  background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 10px; transition: all .2s;
}
.mobile-nav-item:hover, .mobile-nav-item.current { background: var(--green-light); color: var(--green); }

/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-xdark) 0%, var(--green-dark) 40%, #1a4a2a 70%, #253a20 100%);
  padding: 80px 24px 72px;
}
/* Decorative mesh gradient */
.hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,160,80,.3) 0%, transparent 70%);
  pointer-events: none;
}
/* Geometric pattern overlay */
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-pattern::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.02) 0, rgba(255,255,255,.02) 1px, transparent 0, transparent 50%);
  background-size: 40px 40px;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-content {}
.hero-badge-wrap { margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-title-ur {
  font-family: var(--font-ur);
  font-size: clamp(26px, 4vw, 48px);
  color: #b8f0cc; line-height: 2; margin-bottom: 4px; display: block;
}
.hero-title-en {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 900; color: white; line-height: 1.25; margin-bottom: 18px;
}
.hero-title-en span { color: var(--gold-3); }
.hero-desc {
  font-size: 15px; color: rgba(255,255,255,.7);
  max-width: 480px; line-height: 1.8; margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900; color: var(--gold-3); line-height: 1;
}
.hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .6px; margin-top: 4px; text-transform: uppercase; }
/* Hero visual card */
.hero-visual {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl); padding: 28px;
  backdrop-filter: blur(8px);
}
.hero-calc-preview {
  background: white; border-radius: var(--radius-lg); padding: 22px; overflow: hidden;
}
.hero-calc-title {
  font-family: var(--font-display); font-size: 15px; font-weight: 900;
  color: var(--green-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.hcp-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.hcp-row:last-child { border: none; }
.hcp-row .lbl { color: var(--text-3); }
.hcp-row .val { font-weight: 700; color: var(--text); }
.hcp-row.highlight { background: var(--green-light); margin: 0 -8px; padding: 10px 8px; border-radius: var(--radius-sm); border: none; }
.hcp-row.highlight .val { color: var(--green); font-size: 16px; }
.hero-visual-icons {
  display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap;
}
.hvi-chip {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85);
}

/* ═══════════════════════════════════════════════
   PROVINCE SELECTOR
═══════════════════════════════════════════════ */
.province-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px;
}
.province-card {
  background: white; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 18px 12px; text-align: center; cursor: pointer;
  transition: all .25s; position: relative; overflow: hidden;
}
.province-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green-light), var(--gold-xlight));
  opacity: 0; transition: opacity .25s;
}
.province-card:hover, .province-card.selected {
  border-color: var(--green); transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26,122,60,.18);
}
.province-card:hover::after, .province-card.selected::after { opacity: 1; }
.province-card > * { position: relative; z-index: 1; }
.prov-flag { font-size: 32px; display: block; margin-bottom: 8px; }
.prov-en { font-size: 11px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; display: block; }
.prov-ur { font-family: var(--font-ur); font-size: 14px; color: var(--green); display: block; line-height: 2.2; }
.province-card.selected .prov-en { color: var(--green-dark); }
.prov-check {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: white;
  display: none; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.province-card.selected .prov-check { display: flex; }

/* ═══════════════════════════════════════════════
   CALCULATOR UI
═══════════════════════════════════════════════ */
.calc-wrap { max-width: 100%; }
.calc-steps {
  display: flex; background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
}
.calc-step-btn {
  flex: 1; padding: 14px 8px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--text-3);
  background: none; border: none; cursor: pointer; transition: all .2s;
  border-right: 1px solid var(--border); position: relative;
}
.calc-step-btn:last-child { border-right: none; }
.calc-step-btn.done { color: var(--green); background: var(--green-xlight); }
.calc-step-btn.active { background: var(--green); color: white; font-weight: 700; }
.calc-step-btn .step-num {
  display: block; font-size: 10px; opacity: .7; margin-bottom: 2px; font-weight: 900;
  letter-spacing: .5px; text-transform: uppercase;
}
.calc-pane { display: none; }
.calc-pane.active { display: block; animation: slideIn .25s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

/* Expense Grid */
.expense-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.expense-item .ei-ur { font-family: var(--font-ur); font-size: 15px; color: var(--green); display: block; line-height: 2.2; margin-bottom: 2px; }
.expense-item .ei-en { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .4px; display: block; margin-bottom: 6px; }

/* Result box */
.result-panel {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-xdark) 60%, #0a2a0e 100%);
  border-radius: var(--radius-lg); padding: 32px; color: white;
  position: relative; overflow: hidden;
}
.result-panel::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,.2) 0%, transparent 70%);
  pointer-events: none;
}
.result-title { font-family: var(--font-ur); font-size: 22px; color: #b8f5cc; line-height: 2.2; margin-bottom: 20px; position: relative; z-index: 1; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; position: relative; z-index: 1; }
.result-metric {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm); padding: 16px;
}
.result-metric .rm-label { font-size: 11px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.result-metric .rm-value { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: white; line-height: 1.2; }
.result-metric .rm-value.gold { color: var(--gold-3); }
.result-metric .rm-value.highlight { color: #7fffaa; }
.result-rows { position: relative; z-index: 1; }
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px;
}
.result-row:last-child { border: none; }
.result-row .rl { opacity: .8; }
.result-row .rv { font-weight: 700; }
.result-row.hl-row .rv { color: var(--gold-3); font-size: 18px; font-family: var(--font-display); }
.result-disclaimer { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 16px; line-height: 1.6; position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════
   SLAB TABLE
═══════════════════════════════════════════════ */
.slab-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.slab-table th {
  background: var(--green); color: white; padding: 13px 16px;
  text-align: left; font-weight: 700; font-size: 12px; letter-spacing: .4px; text-transform: uppercase;
}
.slab-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.slab-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.slab-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.slab-table tr:nth-child(even) td { background: var(--green-xlight); }
.slab-table tr.active-slab td { background: var(--gold-light); font-weight: 700; }
.slab-table tr.active-slab td:first-child { border-left: 4px solid var(--gold); }

/* ═══════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.blog-card {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .3s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--border-2); }
.blog-thumb {
  height: 200px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-light), var(--gold-xlight));
  display: flex; align-items: center; justify-content: center;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-thumb-icon { font-size: 56px; }
.blog-category {
  position: absolute; top: 14px; left: 14px;
  background: var(--green); color: white;
  padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.blog-body { padding: 22px; }
.blog-body h3 { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.blog-body h3 a { color: var(--text); text-decoration: none; }
.blog-body h3 a:hover { color: var(--green); }
.blog-ur { font-family: var(--font-ur); font-size: 14px; color: var(--text-2); display: block; line-height: 2.2; margin-bottom: 8px; }
.blog-excerpt { font-size: 13px; color: var(--text-3); line-height: 1.7; }
.blog-meta { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.blog-tag { background: var(--green-light); color: var(--green-dark); padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.blog-date { font-size: 12px; color: var(--text-3); }
.blog-read-more { font-size: 13px; font-weight: 700; color: var(--green); margin-left: auto; display: flex; align-items: center; gap: 4px; }
.blog-read-more:hover { color: var(--green-2); text-decoration: none; }

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact-info-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px; background: var(--green-xlight);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 14px; transition: all .2s;
}
.contact-info-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.ci-icon-wrap {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; font-size: 20px; color: white;
}
.ci-content h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.ci-content .ci-ur { font-family: var(--font-ur); font-size: 13px; color: var(--green); display: block; line-height: 2; }
.ci-content p, .ci-content a { font-size: 13px; color: var(--text-3); }
.wa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: white; padding: 12px 22px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  text-decoration: none; transition: all .2s; margin-top: 10px; border: none;
}
.wa-btn:hover { background: #1da850; color: white; text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.35); }

/* ═══════════════════════════════════════════════
   PAGE HEADER (Inner pages)
═══════════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-xdark));
  padding: 52px 24px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0, rgba(255,255,255,.015) 1px, transparent 0, transparent 30px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.015) 0, rgba(255,255,255,.015) 1px, transparent 0, transparent 30px);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb span { margin: 0 8px; }
.page-hero h1 { font-family: var(--font-ur); font-size: clamp(22px, 4vw, 36px); color: #b8f5cc; line-height: 2.2; }
.page-hero h1 + p { font-size: 14px; color: rgba(255,255,255,.65); margin-top: 6px; }
.page-hero .page-hero-en {
  font-family: var(--font-display); font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 900; color: rgba(255,255,255,.85); display: block; margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   FBR BANNER
═══════════════════════════════════════════════ */
.fbr-banner {
  background: linear-gradient(90deg, var(--green-xlight), var(--gold-xlight));
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.fbr-banner .fb-icon { font-size: 36px; flex-shrink: 0; }
.fbr-banner .fb-text { flex: 1; min-width: 200px; }
.fbr-banner .fb-text h4 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.fbr-banner .fb-text p { font-size: 12px; color: var(--text-3); line-height: 1.6; }
.fbr-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: white; padding: 10px 20px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .2s; flex-shrink: 0;
}
.fbr-link:hover { background: var(--gold-2); color: white; text-decoration: none; }

/* ═══════════════════════════════════════════════
   TRUST BAR
═══════════════════════════════════════════════ */
.trust-bar {
  background: linear-gradient(90deg, var(--green-dark), #1a3a20);
  padding: 18px 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap; max-width: var(--container); margin: 0 auto; padding: 0 24px;
}
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-item span { font-size: 13px; color: rgba(255,255,255,.8); font-weight: 600; }
.trust-dot { font-size: 16px; }

/* ═══════════════════════════════════════════════
   STEPS / HOW IT WORKS
═══════════════════════════════════════════════ */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.step-card { text-align: center; padding: 28px 20px; }
.step-number-wrap {
  position: relative; display: inline-block; margin-bottom: 20px;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: white; font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; box-shadow: 0 6px 20px rgba(26,122,60,.35);
  font-family: var(--font-display);
}
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.step-card .s-ur { font-family: var(--font-ur); font-size: 14px; color: var(--green); display: block; line-height: 2.2; }
.step-card p { font-size: 13px; color: var(--text-3); margin-top: 8px; line-height: 1.65; }

/* ═══════════════════════════════════════════════
   TESTIMONIALS / FAQ
═══════════════════════════════════════════════ */
.faq-item {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 12px; background: white;
}
.faq-question {
  width: 100%; padding: 18px 20px; text-align: left;
  font-size: 14px; font-weight: 700; color: var(--text);
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: background .2s;
}
.faq-question:hover { background: var(--green-xlight); }
.faq-question.open { background: var(--green-light); color: var(--green); }
.faq-icon { font-size: 18px; transition: transform .3s; flex-shrink: 0; }
.faq-question.open .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-answer.open { padding: 4px 20px 18px; max-height: 400px; }
.faq-answer p { font-size: 14px; color: var(--text-2); line-height: 1.75; }
.faq-answer .faq-ur { font-family: var(--font-ur); font-size: 14px; color: var(--text-2); display: block; line-height: 2.2; }

/* ═══════════════════════════════════════════════
   LEGAL PAGES
═══════════════════════════════════════════════ */
.legal-content { max-width: 800px; margin: 0 auto; padding: 52px 24px; }
.legal-content h2 { font-size: 20px; font-weight: 700; color: var(--green); margin: 32px 0 12px; }
.legal-content h2.ur { font-family: var(--font-ur); font-size: 22px; line-height: 2.2; }
.legal-content p { font-size: 14px; color: var(--text-2); line-height: 1.85; margin-bottom: 14px; }
.legal-content ul { margin: 10px 0 16px 20px; }
.legal-content ul li { font-size: 14px; color: var(--text-2); line-height: 1.85; margin-bottom: 8px; list-style-type: disc; }
.legal-content .last-updated { font-size: 12px; color: var(--text-3); background: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); margin-bottom: 28px; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(160deg, var(--green-xdark) 0%, #0a1a0a 60%, #141a10 100%);
  color: rgba(255,255,255,.75); padding: 72px 0 0;
}
.footer-top { max-width: var(--container); margin: 0 auto; padding: 0 24px 56px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .fb-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .fbl-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 900; color: white;
}
.footer-brand .fbl-text .en { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: white; display: block; }
.footer-brand .fbl-text .ur { font-family: var(--font-ur); font-size: 13px; color: rgba(255,255,255,.5); display: block; line-height: 2; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; text-decoration: none; transition: all .2s; color: white;
}
.social-btn:hover { background: var(--green); border-color: var(--green); color: white; text-decoration: none; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a, .footer-col ul li button {
  font-size: 13px; color: rgba(255,255,255,.55);
  text-decoration: none; background: none; border: none; cursor: pointer;
  padding: 0; transition: color .2s; font-family: var(--font-en);
}
.footer-col ul li a:hover, .footer-col ul li button:hover { color: white; text-decoration: none; }
.footer-fbr-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,160,23,.15); border: 1px solid rgba(212,160,23,.3);
  color: var(--gold-2); padding: 8px 16px; border-radius: 8px;
  font-size: 12px; font-weight: 700; text-decoration: none; transition: all .2s; margin-top: 12px;
}
.footer-fbr-link:hover { background: rgba(212,160,23,.25); color: var(--gold-3); text-decoration: none; }
/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px; max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom .fb-note { font-size: 11px; color: rgba(255,255,255,.25); }
.footer-bottom-wrap { border-top: 1px solid rgba(255,255,255,.08); }

/* ═══════════════════════════════════════════════
   WORDPRESS SPECIFIC
═══════════════════════════════════════════════ */
.wp-block-image { margin: 24px 0; }
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 24px auto; display: block; }

/* Post content */
.entry-content h2 { font-size: 24px; font-weight: 700; color: var(--text); margin: 32px 0 16px; }
.entry-content h3 { font-size: 20px; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.entry-content p { font-size: 15px; color: var(--text-2); line-height: 1.85; margin-bottom: 18px; }
.entry-content ul, .entry-content ol { margin: 12px 0 18px 24px; }
.entry-content li { font-size: 15px; color: var(--text-2); line-height: 1.85; margin-bottom: 8px; list-style: disc; }
.entry-content blockquote {
  border-left: 4px solid var(--green); background: var(--green-xlight);
  padding: 16px 20px; margin: 24px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.entry-content blockquote p { margin: 0; font-style: italic; color: var(--green-dark); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.entry-content table th { background: var(--green); color: white; padding: 12px 16px; text-align: left; }
.entry-content table td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.entry-content table tr:nth-child(even) td { background: var(--green-xlight); }
.entry-content a { color: var(--green); text-decoration: underline; }
.entry-content code { background: var(--bg); padding: 2px 8px; border-radius: 4px; font-size: 13px; color: var(--green-dark); font-family: monospace; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.animate-up { animation: fadeUp .5s ease forwards; }
.animate-up-2 { animation: fadeUp .5s .1s ease both; }
.animate-up-3 { animation: fadeUp .5s .2s ease both; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .section { padding: 48px 0; }
  .hero { padding: 52px 16px 48px; }
  .hero-stats { gap: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .expense-grid { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .province-grid { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .trust-inner { gap: 20px; }
  .card { padding: 18px 16px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }
}
@media (max-width: 400px) {
  .province-grid { grid-template-columns: repeat(2,1fr); }
  .expense-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .hamburger, .mobile-menu, .hero-btns,
  .btn-primary, .btn-gold, .nav-cta-wrap { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .result-panel { background: white !important; color: black !important; border: 2px solid #1a7a3c; }
}
