/*
 * Image Origami shared footer.
 * Loaded after the plugin and page-specific styles on every page.
 */

.io-footer,
.io-footer * {
  box-sizing: border-box;
}

body .io-footer {
  position: relative;
  z-index: 60;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  padding: 72px 6.5vw 0;
  border-top: 1px solid rgba(184, 132, 67, 0.28);
  background:
    radial-gradient(
      circle at 10% 12%,
      rgba(184, 132, 67, 0.10),
      transparent 26%
    ),
    radial-gradient(
      circle at 88% 74%,
      rgba(123, 20, 56, 0.18),
      transparent 31%
    ),
    linear-gradient(
      135deg,
      #302a27 0%,
      #292421 100%
    );
  color: #fff8ee;
  isolation: isolate;
}

.io-footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.io-footer-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.026),
      transparent 42%
    );
}

.io-footer-fold {
  position: absolute;
  width: 240px;
  height: auto;
  fill: rgba(255, 248, 238, 0.022);
  stroke: rgba(184, 132, 67, 0.17);
  stroke-width: 1.2;
}

.io-footer-fold line {
  stroke: rgba(184, 132, 67, 0.13);
}

.io-footer-fold-1 {
  top: 34px;
  left: -46px;
  transform: rotate(-12deg);
}

.io-footer-fold-2 {
  right: -50px;
  bottom: 14px;
  transform: rotate(16deg);
}

.io-footer-dot-grid {
  position: absolute;
  top: 40px;
  right: 20%;
  width: 60px;
  height: 60px;
  opacity: 0.32;
  background-image:
    radial-gradient(
      circle,
      rgba(184, 132, 67, 0.48) 1.2px,
      transparent 1.2px
    );
  background-size: 14px 14px;
}

.io-footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) 0.9fr 1fr;
  gap: clamp(42px, 6vw, 84px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 58px;
}

.io-footer-brand {
  min-width: 0;
}

.io-footer-logo-link {
  display: inline-block;
  width: min(100%, 310px);
  color: inherit;
  text-decoration: none;
}

.io-footer-logo-panel {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 102px;
  padding: 19px 24px 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(184, 132, 67, 0.55);
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(123, 20, 56, 0.07),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #fffaf3 0%,
      #eee0d2 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 34px rgba(9, 7, 6, 0.18);
}

.io-footer-logo-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34px;
  height: 34px;
  border-left: 1px solid rgba(184, 132, 67, 0.34);
  border-bottom: 1px solid rgba(184, 132, 67, 0.26);
  background:
    linear-gradient(
      135deg,
      rgba(184, 132, 67, 0.28),
      rgba(184, 132, 67, 0.03)
    );
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.io-footer-logo-image {
  display: block;
  width: min(100%, 255px);
  height: auto;
  max-height: 57px;
  object-fit: contain;
}

.io-footer-founder {
  display: block;
  margin-top: 8px;
  color: #7b1438;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.io-footer-brand p {
  max-width: 390px;
  margin: 22px 0 0;
  color: rgba(255, 248, 238, 0.70);
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 13.5px;
  line-height: 1.75;
}

.io-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  min-width: 0;
}

body .io-footer .io-footer-links h3,
body .io-footer .io-footer-contact .io-footer-kicker {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
  color: #d5ad7d !important;
  -webkit-text-fill-color: #d5ad7d !important;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.io-footer-links a {
  display: block;
  width: fit-content;
  margin: 0 0 12px;
  color: rgba(255, 248, 238, 0.78);
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.io-footer-links a:hover,
.io-footer-links a:focus-visible {
  color: #fff8ee;
  transform: translateX(4px);
}

.io-footer-contact {
  min-width: 0;
}

body .io-footer .io-footer-contact h3 {
  max-width: 340px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none !important;
  color: #fff8ee !important;
  -webkit-text-fill-color: #fff8ee !important;
  text-shadow: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(31px, 3vw, 43px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.io-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  color: #fff8ee !important;
  -webkit-text-fill-color: #fff8ee !important;
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.io-footer-cta::after {
  content: "";
  width: 38px;
  height: 1px;
  background: #b88443;
  transition: width 0.25s ease;
}

.io-footer-cta:hover::after,
.io-footer-cta:focus-visible::after {
  width: 64px;
}

.io-footer-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 0 25px;
  border-top: 1px solid rgba(255, 248, 238, 0.11);
}

.io-footer-bottom p {
  margin: 0;
  color: rgba(255, 248, 238, 0.50);
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.io-footer-signoff {
  text-align: right;
}

.io-footer-legal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  white-space: nowrap;
}

.io-footer-legal a {
  color: rgba(255, 248, 238, 0.62);
  font-family: "Lato", Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.055em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.io-footer-legal a:hover,
.io-footer-legal a:focus-visible {
  color: #fff8ee;
}

.io-footer-legal span {
  display: block;
  width: 1px;
  height: 11px;
  background: rgba(184, 132, 67, 0.48);
}

@media (max-width: 980px) {
  .io-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .io-footer-contact {
    grid-column: 1 / -1;
  }

  .io-footer-bottom {
    grid-template-columns: 1fr auto;
  }

  .io-footer-signoff {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 700px) {
  body .io-footer {
    padding: 56px 22px 0;
  }

  .io-footer-inner {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-bottom: 44px;
  }

  .io-footer-logo-link {
    width: min(100%, 300px);
  }

  .io-footer-links {
    gap: 28px;
  }

  .io-footer-contact {
    grid-column: auto;
  }

  body .io-footer .io-footer-contact h3 {
    max-width: 430px;
  }

  .io-footer-bottom {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 24px;
  }

  .io-footer-signoff {
    text-align: left;
  }

  .io-footer-legal {
    order: 2;
  }

  .io-footer-signoff {
    order: 3;
  }
}

@media (max-width: 460px) {
  body .io-footer {
    padding-inline: 18px;
  }

  .io-footer-logo-panel {
    min-height: 94px;
    padding: 17px 18px 14px;
  }

  .io-footer-logo-image {
    width: min(100%, 228px);
  }

  .io-footer-links {
    grid-template-columns: 1fr;
  }

  .io-footer-legal {
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: normal;
  }
}
