/* ============================================================
   QERIONN Public Polish v1 — loads AFTER site.css.
   1) Header brand stack: breathing room between logo / legal
      name / full form (was cramped at 2px gap, 190px width).
   2) Footer: compacted vertically (~40% shorter) — same links,
      same markup, smaller paddings and type.
   3) Site-wide cursor gold glow (element injected by
      public_polish_v1.js; desktop pointers only).
   Presentational only — no markup or JS-hook changes.
   ============================================================ */

/* ---------- 1. Header brand stack spacing ---------- */
.header-brand-stack {
  width: 208px !important;
  gap: 7px !important;
}
.brand-logo {
  margin-bottom: 1px !important;
}
.header-brand-legal-name {
  width: 208px !important;
  max-width: 208px !important;
  margin-top: 4px !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.035em !important;
  line-height: 1.25 !important;
}
.header-brand-full-form {
  width: 208px !important;
  max-width: 208px !important;
  font-size: 0.5rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0.015em !important;
  opacity: 0.92;
}
@media (max-width: 1120px) {
  .header-brand-stack,
  .header-brand-legal-name,
  .header-brand-full-form {
    width: 188px !important;
    max-width: 188px !important;
  }
  .header-brand-full-form { font-size: 0.47rem !important; }
}

/* ---------- 2. Compact footer ---------- */
.site-footer {
  padding: 42px 0 16px !important;
}
.footer-grid {
  gap: 30px 26px !important;
}
.footer-brand-identity .footer-logo,
.footer-logo {
  width: 150px !important;
  height: auto !important;
  margin-bottom: 12px !important;
}
.footer-badge {
  width: 112px !important;
  height: auto !important;
}
.footer-brand p {
  font-size: 0.79rem !important;
  line-height: 1.55 !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}
.footer-brand .footer-legal-name {
  margin-top: 12px !important;
  font-size: 0.85rem !important;
}
.footer-brand .footer-full-form {
  font-size: 0.69rem !important;
  margin-top: 4px !important;
}
.footer-grid section:not(.footer-brand) {
  gap: 7px !important;
}
.footer-grid h2 {
  margin: 0 0 5px !important;
  font-size: 0.74rem !important;
}
.footer-grid a {
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
}
.footer-bottom {
  margin-top: 28px !important;
  padding-top: 15px !important;
  font-size: 0.73rem !important;
}
@media (max-width: 768px) {
  .site-footer { padding: 34px 0 14px !important; }
  .footer-grid { gap: 22px 18px !important; }
}

/* ---------- 3. Cursor gold glow (site-wide) ---------- */
#q-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(circle, rgba(214, 178, 94, 0.065), transparent 62%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
  will-change: transform;
}
html.q-glow-on #q-cursor-glow { opacity: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  #q-cursor-glow { display: none; }
}

/* ---------- v2: FAQ accordions + commitment strips (site pages) ---------- */
.q-commit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.q-commit-list li {
  padding: 18px 20px 18px 46px;
  position: relative;
  border: 1px solid rgba(214, 178, 94, 0.2);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(13, 28, 47, 0.7), rgba(7, 18, 32, 0.7));
  color: #b6c0d0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.q-commit-list li::before {
  content: "\2713";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 178, 94, 0.15);
  color: #d6b25e;
  font-size: 0.7rem;
  font-weight: 800;
}
.q-commit-list strong { color: #e9cd85; }
@media (max-width: 720px) { .q-commit-list { grid-template-columns: 1fr; } }

.q-faq-list { display: grid; gap: 10px; }
.q-faq {
  border: 1px solid rgba(214, 178, 94, 0.18);
  border-radius: 14px;
  background: rgba(10, 24, 40, 0.55);
  overflow: hidden;
  transition: border-color 0.22s ease;
}
.q-faq[open] { border-color: rgba(214, 178, 94, 0.45); }
.q-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 44px 16px 18px;
  position: relative;
  color: #f4f0e6;
  font-weight: 700;
  font-size: 0.94rem;
}
.q-faq summary::-webkit-details-marker { display: none; }
.q-faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(214, 178, 94, 0.4);
  color: #d6b25e;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}
.q-faq[open] summary::after {
  content: "\2212";
  background: rgba(214, 178, 94, 0.15);
}
.q-faq > p {
  margin: 0;
  padding: 0 18px 16px;
  color: #94a5ba;
  font-size: 0.88rem;
  line-height: 1.65;
}
.q-faq summary:focus-visible { outline: 2px solid #d6b25e; outline-offset: -2px; }

/* ---------- v3: feature-card illustrations (candidates page) ---------- */
.feature-list-grid .q-ill {
  display: block;
  width: 100%;
  max-width: 216px;
  height: auto;
  margin: 8px auto 16px;
  border-radius: 14px;
  background: radial-gradient(140px 90px at 60% 30%, rgba(214, 178, 94, 0.07), transparent 70%);
}
.feature-list-grid article { text-align: left; }
.feature-list-grid article:hover .q-ill { transform: translateY(-4px); }
.feature-list-grid .q-ill { transition: transform 0.28s ease; }
@media (prefers-reduced-motion: reduce) {
  .feature-list-grid .q-ill { transition: none; }
  .feature-list-grid article:hover .q-ill { transform: none; }
}

/* hero illustrations on solution pages */
.page-hero .q-ill-hero {
  display: block;
  width: min(300px, 70vw);
  height: auto;
  margin: 26px 0 6px;
  border-radius: 16px;
  border: 1px solid rgba(214, 178, 94, 0.2);
  background: linear-gradient(160deg, rgba(13, 28, 47, 0.5), rgba(7, 18, 32, 0.5));
  padding: 10px;
}

/* ============================================================
   v4 — Header: Udyam badge height matched to company logo height
   Logo intrinsic ratio 406x110, badge intrinsic ratio 760x190.
   Badge height is pinned to the logo's rendered height at every
   breakpoint; width follows automatically (no distortion). The
   badge's grid track is switched to max-content so the wider
   badge never clips against the nav. Header logo untouched.
   ============================================================ */
.brand-cluster {
  grid-template-columns: max-content max-content !important;
}
.brand-badge {
  /* 88% of a full height-match — visibly taller than before, without
     the badge growing wide enough to squeeze the nav against the
     header actions (see compensating gap tightening below). */
  height: calc(var(--q-header-logo-width) * 96.8 / 406) !important;
  width: auto !important;
  max-width: none !important;
}
@media (min-width: 1181px) {
  .brand-badge {
    height: calc(186px * 96.8 / 406) !important;
  }
  .header-inner.shell {
    column-gap: 20px !important;
  }
  .brand-cluster {
    gap: 14px !important;
  }
  .site-navigation {
    gap: 8px !important;
  }
  .header-actions {
    gap: 6px !important;
  }
}
@media (min-width: 1181px) and (max-width: 1450px) {
  .brand-badge {
    height: calc(166px * 96.8 / 406) !important;
  }
  .header-inner.shell {
    column-gap: 12px !important;
  }
  .brand-cluster {
    gap: 10px !important;
  }
  .site-navigation {
    gap: 5px !important;
  }
  .site-navigation a,
  .site-navigation summary {
    font-size: 0.76rem !important;
  }
  .header-actions {
    gap: 5px !important;
  }
}

/* ============================================================
   v5 — LOCAL PREVIEW ONLY: Founder / Managing Director section
   (public_site/templates/public_site/_about_content.html).
   Remove this block if the founder section is removed.
   ============================================================ */
.q-founder-section {
  background:
    radial-gradient(680px 380px at 85% 0%, rgba(214, 178, 94, 0.08), transparent 60%),
    #071322;
  border-top: 1px solid rgba(214, 178, 94, 0.16);
  border-bottom: 1px solid rgba(214, 178, 94, 0.16);
}
.q-founder-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: start;
}
.q-founder-photo {
  margin: 0;
  position: sticky;
  top: 100px;
}
.q-founder-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid #d6b25e;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.q-founder-copy h3 {
  font-size: 1.5rem;
  color: #f4f0e6;
  margin: 0 0 4px;
}
.q-founder-title {
  color: #d6b25e;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  margin: 0 0 22px;
}
.q-founder-copy h4 {
  color: #e9cd85;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 28px 0 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(214, 178, 94, 0.14);
}
.q-founder-copy h4:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.q-founder-copy p {
  color: #a9b7c9;
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0 0 14px;
}
@media (max-width: 760px) {
  .q-founder-card { grid-template-columns: 1fr; gap: 24px; }
  .q-founder-photo { position: static; width: 140px; margin: 0 auto; }
}

/* ---------- v6: services page — illustration per service card ---------- */
.service-detail .q-ill-service {
  float: right;
  width: 176px;
  height: auto;
  margin: 2px 0 18px 26px;
  border-radius: 14px;
  border: 1px solid rgba(214, 178, 94, 0.16);
  background: radial-gradient(120px 80px at 60% 30%, rgba(214, 178, 94, 0.06), transparent 70%);
  opacity: 0.96;
}
@media (max-width: 760px) {
  .service-detail .q-ill-service {
    float: none;
    display: block;
    width: 150px;
    margin: 0 auto 18px;
  }
}

/* ---------- v7: student/institution portal illustrations ---------- */
.q-ill-su {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 4px 0 16px;
  border-radius: 14px;
  background: radial-gradient(120px 80px at 60% 30%, rgba(214, 178, 94, 0.06), transparent 70%);
}
.su-form-intro .q-ill-su { max-width: 220px; margin: 14px 0 18px; }
.su-status-card .q-ill-su,
.su-cta-group .q-ill-su { max-width: 180px; }

/* ============================================================
   v8 — BUG FIX: buttons inside .service-card / .journey-card
   were invisible (pale-gold-on-gold) because .service-card a
   sets color:var(--gold-light), which beats .button-gold's own
   color:#07101f on specificity (0-1-1 vs 0-1-0). Restore correct
   per-variant text color, and drop the automatic " -->" suffix
   that rule adds (buttons already show their own arrow/text).
   ============================================================ */
.service-card a.button::after,
.journey-card a.button::after {
  content: "" !important;
}
.service-card a.button.button-gold,
.journey-card a.button.button-gold {
  color: #07101f !important;
}
.service-card a.button.button-dark,
.journey-card a.button.button-dark {
  color: #f4f0e6 !important;
}
.service-card a.button.button-outline,
.journey-card a.button.button-outline,
.service-card a.button.button-quiet,
.journey-card a.button.button-quiet {
  color: #f4f0e6 !important;
}

/* ============================================================
   v9 — BUG FIX: .section-shell had NO padding rule anywhere in
   site.css, so content (e.g. careers.html's "Register your
   profile" button) sat flush against the very next section
   (cta-band), with zero breathing room.
   ============================================================ */
.section-shell {
  padding: clamp(80px, 9vw, 125px) 0;
}
