/* Product detail and branch pages based on the supplied design reference. */
.reference-page { background: #fff; color: #25495e; --ref-navy: #073956; --ref-blue: #009fc2; }
.reference-page #main01 { overflow: hidden; }
.reference-page .sub-banner-section { min-height: 320px; padding: 64px 20px; background: linear-gradient(120deg, #118392, #0b6b7c); }
.reference-page .sub-banner-content { max-width: 1000px; }
.reference-page .sub-banner-content h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.2; margin: 0 0 18px; }
.reference-page .sub-banner-content p { max-width: 760px; font-size: 17px; }
.reference-page .banner-btn { background: #fff; color: #087c90; border-radius: 30px; }
.ref-wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
@media (min-width: 601px) { .cmd-detail-page .ref-wrap { width: calc(100% - 80px); } .cmd-detail-page .ref-media { width: fit-content; max-width: 100%; margin: 18px auto; } .cmd-detail-page .ref-media img { width: auto; max-width: 100%; height: auto; max-height: 460px; padding: 0; object-fit: initial; } }
.ref-section { padding: 40px 0; scroll-margin-top: 110px; }
.ref-section h2, .ref-section h3, .ref-contact h2 { font-family: futura-heavy-font, sans-serif; color: #073956; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; margin: 0 0 20px; }
.ref-section p, .ref-section li { font-family: OpenSans-Regular, 'Open Sans', sans-serif; font-size: 14px; line-height: 1.75; color: #34556a; }
.ref-section p { margin: 0 0 14px; }
.ref-kicker { display: block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #39829a; font-weight: 700; margin: 0 0 12px; }
.ref-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ref-intro { padding-top: 50px; }
.ref-intro h3 { font-size: 20px; margin: 22px 0 12px; }
.ref-intro ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.ref-intro li { position: relative; padding-left: 26px; }
.ref-intro li::before { content: '\2713'; display: grid; place-items: center; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; background: #10b8cb; color: white; border-radius: 50%; font-size: 11px; font-weight: 700; }
.ref-button { display: inline-flex; gap: 14px; align-items: center; justify-content: center; padding: 11px 24px; border-radius: 30px; color: white !important; background: linear-gradient(90deg, #02849b, #00b1e5); box-shadow: 0 0 0 4px #d9f3fa; font-size: 13px; font-weight: 700; }
.ref-button:hover { background: #073956; }
.ref-media { position: relative; margin: 18px 8px; isolation: isolate; }
.ref-media::before { content: ''; position: absolute; z-index: -1; inset: -12px 14px; background: linear-gradient(140deg, #6fd0df, #c9f1fc); border-radius: 24px; transform: rotate(-7deg); }
.ref-media > a, .ref-media > .ref-machine-photo { display: block; border: 6px solid white; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 12px 28px #07395620; }
.ref-media img { display: block; width: 100%; height: 290px; padding: 10px; object-fit: contain; background: white; }
.ref-media figcaption { text-align: center; margin-top: 14px; font-size: 12px; color: #52798a; }
.ref-panel { background: linear-gradient(120deg, #e4f5fa, #f0f8fb 50%, #e3f5fb); border-radius: 12px; padding: 36px; }
.ref-expertise .ref-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.ref-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ref-card { padding: 20px; background: #fff; border: 1px solid #e7f0f5; border-radius: 9px; box-shadow: 0 5px 15px #07395606; }
.ref-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; background: #d6f2fb; border-radius: 50%; color: #08769b; font-size: 18px; }
.ref-card h3, .ref-card h4 { margin: 0 0 9px; color: #073956; font-family: futura-heavy-font, sans-serif; font-size: 15px; line-height: 1.4; }
.ref-card p, .ref-card li { font-size: 12px; line-height: 1.7; margin-bottom: 0; }
.ref-card ul { padding-left: 18px; margin: 10px 0 0; }
.ref-card-wide { grid-column: 1 / -1; }
.ref-services .ref-card { position: relative; background: transparent; box-shadow: none; border: 0; padding: 10px 0 10px 52px; }
.ref-services .ref-icon { position: absolute; left: 0; top: 10px; }
.ref-benefits .ref-split { grid-template-columns: minmax(0, .65fr) minmax(0, 1.65fr); align-items: start; gap: 34px; }
.ref-benefits .ref-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ref-benefits .ref-card { padding: 17px; }
.ref-benefits h2 { font-size: 26px; }
.ref-process .ref-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; counter-reset: ref-step; }
.ref-step { position: relative; padding-top: 24px; counter-increment: ref-step; }
.ref-step::before { content: counter(ref-step, decimal-leading-zero); position: absolute; right: 16px; top: 15px; font-size: 12px; color: #0e9dbc; }
.ref-step .ref-icon { color: white; background: #08799b; }
.ref-industries .ref-wrap { border-top: 1px solid #e1edf2; border-bottom: 1px solid #e1edf2; padding: 28px 0; }
.ref-industries h2 { font-size: 23px; }
.ref-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.ref-chips span { padding: 9px 16px; border-radius: 30px; background: #eaf7fb; color: #15536c; font-size: 13px; }
.ref-trust { background: linear-gradient(90deg, #04374ef5 0%, #04374ef0 45%, #04374e8c 100%), url('../img/banner-home/banner-robotic-arm.jpg') center 40% / cover; padding: 42px 0; }
.ref-trust h2, .ref-trust h3, .ref-trust p, .ref-trust li { color: #fff; }
.ref-trust .ref-split { align-items: start; }
.ref-trust .ref-trust-points { border-left: 1px solid #7fdbea35; padding-left: 36px; }
.ref-trust .ref-card { background: transparent; border: 0; box-shadow: none; padding: 4px 0 12px 28px; position: relative; }
.ref-trust .ref-card .ref-icon { position: absolute; left: 0; top: 6px; width: 17px; height: 17px; font-size: 10px; color: white; background: #00afc6; margin: 0; }
.ref-trust .ref-card p { color: #bad6e0; }
.ref-trust .ref-card h3 { font-size: 14px; }
.ref-trust-item summary { cursor: pointer; list-style: none; padding-right: 24px; position: relative; }
.ref-trust-item summary::-webkit-details-marker { display: none; }
.ref-trust-item summary::after { content: '+'; color: #87dbe9; position: absolute; right: 0; top: 0; }
.ref-trust-item[open] summary::after { content: '\2212'; }
.ref-trust .ref-trust-item .ref-icon { left: -28px; top: 2px; }
.ref-trust .ref-trust-item h3 { margin: 0; }
.ref-trust .ref-trust-item p { margin-top: 12px; }
.ref-trust .ref-cards { grid-template-columns: 1fr; gap: 8px; }
.ref-more { margin: 16px 0; font-size: 13px; color: #2b758e; }
.ref-more summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.ref-more p { margin-top: 12px; }
.ref-trust .ref-more { color: #a4e6f1; }
.ref-faq .ref-split { grid-template-columns: minmax(0, .65fr) minmax(0, 1.65fr); gap: 56px; align-items: start; }
.ref-faq-list { display: grid; gap: 10px; }
.ref-faq-list details { background: white; border: 1px solid #e5edf2; border-radius: 12px; box-shadow: 0 3px 10px #07395606; padding: 0 18px; }
.ref-faq-list summary { position: relative; cursor: pointer; padding: 13px 26px 13px 0; color: #104866; font-size: 13px; font-weight: 700; list-style: none; }
.ref-faq-list summary::-webkit-details-marker { display: none; }
.ref-faq-list summary::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 18px; }
.ref-faq-list details[open] summary::after { content: '\2212'; }
.ref-faq-list p { padding-bottom: 12px; font-size: 13px; }
.reference-page .cmd-related { background: linear-gradient(110deg, #e6f6fb, #f7fbfe); padding: 36px 0; }
.reference-page .cmd-related > .container { max-width: 1120px; }
.reference-page .cmd-related h2 { font-size: 25px; margin-bottom: 18px; }
.reference-page .cmd-filter-buttons { gap: 7px; margin-bottom: 12px; }
.reference-page .cmd-filter-buttons button { padding: 6px 15px; font-size: 12px; }
.reference-page .cmd-filter-count { font-size: 12px; margin-bottom: 16px; }
.reference-page .cmd-related-grid { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 3px 14px; }
.reference-page .cmd-related-grid::-webkit-scrollbar { display: none; }
.reference-page .cmd-related-card { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; border: 5px solid white; border-radius: 9px; box-shadow: 0 7px 18px #07395612; }
.reference-page .cmd-related-card img { height: 160px; padding: 5px; }
.reference-page .cmd-related-card figcaption { font-size: 12px; padding: 8px; line-height: 1.4; }
.ref-gallery-controls { display: flex; gap: 20px; justify-content: center; align-items: center; margin-top: 10px; }
.ref-gallery-controls button { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; padding: 0; margin: 0; box-sizing: border-box; line-height: 1; background: #fff; color: #087c9f; border: 1px solid #d4eaf2; border-radius: 50%; cursor: pointer; }
.ref-gallery-controls button i { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0; font-size: 20px; line-height: 1; }
.ref-gallery-controls button i::before { display: block; line-height: 1; vertical-align: 0; }
.ref-gallery-controls button:first-child { background: #074764; color: #fff; }
.ref-gallery-controls span { display: flex; align-items: center; justify-content: center; height: 44px; color: #10aacc; letter-spacing: 3px; text-indent: 3px; font-size: 12px; line-height: 1; }
.ref-contact { padding: 28px 0; background: linear-gradient(110deg, #074560, #00839b); color: white; }
.ref-contact .ref-wrap { display: flex; align-items: center; gap: 28px; }
.ref-contact .ref-contact-icon { color: #dcf8ff; font-size: 32px; }
.ref-contact h2 { color: white; font-size: 24px; margin: 0 0 6px; }
.ref-contact p { font-size: 13px; margin: 0; color: #d3edf4; }
.ref-contact .ref-button { margin-left: auto; white-space: nowrap; background: #fff; color: #027f98 !important; box-shadow: none; }
.ref-history .ref-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ref-history .ref-card { padding: 18px 14px; border-top: 3px solid #10aec6; }
.ref-history .ref-year { color: #0290ad; font-size: 24px; font-weight: 700; margin-bottom: 12px; display: block; }
.ref-machines .ref-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ref-machine-image { width: 100%; height: 190px; object-fit: contain; margin-bottom: 18px; }
.ref-machine-photo { position: relative; display: block; width: 100%; overflow: hidden; aspect-ratio: var(--machine-ratio); background: #fff; }
.reference-page .ref-machine-photo img { position: absolute; width: var(--machine-width); max-width: none; height: auto; padding: 0; left: var(--machine-left); top: var(--machine-top); }
.ref-machine-nhx { --machine-ratio: 1000 / 650; --machine-width: 240.5%; --machine-left: -140%; --machine-top: 0%; }
.ref-machine-pvm { --machine-ratio: 705 / 650; --machine-width: 341.135%; --machine-left: -89.362%; --machine-top: 0%; }
.ref-machine-nlx { --machine-ratio: 1300 / 470; --machine-width: 185%; --machine-left: -72.308%; --machine-top: -157.447%; }
.ref-machine-display { display: flex; align-items: center; justify-content: center; height: 250px; margin-bottom: 18px; }
.ref-machines .ref-machine-pvm { max-width: 271px; }
.ref-machines .ref-spec { padding: 10px 0; border-top: 1px solid #e7f0f5; margin-top: 14px; }
.ref-machines .ref-date { display: inline-block; padding: 6px 10px; border-radius: 6px; background: #e8f7fb; color: #08779b; font-size: 11px; }
.ref-units .ref-card { padding: 26px; }
.reference-page a:focus-visible, .reference-page button:focus-visible, .reference-page summary:focus-visible { outline: 3px solid #0d9fc2; outline-offset: 4px; }
@media (max-width: 991px) {
  .ref-split, .ref-expertise .ref-split, .ref-benefits .ref-split, .ref-faq .ref-split { grid-template-columns: 1fr; gap: 28px; }
  .ref-media { max-width: 550px; width: calc(100% - 20px); margin: 18px auto; }
  .ref-history .ref-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ref-process .ref-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ref-trust .ref-trust-points { padding-left: 0; border-left: 0; }
  .reference-page .cmd-related-card { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 600px) {
  .ref-wrap { width: calc(100% - 32px); }
  .ref-section { padding: 28px 0; }
  .ref-panel { padding: 24px 18px; }
  .ref-section h2 { font-size: 25px; }
  .ref-cards, .ref-benefits .ref-cards, .ref-process .ref-cards, .ref-history .ref-cards, .ref-machines .ref-cards { grid-template-columns: 1fr; }
  .ref-services .ref-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ref-services .ref-card { padding: 0; }
  .ref-services .ref-icon { position: static; }
  .ref-media img { height: 230px; }
  .reference-page .sub-banner-section { min-height: 250px; padding: 45px 20px; }
  .reference-page .cmd-related-card { flex-basis: calc((100% - 20px) / 2); }
  .reference-page .cmd-related-card img { height: 130px; }
  .ref-contact .ref-wrap { flex-wrap: wrap; gap: 16px; }
  .ref-contact .ref-button { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .reference-page * { scroll-behavior: auto !important; } }
.ref-industries-all .ref-wrap > p { max-width: 980px; margin-bottom: 26px; }
.ref-industries-all .ref-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ref-industries-all .ref-card { border-left: 4px solid #08799b; }
@media (max-width: 1199px) { .ref-industries-all .ref-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) { .ref-industries-all .ref-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ref-industries-all .ref-cards { grid-template-columns: 1fr; } }
.ref-section h2 { position: relative; z-index: 1; }
.ref-split h2 + .ref-media { margin-top: 48px; }
/* Large figure: fill the whole column instead of shrinking to the photo's own size */
.cmd-detail-page .ref-media.ref-media-lg { width: 100%; }
.cmd-detail-page .ref-media.ref-media-lg img { width: 100%; height: auto; max-height: none; }
/* Card list beside a photo: the photo stays in view while the longer card list scrolls past */
.ref-split-media { align-items: start; }
.ref-split-media > .ref-media { position: sticky; top: 130px; }
@media (max-width: 991px) { .ref-split-media > .ref-media { position: static; } }
/* Smaller photo column so the cards get more room */
@media (min-width: 992px) {
  .ref-split-media { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; }
  .ref-split-media.is-media-first { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
}
.cmd-detail-page .ref-split-media > .ref-media.ref-media-lg { max-width: 540px; margin-left: auto; margin-right: auto; }
/* Products & Services pages: every section photo uses the same card size (same width, same 4:3 frame) */
.cmd-detail-page .ref-media,
.cmd-detail-page .ref-media.ref-media-lg,
.cmd-detail-page .ref-split-media > .ref-media.ref-media-lg { width: 100%; max-width: 560px; margin: 18px auto; }
.cmd-detail-page .ref-media img,
.cmd-detail-page .ref-media.ref-media-lg img { width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; padding: 0; object-fit: contain; background: #fff; }
/* The tilted card behind a photo rises ~45px above it, so keep it clear of the text above */
.cmd-detail-page * + .ref-media,
.cmd-detail-page * + .ref-media.ref-media-lg { margin-top: 60px; }
