/* ===========================================================================
 * landing-fixes.css — QA fixes layered on top of landing-phase2.css.
 *
 * landing-phase2.css is GENERATED from phase-2/tsheel/client/public/styles.css
 * by _private/scope-landing-css.py. Anything put in that generated file is
 * lost on regeneration, so intentional post-design fixes live HERE instead.
 * Load order: style.css -> landing-phase2.css -> landing-fixes.css.
 *
 * All selectors are scoped to .landing so nothing leaks to other pages.
 * ======================================================================== */

/* --- Tap targets ---------------------------------------------------------
 * The design's inline text links render as low as 14px tall, which fails
 * WCAG 2.2 2.5.8 (Target Size Minimum, 24x24) and is fiddly on touch.
 *
 * Fix: keep the glyphs exactly where the design put them (no layout shift)
 * and expand the clickable area with an invisible ::after overlay.
 * ----------------------------------------------------------------------- */

/* Hero / FAQ inline links: "تواصل معنا على واتساب", "اتصل الآن", ... */
.landing .text-link,
.landing .call-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

/* Feature-card links: "اعرف أكثر ←" */
.landing .feature-card a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 14px; /* offset the added height so the card rhythm is kept */
}

/* Product-card links: "تصفح الجوالات ←" — these were only ~14px tall. */
.landing .product-card a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

/* Invisible overlay that grows the hit area without moving the text. */
.landing .text-link::after,
.landing .call-link::after,
.landing .feature-card a::after,
.landing .product-card a::after {
  content: "";
  position: absolute;
  /* top/bottom negative => taller target; inline-start/end => wider target */
  top: -8px;
  bottom: -8px;
  inset-inline-start: -10px;
  inset-inline-end: -10px;
}

/* --- Focus visibility ----------------------------------------------------
 * The shared style.css does not style :focus-visible for these elements, so
 * keyboard users on the landing page would have no visible focus ring.
 * ----------------------------------------------------------------------- */
.landing a:focus-visible,
.landing summary:focus-visible,
.landing button:focus-visible {
  outline: 3px solid var(--teal, #2492ae);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- FAQ summary tap target ---------------------------------------------
 * The "+" toggle row is fine, but give the whole row an explicit cursor and
 * ensure the summary is comfortably tappable on small screens.
 * ----------------------------------------------------------------------- */
.landing .faq summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Reduced motion ------------------------------------------------------
 * The design ships @keyframes with no reduced-motion guard. Honour the OS
 * preference by disabling the decorative animations.
 * ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .landing *,
  .landing *::before,
  .landing *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
