/* Shared finishing details, following the existing brand and page styles. */
.page-main > .section:not(.hero) {
  padding-block: clamp(60px, 7vw, 104px);
}
.page-main:not(.page-home) .section-heading {
  gap: 32px 56px;
  padding-bottom: 32px;
  margin-bottom: clamp(32px, 4vw, 52px);
  border-bottom-color: var(--line);
}
.section-heading > p { line-height: 1.85; }
.eyebrow { line-height: 1.8; }

/* Closed cards match; expanded details only change the selected card. */
.page-services .service-grid { gap: 24px; grid-auto-rows: auto; align-items: start; }
.page-services .service-card {
  min-height: 430px;
  padding: clamp(24px, 2.6vw, 36px);
  border-top: 3px solid #b9d5d9;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 3px 0 #102e3604;
  transition: border-color 180ms, box-shadow 180ms, background 180ms;
}
.page-services .service-card-top { align-items: center; margin-bottom: 30px; }
.service-card .service-icon {
  box-sizing: content-box;
  padding: 12px;
  border: 1px solid #d4e7e9;
  border-radius: 4px;
  background: #edf7f7;
}
.page-services .service-card-top > .index { font-size: 28px; color: #687e83; }
.page-services .service-card h3 { font-size: clamp(32px, 2.8vw, 39px); line-height: 1.12; margin-bottom: 18px; }
.page-services .service-card > p { line-height: 1.85; padding-bottom: 0; }
.service-details { margin: auto 0 0; padding-top: 16px; }
.service-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding-block: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}
.service-details > summary::-webkit-details-marker { display: none; }
.service-details > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-details-icon { font-size: 22px; font-weight: 400; line-height: 1; }
.service-details-hide,
.service-details[open] .service-details-show { display: none; }
.service-details[open] .service-details-hide { display: inline; }
.service-details[open] .service-details-icon { transform: rotate(45deg); }
.page-services .service-points {
  margin: 8px 0 4px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  list-style: disc;
}
.page-services .service-points li { padding-left: 3px; }
.page-services .service-points li + li { margin-top: 9px; }
.page-services .service-points li::marker { color: var(--teal); }
.page-services .card-link { min-height: 48px; padding-top: 18px; color: var(--teal); }
.page-services .service-card:focus-within {
  background: #f6fbfb;
  border-color: var(--teal);
  box-shadow: 0 8px 24px #102e360c;
}

/* Supporting documents stay uncropped and use the same preview frame. */
.credentials-grid { gap: 24px; }
.credential-card { overflow: hidden; border-radius: 4px; box-shadow: 0 4px 18px #102e3606; }
.credential-card:focus-within { border-color: var(--teal); }
.credential-preview {
  height: 240px;
  padding: 24px;
  background: linear-gradient(145deg, #e2edef, #f3f8f9);
  border-bottom: 1px solid var(--line);
}
.credential-preview img { object-fit: contain; }
.credential-copy { padding: 26px 22px 24px; }
.credential-issuer { line-height: 1.6; min-height: 30px; margin-bottom: 8px; }
.credential-copy h3 { font-size: 21px; line-height: 1.25; }
.credential-reference {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  letter-spacing: .4px;
}
.credential-date { margin-top: 4px; }
.credential-meta { flex-wrap: wrap; padding: 14px 22px; background: #f6fafb; }
.credential-open { width: 36px; height: 36px; border-radius: 50%; }
.credentials-note { line-height: 1.85; }

/* Album names lead; photo counts and open/close indicators remain separate. */
.gallery-overview > .gallery-album:nth-child(3) > summary { grid-column: 1; grid-row: 2; }
.gallery-overview > .gallery-album:nth-child(4) > summary { grid-column: 2; grid-row: 2; }
.gallery-overview > .gallery-album:nth-child(5) > summary { grid-column: 1; grid-row: 3; }
.gallery-album-tile { border-radius: 4px; }
.gallery-album-tile .gallery-image { border-radius: 4px 4px 0 0; }
.gallery-album-tile .gallery-caption {
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #fff;
}
.gallery-caption > span:first-child {
  font-family: var(--heading);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.15;
}
.album-count { gap: 12px; font-size: 12px; color: var(--muted); }
.album-indicator {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #c5dfe1;
  border-radius: 50%;
  background: #edf7f7;
  color: var(--teal);
  line-height: 1;
}
.gallery-album[open] > .gallery-album-tile .gallery-caption { border-color: var(--teal); background: #f0f9f9; }
.gallery-album-tile:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.album-gallery .gallery-grid figcaption { gap: 16px; padding-block: 16px; line-height: 1.6; }

/* Contact details share one scale instead of competing with each other. */
.page-contact .contact-method {
  gap: 14px;
  margin-bottom: 24px;
}
.page-contact .contact-method > .icon,
.page-contact .location-pin .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.page-contact .contact-method > .icon,
.page-contact .contact-method > .location-pin { margin-top: 3px; }
.page-contact .contact-method > div { min-width: 0; }
/* The radio remote shares the drawing's restrained industrial palette. */
.control-demonstration .motion-study { container-type: inline-size; }
.motion-stage { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding-block: 4px 20px; }
.motion-stage .motion-drawing { width: 100%; min-width: 0; }
.control-demonstration .hoist-remote {
  display: grid; grid-template-columns: 1fr auto; width: 100%; min-width: 0;
  gap: 10px; padding: 12px; border: 1px solid #36616a; border-radius: 8px;
  background: #173d46; color: #e7f3f4; box-shadow: 3px 5px 0 #102e361a;
}
.remote-heading { display: flex; align-items: center; gap: 6px; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.remote-light { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #90a7ac; }
.hoist-remote.is-active .remote-light { background: #65e0d5; box-shadow: 0 0 0 3px #65e0d51a; }
.remote-status { font-size: 11px; line-height: 1.5; min-height: 17px; color: #d6e7e9; text-align: right; }
.remote-buttons { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.control-demonstration .hoist-remote button {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-width: 44px; min-height: 44px; width: 100%; padding: 8px; border: 1px solid #b5cdd1;
  border-radius: 5px; background: #f0f7f8; color: #173d46; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.control-demonstration .hoist-remote button:hover { background: #d5ecee; }
.control-demonstration .hoist-remote button:focus-visible { outline: 3px solid #63ddd4; outline-offset: 3px; }
.control-demonstration .hoist-remote .motion-stop { background: #f8e7e1; color: #8a3025; border-color: #d6a59a; }
.control-demonstration .hoist-remote .motion-stop:hover { background: #f2d3ca; }
.control-demonstration .hoist-remote .motion-toggle[aria-pressed="true"] { background: #64ded5; border-color: #64ded5; }
.control-demonstration .hoist-remote[hidden] { display: none; }
@container (max-width: 300px) {
  .remote-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.page-contact .contact-emails { margin: 0; display: grid; gap: 12px; }
.page-contact .contact-emails dt {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.page-contact .contact-emails dd { margin: 1px 0 0; }
.page-contact .contact-method .contact-emails a {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--teal);
}
.page-contact .detail-label,
.page-contact .hours-note .detail-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 7px;
}
.page-contact .contact-method a,
.page-contact .contact-method address,
.page-contact .hours-note p {
  font-size: 14px;
  line-height: 1.8;
}
.page-contact .contact-method a.contact-phone {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.3px;
  line-height: 1.5;
}
.page-contact .contact-method a.map-link {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  min-height: 32px;
}
.page-contact .hours-note { margin-top: 24px; padding-top: 20px; }

/* Calm grouping, readable controls and visible focus/error feedback. */
.page-contact .enquiry-card {
  padding: clamp(24px, 3vw, 42px);
  border-radius: 4px;
  box-shadow: 8px 8px 0 #dce7e9;
}
.enquiry-card > h2 { font-size: clamp(30px, 3vw, 38px); line-height: 1.2; margin-bottom: 12px; }
.form-intro { font-size: 13px; margin-bottom: 30px; }
.form-row { gap: 20px; }
.field { margin-bottom: 22px; }
.field label { font-size: 12px; margin-bottom: 9px; }
.optional { font-size: 11px; }
.field input, .field select, .field textarea {
  min-height: 50px;
  border-radius: 3px;
  background: #f8fbfc;
  font-size: 14px;
  padding: 12px 14px;
  transition: border-color 180ms, box-shadow 180ms, background 180ms;
}
.field textarea { min-height: 150px; }
.field :is(input, select, textarea):focus {
  border-color: var(--teal);
  background: #fff;
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #006c750a;
}
.field [aria-invalid="true"] { border-color: #ab3428; background: #fff8f6; }
.field [aria-invalid="true"]:focus { outline-color: #ab3428; }
.field-hint, .field-error { font-size: 11px; line-height: 1.7; }
.form-notice { padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.8; }
.form-submit { min-height: 56px; margin-top: 22px; border-radius: 3px; }
.form-status:not(:empty) { padding: 14px 16px; border-left: 3px solid var(--teal); background: #f0f7f8; border-radius: 2px; }
.form-status.is-error:not(:empty) { background: #fff5f2; border-left-color: #ab3428; }
.submission-panel { padding: 26px; border: 1px solid #b9d8d6; border-left: 4px solid var(--teal); border-radius: 4px; background: #eff8f6; }
.submission-panel h4 { font-size: 22px; gap: 12px; }
.submission-panel h4 .icon { width: 28px; height: 28px; flex-shrink: 0; }
.submission-panel p { font-size: 13px; line-height: 1.85; }
.submission-panel .submission-reference { border-top: 1px solid #cbe0dd; padding-top: 16px; font-size: 11px; }
.mobile-call { display: none; }

@media (hover: hover) {
  .page-services .service-card:hover { background: #f6fbfb; border-color: var(--teal); box-shadow: 0 8px 24px #102e360c; }
  .credential-card:hover { box-shadow: 0 8px 24px #102e3610; }
  .gallery-album-tile:hover .gallery-caption { border-color: var(--teal); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery-album-tile img { transition: transform 500ms ease; }
  .gallery-album-tile:is(:hover, :focus-visible) img { transform: scale(1.035); }
}
@media (max-width: 860px) {
  .page-services .service-grid { gap: 20px; }
  .page-services .service-card { padding: 26px; min-height: 400px; }
}
@media (prefers-reduced-motion: no-preference) {
  .service-card-goods:is(:hover, :focus-within) .goods-lift-platform { animation: service-goods-lift 1.1s ease-in-out; }
}
@keyframes service-goods-lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@media (max-width: 650px) {
  .page-main > .section:not(.hero) { padding-block: 56px; }
  .page-main:not(.page-home) .section-heading { gap: 22px; padding-bottom: 26px; margin-bottom: 30px; }
  .page-services .service-card { padding: 26px; }
  .page-services .service-card h3 { font-size: 34px; }
  .page-services .service-card-top { margin-bottom: 26px; }
  .credential-preview { height: 250px; }
  .gallery-album-tile .gallery-caption { padding: 20px 16px; gap: 12px; }
  .gallery-overview > .gallery-album:nth-child(3) > summary { grid-column: 1; grid-row: 3; }
  .gallery-overview > .gallery-album:nth-child(4) > summary { grid-column: 1; grid-row: 4; }
  .gallery-overview > .gallery-album:nth-child(5) > summary { grid-column: 1; grid-row: 5; width: 100%; justify-self: stretch; }
  .gallery-caption > span:first-child { font-size: 26px; }
  .album-count { gap: 8px; font-size: 11px; }
  .album-indicator { width: 28px; height: 28px; }
  .page-contact .enquiry-card { padding: 26px 22px; box-shadow: 5px 5px 0 #dce7e9; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .submission-panel { padding: 22px 18px; }
  /* Reserve enough scroll space for every footer link to clear the shortcut. */
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .mobile-call {
    position: fixed;
    z-index: 30;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    max-width: calc(100vw - 32px);
    padding: 8px 18px 8px 8px;
    border: 1px solid #44676d;
    border-radius: 40px;
    background: var(--dark);
    color: #fff;
    box-shadow: 0 6px 24px #102e3633;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
  }
  .mobile-call-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--dark); flex-shrink: 0; }
  .mobile-call-number { display: block; margin-top: 2px; font-size: 10px; font-weight: 400; color: #c7dce0; letter-spacing: .5px; }
  .mobile-call-arrow { width: 16px; height: 16px; margin-left: 8px; color: var(--mint); }
  .mobile-call:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
  body:has(#enquiry-form:focus-within) .mobile-call,
  body:has(#enquiry-form[aria-busy="true"]) .mobile-call,
  body:has(#submission-panel:not([hidden])) .mobile-call,
  body:has(.menu-toggle[aria-expanded="true"]) .mobile-call { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-album-tile img, .album-gallery img { transform: none !important; }
}
