/* Word of Mouth accessibility refinements — 2026-10-25.
   Keep original #ff6633 branding, orange outlines and orange decorative graphics.
   Orange text intentionally retains the original brand color #ff6633 as requested; some small text may not meet WCAG AA contrast. */
:root { --wom-readable-orange: #ff6633; }

/* Keyboard access to the start of the page and main-content landmarks. */
#wom-main:focus { outline: none !important; }
.wom-skip-link:focus-visible { z-index: 2147483647 !important; }

/* Preserve bright orange brand accents, but keep small orange words genuinely legible. */
.wom-site-header a[href="index.html"],
.wom-site-header a[href="https://www.wordofmouth.dental"],
#wom-main a.email-link,
.wom-bottom-nav a,
footer a.email-link,
footer .wom-footer-utility a,
.wom-contact-footer a,
.wom-site-header #mobileNav a,
#mobileNav a,
.wom-contact-section-title,
.wom-doctor-name,
.profile-achievements-title,
.team-text-orange,
.threeText,
#mobileOpen > .wom-home-title > span:nth-of-type(2),
.wom-mobile-utility-footer a {
  color: var(--wom-readable-orange) !important;
}
/* The large homepage accent can remain bright while passing the 3:1 large-text check. */
#mobileOpen > .wom-home-title > span:nth-of-type(2) { color: #ff6633 !important; }
/* The New Patients page uses the same orange header wordmark as other pages. */
body:has(.content .table) header a[href="https://www.wordofmouth.dental"] { color: #f63 !important; }
/* Bright brand orange on black remains accessible, including footer visit labels. */
.visit .visit-label { color: #ff6633 !important; }

/* Phone and email in the Contact page are small; make orange readable, not black. */
main.container .info a[href^="tel:"],
main.container .info a.email-link { color: var(--wom-readable-orange) !important; text-decoration: underline; }
.wom-bottom-nav li a[href^="tel:"] { color: var(--wom-readable-orange) !important; }
/* Wordmark size is 20px but normal weight: use accessible orange on pale header. */
.wom-site-header a { text-underline-offset: .15em; }
.wom-site-header a:hover { text-decoration: underline; }

/* Light gray text beneath team names and in footer needed slightly stronger contrast. */
#ny, .profile-achievement-item, .bio-text > div[style*="color: #777"],
footer [style*="color: #ccc"],
footer a[href*="icons8.com"] { color: #595959 !important; }
footer, .wom-contact-footer { color: #333 !important; }

/* The big orange visit graphic stays intact, with a denser scrim behind white text. */
.photo-section-reveal > .wom-visit-scrim { background-color: rgba(0,0,0,.67) !important; }
/* Text over the orange testimonial banner must be dark for AA. */
#reviews .review, #reviews .review p, #reviews .review strong { color: #181818 !important; }

/* Preserve the home hero's exact branded typography after giving it heading semantics. */
.wom-home-title { font-size: inherit; font-weight: inherit; margin: 0; padding: 0; }
/* The header's orange-on-orange "Word of Mouth" banner uses white on #f63 (large text);
   use a slightly deeper orange background for contrast while staying orange. */
.wom-home-title .wave-text { background-color: #ff6633 !important; }

/* Keep the original card-stage dimensions and 3D parallax without applying a
   fixed height to the entire semantic <main>. */
#wom-main { display:block; position:relative; height:auto; }
.wom-card-stage { display:block; position:relative; }

/* Doctor and achievements labels are now headings; preserve their earlier dimensions. */
.wom-doctor-name { display:block; font:700 19px/34px "Montserrat",sans-serif; margin:0; }
.profile-achievements-title { display:block; }

/* Testimonials are visitor-controlled and never automatically advance. */
.review-carousel .review[hidden] { display: none !important; }
.wom-review-controls { display:flex; gap:12px; justify-content:center; align-items:center; margin-top:18px; flex-wrap:wrap; }
.wom-review-controls button { cursor:pointer; border:2px solid #181818; border-radius:4px;
  background:#fff; color:#171717; font:600 13px/1.3 "Montserrat",sans-serif; padding:10px 14px;
  min-height:44px; }
#wom-review-position { font:600 12px/1.3 "Montserrat",sans-serif; color:#181818; }

/* Headings on the contact page are intentionally compact so the design remains familiar. */
.wom-contact-section-title {font:700 12px/1.4 "Montserrat",sans-serif !important;
  text-transform:uppercase; letter-spacing:1.3px; margin:4px 0 12px;}
.wom-contact-indented { margin-left:2rem; margin-top:14px; margin-bottom:7px; }

/* Ensure blur/fade never hides essential text during scrolling. */
.box, .icons, .hero-fade, .appear, .reveal, .premium-reveal,
#mobileOpen, #mobileBook {
  opacity:1 !important; filter:none !important; -webkit-filter:none !important;
  animation:none !important; transition:none !important;
}
.box, .icons, .hero-fade, .appear, .reveal, .premium-reveal {
  transform:none !important; will-change:auto !important;
}
/* Home fixed/parallax text is intentionally allowed to keep its positioning. */
#mobileOpen, #mobileBook { transform:translateY(calc(var(--scroll-y, 0px) * -2.2)); }
/* Do not disable the 3D card stack hover transitions or transforms. */

/* Consistent footer statement link on every desktop page. */
.wom-footer-utility { margin:18px auto 8px; font:600 14px/1.6 "Montserrat",Arial,sans-serif; }
.wom-footer-utility a, .wom-contact-footer a { text-decoration:underline; text-underline-offset:3px; }
.wom-footer-help {max-width:760px; margin:10px auto 0; font:400 13px/1.7 "Montserrat",Arial,sans-serif;
  letter-spacing:normal; color:#444; }
.wom-footer-help a { color:var(--wom-readable-orange) !important; text-decoration:underline; }
.wom-contact-footer { background:#fafafc; text-align:center; padding:34px 20px 130px;
  font:400 13px/1.8 "Montserrat",Arial,sans-serif; }
body:has(main.container) { display:block !important; min-height:100vh; height:auto !important; }
main.container { min-height:100vh; display:flex !important; height:auto !important; }

/* Mobile footer matches the existing dark "Visit" section and stays clear of CTA. */
.wom-mobile-utility-footer { background:#171717; color:#eee; padding:10px 26px 130px;
 font:400 13px/1.8 "Montserrat",sans-serif; }
.wom-mobile-utility-footer a { color:#ff6633 !important; text-decoration:underline; text-underline-offset:3px; }
.wom-mobile-utility-footer p { max-width:480px; margin:12px 0 0; }
/* Accessible orange on pale mobile header, hero, and cards. */
.nav .nav-call, .hero .eyebrow, .section .eyebrow, .floating-book span {
 color:var(--wom-readable-orange) !important;
}
/* Dark-section orange accents are vivid and contrast adequately. */
.visit .visit-label { color:#ff6633 !important; }
/* The footer Accessibility display button should stay unobtrusive, without overlapping booking. */
#wom-accessibility-launch.wom-footer-accessibility { color:#eee !important; }
/* Mobile address/contact area should not be obscured by sticky CTA. */
@media(max-width:768px) {
  main.container { min-height:calc(100vh - 80px); }
  main.container .left { min-height:220px; }
  main.container .right { min-height:460px; }
  main.container { flex-wrap:wrap; }
  main.container .left,main.container .right { width:100%; }
  .wom-bottom-nav {overflow-x:auto;}
  .wom-contact-section-title {font-size:12px !important;}
}
@media(prefers-reduced-motion:reduce) {
 html {scroll-behavior:auto !important;}
 *:not(.cards):not(.stack):not(.card),*::before,*::after {
  animation-duration:.01ms !important; transition-duration:.01ms !important;
 }
}

/* Booking buttons retain their vivid orange hover background with readable ink. */
/* Restore original Book an Appointment hover: orange fill, white lettering. */
.wom-site-header .appointment-button:hover,
.wom-site-header .appointment-button:focus-within,
.appointment-button:hover,
.appointment-button:focus-within,
a.appointment-button.parallax1:hover,
a.appointment-button.parallax1:focus-visible {
  background-color:#ff6633 !important;
  color:#fff !important;
  border-bottom-color:#d9530d !important;
}
.wom-site-header .appointment-button:hover a,
.wom-site-header .appointment-button:focus-within a,
.appointment-button:hover a,
.appointment-button:focus-within a { color:#fff !important; }
/* Keep the original lifted homepage CTA hover. */
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  a.appointment-button.parallax1:hover {
    box-shadow:0 14px 28px rgba(255,102,51,.22) !important;
  }
}
/* Solid backing protects mobile nav contrast when the hero image scrolls behind it. */
.nav { background:rgba(255,255,255,.97) !important; }
.map-icon-link:hover { color:#ff6633 !important; }

/* Team page: keep fixed header and bottom navigation above scrolling content.
   Reserve the navigation height so the footer cannot be covered when scrolled fully down. */
body.wom-team-page { padding-bottom: 80px !important; min-height:100vh; }
body.wom-team-page .wom-site-header { z-index: 10000000 !important; isolation:isolate; }
body.wom-team-page .wom-bottom-nav { z-index: 10000001 !important; left:0 !important; right:0 !important; bottom:0 !important; width:100% !important; background:#fff !important; box-shadow: 0 -2px 8px rgba(0,0,0,.10); }
body.wom-team-page #wom-main { position:relative; z-index:0; }
body.wom-team-page footer { position:relative; z-index:1; }

/* Restore the homepage appointment CTA's original 4px hover lift.
   Its scroll-parallax translate had been overriding the hover translate. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body #mobileBook.appointment-button.parallax1 {
    transition: transform .35s ease, background-color .45s ease, color .45s ease, box-shadow .35s ease !important;
  }
  body #mobileBook.appointment-button.parallax1:hover,
  body #mobileBook.appointment-button.parallax1:focus-visible {
    transform: translateY(calc(var(--scroll-y, 0px) * -2.2 - 4px)) !important;
    box-shadow: 0 14px 28px rgba(255, 102, 51, .22) !important;
  }
}
