/* ============================================================
   مهندس اعرابی - استایل مدرن v4.0
   طراحی واکنش‌گرا، RTL، با CSS Variables
   لوگو مستطیلی با عرض ثابت و ارتفاع خودکار
   ============================================================ */

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

:root {
  --primary: #c70b37;
  --primary-light: #e63956;
  --primary-dark: #8a0725;
  --secondary: #0cc;
  --accent: #fc0;
  --bg: #f8f7f3;
  --bg-alt: #ffffff;
  --bg-dark: #1a1a2e;
  --text: #2d2d3a;
  --text-light: #6b6b7b;
  --text-muted: #999;
  --border: #e5e5e8;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
  --shadow-primary: 0 12px 32px rgba(199,11,55,.25);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --font: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  --header-height: 70px;
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  direction: rtl;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul { list-style: none; }

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

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(199,11,55,.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  transform: translateY(-3px);
  color: #fff;
}

.btn-block { width: 100%; }

/* ============================================================
   نوار ناوبری (Navbar)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 6px 0;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,.97);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

/* ---------- برند و لوگو ---------- */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  height: 100%;
  flex-shrink: 0;
  text-decoration: none;
  transition: var(--transition);
}

.nav-brand:hover { color: var(--primary-dark); }

/* لوگو هدر - عرض ثابت، ارتفاع متناسب با تصویر */
.brand-logo {
  width: 140px !important;
  height: auto !important;
  min-width: 140px !important;
  max-width: 140px !important;
  max-height: 50px !important;
  object-fit: contain;
  object-position: center;
  background: transparent;
  display: block;
  flex-shrink: 0;
  flex-grow: 0;
  transition: var(--transition);
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.nav-brand:hover .brand-logo {
  transform: scale(1.05);
  opacity: .9;
}

.brand-text {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}

/* ---------- منوی ناوبری ---------- */
.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(199,11,55,.08);
}

/* ---------- دکمه منوی موبایل ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
  display: block;
}

/* ============================================================
   بخش Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(199,11,55,.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,204,204,.2) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,204,0,.1) 0%, transparent 60%);
  animation: heroFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroFloat {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(2deg); }
}

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

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat span {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}

/* ---------- تصویر Hero (مستطیلی با عرض ثابت) ---------- */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 320px !important;
  height: auto !important;
  min-width: 320px !important;
  max-width: 320px !important;
  max-height: 400px !important;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .15);
  box-shadow: 0 0 80px rgba(199, 11, 55, .4);
  animation: heroImageFloat 6s ease-in-out infinite;
  background: #fff;
  flex-shrink: 0;
  flex-grow: 0;
}

.hero-image-wrapper img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  border-radius: 40px;
  background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  filter: blur(40px);
  opacity: .5;
  z-index: -1;
  animation: rotate 10s linear infinite;
  pointer-events: none;
}

@keyframes heroImageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

/* ---------- دکمه اسکرول ---------- */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50px;
  z-index: 3;
  transition: var(--transition);
}

.scroll-down:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
}

.scroll-down span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { top: 8px; opacity: 1; }
  100% { top: 30px; opacity: 0; }
}

/* ============================================================
   بخش‌ها (Sections)
   ============================================================ */
.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(199,11,55,.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -1px;
}

/* ============================================================
   درباره من (About Grid)
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--bg-alt);
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s ease;
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.about-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform .4s ease;
}

.about-card:hover .about-icon {
  transform: scale(1.15) rotate(-5deg);
}

.about-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.about-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

/* ============================================================
   خدمات (Services Grid)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 0;
}

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

.service-card > * {
  position: relative;
  z-index: 1;
}

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

.service-card:hover h3,
.service-card:hover p {
  color: #fff;
}

.service-card:hover .service-icon {
  transform: scale(1.2);
  filter: brightness(0) invert(1);
}

.service-icon {
  font-size: 44px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  transition: var(--transition);
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.9;
  transition: var(--transition);
}

/* ============================================================
   نوار فیلتر (Filter Bar)
   ============================================================ */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: var(--transition);
  font-family: inherit;
  cursor: pointer;
}

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

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-primary);
}

/* ============================================================
   گالری افتخارات (Portfolio Grid)
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUp .5s ease both;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0f0f0;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.portfolio-item:hover .portfolio-thumb img {
  transform: scale(1.1);
}

.portfolio-thumb::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: rgba(199,11,55,.85);
  opacity: 0;
  transition: opacity .4s ease;
}

.portfolio-item:hover .portfolio-thumb::after {
  opacity: 1;
}

.portfolio-body {
  padding: 20px;
}

.portfolio-body h4 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--text);
}

.portfolio-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ============================================================
   تماس (Contact)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(199,11,55,.1), rgba(0,204,204,.1));
  border-radius: 50%;
}

.contact-item strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
  font-size: 14px;
  color: var(--text-light);
}

.contact-item a {
  direction: ltr;
  display: inline-block;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-map iframe {
  display: block;
}

/* ============================================================
   فوتر (Footer)
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
  overflow: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* لوگو فوتر - عرض ثابت، ارتفاع متناسب با تصویر */
.brand-logo-footer {
  width: 180px !important;
  height: auto !important;
  min-width: 180px !important;
  max-width: 180px !important;
  max-height: 70px !important;
  object-fit: contain;
  object-position: center;
  background: transparent;
  display: block;
  flex-shrink: 0;
  flex-grow: 0;
  margin-bottom: 12px;
  padding: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.footer-brand strong {
  display: block;
  font-size: 18px;
  color: #fff;
  margin: 0;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin: 0;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-right: 8px;
}

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

.footer-contact a {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   دکمه بازگشت به بالا
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  box-shadow: var(--shadow-primary);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(199,11,55,.4);
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
  animation: fadeIn .3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,.8);
  animation: zoomIn .4s ease;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  transition: var(--transition);
  line-height: 1;
  user-select: none;
}

.lightbox-close:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 15px;
  background: rgba(0,0,0,.7);
  padding: 12px 28px;
  border-radius: 50px;
  max-width: 80%;
  text-align: center;
}

/* ============================================================
   انیمیشن‌ها
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes zoomIn {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ریسپانسیو (Responsive)
   ============================================================ */

/* تبلت بزرگ */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; }

  .hero-image-wrapper {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    max-height: 320px !important;
  }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* تبلت و موبایل بزرگ */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-container {
    height: var(--header-height);
  }

  .brand-logo {
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    max-height: 42px !important;
  }

  .brand-text { font-size: 16px; }

  /* منوی موبایل */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    box-shadow: -10px 0 40px rgba(0,0,0,.1);
    transition: right .4s ease;
    gap: 4px;
    z-index: 999;
    overflow-y: auto;
  }

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

  .nav-link {
    padding: 14px 18px;
    width: 100%;
    text-align: right;
    border-radius: var(--radius-sm);
  }

  .section { padding: 70px 0; }
  .section-header { margin-bottom: 40px; }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-stats { gap: 24px; }
  .stat strong { font-size: 24px; }
  .stat span { font-size: 12px; }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-brand { align-items: center; }
  .footer-links,
  .footer-contact { align-items: center; }

  .footer-links a:hover { padding-right: 0; }

  .brand-logo-footer {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    max-height: 60px !important;
  }

  .lightbox { padding: 16px; }
  .lightbox-close {
    top: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* موبایل کوچک */
@media (max-width: 480px) {
  :root {
    --header-height: 58px;
  }

  .container { padding: 0 16px; }

  .brand-logo {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    max-height: 38px !important;
  }

  .brand-text { font-size: 14px; }

  .nav-brand { gap: 8px; }

  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 15px; }

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

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

  .hero-image-wrapper {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    max-height: 260px !important;
  }

  .brand-logo-footer {
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    max-height: 52px !important;
  }

  .about-grid,
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .section-title { font-size: 1.6rem; }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-item a { direction: ltr; }

  .lightbox-caption {
    font-size: 13px;
    padding: 8px 16px;
    max-width: 90%;
  }
}

/* ============================================================
   چاپ (Print)
   ============================================================ */
@media print {
  .navbar,
  .back-to-top,
  .scroll-down,
  .hero-actions,
  .filter-bar,
  .nav-toggle {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
    background: #fff;
    color: #000;
  }

  .hero-title,
  .hero-subtitle,
  .hero-badge,
  .stat strong,
  .stat span {
    color: #000 !important;
  }

  .hero-image-glow { display: none; }

  .section {
    padding: 30px 0;
    page-break-inside: avoid;
  }

  .service-card::after { display: none; }

  .footer {
    background: #fff;
    color: #000;
  }

  .footer-bottom { color: #000; }
}