/*
Theme Name:   Justify PK
Theme URI:    https://justify.pk
Author:       Justify.pk — Zeeshan Haider Advocate
Author URI:   https://justify.pk
Description:  Premium Legal Aid & Consultation WordPress Theme for Justify.pk — Pakistan's trusted legal platform. Featuring Pakistani national flag colors, fully responsive design, Elementor compatible, bilingual English/Urdu support, practice area pages, client & advocate registration, AI-powered legal draft generator, and comprehensive legal service features.
Version:      1.2.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  justify-pk
Tags:         legal, law, pakistan, green, responsive, elementor, bilingual, rtl-ready, legal-drafts
*/

/* =====================================================
   CSS CUSTOM PROPERTIES — JUSTIFY.PK DESIGN SYSTEM
   Pakistani Flag Color DNA
   ===================================================== */
:root {
  /* === PRIMARY PALETTE === */
  --justify-green-deep:    #006600;
  --justify-green-bright:  #00A651;
  --justify-green-dark:    #004d00;
  --justify-green-light:   #e6f4eb;
  --justify-gold:          #D4AF37;
  --justify-gold-light:    #faf0c0;
  --justify-gold-dark:     #b8962e;
  --justify-white:         #FFFFFF;
  --justify-gray-bg:       #F5F5F5;
  --justify-gray-mid:      #E0E0E0;
  --justify-gray-dark:     #AAAAAA;
  --justify-text-dark:     #1A1A1A;
  --justify-text-mid:      #444444;
  --justify-text-light:    #777777;
  --justify-red:           #C0392B;

  /* === TYPOGRAPHY === */
  --font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Nunito Sans', 'Segoe UI', Arial, sans-serif;
  --font-urdu:     'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
  --font-mono:     'Courier New', monospace;

  /* === SPACING === */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* === LAYOUT === */
  --container-max:     1200px;
  --container-wide:    1440px;
  --container-narrow:  800px;
  --section-py:        80px;
  --gutter:            24px;
  --border-radius:     8px;
  --border-radius-lg:  16px;
  --border-radius-xl:  24px;

  /* === SHADOWS === */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.18), 0 8px 20px rgba(0,0,0,0.10);
  --shadow-green: 0 8px 32px rgba(0,102,0,0.25);
  --shadow-gold:  0 8px 32px rgba(212,175,55,0.25);

  /* === TRANSITIONS === */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;

  /* === Z-INDEX === */
  --z-topbar:  100;
  --z-header:  200;
  --z-mobile:  300;
  --z-overlay: 400;
  --z-modal:   500;
  --z-toast:   600;
  --z-float:   700;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--justify-text-dark);
  background: var(--justify-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--justify-green-deep); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--justify-green-bright); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }

/* === ACCESSIBILITY === */
.skip-link {
  position: absolute; top: -60px; left: 0;
  background: var(--justify-green-deep); color: white;
  padding: 8px 16px; z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* Screen reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--justify-text-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--justify-green-bright);
  margin-bottom: var(--space-sm);
  padding: 4px 12px;
  background: var(--justify-green-light);
  border-radius: 100px;
  border: 1px solid rgba(0,166,81,0.2);
}

.section-title {
  font-family: var(--font-display);
  color: var(--justify-text-dark);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--justify-text-mid);
  line-height: 1.6;
  max-width: 680px;
}
.section-subtitle.centered { margin: 0 auto; text-align: center; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 1; }
.btn:focus-visible { outline: 3px solid var(--justify-gold); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }

.btn-lg  { padding: 16px 32px; font-size: 1rem; border-radius: 10px; }
.btn-sm  { padding: 8px 16px; font-size: 0.8rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--justify-green-bright) 0%, var(--justify-green-deep) 100%);
  color: white;
  box-shadow: var(--shadow-green);
  border-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--justify-green-deep) 0%, var(--justify-green-dark) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,102,0,0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--justify-gold) 0%, var(--justify-gold-dark) 100%);
  color: var(--justify-text-dark);
  box-shadow: var(--shadow-gold);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(212,175,55,0.40);
  color: var(--justify-text-dark);
}

.btn-outline {
  background: transparent;
  color: var(--justify-green-deep);
  border-color: var(--justify-green-deep);
}
.btn-outline:hover {
  background: var(--justify-green-deep);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.65);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: white;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.30);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}

.btn-call {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 4px 20px rgba(231,76,60,0.30);
}
.btn-call:hover {
  transform: translateY(-2px);
  color: white;
}

/* =====================================================
   TOP INFO BAR
   ===================================================== */
#justify-topbar {
  background: var(--justify-green-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 0;
  z-index: var(--z-topbar);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.topbar-contact a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 5px;
}
.topbar-contact a:hover { color: var(--justify-gold); }
.topbar-right { display: flex; align-items: center; gap: var(--space-lg); }
.topbar-free-badge {
  background: var(--justify-gold);
  color: var(--justify-text-dark);
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.73rem;
  letter-spacing: 0.03em;
}
.topbar-lang {
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 0.78rem;
}
.topbar-lang:hover { color: var(--justify-gold); }

/* =====================================================
   HEADER / NAVIGATION
   ===================================================== */
#justify-header {
  background: white;
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition-base);
}
#justify-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 14px 0;
}

/* Logo */
.justify-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-emblem {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--justify-green-deep), var(--justify-green-bright));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-green);
  transition: transform var(--transition-base);
}
.justify-logo:hover .logo-emblem { transform: scale(1.05) rotate(-3deg); }
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--justify-green-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo-tagline {
  font-size: 0.65rem;
  color: var(--justify-text-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Nav */
.justify-nav-wrap { flex: 1; display: flex; justify-content: flex-end; }
.justify-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.justify-nav > li { position: relative; }
.justify-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--justify-text-mid);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.justify-nav > li > a:hover,
.justify-nav > li > a.current-menu-item {
  color: var(--justify-green-deep);
  background: var(--justify-green-light);
}
.nav-register-btn {
  background: linear-gradient(135deg, var(--justify-green-bright), var(--justify-green-deep)) !important;
  color: white !important;
  border-radius: var(--border-radius) !important;
  padding: 8px 14px !important;
}
.nav-register-btn:hover {
  background: linear-gradient(135deg, var(--justify-green-deep), var(--justify-green-dark)) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}

/* Dropdown */
.has-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  padding: var(--space-sm);
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--justify-text-mid);
  border-radius: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--justify-green-light);
  color: var(--justify-green-deep);
}
.nav-dropdown-icon { font-size: 1rem; flex-shrink: 0; }

/* Header inline law search */
.justify-header-search-panel a { white-space: normal; }
.justify-header-search-panel input:focus-visible {
  outline: 2px solid var(--justify-green-bright);
  outline-offset: 1px;
}
.justify-header-search-panel #headerPakCodeLink:hover { color: var(--justify-green-deep); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--justify-green-deep);
  transition: all var(--transition-base);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px,7px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-7px); }

/* =====================================================
   MOBILE NAV
   ===================================================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--justify-green-dark) 0%, var(--justify-green-deep) 100%);
  z-index: var(--z-mobile);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav:not([hidden]) { transform: translateX(0); }
.mobile-nav[hidden] { display: flex; }
.mobile-nav-close {
  align-self: flex-end;
  color: white;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-bottom: 24px;
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.2); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav li a {
  display: block;
  padding: 13px 16px;
  color: rgba(255,255,255,0.88);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.mobile-nav li a:hover { background: rgba(255,255,255,0.1); color: white; }

/* =====================================================
   HERO SECTION — REDESIGNED
   ===================================================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--justify-green-dark) 0%, var(--justify-green-deep) 50%, #005500 100%);
  overflow: hidden;
  padding: 80px 0 60px;
}

/* Animated background elements */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(212,175,55,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,166,81,0.12) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-crescent {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  border: 80px solid rgba(255,255,255,0.025);
  pointer-events: none;
}
.hero-crescent::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 40px;
  right: -40px;
  bottom: -40px;
  border-radius: 50%;
  background: rgba(0,77,0,0.5);
}
.hero-crescent::after {
  content: '⭐';
  position: absolute;
  top: 50%;
  right: 120px;
  transform: translateY(-50%);
  font-size: 48px;
  opacity: 0.12;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero content */
.hero-content { color: white; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.3);
  color: var(--justify-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hero-title-accent { color: var(--justify-gold); }

.hero-title-urdu {
  display: block;
  font-family: var(--font-urdu);
  font-size: 1.3rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-lg);
  direction: rtl;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat { text-align: center; }
.hero-stat .number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--justify-gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .label {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero card */
.hero-visual { position: relative; }
.hero-badge-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
  position: relative;
  z-index: 2;
}
.hero-badge-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--justify-gold), transparent 50%);
  border-radius: calc(var(--border-radius-xl) + 2px);
  z-index: -1;
  opacity: 0.4;
}
.hero-badge-icon {
  width: 56px;
  height: 56px;
  background: var(--justify-green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-md);
}
.hero-badge-card h3 {
  font-size: 1.3rem;
  color: var(--justify-green-deep);
  margin-bottom: 6px;
}
.hero-badge-card p {
  font-size: 0.87rem;
  color: var(--justify-text-mid);
  margin-bottom: var(--space-md);
}
.hero-quick-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-quick-form input,
.hero-quick-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--justify-gray-mid);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  color: var(--justify-text-dark);
  background: white;
  transition: border-color var(--transition-fast);
  outline: none;
}
.hero-quick-form input:focus,
.hero-quick-form select:focus { border-color: var(--justify-green-bright); box-shadow: 0 0 0 3px rgba(0,166,81,0.12); }

/* =====================================================
   TRUST BAR
   ===================================================== */
.trust-bar {
  background: linear-gradient(135deg, var(--justify-green-light), white);
  border-top: 3px solid var(--justify-green-bright);
  border-bottom: 1px solid var(--justify-gray-mid);
  padding: 18px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--justify-text-mid);
  padding: 6px 20px;
  white-space: nowrap;
}
.trust-icon { font-size: 1.1rem; }
.trust-divider {
  width: 1px;
  height: 24px;
  background: var(--justify-gray-mid);
}

/* =====================================================
   SECTIONS — BASE
   ===================================================== */
section { padding: var(--section-py) 0; }
.bg-white { background: white; }
.bg-gray { background: var(--justify-gray-bg); }
.bg-green { background: var(--justify-green-deep); }
.bg-dark { background: #0d1b0d; }
.text-center { text-align: center; }
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =====================================================
   PRACTICE AREAS
   ===================================================== */
.practice-areas-section { background: white; }
.practice-areas-header { text-align: center; margin-bottom: 48px; }

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.practice-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  background: white;
  border: 1.5px solid var(--justify-gray-mid);
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.practice-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--justify-green-bright), var(--justify-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.practice-card:hover {
  border-color: var(--justify-green-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--justify-green-deep);
}
.practice-card:hover::before { transform: scaleX(1); }
.practice-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
  transition: transform var(--transition-base);
}
.practice-card:hover .practice-icon { transform: scale(1.1); }
.practice-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--justify-text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.practice-desc {
  font-size: 0.73rem;
  color: var(--justify-text-light);
  line-height: 1.4;
}
.practice-all-link { text-align: center; }

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats-section {
  background: linear-gradient(135deg, var(--justify-green-dark) 0%, var(--justify-green-deep) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--border-radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition-base);
}
.stat-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--justify-gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  line-height: 1.4;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section { background: var(--justify-gray-bg); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-image-wrap { position: relative; }
.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--justify-gold);
  color: var(--justify-text-dark);
  border-radius: var(--border-radius-lg);
  padding: 16px 22px;
  box-shadow: var(--shadow-gold);
  text-align: center;
}
.about-badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.about-badge-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.about-content .section-title { color: var(--justify-green-deep); }
.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}
.values-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--justify-text-mid);
}
.values-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--justify-green-light);
  color: var(--justify-green-bright);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* =====================================================
   TEAM SECTION
   ===================================================== */
.team-section { background: white; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: white;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--justify-gray-mid);
  transition: all var(--transition-base);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.team-card-header {
  height: 100px;
  background: linear-gradient(135deg, var(--justify-green-deep), var(--justify-green-bright));
  position: relative;
}
.team-avatar {
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
}
.team-card-body {
  padding: 52px 20px 24px;
  text-align: center;
}
.team-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--justify-text-dark);
  margin-bottom: 4px;
}
.team-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--justify-green-bright);
  background: var(--justify-green-light);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.team-divider {
  height: 1px;
  background: var(--justify-gray-mid);
  margin: 12px 0;
}
.team-specialization {
  font-size: 0.78rem;
  color: var(--justify-text-light);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--justify-green-deep) 0%, #004400 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '⚖️';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 180px;
  opacity: 0.04;
  pointer-events: none;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-band-inner h2 {
  font-family: var(--font-display);
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}
.cta-band-inner p { color: rgba(255,255,255,0.75); margin: 0; font-size: 1rem; }
.cta-band-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; flex-shrink: 0; }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-section { background: var(--justify-gray-bg); }
.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (min-width:1100px) { .testimonials-slider { grid-template-columns: repeat(5,1fr); gap:16px; } }
.testimonial-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--justify-gray-mid);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stars { color: var(--justify-gold); font-size: 0.85rem; letter-spacing: 2px; }
.testimonial-text {
  font-size: 0.875rem;
  color: var(--justify-text-mid);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 36px;
  height: 36px;
  background: var(--justify-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 0.82rem; color: var(--justify-text-dark); }
.author-meta {
  font-size: 0.72rem;
  color: var(--justify-green-bright);
  font-weight: 600;
}

/* =====================================================
   BLOG / KNOWLEDGE HUB
   ===================================================== */
.blog-section { background: white; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}
.blog-card {
  background: white;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--justify-gray-mid);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--justify-green-light);
}
.blog-thumbnail img { width:100%; height:100%; object-fit:cover; transition: transform var(--transition-slow); }
.blog-card:hover .blog-thumbnail img { transform: scale(1.05); }
.blog-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--justify-green-deep);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.blog-body { padding: 20px; flex: 1; }
.blog-meta { font-size: 0.75rem; color: var(--justify-text-light); font-weight: 600; margin-bottom: 8px; }
.blog-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--justify-text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-title a { color: inherit; }
.blog-title a:hover { color: var(--justify-green-deep); }
.blog-excerpt { font-size: 0.82rem; color: var(--justify-text-light); line-height: 1.6; }
.blog-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--justify-gray-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.read-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--justify-green-deep);
}
.read-more:hover { color: var(--justify-green-bright); }

/* =====================================================
   LEGAL DRAFT SECTION (NEW!)
   ===================================================== */
.legal-draft-section {
  background: linear-gradient(135deg, #0d1b0d 0%, var(--justify-green-dark) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.legal-draft-section::before {
  content: '📄';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  opacity: 0.05;
}
.legal-draft-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.legal-draft-content { color: white; }
.legal-draft-content .section-eyebrow {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.3);
  color: var(--justify-gold);
}
.legal-draft-content .section-title { color: white; }
.legal-draft-content p { color: rgba(255,255,255,0.75); }
.legal-draft-features { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.draft-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.9rem;
}
.draft-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(212,175,55,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.legal-draft-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--border-radius-xl);
  padding: 32px;
  backdrop-filter: blur(10px);
}
.draft-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.draft-type-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--border-radius);
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.draft-type-item:hover {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.3);
  color: var(--justify-gold);
}

/* =====================================================
   EMERGENCY SECTION
   ===================================================== */
.emergency-section {
  background: linear-gradient(135deg, #8B0000, #C0392B);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.emergency-section::before {
  content: '🚨';
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  opacity: 0.1;
  pointer-events: none;
}
.emergency-section::after {
  content: '🚨';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  opacity: 0.1;
  pointer-events: none;
}
.emergency-inner { position: relative; z-index: 1; }
.emergency-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
.emergency-title {
  color: white;
  font-size: clamp(1.8rem,4vw,2.8rem);
  margin-bottom: 12px;
}
.emergency-title span { color: var(--justify-gold); }
.emergency-subtitle { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 28px; }
.emergency-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   REGISTRATION SECTION
   ===================================================== */
.registration-section { background: var(--justify-gray-bg); }
.registration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.reg-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--justify-gray-mid);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.reg-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.reg-card.client::before { background: linear-gradient(90deg, var(--justify-green-bright), var(--justify-green-deep)); }
.reg-card.advocate::before { background: linear-gradient(90deg, var(--justify-gold), var(--justify-gold-dark)); }
.reg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.reg-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
}
.reg-card h3 {
  font-size: 1.5rem;
  color: var(--justify-text-dark);
  margin-bottom: 12px;
}
.reg-card p { color: var(--justify-text-mid); margin-bottom: var(--space-md); }
.reg-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-lg);
}
.reg-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--justify-text-mid);
}
.reg-features li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: var(--justify-green-light);
  color: var(--justify-green-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
#justify-footer {
  background: #0a150a;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--justify-gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,175,55,0.2);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--justify-gold); padding-left: 4px; }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 14px 0;
}
.footer-contact { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}
.footer-contact a:hover { color: var(--justify-gold); }
.footer-urdu-tagline {
  font-family: var(--font-urdu);
  font-size: 1.1rem;
  color: var(--justify-gold);
  direction: rtl;
  margin-top: 12px;
  opacity: 0.8;
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-copyright strong { color: var(--justify-gold); }
.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  max-width: 550px;
  line-height: 1.6;
}
.footer-disclaimer strong { color: rgba(255,255,255,0.5); }

/* Legal disclaimer bar */
.legal-disclaimer-bar {
  background: rgba(0,0,0,0.4);
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.legal-disclaimer-bar p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  margin: 0;
}

/* =====================================================
   FLOATING BUTTONS
   ===================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.2);
  z-index: var(--z-float);
  transition: all var(--transition-base);
  animation: float-bob 3s ease-in-out infinite;
}
.floating-whatsapp:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
}

.floating-call {
  position: fixed;
  bottom: 32px;
  right: 24px;
  background: linear-gradient(135deg, var(--justify-green-bright), var(--justify-green-deep));
  color: white;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  box-shadow: var(--shadow-green), 0 2px 8px rgba(0,0,0,0.2);
  z-index: var(--z-float);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition-base);
}
.floating-call:hover {
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 8px 32px rgba(0,102,0,0.5);
}
.floating-call-icon { font-size: 1.2rem; }

@keyframes float-bob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
#back-to-top {
  position: fixed;
  bottom: 190px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: white;
  color: var(--justify-green-deep);
  border: 2px solid var(--justify-green-light);
  border-radius: 50%;
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: var(--z-float);
  transition: all var(--transition-base);
  cursor: pointer;
}
#back-to-top.show { display: flex; }
#back-to-top:hover {
  background: var(--justify-green-deep);
  color: white;
  transform: translateY(-2px);
}

/* =====================================================
   PROCESS / HOW IT WORKS SECTION
   ===================================================== */
.process-section { background: var(--justify-green-light); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--justify-green-bright), var(--justify-gold));
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--justify-green-bright), var(--justify-green-deep));
  color: white;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-green);
  border: 4px solid white;
  transition: all var(--transition-base);
}
.process-step:hover .step-number { transform: scale(1.1); }
.step-icon { font-size: 1.8rem; margin-bottom: 8px; }
.step-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--justify-green-deep);
  margin-bottom: 6px;
}
.step-desc { font-size: 0.82rem; color: var(--justify-text-mid); line-height: 1.6; }

/* =====================================================
   SIDEBAR & WIDGETS
   ===================================================== */
.sidebar-widget {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--justify-gray-mid);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--justify-green-deep);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--justify-green-light);
}

/* =====================================================
   404 PAGE
   ===================================================== */
.error-404 { text-align: center; padding: 120px 0; }
.error-404 .error-code {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 900;
  color: var(--justify-green-light);
  line-height: 1;
  margin-bottom: 16px;
}

/* =====================================================
   RESPONSIVE — TABLET (max 1024px)
   ===================================================== */
@media (max-width: 1024px) {
  :root { --section-py: 60px; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-title { font-size: clamp(2rem, 5vw, 3rem); }
  .hero-section { min-height: auto; padding: 60px 0; }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { max-width: 500px; }

  .stats-grid { grid-template-columns: repeat(2,1fr); }

  .team-grid { grid-template-columns: repeat(2,1fr); }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1/-1; }

  .process-steps { grid-template-columns: repeat(2,1fr); }
  .process-steps::before { display: none; }

  .legal-draft-inner { grid-template-columns: 1fr; gap: 40px; }

  .nav-dropdown { grid-template-columns: 1fr; }
}

/* =====================================================
   RESPONSIVE — MOBILE (max 768px)
   ===================================================== */
@media (max-width: 768px) {
  :root { --section-py: 48px; --gutter: 16px; }

  .justify-nav-wrap { display: none; }
  .hamburger { display: flex; }

  #justify-topbar { display: none; }

  .hero-stats { gap: 16px; }
  .hero-stat .number { font-size: 1.5rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .practice-grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; }

  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .stat-number { font-size: 2.2rem; }

  .team-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }

  .testimonials-slider { grid-template-columns: 1fr; }

  .blog-grid { grid-template-columns: 1fr; }

  .registration-grid { grid-template-columns: 1fr; }

  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-actions { flex-direction: column; width: 100%; }
  .cta-band-actions .btn { width: 100%; }

  .emergency-actions { flex-direction: column; align-items: center; }

  .footer-top { grid-template-columns: 1fr; gap: 24px; }

  .footer-bottom { flex-direction: column; gap: 12px; }

  .floating-call .call-text { display: none; }
  .floating-call { padding: 12px; border-radius: 50%; }

  .process-steps { grid-template-columns: 1fr; }

  .values-list { grid-template-columns: 1fr; }

  .draft-types { grid-template-columns: 1fr; }

  .trust-bar-inner { gap: 8px; }
  .trust-divider { display: none; }
  .trust-item { font-size: 0.78rem; padding: 4px 8px; }

  .hero-eyebrow { font-size: 0.7rem; }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ===================================================== */
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { justify-content: center; }
}

/* =====================================================
   RTL SUPPORT
   ===================================================== */
[dir="rtl"] .justify-nav { flex-direction: row-reverse; }
[dir="rtl"] .values-list li::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .hero-title-urdu { direction: rtl; }

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
  #justify-topbar, #justify-header, #justify-footer,
  .floating-whatsapp, .floating-call, #back-to-top,
  .mobile-nav { display: none !important; }
  body { font-size: 12pt; }
  a { color: black; }
  .hero-section { min-height: auto; background: none; color: black; padding: 20pt 0; }
}

/* =====================================================
   ANIMATIONS / UTILITIES
   ===================================================== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

.stagger-children > * { opacity: 0; transform: translateY(16px); }
.stagger-children.visible > * { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.10s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.20s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.30s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.40s; }
.stagger-children.visible > *:nth-child(n+9) { transition-delay: 0.45s; }

/* =====================================================
   SINGLE ARTICLE TEMPLATE (single.php)
   ===================================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
}

.article-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 480px) { .article-card { padding: 20px; } }

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--justify-text-light);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--justify-gray-mid);
}
.article-meta-category {
  background: var(--justify-green-light);
  color: var(--justify-green-deep);
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
}

.article-thumb { border-radius: 8px; overflow: hidden; margin-bottom: 28px; }

.article-toc {
  background: var(--justify-green-light);
  border: 1px solid rgba(0,102,0,0.15);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
}
.article-toc-title { font-size: 1rem; font-family: var(--font-display); color: var(--justify-green-deep); margin: 0 0 10px; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin-bottom: 6px; font-size: 0.9rem; }
.article-toc li.toc-h3 { list-style: none; margin-left: 16px; font-size: 0.85rem; }
.article-toc a, .sidebar-toc-sticky a { color: var(--justify-text-mid); text-decoration: none; }
.article-toc a:hover, .sidebar-toc-sticky a:hover { color: var(--justify-green-deep); text-decoration: underline; }

.entry-content { font-size: 16px; line-height: 1.8; color: var(--justify-text-mid); }
.entry-content h2 { font-family: var(--font-display); color: var(--justify-green-deep); margin-top: 2em; scroll-margin-top: 100px; }
.entry-content h3 { font-family: var(--font-display); color: var(--justify-text-dark); margin-top: 1.6em; scroll-margin-top: 100px; }
.entry-content a { color: var(--justify-green-bright); }
.entry-content blockquote { border-left: 4px solid var(--justify-gold); padding: 12px 20px; background: var(--justify-gray-bg); border-radius: 0 8px 8px 0; }

.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
  padding: 16px 0;
  border-top: 1px solid var(--justify-gray-mid);
  border-bottom: 1px solid var(--justify-gray-mid);
}
.article-share-label { font-size: 0.85rem; font-weight: 700; color: var(--justify-text-mid); margin-right: 4px; }
.article-share-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--justify-gray-bg);
  border: none; cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.article-share-btn:hover { transform: translateY(-2px); background: var(--justify-green-light); }

.article-footer { margin-top: 1.5rem; }
.article-tags { font-size: 13px; color: var(--justify-text-light); }

.article-author-box {
  display: flex;
  gap: 16px;
  margin-top: 2rem;
  padding: 20px;
  background: var(--justify-gray-bg);
  border-radius: 10px;
  border-top: 3px solid var(--justify-gold);
}
.article-author-avatar img { border-radius: 50%; }
.author-avatar-fallback {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--justify-green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.article-author-name { font-weight: 800; color: var(--justify-green-deep); margin-bottom: 6px; }
.article-author-bio { font-size: 0.88rem; color: var(--justify-text-mid); margin: 0 0 12px; line-height: 1.6; }
@media (max-width: 480px) { .article-author-box { flex-direction: column; } }

.related-articles { margin-top: 48px; }
.related-articles-title { font-family: var(--font-display); color: var(--justify-green-deep); margin-bottom: 20px; font-size: 1.4rem; }

.article-sidebar { position: relative; }
.sidebar-toc-sticky {
  background: #fff;
  border: 1px solid var(--justify-gray-mid);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  position: sticky;
  top: 100px;
  max-height: 70vh;
  overflow-y: auto;
}
.sidebar-toc-sticky ol { margin: 0; padding-left: 18px; }
.sidebar-toc-sticky li { margin-bottom: 8px; font-size: 0.85rem; }
.sidebar-toc-sticky li.toc-h3 { list-style: none; margin-left: 14px; font-size: 0.8rem; }
@media (max-width: 1024px) { .sidebar-toc-sticky { position: static; max-height: none; } }

.sidebar-mini-cta {
  background: linear-gradient(135deg, var(--justify-green-deep), var(--justify-green-dark));
  color: #fff;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
}
.sidebar-mini-cta h4 { font-family: var(--font-display); margin: 0 0 8px; color: #fff; }
.sidebar-mini-cta p { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin: 0 0 14px; }

/* =====================================================
   TAX CALCULATOR WIDGET (template-ntn-tax.php)
   ===================================================== */
.tax-calc-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tax-calc-tabs {
  display: flex;
  flex-wrap: wrap;
  background: var(--justify-green-light);
}
.tax-calc-tab {
  flex: 1;
  min-width: 140px;
  padding: 16px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--justify-text-mid);
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 3px solid transparent;
}
.tax-calc-tab.active {
  background: #fff;
  color: var(--justify-green-deep);
  border-bottom-color: var(--justify-gold);
}
.tax-calc-body { padding: 28px; }
@media (max-width: 480px) { .tax-calc-body { padding: 18px; } }

.tax-calc-row { margin-bottom: 18px; }
.tax-calc-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--justify-text-dark);
  margin-bottom: 8px;
}
.tax-calc-segmented {
  display: inline-flex;
  background: var(--justify-gray-bg);
  border-radius: 8px;
  padding: 3px;
  flex-wrap: wrap;
}
.seg-btn {
  border: none;
  background: transparent;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--justify-text-mid);
  transition: all 0.2s ease;
}
.seg-btn.active { background: var(--justify-green-deep); color: #fff; }

.tax-calc-input-group { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tax-calc-input-group input[type="number"] {
  flex: 1;
  min-width: 160px;
  padding: 12px 14px;
  border: 1.5px solid var(--justify-gray-mid);
  border-radius: 8px;
  font-size: 1rem;
}
.tax-calc-input-group input[type="number"]:focus { border-color: var(--justify-green-bright); outline: none; }

.tax-calc-results {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 2px dashed var(--justify-gray-mid);
}
.tax-calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 480px) { .tax-calc-results-grid { grid-template-columns: 1fr 1fr; } }
.tax-calc-stat {
  background: var(--justify-gray-bg);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.tax-calc-stat.highlight { background: var(--justify-green-light); }
.tax-calc-stat-label { display: block; font-size: 0.75rem; color: var(--justify-text-light); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.tax-calc-stat-value { display: block; font-size: 1.3rem; font-weight: 900; color: var(--justify-green-deep); }
@media (max-width: 480px) { .tax-calc-stat-value { font-size: 1.05rem; } }

.tax-calc-surcharge-note {
  background: #fef3e2;
  border: 1px solid var(--justify-gold);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #8a6315;
  margin-bottom: 16px;
}

.tax-calc-breakdown-title { font-size: 0.95rem; color: var(--justify-green-deep); margin-bottom: 10px; }
.tax-calc-breakdown-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-bottom: 20px; }
.tax-calc-breakdown-table thead td { background: var(--justify-green-light); color: var(--justify-green-deep); border-bottom: 2px solid var(--justify-green-bright); }
.tax-calc-breakdown-table td { padding: 8px 10px; border-bottom: 1px solid var(--justify-gray-mid); color: var(--justify-text-mid); }
.tax-calc-breakdown-table tr:last-child td { font-weight: 700; color: var(--justify-text-dark); }

.tax-calc-cta {
  background: var(--justify-green-deep);
  color: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.tax-calc-cta p { color: rgba(255,255,255,0.9); margin: 0 0 14px; font-size: 0.9rem; }
.tax-calc-cta .btn { margin: 4px; }

.tax-calc-disclaimer {
  font-size: 0.74rem;
  color: var(--justify-text-light);
  margin-top: 20px;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid var(--justify-gray-mid);
}

/* =====================================================
   LEGAL LIBRARY — SEARCH PAGE & SINGLE LAW VIEW
   ===================================================== */
.law-search-bar {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 20px;
  flex-wrap: wrap;
}
.law-search-bar input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border: 1.5px solid var(--justify-gray-mid);
  border-radius: 100px;
  font-size: 1rem;
}
.law-search-bar input[type="text"]:focus { border-color: var(--justify-green-bright); outline: none; }
.law-search-bar .btn { border-radius: 100px; }

.law-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto 28px;
}
.law-filter-chip {
  border: 1.5px solid var(--justify-gray-mid);
  background: #fff;
  color: var(--justify-text-mid);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.law-filter-chip.active, .law-filter-chip:hover { background: var(--justify-green-deep); color: #fff; border-color: var(--justify-green-deep); }

.law-search-state { text-align: center; color: var(--justify-text-light); padding: 30px 0; }

.law-search-results {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.law-result-card {
  display: block;
  background: #fff;
  border: 1px solid var(--justify-gray-mid);
  border-radius: 10px;
  padding: 18px 22px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.law-result-card:hover { box-shadow: var(--shadow-md); border-color: var(--justify-green-bright); }
.law-result-law { font-size: 0.78rem; font-weight: 700; color: var(--justify-green-deep); text-transform: uppercase; letter-spacing: 0.04em; }
.law-result-section { font-family: var(--font-display); font-size: 1.05rem; color: var(--justify-text-dark); margin: 4px 0 8px; }
.law-result-snippet { font-size: 0.9rem; color: var(--justify-text-mid); margin: 0; line-height: 1.6; }
.law-result-snippet mark { background: var(--justify-gold); color: var(--justify-text-dark); padding: 0 2px; border-radius: 3px; }

.law-disclaimer-banner {
  background: #fef3e2;
  border: 1px solid var(--justify-gold);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #8a6315;
  margin-bottom: 28px;
}
.law-disclaimer-banner a { color: var(--justify-green-deep); font-weight: 700; }

.law-section { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--justify-gray-mid); scroll-margin-top: 100px; }
.law-section:last-child { border-bottom: none; }
.law-section-heading { font-family: var(--font-display); color: var(--justify-green-deep); font-size: 1.25rem; margin-bottom: 12px; }
.law-section-number {
  display: inline-block;
  background: var(--justify-green-light);
  color: var(--justify-green-deep);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 10px;
  vertical-align: middle;
}
.law-section-text { font-size: 0.96rem; line-height: 1.8; color: var(--justify-text-mid); }

/* Admin law editor tabs (inc/law-library.php) */
.law-tab.active { background: var(--justify-green-deep, #006600); color: #fff; border-color: var(--justify-green-deep, #006600); }
