/* ==========================================================================
   Hesaman Modern Design System (Euro-Accounting Inspired)
   Ultra-clean, Corporate, High-performance & Smooth Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Brand Palette */
  --primary-dark: #0a192f;
  --primary-navy: #0f2744;
  --primary-blue: #1d4ed8;
  --primary-blue-hover: #1e40af;
  --primary-light: #eff6ff;
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-cyan: #0284c7;

  /* Neutral Spectrum */
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-alt: #f1f5f9;
  --card-bg: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-subtle: rgba(226, 232, 240, 0.8);
  
  /* Status Colors */
  --success: #059669;
  --success-bg: #d1fae5;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;

  /* Typography */
  --font-sans: 'Vazirmatn', 'IRANSans', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;

  /* Geometry & Elevation */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 20px 35px -6px rgba(29, 78, 216, 0.12), 0 10px 15px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(29, 78, 216, 0.25);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Theme Overrides */
body.theme-dark {
  --bg-main: #070d18;
  --bg-subtle: #0b1526;
  --bg-alt: #101e36;
  --card-bg: #0d1a30;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-color: #1e293b;
  --border-subtle: rgba(30, 41, 59, 0.8);
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 30px -4px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 20px 35px -6px rgba(0, 0, 0, 0.8), 0 0 22px rgba(56, 189, 248, 0.18);
}

.site-bg-fixed {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -999;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    url('/images/tehran-bg.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

body.theme-dark .site-bg-fixed {
  background-image: 
    linear-gradient(rgba(7, 13, 24, 0.94), rgba(7, 13, 24, 0.94)),
    url('/images/tehran-bg.jpg');
}

body.theme-dark .site-header.is-scrolled {
  background: rgba(7, 13, 24, 0.9);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

body.theme-dark .nav-link {
  color: #e2e8f0;
}

body.theme-dark .nav-link:hover {
  background-color: #13233f;
  color: #60a5fa;
}

body.theme-dark .service-card-modern,
body.theme-dark .why-card,
body.theme-dark .ann-card-modern,
body.theme-dark .contact-box-grid,
body.theme-dark .modal-box-modern,
body.theme-dark .support-panel-modern,
body.theme-dark .card-panel,
body.theme-dark .filter-tab-btn {
  background: #0d1a30;
  border-color: #1e2d4a;
  color: #f1f5f9;
}

body.theme-dark .filter-tab-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
}

body.theme-dark .mega-dropdown {
  background: #0b1526;
  border: 1px solid #1e293b;
}

body.theme-dark .mega-cat {
  background: #0f1c32;
  border-color: #1e2d4a;
}

body.theme-dark .modern-form input,
body.theme-dark .modern-form textarea {
  background: #091222;
  border-color: #1e2d4a;
  color: #f8fafc;
}

body.theme-dark .section-title,
body.theme-dark .service-title,
body.theme-dark .why-title,
body.theme-dark .ann-title-modern {
  color: #f8fafc;
}

body.theme-dark .btn-hero-secondary {
  background: #0f1c32;
  border-color: #1e2d4a;
  color: #f1f5f9;
}

body.theme-dark .why-section {
  background: #0b1526;
  border-color: #1e293b;
}

body.theme-dark .contact-section-modern {
  background: linear-gradient(135deg, #070d18 0%, #0b1526 100%);
}

body.theme-dark .faq-section-modern {
  background: #091222;
  border-color: #1e293b;
}

body.theme-dark .faq-item {
  background: #0d1a30;
  border-color: #1e2d4a;
}

body.theme-dark .faq-item.is-active {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 20px rgba(29, 78, 216, 0.3);
}

body.theme-dark .faq-question {
  color: #f1f5f9;
}

body.theme-dark .faq-answer {
  color: #94a3b8;
}

body.theme-dark .faq-icon {
  background: #13233f;
  color: #60a5fa;
}

body.theme-dark .btn-theme-toggle {
  background: #101e36;
  border-color: #1e2d4a;
  color: #fbbf24;
}

body.theme-dark .back-to-top {
  background: #0d1a30;
  border-color: #1e2d4a;
  color: #38bdf8;
}

/* Dark Theme Typography & Contrast Boost */
body.theme-dark {
  --primary-dark: #f8fafc;
  --primary-navy: #93c5fd;
}

body.theme-dark .contact-box-title,
body.theme-dark .contact-info-side h2,
body.theme-dark .c-detail-val,
body.theme-dark .modern-form label,
body.theme-dark .hero-badge-title,
body.theme-dark .modal-acc-title {
  color: #f8fafc !important;
}

body.theme-dark .c-icon-circle {
  background: #13233f;
  color: #60a5fa;
}

body.theme-dark .c-detail-label,
body.theme-dark .contact-info-side p {
  color: #94a3b8 !important;
}

body.theme-dark .hero-floating-badge {
  background: rgba(13, 26, 48, 0.95);
  border-color: rgba(56, 189, 248, 0.3);
}

body.theme-dark .hero-floating-badge .hero-badge-title {
  color: #93c5fd !important;
}

/* Dark Theme Support Widget Styles */
body.theme-dark .support-panel-modern {
  background: #0d1a30;
  border-color: #1e2d4a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

body.theme-dark .support-chat-body {
  background: #070e1b;
}

body.theme-dark .support__msg {
  color: #e2e8f0 !important;
}

body.theme-dark .support__item {
  background: #0d1a30 !important;
  border-color: #1e2d4a !important;
  color: #f8fafc !important;
}

body.theme-dark .support__item:hover {
  background: #13233f !important;
  border-color: var(--primary-blue) !important;
}

body.theme-dark .support__item strong {
  color: #f8fafc !important;
}

body.theme-dark .support__item small {
  color: #94a3b8 !important;
}

body.theme-dark .support__back {
  color: #60a5fa !important;
}

body.theme-dark .support__form input,
body.theme-dark .support__form textarea {
  background: #0d1a30 !important;
  border-color: #1e2d4a !important;
  color: #f8fafc !important;
}

body.theme-dark .support__form input:focus,
body.theme-dark .support__form textarea:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

body.theme-dark .bubble {
  background: #101e36;
  border-color: #1e2d4a;
  color: #f8fafc;
}

body.theme-dark .bubble--staff {
  background: #1d4ed8;
  border-color: #2563eb;
  color: #ffffff;
}

body.theme-dark .bubble--me {
  background: #13233f;
  border-color: #1e2d4a;
  color: #f8fafc;
}

body.theme-dark .bubble small {
  color: #94a3b8;
}

body.theme-dark .status {
  background: #1e293b;
  color: #cbd5e1;
}

body.theme-dark .status--resolved {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* Dark Theme Modal */
body.theme-dark .modal-box-modern {
  background: #0d1a30;
  border-color: #1e2d4a;
  color: #f8fafc;
}

body.theme-dark .modal-acc-title {
  color: #f8fafc !important;
}

body.theme-dark .modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

body.theme-dark .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #1d4ed8, #38bdf8, #f59e0b, #10b981);
  transform-origin: 0% 50%;
  transform: scaleX(0);
  z-index: 10000;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85);
  transition: transform 0.05s ease-out;
}

/* Shimmer on Buttons */
.btn-hero-primary,
.btn-submit-consult {
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::after,
.btn-submit-consult::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(25deg) translateY(-100%);
  animation: btn-shine 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes btn-shine {
  0%, 75% { transform: rotate(25deg) translateY(-100%); }
  90%, 100% { transform: rotate(25deg) translateY(100%); }
}

/* Ambient Floating Orbs in Hero (Optimized for 60/120 FPS GPU rendering) */
.hero-ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.hero-ambient-orb--1 {
  top: 10%;
  left: 8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.42) 0%, rgba(30, 64, 175, 0.2) 45%, transparent 70%);
}

.hero-ambient-orb--2 {
  bottom: 8%;
  right: 12%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.32) 0%, rgba(124, 58, 237, 0.18) 45%, transparent 70%);
  animation-delay: -7s;
}

@keyframes orb-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(35px, -30px, 0) scale(1.1); }
  100% { transform: translate3d(-25px, 25px, 0) scale(0.95); }
}

/* Filter Tabs for Services */
.filter-tabs-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
}

.filter-tab-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-tab-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.filter-tab-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

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

/* 3D Tilt Card (GPU hardware accelerated) */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: box-shadow 0.2s ease;
}

/* Mouse Spotlight Cursor Flare on Cards */
.spotlight-card {
  position: relative;
  --spotlight-x: -1000px;
  --spotlight-y: -1000px;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--spotlight-x) var(--spotlight-y), rgba(56, 189, 248, 0.15), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.spotlight-card:hover::after {
  opacity: 1;
}

body.theme-dark .spotlight-card::after {
  background: radial-gradient(420px circle at var(--spotlight-x) var(--spotlight-y), rgba(56, 189, 248, 0.22), transparent 65%);
}

/* Pulsing Radar Dot */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radar-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Theme Toggle Button */
.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.15rem;
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.site-header:not(.is-scrolled) .btn-theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-theme-toggle:hover {
  transform: translateY(-2px) rotate(15deg);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.theme-icon {
  display: inline-block;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-theme-toggle:hover .theme-icon {
  transform: scale(1.2);
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all var(--transition-bounce);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 25px rgba(29, 78, 216, 0.3);
  border-color: var(--primary-blue);
}

.back-to-top .progress-ring {
  position: absolute;
  top: 1px;
  left: 1px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.back-to-top .progress-ring__circle {
  stroke-dasharray: 125.6;
  stroke-dashoffset: 125.6;
  transition: stroke-dashoffset 0.1s linear;
}

.back-to-top__arrow {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  transition: transform var(--transition-fast);
}

.back-to-top:hover .back-to-top__arrow {
  transform: translateY(-2px);
}

/* Interactive FAQ Accordion */
.faq-section-modern {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-accordion-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: var(--shadow-md);
}

.faq-item.is-active {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 24px -4px rgba(29, 78, 216, 0.15);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.6rem;
  background: transparent;
  cursor: pointer;
  text-align: right;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-blue);
}

.faq-q-text {
  flex: 1;
  line-height: 1.6;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  margin-right: 1rem;
  flex-shrink: 0;
  transition: transform var(--transition-bounce), background-color var(--transition-fast);
}

.faq-icon svg {
  transition: transform var(--transition-bounce);
}

.faq-item.is-active .faq-icon {
  transform: rotate(180deg);
  background: var(--primary-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.9;
}

.faq-item.is-active .faq-answer {
  max-height: 300px;
  opacity: 1;
}

.faq-answer-inner {
  padding: 0 1.6rem 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.5);
  margin-top: -0.25rem;
  padding-top: 1rem;
}

/* Staggered Scroll Reveal Delays */
.services-grid-new .reveal-on-scroll:nth-child(1),
.why-grid .reveal-on-scroll:nth-child(1),
.stats-container .reveal-on-scroll:nth-child(1) { transition-delay: 0.05s; }

.services-grid-new .reveal-on-scroll:nth-child(2),
.why-grid .reveal-on-scroll:nth-child(2),
.stats-container .reveal-on-scroll:nth-child(2) { transition-delay: 0.15s; }

.services-grid-new .reveal-on-scroll:nth-child(3),
.why-grid .reveal-on-scroll:nth-child(3),
.stats-container .reveal-on-scroll:nth-child(3) { transition-delay: 0.25s; }

.services-grid-new .reveal-on-scroll:nth-child(4),
.why-grid .reveal-on-scroll:nth-child(4),
.stats-container .reveal-on-scroll:nth-child(4) { transition-delay: 0.35s; }

/* Base Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.85;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 3px;
}

/* ==========================================================================
   Header & Navbar (Floating Glassmorphic)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1rem 0;
  transition: all var(--transition-smooth);
}

.site-header:not(.is-scrolled) .nav-link {
  color: #ffffff;
}

.site-header:not(.is-scrolled) .nav-link:hover {
  color: #93c5fd;
  background-color: rgba(255, 255, 255, 0.12);
}

.site-header:not(.is-scrolled) .brand-text {
  background: linear-gradient(135deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-header:not(.is-scrolled) .btn-phone {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.site-header:not(.is-scrolled) .hamburger-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-glow {
  position: relative;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-navy));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px -2px rgba(15, 39, 68, 0.3);
  transition: transform var(--transition-bounce);
}

.brand:hover .brand-logo-glow {
  transform: rotate(5deg) scale(1.05);
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-light);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-right: 0.25rem;
}

/* Nav Menu */
.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-blue);
  background-color: var(--bg-alt);
}

.nav-link.has-dropdown {
  cursor: pointer;
}

.nav-link--moadian {
  font-weight: 700;
}

.nav-badge-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-inline-start: 0.35rem;
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.site-header:not(.is-scrolled) .nav-badge-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.site-header.is-scrolled .nav-badge-pill {
  background: var(--primary-light);
  color: var(--primary-blue);
  border: 1px solid #bfdbfe;
}

body.theme-dark .site-header.is-scrolled .nav-badge-pill {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
}

/* Mega Dropdown */
.nav-item-dropdown {
  position: relative;
}

.mega-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: -2rem;
  width: 580px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 100;
}

.nav-item-dropdown:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.mega-cat {
  background: var(--bg-subtle);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast);
}

.mega-cat:hover {
  border-color: var(--primary-blue);
}

.mega-cat-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy);
}

.mega-sublinks {
  list-style: none;
}

.mega-sublinks li a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: all var(--transition-fast);
}

.mega-sublinks li a:hover {
  color: var(--primary-blue);
  transform: translateX(-4px);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-navy);
  background: var(--bg-alt);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

@media (min-width: 640px) {
  .btn-phone {
    display: inline-flex;
  }
}

.btn-phone:hover {
  background: var(--primary-light);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.btn-account {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-navy));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.25);
  cursor: pointer;
  transition: all var(--transition-bounce);
}

.btn-account:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 39, 68, 0.35);
  background: linear-gradient(135deg, var(--primary-navy), var(--primary-blue));
}

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

@media (min-width: 992px) {
  .hamburger-btn {
    display: none;
  }
}

/* ==========================================================================
   Hero Section (Euro-Accounting Prestige Style)
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 9.5rem 0 6.5rem;
  background: 
    linear-gradient(135deg, rgba(10, 25, 47, 0.88) 0%, rgba(15, 39, 68, 0.82) 45%, rgba(10, 25, 47, 0.94) 100%),
    url('/images/tehran-bg.jpg');
  background-size: cover;
  background-position: center 35%;
  color: #ffffff;
  overflow: hidden;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #bfdbfe;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: pulse-glow 3s infinite;
}

.hero-title {
  font-size: 2.3rem;
  line-height: 1.35;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #60a5fa, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.95;
  margin-bottom: 2.25rem;
  max-width: 620px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--primary-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px -4px rgba(29, 78, 216, 0.5);
  transition: all var(--transition-bounce);
}

.btn-hero-primary:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -4px rgba(29, 78, 216, 0.6);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Trust Badges in Hero */
.hero-trust-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.trust-item svg {
  color: #34d399;
}

/* Hero Art & Interactive Card Showcase (GPU accelerated) */
.hero-visual-card {
  position: relative;
  background: rgba(15, 39, 68, 0.88);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0px, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

.hero-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.visual-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.v-stat-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.v-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.v-stat-label {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.hero-floating-badge {
  position: absolute;
  bottom: -1.25rem;
  right: -1rem;
  background: rgba(10, 25, 47, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================================
   Key Statistics Bar (Counters)
   ========================================================================== */

.stats-bar-section {
  position: relative;
  background: 
    linear-gradient(180deg, rgba(10, 25, 47, 0.94) 0%, rgba(15, 39, 68, 0.9) 50%, rgba(10, 25, 47, 0.96) 100%),
    url('/images/tehran-bg.jpg');
  background-size: cover;
  background-position: center 65%;
  color: #ffffff;
  padding: 4.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   Services Section (Clean Grid with High-impact Hover)
   ========================================================================== */

.section-padding {
  padding: 5.5rem 0;
}

.page-hero-banner {
  padding: 8.5rem 0 4.5rem;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.88), rgba(15, 39, 68, 0.82), rgba(10, 25, 47, 0.9)), url('/images/tehran-daylight.jpg');
  background-size: cover;
  background-position: center 40%;
  color: #ffffff;
  position: relative;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero-banner .section-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-hero-banner .section-title {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.page-hero-banner .section-subtitle {
  color: #cbd5e1;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-blue);
  background: var(--primary-light);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.services-grid-new {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid-new {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card-modern {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.6rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-bounce);
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), #38bdf8);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(29, 78, 216, 0.3);
}

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

.service-icon-box {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-bounce);
}

.service-card-modern:hover .service-icon-box {
  transform: scale(1.1) rotate(4deg);
}

.service-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

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

.service-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.service-card-modern:hover .service-link {
  gap: 0.75rem;
  color: var(--primary-blue-hover);
}

/* ==========================================================================
   Why Hesaman (Features & Competitive Edge)
   ========================================================================== */

.why-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-gold-light);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.why-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   Announcements & Timeline (Moadian Deadlines)
   ========================================================================== */

.ann-grid-modern {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .ann-grid-modern {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ann-card-modern {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.ann-card-modern.is-priority {
  border-right: 4px solid var(--accent-gold);
  background: linear-gradient(to left, #ffffff, #fffdf8);
}

.ann-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.ann-badge-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.badge-gold {
  background: var(--accent-gold-light);
  color: var(--accent-gold);
}

.badge-blue {
  background: var(--primary-light);
  color: var(--primary-blue);
}

.ann-title-modern {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.ann-text-modern {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.ann-deadline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--danger);
  background: var(--danger-bg);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* Services Category Block & Sub-Cards */
.services-cat-block {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.services-cat-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.service-sub-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}

.service-sub-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-hover);
}

body.theme-dark .services-cat-block {
  background: #0d1a30;
  border-color: #1e2d4a;
}

body.theme-dark .services-cat-header {
  border-bottom-color: #1e2d4a;
}

body.theme-dark .service-sub-card {
  background: #0b1526;
  border-color: #1e2d4a;
  color: #f1f5f9;
}

/* Course Card Modern */
.course-card-modern {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-bounce);
}

.course-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-blue);
}

.course-card-cover {
  height: 190px;
  background: linear-gradient(135deg, var(--primary-light), #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-fast);
}

body.theme-dark .course-card-modern {
  background: #0d1a30;
  border-color: #1e2d4a;
  color: #f1f5f9;
}

body.theme-dark .course-card-cover {
  background: linear-gradient(135deg, #0f1c32, #1e293b);
  border-bottom-color: #1e2d4a;
}

/* ==========================================================================
   Contact & Consultation Form
   ========================================================================== */

.contact-section-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  position: relative;
}

.contact-box-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

@media (min-width: 992px) {
  .contact-box-grid {
    grid-template-columns: 0.85fr 1.15fr;
    padding: 3.5rem;
  }
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-method-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.c-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-detail-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
}

.c-detail-val {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.modern-form .form-group {
  margin-bottom: 1.25rem;
}

.modern-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.modern-form input,
.modern-form textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.modern-form input:focus,
.modern-form textarea:focus {
  background: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.btn-submit-consult {
  width: 100%;
  background: var(--primary-blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-bounce);
}

.btn-submit-consult:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.45);
}

/* Tehran Headquarters Showcase Card */
.tehran-hq-card {
  margin-top: 1.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

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

.tehran-hq-card-img {
  position: relative;
  height: 155px;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-color);
}

.tehran-hq-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 25, 47, 0.8) 100%);
}

.tehran-hq-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 25, 47, 0.88);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tehran-hq-card-body {
  padding: 1.1rem 1.3rem;
}

body.theme-dark .tehran-hq-card {
  background: #0b1526;
  border-color: #1e2d4a;
}

/* ==========================================================================
   Footer (Prestige Corporate)
   ========================================================================== */

.site-footer-modern {
  position: relative;
  background: 
    linear-gradient(180deg, rgba(10, 25, 47, 0.98) 0%, rgba(15, 39, 68, 0.93) 50%, rgba(10, 25, 47, 0.98) 100%),
    url('/images/tehran-bg.jpg');
  background-size: cover;
  background-position: center bottom;
  color: #e2e8f0;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid-modern {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid-modern {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.f-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
}

.f-title::after {
  content: '';
  position: absolute;
  bottom: -0.4rem;
  right: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-gold);
}

.f-links {
  list-style: none;
}

.f-links li {
  margin-bottom: 0.75rem;
}

.f-links li a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.f-links li a:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

.social-strip {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-bounce);
}

.social-icon-btn:hover {
  background: var(--primary-blue);
  transform: translateY(-3px) scale(1.05);
}

.footer-bottom-bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.88rem;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Modals & Support Widget (Smooth Spring Animations)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box-modern {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.is-open .modal-box-modern {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--danger-bg);
  color: var(--danger);
  transform: rotate(90deg);
}

/* Support Messenger Widget (FAB & Chat Dialog) */
.support-fab-modern {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue), #0284c7);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(29, 78, 216, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  transition: all var(--transition-bounce);
}

.support-fab-modern:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 16px 32px rgba(29, 78, 216, 0.55);
}

.support-panel-modern {
  position: fixed;
  bottom: 6.5rem;
  left: 2rem;
  width: 380px;
  max-width: calc(100vw - 4rem);
  height: 520px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--border-color);
  z-index: 998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(25px) scale(0.92);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.support-panel-modern.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.support-panel-modern[hidden] {
  display: none !important;
}

.support-header-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-navy));
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.support-chat-body {
  flex-grow: 1;
  padding: 1.25rem;
  overflow-y: auto;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Keyframes & Utilities
   ========================================================================== */

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(29, 78, 216, 0); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Mobile Drawer & Scrim Overlay (Off-Canvas Navigation)
   ========================================================================== */

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scrim:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(85vw, 340px);
  background: var(--primary-dark);
  color: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.drawer__brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
}

.drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.drawer__nav {
  padding: 1rem 0;
  flex: 1;
}

.drawer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.5rem;
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  text-align: right;
}

.drawer__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.drawer__sub {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.5rem 1rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer__group {
  margin-bottom: 0.75rem;
}

.drawer__group-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #93c5fd;
  margin: 0.5rem 0.5rem 0.35rem;
}

.drawer__group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer__group li a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.drawer__group li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.drawer__foot {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.drawer__foot a {
  color: #93c5fd;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}

/* Hide mobile drawer completely on Desktop viewports */
@media (min-width: 1024px) {
  .drawer,
  .scrim {
    display: none !important;
  }
}
