/* ============ NetWeb - Premium Luxury Glassmorphism Stylesheet ============ */
:root {
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --violet: #8b5cf6;
  --green: #10b981;
  --cyan: #06b6d4;
  --bg-dark: #0b1120;
  --bg-soft: #0f172a;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-main: #0f172a;
  --text-soft: #64748b;
  --text-light: #cbd5e1;
  --grad-1: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --grad-2: linear-gradient(135deg, #8b5cf6, #10b981);
  --grad-3: linear-gradient(135deg, #3b82f6, #06b6d4);
  --grad-dark: linear-gradient(160deg, #1e293b, #0b1120);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.85) 100%);
  --grad-card-dark: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 20px 40px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(139, 92, 246, 0.1);
  --shadow-glow: 0 0 35px rgba(59, 130, 246, 0.35);
  --font: 'Vazirmatn', 'Vazir', 'IRANSans', Tahoma, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: #f8fafc;
  color: var(--text-main);
  line-height: 1.9;
  direction: rtl;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

a:hover {
  color: var(--violet);
}

/* ---------- Consistent Centered Containers ---------- */
.container,
.hero-inner,
.page-hero-inner,
.section-inner,
.content {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

.content {
  padding-top: 48px;
  padding-bottom: 72px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 800;
  font-size: 20px;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-1);
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
}

.brand-en {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  color: #94a3b8;
  font-weight: 600;
  margin-top: -2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav > a, .nav-drop > a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 4px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav > a::after, .nav-drop > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--grad-1);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.desktop-nav > a:hover, .nav-drop > a:hover {
  color: #ffffff;
}

.desktop-nav > a:hover::after, .nav-drop > a:hover::after {
  width: 100%;
}

.nav-drop {
  position: relative;
}

.drop-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 10;
}

.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drop-menu a {
  color: #cbd5e1;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.drop-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.phone-badge img {
  max-height: 44px;
  width: auto;
  border-radius: 9999px;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-badge:hover img {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(139, 92, 246, 0.6);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #ffffff;
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Mobile Drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 84%;
  max-width: 360px;
  background: var(--grad-dark);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 201;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-close {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 0;
  font-size: 26px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-links a {
  color: #e2e8f0;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s;
}

.mobile-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.drawer-cta {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

/* ---------- Hero Section (Index Only: Viewport Height) ---------- */
/* Home hero gets full viewport height; subpage heroes stay compact */
#home-hero {
  background: var(--bg-dark);
  color: #ffffff;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.hero {

  background: var(--bg-dark);
  color: #ffffff;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before, .hero::after,
.page-hero::before, .page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
}

.hero::before {
  width: 500px;
  height: 500px;
  background: #3b82f6;
  top: -150px;
  right: -100px;
}

.hero::after {
  width: 450px;
  height: 450px;
  background: #8b5cf6;
  bottom: -150px;
  left: -100px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 32px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* ---------- Page Hero (Subpages: Strictly Compact) ---------- */
.page-hero {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 44px 0 36px;
  min-height: auto;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero::before {
  width: 320px;
  height: 320px;
  background: #3b82f6;
  top: -120px;
  right: -60px;
}

.page-hero::after {
  width: 300px;
  height: 300px;
  background: #8b5cf6;
  bottom: -120px;
  left: -60px;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: #94a3b8;
  font-size: 15.5px;
  line-height: 1.8;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: #94a3b8;
}

.breadcrumbs a {
  color: #cbd5e1;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #60a5fa;
}

.breadcrumbs span.sep {
  opacity: 0.5;
}

.breadcrumbs span.curr {
  color: #38bdf8;
}

/* ---------- Hero Stats & Metrics ---------- */
.hero-stats, .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  margin-top: 10px;
}

.hero-stats .stat, .stats .stat {
  flex: 1 1 200px;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 22px 18px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-stats .stat:hover, .stats .stat:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 16px 32px rgba(59, 130, 246, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.stat-num, .stat strong {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 900;
  display: block;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.stat-label, .stat .lbl {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 0;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-1);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(139, 92, 246, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-bale {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn-bale:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.45);
  color: #ffffff;
}

/* ---------- Grids ---------- */
.grid-2, .grid-3, .grid-4, .services-grid, .blog-grid, .portfolio-grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Luxury Glassmorphism Cards ---------- */
.card,
.service-card,
.portfolio-card,
.blog-card,
.spec-card,
.feature-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.card:hover,
.service-card:hover,
.portfolio-card:hover,
.blog-card:hover,
.spec-card:hover,
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-hover);
}

.card h3,
.service-card h3,
.portfolio-card h3,
.blog-card h3,
.spec-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.card p,
.service-card p,
.portfolio-card p,
.blog-card p,
.spec-card p {
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Service Detail Lists */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.feature-list li {
  position: relative;
  padding-right: 26px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.7;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: #10b981;
  font-weight: 900;
  font-size: 15px;
}

/* Dark Spec Cards inside Details */
.spec-box {
  background: var(--grad-dark);
  border-radius: var(--radius);
  color: #ffffff;
  padding: 36px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
}

.spec-box h3 {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 16px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.spec-item strong {
  display: block;
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.spec-item span {
  font-size: 16px;
  color: #38bdf8;
  font-weight: 700;
}

/* ---------- CTA Box ---------- */
.cta-panel, .cta-box {
  background: var(--grad-dark);
  border-radius: var(--radius);
  padding: 50px 36px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-panel h2, .cta-box h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: #ffffff;
}

.cta-panel p, .cta-box p {
  color: #cbd5e1;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.85;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #070d18;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 70px 0 30px;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-grid h3 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-grid a {
  display: block;
  color: #94a3b8;
  font-size: 14.5px;
  margin-bottom: 12px;
  transition: color 0.2s, transform 0.2s;
}

.footer-grid a:hover {
  color: #60a5fa;
  transform: translateX(-4px);
}

.footer-grid p {
  font-size: 14px;
  line-height: 1.85;
  margin: 16px 0 20px;
}

.trust-badges {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.badge-placeholder {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
  flex: 1;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: #64748b;
}

/* Floating call button */
.floating-call {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.floating-call:hover {
  transform: scale(1.06);
}

.floating-call img {
  max-height: 48px;
  width: auto;
  border-radius: 9999px;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .page-hero {
    padding: 36px 0 28px;
  }
}


/* ===== Added: form & service-intro styles ===== */
/* Form styles */
.form-wrap{max-width:820px;margin:0 auto;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:20px;padding:32px;backdrop-filter:blur(8px);}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.form-grid .full{grid-column:1/-1;}
.form-grid label{display:block;font-size:.9rem;margin-bottom:6px;color:#c7d2fe;}
.form-grid input,.form-grid select,.form-grid textarea{width:100%;padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.15);background:rgba(10,15,40,.5);color:#fff;font:inherit;box-sizing:border-box;}
.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{outline:none;border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,.25);}
.form-grid .btn-submit{grid-column:1/-1;background:linear-gradient(135deg,#4f46e5,#2563eb);color:#fff;border:none;padding:14px;border-radius:12px;font-weight:700;cursor:pointer;transition:.3s;}
.form-grid .btn-submit:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(79,70,229,.4);}
@media(max-width:640px){.form-grid{grid-template-columns:1fr;}}


.svc-intro{max-width:900px;margin:0 auto 40px;text-align:center;}
.svc-intro p{line-height:1.9;}
.svc-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-bottom:48px;}
.svc-details .card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;}
.svc-details .card img,.svc-details .card .ic{font-size:2rem;margin-bottom:6px;}


/* ========================================================
   Enhanced Section, Cards Centering & Luxury FAQ Styles
   ======================================================== */
.section {
    max-width: 1240px;
    margin: 60px auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.section-head h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.section-head p {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
}

.grid-4, .grid-3 {
    display: grid;
    gap: 24px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #6366f1;
    box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.15);
}

.card .icon, .card .portfolio-cover {
    font-size: 2.5rem;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(79, 70, 229, 0.05));
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Modern FAQ Accordion Styling */
.faq-section {
    max-width: 860px;
    margin: 60px auto;
    padding: 0 20px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    overflow: hidden;
}

.faq-item[open] {
    border-color: #6366f1;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.12);
    background: #fafbff;
}

.faq-item summary {
    padding: 22px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    user-select: none;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.6rem;
    font-weight: 400;
    color: #6366f1;
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
    margin-right: 15px;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
    color: #4338ca;
}

.faq-item summary:hover {
    color: #4f46e5;
}

.faq-item p {
    padding: 0 28px 24px;
    margin: 0;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.85;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding-top: 16px;
}

@media (max-width: 768px) {
    .section-head h2 { font-size: 1.6rem; }
    .faq-item summary { padding: 18px 20px; font-size: 1rem; }
    .faq-item p { padding: 0 20px 18px; }
}
/* ---------- Fix: Center All Sections on Index (Same as Services Page) ---------- */

/* وسط‌چین کردن کانتینر تمام سکشن‌ها */
main > .section {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* وسط‌چین کردن تیترها و زیرتیترهای سکشن‌ها */
.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* جلوگیری از بیرون‌زدگی کارت‌ها از صفحه */
.grid-4,
.grid-3 {
    display: grid;
    gap: 24px;
    width: 100%;
    max-width: 100%;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ریسپانسیو: موبایل و تبلت */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-4,
    .grid-3 { grid-template-columns: 1fr; }
}

/* وسط‌چین محتوای داخل کارت‌ها (هماهنگ با صفحه services) */
.grid-4 .card,
.grid-3 .card {
    text-align: center;
}
/* رفع کامل اسکرول افقی در تمام دستگاه‌ها */
html, body {
  max-width: 100%;
  overflow-x: clip; /* جایگزین مدرن‌تر و امن‌تر hidden برای جلوگیری از اختلال sticky */
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

/* ریسپانسیو کردن بج تماس و دکمه شناور */
.phone-badge img,
.floating-call img {
  max-width: 100%;
  height: auto;
}

.hero-stats {
  width: 100% !important;
  box-sizing: border-box;
}

.hero-inner {
  padding: 0 16px;
  box-sizing: border-box;
}

