.caim-footer {
  background: #16352d;
  color: #f9fafb;
  overflow: hidden;
  padding: 74px 0 32px;
  position: relative;
  font: 400 1rem/1.7 "Noto Sans TC", Inter, system-ui, sans-serif;
}

.caim-footer .container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.caim-footer a { text-decoration: none; }
.caim-footer a:focus-visible { outline: 2px solid #d1aa73; outline-offset: 3px; }
.caim-footer h2 { font-family: inherit; }

.caim-footer::before {
  background-image:
    linear-gradient(rgba(214, 168, 79, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 158, 158, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, black, transparent 82%);
  pointer-events: none;
  position: absolute;
}

.caim-footer .footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr) minmax(180px, 0.8fr);
  position: relative;
  z-index: 1;
}

.caim-footer .footer-brand {
  align-items: center;
  display: inline-flex;
  gap: 14px;
}

.caim-footer .footer-logo {
  border-radius: 999px;
  display: block;
  height: 44px;
  width: 44px;
}

.caim-footer strong,
.caim-footer small,
.caim-footer a {
  display: block;
}

.caim-footer small,
.caim-footer p,
.caim-footer a {
  color: #d0d5dd;
}

.caim-footer p {
  margin: 24px 0 0;
  max-width: 560px;
}

.caim-footer nav {
  display: grid;
  gap: 10px;
}

.caim-footer h2 {
  color: #d6a84f;
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.caim-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #d0d5dd;
  font-size: 0.9rem;
  margin-top: 52px;
  padding-top: 22px;
  position: relative;
  z-index: 1;
}

@media (max-width: 820px) {
  .caim-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

.caim-footer .btn {
  align-items: center;
  background: #d1aa73;
  color: #172033;
  margin-top: 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.caim-footer .btn:hover,
.caim-footer .btn:focus-visible {
  transform: translateY(-2px);
}
