/* ==========================================================================
   SUPPORT PAGE — Resources & Support (../contact.html)
   Page-only pieces layered on top of the shared ins-* system:
   contact-channel cards (portal lake-blue depth scale), the demo panel,
   the support request form and the office map in a portal-style browser
   frame. Dark overrides live at the bottom, responsive after that.
   ========================================================================== */

/* ---------------- online resources: lone FAQ card ---------------- */

/* the resources grid holds a single card now — center it at one column's width */
.ins-res--single {
  grid-template-columns: min(340px, 100%);
  justify-content: center;
}

/* ---------------- contact channel cards ---------------- */

.sup-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: 26px;
}

.sup-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 50, 79, 0.1);
  box-shadow: 0 14px 34px rgba(22, 50, 79, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sup-channel:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(22, 50, 79, 0.13); }

/* icon tiles walk the portal's lake-blue depth scale, deep → shallow */
.sup-channel__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #ffffff;
  box-shadow: 0 10px 22px -8px rgba(9, 40, 72, 0.55);
}

.sup-channel__icon svg { width: 22px; height: 22px; stroke: currentColor; }

.sup-channel:nth-child(1) .sup-channel__icon { background: linear-gradient(150deg, #184e6c 0%, #246285 100%); }
.sup-channel:nth-child(2) .sup-channel__icon { background: linear-gradient(150deg, #387ea2 0%, #4a90b5 100%); }
.sup-channel:nth-child(3) .sup-channel__icon { background: linear-gradient(150deg, #5ba3c6 0%, #77b5d3 100%); }
.sup-channel:nth-child(4) .sup-channel__icon { background: linear-gradient(150deg, #2b5f8f 0%, #4a90c2 100%); }

.sup-channel__body b {
  display: block;
  margin-bottom: 4px;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: #16324f;
}

.sup-channel__body p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #47617c; }

.sup-channel__body a {
  color: #1f6fb5;
  font-weight: 600;
  text-decoration: none;
}

.sup-channel__body a:hover { text-decoration: underline; }

/* compact store badges inside the Install App channel */
.sup-channel__stores { display: flex; flex-wrap: wrap; margin-top: 10px; gap: 8px; }
.sup-channel__stores .ins-store { padding: 7px 13px 7px 11px; border-radius: 11px; box-shadow: 0 8px 18px rgba(16, 35, 58, 0.22); }
.sup-channel__stores .ins-store svg { width: 19px; height: 19px; }
.sup-channel__stores .ins-store strong { font-size: 12.5px; }
.sup-channel__stores .ins-store small { font-size: 8.5px; }

/* ---------------- click-to-copy contacts + toast ---------------- */

.sup-copy { cursor: pointer; }

.sup-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(92vw, 480px);
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, #16324f, #2b5f8f);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 18px 44px rgba(9, 40, 72, 0.4);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.sup-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.sup-toast svg { width: 16px; height: 16px; color: #4ade80; flex: none; }

.sup-toast b { font-weight: 500; color: #dcebf7; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- office map — portal-style card + browser frame ---------- */

.sup-map {
  position: relative;
  margin-top: clamp(30px, 5vh, 48px);
  padding: clamp(18px, 2.6vw, 34px);
  border-radius: clamp(18px, 2vw, 28px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(150deg, #184e6c 0%, #387ea2 60%, #5ba3c6 100%);
  box-shadow: 0 34px 70px -24px rgba(9, 40, 72, 0.55);
}

/* faint world map echo from the portal section */
.sup-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets2/all-images/world-map.webp") center 40% / 120% auto no-repeat;
  opacity: 0.12;
  filter: brightness(2.2);
  pointer-events: none;
}

/* giant ghost word, portal style */
.sup-map__ghost {
  position: absolute;
  left: 2%;
  bottom: -3%;
  z-index: 0;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* glass chips, portal style */
.sup-map__chip {
  position: absolute;
  top: clamp(14px, 1.8vw, 24px);
  z-index: 3;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.16) 60%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #eaf3fb;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.06em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 22px -8px rgba(9, 40, 72, 0.4);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
}

.sup-map__chip--hq  { left: clamp(14px, 1.8vw, 24px); }
.sup-map__chip--loc { right: clamp(14px, 1.8vw, 24px); }

/* the map itself, in the portal's mini browser frame */
.sup-map__shot {
  position: relative;
  z-index: 2;
  margin: clamp(38px, 4.5vw, 56px) auto 0;
  max-width: 980px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 34px 64px -22px rgba(9, 40, 72, 0.5), 0 12px 28px rgba(9, 40, 72, 0.16);
  background: #ffffff;
}

/* frosted glass title bar with mac traffic lights */
.sup-map__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(1.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.sup-map__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.15);
}

.sup-map__bar i:nth-child(1) { background: #ff5f57; }
.sup-map__bar i:nth-child(2) { background: #febc2e; }
.sup-map__bar i:nth-child(3) { background: #28c840; }

.sup-map__bar span {
  margin-left: 6px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #22364a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sup-map__shot iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 40vw, 440px);
  border: 0;
  background: #e8eef4;
}

/* directions row under the frame */
.sup-map__foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(16px, 2.4vw, 24px);
}

.sup-map__addr {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: #eaf3fb;
}

.sup-map__foot .ins-btn--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  min-width: 0;
  height: 46px;
  padding: 0 24px;
}

.sup-map__foot .ins-btn--ghost:hover { background: rgba(255, 255, 255, 0.26); }

/* links inside the shared office cards (address / email / call) */
.ins-card p a { color: #1f6fb5; font-weight: 600; text-decoration: none; }
.ins-card p a:hover { text-decoration: underline; }

/* ---------------- office cards — compact, icon + text on one line -------- */

.sup-office {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  text-align: left;
}

.sup-office .ins-card__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 0;
}

.sup-office .ins-card__icon svg { width: 22px; height: 22px; }

.sup-office__body { flex: 1; min-width: 0; }

.sup-office h3 { margin: 0 0 3px; font-size: 16px; }

.sup-office p { font-size: 13.5px; line-height: 1.55; overflow-wrap: break-word; }

/* ==========================================================================
   DARK THEME
   ========================================================================== */

[data-theme="dark"] .ins-card p a { color: #7db8e8; }

[data-theme="dark"] .sup-channel {
  background: rgba(10, 30, 51, 0.85);
  border-color: rgba(125, 184, 232, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .sup-channel__body b { color: #dcebf7; }
[data-theme="dark"] .sup-channel__body p { color: #9db4c9; }
[data-theme="dark"] .sup-channel__body a { color: #7db8e8; }

[data-theme="dark"] .sup-map {
  background: linear-gradient(150deg, #0c2a3d 0%, #184e6c 60%, #246285 100%);
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .sup-map__shot { border-color: rgba(255, 255, 255, 0.25); }
[data-theme="dark"] .sup-map__bar { background: rgba(10, 30, 51, 0.65); border-bottom-color: rgba(125, 184, 232, 0.2); }
[data-theme="dark"] .sup-map__bar span { color: #dcebf7; }
[data-theme="dark"] .sup-map__shot iframe { filter: brightness(0.92); }

/* ---------------- responsive ---------------- */

@media (max-width: 960px) {
  .sup-channels { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sup-map__ghost { font-size: clamp(40px, 12vw, 64px); }
  .sup-map__shot { margin-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .sup-channel, .sup-channel:hover { transform: none; transition: none; }
}
