/* ─────────────────────────────────────────────
   Fonts
───────────────────────────────────────────── */
@font-face {
  font-family: 'iransans-thin';
  src: url('Fonts/IRANSansWebFaNum_Light.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'iransans-medium';
  src: url('Fonts/IRANSansWebFaNum_Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'iransans-bold';
  src: url('Fonts/IRANSansWebFaNum_Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
body { font-family: 'iransans-thin'; }

/* ─────────────────────────────────────────────
   Conversation bubble
───────────────────────────────────────────── */
.wp-conversation-box {
  position: fixed;
  right: 100px;
  bottom: calc(5% + 28px);
  background: #00303A;
  color: #fff;
  padding: 11px 18px;
  border-radius: 20px 20px 4px 20px;
  max-width: 220px;
  text-align: right;
  direction: rtl;
  box-shadow: 0 6px 24px rgba(0,48,58,.45);
  z-index: 100;
  font-family: 'iransans-bold';
  font-size: 14px;
  line-height: 1.5;
  transition: opacity .35s, transform .35s;
}
.wp-conversation-box::after {
  content: '';
  position: absolute;
  bottom: 10px; right: -9px;
  border: 8px solid transparent;
  border-left-color: #00303A;
  border-right: 0;
}
.wp-conversation-typing-cursor {
  display: inline-block;
  width: 2px; height: 15px;
  background: rgba(255,255,255,.75);
  margin-right: 3px;
  vertical-align: middle;
  animation: blink .7s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.wp-conversation-box.hide { opacity: 0; pointer-events: none; transform: translateX(10px); }

/* ─────────────────────────────────────────────
   FAB (floating action button)
───────────────────────────────────────────── */
#wp-contact-us-button {
  width: 68px; height: 68px;
  position: fixed;
  right: 28px; bottom: 5%;
  margin: -68px 0 0 -68px;
  list-style: none; padding: 0; font-size: 200%;
}
.wp-contact-button {
  width: 68px; height: 68px;
  position: fixed;
  right: 28px; bottom: 5%;
  margin: -68px 0 0 -68px;
  border-radius: 50%;
  background: linear-gradient(145deg,#00505f,#00303A);
  box-shadow: 0 4px 20px rgba(0,48,58,.6);
  overflow: hidden; text-decoration: none;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; z-index: -1;
  transition: box-shadow .25s;
}
.wp-contact-button:hover { box-shadow: 0 6px 28px rgba(0,48,58,.8); }

/* Ripple */
.ripple-effect {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.18);
  width: 100%; height: 100%;
  opacity: 0; transform: scale(0);
  animation: ripple 2.4s infinite;
}
.ripple-effect:nth-child(2) { animation-delay: .6s; }
.ripple-effect:nth-child(3) { animation-delay: 1.2s; }
@keyframes ripple { 0%{transform:scale(0);opacity:.5} 100%{transform:scale(2.2);opacity:0} }

.button-glow                  { animation: glow 2s infinite alternate; }
@keyframes glow { 0%{opacity:.88} 100%{opacity:1} }
.bounce-effect                { animation: bounce 1.3s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
@keyframes pulse {
  0%  { transform:scale(1);    box-shadow:0 0 0 0   rgba(0,48,58,.7); }
  70% { transform:scale(1.04); box-shadow:0 0 0 10px rgba(0,48,58,0); }
  100%{ transform:scale(1);    box-shadow:0 0 0 0   rgba(0,48,58,0); }
}
.wp-contact-button-pulse-effect { animation: pulse 2s infinite; }

/* Toggle visibility */
#wp-contact-us-button .wp-contact-button-toggle { list-style:none; margin:0; padding:0; }
#wp-contact-us-button:not(:target) > .wp-contact-button-toggle:first-child > a,
#wp-contact-us-button:target       > .wp-contact-button-toggle:nth-child(2) > a {
  opacity:1; z-index:1;
}

/* Phone icon */
@keyframes smallClockwiseRotate {
  0%{transform:rotate(0deg)} 50%{transform:rotate(14deg)} 100%{transform:rotate(0deg)}
}
.wp-contact-button svg,
#open-menu svg,
.wp-contact-button[href="#0"] svg {
  animation: smallClockwiseRotate 1.6s ease-in-out infinite;
  transform-origin: center;
}

/* Old semi-circle items — hidden */
.wp-contact-button-item { display: none !important; }

/* ─────────────────────────────────────────────
   TEAM PANEL  — vertical scroll-strip
   A tall frosted card that slides up from the
   bottom-right, showing each person in a clean
   horizontal "pill" row.
───────────────────────────────────────────── */
.wp-team-panel {
  position: fixed;
  right: 20px;
  bottom: calc(5% + 82px);
  width: 290px;
  max-height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(0,28,34,.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 48px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07);
  z-index: 200;
  transition: max-height .45s cubic-bezier(.4,0,.2,1),
              opacity     .35s ease,
              transform   .35s ease;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

/* Visible state — triggered by :target on the UL */
#wp-contact-us-button:target ~ .wp-team-panel {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Panel header */
.wp-team-panel__head {
  padding: 16px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 10px;
}
.wp-team-panel__head-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2dcea8;
  box-shadow: 0 0 0 3px rgba(45,206,168,.22);
  flex-shrink: 0;
}
.wp-team-panel__head-label {
  font-family: 'iransans-medium';
  font-size: 12px;
  color: rgba(255,255,255,.55);
  direction: rtl;
  flex: 1;
  text-align: right;
}

/* Scroll container */
.wp-team-panel__list {
  overflow-y: auto;
  max-height: 440px;
  padding: 8px 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.wp-team-panel__list::-webkit-scrollbar { width: 4px; }
.wp-team-panel__list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12); border-radius: 4px;
}

/* Each person row */
.wp-team-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 16px;
  margin: 3px 8px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  direction: rtl;
  transition: background .18s;
  /* pop-in animation */
  opacity: 0;
  transform: translateX(16px);
  animation: rowSlide .38s ease forwards;
}
.wp-team-row:nth-child(1) { animation-delay: .06s; }
.wp-team-row:nth-child(2) { animation-delay: .11s; }
.wp-team-row:nth-child(3) { animation-delay: .16s; }
.wp-team-row:nth-child(4) { animation-delay: .21s; }
.wp-team-row:nth-child(5) { animation-delay: .26s; }
.wp-team-row:nth-child(6) { animation-delay: .31s; }
.wp-team-row:nth-child(7) { animation-delay: .36s; }

@keyframes rowSlide { to { opacity:1; transform:translateX(0); } }

.wp-team-row:hover { background: rgba(255,255,255,.07); }
.wp-team-row:active { background: rgba(255,255,255,.11); }

/* Avatar */
.wp-team-avatar {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(45,206,168,.45);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.wp-team-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Text */
.wp-team-info { flex: 1; min-width: 0; }
.wp-team-name {
  font-family: 'iransans-bold';
  font-size: 13.5px;
  color: #f0f8f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.wp-team-dept {
  font-family: 'iransans-thin';
  font-size: 11px;
  color: rgba(255,255,255,.42);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chevron */
.wp-team-chevron {
  flex-shrink: 0;
  width: 18px; height: 18px;
  opacity: .28;
  transition: opacity .18s, transform .18s;
}
.wp-team-row:hover .wp-team-chevron { opacity: .65; transform: translateX(-3px); }

/* Divider between rows */
.wp-team-row + .wp-team-row {
  border-top: 1px solid rgba(255,255,255,.04);
  margin-top: 0;
}

/* ─────────────────────────────────────────────
   Modal
───────────────────────────────────────────── */
.wp-contact-button-modal {
  display: none;
  position: fixed; z-index: 1000;
  inset: 0;
  overflow: auto;
  background: rgba(0,0,0,.45);
  align-items: center; justify-content: center;
}
.wp-contact-button-modal-content {
  background: #fefefe;
  border-radius: 20px;
  width: 30%;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.wp-contact-button-modal-close {
  position: absolute; top: 8px; right: 20px;
  color: #aaa; float: right;
  font-size: 28px; font-weight: bold; cursor: pointer;
}
.wp-contact-button-modal-close:hover { color: #333; }
.wp-contact-button-modal-content .modal-title,
.wp-contact-button-modal-content h4 {
  margin-block-start: unset !important;
  margin-block-end: 20px !important;
}
.wp-contact-button-modal-content .modal-title { font-size: 22px; }
.wp-contact-button-modal-content h4 { font: 22px 'iransans-bold'; }
.modal-image { width:150px; height:150px; margin-top:-75px; border-radius:50%; }
.modal-social-media {
  width: 35%;
  display: flex; justify-content: space-between; align-items: center;
  margin: 30px auto 25px;
}
.social-icon img { width:35px; height:35px; }

/* ─────────────────────────────────────────────
   Responsive
───────────────────────────────────────────── */
@media (max-width: 1400px) {
  .wp-contact-button-modal-content { width: 40%; }
}
@media (max-width: 768px) {
  .wp-contact-button-modal-content { width: 80%; }
  .wp-team-panel { width: 270px; right: 14px; }
  .wp-conversation-box { right: 96px; }
}
@media (max-width: 420px) {
  .wp-contact-button { width: 60px; height: 60px; }
  .wp-contact-button svg { width: 28px; height: 28px; }
  .wp-contact-button-modal-content { width: 92%; }
  .modal-social-media { width: 58%; }
  .modal-image { width: 130px; height: 130px; }
  .wp-conversation-box { font-size: 12px; right: 88px; bottom: calc(5% + 20px); }
  .wp-team-panel {
    width: calc(100vw - 28px);
    right: 14px;
    bottom: calc(5% + 74px);
  }
}
