/* =========================================================
   Uplift Wellness & Aesthetics: accessibility layer (WCAG 2.1 AA)
   Loaded last on every page so it wins over page styles.
   ========================================================= */

/* ---------- Skip link + screen-reader-only text ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: #2C5234; color: #fff; padding: 12px 18px; border-radius: 6px;
  font-family: 'Roboto', sans-serif; font-size: 15px; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
main:focus { outline: none; }

/* ---------- Visible keyboard focus (2.4.7) ---------- */
:root a:focus-visible,
:root button:focus-visible,
:root summary:focus-visible,
:root [tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid #2C5234; outline-offset: 3px; border-radius: 4px;
}
:root input:focus-visible,
:root select:focus-visible,
:root textarea:focus-visible { outline: 3px solid #2C5234; outline-offset: 1px; }
/* Dark green areas: gold ring instead */
:root #footer :focus-visible,
:root #hero :focus-visible,
:root #booking :focus-visible,
:root .cat-hero :focus-visible,
:root .detail-hero :focus-visible,
:root .bio-hero :focus-visible,
:root .post-hero :focus-visible,
:root .legal-hero :focus-visible,
:root .contact-hero :focus-visible,
:root .skip-link:focus-visible { outline-color: #c8c284; }

/* ---------- Desktop dropdowns open for keyboard (2.1.1) ---------- */
:root .uh-has.open .uh-sub { opacity: 1; visibility: visible; transform: translateY(0); }
:root .uh-has.open .uh-toggle svg { transform: rotate(180deg); }
:root .uh-has.closed-by-key .uh-sub { opacity: 0; visibility: hidden; }

/* ---------- Text contrast fixes (1.4.3) ---------- */
/* On the dark green (#2C5234) */
:root .footer-links a,
:root .footer-contact-text,
:root .footer-contact-text a,
:root .footer-tagline,
:root .footer-copy,
:root .footer-legal a,
:root .trust-sub,
:root .booking-hours { color: rgba(234,229,220,0.82); }
:root .breadcrumb,
:root .breadcrumb a,
:root .post-meta,
:root .legal-hero .legal-updated,
:root .fn-recaptcha-note { color: rgba(255,255,255,0.82); }
:root .fn-recaptcha-note a { color: #fff; }
:root .footer-links a:hover,
:root .footer-contact-text a:hover,
:root .footer-legal a:hover,
:root .breadcrumb a:hover { color: #c8c284; }

/* Gold labels on light backgrounds: deeper gold */
:root .cat-intro-grid .eyebrow,
:root .detail-expert-intro .eyebrow,
:root .blog-header .eyebrow,
:root .experience-text .eyebrow,
:root .cond-cat-header .eyebrow { color: #646142; }
:root .special-price .now { color: #7c7852; }
:root .about-role,
:root .benefits-label { color: #6c632f; }

/* Faded green labels on light backgrounds: solid green */
:root #pillars .eyebrow,
:root #meet-lindsay .eyebrow,
:root .subsvc-header .eyebrow,
:root .detail-faq-header .eyebrow,
:root .reviews-header .eyebrow,
:root .team-header .eyebrow,
:root .aes-addhead .eyebrow,
:root .aes-meet-text .eyebrow { color: #37663F; opacity: 1; }
:root .sidebar-fact-label,
:root .contact-detail-label,
:root .form-field label { color: #37663F; }
:root .blog-tag { opacity: 1; }

/* Gray small print */
:root .stars-label,
:root .review-source,
:root .form-disclaimer,
:root .cookie-decline,
:root .specials-fineprint,
:root .aes-tier-note,
:root .aes-svc-name .aes-qual,
:root .price-row small { color: #5e5e57; }
:root .blog-date { color: #6b6b6b; }

/* ---------- Background video / slideshow pause button (2.2.2) ---------- */
.motion-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(20,36,24,0.72); color: #fff; border: 1px solid rgba(255,255,255,0.55);
  cursor: pointer; padding: 0;
}
.motion-toggle:hover { background: rgba(20,36,24,0.9); }
.motion-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.motion-toggle .ico-play { display: none; }
.motion-toggle[aria-pressed="true"] .ico-play { display: block; }
.motion-toggle[aria-pressed="true"] .ico-pause { display: none; }
#exp-slideshow { position: relative; }
#exp-slideshow .motion-toggle { right: 12px; bottom: 12px; }

/* ---------- Reduced motion (2.3.3 best practice) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- Contact form (Brevo) ---------- */
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-field .req { color: #8a2b1e; }
.form-status { margin: 14px 0 0; font-size: 15px; line-height: 1.5; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #2C5234; background: rgba(44,82,52,0.08); border-left: 3px solid #2C5234; padding: 12px 14px; border-radius: 6px; }
.form-status.is-error { color: #8a2b1e; background: rgba(138,43,30,0.07); border-left: 3px solid #8a2b1e; padding: 12px 14px; border-radius: 6px; }
.form-field [aria-invalid="true"] { border-color: #8a2b1e !important; }
#contact-submit[disabled] { opacity: .7; cursor: wait; }

/* Address links (directions) */
.uh-contact-val a, .contact-detail-value a, .footer-contact-text a { color: inherit; text-decoration: none; }
.uh-contact-val a:hover, .contact-detail-value a:hover { text-decoration: underline; text-underline-offset: 3px; }
