/* ==========================================================================
   ADA / WCAG 2.2 AA fixes - Germantown Aesthetics
   Loaded after css-output/bundle.css. Finding numbers refer to the
   November 4, 2026 ADA Compliance Audit.
   ========================================================================== */

:root {
  --ada-focus: #1a1a1a;        /* focus ring on light backgrounds */
  --ada-coral-text: #a85a0c;   /* brand orange darkened for text: 5.08:1 on white */
  --ada-teal-text: #256a70;    /* brand teal darkened for text: 4.95:1+ on beige/pale green */
}

/* F2 / F11 - Visible keyboard focus on every interactive element (2.4.7, 1.4.11) */
:focus-visible {
  outline: 3px solid var(--ada-focus) !important;
  outline-offset: 3px !important;
}
.btn-coral:focus-visible,
.nav-contact-btn:focus-visible {
  box-shadow: 0 0 0 6px #ffffff !important; /* keeps the ring visible on photos */
}
.navbar .nav-link:focus-visible {
  box-shadow: none !important;
  border-radius: 4px;
}
/* Light ring where the background is dark */
.teal-bg :focus-visible,
.bg-dark-teal :focus-visible,
.dark-teal-bg :focus-visible,
.contact-overlay .close-contact:focus-visible {
  outline-color: #ffffff !important;
}

/* F3 - Text contrast (1.4.3) */
/* CTA buttons: keep the brand orange background, switch text to near-black (8.49:1) */
.btn.nav-contact-btn,
.btn.btn-coral,
.nav-contact-btn,
.btn-coral {
  color: #1a1a1a !important;
}
.btn.btn-coral:hover,
.btn.nav-contact-btn:hover {
  color: #1a1a1a !important;
}
/* Orange heading accents ("Feel Your Best!", "to Look Your Best") */
.text-coral {
  color: var(--ada-coral-text) !important;
}
/* Teal links on beige and pale-green panels */
.wrapper-coral > a,
.wrapper-coral a {
  color: var(--ada-teal-text);
}
/* Default link color (#6cccc6) fails on white; darken body-content links */
main a:not(.btn):not(.nav-link):not(.card-base):not(.navbar-brand) {
  color: var(--ada-teal-text);
}
main .teal-bg a:not(.btn),
main .bg-dark-teal a:not(.btn),
main .dark-teal-bg a:not(.btn) {
  color: #ffffff;
}

/* F7 - Carousel dots: 24 x 24 px target with the same 10px visual dot (2.5.8) */
.swiper-pagination-bullet {
  width: 24px !important;
  height: 24px !important;
  padding: 7px;
  box-sizing: border-box;
  background-clip: content-box !important;
  margin: 0 2px !important;
}

/* F5 - Pause/play control for the reviews carousel (2.2.2) */
.mpr-autoplay-toggle {
  display: block;
  margin: 0.75rem auto 0;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  color: #1a1a1a;
  background: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: 22px;
  cursor: pointer;
}
.mpr-autoplay-toggle:hover {
  background: #f3f3f3;
}

/* F8 - Logo is now a real image inside a plain link (no H1, no background image) */
.navbar-brand.navbar-brand-img {
  background: none !important;
  font-size: inherit !important;
  width: auto !important;
  height: auto !important;
  padding: 0;
}
.navbar-brand.navbar-brand-img img {
  display: block;
  width: 216px;
  height: auto;
}
@media (min-width: 992px) {
  .navbar-brand.navbar-brand-img img {
    width: 288px;
  }
}
/* Hero titles become H1; keep the look they had as H2 */
h1#top-banner-hero {
  font-family: inherit;
}

/* F1 - Booking overlay: focusable heading, phone alternative */
.contact-overlay [tabindex="-1"]:focus {
  outline: none;
}
.contact-overlay .call-alternative {
  text-align: center;
  margin: 0.5rem 0 1rem;
}

/* Third-party SmartBot chat widget: header and button text contrast (1.4.3).
   Better long-term fix: set the widget color to #256a70 in the Simplified dashboard. */
.smartbot-pane-header {
  background-color: #256a70 !important;
}
.smartbot-pane-cte {
  color: #1e5a5f !important;
  background-color: #eef6f6 !important;
}

/* F4 - Menu rework: About / Treatments / Learning Academy are now <button>s.
   Make them look exactly like the links they replaced. */
#navbarNav button.nav-link {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

/* Menu panels moved out of <main>; their headings became plain text.
   Keep the look they had as H3s (Prata, teal). */
.dropdown-base .menu-group-title {
  font-family: 'Prata', serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-teal);
  margin: 0 0 8px;
}
.dropdown-base .menu-group-title a,
.dropdown-base .menu-group-title a.nav-heading {
  color: var(--ada-teal-text);
}
.card-base .card-title {
  display: block;
  font-family: 'Prata', serif;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

/* Page H1 in a gold band above the hero (built from the Yoast SEO title).
   White on #7a6630 = 5.57:1. Mobile: one small line, fitted by js/ada-fixes.js. */
.ga-h1-band {
  background: #7a6630;
  padding: 0 0.5rem;
  text-align: center;
}
.ga-h1-band h1 {
  margin: 0;
  padding: 0.5rem 0;
  color: #ffffff;
  font-family: "Hero Light Regular", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ga-h1-band h1.ga-h1-wrap { white-space: normal; }
.ga-h1-sep { display: inline-block; margin: 0 0.2em; opacity: 0.75; }
@media (min-width: 992px) {
  .ga-h1-band { height: 48px; display: flex; align-items: center; justify-content: center; }
  .ga-h1-band h1 { padding: 0; font-size: 1.05rem; letter-spacing: 0.14em; }
  .ga-h1-sep { margin: 0 0.6em; }
  /* Same total height: the hero gives up the 48px the band uses */
  .ga-has-h1-band .hero-section { height: calc(75vh - 48px); min-height: 452px; max-height: 852px; }
}

/* Skip link: visible when it receives keyboard focus (2.4.1, 2.4.7).
   The theme's screen-reader-text class kept it clipped to 1px even when focused. */
a.skip-link:focus,
a.skip-link:focus-visible {
  position: fixed !important;
  display: inline-block !important;
  right: auto !important;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100000;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible;
  margin: 0;
  padding: 0.75rem 1.25rem !important;
  background: #1a1a1a;
  color: #ffffff !important;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: underline;
  border-radius: 4px;
  outline: 3px solid #ffffff !important;
  outline-offset: 0 !important;
  box-shadow: 0 0 0 6px #1a1a1a;
}
/* Skip-link target: focusable without showing a ring around the whole page */
main#main:focus { outline: none !important; }

/* Primary navigation: more space between About / Treatments / Learning Academy / Contact (desktop) */
@media (min-width: 992px) {
  #navbarNav .navbar-nav .nav-link {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}


/* ---- Nov 9 audit follow-up fixes ---- */
/* R4: slide-in animations parked off-screen made desktop pages scroll sideways */
html, body { overflow-x: clip; }

/* R5: stronger hero curve behind the light white subtitle (0.8 -> 0.9) */
.hero-curve { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 1000" preserveAspectRatio="none"><path d="M 0,20 C 280,20 450,120 750,140 C 1110,160 1150,120 1350,110 C 1650,80 1750,180 2000,150 L 2000,1000 L 0,1000 Z" fill="rgba(46, 125, 132, 0.9)" stroke="none"/></svg>'); }
@media (min-width: 992px) { .hero-curve { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 1000" preserveAspectRatio="none"><path d="M 0,20 C 280,20 450,200 750,240 C 1110,300 1150,180 1350,150 C 1650,80 1750,410 2000,270 L 2000,1000 L 0,1000 Z" fill="rgba(46, 125, 132, 0.9)" stroke="none"/></svg>'); } }

/* F5: brand teal strong text fails 4.5:1 on the pale green panel; darker teal = 5.17:1 */
.bg-off-white strong:not([class*="text-"]) { color: #256a70; }

/* F4: condition names moved from a colgroup header row into the table caption */
.conditions caption.condition-header {
  caption-side: top;
  padding: .5em;
  color: inherit;
  border: 1px solid #dee2e6;
  border-bottom: 0;
}
.conditions caption.condition-header h2 { margin: 0; }

/* F8: required-field note in the booking dialog */
.contact-overlay .required-note { margin: 0 0 .75rem; font-size: .95rem; }

/* SMS consent checkboxes in the booking dialog (matches live site wording) */
.contact-overlay .ga-consent { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.contact-overlay .ga-consent-hd { float: none; width: auto; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #495057; margin: 0 0 .6rem; padding: 0; }
.contact-overlay .ga-consent .form-check { padding-left: 1.75rem; }
.contact-overlay .ga-consent .form-check-input { width: 1.15rem; height: 1.15rem; margin-left: -1.75rem; margin-top: .2rem; border-color: #6c757d; cursor: pointer; }
.contact-overlay .ga-consent .form-check-input:checked { background-color: #256a70; border-color: #256a70; }
.contact-overlay .ga-consent .form-check-input:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; box-shadow: none; }
.contact-overlay .ga-consent .form-check-label,
.contact-overlay .ga-legal { font-size: .85rem; line-height: 1.55; color: #495057; cursor: pointer; }
.contact-overlay .ga-legal { cursor: auto; margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid #dee2e6; }
.contact-overlay .ga-consent a { color: #1d5c61; font-weight: 700; text-decoration: underline; }
.contact-overlay .call-alternative a { color: #1d5c61; }

/* Hide the SmartBot chat launcher while the booking dialog is open (it is minimized by ada-fixes.js) */
body.ga-dialog-open .smartbot-widget, body.ga-dialog-open .smartbot-widget * { visibility: hidden !important; }

/* Before/after gallery buttons: teal link buttons keep readable text on hover/focus
   (Bootstrap's .btn:hover otherwise clears the bg-teal background, leaving white on white) */
a.btn.bg-teal.text-white:hover,
a.btn.bg-teal.text-white:focus-visible,
a.btn.bg-teal.text-white:active {
  background-color: #24646a !important; /* 6.8:1 with white */
  color: #fff !important;
}
a.btn.bg-teal.text-white:focus-visible {
  outline: 3px solid #24646a;
  outline-offset: 3px;
}

/* Header "Book Appointment" (Zenoti) button: never wraps; far right on desktop, centered at the bottom of the mobile menu */
#navbarNav .nav-link,
.ga-book-btn { white-space: nowrap; }
.ga-book-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 1.05rem;
}
.ga-nav-book { text-align: center; margin: 0.75rem 0 0.5rem; }
@media (min-width: 992px) {
  .navbar-brand-img { flex-shrink: 0; }
  .ga-nav-book { margin: 0 0 0 1rem; flex-shrink: 0; }
}
/* Narrow desktops: smaller menu text so logo, menu and button share one row */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #navbarNav .navbar-nav .nav-link { font-size: 0.95rem; padding-left: 0.6rem; padding-right: 0.6rem; }
  .ga-book-btn { font-size: 0.95rem; padding: 0.45rem 1rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #navbarNav .navbar-nav .nav-link { font-size: 1.15rem; padding-left: 0.9rem; padding-right: 0.9rem; }
}
/* Book Appointment hover/focus: clear change of state - white fill, dark text, dark 2px outline (border reserved so size doesn't shift) */
.btn.ga-book-btn { border: 2px solid var(--color-coral); }
.btn.ga-book-btn:hover,
.btn.ga-book-btn:focus-visible {
  background-color: #ffffff !important;
  color: #1a1a1a !important;
  border-color: #1a1a1a;
  transform: none;
}

/* Self-hosted videos: captions on a solid backdrop for contrast, sized for the screen */
video::cue { background: rgba(0,0,0,.82); color: #fff; line-height: 1.35; font-size: 1rem; }
@media (min-width: 576px) { video::cue { font-size: 1.15rem; } }

/* Booking form error messages: bundle.css hides #mail-status by ID, which overrode the script removing
   .d-none, so error messages (e.g. "Please complete the reCaptcha verification") were never shown or announced. */
#mail-status:not(.d-none) { display: block !important; }
#mail-status.alert-danger { color: #842029; background-color: #f8d7da; border: 1px solid #f1aeb5; border-radius: .5rem; padding: .75rem 1rem; }  /* 6.6:1 */
#mail-status.alert-success { color: #0f5132; background-color: #d1e7dd; border: 1px solid #a3cfbb; border-radius: .5rem; padding: .75rem 1rem; }
