/* REQ-174 — unified button system for the static marketing site (index, companies, schools, families, 200, 404).
   Loaded AFTER /_nuxt/entry.*.css; the built Nuxt files are NOT edited (they are regenerated, no source here).
   Brand: yellow #ffb001 + ink #111. Delete the <link> to this file in the 6 html pages to roll back. */

.btn {
  font-weight: 600;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn.px-4,
.btn.px-5 { font-weight: 700; min-height: 46px; }

/* keyboard focus: visible on yellow, white and black backgrounds alike */
.btn:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 176, 1, .6);
}

/* primary action = yellow pill, same everywhere (nav, hero, plan cards on white, footer).
   .btn-dark is the plan-card button on a white card: it becomes the primary too, instead of a dark button with a yellow ring. */
.btn-primary,
.btn-dark {
  background-color: #ffb001 !important;
  border: 2px solid #ffb001 !important;
  color: #111 !important;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(255, 176, 1, .35);
}
.btn-primary:hover,
.btn-dark:hover {
  background-color: #111 !important;
  border-color: #ffb001 !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transform: translateY(-1px);
}

/* the button inside the yellow plan card: black (the white one disappeared into the card) */
.btn-white {
  background-color: #111 !important;
  border: 2px solid #111 !important;
  color: #fff !important;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.btn-white:hover {
  background-color: #fff !important;
  border-color: #111 !important;
  color: #111 !important;
  transform: translateY(-1px);
}

/* nav: language button follows the same pill + hover */
.btn-light.border-dark { border-radius: 50px; }
.btn-light.border-dark:hover { background-color: #111; color: #fff; }

/* REQ-235 (DES-04/12/13): contrast fixes for ALL landing pages — NOT hash-dependent.
   The Nuxt-built CSS uses scoped [data-v-*] selectors; we override by class name with !important.
   This survives nuxt generate because it targets class names, not build hashes. */

/* Schools: .cta-button was white (#fff) on light yellow (#f2b141) = 1.89:1 → dark text */
.schools-landing-page .cta-button { color: #111 !important; }
.schools-landing-page .cta-button:hover { color: #111 !important; }

/* Schools: .btn-accent (hero) was white on #f2b141 = 1.89:1 → dark text */
.schools-landing-page .btn-accent { color: #111 !important; }
.schools-landing-page .btn-accent:hover { color: #111 !important; }

/* Schools: .hero-tagline and .hero-headline .text-primary were #ffb001 on white = 1.83:1
   Use the design system's accessible gold: #8a5a00 = 5.93:1 on white */
.schools-landing-page .hero-tagline,
.schools-landing-page .hero-headline .text-primary,
.schools-landing-page .hero-headline .text-accent { color: #8a5a00 !important; }

/* Schools: .benefit-quote was #f2b141 on white = 1.89:1 */
.schools-landing-page .benefit-quote { color: #8a5a00 !important; border-color: #8a5a00 !important; }

/* Schools: .gallery-main-caption was #f2b141 on #f8f9fa ≈ 1.89:1 */
.schools-landing-page .gallery-main-caption { color: #8a5a00 !important; }

/* Schools: .feature-check and .bonus-feature were #f2b141 on white = 1.89:1 */
.schools-landing-page .feature-check,
.schools-landing-page .bonus-feature { color: #8a5a00 !important; }

/* All landing pages: .toggle-label was #999 on white = 2.85:1 → use --yl-muted equivalent */
.schools-landing-page .toggle-label,
.companies-landing-page .toggle-label,
.families-landing-page .toggle-label { color: #5b5f6b !important; }

/* Companies: .btn-accent was white on #28a745 = 3.13:1 (needs 4.5:1 at 18px/600) → dark text */
.companies-landing-page .btn-accent { color: #111 !important; }
.companies-landing-page .btn-accent:hover { color: #111 !important; }

/* Companies: apply same gold-text fix for any gold-on-white text */
.companies-landing-page .hero-tagline,
.companies-landing-page .hero-headline .text-primary,
.companies-landing-page .hero-headline .text-accent { color: #1d7a35 !important; }
.companies-landing-page .benefit-quote { color: #1d7a35 !important; border-color: #1d7a35 !important; }
.companies-landing-page .gallery-main-caption { color: #1d7a35 !important; }
.companies-landing-page .feature-check,
.companies-landing-page .bonus-feature { color: #1d7a35 !important; }

/* Families (homes): purple #6f42c1 on white = 6.51:1 — passes, but fix gold text same as above */
.families-landing-page .hero-tagline,
.families-landing-page .hero-headline .text-primary,
.families-landing-page .hero-headline .text-accent { color: #5a32a3 !important; }
.families-landing-page .benefit-quote { color: #5a32a3 !important; border-color: #5a32a3 !important; }
.families-landing-page .gallery-main-caption { color: #5a32a3 !important; }
.families-landing-page .feature-check,
.families-landing-page .bonus-feature { color: #5a32a3 !important; }

/* DES-14: .hero-text is text-align:right even in LTR — fix for English */
[dir=ltr] .schools-landing-page .hero-text,
[dir=ltr] .companies-landing-page .hero-text,
[dir=ltr] .families-landing-page .hero-text { text-align: left !important; }

/* DES-11: line-height 1.2 on Arabic headlines — raise to design system minimum */
.schools-landing-page .hero-headline,
.companies-landing-page .hero-headline,
.families-landing-page .hero-headline { line-height: 1.4 !important; }

/* REQ-235 (DES-27): the old hash-bound rule (.btn-accent[data-v-…]) is gone — the class-based rules above cover it on every build */

/* REQ-235 (QA-11): the same keyboard ring as the home page (.yl-home :focus-visible) on the three landing pages,
   instead of the browser's thin default; black ring + gold halo reads on white, yellow and the dark CTA band alike */
.schools-landing-page main :focus-visible,
.companies-landing-page main :focus-visible,
.families-landing-page main :focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 176, 1, .6);
}

@media (max-width: 767.98px) {
  .btn.px-4, .btn.px-5 { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none !important; }
}
