@font-face {
  font-family: IranNastaliq;
  src: url("../fonts/IranNastaliq-fa.woff2") format("woff2"), url("../fonts/IranNastaliq.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
  font-display: swap;
}

.pk-desk {
  display: none;
}

@media (min-width: 1025px) {
  .pk-footer {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 80px;
    padding: 0 !important;
    background: #4f0f0e !important;
    color: #fff;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  .pk-footer::before,
  .pk-footer::after,
  .home .pk-footer::before {
    content: none !important;
    display: none !important;
  }

  .pk-footer-legacy {
    display: none !important;
  }

  .pk-desk {
    display: block !important;
    position: relative;
    background: #4f0f0e;
    color: #fff;
    direction: rtl;
    font-family: Vazirmatn, sans-serif;
  }
}

.pk-desk,
.pk-desk * {
  box-sizing: border-box;
}

.pk-desk img {
  max-width: none;
}

.pkd-scallop {
  position: absolute;
  top: -79px;
  left: 50%;
  width: 100.5%;
  height: 80px;
  transform: translateX(-50%) scaleY(-1);
  pointer-events: none;
}

.pkd-logo-link {
  position: absolute;
  z-index: 3;
  top: -8px;
  left: 50%;
  width: 107px;
  height: 125px;
  transform: translateX(-50%);
  line-height: 0;
}

.pkd-logo {
  display: block;
  width: 107px;
  height: 125px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.pkd-floral {
  position: absolute;
  z-index: 0;
  top: 0;
  width: 357px;
  height: 238px;
  overflow: hidden;
  pointer-events: none;
}

.pkd-floral img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
}

.pkd-floral-right { right: 0; }
.pkd-floral-left { left: 0; transform: scaleX(-1); }

.pkd-soldier {
  position: absolute;
  z-index: 1;
  left: 28px;
  top: 268px;
  width: 72px;
  height: 280px;
  transform: scaleX(-1);
  pointer-events: none;
}

.pkd-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 315px 202px 180px minmax(260px, 380px);
  justify-content: center;
  column-gap: 56px;
  align-items: start;
  padding: 56px 72px 0 200px;
}

.pkd-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pkd-title {
  margin: 0 0 18px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.pkd-arch {
  position: relative;
  width: 189px;
  height: 460px;
  margin-right: 0;
}

.pkd-arch-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pkd-arch-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pkd-nastaliq {
  position: absolute;
  z-index: 1;
  top: 48px;
  left: 50%;
  width: 250px;
  margin: 0;
  transform: translateX(-50%);
  color: #fff;
  font-family: IranNastaliq, serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.9;
  text-align: center;
}

.pkd-arch-photo {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  width: calc(100% - 16px);
  height: 150px;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.55;
  pointer-events: none;
}

.pkd-heading {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 500;
  text-align: right;
}

.pkd-heading-gold {
  margin-top: -8px;
  margin-bottom: 16px;
  color: #a98355;
  font-size: 32px;
}

.pkd-links,
.pkd-contact {
  padding-top: 108px;
}

.pkd-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.pkd-links a {
  color: #fff;
  font-size: 18px;
  line-height: 28px;
  text-align: right;
  text-decoration: none;
}

.pkd-links a + a { margin-top: 8px; }

.pkd-contact { text-align: right; }

.pkd-copy {
  margin: 0 0 18px;
  max-width: 403px;
  font-size: 18px;
  line-height: 1.75;
}

.pkd-news { margin-top: 8px; }

.pkd-news label {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.pkd-news-row {
  position: relative;
  width: 336px;
  max-width: 100%;
  height: 36px;
}

.pkd-news-row input {
  width: 100%;
  height: 36px;
  padding: 0 16px 0 78px;
  border: 2px solid #b57e2b;
  border-radius: 18px;
  background: #f5ecd1;
  color: #4f0f0e;
  font: 12px/36px Vazirmatn, sans-serif;
  text-align: right;
}

.pkd-news-row input::placeholder { color: #a3a3a3; }

.pkd-news-row button {
  position: absolute;
  top: 0;
  left: 0;
  width: 69px;
  height: 36px;
  border: 2px solid #634e35;
  border-radius: 59px;
  background: #a98355;
  /* White on this gold was 3.5:1; brand maroon reaches 4.8:1 (WCAG AA). */
  color: #4b0d08;
  font: 700 15px/1 Vazirmatn, sans-serif;
  cursor: pointer;
}

.pkd-social {
  position: relative;
  z-index: 2;
  display: flex;
  direction: ltr;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  list-style: none;
  padding: 0;
}

.pkd-rule {
  width: min(493px, 22vw);
  height: 3px;
  background: #a98355;
}

.pkd-social a {
  position: relative;
  display: grid;
  width: 68px;
  height: 64px;
  place-items: center;
}

.pkd-social a i {
  position: absolute;
  inset: 0;
  background: #a98355;
  -webkit-mask: url("../img/desk-footer/social-mask.png") center / 100% 100% no-repeat;
  mask: url("../img/desk-footer/social-mask.png") center / 100% 100% no-repeat;
}

.pkd-social a img {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.pkd-ornament {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  height: 248px;
  margin-top: 10px;
  pointer-events: none;
}

.pkd-flowers {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  align-self: flex-end;
  min-width: 0;
  height: 52px;
  margin-bottom: 58px;
  overflow: hidden;
}

.pkd-flowers-left { justify-content: flex-end; }
.pkd-flowers-right { justify-content: flex-start; }

.pkd-flowers b,
.pkd-flowers s {
  display: block;
  flex: none;
}

.pkd-flowers b {
  width: 46px;
  height: 46px;
  background: #a98355;
  -webkit-mask: url("../img/desk-footer/flower-b.png") center / contain no-repeat;
  mask: url("../img/desk-footer/flower-b.png") center / contain no-repeat;
}

.pkd-flowers b.cream {
  background: #eae1d8;
  -webkit-mask-image: url("../img/desk-footer/flower-a.png");
  mask-image: url("../img/desk-footer/flower-a.png");
}

.pkd-flowers s {
  width: 12px;
  height: 52px;
  background: url("../img/desk-footer/flower-join-b.svg") center / contain no-repeat;
}

.pkd-pillar,
.pkd-ruins {
  position: relative;
  z-index: 2;
  flex: none;
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: normal;
  opacity: 0.9;
}

.pkd-pillar {
  width: 112px;
  height: 168px;
  margin-bottom: 0;
}

.pkd-pillar-flip { transform: scaleX(-1); }

.pkd-ruins {
  width: 390px;
  height: 248px;
}

@media (max-width: 1200px) {
  .pkd-main {
    grid-template-columns: 280px 180px 160px minmax(220px, 1fr);
    column-gap: 24px;
    padding-inline: 24px;
    padding-left: 160px;
  }

  .pkd-title { font-size: 32px; }
  /* Keep the relief's 1:4 proportion when it narrows. */
  .pkd-soldier { left: 16px; width: 64px; height: 256px; }
}

/* Phone and tablet footer. The wide desktop footer (.pk-desk) needs 1025px+; below that its
   columns, arch art and soldier collided, so tablets use this stacked layout too. */
.pk-mfoot,
.pk-mfoot-floral { display: none; }

@media (max-width: 1024px) {
  .pk-footer {
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    background: #481411 !important;
    border-radius: 24px 24px 0 0 !important;
    overflow: hidden;
  }

  .pk-footer::before,
  .pk-footer::after,
  .home .pk-footer::before {
    content: none !important;
    display: none !important;
  }

  .pk-footer-legacy,
  .pk-desk,
  .pk-preview-footer {
    display: none !important;
  }

  .pk-footer { position: relative; }

  .pk-footer > .pk-mfoot-floral {
    display: block !important;
    position: absolute;
    z-index: 1;
    top: 0;
    width: min(42vw, 240px);
    aspect-ratio: 1;
    pointer-events: none;
  }

  .pk-mfoot-floral img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
  }

  .pk-mfoot-floral--right { right: 0; }
  .pk-mfoot-floral--left { left: 0; transform: scaleX(-1); }

  .pk-mfoot,
  .pk-mobile-preview .pk-footer > .pk-mfoot {
    display: block !important;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    padding: 32px 24px 0;
    color: #f4e8d8;
    direction: rtl;
    font-family: Vazirmatn, Tahoma, sans-serif;
  }

  .pk-mfoot,
  .pk-mfoot * { box-sizing: border-box; }

  .pk-mfoot__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 70px;
  }

  .pk-mfoot__brand img {
    width: 60px;
    height: 70px;
    object-fit: contain;
    object-position: center bottom;
    flex: 0 0 auto;
  }

  .pk-mfoot__brand p {
    margin: 0;
    flex: 1;
    text-align: right;
    font-size: 28px;
    font-weight: 400;
    line-height: 42px;
  }

  .pk-mfoot__story {
    margin: 24px 0 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;
    text-align: right;
  }

  .pk-mfoot__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    margin-top: 24px;
  }

  .pk-mfoot__col h2 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
    text-align: right;
  }

  .pk-mfoot__gold { color: #a98355; font-weight: 700; }

  /* Long labels wrap inside their column instead of running into the neighbouring one. */
  .pk-mfoot__col a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 6px;
    box-sizing: border-box;
    color: #f4e8d8;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
    text-decoration: none;
  }

  .pk-mfoot__contact { margin-top: 24px; text-align: right; }

  .pk-mfoot__contact h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
  }

  .pk-mfoot__addr,
  .pk-mfoot__phones {
    margin: 12px 0 0;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
  }

  .pk-mfoot__phones a { color: inherit; text-decoration: none; }

  .pk-mfoot__social {
    display: flex;
    direction: ltr;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
  }

  .pk-mfoot__social a { display: block; width: 52px; height: 52px; }

  .pk-mfoot__social img {
    width: 52px;
    height: 52px;
    max-width: none;
    display: block;
  }

  .pk-mfoot__ruins {
    height: 169px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .pk-mfoot__ruins img {
    width: 72%;
    height: 150px;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
  }
}

@media (max-width: 360px) {
  .pk-mfoot__col a { font-size: 13px; }
  .pk-mfoot__social { gap: 12px; }
}

/* Footer links: bigger hit area, same visual spacing. */
.pkd-links a, .pk-footer a { padding: 8px; margin: -8px; }
.pkd-links a { display: inline-block; }

/* Keep each phone number as one left-to-right unit inside the Persian sentence. */
.pk-mfoot__phones a { display: inline-block; direction: ltr; unicode-bidi: isolate; }

/* Newsletter signup in the phone/tablet footer: field and button side by side, never overlapping. */
.pk-mfoot__news { margin-top: 28px; }
.pk-mfoot__news label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 500; line-height: 25px; }
.pk-mfoot__news-row { display: flex; gap: 8px; }
.pk-mfoot__news-row input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px; border: 1.5px solid #b57e2b; border-radius: 24px; background: #f5ecd1; color: #4f0f0e; font: 14px/48px Vazirmatn, Tahoma, sans-serif; text-align: right; }
.pk-mfoot__news-row input::placeholder { color: #7a6a5a; }
.pk-mfoot__news-row input:focus-visible { outline: 2px solid #bd934d; outline-offset: 2px; }
.pk-mfoot__news-row button { flex: 0 0 auto; min-width: 88px; height: 48px; padding: 0 20px; border: 1.5px solid #634e35; border-radius: 24px; background: #a98355; color: #4b0d08; font: 700 16px/1 Vazirmatn, Tahoma, sans-serif; cursor: pointer; transition: background-color 150ms ease; }
.pk-mfoot__news-row button:hover { background: #bd934d; }
.pk-mfoot__news-row button:focus-visible { outline: 2px solid #f4e8d8; outline-offset: 2px; }
@media (max-width: 239px) {
	.pk-mfoot__news-row { flex-direction: column; }
	.pk-mfoot__news-row button { width: 100%; min-width: 0; }
}
/* Tablets: keep the stacked footer at a readable width. */
@media (min-width: 768px) and (max-width: 1024px) {
	.pk-footer > .pk-mfoot { max-width: 720px; margin-inline: auto; padding-top: 48px; }
}

