/* vup_2018_child — css/components/contact-widget.css
 * Scales with RIGHT sidebar width and animates cleanly.
 * 2025-10-29
 */

/* ===== CARD ===== */
.vu-widget.vu-contact {
  --contact-bg: #111;
  --contact-text: #f4f4f4;
  --contact-link: #ffffff;

  /* 0. MAIN ELEMENT (Content Layer) */
  background: transparent;
  border: none;
  box-shadow: none;

  /* spacing */
  padding: 25px 5px 15px;
  /* margin handled by base */

  /* layout */
  position: relative;
  z-index: 1;
  overflow: visible;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1cqw, 16px);
  font-size: clamp(28px, 8cqw, 56px);
  /* max-width handled by base */
  text-align: center;
  transition: font-size .24s ease, opacity .24s ease, transform .24s ease;
}

/* 1. GLASS LAYER (Bottom) */
.vu-widget.vu-contact::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  border-radius: 14px;
  /* 6px + 8px */
  pointer-events: none;
}

/* 2. MAIN COLOR LAYER (Middle) */
.vu-widget.vu-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: var(--grad-header, linear-gradient(135deg, #000 0%, #0a0a0c 100%));
  border: 4px solid var(--vu-gold, #ffd900);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);

  pointer-events: none;
}

/* Titles, phone, email blocks remain as you have them */


/* ===== TITLE ===== */
.vu-widget.vu-contact .widget-title {
  margin: 30px 0 10px 0;
  font-family: var(--vu-title-font);
  text-transform: uppercase;
  color: var(--contact-text);
}

/* Two-line control */
.vu-widget.vu-contact .widget-title .lead {
  display: block;
  font-weight: 500;
  font-size: var(--vu-h5-size);
  letter-spacing: .02em;
  line-height: 1.05;
  text-align: center;
}

.vu-widget.vu-contact .widget-title .punch {
  display: block;
  font-weight: 600;
  font-size: var(--vu-h3-size);
  letter-spacing: .01em;
  line-height: 1.02;
  text-align: center;
}

/* ===== PHONE ===== */
.vu-widget.vu-contact p {
  margin: 0;
}

.vu-widget.vu-contact p strong a {
  display: block;
  font-family: var(--vu-title-font);
  font-size: var(--vu-h3-size);
  line-height: 1.05;
  letter-spacing: .015em;
  color: var(--contact-link);
  text-decoration: none;
}

.vu-widget.vu-contact p strong a:hover {
  color: var(--vu-gold);
}

/* ===== EMAIL ===== */
.vu-widget.vu-contact p a[href^="mailto:"] {
  font-family: var(--vu-system-font);
  font-size: var(--vu-h6-size);
  line-height: .75;
  color: #dddddd;
}

.vu-widget.vu-contact p a[href^="mailto:"]:hover {
  color: var(--vu-gold);
}

/* ===== LOCAL PHONE (injected by JS) ===== */
.vu-widget.vu-contact .vu-contact-local {
  margin: 0 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.vu-widget.vu-contact .vu-contact-local strong a {
  display: block;
  font-family: var(--vu-title-font);
  font-size: var(--vu-h3-size);
  line-height: 1.05;
  letter-spacing: .015em;
  color: var(--vu-gold, #ffd900);
  text-decoration: none;
}

.vu-widget.vu-contact .vu-contact-local strong a:hover {
  color: #fff;
}

.vu-widget.vu-contact .vu-contact-local__badge {
  display: inline-block;
  font-family: var(--vu-system-font);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111;
  background: linear-gradient(135deg, #ffe066, #e6b800);
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 2px;
}


/* Ensure ancestors don't break sticky */
.vu-grid,
#right-sidebar {
  overflow: visible;
  /* required for sticky to work */
}


/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .vu-widget.vu-contact {
    transition: 1s;
  }
}

/* ===== Global Contact Pill with Icons ===== */
.vu-contact-pill-wrapper {
  --pill-navy: #1a1f35;
  --pill-gold-start: #ffe066;
  --pill-gold-mid: #ffd700;
  --pill-gold-end: #e6b800;
  --pill-glass: rgba(255, 255, 255, 0.45);
  --pill-glass-border: rgba(255, 255, 255, 0.6);

  position: fixed;
  inset-inline-end: clamp(12px, 4vw, 48px);
  bottom: clamp(12px, 4vw, 40px);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.vu-contact-pill-wrapper.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vu-contact-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pill-gold-start), var(--pill-gold-mid) 50%, var(--pill-gold-end));
  color: var(--pill-navy);
  border: none;
  box-shadow:
    0 0 0 3px var(--pill-glass-border),
    0 0 0 7px var(--pill-glass),
    0 12px 28px rgba(5, 7, 19, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Glass outset glow layer */
.vu-contact-pill::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pill-glass), rgba(255, 255, 255, 0.2));
  z-index: -1;
  pointer-events: none;
}

.vu-contact-pill:hover,
.vu-contact-pill:focus-visible {
  background: linear-gradient(135deg, #fff0a0, #ffe44d 50%, #ffd200);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.8),
    0 0 0 8px rgba(255, 255, 255, 0.5),
    0 14px 32px rgba(255, 217, 0, 0.4);
}

.vu-contact-pill:active {
  transform: scale(0.95);
}

.vu-contact-pill__icon {
  width: 22px;
  height: 22px;
  stroke: var(--pill-navy);
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .vu-contact-pill-wrapper {
    inset-inline-end: 10px;
  }
}

.vu-contact-pill-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 10px;
  min-width: 240px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6),
    0 0 0 4px rgba(255, 255, 255, 0.3),
    0 12px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  gap: 6px;
}

.vu-contact-pill-wrapper.is-open .vu-contact-pill-menu {
  display: flex;
}

.vu-contact-pill-menu__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 600;
  color: var(--pill-navy, #1a1f35);
  background: rgba(245, 245, 245, 0.8);
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.vu-contact-pill-menu__link:hover {
  background: linear-gradient(135deg, rgba(255, 217, 0, 0.35), rgba(255, 246, 165, 0.25));
  transform: translateX(2px);
}

.vu-contact-pill-menu__link--local {
  background: linear-gradient(135deg, rgba(255, 217, 0, 0.2), rgba(255, 246, 165, 0.15));
  border: 1px solid rgba(255, 217, 0, 0.35);
}

.vu-contact-pill-menu__link--local[hidden] {
  display: none !important;
}

.vu-contact-pill-menu__link--local:hover {
  background: linear-gradient(135deg, rgba(255, 217, 0, 0.4), rgba(255, 246, 165, 0.3));
}

.vu-contact-pill-menu__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--pill-navy, #1a1f35);
  stroke-width: 2;
  fill: none;
}

.vu-contact-pill-menu__value {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.vu-contact-pill-menu__badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--vu-team-space, #0f1834);
  background: var(--grad-team-gold, linear-gradient(135deg, #ffd900, #fff6a5));
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: auto;
  box-shadow: 0 2px 4px rgba(255, 217, 0, 0.15);
}