/* ==========================================================================
   TADVIN AUDIT & ASSURANCE FIRM - DESIGN SYSTEM STYLESHEET
   Based strictly on DESIGN.md (Single Source of Truth)
   Aesthetic: Minimal, Institutional, Authoritative, High Whitespace
   ========================================================================== */

/* ==========================================================================
   Self-Hosted Vazirmatn Typography (Complete Static & Variable Font Suite)
   ========================================================================== */

/* 1. Variable Font (Weights 100 to 900) */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Dedicated Static Weights (Guarantees Fallback for Every Specific Weight) */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color Tokens */
  --primary: #5C1124;
  --primary-hover: #731A31;
  --primary-dark: #3B0913;
  --primary-light: #7E1C35;
  --background: #FAFAFB;
  --surface: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --accent-beige: #D8C7A1;
  --accent-beige-subtle: #F5F1E8;

  /* Layout Tokens */
  --container-width: 1280px;
  --header-height: 88px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-pill: 50px;
  --radius-full: 9999px;

  /* Elevation & Shadows (Subtle, Minimal) */
  --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.04);
  --shadow-md: 0 10px 25px rgba(30, 41, 59, 0.06);
  --shadow-lg: 0 20px 40px rgba(92, 17, 36, 0.08);

  /* Transitions (Hardware Accelerated Properties) */
  --transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Box Sizing Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Typography */
html, body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body, button, input, select, textarea, p, h1, h2, h3, h4, h5, h6, a, span, label, li, td, th {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  width: 100%;
}

body {
  background-color: var(--background);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden !important;
}

/* Accessibility: Skip to Main Content */
.skip-to-content {
  position: absolute;
  top: -120px;
  right: 24px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  z-index: 99999;
  transition: top 0.25s ease;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  border: 1px solid var(--accent-beige);
}

.skip-to-content:focus {
  top: 16px;
  outline: 2px solid var(--accent-beige);
}

/* Accessibility: Standard WCAG 2.1 Focus Indicator for Keyboard Navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.client-card:focus-visible,
.pyramid-step:focus-visible,
.trust-badge-card:focus-visible {
  outline: 2.5px solid var(--primary) !important;
  outline-offset: 3px !important;
  border-radius: var(--radius-sm);
}

/* Security: Anti-Spam Bot Honeypot Field */
.visually-hidden-hp {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -10 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility Classes */
.text-beige { color: var(--accent-beige) !important; }
.text-burgundy { color: var(--primary) !important; }
.bg-light-alt { background-color: #F1F5F9 !important; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  height: 76px;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

/* Top Right Logo + Brand Text Wrapper */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.official-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  background: transparent;
  flex-shrink: 0;
}

.logo-wrapper:hover .official-logo-img {
  transform: scale(1.03);
}

.logo-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

/* 3-Line Header Brand Typography */
.brand-pretitle {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.brand-main-title {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.brand-status {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.62rem;
  font-weight: 600;
  color: #78716c;
  line-height: 1.2;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

/* Backwards compatibility */
.brand-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}



.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Executive Header CTA Button */
.header-cta-btn,
.header-actions .btn-primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #5C1124 0%, #430B19 100%);
  color: #FFFFFF !important;
  padding: 8px 18px;
  height: 40px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.86rem;
  border: 1px solid rgba(216, 199, 161, 0.4);
  box-shadow: 0 2px 8px rgba(92, 17, 36, 0.16);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.1px;
}

.header-cta-btn i,
.header-actions .btn-primary-pill i {
  color: var(--accent-beige);
  font-size: 0.88rem;
  transition: transform 0.25s ease;
}

.header-cta-btn:hover,
.header-actions .btn-primary-pill:hover {
  background: linear-gradient(135deg, #731A31 0%, #520E1E 100%);
  border-color: var(--accent-beige);
  box-shadow: 0 4px 14px rgba(92, 17, 36, 0.25);
  transform: translateY(-1px);
}

.header-cta-btn:hover i,
.header-actions .btn-primary-pill:hover i {
  transform: scale(1.12);
}

.btn-primary-pill {
  background: var(--primary);
  color: #FFFFFF;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-primary-pill:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-pill {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-pill:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle:hover {
  background: var(--accent-beige-subtle);
}

/* Mobile Nav Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Default Desktop: Mobile Plaque is hidden */
.hero-mobile-plaque {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-split-section {
  position: relative;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--background) 100%);
  overflow: hidden;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-beige-subtle);
  border: 1px solid var(--accent-beige);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 700;
  width: fit-content;
  line-height: 1.4;
}

.hero-heading-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-title-main {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.hero-title-line {
  display: block;
}

.hero-subtitle-formal {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  border-right: 4px solid var(--accent-beige);
  padding-right: 14px;
}

.hero-desc-formal {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.hero-building-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  max-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-building-photo {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
  border-radius: 16px;
}

.hero-building-frame:hover .hero-building-photo {
  transform: scale(1.02);
}

.building-badge-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-right: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section-wrapper {
  margin-top: -20px;
  position: relative;
  z-index: 10;
}

.stats-luxury-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
}

.stat-item-modern {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 12px;
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

.stat-item-modern:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 0;
  width: 1px;
  height: 80%;
  background: var(--border);
}

.stat-icon-badge {
  width: 50px;
  height: 50px;
  background: var(--accent-beige-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
}

.stat-item-modern:hover .stat-icon-badge {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: scale(1.05);
}

.stat-info-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.stat-counter,
.stat-number-persian {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.15;
  direction: ltr;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  letter-spacing: -0.5px;
}

.stat-badge-text,
.stat-grade,
.stat-text-metric {
  direction: rtl;
  justify-content: flex-start;
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
  line-height: 1.15;
}

.stat-plus-sign {
  color: var(--primary);
  font-weight: 900;
  margin-right: 2px;
}

.stat-title-text {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.stat-subdesc-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
}

.stat-counter-unit-wrapper {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  direction: ltr;
}

.stat-unit-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: normal;
}

/* Backwards compatibility */
.stat-label-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* ==========================================================================
   ACCREDITATION BADGES & REGULATORY BODIES
   ========================================================================== */
.accreditation-section {
  padding: 64px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.accreditation-header {
  text-align: center;
  margin-bottom: 40px;
}

.accreditation-badge-tag {
  display: inline-block;
  background: var(--accent-beige-subtle);
  color: var(--primary);
  border: 1px solid var(--accent-beige);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.accreditation-main-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
}

.accreditation-main-title span {
  color: var(--primary);
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 30px 22px;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.trust-badge-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s ease;
}

.trust-badge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 17, 36, 0.25);
  box-shadow: var(--shadow-md);
}

.trust-badge-card:hover::before {
  background: var(--primary);
}

.trust-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--accent-beige-subtle);
  border: 1px solid var(--accent-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.trust-badge-card:hover .trust-icon-box {
  transform: scale(1.08);
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.trust-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.trust-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.45;
  margin: 0;
}

.trust-status-desc {
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.section-padding {
  padding: 88px 0;
}

.section-header {
  text-align: center !important;
  max-width: 750px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-tag {
  display: block;
  color: var(--primary);
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 8px;
  text-align: center !important;
  letter-spacing: -0.3px;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  text-align: center !important;
  line-height: 1.4;
}

.section-title strong {
  color: var(--primary);
  font-weight: 800 !important;
}

.section-desc {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center !important;
  max-width: 680px;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* Modern hover effect: organizational border color, soft shadow, 2mm lift */
.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(92, 17, 36, 0.35);
  box-shadow: 0 12px 28px -6px rgba(92, 17, 36, 0.09), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  background: var(--accent-beige-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.55rem;
  margin-bottom: 22px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover .service-icon-box {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: scale(1.04);
}

.service-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.45;
}

.service-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0;
  flex-grow: 1;
}

/* --- SERVICES CTA BANNER (Executive Commercial Action Banner) --- */
.services-cta-banner {
  margin-top: 52px;
  background: linear-gradient(135deg, #4A0B1A 0%, #5C1124 55%, #380713 100%);
  border-radius: var(--radius-lg);
  padding: 42px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 1px solid rgba(216, 199, 161, 0.28);
  box-shadow: 0 18px 40px -8px rgba(92, 17, 36, 0.24);
  position: relative;
  overflow: hidden;
}

.services-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(216, 199, 161, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.services-cta-content {
  flex: 1;
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.services-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F8FAFC;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.services-cta-badge i {
  color: var(--accent-beige);
  font-size: 0.9rem;
}

.services-cta-title {
  color: #FFFFFF;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
}

.services-cta-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  line-height: 1.78;
  margin-bottom: 0;
}

.services-cta-action {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.services-cta-btn,
.services-cta-action .services-cta-btn {
  background: #FFFFFF;
  color: #5C1124;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.96rem;
  padding: 14px 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.services-cta-btn:hover,
.services-cta-action .services-cta-btn:hover {
  background: #F8FAFC;
  color: #5C1124;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.services-cta-btn i {
  transition: transform 0.25s ease;
}

.services-cta-btn:hover i {
  transform: translateX(-4px);
}

/* ==========================================================================
/* MODERN ABOUT HERO SECTION (Light & Clean Institutional Theme) */
.about-hero-section {
  padding-top: calc(var(--header-height) + 36px);
  padding-bottom: 60px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 14px;
}

.about-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(92, 17, 36, 0.07);
  color: var(--primary);
  border: 1px solid rgba(92, 17, 36, 0.16);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-hero-badge i {
  color: var(--primary);
  font-size: 0.9rem;
}

.about-hero-title {
  font-size: 2.15rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.38;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.about-hero-desc {
  font-size: 1.02rem;
  line-height: 2;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 30px;
}

/* Official Corporate Legal Registration Plaque */
.about-legal-plaque {
  background: linear-gradient(135deg, rgba(92, 17, 36, 0.04) 0%, rgba(216, 199, 161, 0.12) 100%);
  border: 1px solid rgba(216, 199, 161, 0.6);
  border-right: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.legal-plaque-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.4;
}

.legal-plaque-header i {
  color: var(--primary);
  font-size: 1.05rem;
}

.legal-plaque-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.86rem;
  color: #334155;
  padding-top: 8px;
  border-top: 1px dashed rgba(216, 199, 161, 0.65);
}

.legal-plaque-item {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legal-plaque-item:first-child {
  justify-content: flex-start;
}

.legal-plaque-item:last-child {
  justify-content: flex-end;
}

.legal-plaque-item strong {
  color: var(--primary);
  font-weight: 800;
}

.legal-plaque-item i {
  color: var(--primary);
  font-size: 0.85rem;
}

.legal-badge-divider {
  color: rgba(92, 17, 36, 0.35);
  font-weight: 300;
  font-size: 0.95rem;
  user-select: none;
  padding: 0 10px;
}

@media (max-width: 440px) {
  .about-legal-plaque {
    padding: 11px 14px;
    gap: 8px;
  }
  .legal-plaque-header {
    font-size: 0.88rem;
  }
  .legal-plaque-row {
    font-size: 0.80rem;
    gap: 4px;
  }
  .legal-badge-divider {
    padding: 0 5px;
  }
}

@media (max-width: 360px) {
  .legal-plaque-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .legal-plaque-item:first-child,
  .legal-plaque-item:last-child {
    justify-content: flex-start;
  }
  .legal-badge-divider {
    display: none;
  }
}

.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 0.82rem;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.legal-badge-pill strong {
  color: var(--primary);
  font-weight: 800;
}

.legal-badge-pill i {
  color: var(--primary);
  font-size: 0.82rem;
}

.legal-badge-pill.highlight {
  background: rgba(92, 17, 36, 0.07);
  border-color: rgba(92, 17, 36, 0.22);
  color: var(--primary);
  font-weight: 700;
}

.about-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.about-hero-btn {
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 800;
}

.about-hero-btn-sub {
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* 4 Pillars of Regulatory Trust Grid */
.about-hero-pillars {
  width: 100%;
}

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

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(92, 17, 36, 0.25);
}

.pillar-card.highlight-pillar {
  border-color: rgba(216, 199, 161, 0.6);
  background: linear-gradient(145deg, #FFFFFF 0%, rgba(216, 199, 161, 0.08) 100%);
}

.pillar-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(92, 17, 36, 0.07);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.pillar-icon-box.gold-accent {
  background: rgba(216, 199, 161, 0.25);
  color: #936B15;
}

.pillar-card:hover .pillar-icon-box {
  background: var(--primary);
  color: #FFFFFF;
}

.pillar-card:hover .pillar-icon-box.gold-accent {
  background: #936B15;
  color: #FFFFFF;
}

.pillar-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.45;
  margin-bottom: 5px;
}

.pillar-subtitle {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Responsive Rules for About Hero */
@media (max-width: 960px) {
  .about-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-hero-title {
    font-size: 1.85rem;
  }

  .about-hero-desc {
    font-size: 0.95rem;
  }
}

@media (max-width: 540px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-hero-section {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 40px;
  }

  .about-hero-title {
    font-size: 1.55rem;
  }

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

  .about-hero-actions .btn-primary-pill,
  .about-hero-actions .btn-outline-pill {
    width: 100%;
    justify-content: center;
  }
}

.team-category-section {
  margin-bottom: 70px;
}

.team-category-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}

.team-category-title i {
  color: var(--primary);
  font-size: 1.4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

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

.team-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-beige);
}

.team-avatar-box {
  width: 72px;
  height: 72px;
  background: var(--accent-beige-subtle);
  border-radius: 50%;
  border: 2px solid var(--accent-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.team-member-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
  white-space: nowrap;
}

.team-member-role {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(92, 17, 36, 0.06);
  padding: 5px 14px;
  border-radius: 50px;
  display: inline-block;
  line-height: 1.5;
  white-space: nowrap;
}

/* ==========================================================================
   STANDARDIZED MANAGERS CARDS (.manager-card)
   ========================================================================== */
.manager-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 18px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  height: 100%;
  min-height: 250px;
}

.manager-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-beige);
}

.manager-card.featured-profile:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(92, 17, 36, 0.12);
}

.manager-card.featured-profile {
  cursor: pointer;
}

/* Card Full Overlay Link */
.manager-card-overlay-link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  text-decoration: none;
}

/* Card Body & Elements */
.manager-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1 0 auto;
}

.manager-avatar-box {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent-beige);
  background: var(--accent-beige-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.manager-card:hover .manager-avatar-box {
  border-color: var(--primary);
  transform: scale(1.05);
}

.manager-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.manager-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  white-space: nowrap;
}

.manager-role-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(92, 17, 36, 0.06);
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
  line-height: 1.45;
  white-space: nowrap;
  margin-bottom: 8px;
}

.manager-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}

.manager-badge-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.3;
}

/* Card Footer */
.manager-card-footer {
  position: relative;
  z-index: 3;
  margin-top: 14px;
  padding-top: 10px;
  width: 100%;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.manager-card.featured-profile:hover .manager-footer-link.active {
  color: var(--primary-dark);
}

.manager-card.featured-profile:hover .manager-footer-link.active i {
  transform: translateX(-4px);
}

.manager-footer-link {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.manager-footer-link.active {
  color: var(--primary);
}

.manager-footer-link.active:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.manager-footer-link.active i {
  transition: transform 0.2s ease;
}

.manager-footer-link.active:hover i {
  transform: translateX(-3px);
}

.manager-footer-link.is-placeholder {
  color: #94A3B8;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: default;
}

/* ==========================================================================
   PARTNER CARDS SYSTEM (.partner-card)
   ========================================================================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.partner-card {
  position: relative;
  cursor: pointer;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100%;
  padding: 26px 18px 20px !important;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-beige);
}

.partner-card-overlay-link {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  border-radius: var(--radius-lg);
  display: block;
  cursor: pointer;
}

.partner-card-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
  width: 100%;
  pointer-events: none;
}

.partner-avatar-box {
  width: 120px;
  height: 120px;
  min-width: 120px;
  min-height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-beige);
  overflow: hidden;
  background: #F8FAFC;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  margin-bottom: 16px;
  transition: var(--transition);
}

.partner-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.partner-card:hover .partner-avatar-box {
  border-color: var(--primary);
  transform: scale(1.04);
}

.partner-name {
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
  white-space: nowrap;
}

.partner-role-badge {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(92, 17, 36, 0.07);
  padding: 5px 14px;
  border-radius: 50px;
  display: inline-block;
  line-height: 1.5;
  white-space: nowrap;
  margin-bottom: 8px;
}

.partner-single-cred {
  font-size: 0.77rem;
  font-weight: 600;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 6px 10px;
  line-height: 1.45;
  margin-top: 4px;
  margin-bottom: 6px;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.partner-card-footer {
  margin-top: auto;
  padding-top: 14px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.partner-profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(92, 17, 36, 0.05);
  border: 1px solid rgba(92, 17, 36, 0.12);
  border-radius: var(--radius-md);
  transition: var(--transition);
  width: 100%;
  line-height: 1.4;
  text-decoration: none;
  pointer-events: none;
}

.partner-card:hover .partner-profile-link {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(92, 17, 36, 0.2);
}

.partner-profile-link i {
  font-size: 0.78rem;
  transition: transform 0.25s ease;
}

.partner-card:hover .partner-profile-link i {
  transform: translateX(-4px);
}

/* ==========================================================================
   DEDICATED PARTNER PROFILE PAGES (.partner-profile-section)
   ========================================================================== */
.partner-profile-section {
  padding: 40px 0 80px;
  background: #FAF9F6;
  min-height: calc(100vh - 200px);
}

.partner-profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.partner-profile-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #64748B;
  margin-bottom: 28px;
}

.partner-profile-breadcrumb a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.partner-profile-breadcrumb a:hover {
  color: var(--primary);
}

.partner-profile-breadcrumb i {
  font-size: 0.7rem;
  color: #94A3B8;
}

.partner-profile-breadcrumb span {
  color: var(--primary);
  font-weight: 700;
}

.partner-profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.partner-profile-sidebar {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: sticky;
  top: 100px;
}

.partner-profile-img-box {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--accent-beige);
  overflow: hidden;
  background: #F8FAFC;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: var(--transition);
}

.partner-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.partner-profile-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 8px;
}

.partner-profile-role {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(92, 17, 36, 0.08);
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 18px;
}

.partner-profile-quick-stats {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: right;
}

.profile-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.88rem;
}

.profile-stat-row:last-child {
  border-bottom: none;
}

.profile-stat-label {
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.profile-stat-label i {
  color: var(--primary);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
}

.profile-stat-val {
  font-weight: 800;
  color: var(--text-main);
  text-align: left;
  font-size: 0.9rem;
}

.partner-profile-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-profile-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  color: #334155;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.btn-profile-back:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: var(--primary);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.btn-profile-back .btn-arrow {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn-profile-back:hover .btn-arrow {
  transform: translateX(-4px);
}

.partner-btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #F1F5F9;
  color: var(--primary);
  border: 1px solid rgba(92, 17, 36, 0.2);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  width: 100%;
}

.partner-btn-back:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(92, 17, 36, 0.25);
  transform: translateY(-2px);
}

.partner-profile-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.partner-info-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.partner-card-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 12px;
}

.partner-card-header-bar i {
  color: var(--primary);
  font-size: 1.25rem;
}

.partner-card-header-bar h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.partner-creds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.partner-creds-grid-2x2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px;
}

@media (max-width: 640px) {
  .partner-creds-grid-2x2 {
    grid-template-columns: 1fr !important;
  }
}

.cred-box-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: #1E293B;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.cred-box-item:hover {
  background: #F8FAFC;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cred-box-item i {
  color: var(--primary);
  font-size: 1.15rem;
  min-width: 22px;
  text-align: center;
}

.cred-box-item.gold-highlight {
  background: #FFFFFF;
  border-color: rgba(216, 199, 161, 0.8);
  border-right: 3px solid var(--accent-gold);
  font-weight: 700;
}

@media (max-width: 960px) {
  .partner-profile-section {
    padding: 24px 0 60px;
  }
  .partner-profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .partner-profile-sidebar {
    position: static;
    width: 100%;
    padding: 24px 16px;
  }
  .partner-profile-main {
    width: 100%;
    gap: 20px;
  }
  .partner-info-card {
    padding: 22px 18px;
  }
  .partner-creds-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TEAM MEMBER & RESUME EXTENSIONS (.profile-exp-list, .industry-matrix-grid)
   ========================================================================== */
.profile-exp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-exp-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.profile-exp-item:hover {
  background: #FFFFFF;
  border-color: var(--accent-beige);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.exp-bullet-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: rgba(92, 17, 36, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.exp-item-content {
  flex: 1;
  text-align: right;
}

.exp-item-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.exp-item-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.exp-item-desc {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.8;
  margin: 0;
}

.industry-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.industry-matrix-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.industry-matrix-card:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(92, 17, 36, 0.08);
  transform: translateY(-2px);
}

.matrix-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
}

.matrix-icon-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: rgba(216, 199, 161, 0.25);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.matrix-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px 0;
}

.matrix-subtitle {
  font-size: 0.74rem;
  color: #64748B;
  font-weight: 600;
}

.matrix-clients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.matrix-clients-list li {
  font-size: 0.83rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.matrix-clients-list li i {
  color: #10B981;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .industry-matrix-grid {
    grid-template-columns: 1fr;
  }
}



/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.contact-info-title {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 24px;
  color: #FFFFFF;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent-beige);
  flex-shrink: 0;
}

.contact-text-group h5 {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-bottom: 3px;
}

.contact-text-group p {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.7;
}

.phone-link {
  color: var(--accent-beige);
  font-size: 1.2rem;
  font-weight: 900;
  display: inline-block;
  direction: ltr;
}

/* Compact 2x2 Contact Grid for Phone Lines */
.contact-phones-2x2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}

.contact-phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(216, 199, 161, 0.35);
  border-radius: 6px;
  padding: 6px 10px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  direction: rtl;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.contact-phone-chip:hover {
  background: rgba(216, 199, 161, 0.25);
  border-color: var(--accent-beige);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.contact-phone-chip i {
  font-size: 0.75rem;
  color: var(--accent-beige);
}

.direct-action-btn {
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.direct-action-btn:hover {
  background: #FFFFFF !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(92, 17, 36, 0.09);
}

.neshan-badge-link:hover {
  background: rgba(216, 199, 161, 0.32) !important;
  border-color: #FFFFFF !important;
  transform: translateY(-1px);
}

.form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  font-family: 'Vazirmatn', inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(92, 17, 36, 0.08);
}

/* Custom Styled Select Dropdown (Integrated, Non-native appearance) */
.form-select {
  width: 100%;
  padding: 13px 18px 13px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--background);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235C1124' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  background-size: 16px;
  font-family: 'Vazirmatn', inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  line-height: 1.5;
  transition: var(--transition);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--surface);
  box-shadow: 0 0 0 3px rgba(92, 17, 36, 0.08);
}

.form-select option {
  background: #FFFFFF;
  color: var(--text-main);
  padding: 10px 14px;
  font-family: 'Vazirmatn', inherit;
  font-size: 0.92rem;
}

/* Phone input with LTR digits and RTL placeholder */
.phone-input {
  direction: ltr !important;
  text-align: left !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  letter-spacing: 0.8px;
}

.phone-input::placeholder {
  direction: rtl !important;
  text-align: right !important;
  font-family: 'Vazirmatn', inherit !important;
  letter-spacing: normal !important;
  color: var(--text-light);
}

/* Modal Submit Button (Standardized to 10px radius & primary brand styling) */
.modal-submit-btn {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid var(--primary-light);
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.98rem;
  font-family: 'Vazirmatn', inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(92, 17, 36, 0.2);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  margin-top: 8px;
}

.modal-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 17, 36, 0.3);
}

.modal-submit-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   MODAL & NOTIFICATIONS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: 38px 36px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--border);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

button.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  z-index: 10;
  padding: 0;
}

button.modal-close:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
  color: #0F172A;
}

button.modal-close svg {
  display: block;
  stroke: currentColor;
  transition: stroke 0.2s ease;
}

.toast-msg {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #059669;
  color: #FFFFFF;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Direct Contact Modal Redesign */
.modal-direct-contact {
  max-width: 520px;
  text-align: center;
  padding: 38px 34px 30px;
}

.modal-direct-icon-badge {
  width: 64px;
  height: 64px;
  background: var(--accent-beige-subtle);
  border: 1px solid var(--accent-beige);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.modal-direct-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.modal-direct-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  text-align: right;
  background: var(--background);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border-right: 3px solid var(--primary);
}

.modal-contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.modal-channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-shadow: var(--shadow-sm);
  text-align: right;
}

.modal-channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px -4px rgba(92, 17, 36, 0.12);
  background: #FCF8F9;
}

.modal-channel-card .channel-icon-box {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.modal-channel-card:hover .channel-icon-box {
  transform: scale(1.06);
}

.modal-channel-card .channel-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-channel-card .channel-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-channel-card .channel-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-channel-card .channel-action {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.modal-channel-card:hover .channel-action {
  color: var(--primary);
  transform: translateX(-4px);
}

/* Interactive Career Email CTA Button State */
.btn-primary-pill.btn-copied-success {
  background: #059669 !important;
  border-color: #047857 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding-top: 76px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
}

.footer-logo-img,
.footer-brand img,
.footer-col img {
  max-height: 50px !important;
  width: auto !important;
  object-fit: contain !important;
  margin-bottom: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-col h3,
.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--accent-beige);
}

/* Footer Minimal Phone Line */
.footer-phone-line {
  font-size: 0.95rem;
  color: var(--accent-beige);
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-phone-line a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
}

.footer-phone-line span[dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: 'Vazirmatn', inherit;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.88rem;
}

.footer-signature-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #94A3B8;
  padding: 4px 10px;
  line-height: 1.6;
  transition: opacity 0.25s ease;
}

.dev-signature-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #94A3B8;
  font-size: 0.85rem;
}

.dev-signature-heart {
  color: #5C1124;
  font-size: 0.88rem;
  display: inline-block;
  margin: 0 4px;
  animation: heartPulse 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(92, 17, 36, 0.4));
}

@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

.dev-signature-link {
  color: var(--accent-beige);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
  border-bottom: 1px dotted rgba(216, 199, 161, 0.4);
  padding-bottom: 1px;
}

.dev-signature-link:hover {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   RESPONSIVE QUERIES (COMPREHENSIVE MULTI-DEVICE SYSTEM)
   ========================================================================== */

/* --- TABLET & MEDIUM DESKTOP (<= 1024px) --- */
@media (max-width: 1024px) {
  .hero-split-grid {
    gap: 36px;
  }
  .hero-title-main {
    font-size: 2.2rem;
  }
  .hero-building-photo {
    height: 480px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stat-item-modern:not(:last-child)::after {
    display: none;
  }
  .team-grid, .team-grid-3, .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .services-cta-banner {
    padding: 34px 30px;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* --- MOBILE & SMALL TABLET (<= 860px): LAYERED HERO & LUXURY MOBILE UX --- */
@media (max-width: 860px) {
  /* 1. Header & Navigation Drawer */
  .site-header {
    height: 72px;
  }
  .site-header.scrolled {
    height: 68px;
  }
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 86%;
    max-width: 350px;
    height: calc(100vh - 72px);
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 6px;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.22);
    border-left: 1px solid var(--border);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex !important;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-main);
    background: transparent;
    border-bottom: 1px solid #F1F5F9;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  }

  .nav-link:hover, .nav-link.active {
    background: var(--accent-beige-subtle);
    color: var(--primary);
    border-color: transparent;
  }

  .nav-link::after {
    display: none;
  }

  /* 2. HERO SECTION IN MOBILE (سلسله‌مراتب با خاصیت order) */
  .hero-split-section {
    position: relative;
    padding-top: calc(72px + 24px);
    padding-bottom: 44px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--background) 100%);
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
  }

  .hero-split-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .hero-text-content {
    display: contents;
  }

  /* ORDER 1: نشان رتبه‌بندی حاکمیتی (گروه ۱ و رتبه الف) */
  .hero-badge-tag {
    order: 1;
    background: var(--accent-beige-subtle);
    border: 1px solid var(--accent-beige);
    color: var(--primary);
    font-size: 0.80rem;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    width: fit-content;
    line-height: 1.45;
    margin-bottom: 2px;
  }

  .hero-badge-tag i {
    color: var(--primary);
  }

  /* ORDER 2: تیتر اصلی موسسه حسابرسی */
  .hero-heading-block {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 2px;
  }

  .hero-title-main {
    font-size: 1.95rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.3;
    letter-spacing: -0.3px;
    text-shadow: none;
  }

  .hero-title-line {
    display: block;
  }

  .hero-subtitle-formal {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    border-right: 3.5px solid var(--accent-beige);
    padding-right: 12px;
    text-shadow: none;
  }

  /* ORDER 3: کادر تصویر ساختمان دفتر مرکزی (بهینه‌سازی کادر عکس در موبایل) */
  .hero-building-frame {
    order: 3;
    display: flex;
    width: 100%;
    max-height: 220px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    position: relative;
    margin: 4px 0 6px 0;
  }

  .hero-building-photo {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
  }

  .building-badge-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 12px;
    font-size: 0.74rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    border-right: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .building-badge-overlay i {
    color: var(--primary);
  }

  /* ORDER 4: متن خلاصه معرفی */
  .hero-desc-formal {
    order: 4;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin: 0;
    text-shadow: none;
  }

  /* ORDER 5: دکمه‌های اقدام و مشاوره */
  .hero-cta-group {
    order: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
    width: 100%;
  }

  .hero-cta-btn-main,
  .hero-cta-group .btn-primary-pill {
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 0.95rem;
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 800;
    border: 1px solid var(--primary-light);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .hero-cta-btn-main:hover,
  .hero-cta-group .btn-primary-pill:hover {
    background: var(--primary-hover);
  }

  .hero-cta-btn-sub,
  .hero-cta-group .btn-outline-pill {
    width: 100%;
    min-height: 46px;
    padding: 12px 20px;
    font-size: 0.92rem;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .hero-cta-btn-sub:hover,
  .hero-cta-group .btn-outline-pill:hover {
    background: var(--primary);
    color: #FFFFFF;
  }

  /* ORDER 6: نشان موقعیت مکانی دفتر مرکزی */
  .hero-mobile-plaque {
    order: 6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 9px 14px;
    border-radius: 8px;
    margin-top: 2px;
    line-height: 1.5;
  }

  .hero-mobile-plaque i {
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  /* 3. Stats Luxury Card on Mobile */
  .stats-section-wrapper {
    margin-top: -18px;
    padding: 0 16px;
  }

  .stats-luxury-card {
    padding: 22px 18px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
  }

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

  .stat-item-modern {
    gap: 10px;
    padding: 6px 4px;
  }

  .stat-icon-badge {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }

  .stat-item-modern:not(:last-child)::after {
    display: none;
  }

  .stat-counter,
  .stat-number-persian {
    font-size: 1.65rem;
  }

  .stat-badge-text,
  .stat-grade,
  .stat-text-metric {
    font-size: 1.48rem;
    font-weight: 900;
    color: var(--primary);
  }

  .stat-plus-sign {
    color: var(--primary);
  }

  .stat-title-text {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .stat-subdesc-text {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .stat-label-text {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  /* 4. Accreditation Trust Badges */
  .accreditation-section {
    padding: 44px 0;
  }

  .accreditation-main-title {
    font-size: 1.55rem;
  }

  .trust-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .trust-badge-card {
    padding: 20px 14px;
    gap: 12px;
  }

  .trust-icon-box {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .trust-name {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .trust-status-desc {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  /* 5. Services Section */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-title {
    font-size: 1.15rem;
  }

  .service-desc {
    font-size: 0.91rem;
    line-height: 1.75;
  }

  .services-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 22px;
    margin-top: 36px;
  }

  .services-cta-badge {
    margin: 0 auto 12px;
  }

  .services-cta-title {
    font-size: 1.2rem;
    text-align: center;
  }

  .services-cta-desc {
    font-size: 0.92rem;
    line-height: 1.75;
    text-align: center;
  }

  .services-cta-action {
    width: 100%;
    justify-content: center;
  }

  .services-cta-btn {
    width: 100%;
    justify-content: center;
  }

  /* 5.1. Team & Management Grids on Mobile */
  .team-grid,
  .team-grid-3,
  .team-grid-2,
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* 6. Contact & Forms (iOS Auto-zoom protection) */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 26px 20px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important;
    min-height: 46px;
  }

  /* 7. Modal Dialog */
  .modal-container {
    width: 92%;
    max-width: 440px;
    padding: 28px 20px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-close {
    width: 44px;
    height: 44px;
    top: 14px;
    left: 14px;
  }

  /* 8. Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    justify-content: center;
  }

  .footer-signature-container {
    margin: 4px 0;
  }
}

/* --- MOBILE COLUMN STACK FOR HERO STATS (<= 640px) --- */
@media (max-width: 640px) {
  .stats-luxury-card {
    padding: 20px 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stat-item-modern {
    padding: 10px 8px;
    border-bottom: 1px solid #F1F5F9;
  }

  .stat-item-modern:last-child {
    border-bottom: none;
  }

  .stat-item-modern:not(:last-child)::after {
    display: none;
  }
}

/* --- SMALL MOBILE DEVICES (<= 480px / 360px - 414px) --- */
@media (max-width: 480px) {
  .logo-wrapper {
    gap: 6px;
  }

  .official-logo-img {
    height: 38px;
  }

  .brand-pretitle {
    font-size: 0.62rem;
  }

  .brand-main-title {
    font-size: 0.88rem;
  }

  .brand-status {
    font-size: 0.52rem;
  }

  .header-cta-btn,
  .header-actions .btn-primary-pill {
    padding: 6px 12px;
    height: 36px;
    font-size: 0.76rem;
    gap: 5px;
  }

  .hero-title-main {
    font-size: 1.75rem;
  }

  .hero-subtitle-formal {
    font-size: 0.98rem;
  }

  .hero-desc-formal {
    font-size: 0.90rem;
  }

  .hero-building-frame {
    max-height: 200px;
    height: 200px;
    border-radius: 16px;
  }

  .hero-building-photo {
    max-height: 200px;
    border-radius: 16px;
  }

  .trust-badges-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-counter,
  .stat-number-persian {
    font-size: 1.45rem;
  }

  .stat-badge-text,
  .stat-grade,
  .stat-text-metric {
    font-size: 1.35rem;
    font-weight: 900;
  }

  .stat-title-text {
    font-size: 0.80rem;
  }

  .stat-subdesc-text {
    font-size: 0.68rem;
  }

  .stat-label-text {
    font-size: 0.74rem;
  }

  .team-member-name {
    font-size: 1.05rem;
  }

  .team-member-role {
    white-space: normal;
    word-break: keep-all;
    font-size: 0.80rem;
    padding: 4px 10px;
    line-height: 1.4;
  }
}

/* ==========================================================================
   CAREERS PAGE STYLES (careers.html)
   ========================================================================== */
.careers-intro-section {
  padding: 60px 0 100px;
  background-color: var(--background);
}

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

/* Info Card / Positions List */
.careers-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.careers-info-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.intro-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.positions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.position-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.position-item:hover {
  background: var(--surface);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pos-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(92, 17, 36, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pos-details h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.pos-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.review-notice-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--accent-beige-subtle);
  border: 1px solid rgba(216, 199, 161, 0.6);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 0.88rem;
  color: #5C4B23;
  line-height: 1.6;
}

.review-notice-box i {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 2px;
}

/* Application Form Card */
.careers-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-header-title {
  border-bottom: 2px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.form-header-title h2,
.form-header-title h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.form-header-title p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Careers Direct Resume Instructions Guide */
.careers-guide-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.career-contact-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .career-contact-channels-grid {
    grid-template-columns: 1fr;
  }
}

.career-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.career-channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px -4px rgba(92, 17, 36, 0.1);
  background: #FFFFFF;
}

.career-channel-card .channel-icon-box {
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.career-channel-card:hover .channel-icon-box {
  transform: scale(1.06);
}

.career-channel-card .channel-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.career-channel-card .channel-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.career-channel-card .channel-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.career-reqs-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.career-reqs-card .reqs-header {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.career-reqs-card .reqs-header i {
  color: var(--primary);
}

.career-reqs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.career-reqs-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text-main);
  line-height: 1.7;
}

.career-reqs-list .req-badge {
  background: var(--accent-beige-subtle);
  border: 1px solid var(--accent-beige);
  color: var(--primary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.career-note-banner {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-right: 4px solid #D97706;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.6;
}

.career-note-banner i {
  font-size: 1.15rem;
  color: #D97706;
  flex-shrink: 0;
}

/* Responsive Careers Layout */
@media (max-width: 992px) {
  .careers-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CLIENTS & TRUSTED PARTNERS SECTION (#clients)
   ========================================================================== */
.clients-section {
  background-color: var(--background);
  position: relative;
  padding-top: 40px;
  padding-bottom: 80px;
}

.clients-section .breadcrumb-wrapper {
  margin-bottom: 24px;
}

.clients-header-clean {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clients-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(92, 17, 36, 0.06);
  color: var(--primary);
  border: 1px solid rgba(92, 17, 36, 0.16);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.clients-badge-tag i {
  color: var(--accent-beige);
  font-size: 0.85rem;
}

.clients-main-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  text-align: center;
}

.clients-main-desc {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.85;
  text-align: center;
  margin: 0;
}

/* Professional Transparency & Engagement History Note Box */
.clients-transparency-box {
  max-width: 920px;
  margin: 28px auto 32px auto;
  background: linear-gradient(135deg, rgba(92, 17, 36, 0.025) 0%, rgba(216, 199, 161, 0.09) 100%);
  border: 1px solid rgba(92, 17, 36, 0.14);
  border-right: 4px solid var(--primary);
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 2px 10px rgba(92, 17, 36, 0.02);
  transition: var(--transition);
  text-align: right;
}

.clients-transparency-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.clients-transparency-header i {
  color: var(--primary);
  font-size: 1.05rem;
}

.clients-transparency-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.clients-transparency-desc {
  font-size: 0.90rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
}

.clients-toolbar {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* Search Box */
.clients-search-box {
  width: 100%;
  max-width: 580px;
  position: relative;
}

.clients-search-box i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.05rem;
  pointer-events: none;
  transition: var(--transition);
}

.clients-search-input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.clients-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(92, 17, 36, 0.08);
}

.clients-search-box:focus-within i {
  color: var(--primary);
}

/* Filter Tabs */
.clients-tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.client-tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.client-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(92, 17, 36, 0.03);
}

.client-tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(92, 17, 36, 0.2);
}

/* Clients Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  transition: opacity 0.3s ease;
}

/* Client Card */
.client-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.client-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  transition: height 0.25s ease;
  border-radius: 0 14px 0 0;
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 17, 36, 0.28);
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.08);
}

.client-card:hover::before {
  height: 100%;
}

.client-card.is-hidden {
  display: none !important;
}

.client-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Client Logo & Fallback Badge Container */
.client-logo-box {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(92, 17, 36, 0.05) 0%, rgba(216, 199, 161, 0.16) 100%);
  border: 1px solid rgba(92, 17, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.client-card:hover .client-logo-box {
  border-color: rgba(92, 17, 36, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(92, 17, 36, 0.08);
}

.client-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.client-logo-img.logo-failed {
  display: none !important;
}

/* Luxury Monochrome Fallback Badge */
.client-fallback-badge {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary, #5C1124);
  letter-spacing: -0.2px;
  text-align: center;
  user-select: none;
  line-height: 1.2;
}

.client-fallback-badge.force-show {
  display: flex !important;
}

.client-logo-img.logo-failed + .client-fallback-badge {
  display: flex !important;
}

.client-category-tag {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(30, 41, 59, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.client-category-tag i {
  color: var(--accent-beige);
  font-size: 0.75rem;
}

.client-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}



.client-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.55;
  transition: color 0.2s ease;
  margin: 0;
}

.client-card:hover .client-name {
  color: var(--primary);
}

/* Service Tag */
.client-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--primary);
  background: rgba(92, 17, 36, 0.04);
  border: 1px solid rgba(92, 17, 36, 0.1);
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 600;
  width: fit-content;
  line-height: 1.4;
}

.client-service-tag i {
  color: var(--accent-beige);
  font-size: 0.72rem;
  flex-shrink: 0;
}

.client-meta-info {
  font-size: 0.77rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.client-meta-info i {
  color: #10B981;
  font-size: 0.75rem;
}

/* Empty State */
.clients-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: none;
}

.clients-empty-state.show {
  display: block;
}

.clients-empty-icon {
  font-size: 2.8rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.clients-empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.clients-empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.clients-count-badge {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -10px;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Responsive queries for clients */
@media (max-width: 1200px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .clients-main-title {
    font-size: 1.6rem;
  }
  .clients-main-desc {
    font-size: 0.92rem;
  }
  .clients-transparency-box {
    margin: 20px 0 24px 0;
    padding: 14px 16px;
  }
  .clients-transparency-title {
    font-size: 0.90rem;
  }
  .clients-transparency-desc {
    font-size: 0.84rem;
    line-height: 1.75;
  }
  .clients-grid {
    grid-template-columns: 1fr;
  }
  .clients-search-box {
    max-width: 100%;
  }
  .clients-tabs-wrapper {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 10px;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .clients-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }
  .client-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 8px 16px;
    min-height: 40px;
  }
}

/* ==========================================================================
   INSIGHTS & ARTICLES SECTION (#insights)
   ========================================================================== */
#insights {
  background-color: var(--background);
  position: relative;
}

.insights-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.insights-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-beige-subtle);
  border: 1px solid var(--accent-beige);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.insights-badge i {
  font-size: 0.85rem;
}

.insights-main-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 14px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.insights-subtitle {
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 740px;
  text-align: center;
}

/* Articles Grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.insight-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.insight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 17, 36, 0.3);
  box-shadow: var(--shadow-md);
}

.insight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.insight-category {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(92, 17, 36, 0.07);
  color: var(--primary);
  border-radius: 6px;
  white-space: nowrap;
}

.insight-read-time {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.insight-read-time i {
  color: var(--primary);
  font-size: 0.8rem;
}

.insight-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.insight-title {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.6;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.insight-card:hover .insight-title {
  color: var(--primary);
}

.insight-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 22px;
  flex-grow: 1;
}

.insight-footer {
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.insight-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.insight-author i {
  color: var(--primary);
  font-size: 0.85rem;
}

/* Bottom CTA Banner */
.insights-cta-box {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.insights-cta-text {
  display: flex;
  align-items: center;
  gap: 16px;
}

.insights-cta-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-beige-subtle);
  border: 1px solid var(--accent-beige);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.insights-cta-desc h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.insights-cta-desc p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.insights-cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.insights-cta-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(92, 17, 36, 0.05);
  border: 1px solid rgba(92, 17, 36, 0.15);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.insights-cta-link:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Responsive Grid for Insights */
@media (max-width: 1120px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .insights-main-title {
    font-size: 1.6rem;
  }
  .insights-subtitle {
    font-size: 0.92rem;
  }
  .insights-grid {
    grid-template-columns: 1fr;
  }
  .insights-cta-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 24px 18px;
  }
  .insights-cta-text {
    flex-direction: column;
    text-align: center;
  }
  .insights-cta-actions {
    width: 100%;
    flex-direction: column;
    justify-content: center;
  }
  .insights-cta-actions .btn-primary-pill,
  .insights-cta-actions .insights-cta-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   TEAM HIERARCHY & QUALITY SUPERVISION PYRAMID (#team-hierarchy)
   ========================================================================== */

/* General In-page Anchor Scroll Margin for Sticky Header */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.team-hierarchy-section {
  background: var(--background);
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 36px);
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(92, 17, 36, 0.08);
  color: var(--primary);
  border: 1px solid rgba(92, 17, 36, 0.18);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-badge-pill i {
  color: var(--primary);
}

.hierarchy-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 10px;
}

/* Right Column: Pyramid Card Container */
.hierarchy-pyramid-col {
  width: 100%;
}

.hierarchy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.hierarchy-card-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hierarchy-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hierarchy-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hierarchy-card-title i {
  color: var(--primary);
  font-size: 1.1rem;
}

.hierarchy-card-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* The Stepped Pyramid Stack */
.hierarchy-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  position: relative;
  padding: 6px 0;
}

/* Pyramid Steps */
.pyramid-step {
  margin: 0 auto;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(92, 17, 36, 0.12);
  user-select: none;
}

/* Progressive Widths from Apex (50%) to Base (100%) */
.step-level-1 { width: 50%;   background: linear-gradient(135deg, #3B0913 0%, #520F20 100%); border-color: rgba(216, 199, 161, 0.55); }
.step-level-2 { width: 58.3%; background: linear-gradient(135deg, #4A0E1D 0%, #601426 100%); }
.step-level-3 { width: 66.6%; background: linear-gradient(135deg, #581223 0%, #6F1A2F 100%); }
.step-level-4 { width: 75%;   background: linear-gradient(135deg, #66172A 0%, #7E2038 100%); }
.step-level-5 { width: 83.3%; background: linear-gradient(135deg, #741C31 0%, #8D2641 100%); }
.step-level-6 { width: 91.6%; background: linear-gradient(135deg, #822138 0%, #9B2C4A 100%); }
.step-level-7 { width: 100%;  background: linear-gradient(135deg, #90263F 0%, #A93253 100%); }

/* Step Inner Layout */
.step-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-title i {
  font-size: 0.85rem;
  opacity: 0.9;
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 0.82rem;
  direction: rtl;
  white-space: nowrap;
}

.step-count {
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
}

.step-bullet {
  opacity: 0.55;
  font-size: 0.72rem;
  margin: 0 2px;
}

.step-percent {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  min-width: 32px;
  text-align: left;
}

/* Hover / Active Interaction on Steps */
.pyramid-step:hover,
.pyramid-step:focus-visible,
.pyramid-step.is-active {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(92, 17, 36, 0.35);
  filter: brightness(1.18);
  border-color: var(--accent-beige);
  outline: none;
  z-index: 5;
}

/* Left Column: Details Panel & Stats Cards */
.hierarchy-stats-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Interactive Details Panel (Fixed Min-Height to Prevent Layout Shift) */
.hierarchy-details-panel {
  background: var(--surface);
  border: 2px solid rgba(92, 17, 36, 0.15);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  min-height: 250px;
  transition: var(--transition);
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hierarchy-details-panel.is-active {
  border-color: var(--primary);
  box-shadow: 0 10px 28px rgba(92, 17, 36, 0.12);
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-state-default,
.panel-state-active {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-state-active {
  animation: panelFadeIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-state-default.is-hidden,
.panel-state-active.is-hidden {
  display: none !important;
}

.panel-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(92, 17, 36, 0.08);
  color: var(--primary);
}

.panel-badge.highlight {
  background: var(--primary);
  color: #FFFFFF;
}

.panel-badge-iacpa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(216, 199, 161, 0.25);
  color: #8A620F;
  border: 1px solid rgba(216, 199, 161, 0.5);
}

.panel-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.35;
}

.panel-desc {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 12px;
  min-height: 52px;
  display: flex;
  align-items: flex-start;
}

.panel-default-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.panel-default-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-main);
  font-weight: 600;
}

.panel-default-item i {
  color: var(--primary);
  font-size: 0.9rem;
}

.panel-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 10px 0 12px;
}

.panel-stat-box {
  background: rgba(92, 17, 36, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
}

.panel-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.panel-stat-value {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary);
}

.panel-stat-value.highlight-gold {
  color: #936B15;
}

.panel-desc-container {
  background: #FDFBF8;
  border: 1px solid rgba(216, 199, 161, 0.45);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border-right: 4px solid var(--primary);
  margin-top: auto;
}

.panel-desc-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.panel-desc-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-main);
  font-weight: 500;
  margin: 0;
  min-height: 52px;
  display: flex;
  align-items: flex-start;
}

/* Left Column: 4 Indicator Stats Cards */
.hierarchy-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.hierarchy-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hierarchy-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.hierarchy-stat-card.highlight-card {
  background: linear-gradient(145deg, #FFFFFF 0%, rgba(92, 17, 36, 0.03) 100%);
  border-color: rgba(92, 17, 36, 0.2);
}

.h-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(92, 17, 36, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
  transition: var(--transition);
}

.h-stat-icon.gold-accent {
  background: rgba(216, 199, 161, 0.2);
  color: #936B15;
}

.hierarchy-stat-card:hover .h-stat-icon {
  background: var(--primary);
  color: #FFFFFF;
}

.hierarchy-stat-card:hover .h-stat-icon.gold-accent {
  background: #936B15;
  color: #FFFFFF;
}

.h-stat-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.h-stat-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.h-stat-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.h-stat-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

/* Full-Width Strategic Quality Guarantee Banner (ISQM 1) */
.hierarchy-qa-banner {
  grid-column: 1 / -1;
  width: 100%;
  background: linear-gradient(135deg, #3B0913 0%, #5C1124 100%);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

.hierarchy-qa-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(216, 199, 161, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.qa-banner-content {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.qa-banner-main .qa-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(216, 199, 161, 0.2);
  border: 1px solid rgba(216, 199, 161, 0.4);
  color: var(--accent-beige);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.qa-banner-main .qa-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.qa-banner-main .qa-card-text {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.qa-banner-aside {
  border-right: 1px solid rgba(216, 199, 161, 0.3);
  padding-right: 28px;
}

.qa-aside-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.qa-aside-box i {
  color: var(--accent-beige);
  font-size: 1.35rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.qa-aside-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-beige);
  margin-bottom: 6px;
}

.qa-aside-text {
  font-size: 0.84rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Responsive Rules for Team Hierarchy */
@media (max-width: 1080px) {
  .hierarchy-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .qa-banner-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .qa-banner-aside {
    border-right: none;
    border-top: 1px solid rgba(216, 199, 161, 0.3);
    padding-right: 0;
    padding-top: 16px;
  }

  .hierarchy-qa-banner {
    padding: 22px 18px;
  }
}

@media (max-width: 768px) {
  .hierarchy-card {
    padding: 22px 16px;
  }

  /* On Mobile: stack steps cleanly with full width cards */
  .pyramid-step {
    width: 100% !important;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .step-inner {
    gap: 8px;
  }

  .step-title {
    font-size: 0.86rem;
    min-width: 0;
  }

  .step-meta {
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .panel-stats-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hierarchy-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hierarchy-stat-card {
    padding: 16px 14px;
  }

  .h-stat-value {
    font-size: 1.55rem;
  }
}

@media (max-width: 480px) {
  .hierarchy-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ACCESSIBILITY: REDUCED MOTION SUPPORT (WCAG 2.1 AA)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  .stat-counter,
  .hero-badge,
  .pyramid-step,
  .client-card,
  .partner-card,
  .manager-card,
  .btn-primary-pill,
  .btn-profile-back,
  .services-cta-btn,
  .modal-container {
    transition: none !important;
    transform: none !important;
  }
}






/* ==========================================================================
   MOBILE RESPONSIVE FIXES (v3.6)
   1) Header: hamburger button clipped off-screen at phone widths (RTL overflow)
   2) Horizontal page scroll caused by contact-section grid/chips blowout
   ========================================================================== */

/* Safety net: oversized or off-canvas elements must never widen the document.
   `clip` is used because, unlike `hidden`, it does not create a scroll
   container and therefore keeps the sticky header working. */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}

/* --- Fix 1: compact header so logo + actions fit every phone width --- */
@media (max-width: 480px) {
  /* Icon-only header CTA: keeps the consultation trigger available on every
     page while freeing ~100px for the hamburger button */
  .header-actions .header-cta-btn {
    width: 38px;
    padding: 6px 0;
    justify-content: center;
  }

  /* Visually hide the label but keep it for screen readers (accessible name) */
  .header-actions .header-cta-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 359px) {
  /* Very narrow devices: shrink the brand block as well */
  .official-logo-img {
    width: 40px;
    height: 34px;
  }

  .brand-status {
    display: none;
  }
}

/* --- Fix 2: contact section grid blowout --- */
@media (max-width: 1024px) {
  /* Grid tracks must be allowed to shrink below content min-content */
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .contact-info-card,
  .contact-direct-card,
  .contact-item,
  .contact-text-group {
    min-width: 0;
    max-width: 100%;
  }

  /* The 2x2 phone-chip grid cannot fit side by side on phone widths */
  .contact-phones-2x2-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   FLUID TYPOGRAPHY SYSTEM (v3.7)
   Standard: continuous clamp()-based scaling instead of hard breakpoint jumps.
   Layer 1 - fluid root font-size: every rem-based size on the site scales
   proportionally (rem bounds preserve the user's browser font-size setting).
   Layer 2 - fluid display scale for headings: smooth growth from phone to
   desktop, replacing stepped media-query jumps (desktop size is preserved).
   Layer 3 - small-screen layout guards for contact action cards.
   ========================================================================== */

/* --- Layer 1: fluid root ------------------------------------------------ */
html {
  font-size: clamp(0.94rem, 0.9rem + 0.21vw, 1.06rem);
}

/* --- Layer 2: fluid display scale --------------------------------------- */
.hero-title-main {
  font-size: clamp(1.7rem, 1.43rem + 1.55vw, 2.6rem);
}

.hero-subtitle-formal {
  font-size: clamp(0.95rem, 0.93rem + 0.5vw, 1.25rem);
}

.hero-desc-formal {
  font-size: clamp(0.88rem, 0.89rem + 0.28vw, 1.05rem);
}

.section-title {
  font-size: clamp(1.3rem, 1.05rem + 0.95vw, 1.55rem);
}

.accreditation-main-title {
  font-size: clamp(1.5rem, 1.22rem + 0.9vw, 1.85rem);
}

.insights-main-title {
  font-size: clamp(1.55rem, 1.22rem + 1.15vw, 2.1rem);
}

.contact-info-title {
  font-size: clamp(1.4rem, 1.11rem + 1vw, 1.75rem);
}

.services-cta-title,
.modal-direct-title {
  font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.35rem);
}

.stat-counter,
.stat-number-persian {
  font-size: clamp(1.35rem, 1.16rem + 1.25vw, 2.1rem);
}

/* Avoid ugly one-word last lines in long Persian headings/paragraphs. */
.hero-title-main,
.section-title,
.accreditation-main-title,
.insights-main-title,
.contact-info-title,
.services-cta-title,
.modal-direct-title,
.insights-subtitle,
.hero-subtitle-formal {
  text-wrap: balance;
}

.section-desc,
.hero-desc-formal,
.insights-subtitle,
.modal-direct-desc {
  text-wrap: pretty;
}

/* --- Layer 3: contact action cards on narrow screens --------------------- */
/* The side chips ("برقراری تماس" / "ارسال ایمیل" / "مسیریابی در نشان") must
   stay on one line; below 400px they are dropped because the whole card is
   already the link. Phone numbers must never break mid-token. */
.direct-action-btn > span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.direct-action-btn span[dir="ltr"] {
  white-space: nowrap;
}

.direct-action-btn > div:first-child {
  min-width: 0;
}

@media (max-width: 400px) {
  .direct-action-btn > span:last-child {
    display: none;
  }
}


/* v3.8: balance the direct-contact card heading (avoids one-word last line) */
.contact-direct-card h3 {
  text-wrap: balance;
}

