/* VT Exquisite Home Care — shared PUBLIC-site dark appearance.
   Loaded after page-specific styles so the public website never falls back to
   black browser-generated colors or low-contrast light-theme text.
   Light mode intentionally has no visual overrides. */
html { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  html { color-scheme: dark; background:#1d372d; }
  :root {
    --ink:#f4f8f3;
    --muted:#c4d8ce;
    --cream:#1d372d;
    --line:#587367;
    --orange:#ffba88;
    --vt-dark-canvas:#1d372d;
    --vt-dark-surface:#294b3c;
    --vt-dark-surface-alt:#325544;
    --vt-light-text:#f4f8f3;
    --vt-muted-text:#c4d8ce;
  }
  body { background:var(--vt-dark-canvas);color:var(--vt-light-text); }
  .topline, body > header, header:not(.app-header),
  .section, .local-hero, .local-services, .local-details, .local-faq,
  .care-editorial, .news-sage-section, .newsletter-section, .values,
  .approach, .trust-section, .connect-section, .connect-section.contact-editorial,
  .warm-consultation, .warm-consultation .consultation-copy,
  .application-wrap, .careers-intro, .application-success,
  .area-section, .area-region {
    color:var(--vt-light-text);
  }
  .topline, body > header, header:not(.app-header) { background:var(--vt-dark-canvas);border-color:var(--line); }
  .topline *, header nav a, header .brand, .breadcrumbs, .breadcrumbs a {
    color:var(--vt-light-text);
  }
  header nav a[aria-current="page"] {color:var(--orange);}
  .eyebrow,.news-sage-section .eyebrow,.warm-consultation .eyebrow,
  .locationcard .eyebrow,.footer-office h3 {color:var(--orange);}
  .textlink,.locationemail a,.footer-areas a,.area-jumps a,
  .news-body .textlink,.care-editorial .cardlink b {color:var(--orange);}
  .section p, .section li, .section label, .section address,
  .section small, .local-note, .application-note, .field-help,
  .locationcard address, .news-tagline, .news-body .meta,
  .news-body .news-credit, .news-body>p:not(.meta):not(.news-credit),
  .care-editorial .carecard p,.chat-intake-note,.heronote,
  .trust-slots small {color:var(--vt-muted-text);}
  .section h1,.section h2,.section h3,.section h4,
  .local-hero h1, .local-faq h2, .news-headline,
  .news-headline h3,.care-editorial .carecard h3 {color:var(--vt-light-text);}
  .section h1 em,.section h2 em,.section h3 em {color:var(--orange);}

  /* Dark surfaces: preserve the existing layout, spacing, and branding. */
  .values,.approach,.trust-section,.news-sage-section,.newsletter-section,
  .connect-section,.connect-section.contact-editorial,
  .warm-consultation,.warm-consultation .consultation-copy {
    background:var(--vt-dark-canvas);
  }
  .carecard,.care-editorial .carecard,.care-editorial .carecard:nth-child(n),
  .connect-card,.connect-section .connect-card,.connect-section .connect-card:nth-child(n),
  .contact-editorial .connect-card,.contact-editorial .connect-card:nth-child(n),
  .contact-editorial .social-card,.locationcard,.trust-slots article,.testimonial-slot,
  .video-slot,.career-role,.application-form,.application-success,
  .news-card,.news-body,.cookie-banner,.chat-panel,.imagecaption,
  .care-brand-art,.pill, .care-editorial .additional-care a,
  .application-review {
    background:var(--vt-dark-surface);
    border-color:var(--line);
    color:var(--vt-light-text);
  }
  .carecard:hover,.care-editorial .carecard:hover,
  .connect-card:hover,.locationcard:hover,.career-role:hover {
    background:var(--vt-dark-surface-alt);
  }
  .news-visual,.news-card:nth-child(3n + 2) .news-visual {
    background:linear-gradient(135deg,#39614e,#2b4b3b);
    color:#fff;
  }
  .news-visual h3,.news-card .news-category {color:#fff;}
  .news-category {background:#245340;}
  .news-headline,.news-headline h3,.care-editorial .carecard h3,
  .career-role h2,.application-form h2,.application-form legend,
  .application-success h2 {color:var(--vt-light-text);}
  .warm-consultation,.warm-consultation .consultation-copy,
  .care-brand-art,.connect-section,.contact-editorial {
    box-shadow:none;
  }
  .care-brand-art span,.care-editorial .additional-care a,
  .contact-editorial .social-actions a,
  .connect-section .social-actions a {
    color:var(--vt-light-text);background:var(--vt-dark-surface-alt);
  }
  .care-editorial .additional-care a,.connect-section .social-actions a,
  .contact-editorial .social-actions a {border-color:var(--line);}
  .warm-consultation .button,.button,.application-actions .button {
    background:#f28e4b;color:#18382b;border-color:#f28e4b;
    font-weight:700;
  }
  .button:hover,.warm-consultation .button:hover {background:#ffc090;color:#17372b;}
  .button.light,.application-back,.cookie-actions button,
  .cookie-settings,.social-actions button {
    background:#345747;color:var(--vt-light-text);border:1px solid var(--line);
  }
  .footer-services a,.footer-social a {color:var(--vt-light-text);}
  .chat-toggle,.chat-heading {background:#16452f;color:#fff;}
  .chat-preview-note,.form-preview-note,.visitor-bubble,.team-bubble {
    background:#355744;color:var(--vt-light-text);
  }
  .team-bubble {border-inline-start:3px solid #f28e4b;}
  .consultation,.social-actions .messenger-link {color:#fff;background:#276046;}
  .care-editorial .serviceicon,.connect-section .serviceicon {background:#446c50;}
  /* Inputs remain light to maximize legibility for applicants and families. */
  .contact-form input,.contact-form select,.contact-form textarea,
  .application-form input,.application-form select,.application-form textarea,
  .chat-body input,.chat-body textarea,
  input:not([type=checkbox]):not([type=radio]), select, textarea {
    background:#fbfcf8;color:#193c30;border-color:#91b2a1;
  }
  input::placeholder, textarea::placeholder {color:#64746d;opacity:1;}
  input:focus, textarea:focus, select:focus {outline-color:#ffac75;}
  .application-form label,.application-progress p,.application-review dt,
  .application-review dd, #stepLabels li.complete {color:var(--vt-light-text);}
  .application-form .field-help,#stepLabels li,
  .application-note,.career-call p {color:var(--vt-muted-text);}
  #stepLabels li[aria-current] {color:var(--orange);}
  .application-review {background:#325442;}
  .application-back {color:var(--vt-light-text);}
  .application-feedback {color:#ffc29f;}
  /* Cookies and dialogs inherit the same readable surfaces. */
  .cookie-banner,.cookie-dialog,dialog {background:#294b3c;color:#f4f8f3;border-color:var(--line);}
  .cookie-actions [data-choice="true"],#saveCookies,
  .cookie-banner .cookie-actions [data-choice] {
    background:#f28e4b;color:#18382b;
  }
  .warm-footer .footer-office {background:#f7faf4;color:#193c30;}
  .warm-footer .footer-office h4 {color:#a9411d;}
  .warm-footer .footer-office address {color:#52685a;}
  .warm-footer .footer-phone {color:#173b2e;}
  .warm-footer .footer-social a {color:#fff;}
  a:focus-visible,button:focus-visible,input:focus-visible,
  select:focus-visible,textarea:focus-visible {outline:3px solid #ffae75;outline-offset:3px;}
}

/* Cross-page contrast exceptions identified by mobile render audit. */
@media (prefers-color-scheme: dark) {
  /* Sticky call-to-action uses a warm accent: dark text, never white-on-peach. */
  .local-mobile-call { background:#f28e4b;color:#17382b; font-weight:750; }
  .consultation {background:#276046;}
  .consultation .eyebrow, .consultation-copy .eyebrow {color:#ffd2ac;}
  .warm-consultation .consultation-copy p,
  body.home-page .warm-consultation .consultation-copy p {color:#dce9dc;}
  .consultation-call small, .warm-consultation .consultation-call small {color:#ffc492;}
  .consultation-call strong, .warm-consultation .consultation-call strong {color:#f5fff7;}
  .mobile-resources-copy small {color:#365345;}
  .mobile-resources-action {color:#8e4218;}
  .section .mobile-resources-copy small {color:#365345;}
  .section .mobile-resources-action {color:#8e4218;}
  /* Public pages use forest-green backgrounds; avoid browser auto-inversion. */
  body:not(.home-page) > header .brand img.company-logo {filter:none;background:transparent;}
}
@media (prefers-color-scheme: dark) and (max-width:720px) {
  body.home-page .mobile-resources-copy small {color:#3d5749;}
  body.home-page .mobile-resources-action {color:#93400f;}
}
