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

.advisor-cta,
.advisor-cta * { box-sizing: border-box; }

.advisor-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 8vw, 112px) 24px clamp(82px, 9vw, 122px);
  text-align: center;
  color: #69492f;
  background: linear-gradient(180deg, #f6ecd9 0%, #ead8bc 100%);
  font-family: Mulhim, Tahoma, sans-serif;
}

.advisor-cta__pattern {
  position: absolute;
  z-index: -1;
  inset: auto 50% -46% auto;
  width: min(820px, 92vw);
  aspect-ratio: 2.3;
  opacity: .075;
  transform: translateX(50%);
  background: url("./assets/pattern-tuwaiq-10.webp") center / 1750px auto no-repeat;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 72%);
}

.advisor-cta h2 {
  max-width: 13em;
  margin: 0 auto;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
}

.advisor-cta > p {
  max-width: 38em;
  margin: 18px auto 0;
  color: rgba(105, 73, 47, .78);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.9;
}

.advisor-cta .site-footer__advisor {
  border-color: rgba(255, 247, 232, .14);
  background: #69492f;
  color: #fff7e8;
  box-shadow: 0 18px 45px rgba(77, 51, 32, .18);
}

.advisor-cta .site-footer__advisor:hover,
.advisor-cta .site-footer__advisor:focus-visible { background: #513521; }

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 470px;
  margin-top: -2px;
  padding: clamp(54px, 6vw, 78px) 26px 28px;
  color: #fff7e8;
  background:
    radial-gradient(circle at 50% -14%, rgba(205, 143, 86, .18), transparent 43%),
    linear-gradient(180deg, #69492f 0%, #422d20 42%, #251811 100%);
  font-family: Mulhim, Tahoma, sans-serif;
}

.site-footer__pattern {
  position: absolute;
  z-index: -1;
  right: 50%;
  bottom: -22%;
  width: min(1080px, 90vw);
  aspect-ratio: 2.3;
  opacity: .055;
  transform: translateX(50%);
  background: url("./assets/pattern-tuwaiq-10.webp") center / 2100px auto no-repeat;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at center, #000 12%, transparent 72%);
}

.site-footer__inner {
  width: min(760px, 100%);
  min-height: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer__brand img {
  display: block;
  width: clamp(180px, 18vw, 245px);
  height: auto;
  margin: -12px auto 18px;
  object-fit: contain;
}

.site-footer h2,
.site-footer p { margin: 0; }

.site-footer h2 {
  color: rgba(255, 247, 232, .74);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 400;
  letter-spacing: .02em;
}

.site-footer__advisor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: min(330px, 100%);
  min-width: 0;
  min-height: 62px;
  margin: 32px auto 0;
  padding: 14px 28px;
  border: 1px solid rgba(111, 75, 47, .18);
  background: #f1dfc4;
  box-shadow: 0 18px 45px rgba(17, 10, 6, .16);
  color: #513721;
  font-size: clamp(20px, 1.7vw, 24px);
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.site-footer__advisor svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.site-footer__advisor:hover,
.site-footer__advisor:focus-visible {
  background: #fff0da;
  box-shadow: 0 20px 52px rgba(17, 10, 6, .24);
  transform: translateY(-2px);
}

.site-footer__advisor:focus-visible { outline: 2px solid #fff7e8; outline-offset: 4px; }
.site-footer__social-wrap { margin-top: 34px; }
.site-footer__social-wrap > p { color: rgba(255, 247, 232, .62); font-size: 15px; }

.site-footer__socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 19px;
}

.site-footer__social {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 247, 232, .2);
  border-radius: 50%;
  color: #f4dfc4;
}

.site-footer__social svg { width: 20px; height: 20px; fill: currentColor; }

.site-footer__base {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 247, 232, .12);
  color: rgba(255, 247, 232, .46);
  font-size: 13px;
}

@media (max-width: 700px) {
  .advisor-cta { padding: 68px 24px 82px; }
  .advisor-cta h2 { font-size: clamp(34px, 10vw, 46px); }
  .advisor-cta > p { margin-top: 14px; font-size: 16px; line-height: 1.8; }
  .advisor-cta .site-footer__advisor { width: 100%; min-width: 0; }
  .site-footer { min-height: 470px; padding: 52px 24px 24px; }
  .site-footer__pattern { bottom: 2%; width: 155vw; opacity: .045; }
  .site-footer__inner { min-height: 390px; }
  .site-footer__brand img { width: 175px; margin: -8px auto 16px; }
  .site-footer__advisor { width: 100%; min-width: 0; min-height: 60px; margin-top: 28px; }
  .site-footer__social-wrap { margin-top: 28px; }
  .site-footer__social-wrap > p { font-size: 14px; }
  .site-footer__social { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__advisor { transition: none; }
}
