@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600&family=Cairo:wght@500;600&display=swap");

:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #4b5563;
  --accent: #0ea5e9;
  --accent-strong: #0f766e;
  --border: #e5e7eb;
  --shadow: 0 20px 60px rgba(15, 118, 110, 0.08);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}

html[lang="fa"], html[lang="ar"] {
  direction: rtl;
  font-family: "Vazirmatn", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang="en"] {
  direction: ltr;
  font-family: "Space Grotesk", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 10% 20%, rgba(14, 165, 233, 0.08), transparent 50%),
    radial-gradient(100% 70% at 90% 10%, rgba(15, 118, 110, 0.1), transparent 40%),
    var(--bg);
  background-size: 160% 160%;
  animation: gradientMove 22s ease infinite;
}

a { color: inherit; text-decoration: none; }

.page { max-width: 1200px; margin: 0 auto; padding: 32px 20px 80px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 40px;
  backdrop-filter: blur(12px);
  background: rgba(246, 248, 251, 0.9);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

.badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.25);
}

.menu { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.menu a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  font-weight: 600;
}

.menu a:hover, .menu a:focus { background: rgba(14, 165, 233, 0.1); color: var(--ink); transform: translateY(-1px); }

.menu .lang { border: 1px solid var(--border); padding: 8px 12px; border-radius: 12px; font-weight: 600; }
.menu .lang.active { border-color: var(--accent); background: rgba(14, 165, 233, 0.08); color: var(--ink); }

.lang-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lang { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.lang .flag { font-size: 1rem; }
.lang .label { font-weight: 700; }

.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; align-items: stretch; margin-bottom: 56px; }

.hero-card { background: var(--card); border-radius: calc(var(--radius) + 2px); padding: 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; border: 1px solid var(--border); height: 100%; display: grid; gap: 16px; align-content: start; }
.hero-card h1 { margin: 0; font-size: 2.3rem; line-height: 1.12; }
.hero-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.lead { font-size: 1.04rem; }

.hero-brand { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(15,118,110,0.12)); color: var(--accent-strong); font-weight: 800; letter-spacing: -0.01em; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat-card { border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05); }
.stat-number { font-weight: 800; font-size: 1.05rem; }
.stat-text { color: var(--muted); font-size: 0.95rem; }

.hero-media { position: relative; display: grid; gap: 14px; }
.hero-image { width: 100%; border-radius: 22px; overflow: hidden; position: relative; min-height: 320px; background-size: cover; background-position: center; box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16); }
.hero-image .glow { position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.25), transparent 40%); pointer-events: none; }
.hero-image { animation: float 8s ease-in-out infinite; }

.floating-card { position: absolute; bottom: 12px; left: 8%; right: 8%; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.88); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12); color: var(--muted); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }

.cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; font-weight: 700; border: none; cursor: pointer; background: linear-gradient(120deg, var(--accent), var(--accent-strong)); color: white; box-shadow: 0 14px 30px rgba(14, 165, 233, 0.25); transition: transform 0.2s ease, box-shadow 0.25s ease; position: relative; z-index: 1; }

.cta.secondary { background: transparent; color: var(--ink); border: 1px solid var(--border); box-shadow: none; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(15, 118, 110, 0.28); }
.cta.secondary:hover { border-color: var(--accent); color: var(--accent-strong); }

.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

.pill { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: rgba(255, 255, 255, 0.8); font-weight: 600; }
.pill.ghost { background: rgba(14, 165, 233, 0.08); color: var(--accent-strong); }
.pill-row { gap: 8px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.feature-card { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: rgba(14, 165, 233, 0.04); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05); }
.feature-icon { width: 32px; height: 32px; border-radius: 10px; background: rgba(14, 165, 233, 0.12); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-strong); font-weight: 800; }
.feature-title { font-weight: 800; color: var(--ink); line-height: 1.4; }
.feature-note { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.section { margin-bottom: 52px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-title { margin: 0; font-size: 1.6rem; }
.muted { color: var(--muted); line-height: 1.6; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12); }
.card .label { display: inline-block; background: rgba(14, 165, 233, 0.1); color: var(--accent-strong); padding: 6px 10px; border-radius: 10px; font-weight: 700; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }
.icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 10px; background: rgba(14, 165, 233, 0.15); margin-inline-end: 6px; font-size: 0.95rem; }

.list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); line-height: 1.5; }
.dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.band { background: linear-gradient(120deg, rgba(14, 165, 233, 0.08), rgba(15, 118, 110, 0.08)); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.band span { color: var(--ink); font-weight: 700; }
.band-chips span { display: inline-flex; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.9); }

.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.client-card { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06); }
.client-icon { width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, rgba(14,165,233,0.16), rgba(15,118,110,0.14)); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-strong); font-weight: 800; }
.client-name { font-weight: 800; color: var(--ink); }
.client-note { color: var(--muted); font-size: 0.92rem; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.stat { padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: rgba(14, 165, 233, 0.05); }
.stat-value { font-weight: 800; font-size: 1.2rem; }
.stat-label { color: var(--muted); font-size: 0.95rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease, filter 0.3s ease; min-height: 180px; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%); pointer-events: none; }
.gallery-item:hover img { transform: scale(1.05); filter: saturate(1.08); }

.order-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.order-card { display: grid; gap: 18px; }
.order-block { display: grid; gap: 12px; }
.need-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.need-card { border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.9); padding: 14px; text-align: start; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease; font-family: inherit; }
.need-card .need-title { font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.need-card .need-desc { color: var(--muted); line-height: 1.4; }
.need-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08); }
.need-card.active { border-color: var(--accent); box-shadow: 0 18px 40px rgba(14, 165, 233, 0.16); transform: translateY(-3px); }

.field { display: grid; gap: 6px; font-weight: 700; color: var(--ink); }
.field input, .field textarea { width: 100%; border-radius: 12px; border: 1px solid var(--border); padding: 12px; font-family: inherit; font-size: 1rem; line-height: 1.5; color: var(--ink); background: rgba(255, 255, 255, 0.9); transition: border 0.2s ease, box-shadow 0.2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }

.order-footer { display: grid; gap: 8px; }
.order-status { min-height: 22px; font-weight: 700; }

.summary-card { display: grid; gap: 10px; }
.summary-list { display: grid; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); border: 1px dashed var(--border); border-radius: 12px; padding: 10px 12px; }
.summary-row strong { color: var(--ink); font-weight: 800; }

.small { font-size: 0.9rem; }

.flash { animation: flash 0.6s ease; }
@keyframes flash {
  0% { background: rgba(14, 165, 233, 0.18); }
  100% { background: transparent; }
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes gradientMove {
  0% { background-position: 0% 0%; }
  50% { background-position: 80% 30%; }
  100% { background-position: 0% 0%; }
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.005); }
  100% { transform: translateY(0px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0ms !important; }
  body { background-size: auto; }
}

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.contact-card { display: grid; gap: 10px; }
.contact-lines { display: grid; gap: 6px; color: var(--muted); }
.contact-lines a { color: var(--ink); font-weight: 700; }
.map-card { min-height: 300px; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.map-embed { position: absolute; inset: 0; }
.map-embed iframe { border: 0; width: 100%; height: 100%; border-radius: inherit; }
.map-overlay {
  position: absolute;
  inset: auto 12px 12px 12px;
  width: fit-content;
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 12px;
  backdrop-filter: blur(3px);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  border: 1px solid var(--border);
  pointer-events: none;
}

.footer { margin-top: 60px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.9); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); }
.footer .note { color: var(--muted); margin: 8px 0 0; }

@media (max-width: 720px) {
  .nav { position: relative; }
  .menu { width: 100%; justify-content: flex-start; gap: 8px; }
  .hero-card h1 { font-size: 1.7rem; }
  .floating-card { position: static; margin-top: -40px; }
  .order-grid { grid-template-columns: 1fr; }
  .lang-group { width: 100%; }
  .menu .lang { flex: 1 1 90px; justify-content: center; }
}

@media (max-width: 1024px) {
  .page { padding: 24px 16px 64px; }
  .nav { flex-direction: column; align-items: flex-start; gap: 12px; position: sticky; }
  .menu { justify-content: flex-start; width: 100%; }
  .hero { grid-template-columns: 1fr; }
  .hero-card { padding: 22px; }
  .hero-card h1 { font-size: 1.8rem; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .order-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .nav { padding: 12px; }
  .badge { font-size: 0.8rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .card { padding: 16px; }
  .hero-card { padding: 20px; }
  .summary-row { flex-direction: column; align-items: flex-start; }
  .need-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .hero-image { min-height: 240px; }
}
