/* Shared CTA hover policy — loaded after component styles.
   Normal red / secondary styles stay unchanged. The nearest surface supplies
   the hover palette, including light panels nested inside dark sections. */
:root {
  --cta-hover-bg: var(--navy);
  --cta-hover-text: #fff;
  --cta-hover-mark-bg: #fff;
  --cta-hover-mark-text: var(--navy);
  --cta-lift: -2px;
}
:where(.site-header,.site-footer,.hp-hero,.hp-dark-unified,.reference-banner,
       .ref-about-dark,.section-navy,.b-reviews-proof,.b-delivery-panel,
       .hp-testimonial-card,.cp-review-panel,.cp-collaboration,.cp-conversation-panel,
       .ref-contact-panel,.ref-enquiry-form,.sg-selector,.sd-consultation,
       .c-article-consultation,.c-hub-side-service,.c-hub-dark-band,
       .cp-project-journey-section,.cp-topic-checklist,.cp-topic-service) {
  --cta-hover-bg: #fff;
  --cta-hover-text: var(--ink);
  --cta-hover-mark-bg: var(--ink);
  --cta-hover-mark-text: #fff;
}
:where(dialog,.footer-enquiry-dialog,.footer-consultation,.sg-plan-summary,
       .hp-service-card,.hp-home-services-grid,.ref-article-contact,
       .c-topic-service-strip,.qa-consultation,.sd-advice,.ref-advice-card,
       .editorial-card,.hp-journal-card) {
  --cta-hover-bg: var(--navy);
  --cta-hover-text: #fff;
  --cta-hover-mark-bg: #fff;
  --cta-hover-mark-text: var(--navy);
}

/* Standard CTAs, submit buttons, and the custom reviews CTA. */
body :is(.button,.hp-testimonial-action,.cp-review-link) {
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
              translate .2s ease, box-shadow .2s ease;
}
body :is(.button,.hp-testimonial-action,.cp-review-link):not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible) {
  background: var(--cta-hover-bg) !important;
  color: var(--cta-hover-text) !important;
  border-color: var(--cta-hover-bg);
  translate: 0 var(--cta-lift);
}
body :is(.button,.hp-testimonial-action,.cp-review-link) :is(.button-mark,.cp-review-link-arrow) {
  transition: background-color .2s ease,color .2s ease;
}
body :is(.button,.hp-testimonial-action,.cp-review-link):not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible) :is(.button-mark,.cp-review-link-arrow),
body .hp-testimonial-action:is(:hover,:focus-visible)>span:last-child {
  background: var(--cta-hover-mark-bg) !important;
  color: var(--cta-hover-mark-text) !important;
}

/* Red circular CTA on the dark hero. Keep its adjacent link text white. */
body .homepage .hp-play-link>span {
  transition: background-color .2s ease,color .2s ease,translate .2s ease;
}
body .homepage .hp-play-link:is(:hover,:focus-visible)>span {
  background: #fff;
  color: var(--ink);
  translate: 0 var(--cta-lift);
}

/* Service card arrow sits in the white cutout, not on the navy card.
   Its existing independent lift is already applied by the card component. */
body .homepage .hp-home-service-action-mark {
  transition: background-color .2s ease,color .2s ease,transform .24s ease;
}
body .homepage .hp-home-service-link:is(:hover,:focus-visible) .hp-home-service-action-mark {
  background: var(--navy);
  color: #fff;
}

/* Editorial cards turn navy when the card itself is hovered. */
body .editorial-card-arrow, body .hp-journal-arrow, body .c-guide-action>span {
  transition: background-color .2s ease,color .2s ease,translate .2s ease;
}
body .editorial-card-link:is(:hover,:focus-visible) .editorial-card-arrow {
  background: #fff;
  color: var(--ink);
  translate: 0 var(--cta-lift);
}
body .hp-journal-link:is(:hover,:focus-visible) .hp-journal-arrow,
body .c-guide-card-link:is(:hover,:focus-visible) .c-guide-action>span {
  background: var(--cta-hover-bg);
  color: var(--cta-hover-text);
  translate: 0 var(--cta-lift);
}

/* Dark testimonial controls remain neutral at rest; readable light hover. */
body .homepage .hp-testimonial-controls button {
  transition: background-color .2s ease,color .2s ease,border-color .2s ease,translate .2s ease;
}
body .homepage .hp-testimonial-controls button:not(:disabled):is(:hover,:focus-visible) {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  translate: 0 var(--cta-lift);
}

/* Respect reduced motion; colour feedback remains available. */
@media (prefers-reduced-motion: reduce) {
  :root { --cta-lift: 0px; }
  body :is(.button,.hp-testimonial-action,.cp-review-link),
  body .homepage .hp-play-link>span,
  body .homepage .hp-home-service-action-mark,
  body :is(.editorial-card-arrow,.hp-journal-arrow),
  body .c-guide-action>span,
  body .homepage .hp-testimonial-controls button {
    transition: none;
  }
}
@media print {
  :root { --cta-lift: 0px; }
}
/* Whole-card hover feedback, shared across service, topic and article libraries.
   Lift the interactive link, not the scroll-reveal wrapper. Preserve the existing
   navy/coral hover palettes, and avoid doubled transforms or touch-only hover. */
body :is(.editorial-card .editorial-card-link,.c-modern-topic-link,.c-hub-topic-link,.knowledge-entry-card,.homepage .hp-home-service-link){
  transition:background-color .22s ease,color .22s ease,border-color .22s ease,box-shadow .22s ease,translate .22s ease;
}
body .c-pillar-hub .editorial-card.c-guide-card:is(:hover,:focus-within){transform:none}
body .c-pillar-hub .c-hub-topic-link:is(:hover,:focus-visible){transform:none}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  body :is(.editorial-card .editorial-card-link,.c-modern-topic-link,.c-hub-topic-link,.knowledge-entry-card,.homepage .hp-home-service-link):hover{translate:0 -3px}
  body .c-modern-topic-link:hover .c-modern-topic-surface{box-shadow:0 .65rem 1.4rem #14213118}
}
@media(prefers-reduced-motion:no-preference){
  body :is(.editorial-card .editorial-card-link,.c-modern-topic-link,.c-hub-topic-link,.knowledge-entry-card,.homepage .hp-home-service-link):focus-visible{translate:0 -3px}
}
body .c-modern-topic-arrow{transition:background-color .22s ease,color .22s ease}
body .c-modern-topic-link:is(:hover,:focus-visible) .c-modern-topic-arrow{background:#fff;color:var(--navy)}
body .knowledge-entry-card:is(:hover,:focus-visible){color:#fff}
body .knowledge-entry-card:is(:hover,:focus-visible) :is(h3,p,.knowledge-entry-label,.knowledge-entry-action){color:#fff}
@media(prefers-reduced-motion:reduce){
  body :is(.editorial-card .editorial-card-link,.c-modern-topic-link,.c-hub-topic-link,.knowledge-entry-card,.homepage .hp-home-service-link,.c-modern-topic-arrow){translate:none;transition:none}
}
@media print{body :is(.editorial-card .editorial-card-link,.c-modern-topic-link,.c-hub-topic-link,.knowledge-entry-card,.homepage .hp-home-service-link){translate:none!important;box-shadow:none!important}}
