/* Splendid Tiger – additions on top of the original theme stylesheet (style.css).
   Replaces behaviour that the WordPress theme handled with jQuery plugins. */

:root { --st-header-h: 83px; }

/* Fixed header (theme used a JS sticky block with a height placeholder) */
.header { position: fixed; top: 0; left: 0; right: 0; }
.wrapper { padding-top: var(--st-header-h); }
html { scroll-padding-top: calc(var(--st-header-h) + 16px); }

/* Skip link */
.st-skip { position: absolute; left: -9999px; top: 0; z-index: 6000; background: #a2dcd3; color: #000102; padding: 10px 16px; font-family: "Open Sans", sans-serif; }
.st-skip:focus { left: 16px; top: 16px; }
main:focus { outline: none; }

/* Training submenu: click / keyboard open state mirrors the theme's :hover rules */
.header .nav .menu-item-has-children.is-open .sub-menu,
.header .nav .menu-item-has-children:focus-within .sub-menu { display: block; position: relative; }
.header .nav .menu-item-has-children.is-open .sub-menu li a,
.header .nav .menu-item-has-children:focus-within .sub-menu li a { margin: 0; padding: 5px; }
@media (min-width: 1024px) {
  .header .nav .menu-item-has-children.is-open .sub-menu,
  .header .nav .menu-item-has-children:focus-within .sub-menu {
    position: absolute; bottom: 0; left: 0; transform: translate(0%, 100%);
    background: #1a1f20; padding: 0; margin: 0; width: 230px;
  }
}
@media (max-width: 1023px) {
  /* mobile overlay must be scrollable when Training is expanded on short screens */
  .nav-active .header .nav { max-height: calc(100vh - var(--st-header-h)); overflow-y: auto; }
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #a2dcd3; outline-offset: 2px; }

/* Testimonial slider – fade mode */

.quotes-slider.st-fade .slick-track { display: grid; }
.quotes-slider.st-fade .slick-slide { grid-area: 1 / 1; float: none; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.quotes-slider.st-fade .slick-slide.slick-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.customer-quotes .slick-dots button { cursor: pointer; }
.customer-quotes .slick-arrow { cursor: pointer; z-index: 10; }
@media (prefers-reduced-motion: reduce) {
  .quotes-slider.st-fade .slick-slide { transition: none; }
}

/* Video modal (theme used Fancybox) */
.st-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 50px 0; }
.st-modal[hidden] { display: none; }
.st-modal-backdrop { position: absolute; inset: 0; background: rgba(30, 30, 30, 0.9); }
.st-modal-panel { position: relative; width: min(1100px, 100%); height: auto; aspect-ratio: 16 / 9; max-height: calc(100vh - 100px); }
.st-modal-panel .popup-inner, .st-modal-panel .video-block { width: 100%; height: 100%; }
.st-modal-panel iframe { border: 0; width: 100%; height: 100%; }
.st-modal-close { position: absolute; top: -44px; right: 0; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
body.st-modal-open { overflow: hidden; }

/* Forms */
.st-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.gform_wrapper .st-summary { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #c02b0a; color: #c02b0a; background: rgba(192, 43, 10, 0.05); font-size: 15px; line-height: 1.4; }
.gform_wrapper .st-summary[hidden] { display: none; }
.gform_wrapper .st-summary a { color: inherit; text-decoration: underline; }
.gform_wrapper li.gfield.gfield_error .validation_message { color: #c02b0a; font-size: 13px; padding-top: 6px; }
.gform_wrapper input[type=submit][disabled] { opacity: .6; cursor: progress; }
.st-confirmation { padding: 16px 0; font-size: 18px; line-height: 1.5; }
.st-confirmation:focus { outline: none; }
.footer .st-confirmation { color: #fff; font-size: 15px; }

/* Search page */
.st-search .st-search-status { margin: 0 0 20px; }
.st-search .trainings-item { margin-bottom: 30px; }
