/*
Theme Name: Qredo
Description: Rebuild of the qredo.com design (Next.js/Tailwind snapshot, Dec 2025) as a classic WordPress theme. On activation it imports all pages and blog posts from data/content.json.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: qredo
*/

/* ---- desktop dropdowns (the original used React popovers) ---- */
#nav .qd-item { position: relative; }
#nav .qd-panel {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 260px; padding: 14px 0; margin-top: 10px;
  background: rgba(20, 5, 75, .97); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s; z-index: 200; text-align: left;
}
#nav .qd-item:hover .qd-panel, #nav .qd-item.open .qd-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#nav .qd-panel a { display: block; padding: 9px 24px; color: #fff; font-size: 15px; letter-spacing: .04em; text-transform: none; white-space: nowrap; }
#nav .qd-panel a:hover { background: rgba(236, 106, 230, .25); }
#nav .qd-item::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 20px; }

/* ---- mobile menu ---- */
.mobile-nav.qd-open { height: calc(100vh - 86px) !important; opacity: 1 !important; }
.mobile-nav.qd-open .mobile-links-container { opacity: 1 !important; transform: none !important; }
.mobile-nav.qd-open .mobile-link { opacity: 1 !important; transform: none !important; }
.mobile-nav:not(.qd-open) { pointer-events: none; }

/* ---- blog topic pills ---- */
.qd-hide { display: none !important; }
label[for].qd-on,
a.qd-topic.qd-on { background: #ec6ae6 !important; color: #11075C !important; }
a.qd-topic { color: #fff; text-decoration: none; }

/* ---- footer ---- */
.qd-footer { z-index: 1; color: #fff; }
.qd-footer a { color: #fff; text-decoration: none; }
.qd-footer a:hover { color: #ec6ae6; }
.qd-footer h4 { color: #fff; }
.qd-footer ul { list-style: none; margin: 0; padding: 0; }

/* ---- WP basics ---- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.qd-pagination { display: flex; gap: 12px; justify-content: center; padding: 40px 0; }
.qd-pagination a, .qd-pagination span { color: #fff; padding: 6px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.prose img { max-width: 100%; height: auto; }
.prose iframe { max-width: 100%; }
