@import url('https://fonts.cdnfonts.com/css/dana');

/*
Theme Name: Qasem AI Automation
Theme URI: https://qapauto.ir/
Author: Qasem
Description: قالب فارسی و مینیمال برای معرفی خدمات اتوماسیون و هوش مصنوعی.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: qasem-ai
License: GPL-2.0-or-later
*/

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #111827;
  --accent-2: #334155;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'dana', Tahoma, Arial, sans-serif;
  line-height: 1.9;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,248,250,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229,231,235,.75);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
.brand span { color: var(--muted); font-weight: 600; }
.nav { display:flex; align-items:center; gap: 22px; font-size:.95rem; }
.nav a { color: #475467; transition: .2s ease; }
.nav a:hover { color: var(--text); }
.nav-toggle {
  display:none;
  border:1px solid var(--line);
  background:var(--surface);
  width:44px;
  height:44px;
  border-radius:14px;
  cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display:block; width:20px; height:2px; background:#111827; margin:auto;
}
.nav-toggle span { position:relative; }
.nav-toggle span::before, .nav-toggle span::after { content:""; position:absolute; right:0; }
.nav-toggle span::before { top:-7px; }
.nav-toggle span::after { top:7px; }

.hero { padding: 30px 0 72px; }
.hero-grid {
  display:grid;
  grid-template-columns: 1.18fr .82fr;
  align-items:center;
  gap:64px;
}
.eyebrow {
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.7);
  color:#475467;
  font-size:.84rem;
}
.eyebrow-dot {
  width:8px; height:8px; border-radius:50%;
  background:#16a34a;
}
.hero h1 {
  margin:20px 0 18px;
  font-size:clamp(2.3rem, 5vw, 4.7rem);
  line-height:1.15;
  letter-spacing:-.04em;
}
.hero h1 span { color:#64748b; }
.hero .lead {
  color:var(--muted);
  font-size:1.08rem;
  max-width:720px;
}
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:14px;
  font-weight:700;
  border:1px solid transparent;
  transition:.2s ease;
}
.btn-primary { background:var(--accent); color:#fff; }
.btn-primary:hover { background:#000; transform:translateY(-1px); }
.btn-secondary { border-color:var(--line); background:#fff; }
.btn-secondary:hover { border-color:#cbd5e1; transform:translateY(-1px); }

.hero-card {
  position:relative;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:32px;
  padding:26px;
  box-shadow:var(--shadow);
}
.hero-avatar {
  aspect-ratio: 1 / 1;
  border-radius:24px;
  background:#eef1f5;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-avatar img { width:100%; height:100%; object-fit:cover; }
.hero-placeholder {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:#94a3b8; font-weight:700;
}
.hero-badge {
  position:absolute; left:-14px; bottom:26px;
  background:#111827; color:#fff;
  padding:14px 18px; border-radius:16px;
  font-size:.9rem; box-shadow:var(--shadow);
}

.section { padding: 78px 0; }
.section-head { max-width:760px; margin-bottom:30px; }
.kicker { color:#64748b; font-size:.85rem; font-weight:800; letter-spacing:.08em; }
.section h2 { margin:8px 0 10px; font-size:clamp(1.8rem, 3vw, 2.8rem); line-height:1.25; }
.section-intro { color:var(--muted); font-size:1.02rem; }

.about-grid { display:grid; grid-template-columns: .9fr 1.1fr; gap:46px; align-items:start; }
.about-card, .contact-card, .service-card, .project-card, .process-card {
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
}
.about-card { padding:28px; }
.about-list { display:grid; gap:14px; margin-top:22px; }
.about-list div {
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fafafa;
}
.about-list strong { display:block; margin-bottom:3px; }
.about-list span { color:var(--muted); font-size:.92rem; }

.services-grid {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
.service-card { padding:24px; transition:.2s ease; }
.service-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.service-icon {
  width:48px; height:48px; border-radius:14px;
  background:#f1f5f9; display:flex; align-items:center; justify-content:center;
  font-size:1.2rem; margin-bottom:18px;
}
.service-card h3 { margin:0 0 8px; font-size:1.05rem; }
.service-card p { margin:0; color:var(--muted); font-size:.94rem; }

.dark-section {
  background:#111827;
  color:#fff;
}
.dark-section .section-intro { color:#cbd5e1; }
.dark-section .kicker { color:#94a3b8; }
.points {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.point {
  background:#172033;
  border:1px solid #25314a;
  border-radius:20px;
  padding:22px;
}
.point b { display:block; margin-bottom:7px; }
.point span { color:#cbd5e1; font-size:.92rem; }

.projects-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}
.project-card { padding:26px; }
.project-card .tag {
  display:inline-block; padding:6px 10px; border-radius:999px;
  background:#f1f5f9; color:#475467; font-size:.78rem; margin-bottom:15px;
}
.project-card h3 { margin:0 0 8px; }
.project-card p { margin:0; color:var(--muted); }

.process-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.process-card { padding:22px; }
.step {
  width:34px; height:34px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  background:#111827; color:#fff; font-weight:800; margin-bottom:16px;
}
.process-card h3 { font-size:1rem; margin:0 0 7px; }
.process-card p { color:var(--muted); font-size:.9rem; margin:0; }

.contact-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.contact-card { padding:28px; }
.contact-item {
  display:flex; align-items:flex-start; gap:14px; padding:14px 0;
  border-bottom:1px solid var(--line);
}
.contact-item:last-child { border-bottom:0; }
.contact-icon {
  width:40px; height:40px; border-radius:12px; background:#f1f5f9;
  display:flex; align-items:center; justify-content:center;
  flex:0 0 auto;
}
.contact-label { color:#667085; font-size:.82rem; }
.contact-value { font-weight:700; word-break:break-word; }

.enamad {
  text-align:center;
}
.enamad-box {
  min-height:170px;
  display:flex; align-items:center; justify-content:center;
  border:1px dashed #cbd5e1;
  border-radius:20px;
  background:#fafafa;
  overflow:hidden;
}
.enamad-box img { max-width:150px; max-height:150px; }
.enamad-placeholder { color:#94a3b8; font-size:.9rem; padding:30px; }

.site-footer {
  padding:36px 0 42px;
  border-top:1px solid var(--line);
  background:#fff;
}
.footer-grid {
  display:flex; justify-content:space-between; gap:20px; align-items:flex-start;
}
.footer-brand { font-weight:800; }
.footer-text { color:var(--muted); font-size:.88rem; max-width:560px; margin-top:6px; }
.footer-links { display:flex; gap:18px; flex-wrap:wrap; color:#475467; font-size:.9rem; }
.copyright { margin-top:20px; padding-top:18px; border-top:1px solid var(--line); color:#98a2b3; font-size:.8rem; }

.skip-link {
  position:absolute; right:10px; top:10px; padding:10px 14px; background:#111827; color:#fff;
  transform:translateY(-150%); border-radius:10px; z-index:1000;
}
.skip-link:focus { transform:translateY(0); }

@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns:1fr; }
  .hero-card { max-width:560px; margin:0 auto; }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .points, .process-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 680px) {
  .container { width:min(var(--container), calc(100% - 28px)); }
  .header-inner { min-height:68px; }
  .nav-toggle { display:block; }
  .nav {
    display:none; position:absolute; right:14px; left:14px; top:74px;
    background:#fff; border:1px solid var(--line); border-radius:18px;
    padding:12px; box-shadow:var(--shadow); flex-direction:column; align-items:stretch;
  }
  .nav.is-open { display:flex; }
  .nav a { padding:11px 12px; border-radius:10px; }
  .nav a:hover { background:#f8fafc; }
  .hero { padding:56px 0 48px; }
  .section { padding:58px 0; }
  .services-grid, .projects-grid, .points, .process-grid { grid-template-columns:1fr; }
  .footer-grid { flex-direction:column; }
}

body, button, input, textarea, select {
  font-family: 'dana', Tahoma, Arial, sans-serif;
}
