/* Shared usability refinements, loaded after page-specific styles. */
.ux-mobile-services {
  display: none;
}
.ux-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.ux-hero-actions .rs-pill {
  white-space: nowrap;
}
/* Give tablet hero copy its own row before the desktop columns get cramped. */
@media (min-width: 761px) and (max-width: 1050px) {
  .rs-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .rs-hero-copy {
    grid-column: 1;
  }
  .rs-hero-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .rs-hero-bottom p {
    max-width: 60ch;
  }
  .rs-hero-bottom .ux-hero-actions {
    margin-top: 0;
  }
  .rs-hero-bottom .rs-pill {
    margin-top: 0;
  }
}
/* Keep the scrollable carousel full-width between accordion and desktop modes. */
@media (min-width: 851px) and (max-width: 1050px) {
  .rs-service-slider {
    margin-inline: 0;
    padding-inline: 0;
  }
  .rs-service-card.is-active h3 strong,
  .rs-service-card.is-active h3.has-module strong {
    white-space: normal;
  }
}
.ux-contact-alternatives {
  border-top: 1px solid #ffffff35;
  margin-top: 20px;
  padding-top: 16px;
}
.ux-contact-alternatives .rx-contact p {
  max-width: none;
  font-size: 0.85rem;
  color: #dbe2dc;
}
.ux-contact-alternatives .rx-contact > a {
  display: block;
  font-size: 1rem;
  margin: 12px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rx-quick-enquiry .ux-privacy {
  font: 400 0.82rem/1.6 var(--sans);
  color: #dbe2dc;
  margin: 0;
}
.ux-enquiry-reference {
  color: #f6f2ea;
  font-size: 0.9rem;
}
.ux-gallery-hint {
  display: none;
}
.ux-early-enquiry {
  margin: 0 0 24px;
}
.sv-module,
#product-enquiry {
  scroll-margin-top: 28px;
}
.ux-service-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 28px 0;
  border-bottom: 1px solid #cbd0c7;
}
.ux-service-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.rg-enquire {
  display: inline-flex;
  color: #fff;
  border: 1px solid #ffffff80;
  border-radius: 30px;
  padding: 12px 20px;
  margin-top: 12px;
  font: 400 0.9rem/1.4 var(--sans);
}
.rg-photo-caption {
  font-size: 0.85rem;
  margin: 10px 0 0;
  color: #536055;
}
.page-roar-gallery .rl-lightbox > img {
  height: min(65svh, calc(94svh - 180px));
}
@media (max-width: 850px) {
  .page-home .rs-hero-shade {
    background:
      linear-gradient(
        180deg,
        rgba(6, 15, 10, 0.78),
        rgba(6, 15, 10, 0.58) 38%,
        rgba(6, 15, 10, 0.82)
      ),
      linear-gradient(90deg, rgba(7, 15, 10, 0.18), transparent 75%);
  }
  body.ux-menu-open {
    overflow: hidden;
  }
  body[class] .site-header .nav {
    overflow-y: auto;
    gap: 4px;
    padding: 95px 24px 32px;
    justify-content: center;
  }
  body[class] .site-header .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    padding: 8px 16px;
    font: 400 1.5rem/1.25 var(--serif);
    text-transform: none;
    letter-spacing: 0;
  }
  body[class] .site-header .menu-button {
    min-width: 48px;
    min-height: 48px;
  }
  body[class] .site-header .nav a:focus-visible,
  body[class] .site-header .menu-button:focus-visible {
    outline: 2px solid #d0ae7d;
    outline-offset: 2px;
  }
  .ux-hero-actions {
    width: 100%;
    gap: 10px;
    margin-top: 1.4rem;
  }
  .ux-hero-actions .rs-pill {
    margin-top: 0;
  }
  .rx-product .ux-early-enquiry {
    order: -2;
    width: auto;
    align-self: flex-start;
    margin: 0;
  }
  .rx-page .rx-thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 3px 3px 12px;
    scroll-snap-type: x proximity;
  }
  .rx-page .rx-thumbnails button {
    flex: 0 0 80px;
    scroll-snap-align: start;
  }
  .ux-gallery-hint {
    display: block !important;
    font-size: 0.8rem !important;
    margin: 0 0 10px !important;
    color: #526057;
  }
}
@media (max-height: 620px) and (max-width: 850px) {
  body[class] .site-header .nav {
    justify-content: flex-start;
  }
}

/* Mobile editorial navigation and downward-opening service cards. */
@media (max-width: 850px) {
  body[class] .site-header .nav {
    inset: 8px 8px auto;
    height: auto;
    max-height: calc(100svh - 16px);
    border-radius: 22px;
    background: #f6f2ea;
    color: #1d3025;
    padding: 112px 24px 28px;
    justify-content: flex-start;
    gap: 0;
    box-shadow: 0 24px 80px #07130f30;
    counter-reset: menu-item;
    transform: translateX(calc(100% + 16px));
    visibility: hidden;
    transition:
      transform 0.3s ease,
      visibility 0s linear 0.3s;
  }
  body[class] .site-header .nav.open {
    transform: translateX(0);
    visibility: visible;
    transition:
      transform 0.3s ease,
      visibility 0s;
  }
  body[class] .site-header .nav::before {
    content: "Explore the website";
    display: block;
    align-self: stretch;
    padding: 0 0 20px;
    color: #87663b;
    font: 500 0.65rem/1.4 var(--sans);
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  body[class] .site-header .nav a {
    counter-increment: menu-item;
    position: relative;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 18px;
    min-height: 62px;
    padding: 13px 0;
    border-top: 1px solid #1d302524;
    font-size: clamp(1.55rem, 6.6vw, 2rem);
    line-height: 1.15;
    opacity: 1;
  }
  body[class] .site-header .nav a::before {
    content: "0" counter(menu-item);
    font: 500 0.6rem/1 var(--sans);
    letter-spacing: 0.05em;
    color: #937143;
  }
  body[class] .site-header .nav a::after {
    content: "↗";
    position: static;
    margin-left: auto;
    width: auto;
    height: auto;
    background: none;
    font: 400 1.2rem/1 var(--sans);
    color: #937143;
  }
  body[class] .site-header .nav a[aria-current="page"] {
    color: #937143;
  }
  body.ux-menu-open .site-header .brand {
    position: relative;
    z-index: 1;
    color: #1d3025;
  }
  body.ux-menu-open .site-header .brand img {
    filter: brightness(0) saturate(100%);
    opacity: 0.85;
  }
  body.ux-menu-open .site-header .menu-button {
    color: #f6f2ea;
    background: #1d3025;
    border: 1px solid #1d3025;
    border-radius: 99px;
    padding: 0 14px;
    min-height: 42px;
    letter-spacing: 0.08em;
  }
  .rs-home .rs-service-carousel {
    display: none;
  }
  .ux-mobile-services {
    display: grid;
    gap: 10px;
  }
  .ux-mobile-services details {
    overflow: hidden;
    border-radius: 16px;
    background: #1d3025;
    color: #f6f2ea;
  }
  .ux-mobile-services summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 20px;
    cursor: pointer;
    list-style: none;
  }
  .ux-mobile-services summary::-webkit-details-marker {
    display: none;
  }
  .ux-mobile-services summary strong {
    display: block;
    font: 400 1.5rem/1.15 var(--serif);
  }
  .ux-mobile-services summary small {
    display: block;
    color: #d0ae7d;
    font: 500 0.65rem/1.4 var(--sans);
    letter-spacing: 0.1em;
    margin-bottom: 7px;
  }
  .ux-service-toggle {
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ffffff50;
    border-radius: 50%;
    font: 400 1.2rem/1 var(--sans);
  }
  .ux-service-panel {
    display: flex;
    align-items: flex-end;
    min-height: 210px;
    padding: 22px;
    background:
      linear-gradient(0deg, #10271bea, transparent),
      var(--service-image) center/cover;
  }
  .ux-service-panel .rs-pill {
    color: #fff;
    margin: 0;
    background: #1d302580;
  }
  .ux-mobile-services summary:focus-visible {
    outline: 2px solid #d0ae7d;
    outline-offset: -5px;
  }
  .page-home .rs-why-stack {
    display: block;
    isolation: isolate;
    position: relative;
  }
  .page-home .rs-home .rs-why-image {
    position: sticky;
    top: 0;
    height: 78svh;
    min-height: 450px;
    margin: 0;
  }
  .page-home .rs-home .rs-why-image:first-child {
    z-index: 1;
  }
  .page-home .rs-home .rs-why-image:nth-child(2) {
    z-index: 2;
  }
  .page-home .rs-home .rs-why-image img {
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }
  .page-home .rs-home .rs-why-image figcaption {
    padding: 36px 26px;
  }
  .page-home .rs-home .rs-why-image figcaption p {
    font-size: clamp(1.8rem, 7.3vw, 2.6rem);
    line-height: 1.12;
  }
  .page-home .rs-home .rs-why-card {
    position: relative;
    top: auto;
    z-index: 3;
    display: block;
    height: auto;
    min-height: 78svh;
    padding: 52px 26px;
    transform: none;
  }
  .page-home .rs-home .rs-why-card h2 {
    font-size: 2.6rem;
    max-width: 10em;
    margin: 0 0 28px;
  }
}
@media (max-width: 850px) and (prefers-reduced-motion: reduce) {
  .page-home .rs-home .rs-why-image {
    position: relative;
  }
}
