/* Footer: call-to-action panel with map and QR code, link bar, and the floating WhatsApp chat button.
   Loaded on every page.
*/

.footer {
  background: #fff;
  color: #fff;
}

.fcta-wrap {
  position: relative;
  z-index: 2;
  padding-inline: var(--gutter);
}

.fcta {
  max-width: var(--wrap-sec);
  margin-inline: auto;
  border-radius: 10px;
  overflow: hidden;
  background: #1b2420;
  display: grid;
  grid-template-columns: minmax(0, .66fr) minmax(0, 1fr);
}

.fcta-l {
  padding: clamp(30px, 3.2vw, 56px) clamp(24px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fcta-l h2 {
  margin: 0;
  font-size: clamp(30px, 2.9vw, 50px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.01em;
  max-width: 12em;
  text-wrap: balance;
}

.fcta-l > p {
  margin: 22px 0 0;
  font-size: clamp(14px, .95vw, 16px);
  line-height: 1.9;
  color: rgba(255,255,255,.92);
  max-width: 30em;
}

.fcta-l .cta {
  margin-top: 28px;
  gap: 10px;
}

.fcta-l .btn {
  gap: 14px;
  padding-left: 18px;
  font-size: 14.5px;
}

.fcontact {
  margin-top: clamp(30px, 3.4vw, 56px);
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.flogo {
  width: 104px;
  height: auto;
  flex: none;
  display: block;
}

.fcontact p {
  margin: 0;
}

.fcontact .addr {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.92);
}

.fcontact .line {
  margin-top: 8px;
  font-size: clamp(16px, 1.3vw, 21px);
  font-weight: 500;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.fcontact .addr + .line {
  margin-top: 12px;
}

.fcontact a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fmap {
  position: relative;
  aspect-ratio: 992 / 716;
  background: #e8e6e0;
}

.fmap > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.maplink {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.qr {
  position: absolute;
  z-index: 2;
  top: 3.35%;
  left: 1.1%;
  width: 22.4%;
  aspect-ratio: 1;
  background: #fff;
  padding: 2%;
  display: block;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}

.qr img {
  width: 100%;
  height: 100%;
  display: block;
}

.qr:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 28px -12px rgba(0,0,0,.5);
}

.mappill {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,.5);
  pointer-events: none;
  transition: background .3s ease, color .3s ease;
}

.mappill svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fmap:hover .mappill {
  background: var(--green);
  color: #fff;
}

.fbar {
  position: relative;
  z-index: 1;
  background: #000;
  margin-top: -64px;
  padding: 64px var(--gutter) 0;
}

.fbar-in {
  max-width: var(--wrap-sec);
  margin-inline: auto;
  padding-block: 46px 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.flinks {
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
}

.flinks a {
  padding: 0 14px;
  border-left: 1px solid rgba(255,255,255,.7);
  line-height: 1;
}

.flinks a:first-child {
  padding-left: 0;
  border-left: 0;
}

.flinks a:hover {
  color: #7be0a3;
}

.copy {
  margin: 16px 0 0;
  font-size: 14.5px;
  color: rgba(255,255,255,.88);
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 38px;
  height: 38px;
  border: 1.8px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .25s ease, color .25s ease, transform .3s ease;
}

.social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social a:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
}

@media (max-width: 1000px) {
  .fcta {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .fcontact {
    flex-direction: column;
    gap: 14px;
  }

  .flinks a {
    padding: 6px 10px;
  }

  .flinks a:first-child {
    padding-left: 0;
  }

  .flinks {
    row-gap: 6px;
  }
}

.wa {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.wa-tag {
  background: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.4);
  animation: waTag .7s cubic-bezier(.2,.8,.3,1) both;
  transition: transform .3s ease;
}

.wa-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px -8px rgba(18,140,70,.7);
  transition: transform .3s cubic-bezier(.2,.8,.3,1.3);
}

.wa-btn svg {
  width: 32px;
  height: 32px;
}

.wa-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}

.wa:hover .wa-btn,
.wa:focus-visible .wa-btn {
  transform: scale(1.1) rotate(-8deg);
}

.wa:hover .wa-tag,
.wa:focus-visible .wa-tag {
  transform: translateX(-4px);
}

@keyframes waTag {
  from { opacity: 0; transform: translateX(14px); }
   to { opacity: 1; transform: translateX(0); }
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: .5; }
   100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 480px) {
  .wa {
    right: 14px;
    gap: 8px;
  }

  .wa-tag {
    padding: 9px 14px;
    font-size: 13px;
  }

  .wa-btn {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-tag,
  .wa-btn::before {
    animation: none;
  }

  .wa-btn::before {
    display: none;
  }
}
