/*
 * PowerEn shared footer — Phase 12.1 full redesign.
 * The WordPress footer menu and the six approved social destinations remain
 * dynamic/unchanged; this layer owns the modern markup presentation only.
 */

body.poweren-modern-footer footer.pw-site-footer,
body.poweren-modern-footer footer.pw-site-footer * {
  box-sizing: border-box;
}

body.poweren-modern-footer footer.pw-site-footer {
  --pw-footer-bg: #061d2a;
  --pw-footer-panel: rgba(255, 255, 255, .045);
  --pw-footer-panel-hover: rgba(255, 255, 255, .075);
  --pw-footer-line: rgba(174, 219, 233, .15);
  --pw-footer-line-strong: rgba(174, 219, 233, .24);
  --pw-footer-heading: #f8fcfd;
  --pw-footer-text: #d6e6eb;
  --pw-footer-muted: #91acb7;
  --pw-footer-accent: #23c4df;
  --pw-footer-accent-soft: #79e2f1;
  background:
    radial-gradient(circle at 84% 10%, rgba(35, 196, 223, .16), transparent 28%),
    linear-gradient(rgba(121, 226, 241, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 226, 241, .022) 1px, transparent 1px),
    linear-gradient(145deg, #082636 0%, var(--pw-footer-bg) 54%, #041722 100%);
  background-size: auto, 62px 62px, 62px 62px, auto;
  border: 0;
  border-top: 1px solid rgba(35, 196, 223, .18);
  clear: both;
  color: var(--pw-footer-text);
  direction: rtl;
  font-family: IRANSansWeb, IRANSans, Tahoma, sans-serif;
  margin: 0;
  overflow: hidden;
  padding: 42px 0 24px;
  position: relative;
  text-align: right;
  width: 100%;
}

body.poweren-modern-footer footer.pw-site-footer::before {
  background: rgba(35, 196, 223, .08);
  border: 0;
  border-radius: 50%;
  content: '';
  filter: blur(70px);
  height: 360px;
  inset: -150px auto auto -90px;
  pointer-events: none;
  position: absolute;
  width: 360px;
}

body.poweren-modern-footer footer.pw-site-footer::after {
  background: linear-gradient(90deg, transparent, rgba(35, 196, 223, .7), transparent);
  content: '';
  height: 1px;
  inset: 0 12% auto;
  pointer-events: none;
  position: absolute;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__inner {
  display: block;
  margin-inline: auto;
  max-width: 1280px;
  padding-inline: 24px;
  position: relative;
  width: 100%;
  z-index: 1;
}

body.poweren-modern-footer footer.pw-site-footer a {
  text-decoration: none;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__grid {
  align-items: start;
  backdrop-filter: blur(16px);
  background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  border: 1px solid rgba(174, 219, 233, .14);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 8, 13, .24), inset 0 1px 0 rgba(255, 255, 255, .035);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(320px, 1.14fr) minmax(230px, .78fr) minmax(300px, 1fr);
  padding: 12px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__brand,
body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__navigation,
body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__socials {
  min-width: 0;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__brand,
body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__navigation,
body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__socials {
  background: rgba(3, 23, 34, .52);
  border: 1px solid rgba(174, 219, 233, .12);
  border-radius: 24px;
  min-height: 100%;
  padding: 25px;
  position: relative;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__brand {
  background:
    radial-gradient(circle at 9% 88%, rgba(35, 196, 223, .13), transparent 34%),
    linear-gradient(145deg, rgba(9, 53, 70, .9), rgba(4, 29, 42, .74));
  overflow: hidden;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__brand::after {
  color: rgba(183, 231, 242, .032);
  content: 'POWEREN';
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: 64px;
  font-weight: 900;
  inset: auto auto -14px 16px;
  letter-spacing: 4px;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__brand > * {
  position: relative;
  z-index: 1;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__logo {
  align-items: center;
  color: var(--pw-footer-heading);
  display: inline-flex;
  gap: 13px;
  margin-bottom: 20px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__logo > img {
  background: #26343b;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 19px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .24);
  display: block;
  height: 68px;
  object-fit: cover;
  width: 66px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__logo-copy {
  direction: ltr;
  display: grid;
  gap: 2px;
  text-align: left;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__logo-copy strong {
  color: var(--pw-footer-heading);
  font-family: Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2.3px;
  line-height: 1.1;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__logo-copy small {
  color: var(--pw-footer-muted);
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.65px;
  line-height: 1.4;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__eyebrow {
  align-items: center;
  color: var(--pw-footer-accent-soft);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  letter-spacing: -.1px;
  line-height: 1.8;
  margin-bottom: 9px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__eyebrow > span {
  background: var(--pw-footer-accent);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(35, 196, 223, .09);
  height: 7px;
  width: 7px;
}

body.poweren-modern-footer footer.pw-site-footer h2 {
  color: var(--pw-footer-heading);
  font-family: IRANSansWeb, IRANSans, Tahoma, sans-serif;
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 900;
  letter-spacing: -.7px;
  line-height: 1.55;
  margin: 0 0 10px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__intro {
  color: var(--pw-footer-muted);
  font-size: 13.5px;
  line-height: 2;
  margin: 0;
  max-width: 490px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  margin-top: 18px;
  max-width: 500px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts > a {
  align-items: center;
  background: var(--pw-footer-panel);
  border: 1px solid var(--pw-footer-line);
  border-radius: 14px;
  color: var(--pw-footer-text);
  display: flex;
  gap: 10px;
  min-height: 62px;
  padding: 9px 11px;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts > a:hover {
  background: var(--pw-footer-panel-hover);
  border-color: rgba(35, 196, 223, .42);
  transform: translateY(-2px);
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts > .pw-site-footer__contact--primary {
  background: linear-gradient(135deg, #72e4f2 0%, #27c7e1 100%);
  border-color: transparent;
  box-shadow: 0 13px 28px rgba(18, 179, 205, .16);
  color: #052533;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts > .pw-site-footer__contact--primary:hover {
  background: linear-gradient(135deg, #8cebf5 0%, #38d1e8 100%);
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(18, 179, 205, .23);
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contact-icon {
  align-items: center;
  background: rgba(35, 196, 223, .11);
  border: 1px solid rgba(35, 196, 223, .18);
  border-radius: 11px;
  color: var(--pw-footer-accent-soft);
  display: inline-flex;
  flex: 0 0 38px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  height: 38px;
  justify-content: center;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contact-icon svg {
  display: block;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contact--primary .pw-site-footer__contact-icon {
  background: rgba(5, 37, 51, .1);
  border-color: rgba(5, 37, 51, .11);
  color: #063345;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts a > span:last-child {
  display: grid;
  min-width: 0;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts small {
  color: var(--pw-footer-muted);
  font-size: 9.5px;
  line-height: 1.55;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts bdi,
body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts strong {
  color: var(--pw-footer-heading);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contact--primary small {
  color: rgba(5, 37, 51, .68);
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contact--primary strong {
  color: #052533;
}

body.poweren-modern-footer footer.pw-site-footer #poweren-social-messengers {
  scroll-margin-top: 96px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__navigation {
  background: linear-gradient(180deg, rgba(8, 39, 54, .72), rgba(3, 23, 34, .58));
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__section-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 21px;
  padding-inline-start: 12px;
  position: relative;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__section-heading::before {
  background: linear-gradient(180deg, var(--pw-footer-accent), rgba(35, 196, 223, .18));
  border-radius: 999px;
  content: '';
  inset: 6px 0 6px auto;
  position: absolute;
  width: 2px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__section-heading > span {
  color: var(--pw-footer-heading);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.8;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__section-heading > small {
  color: var(--pw-footer-muted);
  font-size: 10.5px;
  line-height: 1.8;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__menu,
body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__menu {
  display: grid;
  gap: 5px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__menu li {
  display: block;
  margin: 0;
  padding: 0;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__menu a {
  align-items: center;
  border-radius: 11px;
  color: var(--pw-footer-text);
  display: flex;
  font-size: 12.5px;
  font-weight: 600;
  gap: 10px;
  line-height: 1.75;
  min-height: 44px;
  padding: 7px 9px;
  transition: background-color .2s ease, color .2s ease, padding-inline-start .2s ease;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__menu a::before {
  background: rgba(35, 196, 223, .28);
  border-radius: 999px;
  content: '';
  flex: 0 0 5px;
  height: 5px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__menu a:hover {
  background: rgba(121, 226, 241, .065);
  color: var(--pw-footer-heading);
  padding-inline-start: 13px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__menu a:hover::before {
  background: var(--pw-footer-accent);
  box-shadow: 0 0 0 4px rgba(35, 196, 223, .09);
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-list li {
  margin: 0;
  min-width: 0;
  padding: 0;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-list a {
  align-items: center;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--pw-footer-line);
  border-radius: 13px;
  color: var(--pw-footer-text);
  display: grid;
  font-size: 11.5px;
  font-weight: 700;
  gap: 8px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  line-height: 1.7;
  min-height: 54px;
  padding: 7px;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-list a:hover {
  background: rgba(121, 226, 241, .075);
  border-color: rgba(35, 196, 223, .38);
  color: var(--pw-footer-heading);
  transform: translateY(-2px);
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-icon {
  align-items: center;
  background: rgba(255, 255, 255, .055);
  border-radius: 10px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-icon img {
  display: block;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-icon--github img {
  filter: brightness(0) invert(1);
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-icon--instagram .instagramicon::before {
  font-size: 21px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__arrow {
  color: #597885;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__signature {
  align-items: center;
  border-top: 1px solid var(--pw-footer-line);
  color: #65818c;
  direction: ltr;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  gap: 13px;
  justify-content: center;
  letter-spacing: 1.8px;
  margin-top: 24px;
  padding-top: 22px;
}

body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__signature i {
  background: var(--pw-footer-accent);
  border-radius: 999px;
  height: 4px;
  width: 4px;
}

body.poweren-modern-footer footer.pw-site-footer a:focus-visible {
  border-radius: 8px;
  outline: 3px solid var(--pw-footer-accent-soft);
  outline-offset: 3px;
}

body.poweren-modern-footer #bottom-footer {
  background: #04141e;
  border: 0;
  border-top: 1px solid rgba(174, 219, 233, .11);
  clear: both;
  float: none;
  padding: 0;
  width: 100%;
}

body.poweren-modern-footer #bottom-footer .container {
  margin-inline: auto;
  max-width: 1280px;
  padding-inline: 24px;
  width: 100%;
}

body.poweren-modern-footer #bottom-footer .pw-site-footer__copyright {
  align-items: center;
  color: #78919b;
  display: flex;
  font-family: IRANSansWeb, IRANSans, Tahoma, sans-serif;
  font-size: 10.5px;
  justify-content: space-between;
  line-height: 1.9;
  margin: 0;
  padding: 14px 0;
}

@media (max-width: 1080px) {
  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__grid {
    gap: 12px;
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, .95fr);
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__brand {
    grid-column: 1 / -1;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__intro,
  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts {
    max-width: 650px;
  }

}

@media (max-width: 720px) {
  body.poweren-modern-footer footer.pw-site-footer {
    padding: 26px 0 20px;
  }

  body.poweren-modern-footer footer.pw-site-footer::before {
    height: 310px;
    inset: -175px auto auto -125px;
    width: 310px;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__inner {
    padding-inline: 12px;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__grid {
    border-radius: 27px;
    gap: 9px;
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__brand {
    grid-column: auto;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__brand,
  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__navigation,
  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__socials {
    border-radius: 20px;
    padding: 20px;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__logo {
    margin-bottom: 21px;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__logo > img {
    border-radius: 16px;
    height: 61px;
    width: 59px;
  }

  body.poweren-modern-footer footer.pw-site-footer h2 {
    font-size: 24px;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__intro {
    font-size: 12.5px;
    line-height: 2;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__navigation {
    border: 1px solid rgba(174, 219, 233, .12);
    min-height: auto;
    padding: 20px;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__menu {
    gap: 5px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__signature {
    margin-top: 34px;
  }

  body.poweren-modern-footer #bottom-footer .container {
    padding-inline: 20px;
  }

  body.poweren-modern-footer #bottom-footer .pw-site-footer__copyright {
    align-items: center;
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__brand,
  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__navigation,
  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__socials {
    padding: 18px;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts {
    grid-template-columns: minmax(0, 1fr);
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__menu {
    grid-template-columns: minmax(0, 1fr);
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-list {
    gap: 7px;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-list a {
    font-size: 10.5px;
    gap: 6px;
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 50px;
    padding: 6px;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-icon {
    height: 32px;
    width: 32px;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__arrow {
    display: none;
  }

  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__signature {
    font-size: 7px;
    gap: 9px;
    letter-spacing: 1.2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__contacts > a,
  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__menu a,
  body.poweren-modern-footer footer.pw-site-footer .pw-site-footer__social-list a {
    transition: none;
  }
}
