/* Service detail pages (LRMS, Field Service, AT Solutions): builds on about.css + products/mep.css */

/* whole Services card is clickable through its "more" link */
.ab-ethos-card { position: relative; }
.ab-ethos-card .ab-more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.sv-hero { padding-top: 96px; }
.sv-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sv-photo { margin: 0; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(22,25,28,.05), 0 30px 80px rgba(22,25,28,.14); }
.sv-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.sv-photo figcaption { padding: 10px 16px; font-size: .8rem; color: var(--muted); }
.sv-back { display: inline-block; margin-bottom: 14px; font-size: .88rem; color: var(--muted); text-decoration: none; }
.sv-back:hover { color: var(--red); }

.sv-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.sv-split .mp-feature img { display: block; width: 100%; height: 220px; object-fit: contain; margin-bottom: 12px; }
.sv-features { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .sv-head, .sv-split, .mp-feat-grid { grid-template-columns: 1fr; }
  .sv-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .sv-features { grid-template-columns: 1fr; } }

/* photo on top of each Services card */
.sv-card-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }

/* feature icons (same language as the BEL page) */
.sv-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); margin-bottom: 10px;
  transition: background .3s, color .3s, transform .4s var(--ease); }
.mp-feature:hover .sv-ico { background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.06); }
.mp-feature .sv-ico svg * { stroke-dasharray: 80; stroke-dashoffset: 80; }
.mp-feature.is-in .sv-ico svg * { animation: sv-draw 1.2s var(--ease) .2s forwards; }
@keyframes sv-draw { to { stroke-dashoffset: 0; } }

/* value list: round check badges */
.sv-page .mp-benefits li { padding-left: 34px; }
.sv-page .mp-benefits li::before { left: 0; top: 7px; width: 20px; height: 20px; border: 0; border-radius: 50%; transform: none;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* 3D tilt (svc3d.js sets --rx/--ry on hover) */
.sv-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .25s var(--ease), box-shadow .3s; will-change: transform; }

/* page-specific 3D background (svc3d.js) */
.sv-bg { position: fixed; inset: 0; z-index: -2; background: radial-gradient(ellipse at 70% 55%, #ffffff 0%, #f3f4f5 60%, #eceef0 100%); }
.sv-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sv-page .ab-veil { background: linear-gradient(90deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.5) 45%, rgba(255,255,255,0) 75%); }
@media (max-width: 991px) { .sv-bg canvas { opacity: .35; } .sv-page .ab-veil { background: rgba(255,255,255,.35); } }
@media (prefers-reduced-motion: reduce) { .mp-feature .sv-ico svg * { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; } .sv-tilt { transform: none !important; } }

/* image-only figures */
.sv-shot { margin: 0; border-radius: 22px; overflow: hidden; display: grid; place-items: center; padding: 18px; }
.sv-shot img { display: block; width: 100%; height: 260px; object-fit: contain; }
.sv-pair h3 + p { margin-bottom: 16px; }
.sv-pair p:last-child { margin-bottom: 0; }

/* ---------- Services hub: every service on one screen, no scrolling ---------- */
.sv-hub .ab-foot { display: none; }
.sv-hub-in { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 88px 0 28px !important; box-sizing: border-box; }
.sv-hub-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px 40px; align-items: end; margin-bottom: clamp(16px, 3vh, 30px); }
.sv-hub-title { margin: 0; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; }
.sv-hub-title em { font-style: normal; color: var(--red); }
.sv-hub-sub { margin: 0; color: var(--body); line-height: 1.6; font-size: 1rem; }
.sv-hub .ab-ethos { grid-template-columns: repeat(3, 1fr); }
.sv-hub .ab-ethos-card { padding: 16px 16px 20px; display: flex; flex-direction: column; }
.sv-hub .sv-card-img { aspect-ratio: auto; height: clamp(120px, 26vh, 260px); }
.sv-hub .ab-ethos-card p { font-size: .95rem; }
.sv-hub .ab-ethos-card p:last-child { margin-top: auto; padding-top: 10px; }
@media (max-width: 991px) {
  .sv-hub-head { grid-template-columns: 1fr; }
  .sv-hub .ab-ethos { grid-template-columns: 1fr; gap: 10px; }
  .sv-hub .ab-ethos-card { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 14px; padding: 12px; }
  .sv-hub .sv-card-img { grid-row: 1 / 5; height: 100%; min-height: 110px; margin: 0; }
  .sv-hub .ab-ethos-card h3 { margin-bottom: 4px; }
  .sv-hub .ab-ethos-card p { font-size: .86rem; line-height: 1.45; }
  .sv-hub .ab-ethos-card p:last-child { padding-top: 4px; }
  .sv-hub .ab-ethos-n { display: none; }
}
@media (max-height: 700px) and (min-width: 992px) { .sv-hub .sv-card-img { height: 18vh; } .sv-hub .ab-ethos-card p { font-size: .88rem; } }
.sv-hub .sv-bg canvas { opacity: .7; }



/* short laptop screens */
@media (max-height: 820px) and (min-width: 992px) {
  .sv-one .sv-photo { display: none; }
  .sv-one .mp-feature { padding: 10px 12px; }
  .sv-one .mp-feature p { font-size: .8rem; }
  .sv-values li { font-size: .78rem; padding-top: 4px; padding-bottom: 4px; }
}
@media (max-height: 680px) and (min-width: 992px) { .sv-one .mp-feature p { display: none; } .sv-one .mp-lead { -webkit-line-clamp: 4; } }

/* tablet + phone: stacked, trimmed to fit one screen */
@media (max-width: 991px) {
  .sv-one { padding-top: 76px !important; padding-bottom: 12px !important; }
  .sv-one .mp-title { font-size: clamp(1.4rem, 5.6vw, 2.2rem); }
  .sv-one .mp-lead { -webkit-line-clamp: 3; font-size: .9rem; margin-bottom: 10px; }
  .sv-one .mp-cta { display: none; }
  .sv-one .sv-features { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sv-one .mp-feature { grid-template-columns: 32px 1fr; padding: 9px 10px; column-gap: 9px; align-items: center; }
  .sv-one .mp-feature .sv-ico { width: 32px; height: 32px; border-radius: 10px; grid-row: auto; }
  .sv-one .mp-feature .sv-ico svg { width: 17px; height: 17px; }
  .sv-one .mp-feature h3 { font-size: .86rem; margin: 0; }
  .sv-values { padding: 12px; }
  .sv-values li { font-size: .76rem; padding: 4px 10px 4px 4px; }
  .sv-tabs { padding: 10px; }
}
@media (min-width: 600px) and (max-width: 991px) { .sv-one .mp-feature p { display: block; grid-column: 2; font-size: .8rem; } .sv-one .mp-lead { -webkit-line-clamp: 4; } }

/* hub card photos: whole image */
.sv-card-img { object-fit: contain; background: #fff; }

/* services hub: tighter so it fits short laptop screens */
.sv-hub-in { padding: 80px 0 16px !important; }
.sv-hub .sv-card-img { height: clamp(90px, 22vh, 240px); }
@media (max-height: 760px) and (min-width: 992px) {
  .sv-hub .sv-card-img { height: 15vh; }
  .sv-hub-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
  .sv-hub .ab-ethos-card { padding: 12px 12px 14px; }
  .sv-hub .ab-ethos-card h3 { margin: 6px 0 4px; }
  .sv-hub .ab-ethos-n { font-size: 1.6rem; }
}

.sv-hub .ab-ethos-n { font-size: 2rem; margin-bottom: 6px; }

/* ---------- one-screen service pages (LRMS, Field Service, AT Solutions) ----------
   desktop:  [intro | wide photo]  over  [details panel, full width]
   tablet/phone: stacked and trimmed so the page still fits one screen */
.sv-onepage .ab-foot { display: none; }
.sv-one { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 78px 0 16px !important; box-sizing: border-box; }
.sv-one-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "intro photo" "panel panel"; gap: clamp(12px, 2vh, 22px) clamp(20px, 3vw, 40px); align-items: center; max-width: 1320px; }
.sv-one-intro { grid-area: intro; }
.sv-one .sv-photo { grid-area: photo; justify-self: end; margin: 0; max-width: 100%; }
.sv-one .sv-photo img { display: block; width: auto; max-width: 100%; height: clamp(150px, 34vh, 400px); aspect-ratio: auto; object-fit: contain; }
.sv-one .sv-tabs { grid-area: panel; border-radius: 22px; padding: 12px; }
.sv-one .sv-back { margin-bottom: 8px; }
.sv-one .ab-kicker { margin-bottom: 8px; }
.sv-one .mp-title { font-size: clamp(1.6rem, 2.8vw, 2.5rem); margin: 0 0 10px; }
.sv-one .mp-lead { font-size: .94rem; line-height: 1.55; margin: 0 0 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.sv-one .mp-cta { margin: 0; }

.sv-tablist { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(22,25,28,.05); margin-bottom: 10px; max-width: 420px; }
.sv-tablist button { flex: 1; border: 0; background: transparent; padding: 8px 12px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 500; color: var(--body); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.sv-tablist button:hover { color: var(--red); }
.sv-tablist button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 18px rgba(22,25,28,.1); }
.sv-panel { animation: sv-panel-in .45s var(--ease) both; }
@keyframes sv-panel-in { from { opacity: 0; transform: perspective(900px) rotateX(-6deg) translateY(14px); } }

.sv-overview { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 12px; }
.sv-one .sv-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.sv-one .mp-feature { padding: 10px 12px; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.sv-one .mp-feature .sv-ico { width: 36px; height: 36px; border-radius: 11px; margin: 0; grid-row: 1 / 3; }
.sv-one .mp-feature .sv-ico svg { width: 19px; height: 19px; }
.sv-one .mp-feature h3 { font-size: .95rem; margin: 1px 0 2px; }
.sv-one .mp-feature p { font-size: .82rem; line-height: 1.42; margin: 0; }
.sv-values { border-radius: 16px; padding: 12px 14px; background: var(--ink); color: #fff; }
.sv-values h3 { margin: 0 0 8px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #ff6b70; font-weight: 500; }
.sv-values ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sv-values li { display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; line-height: 1.35; color: #e8eaec; }
.sv-values li::before { content: ""; flex: none; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* LRMS "The system": wide product shot + two stacked text rows */
.sv-one .sv-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; margin: 0; align-items: stretch; }
.sv-one .sv-shot { display: grid; place-items: center; padding: 12px; border-radius: 16px; }
.sv-one .sv-shot img { width: 100%; height: clamp(140px, 26vh, 300px); object-fit: contain; }
.sv-one .sv-pair { display: flex; flex-direction: column; justify-content: center; padding: 16px 18px; }
.sv-one .sv-pair h3 { font-size: 1.02rem; margin: 0 0 4px; }
.sv-one .sv-pair p { font-size: .9rem; line-height: 1.5; margin: 0; }
.sv-one .sv-pair p + h3 { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* short laptop screens */
@media (min-width: 992px) and (max-height: 760px) {
  .sv-one .sv-photo img { height: 30vh; }
  .sv-one .mp-lead { -webkit-line-clamp: 4; }
  .sv-one .mp-feature p { display: none; }
  .sv-one .mp-feature { align-items: center; }
  .sv-one .mp-feature .sv-ico { grid-row: auto; }
  .sv-values li { font-size: .78rem; }
  .sv-one .sv-shot img { height: 30vh; }
}

/* tablet (portrait + small landscape) and phone */
@media (max-width: 991px) {
  .sv-one { align-items: flex-start; padding-top: 72px !important; padding-bottom: 10px !important; }
  .sv-one-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "photo" "panel"; gap: 10px; }
  .sv-one .sv-back, .sv-one .mp-cta { display: none; }
  .sv-one .mp-title { font-size: clamp(1.35rem, 5vw, 2rem); margin-bottom: 6px; }
  .sv-one .mp-lead { -webkit-line-clamp: 3; font-size: .88rem; margin-bottom: 0; }
  .sv-one .sv-photo { justify-self: stretch; border-radius: 18px; }
  .sv-one .sv-photo img { width: 100%; height: 20vh; object-fit: contain; }
  .sv-overview { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sv-one .sv-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sv-one .mp-feature { grid-template-columns: 30px minmax(0, 1fr); padding: 8px 9px; column-gap: 8px; align-items: center; }
  .sv-one .mp-feature .sv-ico { width: 30px; height: 30px; border-radius: 9px; grid-row: auto; }
  .sv-one .mp-feature .sv-ico svg { width: 16px; height: 16px; }
  .sv-one .mp-feature h3 { font-size: .82rem; margin: 0; }
  .sv-one .mp-feature p { display: none; }
  .sv-values { padding: 10px 12px; }
  .sv-values ul { flex-direction: row; flex-wrap: wrap; gap: 5px 10px; }
  .sv-values li { font-size: .74rem; }
  .sv-one .sv-tabs { padding: 8px; }
  .sv-tablist { max-width: none; margin-bottom: 8px; }
  .sv-one .sv-split { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sv-one .sv-shot img { height: 18vh; }
  .sv-one .sv-pair { padding: 12px; } .sv-one .sv-pair p { font-size: .82rem; }
}
@media (min-width: 600px) and (max-width: 991px) and (min-height: 900px) {
  .sv-one .sv-photo img { height: 26vh; }
  .sv-one .mp-feature p { display: block; grid-column: 2; font-size: .78rem; }
  .sv-one .mp-feature .sv-ico { grid-row: 1 / 3; }
  .sv-one .mp-lead { -webkit-line-clamp: 4; }
}
@media (max-width: 991px) and (max-height: 700px) { .sv-one .sv-photo img { height: 16vh; } .sv-values h3 { display: none; } }

/* one-screen tuning: compact intro, taller (wider) photo, even feature cards */
.sv-one .mp-title { font-size: clamp(1.5rem, 2.3vw, 2.15rem); line-height: 1.08; }
.sv-one .mp-lead { -webkit-line-clamp: 4; }
@media (min-width: 992px) { .sv-one .sv-photo img { height: clamp(150px, 38vh, 440px); } }
.sv-one .mp-feature { grid-template-rows: auto 1fr; align-content: start; }
.sv-one .mp-feature p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
@media (min-width: 992px) and (max-height: 760px) {
  .sv-one .sv-photo img { height: 34vh; }
  .sv-one .mp-lead { -webkit-line-clamp: 3; }
  .sv-one .mp-title { font-size: clamp(1.4rem, 2vw, 1.8rem); }
  .sv-one .sv-back { display: none; }
  .sv-one .mp-feature p { display: none; }
}
@media (max-width: 991px) { .sv-one .mp-feature p { display: none; } }
@media (min-width: 600px) and (max-width: 991px) and (min-height: 900px) { .sv-one .mp-feature p { display: -webkit-box; } }

@media (min-width: 992px) and (max-height: 760px) { .sv-one .sv-photo img { height: 30vh; } .sv-one .sv-shot img { height: 28vh; } }
@media (min-width: 600px) and (max-width: 991px) and (min-height: 900px) { .sv-one .sv-photo img { height: 22vh; } }
@media (max-width: 991px) {
  .sv-hub .ab-ethos-card { grid-template-columns: 92px 1fr; padding: 10px; }
  .sv-hub .sv-card-img { min-height: 84px; }
  .sv-hub-sub { font-size: .9rem; }
  .sv-hub .ab-kicker { margin-bottom: 6px; }
}
@media (min-width: 992px) and (max-height: 800px) { .sv-one .ab-kicker { display: none; } .sv-tablist button { padding: 6px 12px; } }
@media (max-width: 991px) { .sv-hub-title { font-size: clamp(1.6rem, 7vw, 2.2rem); } .sv-hub-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } }

/* Field Service photo slideshow (svc3d.js cycles .is-on): wipe-in reveal + settle */
.sv-one .sv-photo.sv-gal { position: relative; aspect-ratio: 3 / 2; }
@media (min-width: 992px) { .sv-one .sv-photo.sv-gal { height: clamp(150px, 38vh, 440px); } }
@media (min-width: 992px) and (max-height: 760px) { .sv-one .sv-photo.sv-gal { height: 30vh; } }
@media (max-width: 991px) { .sv-one .sv-photo.sv-gal { height: 20vh; aspect-ratio: auto; } }
@media (min-width: 600px) and (max-width: 991px) and (min-height: 900px) { .sv-one .sv-photo.sv-gal { height: 22vh; } }
.sv-gal img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: 50% 35%;
  clip-path: inset(0 0 0 100%); scale: 1.08; transition: clip-path 1s cubic-bezier(.7,0,.2,1), scale 3.6s var(--ease), opacity .6s; z-index: 1; }
.sv-gal img.is-on { clip-path: inset(0 0 0 0); scale: 1; z-index: 2; }
.sv-gal img.is-out { clip-path: inset(0 0 0 0); z-index: 1; opacity: .4; }
.sv-gal-dots { position: absolute; left: 14px; bottom: 12px; z-index: 3; display: flex; gap: 6px; }
.sv-gal-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.6); transition: width .4s var(--ease), background .3s; }
.sv-gal-dots i.is-on { width: 22px; background: var(--red); }
@media (prefers-reduced-motion: reduce) { .sv-gal img { transition: none; } }
@media (max-width: 599px) { .sv-hub-in { padding-top: 70px !important; } .sv-hub-head { margin-bottom: 10px; } .sv-hub .ab-ethos { gap: 8px; } }
@media (max-width: 599px) { .sv-hub-sub { -webkit-line-clamp: 1; } .sv-hub .ab-ethos-card p { font-size: .82rem; } .sv-hub .sv-card-img { min-height: 76px; } }
@media (max-width: 599px) { .sv-hub-in { padding-bottom: 6px !important; } .sv-hub .sv-card-img { min-height: 64px; } .sv-hub .ab-ethos-card { padding: 8px; } }
@media (max-width: 991px) { .sv-hub .ab-ethos-card { grid-template-rows: auto auto auto; align-items: start; min-height: 0; } .sv-hub .sv-card-img { grid-row: 1 / 4; height: 100% !important; min-height: 92px; max-height: 120px; object-fit: cover; border-radius: 12px; } .sv-hub .ab-ethos-card p:last-child { margin-top: 0; } }
