/* CallBar (mobile fixed bottom) */
.call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  flex-direction: column;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
  /* Above iPhone home indicator + extra buffer for Safari bottom chrome */
  --call-bar-safe: calc(env(safe-area-inset-bottom, 0px) + 16px);
  padding-bottom: var(--call-bar-safe);
}

.call-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  width: 100%;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.call-phone {
  background: #000000;
  color: rgba(232, 217, 184, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.call-phone:active {
  background: #1a1a1a;
}
.phone-num {
  font-weight: 700;
}
.divider {
  opacity: 0.45;
}

.call-wechat {
  background: #07c160;
  color: #ffffff;
  padding: 1.05rem 1.25rem;
  min-height: 3.35rem;
  font-size: 1rem;
  touch-action: manipulation;
}
.call-wechat:active {
  filter: brightness(0.92);
}
.wechat-hint {
  font-size: 0.82rem;
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
}
.wechat-modal.open {
  display: flex;
}

.wechat-modal-inner {
  background: white;
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  width: 280px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
}
.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 1rem;
}
.qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eee;
}
.modal-sub {
  font-size: 0.8rem;
  color: #666;
  margin: 0.85rem 0 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .call-bar {
    display: flex;
  }

  footer {
    padding-bottom: calc(8.25rem + env(safe-area-inset-bottom, 0px) + 16px);
  }
}

/* Site footer */
footer {
  padding: 1.35rem 1.1rem 4rem;
  background: linear-gradient(var(--gray-gradient)) no-repeat;
  color: rgb(var(--gray));
  text-align: left;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  align-items: start;
}
.footer-col {
  min-width: 0;
}
.footer-h {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--gray), 0.85);
  font-weight: 800;
  margin-bottom: 0.55rem;
}
.footer-connect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  min-width: 0;
}
.footer-col-connect .footer-h {
  margin-bottom: 0;
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}
.social-links-head {
  flex-shrink: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.4rem;
}
.chip-stack {
  display: grid;
  gap: 0.45rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 217, 184, 0.95);
  background: rgba(253, 251, 247, 0.72);
  box-shadow: 0 10px 18px rgba(44, 24, 16, 0.06);
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(var(--gray), 0.98);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.chip-wide {
  width: 100%;
}
.footer-geo {
  margin: 0.15rem 0 0;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(var(--gray), 0.88);
}
a.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(44, 24, 16, 0.09);
  border-color: rgba(212, 168, 83, 0.55);
  color: var(--accent);
}
div.chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(44, 24, 16, 0.09);
  border-color: rgba(212, 168, 83, 0.55);
}
.ico {
  opacity: 0.85;
}
footer .social-links {
  display: flex;
  justify-content: flex-start;
  gap: 0.45rem;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
}
footer .social-links a {
  text-decoration: none;
  color: rgba(var(--gray), 0.92);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 217, 184, 0.75);
  background: rgba(253, 251, 247, 0.55);
  box-shadow: 0 10px 18px rgba(44, 24, 16, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
footer .social-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(44, 24, 16, 0.09);
  border-color: rgba(212, 168, 83, 0.55);
}
.footer-legal {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  font-weight: 700;
}
.footer-legal a {
  color: rgba(var(--gray), 0.95);
  text-decoration: none;
}
.footer-legal a:hover {
  color: var(--accent);
}
.dot {
  opacity: 0.45;
}
.wechat-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(232, 217, 184, 0.95);
  background: rgba(253, 251, 247, 0.72);
  box-shadow: 0 12px 22px rgba(44, 24, 16, 0.08);
}
.wechat-qr-trigger {
  display: inline-flex;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 10px;
  line-height: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wechat-qr-trigger:focus-visible {
  outline: 2px solid rgba(212, 168, 83, 0.85);
  outline-offset: 3px;
}
.wechat-qr-trigger:hover {
  transform: scale(1.03);
}
.wechat-qr {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(232, 217, 184, 0.95);
  display: block;
}
.wechat-qr-dialog {
  padding: 0;
  border: none;
  margin: 0;
}
.wechat-qr-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  background: transparent;
}
.wechat-qr-dialog::backdrop {
  background: rgba(22, 16, 12, 0.55);
  cursor: pointer;
}
.wechat-qr-dialog-panel {
  position: relative;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 14px;
  background: rgba(253, 251, 247, 0.98);
  border: 1px solid rgba(232, 217, 184, 0.95);
  box-shadow: 0 24px 48px rgba(44, 24, 16, 0.18);
  max-width: min(92vw, 420px);
}
.wechat-qr-dialog-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(122, 90, 26, 0.88);
}
.wechat-qr-dialog-img {
  width: min(72vw, 320px);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(232, 217, 184, 0.95);
}
.wechat-qr-dialog-hint {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: rgba(var(--gray), 0.75);
  text-align: center;
}
.wechat-qr-dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 217, 184, 0.95);
  background: rgba(253, 251, 247, 0.95);
  color: rgba(var(--gray), 0.9);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.wechat-qr-dialog-close:hover {
  color: var(--accent);
  border-color: rgba(212, 168, 83, 0.55);
}
.wechat-meta {
  min-width: 0;
}
.wechat-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(122, 90, 26, 0.78);
  font-weight: 800;
}
.wechat-id {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: rgba(var(--gray), 0.98);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(var(--gray), 0.92);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(232, 217, 184, 0.55);
  text-align: center;
}
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-col-connect {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  footer {
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
