/* انجمن خیریه آرین — طراحی نرم و ارگانیک (index2.html) */

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: bold;
  font-display: swap;
  src: url('../IRANSans/IRANSans-Bold-web.woff') format('woff');
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../IRANSans/IRANSans-Medium-web.woff') format('woff');
}

@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('../IRANSans/IRANSansWeb.woff') format('woff');
}


:root {
  /* رنگ‌های برند آرین */
  --teal: #29bcbd;
  --teal-dark: #137a7d;
  --teal-pastel: #d9f2f1;
  --indigo: #4b4ca6;
  --indigo-dark: #2f3079;
  --indigo-pastel: #e5e5f7;
  --peach: #f8dccf;
  --coral: #d66f5e;

  --bg: #fbf7f2;
  --ink: #272a5b;
  --muted: #666a86;
  --line: #ece5dd;

  --gutter: 16px;
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

button { font-family: inherit; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: IRANSans, Tahoma, Arial, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

.wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}


/* ---------- تزئینات: لکه‌های نرم و خط‌های گیاهی ---------- */
.deco {
  position: absolute;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.bean {
  position: absolute;
  width: 9px;
  height: 13px;
  border-radius: 50%;
  background: var(--indigo);
  opacity: .5;
  pointer-events: none;
}


/* ---------- ورود نرم عناصر ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(10px, -12px) rotate(6deg); }
}

.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

.js .reveal.in { opacity: 1; transform: none; }


/* ---------- هدر ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 30px;
  text-align: center;
}

.hero .wrap { padding-top: 6px; }

.hero .b1 { top: -70px; right: -70px; width: 270px; height: 250px; background: var(--teal-pastel); animation: drift 14s ease-in-out infinite; }
.hero .b2 { top: 40px; left: -90px; width: 220px; height: 230px; background: var(--peach); animation: drift 17s ease-in-out infinite reverse; }
.hero .b3 { bottom: 20px; right: -60px; width: 200px; height: 190px; background: var(--indigo-pastel); animation: drift 19s ease-in-out infinite; }
.hero .b4 { top: 150px; right: 24px; width: 110px; height: 100px; background: #4b4ca61f; border-radius: 50%; }

.hero .s1 { bottom: -6px; left: -34px; width: 96px; height: 176px; color: var(--teal-dark); opacity: .4; transform: rotate(14deg); }
.hero .s2 { top: 8px; right: -10px; width: 78px; height: 143px; color: var(--indigo); opacity: .4; transform: rotate(-24deg) scaleX(-1); }


/* قاب طاقی (قوسی) لوگو */
.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 118px;
      height: 118px;
border-radius: 59px;
background: #f5f5f5;
  box-shadow: 0 22px 34px -18px #4b4ca688;
}

.avatar::before,
.avatar::after {
  content: "";
  position: absolute;
  border-radius: 70px;
  pointer-events: none;
}

.avatar::before {
  inset: -9px;
  border: 1.5px solid #29bcbd99;
}

.avatar::after {
  inset: -18px;
  border: 1.5px dashed #4b4ca655;
}

.avatar img { display: block; width: 68px; height: auto; }


h1 {
  margin: 34px 0 0;
  font-size: 32px;
  line-height: 1.5;
}

h1 span {
  background: linear-gradient(90deg, var(--indigo), var(--teal));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.org {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 5px 18px;
  border: 1.5px solid #29bcbd88;
  border-radius: 999px;
  background: #ffffffb0;
  color: var(--teal-dark);
  font-size: 13.5px;
  font-weight: bold;
}

.tagline svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* خدمات با جداکننده، مثل «تزریق ژل | بوتاکس» */
.pipes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--indigo);
  font-size: 12.5px;
  font-weight: 500;
}

.pipes li + li::before {
  content: "|";
  margin: 0 7px;
  color: #4b4ca666;
}

.intro {
  max-width: 380px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13.5px;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-dark));
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 18px 30px -14px var(--indigo);
  transition: transform .2s ease;
}

.cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta:hover { transform: translateY(-3px); }

.cta:focus-visible { outline: 3px solid #4b4ca666; outline-offset: 4px; }

.facts {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  color: var(--muted);
  font-size: 11.5px;
}

.facts li + li::before {
  content: "•";
  margin: 0 9px;
  color: var(--teal);
}


/* ---------- تیتر بخش‌ها ---------- */
section { position: relative; }

.sec { padding-top: 44px; }

.sec-title {
  margin: 0;
  text-align: center;
  font-size: 22px;
  line-height: 1.6;
}

.sec-title span {
  background: linear-gradient(90deg, var(--indigo), var(--teal));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* یک خط بلند و یک خط کوتاه زیر تیتر */
.sec-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal) 0 62%, transparent 62% 72%, var(--indigo) 72% 100%);
}

.sec-sub {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.sec-body { margin-top: 24px; }


/* ---------- شبکه‌های اجتماعی ---------- */
.panel-soft {
  padding: 26px 12px 22px;
  border: 1px solid #fff;
  border-radius: 34px;
  background: #ffffffc4;
  box-shadow: 0 26px 44px -30px #4b4ca6aa;
}

.soc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 6px;
}

.soc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.soc-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 22px -12px #4b4ca6aa, 0 0 0 1px var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}

.soc:hover .soc-icon { transform: translateY(-4px); }

.soc-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soc-icon.t { color: var(--teal-dark); }
.soc-icon.i { color: var(--indigo); }

/* آیکون خطی ایتا و بله (فایل svg) هم‌اندازه با آیکون‌های دیگر */
.soc-icon img { display: block; width: 25px; height: 25px; }

.soc:focus-visible { outline: 3px solid #4b4ca666; outline-offset: 4px; border-radius: 16px; }


/* ---------- حمایت مالی (باند رنگی با لبه موج‌دار) ---------- */
.band {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  padding: 76px 0 70px;
  background: linear-gradient(172deg, var(--teal-pastel) 0%, #e8e8f8 100%);
}

.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 34px;
  fill: var(--bg);
  pointer-events: none;
}

.wave.top { top: -1px; }
.wave.bottom { bottom: -1px; transform: scaleY(-1); }

.band .s1 { top: 18px; left: -14px; width: 70px; height: 128px; color: var(--teal-dark); opacity: .35; transform: rotate(18deg); }
.band .s2 { bottom: 24px; right: -10px; width: 64px; height: 117px; color: var(--indigo); opacity: .3; transform: rotate(-16deg) scaleX(-1); }

.band .sec { padding-top: 0; }

.donate { --card-w: 176px; --card-h: 156px; scroll-margin-top: 0; }


/* اسلایدر از لبه ستون بیرون می‌زند تا کارت‌های کناری هم دیده شوند */
.slider {
  position: relative;
  height: calc(var(--card-h) + 90px);
  margin: 0 calc(var(--gutter) * -1);
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.slider.dragging { cursor: grabbing; }


.tab {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: var(--card-w);
  height: var(--card-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px;
  border: 0;
  border-radius: 30px 30px 24px 24px;
  background: linear-gradient(150deg, var(--accent), var(--accent2));
  color: #fff;
  font: inherit;
  text-align: center;
  text-shadow: 0 1px 3px #00000033;
  overflow: hidden;
  cursor: pointer;
  opacity: .55;
  transform: translate(-50%, -50%) scale(.82);
  transition:
    transform .5s cubic-bezier(.3, .8, .3, 1),
    opacity .4s ease,
    box-shadow .4s ease;
  -webkit-tap-highlight-color: transparent;
}

.tab > * { position: relative; z-index: 1; }

/* دایره تزئینی و شاخه گیاهی گوشه کارت */
.tab::before {
  content: "";
  position: absolute;
  top: -46px;
  left: -38px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #ffffff1f;
  pointer-events: none;
}

.tab::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -16px;
  width: 64px;
  height: 118px;
  opacity: .28;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 220' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M60 218C58 160 62 100 60 14'/%3E%3Cpath d='M60 168C38 168 24 156 18 138C40 136 56 150 60 168ZM60 118C82 118 96 106 102 88C80 86 64 100 60 118ZM60 70C44 68 32 58 28 44C46 44 58 54 60 70Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tab:hover { opacity: .8; }

.tab.is-active {
  z-index: 3;
  opacity: 1;
  box-shadow: 0 26px 34px -18px var(--accent);
  cursor: default;
}

/* پرش آیتمی که از یک طرف به طرف دیگر می‌رود، بدون عبور از وسط */
.tab.jump { transition: none; opacity: 0; }

.tab-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff30;
}

.tab-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-title {
  font-size: 17px;
  font-weight: bold;
  line-height: 1.5;
}

.tab-desc {
  font-size: 12.5px;
  line-height: 1.7;
  opacity: .95;
}

.tab:focus-visible,
.dot:focus-visible,
.pay-button:focus-visible,
.copy-btn:focus-visible {
  outline: 3px solid #4b4ca666;
  outline-offset: 3px;
}

.dots {
  position: relative;
  top: -20px;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 22px;
}

.dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #b9bdd9;
  cursor: pointer;
  transition: width .3s ease, background-color .3s ease;
}

.dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, var(--teal), var(--indigo));
}

.panels {
  position: relative;
  top: -20px;
  display: grid;
  touch-action: pan-y;
}

.panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(var(--shift, 0px));
  transition:
    transform .45s cubic-bezier(.3, .8, .3, 1),
    opacity .3s ease,
    visibility 0s .45s;
}

.panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.qr-frame {
  position: relative;
  padding: 14px;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 24px 38px -20px var(--accent);
}

/* گوشه‌های تزئینی دور QR */
.qr-frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid var(--accent);
  border-radius: 29px;
  opacity: .35;
  pointer-events: none;
}

.qr {
  display: block;
  width: 188px;
  height: 188px;
  border-radius: 14px;
  background: #f1f3f8;
  -webkit-user-drag: none;
  user-select: none;
}

.scan-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.or {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.or::before, .or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #4b4ca633;
}

.pay-button {
  width: 100%;
  max-width: 300px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 14.5px;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 0 1px 3px #00000033;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 14px 24px -12px var(--accent);
  transition: transform .2s ease;
}

.pay-button:hover { transform: translateY(-3px); }


/* ---------- کارت‌های بانکی ---------- */
.bank-owner, .sec-sub { text-wrap: balance; }

.bank-owner {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.banks {
  display: grid;
  gap: 12px;
}

.bank {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 26px;
  background: #fff;
  box-shadow: inset -5px 0 0 var(--teal), 0 18px 30px -24px #4b4ca6aa;
}

.bank:nth-child(even) { box-shadow: inset -5px 0 0 var(--indigo), 0 18px 30px -24px #4b4ca6aa; }

.bank-logo {
  flex: none;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7f3ee;
}

.bank-logo img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.bank-text { flex: 1; min-width: 0; }

.bank-name {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.6;
}

.bank-number {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.copy-btn {
  flex: none;
  min-width: 64px;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--teal-pastel);
  color: var(--teal-dark);
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}

.bank:nth-child(even) .copy-btn { background: var(--indigo-pastel); color: var(--indigo); }

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

.copy-btn.copied,
.bank:nth-child(even) .copy-btn.copied { background: var(--indigo); color: #fff; }


/* ---------- کارهای انجمن (ابر برچسب‌ها) ---------- */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 12px 20px -16px #4b4ca688;
}

.service-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-pastel);
  font-size: 16px;
}

.services li:nth-child(3n+2) .service-icon { background: var(--indigo-pastel); }
.services li:nth-child(3n+3) .service-icon { background: var(--peach); }


/* ---------- نشانی ---------- */
.address-card {
  position: relative;
  overflow: hidden;
  padding: 30px 22px 28px;
  border-radius: 34px;
  background: linear-gradient(140deg, var(--indigo) 0%, #3b72b3 62%, var(--teal) 125%);
  color: #fff;
  text-align: center;
  box-shadow: 0 28px 44px -26px var(--indigo);
}

.address-card .s1 { bottom: -18px; left: -6px; width: 72px; height: 132px; color: #fff; opacity: .22; transform: rotate(16deg); }
.address-card .s2 { top: -20px; right: -4px; width: 64px; height: 117px; color: #fff; opacity: .2; transform: rotate(160deg); }

.pin {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff2b;
}

.pin svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.address {
  position: relative;
  margin: 0;
  text-wrap: balance;
  font-size: 14px;
  color: #ffffffee;
}

.map-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--indigo);
  font-size: 13.5px;
  font-weight: bold;
  text-decoration: none;
  transition: transform .2s ease;
}

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

.map-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.map-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ---------- فوتر ---------- */
footer {
  padding: 44px 0 40px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

footer img {
  display: block;
  width: 40px;
  height: auto;
  margin: 0 auto 8px;
}

footer p { margin: 0; text-wrap: balance; }

.trust { margin-top: 4px; font-size: 11px; }


/* ---------- واکنش‌گرا ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
}

@media (min-width: 768px) {
  .hero { padding-top: 56px; }
  h1 { font-size: 38px; }
  .donate { --card-w: 232px; --card-h: 172px; }
  .tab-title { font-size: 18px; }
  .tab-desc { font-size: 13px; }
  .qr { width: 210px; height: 210px; }
  .sec-title { font-size: 25px; }
  .hero .b1 { right: calc(50% - 480px); }
  .hero .b2 { left: calc(50% - 520px); }
  .hero .b3 { right: calc(50% - 430px); }
  .hero .s1 { left: calc(50% - 360px); }
  .hero .s2 { right: calc(50% - 360px); }
}

@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .donate { --card-w: 160px; --card-h: 150px; }
  h1 { font-size: 28px; }
  .tab-title { font-size: 16px; }
  .qr { width: 164px; height: 164px; }
  .bank-logo { width: 42px; height: 42px; }
  .bank-number { font-size: 13px; }
  .soc-icon { width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .blob { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tab, .panel, .dot { transition: none; }
}
