.contact-footer {
  --contact-gold: #d7b16e;
  --contact-gold-soft: rgba(215, 177, 110, 0.2);
  --contact-ink: #f6f0e5;
  --contact-muted: rgba(246, 240, 229, 0.65);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--contact-ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(75, 102, 78, 0.2), transparent 35%),
    radial-gradient(circle at 84% 54%, rgba(192, 143, 70, 0.12), transparent 32%),
    #09100c;
  border-top: 1px solid rgba(215, 177, 110, 0.18);
}

.nav a.contact-nav-link,
.why-nav a.contact-nav-link,
.product-nav a.contact-nav-link,
.policy-topbar a.contact-nav-link {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
}

.contact-nav-link::before {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  content: "";
  background: #d7b16e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(215, 177, 110, 0.55);
  animation: contactSignal 2.2s ease-out infinite;
}

.nav a.contact-nav-link::after,
.why-nav a.contact-nav-link::after,
.product-nav a.contact-nav-link::after { display: none; }

.contact-fab {
  position: fixed;
  z-index: 55;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: grid;
  grid-template-columns: 2.4rem auto auto;
  align-items: center;
  gap: 0.7rem;
  min-width: 12rem;
  padding: 0.65rem 0.8rem;
  color: #f6f0e5;
  background: rgba(12, 20, 15, 0.88);
  border: 1px solid rgba(215, 177, 110, 0.38);
  border-radius: 999px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(255,255,255,0.04) inset;
  text-decoration: none;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* When the AI advisor is available, keep customer-care access compact so the
   two premium tools read as one vertical service dock instead of covering content. */
body:has(#jcy-ai-tea-advisor-root) .contact-fab {
  width: 66px;
  min-width: 66px;
  height: 66px;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

body:has(#jcy-ai-tea-advisor-root) .contact-fab__copy {
  position: absolute;
  right: 78px;
  top: 50%;
  width: max-content;
  padding: .55rem .75rem;
  color: rgba(250, 244, 233, .86);
  background: rgba(8, 17, 12, .82);
  border: 1px solid rgba(215, 177, 110, .22);
  border-radius: 999px;
  box-shadow: 0 .7rem 1.8rem rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translate(4px, -50%);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

body:has(#jcy-ai-tea-advisor-root) .contact-fab:hover .contact-fab__copy,
body:has(#jcy-ai-tea-advisor-root) .contact-fab:focus-visible .contact-fab__copy {
  opacity: 1;
  transform: translate(0, -50%);
}

body:has(#jcy-ai-tea-advisor-root) .contact-fab__copy small,
body:has(#jcy-ai-tea-advisor-root) .contact-fab__arrow {
  display: none;
}

.contact-fab:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 177, 110, 0.68);
  box-shadow: 0 1.4rem 3.5rem rgba(0,0,0,0.34), 0 0 1.8rem rgba(215,177,110,0.1);
}

.contact-fab.is-footer-visible { opacity: 0; pointer-events: none; transform: translateY(12px); }
.contact-fab__signal { position: relative; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid rgba(215,177,110,0.34); border-radius: 50%; }
.contact-fab__signal::before { width: 0.5rem; height: 0.5rem; content: ""; background: #d7b16e; border-radius: 50%; }
.contact-fab__signal i { position: absolute; inset: 0.35rem; border: 1px solid rgba(215,177,110,0.5); border-radius: 50%; animation: contactRing 2.2s ease-out infinite; }
.contact-fab__copy { display: grid; gap: 0.08rem; }
.contact-fab__copy small { color: rgba(246,240,229,0.55); font: 600 0.55rem/1.2 ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.14em; }
.contact-fab__copy strong { font: 500 0.82rem/1.3 ui-sans-serif, system-ui, sans-serif; }
.contact-fab__arrow { color: #d7b16e; font-size: 0.8rem; }

@keyframes contactSignal {
  0% { box-shadow: 0 0 0 0 rgba(215,177,110,0.55); }
  70%, 100% { box-shadow: 0 0 0 0.55rem rgba(215,177,110,0); }
}

@keyframes contactRing {
  0% { opacity: 0.75; transform: scale(0.7); }
  75%, 100% { opacity: 0; transform: scale(1.45); }
}

.contact-footer::before,
.contact-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
}

.contact-footer::before { width: 28rem; height: 28rem; left: -17rem; top: 7rem; border: 1px solid rgba(215, 177, 110, 0.1); }
.contact-footer::after { width: 18rem; height: 18rem; right: -10rem; top: -7rem; border: 1px solid rgba(215, 177, 110, 0.14); }
.contact-footer__ambient { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.contact-footer__ambient .ambient-leaf { filter: saturate(0.7); }
.contact-footer * { box-sizing: border-box; }
.contact-footer a { color: inherit; }
.contact-footer__details { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 5rem); }
.contact-footer__details > summary::-webkit-details-marker { display: none; }
.contact-footer__details > summary::marker { content: ""; }

.contact-footer__summary {
  min-height: 15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-footer__summary-copy { display: grid; max-width: 64rem; gap: 0.75rem; }
.contact-footer__eyebrow,
.contact-panel__kicker {
  color: var(--contact-gold);
  font: 600 0.7rem/1.4 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.23em;
}
.contact-footer__summary strong { font: 400 clamp(2.5rem, 6vw, 5.8rem)/0.95 Georgia, "Times New Roman", serif; letter-spacing: -0.045em; }
.contact-footer__summary-copy > span:last-child { max-width: 44rem; color: var(--contact-muted); font-size: clamp(0.95rem, 1.2vw, 1.1rem); line-height: 1.8; }

.contact-footer__summary-action {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.4rem);
}

.contact-footer__guide {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
  overflow: hidden;
  color: rgba(246, 240, 229, 0.86);
  background: rgba(215, 177, 110, 0.08);
  border: 1px solid rgba(215, 177, 110, 0.27);
  border-radius: 999px;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.18);
  font: 600 0.68rem/1.2 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.06em;
  animation: contactGuideNudge 2.8s ease-in-out infinite;
}
.contact-footer__guide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,0.16) 48%, transparent 72%);
  transform: translateX(-120%);
  animation: contactGuideShine 3.6s ease-in-out infinite;
}
.contact-footer__guide i {
  width: 0.42rem;
  height: 0.42rem;
  background: var(--contact-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(215, 177, 110, 0.52);
  animation: contactSignal 2.2s ease-out infinite;
}
.contact-footer__guide b { position: relative; z-index: 1; font-weight: 600; white-space: nowrap; }
.contact-footer__guide em { position: relative; z-index: 1; color: var(--contact-gold); font-style: normal; animation: contactGuideArrow 1.4s ease-in-out infinite; }
.contact-footer__details[open] .contact-footer__guide { opacity: 0.72; animation: none; }

.contact-footer__toggle {
  position: relative;
  width: clamp(3.8rem, 6vw, 5.5rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 177, 110, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 0 rgba(215, 177, 110, 0.16);
  transition: transform 0.5s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.contact-footer__toggle::before,
.contact-footer__toggle::after { content: ""; position: absolute; width: 1.1rem; height: 1px; background: var(--contact-gold); transition: transform 0.4s ease; }
.contact-footer__toggle::after { transform: rotate(90deg); }
.contact-footer__summary:hover .contact-footer__toggle { background: rgba(215, 177, 110, 0.1); box-shadow: 0 0 2.5rem rgba(215, 177, 110, 0.14); transform: scale(1.06); }
.contact-footer__details[open] .contact-footer__toggle { transform: rotate(45deg); background: rgba(215, 177, 110, 0.12); }

@keyframes contactGuideNudge {
  0%, 68%, 100% { transform: translateX(0); }
  76% { transform: translateX(5px); }
  84% { transform: translateX(-2px); }
}
@keyframes contactGuideShine {
  0%, 56% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}
@keyframes contactGuideArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.contact-footer__content { padding: clamp(2rem, 4vw, 4rem) 0 clamp(4rem, 7vw, 7rem); animation: contactReveal 0.65s cubic-bezier(.2,.75,.2,1) both; }
@keyframes contactReveal { from { opacity: 0; transform: translateY(-1rem); } to { opacity: 1; transform: none; } }
.contact-footer__grid { display: grid; grid-template-columns: 0.9fr 1.25fr 1.1fr; gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }

.contact-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid rgba(215, 177, 110, 0.17);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2), inset 0 1px rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.45s cubic-bezier(.2,.75,.2,1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.contact-panel:hover { transform: translateY(-6px); border-color: rgba(215, 177, 110, 0.38); box-shadow: 0 2rem 5rem rgba(0,0,0,0.3), 0 0 2rem rgba(215,177,110,0.06); }
.contact-panel h2 { margin: 0.45rem 0 0; color: var(--contact-ink); font: 400 clamp(1.65rem, 2.5vw, 2.35rem)/1.12 Georgia, "Times New Roman", serif; }
.contact-panel__intro { min-height: 4.6em; margin: 0.8rem 0 1.5rem; color: var(--contact-muted); line-height: 1.65; font-size: 0.9rem; }

.social-links { display: grid; gap: 0.65rem; }
.social-link {
  min-height: 4rem;
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(0,0,0,0.12);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.social-link:hover { transform: translateX(4px); border-color: rgba(215,177,110,0.35); background: rgba(215,177,110,0.07); }
.social-link > span:nth-child(2) { display: grid; gap: 0.1rem; min-width: 0; }
.social-link b { font-size: 0.88rem; font-weight: 600; }
.social-link small { color: var(--contact-muted); font-size: 0.7rem; }
.social-link__arrow { color: var(--contact-gold); }
.social-link__icon { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; border: 1px solid rgba(215,177,110,0.25); border-radius: 50%; color: var(--contact-gold); font-weight: 700; font-style: normal; }
.social-link__icon--instagram { position: relative; border-radius: 0.75rem; }
.social-link__icon--instagram::before { content: ""; width: 0.75rem; height: 0.75rem; border: 1px solid currentColor; border-radius: 50%; }
.social-link__icon--instagram::after { content: ""; position: absolute; width: 0.18rem; height: 0.18rem; border-radius: 50%; background: currentColor; right: 0.48rem; top: 0.46rem; }
.social-link__icon--facebook { font: 600 1.45rem/1 Georgia, serif; }
.social-link__icon--tiktok { font-size: 1.25rem; }
.social-link__icon--red { font-size: 0.58rem; letter-spacing: -0.03em; }
.social-link.is-pending { opacity: 0.68; }
.contact-footer__notice { min-height: 1.3rem; margin: 0.75rem 0 0; color: var(--contact-gold); font-size: 0.72rem; }

.business-qr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.business-qr { min-width: 0; padding: 0.65rem; border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; background: rgba(0,0,0,0.14); }
.business-qr > a,
.business-qr__image { display: block; overflow: hidden; aspect-ratio: 1; padding: 0.35rem; border-radius: 11px; background: #fff; }
.business-qr img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 7px; transition: transform 0.45s ease; }
.business-qr:hover img { transform: scale(1.025); }
.business-qr > div { display: grid; gap: 0.22rem; padding: 0.7rem 0.2rem 0.15rem; }
.business-qr strong { font-size: 0.82rem; }
.business-qr span { color: var(--contact-muted); font-size: 0.68rem; }
.contact-email { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; padding: 0.9rem 1rem; border: 1px solid rgba(215,177,110,0.2); border-radius: 14px; text-decoration: none; background: rgba(215,177,110,0.05); transition: background 0.3s ease, border-color 0.3s ease; }
.contact-email:hover { background: rgba(215,177,110,0.1); border-color: rgba(215,177,110,0.42); }
.contact-email > span { display: grid; min-width: 0; gap: 0.2rem; }
.contact-email small { color: var(--contact-muted); }
.contact-email strong { overflow-wrap: anywhere; font-size: 0.84rem; }
.contact-email i { color: var(--contact-gold); font-style: normal; }

.support-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.support-list > div { display: grid; grid-template-columns: 2rem 1fr; align-items: center; gap: 0.65rem; min-height: 3.4rem; padding: 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.support-list span { color: var(--contact-gold); font-size: 0.66rem; letter-spacing: 0.08em; }
.support-list strong { font-size: 0.76rem; font-weight: 500; line-height: 1.4; }
.support-label { margin: 1.3rem 0 0.7rem; color: var(--contact-muted); font-size: 0.72rem; }
.support-methods { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.support-methods a,
.support-method-static { display: inline-flex; align-items: center; gap: 0.42rem; padding: 0.55rem 0.7rem; border: 1px solid rgba(255,255,255,0.1); border-radius: 999px; text-decoration: none; font-size: 0.68rem; transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease; }
.support-methods a:hover { color: var(--contact-gold); border-color: rgba(215,177,110,0.4); background: rgba(215,177,110,0.06); }
.support-methods a > span:first-child,
.support-method-static > span:first-child { width: 1.3rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: #10170f; background: var(--contact-gold); font-size: 0.58rem; font-weight: 800; }
.support-response { display: flex; align-items: center; gap: 0.55rem; margin: auto 0 0; padding-top: 1.4rem; color: rgba(246,240,229,0.8); font-size: 0.74rem; }
.support-response i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: #8ebc83; box-shadow: 0 0 0.8rem rgba(142,188,131,0.65); }

.contact-footer__bar { position: relative; z-index: 1; width: min(calc(100% - 2.5rem), 1340px); min-height: 6.5rem; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; border-top: 1px solid rgba(255,255,255,0.1); color: var(--contact-muted); font-size: 0.7rem; }
.contact-footer__brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--contact-ink); letter-spacing: 0.14em; }
.contact-footer__brand span { width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid rgba(215,177,110,0.4); border-radius: 50%; color: var(--contact-gold); font: 500 0.9rem Georgia, serif; }
.contact-footer__brand b { font-size: 0.66rem; }
.contact-footer__bar p { margin: 0; text-align: center; }
.contact-footer__bar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.65rem 1rem; }
.contact-footer__bar nav a { text-underline-offset: 0.22rem; text-decoration-color: transparent; transition: color 0.25s ease, text-decoration-color 0.25s ease; }
.contact-footer__bar nav a:hover { color: var(--contact-gold); text-decoration-color: currentColor; }

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

@media (max-width: 1050px) {
  .contact-footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-panel--support { grid-column: 1 / -1; }
  .contact-panel__intro { min-height: 0; }
  .support-list { grid-template-columns: repeat(4, 1fr); }
  .support-list > div { grid-template-columns: 1fr; }
  .contact-footer__bar { grid-template-columns: auto 1fr; padding: 1.6rem 0; }
  .contact-footer__bar nav { grid-column: 1 / -1; justify-content: flex-start; }
  .contact-footer__bar p { text-align: right; }
}

@media (max-width: 680px) {
  .contact-fab { right: 0.75rem; bottom: 0.75rem; min-width: 0; grid-template-columns: 2.4rem auto; padding: 0.55rem; }
  .contact-fab__copy small, .contact-fab__arrow { display: none; }
  .contact-fab__copy strong { padding-right: 0.45rem; font-size: 0.74rem; }
  .nav a.contact-nav-link,
  .why-nav a.contact-nav-link,
  .product-nav a.contact-nav-link { min-height: 44px; padding: 0.45rem 0.75rem; }
  .contact-footer__details { padding-inline: 1rem; }
  .contact-footer__summary { min-height: 13rem; gap: 1rem; }
  .contact-footer__summary-action { align-items: flex-end; flex-direction: column-reverse; gap: 0.7rem; }
  .contact-footer__guide { min-height: 2.25rem; padding: 0.45rem 0.65rem; font-size: 0.58rem; }
  .contact-footer__summary strong { font-size: clamp(2.45rem, 13vw, 4rem); }
  .contact-footer__summary-copy > span:last-child { font-size: 0.86rem; line-height: 1.65; }
  .contact-footer__grid { grid-template-columns: 1fr; }
  .contact-panel--support { grid-column: auto; }
  .contact-panel { border-radius: 20px; }
  .contact-panel__intro { font-size: 0.94rem; line-height: 1.7; }
  .social-link { min-height: 4.25rem; }
  .support-methods a,
  .support-method-static { min-height: 44px; }
  .support-list { grid-template-columns: 1fr 1fr; }
  .contact-footer__bar { width: calc(100% - 2rem); grid-template-columns: 1fr; gap: 1rem; padding: 1.6rem 0 2rem; }
  .contact-footer__bar p { text-align: left; }
  .contact-footer__bar nav { grid-column: auto; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-footer *, .contact-footer *::before, .contact-footer *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Keep service access visible without covering shopping content. */
.product-page .contact-fab,
body.cart-open .contact-fab {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none !important;
}

.contact-footer__bar {
  color: rgba(246, 240, 229, .74);
  font-size: .76rem;
}

.contact-footer__bar nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 980px) {
  .contact-fab {
    display: none;
  }
}

@media (max-width: 1120px) {
  .journal-page .contact-fab,
  .article-page .contact-fab {
    display: none;
  }
}

@media (max-width: 680px) {
  .contact-footer__bar {
    font-size: .78rem;
    line-height: 1.65;
  }

  .contact-footer__bar nav {
    gap: .35rem 1rem;
  }
}
