/**
 * Teznevisan Professional Design System
 * Version: 3.3.0 - Complete Professional Restoration
 * 
 * COMPREHENSIVE CSS with:
 * - Irancell font loading
 * - Complete footer styling
 * - Chaty floating widget
 * - Scroll-to-top button
 * - Theme switcher (light/dark/sepia)
 * - Accessibility toolbar
 * - Rich visual hierarchy
 * - Professional animations
 * - Full responsive design
 * 
 * This is NOT minimal - this is PROFESSIONAL
 */

/* ========================================================================
   1. CSS RESET & BASE STYLES
   ======================================================================== */

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

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

body {
  font-family: 'Irancell', 'Tahoma', 'Arial', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 400;
  color: #111827;
  background: #ffffff;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Force Irancell on ALL text elements */
body, h1, h2, h3, h4, h5, h6, p, span, a, li, 
input, textarea, button, select, label, div {
  font-family: 'Irancell', 'Tahoma', 'Arial', system-ui, sans-serif !important;
}

/* ========================================================================
   2. TYPOGRAPHY SCALE
   ======================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  margin-bottom: 1rem;
  margin-top: 0;
}

h1 { font-size: 2.5rem; }    /* 40px */
h2 { font-size: 2rem; }      /* 32px */
h3 { font-size: 1.75rem; }   /* 28px */
h4 { font-size: 1.5rem; }    /* 24px */
h5 { font-size: 1.25rem; }   /* 20px */
h6 { font-size: 1.125rem; }  /* 18px */

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
}

p {
  margin-bottom: 1rem;
  color: #374151;
}

a {
  color: #22BE49;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover, a:focus {
  color: #1a9e3b;
  opacity: 0.9;
}

strong, b {
  font-weight: 700;
}

em, i {
  font-style: italic;
}

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

ul, ol {
  margin: 0 0 1rem 0;
  padding-right: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ========================================================================
   3. COLOR THEME TOKENS
   ======================================================================== */

:root {
  /* Primary Colors */
  --tez-primary: #22BE49;
  --tez-primary-dark: #1a9e3b;
  --tez-primary-light: #3DD468;
  
  /* Neutrals - Light Theme (default) */
  --tez-bg: #ffffff;
  --tez-bg-alt: #f9fafb;
  --tez-text: #111827;
  --tez-text-light: #6b7280;
  --tez-border: #e5e7eb;
  --tez-shadow: rgba(0, 0, 0, 0.1);
  
  /* Component Backgrounds */
  --tez-card-bg: #ffffff;
  --tez-header-bg: #ffffff;
  --tez-footer-bg: #1f2937;
  --tez-footer-text: #d1d5db;
  
  /* Spacing */
  --tez-spacing-xs: 0.25rem;
  --tez-spacing-sm: 0.5rem;
  --tez-spacing-md: 1rem;
  --tez-spacing-lg: 1.5rem;
  --tez-spacing-xl: 2rem;
  
  /* Shadows */
  --tez-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --tez-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --tez-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --tez-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --tez-transition: all 0.2s ease;
  --tez-transition-slow: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --tez-bg: #0f172a;
  --tez-bg-alt: #1e293b;
  --tez-text: #f1f5f9;
  --tez-text-light: #94a3b8;
  --tez-border: #334155;
  --tez-shadow: rgba(0, 0, 0, 0.3);
  --tez-card-bg: #1e293b;
  --tez-header-bg: #0f172a;
  --tez-footer-bg: #020617;
  --tez-footer-text: #cbd5e1;
}

[data-theme="dark"] body {
  background: var(--tez-bg);
  color: var(--tez-text);
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
  color: var(--tez-text);
}

[data-theme="dark"] p {
  color: var(--tez-text-light);
}

/* Sepia Theme */
[data-theme="sepia"] {
  --tez-bg: #faf6f1;
  --tez-bg-alt: #f5efe6;
  --tez-text: #44403c;
  --tez-text-light: #78716c;
  --tez-border: #d6cfc4;
  --tez-shadow: rgba(68, 64, 60, 0.1);
  --tez-card-bg: #fffcf7;
  --tez-header-bg: #faf6f1;
  --tez-footer-bg: #44403c;
  --tez-footer-text: #e7e5e4;
}

[data-theme="sepia"] body {
  background: var(--tez-bg);
  color: var(--tez-text);
}

[data-theme="sepia"] h1, [data-theme="sepia"] h2, [data-theme="sepia"] h3,
[data-theme="sepia"] h4, [data-theme="sepia"] h5, [data-theme="sepia"] h6 {
  color: var(--tez-text);
}

[data-theme="sepia"] p {
  color: var(--tez-text-light);
}

/* ========================================================================
   4. CONTAINER & LAYOUT
   ======================================================================== */

.tez-container,
.tez-header-container,
.tez-footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .tez-container,
  .tez-header-container,
  .tez-footer-container {
    padding: 0 2rem;
  }
}

@media (min-width: 1200px) {
  .tez-container,
  .tez-header-container,
  .tez-footer-container {
    padding: 0 3rem;
  }
}

/* ========================================================================
   5. SKIP LINK (ACCESSIBILITY)
   ======================================================================== */

.tez-skip-link,
.screen-reader-text {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tez-skip-link:focus {
  position: fixed;
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  padding: 1rem 2rem;
  background: var(--tez-primary);
  color: #ffffff;
  border-radius: 0.5rem;
  z-index: 99999;
  box-shadow: var(--tez-shadow-xl);
  font-weight: 600;
  font-size: 1rem;
}

/* ========================================================================
   6. SITE HEADER - PROFESSIONAL STICKY
   ======================================================================== */

.tez-site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--tez-header-bg);
  border-bottom: 1px solid var(--tez-border);
  box-shadow: var(--tez-shadow-sm);
  transition: var(--tez-transition);
}

/* Admin bar offset */
body.admin-bar .tez-site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .tez-site-header {
    top: 46px;
  }
}

/* Header scrolled state */
.tez-site-header.is-scrolled {
  box-shadow: var(--tez-shadow-md);
}

/* Header Inner Layout */
.tez-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
  padding: 0.75rem 0;
}

@media (max-width: 1023px) {
  .tez-header-inner {
    min-height: 70px;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .tez-header-inner {
    min-height: 60px;
    gap: 0.75rem;
  }
}

/* ========================================================================
   7. LOGO
   ======================================================================== */

.tez-header-logo {
  flex-shrink: 0;
  z-index: 2;
}

.tez-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: var(--tez-transition);
}

.tez-logo-link:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.tez-logo-link:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: 4px;
  border-radius: 0.375rem;
}

.tez-logo {
  display: block;
  width: auto;
  height: 60px;
  max-width: 220px;
  object-fit: contain;
}

@media (max-width: 1023px) {
  .tez-logo {
    height: 50px;
    max-width: 180px;
  }
}

@media (max-width: 767px) {
  .tez-logo {
    height: 44px;
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .tez-logo {
    height: 38px;
    max-width: 140px;
  }
}

/* Site Name Fallback */
.tez-site-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tez-primary);
  letter-spacing: -0.025em;
}

/* ========================================================================
   8. DESKTOP NAVIGATION
   ======================================================================== */

.tez-header-nav {
  display: none;
  flex: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .tez-header-nav {
    display: flex;
  }
}

.tez-nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .tez-nav-menu {
    gap: 1.25rem;
  }
}

.tez-menu-item {
  position: relative;
}

.tez-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0;
  color: var(--tez-text);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--tez-transition);
  white-space: nowrap;
  position: relative;
}

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

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

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

.tez-nav-link:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: 4px;
  border-radius: 0.25rem;
}

/* Dropdown Arrow Icon */
.tez-dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  margin-right: 0.25rem;
}

.tez-has-dropdown:hover .tez-dropdown-arrow,
.tez-has-dropdown:focus-within .tez-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.tez-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  background: var(--tez-card-bg);
  border: 1px solid var(--tez-border);
  border-radius: 0.75rem;
  box-shadow: var(--tez-shadow-lg);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--tez-transition-slow);
  list-style: none;
  z-index: 1000;
}

.tez-has-dropdown:hover .tez-dropdown-menu,
.tez-has-dropdown:focus-within .tez-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tez-dropdown-menu li {
  margin: 0;
}

.tez-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  color: var(--tez-text);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: var(--tez-transition);
}

.tez-dropdown-menu li a:hover,
.tez-dropdown-menu li a:focus {
  background: var(--tez-bg-alt);
  color: var(--tez-primary);
  padding-right: 1.75rem;
}

.tez-dropdown-menu li a:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: -2px;
}

.tez-dropdown-menu li a i {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  color: var(--tez-text-light);
}

.tez-dropdown-menu li a:hover i,
.tez-dropdown-menu li a:focus i {
  color: var(--tez-primary);
}

/* ========================================================================
   9. HEADER ACTIONS (Search, Phone, etc.)
   ======================================================================== */

.tez-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.tez-header-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tez-border);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--tez-text);
  font-size: 1.125rem;
  cursor: pointer;
  transition: var(--tez-transition);
  position: relative;
}

.tez-header-btn:hover {
  background: var(--tez-primary);
  color: #ffffff;
  border-color: var(--tez-primary);
  transform: translateY(-2px);
  box-shadow: var(--tez-shadow-md);
}

.tez-header-btn:active {
  transform: translateY(0);
}

.tez-header-btn:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .tez-header-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* ========================================================================
   10. MOBILE MENU TOGGLE (HAMBURGER)
   ======================================================================== */

.tez-mobile-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 48px;
  height: 48px;
  border: 1px solid var(--tez-border);
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: var(--tez-transition);
  z-index: 10000;
}

@media (min-width: 1024px) {
  .tez-mobile-toggle {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .tez-mobile-toggle {
    width: 44px;
    height: 44px;
  }
}

.tez-mobile-toggle:hover {
  border-color: var(--tez-primary);
  background: var(--tez-bg-alt);
}

.tez-mobile-toggle:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: 2px;
}

/* Hamburger Icon */
.tez-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  pointer-events: none;
}

.tez-hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--tez-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animated to X when open */
.tez-mobile-toggle[aria-expanded="true"] .tez-hamburger-line:nth-child(1) {
  transform: translateY(6.75px) rotate(45deg);
}

.tez-mobile-toggle[aria-expanded="true"] .tez-hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.tez-mobile-toggle[aria-expanded="true"] .tez-hamburger-line:nth-child(3) {
  transform: translateY(-6.75px) rotate(-45deg);
}

/* ========================================================================
   11. MOBILE MENU - FULL OVERLAY
   ======================================================================== */

/* Overlay Background */
.tez-mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--tez-transition-slow);
  backdrop-filter: blur(4px);
}

.tez-mobile-menu-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.tez-mobile-menu-inner {
  position: fixed;
  top: 0;
  right: -100%;
  width: 90%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: var(--tez-card-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: var(--tez-shadow-xl);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.tez-mobile-menu-inner[aria-hidden="false"] {
  right: 0;
}

@media (max-width: 400px) {
  .tez-mobile-menu-inner {
    width: 100%;
    max-width: none;
  }
}

/* Lock body scroll when menu open */
body.tez-menu-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Mobile Menu Header */
.tez-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--tez-border);
  flex-shrink: 0;
  background: var(--tez-bg-alt);
}

.tez-mobile-logo-link {
  display: inline-flex;
}

.tez-mobile-logo-link .tez-logo {
  width: auto;
  height: 44px;
  max-width: 160px;
}

.tez-mobile-close {
  width: 48px;
  height: 48px;
  border: none;
  background: var(--tez-bg);
  border-radius: 0.5rem;
  color: var(--tez-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--tez-transition);
  flex-shrink: 0;
}

.tez-mobile-close:hover,
.tez-mobile-close:focus {
  background: var(--tez-primary);
  color: #ffffff;
  transform: rotate(90deg);
}

.tez-mobile-close:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: 2px;
}

/* Mobile Menu Content */
.tez-mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.tez-mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tez-mobile-menu-item {
  border-bottom: 1px solid var(--tez-border);
}

.tez-mobile-menu-item:last-child {
  border-bottom: none;
}

.tez-mobile-link {
  display: flex;
  align-items: center;
  padding: 1.125rem 1.5rem;
  color: var(--tez-text);
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: var(--tez-transition);
  min-height: 56px;
}

.tez-mobile-link:hover,
.tez-mobile-link:focus,
.tez-mobile-link.active {
  background: linear-gradient(90deg, var(--tez-primary) 0%, transparent 100%);
  color: var(--tez-primary);
  padding-right: 2rem;
}

.tez-mobile-link:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: -2px;
}

/* Submenu Toggle Button */
.tez-submenu-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--tez-text);
  font-weight: 500;
  font-size: 1.0625rem;
  font-family: inherit;
  text-align: right;
  cursor: pointer;
  transition: var(--tez-transition);
  min-height: 56px;
}

.tez-submenu-toggle:hover,
.tez-submenu-toggle:focus {
  background: var(--tez-bg-alt);
  color: var(--tez-primary);
}

.tez-submenu-toggle:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: -2px;
}

.tez-submenu-toggle i {
  transition: transform 0.3s ease;
  font-size: 0.875rem;
  color: var(--tez-text-light);
}

.tez-submenu-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
  color: var(--tez-primary);
}

/* Submenu */
.tez-mobile-submenu {
  max-height: 0;
  overflow: hidden;
  background: var(--tez-bg-alt);
  list-style: none;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tez-has-submenu[aria-expanded="true"] .tez-mobile-submenu {
  max-height: 800px;
}

.tez-mobile-submenu li {
  border-top: 1px solid var(--tez-border);
  margin: 0;
}

.tez-mobile-submenu li:first-child {
  border-top: none;
}

.tez-mobile-submenu li a {
  display: flex;
  align-items: center;
  padding: 1rem 3rem;
  color: var(--tez-text-light);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: var(--tez-transition);
  min-height: 52px;
}

.tez-mobile-submenu li a:hover,
.tez-mobile-submenu li a:focus {
  color: var(--tez-primary);
  background: var(--tez-bg);
  padding-right: 3.5rem;
}

.tez-mobile-submenu li a:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: -2px;
}

/* Mobile Menu Contact Section */
.tez-mobile-menu-contact {
  padding: 1.5rem;
  border-top: 2px solid var(--tez-border);
  flex-shrink: 0;
  background: var(--tez-bg-alt);
}

.tez-mobile-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--tez-primary);
  color: #ffffff;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: var(--tez-transition);
  min-height: 54px;
  box-shadow: var(--tez-shadow-md);
}

.tez-mobile-contact-link:hover,
.tez-mobile-contact-link:focus {
  background: var(--tez-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--tez-shadow-lg);
}

.tez-mobile-contact-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.tez-mobile-contact-link i {
  font-size: 1.25rem;
}

/* ========================================================================
   12. SEARCH OVERLAY
   ======================================================================== */

.tez-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--tez-transition-slow);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
}

.tez-search-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.tez-search-overlay-inner {
  width: 100%;
  max-width: 650px;
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tez-search-close {
  position: absolute;
  top: -3.5rem;
  left: 0;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--tez-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tez-search-close:hover {
  background: #ffffff;
  color: #111827;
  transform: rotate(90deg);
}

.tez-search-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.tez-search-form {
  display: flex;
  gap: 0.75rem;
}

.tez-search-input {
  flex: 1;
  padding: 1.25rem 1.75rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  font-size: 1.125rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  min-height: 64px;
  transition: var(--tez-transition);
}

.tez-search-input::placeholder {
  color: #9ca3af;
}

.tez-search-input:focus {
  outline: none;
  border-color: var(--tez-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 190, 73, 0.1);
}

.tez-search-submit {
  width: 64px;
  height: 64px;
  border: none;
  background: var(--tez-primary);
  color: #ffffff;
  border-radius: 1rem;
  cursor: pointer;
  transition: var(--tez-transition);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tez-search-submit:hover {
  background: var(--tez-primary-dark);
  transform: scale(1.05);
}

.tez-search-submit:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .tez-search-input,
  .tez-search-submit {
    height: 56px;
    min-height: 56px;
  }
  
  .tez-search-submit {
    width: 56px;
  }
}

/* ========================================================================
   13. FOOTER - COMPLETE PROFESSIONAL STYLING
   ======================================================================== */

.tez-site-footer {
  background: var(--tez-footer-bg);
  color: var(--tez-footer-text);
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 3px solid var(--tez-primary);
}

/* Footer Main Section */
.tez-footer-main {
  padding-bottom: 3rem;
}

.tez-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

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

@media (max-width: 767px) {
  .tez-footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Footer Column */
.tez-footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Footer Logo */
.tez-footer-logo {
  margin-bottom: 0.5rem;
}

.tez-footer-logo .tez-logo {
  width: auto;
  height: 50px;
  max-width: 200px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Footer Description */
.tez-footer-description p {
  color: var(--tez-footer-text);
  line-height: 1.8;
  font-size: 0.9375rem;
  margin: 0;
}

/* Footer Social Icons */
.tez-footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tez-social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--tez-footer-text);
  font-size: 1.125rem;
  text-decoration: none;
  transition: var(--tez-transition);
}

.tez-social-link:hover,
.tez-social-link:focus {
  background: var(--tez-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--tez-shadow-lg);
}

.tez-social-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Footer Titles */
.tez-footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.tez-footer-title i {
  font-size: 1.125rem;
  color: var(--tez-primary);
}

/* Footer Menu */
.tez-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tez-footer-menu li {
  margin: 0;
}

.tez-footer-menu a {
  color: var(--tez-footer-text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: var(--tez-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tez-footer-menu a::before {
  content: '◂';
  font-size: 0.75rem;
  color: var(--tez-primary);
  transition: var(--tez-transition);
}

.tez-footer-menu a:hover,
.tez-footer-menu a:focus {
  color: var(--tez-primary);
  padding-right: 0.5rem;
}

.tez-footer-menu a:hover::before,
.tez-footer-menu a:focus::before {
  transform: translateX(4px);
}

.tez-footer-menu a:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Footer Contact List */
.tez-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tez-contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0;
}

.tez-contact-item > i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tez-primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.tez-contact-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.tez-contact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tez-contact-link {
  color: var(--tez-footer-text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: var(--tez-transition);
}

.tez-contact-link:hover,
.tez-contact-link:focus {
  color: var(--tez-primary);
}

.tez-contact-link:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Footer Bottom Bar */
.tez-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem 0;
}

.tez-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .tez-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
}

.tez-footer-copyright p {
  color: var(--tez-footer-text);
  font-size: 0.875rem;
  margin: 0;
}

.tez-footer-copyright a {
  color: var(--tez-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--tez-transition);
}

.tez-footer-copyright a:hover,
.tez-footer-copyright a:focus {
  text-decoration: underline;
  opacity: 0.9;
}

.tez-footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .tez-footer-links-list {
    justify-content: center;
  }
}

.tez-footer-links-list li {
  margin: 0;
}

.tez-footer-links-list a {
  color: var(--tez-footer-text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--tez-transition);
}

.tez-footer-links-list a:hover,
.tez-footer-links-list a:focus {
  color: var(--tez-primary);
  text-decoration: underline;
}

.tez-footer-links-list a:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* ========================================================================
   14. CHATY FLOATING WIDGET
   ======================================================================== */

.tez-chaty-widget {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 8000;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .tez-chaty-widget {
    left: 1rem;
    bottom: 1rem;
  }
}

/* Chaty Toggle Button */
.tez-chaty-toggle {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tez-primary) 0%, var(--tez-primary-dark) 100%);
  color: #ffffff;
  font-size: 1.75rem;
  cursor: pointer;
  transition: var(--tez-transition);
  box-shadow: var(--tez-shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.tez-chaty-toggle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.tez-chaty-toggle:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: var(--tez-shadow-xl);
}

.tez-chaty-toggle:focus-visible {
  outline: 3px solid var(--tez-primary);
  outline-offset: 4px;
}

.tez-chaty-widget.is-open .tez-chaty-toggle {
  transform: rotate(180deg);
}

/* Chaty Channels */
.tez-chaty-channels {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--tez-transition-slow);
  pointer-events: none;
}

.tez-chaty-widget.is-open .tez-chaty-channels {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.tez-chaty-channel {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.375rem;
  text-decoration: none;
  box-shadow: var(--tez-shadow-md);
  transition: var(--tez-transition);
  position: relative;
  animation: fadeInUp 0.3s ease backwards;
}

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

.tez-chaty-widget.is-open .tez-chaty-channel:nth-child(1) { animation-delay: 0.05s; }
.tez-chaty-widget.is-open .tez-chaty-channel:nth-child(2) { animation-delay: 0.1s; }
.tez-chaty-widget.is-open .tez-chaty-channel:nth-child(3) { animation-delay: 0.15s; }
.tez-chaty-widget.is-open .tez-chaty-channel:nth-child(4) { animation-delay: 0.2s; }
.tez-chaty-widget.is-open .tez-chaty-channel:nth-child(5) { animation-delay: 0.25s; }

.tez-chaty-channel:hover {
  transform: scale(1.15) translateX(-5px);
  box-shadow: var(--tez-shadow-lg);
}

.tez-chaty-channel:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Channel Colors */
.tez-chaty-phone {
  background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.tez-chaty-sms {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.tez-chaty-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.tez-chaty-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #005885 100%);
}

.tez-chaty-email {
  background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
}

/* Chaty Tooltip */
.tez-chaty-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--tez-transition);
  pointer-events: none;
}

.tez-chaty-channel:hover .tez-chaty-tooltip {
  opacity: 1;
  visibility: visible;
  margin-right: 1.25rem;
}

/* ========================================================================
   15. SCROLL TO TOP BUTTON
   ======================================================================== */

.tez-scroll-top {
  position: fixed;
  left: 1.5rem;
  bottom: 10rem;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--tez-primary);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--tez-transition);
  box-shadow: var(--tez-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 7999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tez-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tez-scroll-top:hover {
  background: var(--tez-primary-dark);
  transform: translateY(-5px);
  box-shadow: var(--tez-shadow-xl);
}

.tez-scroll-top:active {
  transform: translateY(-2px);
}

.tez-scroll-top:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .tez-scroll-top {
    left: 1rem;
    bottom: 8.5rem;
    width: 48px;
    height: 48px;
  }
}

/* ========================================================================
   16. THEME SWITCHER (Bottom Right)
   ======================================================================== */

.tez-theme-buttons,
.tez-fixed-theme-switcher {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .tez-theme-buttons,
  .tez-fixed-theme-switcher {
    right: 1rem;
    bottom: 1rem;
  }
}

.tez-mode-btn,
.tez-theme-btn {
  width: 52px;
  height: 52px;
  border: 2px solid var(--tez-border);
  border-radius: 50%;
  background: var(--tez-card-bg);
  color: var(--tez-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--tez-transition);
  box-shadow: var(--tez-shadow-md);
  font-size: 1.125rem;
}

.tez-mode-btn:hover,
.tez-theme-btn:hover {
  background: var(--tez-primary);
  color: #ffffff;
  border-color: var(--tez-primary);
  transform: scale(1.1);
  box-shadow: var(--tez-shadow-lg);
}

.tez-mode-btn:focus-visible,
.tez-theme-btn:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: 3px;
}

.tez-mode-btn.active,
.tez-theme-btn[aria-pressed="true"] {
  background: var(--tez-primary);
  color: #ffffff;
  border-color: var(--tez-primary);
  box-shadow: var(--tez-shadow-lg);
}

/* ========================================================================
   17. ACCESSIBILITY TOOLBAR (Bottom Left)
   ======================================================================== */

.tez-fixed-a11y-toolbar {
  position: fixed;
  left: 1.5rem;
  bottom: 13rem;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .tez-fixed-a11y-toolbar {
    left: 1rem;
    bottom: 11rem;
  }
}

@media (max-width: 480px) {
  .tez-fixed-a11y-toolbar {
    display: none; /* Too crowded on small screens */
  }
}

.tez-a11y-btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--tez-border);
  border-radius: 50%;
  background: var(--tez-card-bg);
  color: var(--tez-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--tez-transition);
  box-shadow: var(--tez-shadow-md);
  font-size: 1rem;
  font-weight: 700;
}

.tez-a11y-btn:hover {
  background: var(--tez-primary);
  color: #ffffff;
  border-color: var(--tez-primary);
  transform: scale(1.1);
}

.tez-a11y-btn:focus-visible {
  outline: 2px solid var(--tez-primary);
  outline-offset: 3px;
}

/* High Contrast Mode */
body.tez-high-contrast {
  filter: contrast(1.2);
}

body.tez-high-contrast a {
  text-decoration: underline;
}

/* ========================================================================
   18. MAIN CONTENT AREA
   ======================================================================== */

.tez-main-content {
  min-height: calc(100vh - 400px);
  padding: 3rem 0;
}

@media (max-width: 767px) {
  .tez-main-content {
    padding: 2rem 0;
  }
}

/* ========================================================================
   19. SINGLE POST LAYOUT - CLEAN & CENTERED
   ======================================================================== */

/* Remove sidebar on single posts */
body.single-post .sidebar,
body.single .sidebar,
body.single-post .tie-sidebar,
body.single .tie-sidebar {
  display: none !important;
}

body.single-post #tie-container,
body.single #tie-container,
body.single-post .tie-container,
body.single .tie-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  body.single-post #tie-container,
  body.single #tie-container,
  body.single-post .tie-container,
  body.single .tie-container {
    padding: 0 2rem;
  }
}

/* Post Meta - Persian Labels */
body.single-post .post-meta,
body.single .entry-meta {
  direction: rtl;
  text-align: right;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--tez-border);
}

body.single-post .post-meta .meta-item,
body.single .entry-meta .meta-item {
  display: inline-block;
  margin-left: 1.5rem;
  color: var(--tez-text-light);
  font-size: 0.9375rem;
}

/* Category Labels - Persian */
body.single-post .post-categories,
body.single .post-categories {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.single-post .post-categories::before,
body.single .post-categories::before {
  content: 'دسته‌بندی:';
  font-weight: 600;
  color: var(--tez-text);
  font-size: 0.9375rem;
}

body.single-post .post-categories a,
body.single .post-categories a {
  padding: 0.375rem 0.875rem;
  background: var(--tez-bg-alt);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  transition: var(--tez-transition);
}

body.single-post .post-categories a:hover,
body.single .post-categories a:focus {
  background: var(--tez-primary);
  color: #ffffff;
}

/* Post Content Typography */
body.single-post .entry-content,
body.single .entry-content {
  line-height: 2;
  font-size: 1.0625rem;
}

body.single-post .entry-content h2,
body.single .entry-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid var(--tez-border);
}

body.single-post .entry-content h3,
body.single .entry-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

body.single-post .entry-content h4,
body.single .entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

body.single-post .entry-content p,
body.single .entry-content p {
  margin-bottom: 1.5rem;
}

body.single-post .entry-content ul,
body.single .entry-content ol {
  margin-bottom: 2rem;
  padding-right: 2rem;
}

body.single-post .entry-content li {
  margin-bottom: 0.75rem;
}

body.single-post .entry-content blockquote {
  border-right: 4px solid var(--tez-primary);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: var(--tez-bg-alt);
  border-radius: 0.75rem;
  font-style: italic;
  color: var(--tez-text-light);
}

body.single-post .entry-content img {
  border-radius: 0.75rem;
  margin: 2rem 0;
  box-shadow: var(--tez-shadow-md);
}

body.single-post .entry-content figure {
  margin: 2rem 0;
}

body.single-post .entry-content figcaption {
  text-align: center;
  color: var(--tez-text-light);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  font-style: italic;
}

/* Tables */
body.single-post .entry-content table,
body.single .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--tez-shadow-sm);
}

body.single-post .entry-content th,
body.single .entry-content th {
  background: var(--tez-primary);
  color: #ffffff;
  padding: 1rem;
  text-align: right;
  font-weight: 600;
}

body.single-post .entry-content td,
body.single .entry-content td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--tez-border);
  text-align: right;
}

body.single-post .entry-content tr:nth-child(even) td,
body.single .entry-content tr:nth-child(even) td {
  background: var(--tez-bg-alt);
}

/* Code Blocks */
body.single-post .entry-content code,
body.single .entry-content code {
  padding: 0.25rem 0.5rem;
  background: var(--tez-bg-alt);
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--tez-primary-dark);
}

body.single-post .entry-content pre,
body.single .entry-content pre {
  padding: 1.5rem;
  background: var(--tez-bg-alt);
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--tez-border);
}

body.single-post .entry-content pre code,
body.single .entry-content pre code {
  padding: 0;
  background: none;
}

/* ========================================================================
   20. FOCUS STATES (ACCESSIBILITY)
   ======================================================================== */

*:focus {
  outline: none;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--tez-primary) !important;
  outline-offset: 2px !important;
}

/* ========================================================================
   21. REDUCED MOTION (ACCESSIBILITY)
   ======================================================================== */

@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;
  }
}

/* ========================================================================
   22. PRINT STYLES
   ======================================================================== */

@media print {
  .tez-site-header,
  .tez-mobile-toggle,
  .tez-mobile-menu-overlay,
  .tez-mobile-menu-inner,
  .tez-search-overlay,
  .tez-theme-buttons,
  .tez-fixed-theme-switcher,
  .tez-fixed-a11y-toolbar,
  .tez-chaty-widget,
  .tez-scroll-top,
  .tez-skip-link {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
    font-size: 12pt;
  }
  
  a {
    color: #000 !important;
    text-decoration: underline;
  }
  
  .tez-site-footer {
    border-top: 2px solid #000;
  }
}

/* ========================================================================
   23. UTILITY CLASSES
   ======================================================================== */

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

.tez-hidden {
  display: none !important;
}

.tez-text-center {
  text-align: center;
}

.tez-text-right {
  text-align: right;
}

.tez-text-left {
  text-align: left;
}

/* ========================================================================
   END OF PROFESSIONAL DESIGN SYSTEM
   ======================================================================== */
