/* ==========================================================================
   9. Contact + footer — giant AS mark, location, Instagram and WhatsApp
   ========================================================================== */

.contact {
  position: relative;
  padding: clamp(6rem, 16vh, 11rem) var(--pad) clamp(4rem, 10vh, 7rem);
  background: radial-gradient(110% 70% at 50% 0%, #2c190b 0%, #140c07 45%, var(--night) 100%);
  overflow: hidden;
}

/* the giant logo: the AS mark as a mask over a slow-moving gold gradient */
.contact__mark-wrap {
  position: relative;
  width: min(78vw, 56vh, 560px);
  margin: 0 auto clamp(2.5rem, 7vh, 5rem);
  perspective: 1200px;
}

.contact__mark {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(115deg, #7b5a25 0%, #c7a35d 22%, #f6e6bd 38%, #c7a35d 52%, #8a6628 72%, #e7cd96 88%, #9a7634 100%);
  background-size: 260% 100%;
  background-position: var(--sheen, 30%) 0;
  -webkit-mask: url('../assets/logo/as-mark.svg') center / contain no-repeat;
  mask: url('../assets/logo/as-mark.svg') center / contain no-repeat;
  will-change: transform, background-position;
}

.contact__mark-wrap::after {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(227, 154, 69, 0.3) 0%, rgba(227, 154, 69, 0.08) 55%, transparent 100%);
}

.contact__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.contact__title {
  margin: 1.3rem auto 1.4rem;
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  max-width: 13em;
  text-shadow: 0 4px 50px rgba(9, 6, 4, 0.85);
}

.contact__lede {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--text-soft);
}

.contact__links {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  text-align: left;
}

@media (min-width: 860px) {
  .contact__links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.clink {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(248, 246, 242, 0.1);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(248, 246, 242, 0.05) 0%, rgba(248, 246, 242, 0.015) 100%);
  overflow: hidden;
  transition: border-color 0.5s var(--ease-out), transform 0.6s var(--ease-out), background-color 0.5s;
}

.clink::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 0% 0%, rgba(199, 163, 93, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.clink > * {
  position: relative;
}

.clink__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.45s, background-color 0.45s, border-color 0.45s;
}

.clink strong {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.clink__go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.4s;
}

.clink__go svg {
  transition: transform 0.5s var(--ease-out);
}

@media (hover: hover) {
  .clink:hover {
    border-color: rgba(199, 163, 93, 0.5);
    transform: translateY(-6px);
  }

  .clink:hover::before {
    opacity: 1;
  }

  .clink:hover .clink__icon {
    color: var(--ink);
    background: var(--gold);
    border-color: var(--gold);
  }

  .clink:hover .clink__go {
    color: var(--gold-light);
  }

  .clink:hover .clink__go svg {
    transform: translate(3px, -3px);
  }
}

.contact__more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2.2rem;
  margin-top: 2.2rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.contact__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s;
}

.contact__more a:hover {
  color: var(--gold-light);
}

.contact__more svg {
  color: var(--gold);
}

/* ---------- footer ---------- */

.footer {
  padding: clamp(2.5rem, 6vh, 4rem) var(--pad) max(1.6rem, env(safe-area-inset-bottom));
  background: var(--night);
  border-top: 1px solid var(--line-soft);
}

.footer__top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 1.8rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.footer__logo img {
  width: auto;
  height: 40px;
}

.footer__tag {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
}

.footer__nav a {
  padding: 0.3rem 0;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.3s;
}

.footer__nav a:hover {
  color: var(--gold-light);
}

@media (min-width: 1000px) {
  .footer__top {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    text-align: left;
    gap: 3rem;
  }

  .footer__tag {
    justify-self: center;
  }
}

.footer__bottom {
  max-width: var(--maxw);
  margin: clamp(2rem, 5vh, 3rem) auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

@media (max-width: 699px) {
  .footer__bottom {
    justify-content: center;
    text-align: center;
    padding-bottom: 4.2rem;
  }
}

/* ---------- floating WhatsApp button ---------- */

.wa-fab {
  position: fixed;
  right: clamp(1rem, 2.6vw, 2rem);
  bottom: max(clamp(1rem, 2.6vw, 2rem), env(safe-area-inset-bottom));
  z-index: 450;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #0c1a12;
  background: linear-gradient(135deg, #7be0a8 0%, #2fbf71 100%);
  border-radius: 50%;
  box-shadow: 0 16px 40px -10px rgba(47, 191, 113, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s 0.5s;
}

.wa-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s;
}

.wa-fab svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
}

@media (hover: hover) {
  .wa-fab.is-visible:hover {
    transform: translateY(-4px) scale(1.05);
  }
}
