/* ==================================================================
   s70-page.css — MEGA-UPDATE 70.0.0 LOOP 4 (Worker A: page-level layer)
   ------------------------------------------------------------------
   Page-as-one-experience overrides, loaded LAST of the s70 chain so it
   wins specificity ties with every section layer. Two jobs only:

   1) CTA HIERARCHY — demote weaker CTAs where two dominant CTAs share
      one 390×844 viewport. Never removes content; hrefs/labels untouched;
      quiet = outline / text-link treatment only.
   2) GOLD BUDGET — quiet the loudest decorative (non-CTA) gold so gold
      stays an accent (≤10% of pixels), not a theme.

   Rules honored: no banned transition properties (this file declares NO
   transitions at all — zero new motion); hover rules only inside
   (hover:hover) and (pointer:fine); tap targets untouched (≥44px kept
   via existing min-heights); tel:+989190633819 untouched; no content
   strings altered — CSS only.
   ================================================================== */

/* ================= 1) CTA HIERARCHY DEMOTIONS ================= */

/* ---- C1 · lockout(revealed) → shift boundary ----
   The lockout section reveals a gold "تماس فوری" slab after the checklist
   interaction; the shift section sits immediately below with its own gold
   "تماس فوری" slab. Two identical dominant CTAs in one viewport.
   Lockout's is the urgent-intent CTA → shift's CTA becomes quiet gold-outline. */
.shift .shift__cta{
  background:transparent;
  border:1px solid var(--cb2-gold-line);
  color:var(--cb2-gold-ink);
  box-shadow:none;
}
@media (hover:hover) and (pointer:fine){
  .shift .shift__cta:hover{
    transform:translateY(-2px);
    background:rgba(217,169,63,.07);
    border-color:var(--cb2-gold-line);
    color:var(--cb2-gold-ink);
    box-shadow:none;
  }
}
/* ---- C1 · touch follow-up (loop 8, worker B) ----
   Sticky :hover on touch phones repainted the demoted CTA as the solid
   brick-orange slab: corp-sections-b.css:733 sets
   `@media (hover:none){.shift .shift__cta:hover{background:var(--brand-grad);...}}`
   at specificity 0,3,0, which beats this layer's base demotion (0,2,0) and
   has no fine-pointer counterpart here. The tap stuck the orange slab next
   to the lockout gold slab — the exact conflict C1 demoted. On (hover:none)
   keep the quiet gold-outline treatment instead. */
@media (hover:none){
  .shift .shift__cta:hover{
    background:transparent;
    border-color:var(--cb2-gold-line);
    color:var(--cb2-gold-ink);
    box-shadow:none;
  }
}

/* ---- C2 · dispatcher result panel ----
   Result panel shows #dispCall (gold solid) + #dispWa (green solid)
   side-by-side: two dominant CTAs in one panel. The call is primary;
   WhatsApp becomes a quiet green outline (brand kept, weight dropped). */
#dispWa.btn--green{
  background:transparent;
  border:1px solid var(--green,#25D366);
  color:var(--green-deep,#166E45); /* 70.0.0 loop5: --green #1E8E5A text on the WHITE result card was 4.14:1 — --green-deep hits 6.27:1; border keeps --green (4.14:1 ≥ 3:1 UI) */
  box-shadow:none;
  text-shadow:none;
}
@media (hover:hover) and (pointer:fine){
  #dispWa.btn--green:hover{
    background:rgba(37,211,102,.10);
    border-color:var(--green,#25D366);
    color:var(--green-deep,#166E45); /* 70.0.0 loop5: see above — AA text on white */
    box-shadow:none;
  }
}

/* ---- C3 · contact section ----
   Gold-tinted tel hero card + full-width gold form submit in one section:
   two gold conversion surfaces compete. The submit ("درخواست اعزام") is
   the section's action → the hero card drops to the quiet secondary-card
   treatment (content: number + label untouched). */
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero{
  background:rgba(255,255,255,.02);
  border:1px solid var(--kt-line,rgba(255,255,255,.10));
  box-shadow:none;
}
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero::before{
  display:none; /* the gold top hairline — quieted with the card */
}
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero .cb2-ccard__icon{
  background:rgba(255,255,255,.05);
  border:1px solid var(--kt-line,rgba(255,255,255,.10));
  color:var(--cb2-ink);
}
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero .cb2-ccard__label{
  color:var(--cb2-ink);
}
@media (hover:hover) and (pointer:fine){
  .cb2-contact .cb2-contact__cards > a.cb2-ccard--hero:hover{
    transform:none;
    box-shadow:none;
    border-color:rgba(255,255,255,.18);
    background:rgba(255,255,255,.04);
  }
}

/* ---- C4 · contact → pre-footer CTA band boundary ----
   The contact form submit (gold slab) and the ctaband gold "تماس فوری"
   (tel:+989190633819, same href) share the boundary viewport.
   The band keeps its headline + microcopy; its button becomes quiet gold-outline. */
.cb2-ctaband__btn.btn--gold{
  background:transparent;
  border:1px solid var(--cb2-gold-line);
  color:var(--cb2-gold-ink);
  box-shadow:none;
}
@media (hover:hover) and (pointer:fine){
  .cb2-ctaband__btn.btn--gold:hover{
    transform:translateY(-2px);
    background:rgba(217,169,63,.07);
    border-color:var(--cb2-gold-line);
    color:var(--cb2-gold-ink);
    box-shadow:none;
  }
}

/* NOTE — the persistent mobile dock (.mobile-bottom-bar: gold "تماس فوری"
   + green "واتساپ") is intentional chrome, exempt from demotion: it is the
   standing emergency surface present in every viewport by design, like the
   header. The demotions above keep in-flow CTAs from stacking a second
   gold slab against it at section boundaries. */

/* ================= 2) GOLD BUDGET QUIETING =================
   Per-section verdict: gold is already accent-level almost everywhere
   (hairlines ≤.22 alpha, washes ≤.10, focus rings, text accents). The
   three loudest DECORATIVE (non-CTA) gold surfaces, quieted below.
   Functional CTA gold (hero slab, dock, form submit, lockout/faq slabs)
   is untouched. */

/* ---- G2 · blog — gold hairlines on every card ----
   Card borders gold .22→neutral, hover top-hairline .65→.35,
   media divider .14→neutral, date-line gradient .9→.5, archive link
   border .22→neutral. Gold text links stay: cheap text accents. */
.blog-card{
  border-color:rgba(24,22,17,.14); /* 70.0.0 loop5: band is LIGHT — the white .12 hairline was invisible; quiet dark hairline instead */
}
.blog-card::before{
  background:linear-gradient(90deg,transparent 4%,rgba(217,169,63,.35) 50%,transparent 96%);
}
.blog-card__media{
  border-block-end-color:rgba(24,22,17,.10); /* 70.0.0 loop5: light band — dark divider, not white .08 */
}
.blog-card__date-line{
  background:linear-gradient(90deg,rgba(217,169,63,.5),rgba(217,169,63,0));
}
.blog__archive-link{
  border-color:rgba(24,22,17,.16); /* 70.0.0 loop5: light band — the white .12 border was invisible */
}

/* ---- G3 · pre-footer CTA band glow — decorative gold wash ----
   Radial top glow .10→.05, pooled button glow .14→.07. */
.cb2-ctaband__glow{
  background:radial-gradient(52% 68% at 50% 0%,rgba(217,169,63,.05),transparent 70%);
}
/* 70.0.0 loop6 (dark-mode canon: one light source per band) — the pooled
   button glow is orphaned: loop-4 C4 demoted the button to a quiet gold
   outline, so a glowing backdrop behind it fights the demotion. Killed;
   the band keeps its single ambient top wash above. */
.cb2-ctaband__glow::after{display:none}

/* No new motion, no new transitions in this file: nothing to escape.
   (prefers-reduced-motion needs no rule — nothing animates here.) */

/* ---- R-1 · loop4 worker B: articulate the 8-band dark run ----
   lockout→faq are 8 consecutive dark bands whose bg/bg2 alternation is
   nearly imperceptible (Δ≈4% lightness); three are identical #0B0C10.
   Gold hairline seams using the existing marquee token give the long
   dark desert quiet articulation. All 8 IDs verified present. */
#lockout,#shift,#pricing,#gallery,#process,#coverage,#testimonials,#faq{
  border-block-start:1px solid var(--kt-line,rgba(217,169,63,.22));
}
/* NOTE (loop4 coordinator): worker B's R-2 proposed snapping
   .corp-services bottom padding 80px→60px. REJECTED: the 80px is a
   load-bearing Opus clip-fix ("no more clipped bottom row",
   corp-sections-a.css:1242) and cannot be visually verified at 390px
   in this environment. Flagged for the real-device pre-publish pass. */

/* ================= 3) MICRO-TYPOGRAPHY (loop 6, Worker B) =================
   Dark-mode canon: headings get text-wrap:balance. 15 section templates
   use class="sec-title"; only the FAQ one balanced before. One page-level
   rule covers all — pure line-breaking, no color/motion/spacing impact. */
.sec-title{text-wrap:balance}

/* ================= 4) KEYBOARD FOCUS RINGS (loop 5, Worker A; comment corrected loop 16) =================
   Finding: the theme's global `:focus-visible` baselines (style.css:190/1746,
   critical.css:169-170 — single-colon, valid) draw NAVY 2px rings. On the dark
   bands (lockout hero, header/footer chrome, dock, modals) navy-on-dark fails
   contrast, so those interactives had no reliably VISIBLE keyboard focus
   indicator. These additive gold rings (2px, offset 2px — the s70 pattern)
   close the gap for dark-band lockout interactives and the persistent
   header/footer chrome. Elements already carrying their own `:focus-visible`
   rule were left untouched; these additive gold rings cover only the
   dark-band interactives that previously relied on the low-contrast navy
   baseline. Outlines render on keyboard focus only: zero visual
   change otherwise, no transitions declared here. */

/* ---- lockout (dark band; styles live in base layers, so the ring lives here) ---- */
#lockout .lockout__check:focus-visible,
#lockout .lockout__skip:focus-visible,
#lockout .lockout__wa:focus-visible{
  outline:2px solid var(--kt-gold,#D9A93F);outline-offset:2px;border-radius:10px;
}
#lockout .lockout__cta-btn:focus-visible{
  outline:2px solid var(--kt-gold-hi,#F5D67B);outline-offset:3px;
}

/* ---- header chrome ---- */
.topbar__phone:focus-visible,
.site-header__logo:focus-visible,
.site-header__menu a:focus-visible,
.nav-mega__btn:focus-visible,
.nav-mega__panel a:focus-visible,
#searchBtn:focus-visible,
.site-header__call-icon:focus-visible,
#burger:focus-visible{
  outline:2px solid var(--kt-gold,#D9A93F);outline-offset:2px;border-radius:8px;
}

/* ---- drawer + search/service modals ---- */
.mobile-menu__close:focus-visible,
.mobile-menu__list a:focus-visible,
.mobile-menu__cta:focus-visible,
.search-modal__close:focus-visible,
.search-modal__input:focus-visible,
.search-modal__submit:focus-visible,
.svc-modal__close:focus-visible,
.svc-modal__call:focus-visible,
.svc-modal__wa:focus-visible{
  outline:2px solid var(--kt-gold,#D9A93F);outline-offset:2px;border-radius:8px;
}

/* ---- back-to-top: it hides via opacity only, so keyboard users could tab to
   an invisible button. visibility removes it from the tab order until shown. ---- */
.back-to-top{visibility:hidden}
.back-to-top.visible{visibility:visible}

/* ---- footer chrome + persistent surfaces ---- */
.site-footer__menu a:focus-visible,
.cb2-footer__link:focus-visible,
.site-footer__contact-item a:focus-visible,
.floating-btn:focus-visible,
#backToTop:focus-visible,
.sticky-cta__btn:focus-visible,
.mobile-bottom-bar__call:focus-visible,
.mobile-bottom-bar__wa:focus-visible{
  outline:2px solid var(--kt-gold,#D9A93F);outline-offset:2px;border-radius:8px;
}

/* ================= 4) REDUCED MOTION (loop 5, Worker B) =================
   This layer declares no transitions or animations itself, but its hover
   lifts ride base-layer transitions (.shift .shift__cta, .btn). Neutralize
   them here so the demoted CTAs never move under reduced motion. */
@media (prefers-reduced-motion:reduce){
  .shift .shift__cta{transition:none}
  .shift .shift__cta:hover{transform:none}
  .shift .shift__cta:active{transform:none}
  .cb2-ctaband__btn.btn--gold:hover{transform:none}
}
