/* ═══ The UX Team — responsive layer ═══
   Loaded on every page. Desktop layout is untouched; everything below
   the media query only kicks in on small screens, using !important to
   win over the inline styles the pages are built with. */

img { max-width: 100%; }

/* Mobile menu bits — hidden on desktop */
.uxt-menu-btn { display: none; }
.uxt-menu-overlay { display: none; }

@keyframes uxtPop {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes uxtBob {
  0%, 100% { transform: rotate(90deg) translateX(0); }
  50%      { transform: rotate(90deg) translateX(-2px); }
}

@media (max-width: 900px) {

  /* ── Navigation ─────────────────────────────────────────── */
  nav { display: none !important; }
  /* hide the top-bar Book a Call (the overlay menu has its own) */
  :is(div, header)[style]:has(> nav) a[href*="tidycal"] { display: none !important; }
  /* store page: keep the sticky header clear of the menu button */
  header { padding-left: 16px !important; padding-right: 84px !important; }

  /* ── Fun menu button (where the burger would be) ────────── */
  .uxt-menu-btn {
    position: fixed; top: 12px; right: 14px; z-index: 1000;
    width: 56px; height: 56px; border-radius: 50%; padding: 0; font: inherit;
    background: #FADA5E; border: 2.5px solid #0B0F0F;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; user-select: none; -webkit-user-select: none;
    box-shadow: 0 6px 18px rgba(11, 15, 15, 0.28);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  }
  .uxt-menu-btn:active { transform: scale(0.9); }
  .uxt-face {
    font-family: 'Cabin', sans-serif; font-weight: 700; font-size: 21px;
    color: #0B0F0F; line-height: 1; letter-spacing: 1px;
    transform: rotate(90deg);
    animation: uxtBob 2.6s ease-in-out infinite;
  }
  .uxt-close {
    display: none;
    font-family: 'Cabin', sans-serif; font-weight: 700; font-size: 26px;
    color: #0B0F0F; line-height: 1;
  }
  html.uxt-menu-open .uxt-menu-btn { background: #FFFDF8; transform: rotate(360deg); }
  html.uxt-menu-open .uxt-menu-btn .uxt-face { display: none; }
  html.uxt-menu-open .uxt-menu-btn .uxt-close { display: block; }

  /* ── Full-screen overlay menu ───────────────────────────── */
  .uxt-menu-overlay {
    position: fixed; inset: 0; z-index: 900; background: #41757A;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 6px; padding: 32px 24px;
  }
  .uxt-menu-overlay::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('./uploads/seamless-pattern-04.png');
    background-size: 340px; opacity: 0.14; mix-blend-mode: overlay;
    pointer-events: none;
  }
  html.uxt-menu-open .uxt-menu-overlay { display: flex; }
  .uxt-menu-overlay a {
    position: relative;
    font-family: 'Cabin', sans-serif; font-weight: 700; font-size: 32px;
    color: #FFFDF8; text-decoration: none;
    padding: 10px 22px; border-radius: 100px;
    animation: uxtPop 0.45s cubic-bezier(0, 0, 0.2, 1) both;
  }
  .uxt-menu-overlay a:active { background: rgba(255, 253, 248, 0.12); }
  .uxt-menu-overlay a:nth-of-type(1) { animation-delay: 0.03s; }
  .uxt-menu-overlay a:nth-of-type(2) { animation-delay: 0.09s; }
  .uxt-menu-overlay a:nth-of-type(3) { animation-delay: 0.15s; }
  .uxt-menu-overlay a:nth-of-type(4) { animation-delay: 0.21s; }
  .uxt-menu-overlay a:nth-of-type(5) { animation-delay: 0.3s; }
  .uxt-menu-cta {
    background: #FADA5E !important; color: #0B0F0F !important;
    font-family: 'Hind Madurai', sans-serif !important;
    font-size: 17px !important; padding: 14px 30px !important;
    margin-top: 20px;
  }

  /* ── Layout: stack every multi-column grid ────────────────
     Note: the runtime re-serializes inline styles with a space after
     the colon ("width: 1px"), so selectors cover both raw and
     serialized forms. */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* footer link columns read better two-up */
  footer [style*="repeat(4,1fr)"], footer [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  /* thin vertical divider bars make no sense stacked */
  [style*="width:1px"], [style*="width: 1px"] { display: none !important; }
  /* pricing row cells: drop desktop column padding, breathe vertically */
  [style*="grid-template-columns:1fr auto"], [style*="grid-template-columns: 1fr auto"] { gap: 24px !important; }
  [style*="padding:0 32px"], [style*="padding: 0px 32px"] { padding: 0 !important; }
  [style*="padding-right:32px"], [style*="padding-right: 32px"] { padding-right: 0 !important; }
  [style*="padding-left:32px"], [style*="padding-left: 32px"] { padding-left: 0 !important; }

  /* ── Gutters & spacing ──────────────────────────────────── */
  [style*="px 80px"], [style*="px 72px"] {
    padding-left: 20px !important; padding-right: 20px !important;
  }
  [style*="gap:80px"], [style*="gap: 80px"],
  [style*="gap:72px"], [style*="gap: 72px"],
  [style*="gap:64px"], [style*="gap: 64px"] { gap: 28px !important; }
  [style*="gap:48px"], [style*="gap: 48px"] { gap: 24px !important; }

  /* heroes: let the content set the height */
  [style*="min-height:100vh"], [style*="min-height: 100vh"],
  [style*="min-height:90vh"], [style*="min-height: 90vh"] { min-height: auto !important; }

  /* hero portrait photo: square crop works better stacked */
  [style*="aspect-ratio:3/4"], [style*="aspect-ratio: 3 / 4"] { aspect-ratio: 1 / 1 !important; }

  /* oversized decorative illustrations */
  [style*="width:440px"], [style*="width: 440px"] { width: 200px !important; height: 200px !important; }
  [style*="width:320px"][style*="height:320px"],
  [style*="width: 320px"][style*="height: 320px"] { width: 170px !important; height: 170px !important; }
}
