/* ====== TOKENS ====== */
:root {
  --gray-950: #111316;
  --gray-900: #1A1C1F;
  --gray-800: #2A2D31;
  --gray-700: #3A3E44;
  --gray-600: #4A4E54;
  --gray-500: #6B6E74;
  --gray-400: #9CA0A8;
  --gray-300: #B8BBC0;
  --gray-200: #D0D3D8;
  --gray-100: #E8E9EC;
  --gray-50:  #F5F6F8;
  --yellow:   #F5C518;
  --yellow-dark: #E0B012;
  --white:    #FFFFFF;
  --red:      #EF4444;

  --font-fa: 'Vazirmatn', sans-serif;
  --font-en: 'Figtree', sans-serif;

  --radius-card: 16px;
  --radius-img: 12px;
  --radius-input: 8px;
  --radius-pill: 9999px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-btn: 0 4px 16px rgba(245,197,24,0.25);

  --header-h: 64px;
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-fa);
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--gray-50);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
section { scroll-margin-top: var(--header-h); }

/* ====== UTILITIES ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.section-pad { padding: var(--space-8) 0; }
.text-center { text-align: center; }
.lat { font-family: var(--font-en); direction: ltr; }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}
.section-sub {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: var(--space-6);
}
.dark .section-title { color: var(--gray-100); }
.dark .section-sub { color: var(--gray-400); }

.btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--yellow);
  color: var(--gray-900);
  font-weight: 700;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-btn);
  font-size: 0.95rem;
}
.btn-yellow:hover { transform: translateY(-2px); background: var(--yellow-dark); }
.btn-yellow:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1.5px solid var(--gray-700);
  color: var(--gray-300);
  font-weight: 500;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s, color 0.2s;
  font-size: 0.9rem;
}
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* ====== HEADER ====== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(26,28,31,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-800);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-100);
}
.logo-svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  direction: ltr;
}
.logo-accent { color: var(--yellow); }

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-5);
}
.nav-links a {
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--gray-100); }
.nav-links a:hover::after { width: 100%; }

.header-call {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--gray-900);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  transition: transform 0.2s, background 0.2s;
}
.header-call:hover { transform: translateY(-1px); background: var(--yellow-dark); }
.header-call svg { width: 16px; height: 16px; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-100);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  right: 0; left: 0;
  background: var(--gray-900);
  border-bottom: 1px solid var(--gray-800);
  padding: var(--space-4);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 999;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--gray-300);
  font-weight: 500;
  border-radius: var(--radius-input);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu a:hover { background: var(--gray-800); color: var(--yellow); }
.mobile-menu .btn-yellow { justify-content: center; margin-top: var(--space-3); }

/* ====== HERO ====== */
.hero {
  background:
    radial-gradient(circle at 75% 25%, rgba(245,197,24,0.07) 0%, transparent 55%),
    var(--gray-900);
  color: var(--gray-100);
  padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-3);
  direction: ltr;
}
.hero h1 .accent { color: var(--yellow); }
.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-100);
  margin-bottom: var(--space-3);
}
.hero-desc {
  color: var(--gray-400);
  font-size: 0.95rem;
  max-width: 520px;
  margin-bottom: var(--space-5);
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.hero-badge { margin-top: var(--space-5); }

/* ====== SERVICES ====== */
.services { background: var(--gray-50); }
.category { margin-bottom: var(--space-8); }
.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.category-icon {
  width: 40px; height: 40px;
  background: var(--gray-900);
  border-radius: var(--radius-input);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.category-icon svg { width: 20px; height: 20px; color: var(--yellow); }
.category-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
}
.category-header p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  border-color: var(--yellow);
  box-shadow: var(--shadow-soft);
}
.service-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--gray-200);
}
.service-images img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  transition: filter 0.3s ease;
  background: var(--gray-100);
}
.service-body { padding: var(--space-5); }
.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}
.service-desc {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.specs-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--gray-100);
}
.specs-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.specs-list li {
  font-size: 0.82rem;
  color: var(--gray-600);
  padding-right: var(--space-4);
  position: relative;
  line-height: 1.6;
}
.specs-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
}
.service-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-900);
  padding: 8px 16px;
  border: 1.5px solid var(--gray-900);
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}
.service-call:hover { background: var(--gray-900); color: var(--yellow); }
.service-call svg { width: 14px; height: 14px; }

/* ====== ABOUT ====== */
.about {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.about-text p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: var(--space-4);
}
.about-note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--gray-500);
  padding: var(--space-2) var(--space-4);
  background: var(--gray-50);
  border-radius: var(--radius-input);
  border: 1px dashed var(--gray-300);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.stat {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--gray-200);
}
.stat-num {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
  direction: ltr;
}
.stat-num .plus { color: var(--yellow); }
.stat-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: var(--space-2);
}

/* ====== GALLERY ====== */
.gallery { background: var(--gray-50); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.gallery-item {
  border-radius: var(--radius-img);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  background: var(--gray-100);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-note {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.88rem;
  margin-top: var(--space-5);
}
.gallery-note a { color: var(--gray-900); font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }

/* ====== CONTACT ====== */
.contact {
  background:
    radial-gradient(circle at 25% 75%, rgba(245,197,24,0.05) 0%, transparent 50%),
    var(--gray-900);
  color: var(--gray-300);
  border-top: 1px solid var(--gray-800);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.contact-info-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}
.contact-call-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--yellow);
  color: var(--gray-900);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-btn);
  margin-bottom: var(--space-3);
  width: 100%;
}
.contact-call-btn:hover { transform: translateY(-2px); }
.contact-call-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-call-btn .num { font-family: var(--font-en); direction: ltr; font-size: 1rem; }
.contact-call-btn .label { font-size: 0.8rem; opacity: 0.7; }

.contact-call-btn.secondary {
  background: var(--gray-700);
  color: var(--gray-100);
  box-shadow: none;
}
.contact-call-btn.secondary:hover { background: var(--gray-600); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--gray-700);
}
.contact-detail:first-of-type { border-top: none; }
.contact-detail svg { width: 18px; height: 18px; color: var(--yellow); flex-shrink: 0; margin-top: 2px; }
.contact-detail .label { font-size: 0.78rem; color: var(--gray-500); margin-bottom: 2px; }
.contact-detail .value { font-size: 0.9rem; color: var(--gray-200); }
.contact-detail .value.lat { font-family: var(--font-en); direction: ltr; }

/* Form */
.contact-form-card {
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}
.form-group { margin-bottom: var(--space-4); }
.form-label {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-300);
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--gray-900);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-input);
  padding: var(--space-3) var(--space-4);
  color: var(--gray-100);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-500); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--yellow);
}
.form-input.error, .form-textarea.error { border-color: var(--red); }
.form-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 4px;
  display: none;
}
.form-input.error + .form-error { display: block; }
.form-textarea { resize: vertical; min-height: 90px; }
.form-select { color: var(--gray-100); }
.form-select option { background: var(--gray-900); }
.form-submit {
  width: 100%;
  background: var(--yellow);
  color: var(--gray-900);
  font-weight: 700;
  padding: var(--space-4);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s;
  box-shadow: var(--shadow-btn);
}
.form-submit:hover { transform: translateY(-2px); background: var(--yellow-dark); }
.form-success {
  display: none;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ADE80;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-input);
  font-size: 0.85rem;
  margin-bottom: var(--space-4);
  text-align: center;
}
.form-success.show { display: block; }

/* ====== FOOTER ====== */
.footer {
  background: var(--gray-950);
  color: var(--gray-400);
  padding: var(--space-7) 0 var(--space-5);
  border-top: 1px solid var(--gray-800);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.footer-brand .logo { margin-bottom: var(--space-3); }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; max-width: 300px; }
.footer-col h4 {
  color: var(--gray-200);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.footer-col ul li { margin-bottom: var(--space-2); }
.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--yellow); }
.footer-seo {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
  margin-bottom: var(--space-5);
}
.footer-seo p {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.9;
}
.footer-seo .seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.footer-seo .seo-tags span {
  font-size: 0.75rem;
  padding: 3px 10px;
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-pill);
  color: var(--gray-500);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.footer-bottom p { font-size: 0.8rem; }
.footer-bottom .lat { font-family: var(--font-en); }

/* ====== FLOATING CALL ====== */
.floating-call {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 998;
  width: 56px;
  height: 56px;
  background: var(--yellow);
  color: var(--gray-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245,197,24,0.4);
  transition: transform 0.2s ease;
  animation: pulse 2s ease-in-out infinite;
}
.floating-call:hover { transform: scale(1.1); }
.floating-call svg { width: 24px; height: 24px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(245,197,24,0.4); }
  50% { box-shadow: 0 4px 30px rgba(245,197,24,0.6); }
}

/* ====== REVEAL ANIMATION ====== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== FOCUS STATES ====== */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* ====== RESPONSIVE ====== */
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-5); }
  .section-pad { padding: var(--space-9) 0; }
  .section-title { font-size: 2rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero-desc { font-size: 1.05rem; }
  .hero-subtitle { font-size: 1.3rem; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .header-call { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
  .services-grid { gap: var(--space-6); }
  .service-images img { height: 150px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ====== REDUCED MOTION ====== */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .floating-call { animation: none; }
}