/*
 * Phase 36 — Global Behin Footer
 *
 * Authoritative presentation for the existing Elementor-editable WoodMart
 * HTML Block 187. Content, widgets, menus, and global routing stay native.
 */

.wd-footer:has(.project-footer) {
  position: relative;
  overflow: hidden;
  border-top: 3px solid #c99a45;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 211, 132, 0.1), transparent 28%),
    linear-gradient(135deg, #a60c18 0%, #970b16 56%, #890912 100%);
  color: #fff8ed;
}

.wd-footer:has(.project-footer)::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/wp-content/uploads/2026/09/saharkhiz-header-story-pattern.webp") center / cover no-repeat;
  content: "";
  opacity: 0.075;
  pointer-events: none;
}

.wd-footer:has(.project-footer) > .container.main-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  padding: 0;
}

.project-footer,
.project-footer__brand-band,
.project-footer__intro,
.project-footer__main,
.project-footer__contact,
.project-footer__links,
.project-footer__link-column {
  --gap: 0px;
  gap: 0;
}

.project-footer {
  display: grid !important;
  grid-template-areas:
    "brand intro"
    "main main";
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 2.28fr);
  column-gap: 38px;
  row-gap: 24px;
  width: min(1329px, calc(100% - 96px));
  max-width: 1329px;
  margin-inline: auto;
  padding: 34px 0 30px;
  overflow: visible;
  background: transparent !important;
}

.project-footer__brand-band {
  grid-area: brand;
  display: flex !important;
  position: relative;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 110px;
  height: 110px;
  margin: 0;
  padding: 12px 22px;
  overflow: hidden;
  border: 1px solid rgba(231, 186, 105, 0.48);
  border-radius: 20px;
  background: rgba(255, 248, 237, 0.97) !important;
  box-shadow: 0 10px 30px rgba(85, 3, 10, 0.14);
}

.project-footer__brand-band::after {
  position: absolute;
  inset-inline: 24px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #d2a34d, transparent);
  content: "";
}

.project-footer__brand-mark {
  position: static;
  width: auto !important;
  height: 82px;
  max-width: 100%;
  transform: none;
}

.project-footer__brand-mark img {
  display: block;
  width: auto !important;
  max-width: 100%;
  height: 82px !important;
  max-height: 82px;
  margin-inline: auto;
  object-fit: contain;
}

.project-footer__intro {
  grid-area: intro;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-height: 110px;
  margin: 0;
  padding: 8px 4px 8px 30px;
  text-align: right;
}

.project-footer__brand-description,
.project-footer__brand-description p {
  margin: 0;
  color: rgba(255, 248, 237, 0.88) !important;
  font-size: 14.5px !important;
  line-height: 2 !important;
}

.project-footer__brand-description {
  width: 100%;
  max-width: 880px;
  text-align: right;
}

.project-footer__main {
  grid-area: main;
  display: grid !important;
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.7fr);
  align-items: stretch;
  column-gap: 32px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 241, 217, 0.18);
}

.project-footer__contact {
  display: grid !important;
  grid-template-columns: 1fr;
  align-content: start;
  row-gap: 12px;
  width: auto;
  min-width: 0;
  padding: 0;
}

.project-footer__contact-item {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 241, 217, 0.16);
  border-radius: 14px;
  background: rgba(88, 0, 7, 0.16);
}

.project-footer__contact-item .elementor-icon-box-wrapper {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-align: right;
}

.project-footer__contact-item a.elementor-icon-box-wrapper {
  text-decoration: none;
}

.project-footer__contact-item .elementor-icon-box-icon {
  flex: 0 0 38px;
  margin: 0;
}

.project-footer__contact-item .elementor-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid rgba(220, 175, 91, 0.42);
  border-radius: 11px;
  background: rgba(255, 248, 237, 0.1);
  color: #f0c878 !important;
  font-size: 20px;
}

.project-footer__contact-item .elementor-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor !important;
}

.project-footer__contact-item .elementor-icon-box-title,
.project-footer__contact-item .elementor-icon-box-title a {
  margin: 0 0 2px;
  color: #fff9ef !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.project-footer__contact-item .elementor-icon-box-description {
  margin: 0;
  color: rgba(255, 244, 226, 0.76) !important;
  font-size: 12.5px;
  line-height: 1.7;
}

.project-footer__links {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(145px, 0.82fr) minmax(145px, 0.82fr);
  align-items: stretch;
  column-gap: 16px;
  width: auto;
  min-width: 0;
  padding: 0;
}

.project-footer__link-column {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  width: auto;
  min-width: 0;
  min-height: 154px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 241, 217, 0.14);
  border-radius: 16px;
  background: rgba(88, 0, 7, 0.12);
}

.project-footer__menu,
.project-footer__column-heading {
  width: 100%;
}

.project-footer__menu h5,
.project-footer__column-heading .elementor-heading-title {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 9px;
  color: #ffe4af !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.project-footer__menu h5::after,
.project-footer__column-heading .elementor-heading-title::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 1px;
  background: #d5a64d;
  content: "";
}

.project-footer__menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-footer__menu li {
  position: relative;
  margin: 0 0 7px;
  padding-right: 12px;
}

.project-footer__menu li::before {
  position: absolute;
  top: 0.78em;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d6a74f;
  content: "";
  transform: translateY(-50%);
}

.project-footer__menu a {
  color: rgba(255, 248, 237, 0.84) !important;
  font-size: 13.5px;
  line-height: 1.8;
  text-decoration: none;
  transition: color 220ms ease;
}

.project-footer__menu a:hover {
  color: #fff !important;
}

.project-footer__social-icons {
  width: 100%;
  margin: 0;
}

.project-footer__social-icons .elementor-social-icons-wrapper {
  display: grid;
  grid-template-columns: 42px;
  justify-content: start;
  gap: 8px;
}

.project-footer__social-icons .elementor-social-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 235, 199, 0.5);
  border-radius: 12px;
  background: rgba(255, 248, 237, 0.96) !important;
  color: #a70c18 !important;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(68, 0, 5, 0.12);
  transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.project-footer__social-icons .elementor-social-icon svg {
  fill: currentColor !important;
}

.project-footer__social-icons .elementor-social-icon:hover {
  background: #f0c878 !important;
  color: #820812 !important;
  transform: translateY(-1px);
}

.project-footer__social .elementor-widget-image {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 8px;
  border: 1px solid rgba(255, 235, 199, 0.34);
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.96);
  text-align: center;
}

.project-footer__social .elementor-widget-image img {
  display: block;
  width: 88px !important;
  max-width: 100%;
  height: auto !important;
  margin-inline: auto;
}

.project-footer a:focus-visible,
.wd-footer:has(.project-footer) .wd-copyrights a:focus-visible {
  outline: 2px solid #f3cf87;
  outline-offset: 3px;
  border-radius: 4px;
}

.wd-footer:has(.project-footer) .wd-copyrights {
  position: relative;
  z-index: 1;
  min-height: 52px;
  padding-block: 0;
  border: 0;
  background: #78070f;
  color: rgba(255, 247, 233, 0.82);
}

.wd-footer:has(.project-footer) .wd-copyrights .container {
  width: min(1329px, calc(100% - 96px));
  max-width: 1329px;
  min-height: 52px;
  padding-inline: 0;
  align-items: center;
  font-size: 12px;
  line-height: 1.7;
}

.wd-footer:has(.project-footer) .wd-copyrights .wd-col-end {
  padding-left: 40px;
}

@media (max-width: 1100px) {
  .project-footer,
  .wd-footer:has(.project-footer) .wd-copyrights .container {
    width: calc(100% - 64px);
  }

  .project-footer {
    grid-template-columns: minmax(190px, 0.68fr) minmax(0, 2.32fr);
    column-gap: 28px;
  }

  .project-footer__main {
    grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.7fr);
    column-gap: 22px;
  }

  .project-footer__links {
    grid-template-columns: minmax(0, 1.08fr) minmax(125px, 0.82fr) minmax(125px, 0.82fr);
    column-gap: 12px;
  }

  .project-footer__link-column {
    padding-inline: 14px;
  }
}

@media (max-width: 900px) {
  .project-footer {
    grid-template-areas:
      "brand"
      "intro"
      "main";
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
    width: calc(100% - 48px);
    padding: 28px 0 26px;
  }

  .project-footer__brand-band {
    width: min(250px, 100%);
    min-height: 94px;
    height: 94px;
    margin-inline: auto;
  }

  .project-footer__brand-mark {
    height: 66px;
  }

  .project-footer__brand-mark img {
    height: 66px !important;
    max-height: 66px;
  }

  .project-footer__intro {
    justify-content: center;
    min-height: 0;
    padding: 4px 22px;
    text-align: center;
  }

  .project-footer__brand-description {
    max-width: 680px;
    text-align: center;
  }

  .project-footer__main {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 18px;
    padding-top: 22px;
  }

  .project-footer__contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
  }

  .project-footer__links {
    grid-template-columns: minmax(0, 1.12fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr);
  }

  .wd-footer:has(.project-footer) .wd-copyrights .container {
    width: calc(100% - 48px);
  }

  .wd-footer:has(.project-footer) .wd-copyrights,
  .wd-footer:has(.project-footer) .wd-copyrights .container {
    min-height: 96px;
  }

  .wd-footer:has(.project-footer) .wd-copyrights .container {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding-block: 12px;
    text-align: center;
  }

  .wd-footer:has(.project-footer) .wd-copyrights .wd-col-end {
    padding-left: 0;
  }
}

@media (max-width: 599px) {
  .project-footer {
    row-gap: 12px;
    width: calc(100% - 32px);
    padding: 26px 0 22px;
  }

  .project-footer__brand-band {
    width: 206px;
    min-height: 86px;
    height: 86px;
    padding: 10px 18px;
    border-radius: 18px;
  }

  .project-footer__brand-mark {
    height: 58px;
  }

  .project-footer__brand-mark img {
    height: 58px !important;
    max-height: 58px;
  }

  .project-footer__intro {
    padding: 4px 2px;
  }

  .project-footer__brand-description,
  .project-footer__brand-description p {
    font-size: 13px !important;
    line-height: 1.9 !important;
  }

  .project-footer__main {
    row-gap: 16px;
    padding-top: 18px;
  }

  .project-footer__contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
  }

  .project-footer__contact-item {
    min-height: 78px;
    padding: 12px 10px;
  }

  .project-footer__contact-item .elementor-icon-box-wrapper {
    align-items: flex-start;
    gap: 9px;
  }

  .project-footer__contact-item .elementor-icon-box-icon {
    flex-basis: 34px;
  }

  .project-footer__contact-item .elementor-icon {
    width: 34px;
    height: 34px;
    padding: 8px;
  }

  .project-footer__contact-item .elementor-icon svg {
    width: 18px;
    height: 18px;
  }

  .project-footer__contact-item .elementor-icon-box-title,
  .project-footer__contact-item .elementor-icon-box-title a {
    font-size: 12.5px;
  }

  .project-footer__contact-item .elementor-icon-box-description {
    font-size: 11.5px;
    line-height: 1.65;
  }

  .project-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .project-footer__link-column {
    min-height: 142px;
    padding: 15px 14px 14px;
    border-radius: 14px;
  }

  .project-footer__link-column--categories {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .project-footer__link-column--categories .project-footer__menu ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 8px;
  }

  .project-footer__menu h5,
  .project-footer__column-heading .elementor-heading-title {
    margin-bottom: 10px;
    padding-bottom: 8px;
    font-size: 13.5px;
  }

  .project-footer__menu li {
    margin-bottom: 3px;
    padding-right: 9px;
  }

  .project-footer__menu a {
    font-size: 12px;
    line-height: 1.65;
  }

  .project-footer__social-icons .elementor-social-icons-wrapper {
    grid-template-columns: 40px;
  }

  .project-footer__social-icons .elementor-social-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .project-footer__social .elementor-widget-image {
    padding: 7px;
  }

  .project-footer__social .elementor-widget-image img {
    width: 78px !important;
  }

  .wd-footer:has(.project-footer) .wd-copyrights,
  .wd-footer:has(.project-footer) .wd-copyrights .container {
    min-height: 82px;
  }

  .wd-footer:has(.project-footer) .wd-copyrights .container {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: calc(100% - 32px);
    padding-block: 12px;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
  }

  .wd-footer:has(.project-footer) .wd-copyrights .wd-col-end {
    padding-left: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .project-footer__contact-item,
  .project-footer__link-column {
    transition: border-color 220ms ease, background-color 220ms ease;
  }

  .project-footer__contact-item:hover,
  .project-footer__link-column:hover {
    border-color: rgba(237, 199, 127, 0.34);
    background: rgba(88, 0, 7, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-footer__menu a,
  .project-footer__social-icons .elementor-social-icon,
  .project-footer__contact-item,
  .project-footer__link-column {
    transition: none;
  }

  .project-footer__social-icons .elementor-social-icon:hover {
    transform: none;
  }
}
