:root {
  --bg: oklch(0.14 0.01 270);
  --card: oklch(0.19 0.012 270);
  --card-2: oklch(0.25 0.012 270);
  --fg: oklch(0.97 0.005 90);
  --muted: oklch(0.72 0.01 270);
  --accent: oklch(0.86 0.18 95);
  --accent-fg: oklch(0.15 0.01 270);
  --line: oklch(1 0 0 / 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Vazirmatn", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.14 0.01 270 / 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar .logo img { height: 40px; width: auto; filter: brightness(1.25) contrast(1.25); }
.nav { display: flex; gap: 28px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.drawer-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 0.6); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(80vw, 320px);
  background: var(--bg); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .25s ease; z-index: 70;
  padding: 20px 24px; display: flex; flex-direction: column; gap: 8px;
}
.drawer .close { align-self: flex-start; }
.drawer a { font-size: 20px; font-weight: 700; padding: 12px 0; }
body.menu-open .drawer { transform: none; }
body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }

/* Hero */
.hero { position: relative; min-height: 88vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("/images/hero.jpg") center / cover no-repeat; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, oklch(0.14 0.01 270 / 0.7) 50%, oklch(0.14 0.01 270 / 0.5) 100%);
}
.hero-content { position: relative; padding: 96px 16px; }
.hero h1 { margin: 0 0 32px; font-size: clamp(44px, 9vw, 96px); font-weight: 900; line-height: 1.25; }
.hero h1 span { color: var(--accent); }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.socials a {
  width: 64px; height: 64px; border-radius: 999px;
  display: grid; place-items: center;
  background: oklch(0.19 0.012 270 / 0.6); border: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.socials a:hover { background: var(--accent); color: var(--accent-fg); }
.socials svg { width: 26px; height: 26px; fill: currentColor; }
.socials.small a { width: 48px; height: 48px; }
.socials.small svg { width: 20px; height: 20px; }

/* Sections */
section.block { padding: 80px 0; }
h2.section-title { margin: 0 0 32px; font-size: clamp(32px, 5vw, 48px); font-weight: 900; line-height: 1; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 20px;
}
.card-head { display: flex; align-items: center; gap: 16px; }
.card-head img { width: 96px; height: 96px; object-fit: cover; border-radius: 24px; background: var(--card-2); flex: none; }
.card-head img.contain { object-fit: contain; padding: 8px; }
.card-head h3 { margin: 0; font-size: 24px; font-weight: 800; }
.badge {
  display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  background: oklch(0.86 0.18 95 / 0.15); color: var(--accent); font-size: 13px; font-weight: 700;
}
.card p { margin: 0; color: var(--muted); line-height: 2; }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.btn {
  align-self: flex-start; padding: 10px 20px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg); font-weight: 700;
}
.btn:hover { filter: brightness(1.08); }
.card iframe { width: 100%; border: 0; border-radius: 20px; overflow: hidden; background: transparent; }

.about { border-top: 1px solid var(--line); text-align: center; }
.about p { max-width: 736px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 2; }
.contact { text-align: center; padding-top: 0; }
.contact .email { display: inline-block; margin-bottom: 24px; color: var(--accent); font-size: 24px; font-weight: 700; direction: ltr; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; padding: 24px 16px; }
footer a { text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--fg); }

/* Privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 16px 80px; direction: ltr; text-align: left; line-height: 1.8; }
.doc h1 { font-size: 40px; font-weight: 900; margin: 0 0 4px; }
.doc .date { color: var(--muted); margin: 0 0 32px; font-style: italic; }
.doc p { color: var(--muted); }
.doc strong { color: var(--fg); }
.doc a { color: var(--accent); text-decoration: underline; }
.back { display: inline-block; margin-top: 32px; color: var(--accent); }

@media (max-width: 767px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar .logo img { height: 32px; }
  .grid { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
}
