/* ========================================
   آرمان اندیشه — صفحه معرفی / لینک‌ها
   هویت بصری هماهنگ با armanandishe.com
   ======================================== */

:root {
  /* رنگ‌های برند از سایت اصلی */
  --color-primary: #0f72d2;
  --color-primary-dark: #0a5299;
  --color-secondary: #2b3742;
  --color-text: #6a7076;
  --color-accent: #a3a3a3;
  --color-gold: #fdc500;
  --color-surface: #e8eef6;
  --color-white: #ffffff;
  --color-border: rgba(255, 255, 255, 0.45);

  /* شیشه */
  --glass-bg: rgba(255, 255, 255, 0.28);
  --glass-bg-strong: rgba(255, 255, 255, 0.42);
  --glass-border: 1px solid rgba(255, 255, 255, 0.55);
  --glass-blur: blur(18px);
  --glass-shadow: 0 8px 32px rgba(15, 114, 210, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.65);

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 16px 40px rgba(43, 55, 66, 0.1);
  --shadow-card: 0 24px 60px rgba(15, 114, 210, 0.14);

  --font: "Vazirmatn", "Tahoma", sans-serif;
  --max-width: 440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ریست پایه */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-secondary);
  background: var(--color-surface);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* پس‌زمینه — لایه‌های رنگی برای دیده شدن افکت شیشه */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(160deg, #d6e8fa 0%, #eef3f8 38%, #e4eef8 68%, #f7f3e8 100%);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.7;
}

.orb-1 {
  width: 380px;
  height: 380px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(15, 114, 210, 0.45), transparent 70%);
}

.orb-2 {
  width: 320px;
  height: 320px;
  bottom: 8%;
  left: -100px;
  background: radial-gradient(circle, rgba(253, 197, 0, 0.32), transparent 70%);
}

.bg-layer::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: 42%;
  right: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 114, 210, 0.18), transparent 70%);
  filter: blur(40px);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 114, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 114, 210, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

/* آیکون همبرگر / ضربدر — خطوط هم‌ضخامت و ضربدر متقارن */
.btn-hamburger {
  position: relative;
  width: 20px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.btn-hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    top 0.32s var(--ease),
    transform 0.32s var(--ease),
    opacity 0.2s ease;
}

.btn-hamburger span:nth-child(1) { top: 0; }
.btn-hamburger span:nth-child(2) { top: 6px; }
.btn-hamburger span:nth-child(3) { top: 12px; }

.socials-toggle.is-open .btn-hamburger span:nth-child(1),
.accordion-toggle.is-open .btn-hamburger span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.socials-toggle.is-open .btn-hamburger span:nth-child(2),
.accordion-toggle.is-open .btn-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.socials-toggle.is-open .btn-hamburger span:nth-child(3),
.accordion-toggle.is-open .btn-hamburger span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* آکاردئون‌های همبرگری */
.menu-accordion,
.social-accordion {
  width: 100%;
}

.accordion-toggle,
.socials-toggle {
  position: relative;
}

.btn-chevron {
  margin-inline-start: auto;
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
  opacity: 0.7;
}

.accordion-toggle.is-open .btn-chevron,
.socials-toggle.is-open .btn-chevron {
  transform: rotate(180deg);
}

.accordion-toggle.is-open,
.socials-toggle.is-open {
  background: rgba(15, 114, 210, 0.12);
  border-color: rgba(15, 114, 210, 0.35);
  box-shadow: var(--glass-shadow);
}

.accordion-panel,
.social-dropdown {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease), margin 0.35s var(--ease);
  margin-top: 0;
}

.accordion-panel.is-open,
.social-dropdown.is-open {
  grid-template-rows: 1fr;
  margin-top: 10px;
}

.accordion-panel > .social-nav,
.accordion-panel > .social-list,
.social-dropdown > .social-nav {
  overflow: hidden;
  min-height: 0;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px 2px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s,
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease),
    box-shadow 0.25s;
}

.social-dropdown.is-open .social-link,
.accordion-panel.is-open .social-link {
  opacity: 1;
  transform: translateY(0);
}

.social-dropdown.is-open .social-list li:nth-child(1) .social-link,
.accordion-panel.is-open .social-list li:nth-child(1) .social-link { transition-delay: 0.04s; }
.social-dropdown.is-open .social-list li:nth-child(2) .social-link,
.accordion-panel.is-open .social-list li:nth-child(2) .social-link { transition-delay: 0.08s; }
.social-dropdown.is-open .social-list li:nth-child(3) .social-link,
.accordion-panel.is-open .social-list li:nth-child(3) .social-link { transition-delay: 0.12s; }
.social-dropdown.is-open .social-list li:nth-child(4) .social-link,
.accordion-panel.is-open .social-list li:nth-child(4) .social-link { transition-delay: 0.16s; }
.social-dropdown.is-open .social-list li:nth-child(5) .social-link,
.accordion-panel.is-open .social-list li:nth-child(5) .social-link { transition-delay: 0.2s; }
.social-dropdown.is-open .social-list li:nth-child(6) .social-link,
.accordion-panel.is-open .social-list li:nth-child(6) .social-link { transition-delay: 0.24s; }

.social-link:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(15, 114, 210, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 114, 210, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  color: var(--color-white);
  flex-shrink: 0;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
}

.social-icon--telegram {
  background: #2aabee;
}

.social-icon--bale {
  background: #0aca9b;
}

.social-icon--bale svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.social-icon--linkedin {
  background: #0a66c2;
}

.social-icon--whatsapp {
  background: #25d366;
}

.social-icon--aparat {
  background: #ed145b;
}

.social-icon--rasmio {
  background: #0058cb;
}

.social-icon--rasmio svg {
  width: 16px;
  height: 19px;
}

.social-icon--phone {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.social-icon--phone svg {
  fill: none;
  stroke: currentColor;
}

.phone-link .contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.phone-link .contact-label {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 500;
}

.social-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-secondary);
}

/* صفحه و کارت اصلی */
.page {
  position: relative;
  z-index: 1;
  padding: 28px 18px 48px;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: var(--max-width);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 60px rgba(15, 114, 210, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 36px 24px 28px;
  animation: fadeUp 0.7s var(--ease) both;
}

/* سوئیچر زبان */
.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-link {
  color: var(--color-text);
  opacity: 0.72;
  padding: 4px 2px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.lang-link:hover {
  color: var(--color-primary);
  opacity: 1;
}

.lang-link.is-active {
  color: var(--color-primary);
  opacity: 1;
}

.lang-sep {
  color: var(--color-accent);
  opacity: 0.55;
  user-select: none;
}

html[dir="ltr"] body {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

/* معرفی */
.intro {
  text-align: center;
  margin-bottom: 28px;
}

.logo-glass {
  width: 180px;
  margin: 0 auto 20px;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 10px 30px rgba(15, 114, 210, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  animation: fadeUp 0.75s 0.08s var(--ease) both;
}

.logo-glass img {
  margin: 0 auto;
  height: 56px;
  width: auto;
  object-fit: contain;
}

.company-name {
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  animation: fadeUp 0.75s 0.14s var(--ease) both;
}

/* تیتر و زیرتیتر هماهنگ با سایت اصلی */
.hero-copy {
  max-width: 340px;
  margin: 0 auto;
  animation: fadeUp 0.75s 0.2s var(--ease) both;
}

.hero-title {
  font-size: clamp(1.15rem, 4.2vw, 1.4rem);
  font-weight: 800;
  color: #2d2e32;
  line-height: 1.75;
  margin-bottom: 10px;
}

.hero-mark {
  display: inline;
  background: #fdc500;
  color: #2d2e32;
  padding: 0 0.18em 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-subtitle {
  font-size: clamp(0.82rem, 3vw, 0.95rem);
  font-weight: 500;
  color: #757575;
  line-height: 1.9;
}

.hero-red {
  color: #e53935;
  font-weight: 700;
}

.hero-blue {
  color: #0f72d2;
  font-weight: 700;
}

/* دکمه‌ها */
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  animation: fadeUp 0.75s 0.26s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: var(--color-white);
  background: linear-gradient(
    135deg,
    rgba(15, 114, 210, 0.78),
    rgba(10, 82, 153, 0.72)
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 28px rgba(15, 114, 210, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(15, 114, 210, 0.9),
    rgba(10, 82, 153, 0.85)
  );
  box-shadow:
    0 14px 34px rgba(15, 114, 210, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.98) translateY(0);
}

.btn-secondary {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 6px 20px rgba(15, 114, 210, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(15, 114, 210, 0.35);
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(15, 114, 210, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-icon {
  flex-shrink: 0;
}

/* تماس */
.contact {
  animation: fadeUp 0.75s 0.32s var(--ease) both;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 14px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 6px 20px rgba(43, 55, 66, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s,
    transform 0.2s var(--ease);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(15, 114, 210, 0.28);
  box-shadow: 0 10px 28px rgba(15, 114, 210, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  background: rgba(15, 114, 210, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 2px;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 500;
}

.contact-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-secondary);
  word-break: break-word;
  line-height: 1.65;
}

/* فوتر */
.site-footer {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  text-align: center;
  animation: fadeUp 0.75s 0.38s var(--ease) both;
}

.footer-link {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--color-accent);
}

/* انیمیشن ورود */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* کاهش حرکت برای دسترس‌پذیری */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .social-dropdown {
    transition: none;
  }
}
@media (min-width: 768px) {
  :root {
    --max-width: 460px;
  }

  .page {
    padding: 40px 24px 64px;
  }

  .card {
    padding: 44px 36px 32px;
  }

  .logo-glass {
    width: 200px;
    padding: 26px 24px;
  }

  .logo-glass img {
    height: 64px;
  }
}

@media (min-width: 1024px) {
  .orb-1 {
    width: 420px;
    height: 420px;
  }

  .orb-2 {
    width: 360px;
    height: 360px;
  }
}
