/*
 * Shared site CSS: variables, resets, typography, buttons, top bar,
 * header/nav and footer. Generated by scripts/build-child-css.js from the
 * CSS that was inlined in the page content; do not hand-edit while pages
 * are still being converted.
 *
 * Source page: accessibility
 */

:root { --white: #FFFFFF; --off-white: #F8FAFC; --light-blue: #E8F4FC; --sky-blue: #7EC8E3; --medium-blue: #3B82B6; --primary-blue: #1E5F8A; --deep-blue: #0D3B5C; --navy: #0A2540; --gold: #C9A227; --gold-light: #E8D48A; --gold-dark: #A68519; --font-display: 'Playfair Display', Georgia, serif; --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif; --section-padding: 100px; --container-width: 1200px; --transition-fast: 0.2s ease; --transition-medium: 0.4s ease; --transition-slow: 0.6s ease; --shadow-sm: 0 2px 8px rgba(10,37,64,0.08); --shadow-md: 0 4px 20px rgba(10,37,64,0.12); --shadow-lg: 0 8px 40px rgba(10,37,64,0.16); --shadow-gold: 0 4px 20px rgba(201,162,39,0.3); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--navy); background: var(--white); overflow-x: hidden; }

.skip-link { position: absolute; top: -40px; left: 0; background: var(--navy); color: var(--white); padding: 8px 16px; z-index: 10000; transition: top 0.3s; }

.skip-link:focus { top: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; color: var(--navy); }

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }

h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }

h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }

h4 { font-size: 1.25rem; }

p { color: var(--deep-blue); margin-bottom: 1rem; }

a { color: var(--primary-blue); text-decoration: none; transition: var(--transition-fast); }

/* Hover on a light ground must stay readable: gold is 2.42:1 on white, so the
   global hover is primary blue (6.86:1). Links on navy keep gold through their
   own rules (.top-bar, .footer-top-item, .footer-bottom-links). */
a:hover { color: var(--primary-blue); }

/* Policy-page phone and email links rest as plain blue text; hover must change
   more than colour, so they underline. */
.policy-content a:hover { text-decoration: underline; }

/* WCAG 1.4.1: links in body prose must not be distinguished by colour alone.
   Link #1E5F8A against paragraph #0D3B5C is only 1.70:1, well under the 3:1
   that colour-only differentiation requires, so prose links carry an underline.
   :not([class]) keeps this off buttons, cards and nav items, which are already
   unmistakably interactive. */
main p a:not([class]) { text-decoration: underline; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-family: var(--font-body); font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border: none; border-radius: 4px; cursor: pointer; transition: var(--transition-medium); }

.btn-gold { background: var(--gold); color: var(--navy); }

/* GeneratePress ships `a:hover, a:focus, a:active { color: var(--contrast) }`
   with --contrast #222222. `a:focus` is 0-1-1 and out-specifies the button
   variant classes at 0-1-0, so a link-button kept a dark grey label after
   being clicked - focus survives opening a target="_blank" link. On a navy
   section that measured 1.02:1, i.e. invisible. Reported 2026-09-23 on the
   CGM buttons. Every button variant must restate its colour for :hover,
   :focus, :active AND :visited, on this page and in every page's own
   <style>; a bare `.btn-x { color: ... }` is not enough.
   The hover background stays --gold rather than --gold-dark, because
   gold-dark carries neither white (3.51:1) nor navy (4.43:1) at 16px. The
   lift and the gold shadow are what signal hover. */
.btn-gold:hover, .btn-gold:focus, .btn-gold:active, .btn-gold:visited { color: var(--navy); }

.btn-gold:hover { background: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* GeneratePress also ships `button:hover, button:focus { background-color:
   #3f4047 }`. A <button class="btn-gold"> (footer Subscribe, Send Message,
   Send Inquiry) turned dark grey on keyboard focus with its navy label left
   on it (1.51:1). Restate the gold background and navy label in every state. */
.btn-gold:hover, .btn-gold:focus, .btn-gold:focus-visible, .btn-gold:active { background: var(--gold); color: var(--navy); }

/* Keyboard focus must stay visible now that colour no longer signals it.
   Buttons sit on white, light, navy and photo grounds, so the ring is two-tone:
   a navy line with a white halo outside it. Navy shows on white (15.54:1) and
   the white halo shows on navy (15.54:1), so one rule reaches 3:1 on every
   ground. Halo spread = outline offset (3px) + outline (3px) + halo (3px). */
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 9px var(--white); }

.btn-sm { padding: 10px 20px; font-size: 14px; }

.top-bar { background: var(--navy); color: var(--white); padding: 10px 0; font-size: 14px; }

.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

.top-bar a { color: var(--sky-blue); }

.top-bar a:hover { color: var(--gold); }

.top-bar-left { display: flex; align-items: center; gap: 24px; }

.top-bar-right { display: flex; align-items: center; gap: 16px; }

.top-bar-item { display: flex; align-items: center; gap: 6px; }

.top-bar-item i { width: 16px; height: 16px; color: var(--gold); }

header { background: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow-sm); }

.header-main { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }

.logo { display: flex; align-items: center; gap: 12px; }

nav { display: flex; align-items: center; gap: 8px; }

.nav-link { position: relative; padding: 12px 20px; font-weight: 500; color: var(--navy); display: flex; align-items: center; gap: 6px; }

.nav-link::after { content: ''; position: absolute; bottom: 0; left: 20px; right: 20px; height: 2px; background: var(--gold); transform: scaleX(0); transition: var(--transition-fast); }

.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-link:hover { color: var(--primary-blue); }

/* The nav is a list, so a screen reader announces how many items it holds. The
   flex layout moved from <nav> onto the list; <nav> keeps display:flex so it
   still centres the list on mobile exactly as it centred the links before.
   !important mirrors .footer-links: GeneratePress styles lists site-wide. */
.nav-list { display: flex; align-items: center; gap: 8px; list-style: none !important; margin: 0 !important; padding: 0 !important; }

.nav-list > li { margin: 0 !important; list-style: none !important; background: none !important; }

.dropdown { position: relative; }

.dropdown-menu { list-style: none !important; margin: 0 !important; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 220px; border-radius: 8px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition-fast); padding: 8px 0; z-index: 100; }

/* No-JS fallback only: once chrome.js adds .js-ready, .active alone decides (see chrome.css). */
.dropdown:not(.js-ready):hover .dropdown-menu, .dropdown:not(.js-ready):focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-menu > li { margin: 0 !important; list-style: none !important; background: none !important; }

.dropdown-item { display: block; padding: 12px 24px; color: var(--navy); font-weight: 500; transition: var(--transition-fast); }

.dropdown-item:hover { background: var(--light-blue); color: var(--primary-blue); padding-left: 28px; }

.mobile-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }

footer { background: var(--white); }

.footer-top-bar { background: var(--navy); padding: 12px 0; }

.footer-top-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

.footer-top-item { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: 14px; }

.footer-top-item i { width: 16px; height: 16px; color: var(--gold); }

.footer-top-item a { color: var(--sky-blue); }

.footer-top-item a:hover { color: var(--gold); }

.footer-fax { color: rgba(255, 255, 255, 0.7); font-size: 13px; }

.footer-main { background: var(--white); padding: 40px 0 30px; border-top: 1px solid var(--light-blue); }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; align-items: start; }

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }

.footer-logo { height: 50px; width: auto; margin-bottom: 16px; }

.footer-brand p { color: var(--deep-blue); font-size: 14px; margin-bottom: 16px; line-height: 1.5; }

.footer-social { display: flex; gap: 12px; }

.footer-social a { width: 40px; height: 40px; background: var(--light-blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); transition: var(--transition-fast); }

.footer-social a:hover { background: var(--gold); color: var(--navy); }

.footer-social i { width: 20px; height: 20px; }

.footer-column { display: flex; flex-direction: column; align-items: flex-start; }

.footer-column h4 { color: var(--navy) !important; font-family: var(--font-body) !important; font-weight: 600 !important; margin: 0 0 16px 0 !important; font-size: 1rem !important; }

.footer-links { list-style: none !important; margin: 0 !important; padding: 0 !important; width: 100%; }

.footer-links li { margin: 0 0 8px 0 !important; list-style: none !important; background: none !important; }

.footer-links li::before { content: none !important; display: none !important; }

.footer-links a { color: var(--deep-blue); font-size: 14px; transition: var(--transition-fast); display: inline-block; }

.footer-links a:hover { color: var(--primary-blue); text-decoration: underline; transform: translateX(4px); }

.footer-newsletter-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }

.footer-newsletter-form input { padding: 12px 16px; border: 1px solid var(--medium-blue); border-radius: 4px; font-size: 14px; font-family: var(--font-body); transition: var(--transition-fast); }

.footer-newsletter-form input::placeholder { color: var(--primary-blue); opacity: 1; }

.footer-newsletter-form input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,95,138,0.1); }

#newsletterMessage { margin-top: 10px; font-size: 13px; display: none; }

#newsletterMessage.success { color: #059669; display: block; }

#newsletterMessage.error { color: #DC2626; display: block; }

.footer-bottom { background: var(--navy); padding: 20px 0; }

.footer-bottom-content { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

.footer-bottom-content p { margin: 0; color: rgba(255,255,255,0.7); }

.footer-bottom-links { display: flex; gap: 24px; }

.footer-bottom-links a { color: rgba(255,255,255,0.7); }

.footer-bottom-links a:hover { color: var(--gold); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); }
  nav.active { display: flex; }
  .nav-list { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand, .footer-column { text-align: center !important; align-items: center; }
  .footer-logo { margin: 0 auto 16px; }
  .footer-social { justify-content: center; }
  .footer-column h4 { text-align: center !important; }
  .footer-links li { text-align: center; }
  .footer-top-content { flex-direction: column; text-align: center; }
  .footer-top-item { justify-content: center !important; }
  .footer-bottom-content { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}

/* Phone text floor (audit M32, part 1). Running body copy that page CSS sets at
   13 to 15.6px is lifted to 16px on phones. CSS cannot say "at least what it is
   now", so the rule names the body-copy selectors that were measured under 16px
   at 375px; each one is a paragraph or list item of running text, so none can
   be made smaller by it. Labels, eyebrows, pills, chips, badges, button labels,
   captions, data rows, card titles and the Most Requested Medications cards are
   deliberately not listed and keep their own sizes.
   Specificity: page <style> blocks load after this file with selectors up to
   0-2-1. :not(#hobbs-text-floor) on body adds one id's worth (1-0-1 and up) so
   this wins on specificity alone, with no !important. A page rule that is
   itself !important would still win, which is the right order. */
@media (max-width: 768px) {
  body:not(#hobbs-text-floor) main :is(
    .band-steps .band-step p,
    .extra-card p,
    .extras-more li,
    .service-card p,
    .service-card-content p,
    .content-item-text p,
    .service-col p,
    .more-item p,
    .bento-tile p,
    .education-card p,
    .brace-card p,
    .contact-card p,
    .effective-date,
    .form-hint,
    .fx-note,
    .fx-foot,
    .form-choice-option small
  ) { font-size: 16px; }

  /* The contact page sets its message hint with an inline style attribute,
     which no selector can out-rank without !important. Scoped to that one
     case: a .form-hint that carries an inline style, on phones only. */
  main .form-hint[style] { font-size: 16px !important; }
}
