/* Cares4Seniors audit fixes (Nov 2026). Loaded last on every page so it overrides the older styles.
   Item numbers refer to "Cares4Seniors Website Audit — Compiled Recommendations". */

/* Anything hidden by script (expired dates, calendar fallback) must stay hidden whatever its display rule. */
[hidden] { display: none !important; }

/* M3 · Readability: small text at least 14px, colours at least 4.5:1 on the cream/white backgrounds.
   Light theme only; the dark theme already uses light text. */
html:not([data-theme="dark"]) .eyebrow:not(.light) { color: #5f4b84; }
.eyebrow { font-size: 14px; letter-spacing: .12em; }
html:not([data-theme="dark"]) .hero-mini { color: #4b5c54; }
.hero-mini { font-size: 15px; }
html:not([data-theme="dark"]) .quick-trust span { color: #475a4d; }
.quick-trust span { font-size: 14px; }
html:not([data-theme="dark"]) .fine { color: #4f6057; }
.fine { font-size: 14px; }
html:not([data-theme="dark"]) h1 em, html:not([data-theme="dark"]) h2 em { color: #6a5690; }
html:not([data-theme="dark"]) .care-service-number { color: #5f4b84; }
.care-service-number { font-size: 13px; }
.av-segments button { font-size: 14px; }
html:not([data-theme="dark"]) footer > div > p { color: #4b5b52; }
footer > div > p { font-size: 14px; }
.topline { font-size: 14px; }
.care-service-number { font-size: 14px; }
/* Everything the phone-width scan found under 14px (the logo tagline is left as part of the logo). */
.hero-no-obligation, .hero-price-line span, .care-service-shortcuts a, .care-service-section li,
.care-service-link, .care-service-note, .btn, .text-link, .holiday-intakes-label, .holiday-date-links a,
.holiday-intakes-footnote, .footnote, .footnote span, footer div > a:not(.brand), .consult-service-links a,
.tag, .price, .consult-card p, .card-link, .funding-note p, .funding-disclaimer, .simple-footer, .simple-footer span,
.simple-footer a, .pricing-amount span, .pricing-card p, .pricing-card strong, .care-uses div, .document-list p,
.documents-status, .av-legend-item, .av-control, .av-loading, .av-grid th, .av-extra, .ask-form-head p,
.field label, .ask-availability-note, .ask-privacy, .ask-status, .ask-direct p, .ask-direct a, .ask-extras a,
.crumb, .crumb a, .crumb span, .service-meta span, .privacy-note, .booking-card-top p, .field small,
.booking-fallback p, .booking-fallback a, .mobile-call small, .holiday-intakes .btn, .pricing-card .btn,
.ask-form-fields label, .av-grid td, .av-grid th { font-size: 14px !important; }
.simple-footer { flex-wrap: wrap; }
/* Remaining colours the contrast scan found just under 4.5:1. */
html:not([data-theme="dark"]) .tag { color: #3d5a4b; }
html:not([data-theme="dark"]) .crumb, html:not([data-theme="dark"]) .crumb a, html:not([data-theme="dark"]) .crumb span { color: #4b5c54; }
html:not([data-theme="dark"]) .privacy-note, html:not([data-theme="dark"]) .ask-privacy, html:not([data-theme="dark"]) .documents-status { color: #4b5c54; }
html:not([data-theme="dark"]) .what-next li, html:not([data-theme="dark"]) .service-tagline { color: #3f5a4c; }
html:not([data-theme="dark"]) .section-heading p, html:not([data-theme="dark"]) .pricing-amount span { color: #4b5f54; }
html:not([data-theme="dark"]) .booking-card-top p, html:not([data-theme="dark"]) .field small, html:not([data-theme="dark"]) .info-panel p { color: #4b5f54; }
/* Purple call-to-action bands: darker purple so the white text reads at 4.5:1+, and keep their heading accents light. */
html:not([data-theme="dark"]) .cta-band { background: #6a5690; }
html:not([data-theme="dark"]) .cta-band h2 em, html:not([data-theme="dark"]) .cta-band .eyebrow { color: #fbfaf7; }
html:not([data-theme="dark"]) .av-segments button.is-active, html:not([data-theme="dark"]) .av-segments button[aria-pressed=true] { background: #6a5690; border-color: #6a5690; }

/* M4 · Alexis in the hero instead of a second copy of the logo. */
.hero-alexis { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: clamp(28px, 5vw, 60px) clamp(20px, 4vw, 48px); text-align: center; }
.hero-alexis img { width: min(100%, 300px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 18px 44px rgba(39, 68, 50, .16); }
.hero-alexis-name { margin: 6px 0 0; font: 28px Georgia, serif; color: var(--ink); }
.hero-alexis-cred { margin: 0; font-size: 15px; font-weight: 700; color: #3f5a4c; }
.hero-alexis-line { margin: 0; max-width: 34ch; font-size: 16px; line-height: 1.6; color: #3f5a4c; }
.hero-alexis a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .hero-alexis-name { color: #f0f5eb; }
html[data-theme="dark"] .hero-alexis-cred, html[data-theme="dark"] .hero-alexis-line { color: #dce9df; }

/* H3 · Care hours shown in place of the homepage calendar, and as the fallback on the Availability page. */
.care-hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin: 0 0 22px; }
.care-hours div { background: var(--paper, #fffefa); border: 1px solid var(--border, #d6dfd7); border-radius: 16px; padding: 18px 20px; }
.care-hours h3 { margin: 0 0 4px; font: 19px Georgia, serif; }
.care-hours p { margin: 0; font-size: 16px; }
.av-fallback { margin-top: 8px; }
.av-fallback p { font-size: 16px; }
html[data-theme="dark"] .care-hours div { background: #20342a; border-color: #4d6a56; }

/* Privacy links under each form. */
.form-privacy-link { margin: 12px 0 0; font-size: 14px; }
.form-privacy-link a { text-decoration: underline; text-underline-offset: 3px; }

/* L8 · Care hours in the footer. */
.footer-hours { font-size: 14px; line-height: 1.7; }

/* Privacy page. */
.privacy-page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) 6%; }
.privacy-page h2 { margin-top: 2em; font: 26px Georgia, serif; }
.privacy-page p, .privacy-page li { font-size: 17px; line-height: 1.75; }

/* M11 · Registry link in the trust strip. */
.quick-trust a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  /* H1 · Lift Wix's "Built on WIX Headless" badge above the Call / Ask About Care bar so it can't
     intercept taps. Remove the badge in Wix if your plan allows it (audit H1). */
  #wixheadless-banner-container { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }

  /* M9 · Phone header: wrap the menu onto two lines instead of a hidden sideways scroll,
     and shrink Dark mode to an icon. */
  .site-header nav { overflow-x: visible; flex-wrap: wrap; justify-content: center; row-gap: 2px; column-gap: 16px; }
  .site-header nav a { font-size: 14px; padding: 8px 0; }
  .site-header { flex-wrap: wrap; }
  .site-header .brand { flex: 1 1 0; min-width: 0; }
  .site-header .brand-name small { white-space: normal; }
  .site-header .theme-toggle { min-width: 44px; min-height: 44px; width: 44px; padding: 0; flex: 0 0 44px; }
  .site-header .theme-toggle [data-theme-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* L3 · Footer links tall enough to tap (44px). */
  footer a { display: inline-flex; align-items: center; min-height: 44px; }
  footer div > a:not(.brand) { display: flex; margin: 0; }

  .mobile-action-bar a { font-size: 14px; line-height: 1.2; }
  .mobile-call small { display: block; font-size: 12px; font-weight: 600; }
  .mobile-call { flex-direction: column; }
}
