/* ============================================================
   Adsgalaxy — shared components for inner pages + mega menu
   Loaded on ALL pages after style.css
============================================================ */

/* ---------- Mega menu (desktop) ---------- */
.nav-drop { position: static; }
.nav-drop__btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  transition: color 0.25s;
}
.nav-drop__btn i { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.nav-drop:hover .nav-drop__btn,
.nav-drop.is-open .nav-drop__btn { color: var(--text); }
.nav-drop:hover .nav-drop__btn i,
.nav-drop.is-open .nav-drop__btn i { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(14, 14, 16, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 90;
}
.nav-drop:hover .mega,
.nav-drop:focus-within .mega,
.nav-drop.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 34px clamp(20px, 4vw, 48px) 0;
}
.mega__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}
.mega--sm .mega__grid { grid-template-columns: repeat(5, 1fr); }
.mega__col { display: flex; flex-direction: column; gap: 2px; }
.mega__head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.mega__col a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 0;
  transition: color 0.2s, transform 0.2s var(--ease);
}
.mega__col a:hover { color: var(--accent); transform: translateX(3px); }
.mega__col a::after { content: none; }
.mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.mega__foot-text { font-size: 13.5px; color: var(--text-2); }
.mega__foot-text b { color: var(--text); }

/* industry mega cards */
.mega__ind {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.mega__ind:hover { border-color: var(--accent); transform: translateY(-3px); }
.mega__ind::after { content: none; }
.mega__ind i { width: 20px; height: 20px; color: var(--accent); }
.mega__ind-name { font-size: 14px; font-weight: 700; color: var(--text); }
.mega__ind-desc { font-size: 12px; color: var(--text-3); line-height: 1.4; }

@media (max-width: 1024px) {
  .nav-drop { display: none; }
}

/* ---------- Mobile menu accordions ---------- */
.mmenu__group { border-bottom: 1px solid var(--line); }
.mmenu__group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.mmenu__group summary::-webkit-details-marker { display: none; }
.mmenu__group summary i { width: 16px; height: 16px; color: var(--text-3); transition: transform 0.3s var(--ease); }
.mmenu__group[open] summary i { transform: rotate(180deg); }
.mmenu__sub { display: flex; flex-direction: column; gap: 2px; padding: 0 0 14px 12px; }
.mmenu__sub a { font-size: 14.5px; color: var(--text-2); padding: 6px 0; }
.mmenu__sub a:hover { color: var(--accent); }
.mmenu__sub-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 10px 0 4px;
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.crumbs a { color: var(--text-2); transition: color 0.2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs i { width: 12px; height: 12px; }
.crumbs span[aria-current] { color: var(--text-3); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(120px, 16vh, 170px) 0 clamp(40px, 6vh, 70px); position: relative; }
.page-hero .crumbs { margin-bottom: 28px; }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 900px;
}
.page-hero__title em { color: var(--accent); font-style: normal; }
.page-hero__lead { margin-top: 24px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 640px; line-height: 1.55; }
.page-hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero__stats {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--line);
}
.page-hero__stat { padding: 22px 24px 0 0; border-right: 1px solid var(--line); }
.page-hero__stat:last-child { border-right: none; }
.page-hero__stat-num { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; color: var(--accent); }
.page-hero__stat-label { margin-top: 6px; font-size: 13px; color: var(--text-2); }

/* ---------- Pains ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.pain:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.pain i { width: 22px; height: 22px; color: var(--accent); }
.pain h3 { margin-top: 14px; font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.pain p { margin-top: 8px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
@media (max-width: 900px) { .pains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pains { grid-template-columns: 1fr; } }

/* ---------- Funnel visual (industry pages) ---------- */
.funnel { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin-inline: auto; }
.funnel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 18px 24px;
  margin-inline: auto;
  width: 100%;
  transition: border-color 0.3s;
}
.funnel__row:nth-child(2) { width: 88%; }
.funnel__row:nth-child(3) { width: 76%; }
.funnel__row:nth-child(4) { width: 64%; border-color: var(--accent); background: var(--accent-dim); }
.funnel__row:hover { border-color: var(--line-strong); }
.funnel__label { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.funnel__label i { width: 18px; height: 18px; color: var(--accent); }
.funnel__num { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 700; color: var(--text); white-space: nowrap; }
.funnel__row:nth-child(4) .funnel__num { color: var(--accent); }
.funnel__note { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ---------- Quiz ---------- */
.quiz {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}
.quiz__side {
  padding: clamp(28px, 3.5vw, 48px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(212, 255, 63, 0.06), transparent 60%),
    var(--surface);
}
.quiz__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 8px 14px;
}
.quiz__badge i { width: 13px; height: 13px; color: var(--accent); }
.quiz__side-title { margin-top: 22px; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.2; }
.quiz__side-title em { color: var(--accent); font-style: normal; }
.quiz__side-text { margin-top: 14px; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.quiz__perks { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.quiz__perk { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.quiz__perk i { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

.quiz__main { padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; min-height: 480px; }
.quiz__progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.quiz__progress-label { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); white-space: nowrap; }
.quiz__bar { flex: 1; height: 4px; border-radius: 100px; background: var(--surface-2); overflow: hidden; }
.quiz__bar-fill { height: 100%; width: 0; background: var(--accent); border-radius: 100px; transition: width 0.4s var(--ease); }
.quiz__q { font-size: clamp(18px, 1.8vw, 23px); font-weight: 700; line-height: 1.3; }
.quiz__hint { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.quiz__options { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz__opt {
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz__opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.quiz__opt.is-selected { border-color: var(--accent); background: var(--accent-dim); }
.quiz__opt-mark {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: 0.2s;
}
.quiz__opt.is-selected .quiz__opt-mark { background: var(--accent); border-color: var(--accent); }
.quiz__opt.is-selected .quiz__opt-mark::after { content: "✓"; font-size: 11px; color: var(--accent-text); font-weight: 800; }
.quiz__nav { margin-top: auto; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.quiz__back {
  background: none;
  border: none;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.quiz__back:hover { color: var(--text); }
.quiz__back i { width: 15px; height: 15px; }
.quiz__back[hidden] { visibility: hidden; }

.quiz__contact { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; max-width: 440px; }
.quiz__result-note {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.quiz__result-note b { color: var(--accent); }
.quiz__success { margin: auto 0; text-align: center; padding: 30px 0; }
.quiz__success i { width: 44px; height: 44px; color: var(--accent); }
.quiz__success-title { margin-top: 16px; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.quiz__success-text { margin-top: 10px; font-size: 14.5px; color: var(--text-2); max-width: 380px; margin-inline: auto; line-height: 1.55; }

@media (max-width: 920px) {
  .quiz { grid-template-columns: 1fr; }
  .quiz__side { border-right: none; border-bottom: 1px solid var(--line); }
  .quiz__options { grid-template-columns: 1fr; }
  .quiz__main { min-height: 430px; }
}

/* ---------- "Fixed in contract" / KPI block ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}
.kpi i { width: 20px; height: 20px; color: var(--accent); }
.kpi h3 { margin-top: 12px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.kpi p { margin-top: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } }

/* ---------- Related services ---------- */
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.related__card:hover { border-color: var(--accent); transform: translateY(-4px); }
.related__card i { width: 20px; height: 20px; color: var(--accent); }
.related__name { font-size: 15px; font-weight: 700; color: var(--text); }
.related__desc { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.related__arrow { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.related__arrow i { width: 14px; height: 14px; }
@media (max-width: 900px) { .related { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .related { grid-template-columns: 1fr; } }

/* ---------- Services card as link (main page) ---------- */
a.service { color: inherit; display: block; }
.service__go {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}
.service__go i { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
a.service:hover .service__go i { transform: translateX(4px); }

.services-more {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 6px;
  font-size: 13.5px;
  color: var(--text-3);
}
.services-more b { color: var(--text-2); font-weight: 700; margin-right: 6px; }
.services-more a { color: var(--text-2); font-weight: 600; transition: color 0.2s; white-space: nowrap; }
.services-more a:hover { color: var(--accent); }
.services-more .dotsep { color: var(--text-3); opacity: 0.5; margin: 0 2px; }

/* ---------- Steps with tabs (inner pages reuse .process) ---------- */
.process--inner .process__step { cursor: default; }

/* ---------- CTA band (mid-page) ---------- */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 300px at 90% 10%, rgba(212, 255, 63, 0.08), transparent 60%),
    var(--surface);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band__title { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 27px); font-weight: 700; line-height: 1.25; max-width: 560px; }
.cta-band__title em { color: var(--accent); font-style: normal; }
.cta-band__text { margin-top: 10px; font-size: 14.5px; color: var(--text-2); max-width: 520px; }
