/* Interaction layer. Keep content and essential navigation usable without JS. */
[hidden] { display: none !important; }
a, button, summary, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 3px solid #22624f; outline-offset: 4px; }
.site-footer :focus-visible { outline-color: #b5dfcc; }
.site-header { transition: box-shadow .22s ease, background-color .22s ease; }
.site-header.is-scrolled { background-color: rgba(255,255,255,.98); box-shadow: 0 5px 22px rgba(25,43,33,.07); }

/* A collapsed details control must stay collapsed on hover and focus. */
.nav-group:not([open]) > .nav-dropdown { display: none; }
.nav-group[open] > .nav-dropdown { display: grid; }
.nav-group > summary { min-height: 44px; }
.primary-nav a, .nav-dropdown a { transition: background-color .18s ease, color .18s ease; }
.primary-nav > a[aria-current="page"]:not(.nav-cta), .nav-group[data-current="true"] > summary { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.nav-dropdown a { min-height: 44px; }
.nav-dropdown a:focus-visible { outline-offset: -3px; }
.menu-toggle { min-width: 44px; min-height: 44px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-last-child(2) { transform: translateY(3.2px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:last-child { transform: translateY(-3.2px) rotate(-45deg); }

.button { padding-block: 11px; text-align: center; }
.button span[aria-hidden], .nav-cta span[aria-hidden], .text-link span[aria-hidden] { display: inline-block; transition: transform .2s ease; }
.button:hover span[aria-hidden], .button:focus-visible span[aria-hidden], .nav-cta:hover span[aria-hidden], .text-link:hover span[aria-hidden] { transform: translate(3px,-2px); }
.button:active, .nav-cta:active { transform: translateY(1px); }
.service-card, .industry-card, .inner-card, .journey-card, .scope-card, .inner-related__item { transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.service-card:focus-within, .industry-card:focus-within, .inner-card:focus-within, .inner-related__item:focus-within { z-index: 1; box-shadow: 0 0 0 2px #22624f; }
.text-link { text-underline-offset: 5px; }
.text-link:focus-visible { border-radius: 2px; }
.faq-list summary, .inner-faq summary { transition: color .2s ease, background .2s ease; }
.faq-list summary:hover, .inner-faq summary:hover { color: #22624f; }
.faq-list details[open] summary, .inner-faq details[open] summary { color: #174d3d; }

.back-to-top { position: fixed; z-index: 25; right: max(20px,env(safe-area-inset-right)); bottom: calc(92px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #cbd9d1; border-radius: 50%; background: #fff; color: #20352b; font-size: 25px; line-height: 1; box-shadow: 0 4px 16px rgba(25,45,35,.12); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.back-to-top:hover { transform: translateY(-3px); background: #edf5f1; }

.faq-search { margin: 0 0 28px; }
.faq-search > label { display: block; margin-bottom: 10px; font-weight: 650; }
.faq-search__controls { display: flex; gap: 10px; }
.faq-search input { width: 100%; min-width: 0; min-height: 54px; padding: 12px 16px; border: 1px solid #bccfc3; border-radius: 4px; background: white; color: #18251e; font-size: 18px; }
.faq-search input:focus { outline: 2px solid #22624f; outline-offset: 2px; }
.faq-search__clear { flex-shrink: 0; padding: 10px 14px; border: 1px solid #bccfc3; border-radius: 4px; background: #edf5f1; color: #174d3d; cursor: pointer; font-size: 15px; }
.faq-search__status { min-height: 1.3em; margin: 8px 0 0; color: #52655a; font-size: 15px; }
.faq-search__empty { padding: 24px; border: 1px solid #d3dfd7; background: #edf5f1; }
.faq-search__empty a { text-decoration: underline; text-underline-offset: 4px; }

.prepared-enquiry { margin-top: 22px; padding: 22px; border: 1px solid #c8dace; border-radius: 6px; background: #edf5f1; }
.prepared-enquiry h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.3; }
.prepared-enquiry label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.prepared-enquiry .prepared-enquiry__message { display: block; width: 100%; min-height: 200px; max-height: 420px; padding: 14px; border: 1px solid #cbd9d1; border-radius: 4px; resize: vertical; background: white; color: #2b4135; font: 15px/1.65 Arial,sans-serif; overflow-wrap: break-word; }
.prepared-enquiry__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.prepared-enquiry__actions .button { flex: 1 1 175px; width: auto; min-height: 48px; margin: 0; padding: 10px 13px; font-size: 15px; }
.prepared-enquiry__help, .prepared-enquiry__copy-status { margin: 13px 0 0; color: #52655a; font-size: 14px; line-height: 1.65; }
.prepared-enquiry__help a { font-weight: 600; text-decoration: underline; }
#form-status:not(:empty) { margin-top: 16px; padding: 12px 14px; border-left: 3px solid #22624f; background: #edf5f1; color: #315841; font-size: 15px; line-height: 1.65; }

@media (hover: hover) and (pointer: fine) {
  .service-card:hover, .industry-card:hover, .journey-card:hover, .scope-card:hover, .inner-related__item:hover { transform: translateY(-5px); box-shadow: 0 14px 32px rgba(22,48,34,.08); }
  .interactive-image, .hero-illustration, .hero-illustration img, .inner-hero__visual img { transition: transform .5s cubic-bezier(.2,.75,.3,1); }
  .interactive-image:hover, .hero-illustration:hover, .hero-illustration:hover img, .inner-hero__visual:hover img { transform: translateY(-7px) rotate(-1deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-item.is-revealed { animation: swd-reveal .65s cubic-bezier(.2,.7,.25,1); }
  @keyframes swd-reveal { from { opacity: .25; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 1120px) {
  .primary-nav { max-height: calc(100dvh - 100px); padding-bottom: max(22px,env(safe-area-inset-bottom)); }
  html:not(.js-ready) .header__inner { flex-wrap: wrap; padding-block: 15px; }
  html:not(.js-ready) .menu-toggle { display: none; }
  html:not(.js-ready) .primary-nav { position: static; display: flex; flex: 0 0 100%; flex-direction: column; max-height: none; box-shadow: none; padding: 0; }
  .nav-group > summary { min-height: 49px; }
}
@media (max-width: 480px) {
  .back-to-top { right: 16px; width: 44px; height: 44px; }
  .faq-search__controls { flex-wrap: wrap; }
  .faq-search__clear { min-height: 44px; }
  .prepared-enquiry { padding: 16px; }
  .prepared-enquiry__actions { flex-direction: column; }
  .prepared-enquiry__actions .button { flex: auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .motion-item { opacity: 1 !important; transform: none !important; }
}
@media print {
  .menu-toggle, .back-to-top, .faq-search, .prepared-enquiry__actions { display: none !important; }
  .motion-item { opacity: 1 !important; transform: none !important; }
}
