/* =========================================================
   Souganji Renewal - footer
========================================================= */

.sg-footer {
  background: #fff;
  border-top: 1px solid var(--sg-line);
}

.sg-footer__main {
  padding: 36px 0;
  background: #f7f5ef;
}

.sg-footer__inner {
  width: min(calc(100% - 54px), 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 48px;
  align-items: center;
}

.sg-footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--sg-ink);
  text-decoration: none;
}

.sg-footer-brand__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.sg-footer-brand__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sg-footer-brand__kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--sg-muted);
  font-size: 13px;
}

.sg-footer-brand__name {
  display: block;
  color: var(--sg-ink);
  font-size: 23px;
  letter-spacing: .08em;
}

.sg-footer-brand p {
  margin: 12px 0 0;
  color: var(--sg-text);
  font-size: 13px;
  line-height: 1.8;
}

.sg-footer-brand p a { color: var(--sg-text); }

.sg-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.sg-footer-social__link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid #d6ccb8;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--sg-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition:
    border-color .2s ease,
    background-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.sg-footer-social__link:hover,
.sg-footer-social__link:focus-visible {
  border-color: #b8a77f;
  background: #fff;
  box-shadow: 0 5px 14px rgba(68, 55, 35, .08);
  transform: translateY(-1px);
}

.sg-footer-social__link:focus-visible {
  outline: 2px solid var(--sg-gold);
  outline-offset: 3px;
}

.sg-footer-social__icon-wrap {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
}

.sg-footer-social__link--instagram .sg-footer-social__icon-wrap {
  background:
    radial-gradient(circle at 30% 105%, #feda75 0 17%, #fa7e1e 30%, #d62976 56%, #962fbf 78%, #4f5bd5 100%);
}

.sg-footer-social__link--facebook .sg-footer-social__icon-wrap {
  background: #1877f2;
}

.sg-footer-social__icon {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sg-footer-social__link--facebook .sg-footer-social__icon {
  fill: currentColor;
  stroke: none;
}

.sg-footer-social__label {
  white-space: nowrap;
}

.sg-footer-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 9px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-footer-menu a {
  color: var(--sg-text);
  font-size: 14px;
  text-decoration: none;
}

.sg-footer-menu a:hover { color: var(--sg-gold); }

.sg-footer-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 250px;
  min-height: 54px;
  padding: 10px 24px;
  border: 1px solid var(--sg-brown);
  color: var(--sg-brown);
  background: rgba(255,255,255,.6);
  text-decoration: none;
}

.sg-footer-cta a:hover {
  color: #fff;
  background: var(--sg-brown);
}

.sg-footer__bottom {
  padding: 14px 0;
  background: #272727;
  text-align: center;
}

.sg-footer__bottom p {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  letter-spacing: .06em;
}

@media screen and (max-width: 1100px) {
  .sg-footer__inner { grid-template-columns: 1fr; }
}

@media screen and (max-width: 820px) {
  .sg-footer__inner {
    width: min(calc(100% - 28px), 1280px);
  }

  .sg-footer-menu { grid-template-columns: 1fr; }

  .sg-footer-cta a {
    width: 100%;
    min-width: 0;
  }
}

@media screen and (max-width: 420px) {
  .sg-footer-social {
    align-items: stretch;
  }

  .sg-footer-social__link {
    flex: 1 1 145px;
    justify-content: flex-start;
  }
}
