@font-face {
  font-family: "Philosopher";
  src: url("assets/fonts/Philosopher-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:where(h1, h2, h3, h4) {
  font-family: "Philosopher", Georgia, serif !important;
  font-weight: 400 !important;
}

@media (min-width: 1101px) {
  :where(h1, h2) {
    font-size: clamp(26px, 4vw, 38px) !important;
  }

  .lawforum-page .hero h1 {
    font-size: clamp(56px, 7vw, 104px) !important;
  }

  .homepage .hero h1 {
    font-size: clamp(44px, 7vw, 84px) !important;
  }
}

.wa-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(.22, 1, .36, 1),
    transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.wa-reveal.wa-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn,
.home-footer-btn-dark,
.home-footer-btn-outline,
.wa-whatsapp-toggle {
  transform-style: preserve-3d;
  will-change: transform, filter, box-shadow;
  transition:
    transform 240ms cubic-bezier(.22, 1, .36, 1),
    filter 240ms ease,
    box-shadow 240ms ease;
}

.btn:hover,
.home-footer-btn-dark:hover,
.home-footer-btn-outline:hover {
  transform: perspective(700px) translateY(-3px) rotateX(2deg);
  filter: saturate(1.1) brightness(1.04);
  box-shadow: 0 12px 26px rgba(69, 20, 33, .22);
}

.btn:active,
.home-footer-btn-dark:active,
.home-footer-btn-outline:active {
  transform: translateY(0) scale(.98);
}

.wa-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wa-whatsapp-panel {
  width: min(350px, calc(100vw - 28px));
  overflow: hidden;
  border-radius: 8px;
  background: #f4f7f5;
  color: #202522;
  border: 1px solid rgba(18, 89, 64, .14);
  box-shadow: 0 20px 56px rgba(20, 54, 43, .24);
}

.wa-whatsapp-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  background: #075e54;
  color: #fff;
}

.wa-whatsapp-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
}

.wa-whatsapp-avatar svg { width: 27px; height: 27px; }
.wa-whatsapp-heading { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 2px; }
.wa-whatsapp-heading strong { font-size: 15px; line-height: 1.25; }
.wa-whatsapp-heading > span { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .88; }
.wa-whatsapp-heading i { width: 7px; height: 7px; border-radius: 50%; background: #53df86; }
.wa-whatsapp-close { border: 0; padding: 4px; background: transparent; color: #fff; font: 300 25px/1 Arial, sans-serif; cursor: pointer; opacity: .8; }
.wa-whatsapp-close:hover { opacity: 1; }

.wa-whatsapp-message {
  width: calc(100% - 56px);
  margin: 20px 18px 12px;
  padding: 12px 14px;
  border-radius: 4px 8px 8px 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 54, 43, .1);
}

.wa-whatsapp-message span { display: block; margin-bottom: 3px; color: #66736d; font-size: 11px; }
.wa-whatsapp-message p { margin: 0; font-size: 14px; line-height: 1.45; }

.wa-whatsapp-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px 12px 12px;
}

.wa-whatsapp-panel input {
  min-width: 0;
  border: 1px solid #d7dfda;
  border-radius: 999px;
  padding: 11px 15px;
  color: #30282b;
  background: #fff;
  font: 400 14px/1.2 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  outline: none;
}

.wa-whatsapp-panel input:focus { border-color: #25d366; box-shadow: 0 0 0 3px rgba(37, 211, 102, .13); }

.wa-whatsapp-panel form button {
  border: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  background: #25d366;
  color: #fff;
  cursor: pointer;
}

.wa-whatsapp-panel form button svg { width: 20px; height: 20px; fill: currentColor; }

.wa-whatsapp-toggle {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .35);
  cursor: pointer;
}

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

.wa-whatsapp-toggle:hover {
  transform: translateY(-4px) rotate(-3deg);
  box-shadow: 0 14px 34px rgba(37, 211, 102, .45);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 560px) {
  .wa-whatsapp {
    right: 14px;
    bottom: 14px;
  }

  .wa-whatsapp-toggle {
    width: 52px;
    height: 52px;
  }

  .wa-whatsapp-toggle svg { width: 29px; height: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .home-footer-btn-dark,
  .home-footer-btn-outline,
  .wa-whatsapp-toggle {
    transition: none;
  }
}
