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

:root {
  --radius: 1rem;
  --radius-sm: calc(var(--radius) - 6px);
  --radius-xl: calc(var(--radius) + 6px);
  --radius-2xl: calc(var(--radius) + 14px);
  --radius-3xl: calc(var(--radius) + 22px);

  --background: oklch(0.995 0.003 210);
  --foreground: oklch(0.22 0.035 245);
  --surface: oklch(0.972 0.008 210);
  --ink: oklch(0.26 0.06 245);
  --card: oklch(1 0 0);
  --primary: oklch(0.34 0.075 246);
  --primary-foreground: oklch(0.99 0.005 210);
  --secondary: oklch(0.95 0.015 210);
  --secondary-foreground: oklch(0.3 0.06 246);
  --muted-foreground: oklch(0.53 0.025 245);
  --accent: oklch(0.68 0.11 190);
  --accent-foreground: oklch(0.2 0.04 245);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.91 0.012 220);

  --gradient-hero: linear-gradient(135deg, oklch(0.28 0.07 248) 0%, oklch(0.36 0.08 232) 55%, oklch(0.5 0.1 198) 100%);
  --gradient-accent: linear-gradient(120deg, oklch(0.68 0.11 190), oklch(0.78 0.1 172));
  --shadow-soft: 0 1px 2px oklch(0.34 0.075 246 / 0.05), 0 18px 40px -22px oklch(0.34 0.075 246 / 0.28);
  --shadow-lift: 0 2px 4px oklch(0.34 0.075 246 / 0.06), 0 34px 70px -30px oklch(0.34 0.075 246 / 0.35);
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

h1, h2, h3 {
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin: 0;
  color: var(--ink);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.text-muted {
  color: var(--muted-foreground);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.2s ease, opacity 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: var(--background);
  color: var(--ink);
  border-color: var(--border);
  font-weight: 600;
}

.btn-outline:hover {
  background: var(--secondary);
}

.btn-ghost-light {
  background: transparent;
  color: var(--primary-foreground);
  border-color: rgb(255 255 255 / 0.4);
  font-weight: 600;
}

.btn-ghost-light:hover {
  background: rgb(255 255 255 / 0.1);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(0 0 0 / 0.06);
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(16px);
}

.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text-main {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.logo-text-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--muted-foreground);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover {
  background: var(--secondary);
  color: var(--ink);
}

.main-nav a.active {
  background: var(--secondary);
  color: var(--ink);
  font-weight: 600;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.header-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 1rem 1.25rem;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.mobile-nav a.active {
  background: var(--secondary);
  color: var(--ink);
  font-weight: 600;
}

.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .main-nav, .header-actions { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Hero / PageHero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero .wrap {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
}

.hero .wrap > * { min-width: 0; }

.page-hero {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.page-hero .wrap {
  padding-block: 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-foreground);
}

.eyebrow .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero h1, .page-hero h1 {
  margin-top: 1.5rem;
  max-width: 44rem;
  font-size: 1.9rem;
  font-weight: 800;
}

.page-hero h1 { max-width: 48rem; }

.accent-text {
  background-image: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p, .page-hero p {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 2;
  color: var(--muted-foreground);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-img img {
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lift);
  width: 100%;
  height: auto;
}

/* Sections */
section { padding-block: 0; }
.section { padding-block: 5rem; }
.section-tight { padding-block: 3rem; }
.bg-surface { background: var(--surface); }
.border-y { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.link-underline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-foreground);
}

.link-underline:hover { text-decoration: underline; }

/* Grid & cards */
.grid { display: grid; gap: 1.5rem; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap, .about-story { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--secondary);
  color: var(--accent-foreground);
}

.icon-badge svg { width: 1.25rem; height: 1.25rem; }

.card h3 {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 2;
  color: var(--muted-foreground);
}

.card ul {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.dot-sm {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.card .btn { margin-top: 1.5rem; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-block: 3rem;
}

.stat { text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.stat-label { margin-top: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); line-height: 1.6; }

@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Steps */
.step {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.75rem;
}

.step-num { font-size: 0.875rem; font-weight: 800; color: var(--accent); }
.step h3 { margin-top: 1rem; font-size: 1rem; font-weight: 700; }
.step p { margin-top: 0.75rem; font-size: 0.875rem; line-height: 2; color: var(--muted-foreground); }

/* Testimonials */
.testimonial {
  border-radius: var(--radius-3xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2rem;
}

.testimonial blockquote {
  margin: 0;
  font-size: 0.875rem;
  line-height: 2;
  color: var(--ink);
}

.testimonial figcaption {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.testimonial figcaption b { color: var(--ink); }

/* About story */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.about-story > * { min-width: 0; }

.about-story img { border-radius: var(--radius-3xl); box-shadow: var(--shadow-soft); width: 100%; height: auto; }
.about-story p { margin-top: 1rem; font-size: 0.875rem; line-height: 2; color: var(--muted-foreground); }

.values-grid, .faq-list { margin-top: 2.5rem; }

.faq {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq[open] { box-shadow: var(--shadow-soft); }

.faq p {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 2;
  color: var(--muted-foreground);
}

/* CTA band */
.cta-band {
  background-image: var(--gradient-hero);
  border-radius: var(--radius-3xl);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--primary-foreground);
  overflow: hidden;
}

.cta-band h2 { color: var(--primary-foreground); font-size: 1.5rem; font-weight: 800; }
.cta-band p { margin: 1rem auto 0; max-width: 36rem; font-size: 0.875rem; line-height: 2; opacity: 0.85; }
.cta-band .hero-actions { justify-content: center; margin-top: 2rem; }
.cta-band .cta-email { margin-top: 1.5rem; font-size: 0.75rem; opacity: 0.7; }

/* Footer */
.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3.5rem;
}

.footer-grid p { margin-top: 1rem; max-width: 24rem; font-size: 0.875rem; line-height: 2; color: var(--muted-foreground); }
.footer-grid h3 { font-size: 0.875rem; font-weight: 700; }
.footer-grid ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-grid ul li a, .footer-grid ul li span { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-grid ul li a:hover { color: var(--ink); }

.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact svg { width: 1rem; height: 1rem; margin-top: 0.2rem; flex-shrink: 0; color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  padding-block: 5rem;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
}

.contact-form-card h2 { font-size: 1.125rem; font-weight: 800; }

.field { display: block; margin-top: 1.25rem; }
.field label, .form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.field:first-child { margin-top: 0; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px oklch(0.68 0.11 190 / 0.15);
}

.form-textarea { resize: none; }

.contact-form-card .btn { width: 100%; justify-content: center; margin-top: 1.5rem; font-size: 0.875rem; }
.form-note { text-align: center; font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.75rem; }
.form-error { text-align: center; font-size: 0.75rem; color: var(--destructive); margin-top: 0.75rem; }

.success-box { text-align: center; padding: 4rem 0; }
.success-box svg { width: 3rem; height: 3rem; color: var(--accent); margin: 0 auto; }
.success-box h2 { margin-top: 1.5rem; font-size: 1.125rem; font-weight: 800; }
.success-box p { margin-top: 0.75rem; max-width: 24rem; margin-inline: auto; font-size: 0.875rem; line-height: 2; color: var(--muted-foreground); }

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.info-item .icon-badge { flex-shrink: 0; }
.info-item .info-title { font-size: 0.75rem; color: var(--muted-foreground); }
.info-item .info-value { margin-top: 0.25rem; font-size: 0.875rem; font-weight: 700; color: var(--ink); display: block; }

.note-box {
  margin-top: 2.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem;
  font-size: 0.875rem;
  line-height: 2;
  color: var(--muted-foreground);
}
