/* Shared V14 service gallery. Every selector stays inside service-overview pages. */
.sg-prototype .sg-showcase {
  max-width: 1840px;
  margin-inline: auto;
  padding: 48px clamp(22px, 4.2vw, 72px) 64px;
}
.sg-prototype .sg-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
  margin-bottom: 30px;
}
.sg-prototype .sg-intro .eyebrow {
  color: #58664f;
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 2.4px;
}
.sg-prototype .sg-intro h1 {
  font: 400 clamp(42px, 5.1vw, 76px)/1.04 Georgia, serif;
  letter-spacing: -1.8px;
  margin: 0;
  color: #17382f;
}
.sg-prototype .sg-intro > p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 5px;
  max-width: 540px;
  color: #4f6054;
}
.sg-prototype .sg-track {
  display: flex;
  gap: 9px;
  position: relative;
  height: clamp(500px, 60vh, 650px);
  width: 100%;
  isolation: isolate;
}
.sg-prototype .sg-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #bcc7c3;
  transition: flex-grow 480ms cubic-bezier(.2, .72, .24, 1);
  isolation: isolate;
}
.sg-prototype .sg-link {
  display: block;
  position: relative;
  height: 100%;
  width: 100%;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  border-radius: inherit;
  transform: none;
  box-shadow: none;
}
.sg-prototype .sg-link::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #071e1430 0%, #071e1408 24%, #071e1450 50%, #071e14c9 100%);
  z-index: 1;
  transition: background-color 350ms ease;
}
.sg-prototype .sg-link > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--sg-position);
  display: block;
  transform: scale(1.015);
  transition: filter 480ms ease, transform 650ms cubic-bezier(.2, .72, .24, 1);
  filter: saturate(.88);
}
/* In the narrow equal-width state, keep the planting action in view. */
.sg-prototype .sg-planting:not(.is-active) .sg-link > img { object-position: 69% 60%; }
.sg-prototype .sg-winter .sg-link > img { object-position: 50% 40%; }
.sg-prototype .sg-number {
  position: absolute;
  top: 18px;
  left: 16px;
  z-index: 2;
  color: #fff;
  font: 400 15px/1 Georgia, serif;
  letter-spacing: 1.2px;
  text-shadow: 0 1px 10px #10271e;
}
.sg-prototype .sg-number > span { display: none; }
.sg-prototype .sg-copy {
  position: absolute;
  bottom: 23px;
  left: 16px;
  right: 16px;
  z-index: 2;
  min-width: 0;
}
.sg-prototype .sg-copy h2 {
  font: 400 18px/1.18 Georgia, serif;
  letter-spacing: -.15px;
  margin: 0;
  color: #fff;
  overflow-wrap: normal;
  hyphens: none;
  text-shadow: 0 1px 8px #10271e88;
  text-wrap: balance;
}
.sg-prototype .sg-title-full { display: none; }
.sg-prototype .sg-title-short { display: inline; }
.sg-prototype .sg-copy p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  color: #f5f5ef;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 190ms ease 130ms, max-height 350ms cubic-bezier(.2, .72, .24, 1) 90ms, margin 350ms ease 90ms;
  max-width: 390px;
}
.sg-prototype .sg-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  gap: 0;
  margin-top: 16px;
  color: #fff;
  border: 1px solid #e6ebdfc9;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  transition: width 360ms ease, border-radius 300ms ease, background-color 300ms ease;
}
.sg-prototype .sg-action > span { font-size: 18px; }
.sg-prototype .sg-action-label { display: none; }
.sg-prototype .sg-panel.is-active { flex-grow: 2.7; }
.sg-prototype .sg-panel.is-active .sg-copy { left: 27px; right: 27px; }
.sg-prototype .sg-panel.is-active .sg-copy h2 {
  font-size: clamp(27px, 2.5vw, 40px);
  line-height: 1.08;
  max-width: 490px;
  overflow-wrap: normal;
  hyphens: manual;
}
.sg-prototype .sg-panel.is-active .sg-title-short { display: none; }
.sg-prototype .sg-panel.is-active .sg-title-full { display: inline; }
.sg-prototype .sg-panel.is-active .sg-copy p {
  opacity: 1;
  max-height: 180px;
  margin-top: 15px;
}
.sg-prototype .sg-panel.is-active .sg-link > img { filter: saturate(1); transform: scale(1.045); }
.sg-prototype .sg-panel.is-active .sg-action {
  width: auto;
  height: auto;
  min-height: 44px;
  gap: 15px;
  border-radius: 28px;
  padding: 10px 17px;
  background: #17382f2e;
}
.sg-prototype .sg-panel.is-active .sg-action-label { display: inline; }
.sg-prototype .sg-panel:focus-within { outline: 3px solid #b8794f; outline-offset: 3px; z-index: 2; }
.sg-prototype .sg-link:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.sg-prototype .sg-navigation,
.sg-prototype .sg-mobile-hint { display: none; }

/* Pointer hover fallback when JavaScript is unavailable. */
@media (hover: hover) and (min-width: 960px) {
  .sg-prototype .sg-track:not([data-sg-enhanced]):has(.sg-panel:hover) .sg-panel:hover { flex-grow: 2.7; }
  .sg-prototype .sg-track:not([data-sg-enhanced]) .sg-panel:hover .sg-copy p { opacity: 1; max-height: 180px; margin-top: 15px; }
  .sg-prototype .sg-panel.is-active.sg-winter { flex-grow: 2.7; }
}

/* Small tablets use the large-photo carousel; phones retain the shared list. */
@media (max-width: 959px) {
  .sg-prototype .sg-showcase { padding: 36px 0 54px; }
  .sg-prototype .sg-intro { grid-template-columns: 1fr; gap: 16px; padding: 0 6%; margin-bottom: 25px; }
  .sg-prototype .sg-intro h1 { font-size: clamp(42px, 6.8vw, 68px); }
  .sg-prototype .sg-intro > p { font-size: 15px; line-height: 1.7; max-width: 700px; }
  .sg-prototype .sg-track {
    box-sizing: border-box;
    height: clamp(500px, 65vh, 620px);
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 6%;
    padding-inline: 6%;
    scrollbar-width: thin;
    scrollbar-color: #70816b #e4e8dd;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sg-prototype .sg-track::-webkit-scrollbar { display: none; }
  .sg-prototype .sg-planting .sg-link > img { object-position: 56% 50%; }
  .sg-prototype .sg-panel,
  .sg-prototype .sg-panel.is-active {
    flex: 0 0 min(75vw, 760px);
    scroll-snap-align: start;
    transition: none;
  }
  .sg-prototype .sg-copy,
  .sg-prototype .sg-panel.is-active .sg-copy { left: 28px; right: 28px; bottom: 29px; }
  .sg-prototype .sg-copy h2,
  .sg-prototype .sg-panel.is-active .sg-copy h2 {
    font-size: clamp(30px, 4.2vw, 42px);
    line-height: 1.1;
    max-width: 520px;
    overflow-wrap: normal;
    hyphens: manual;
  }
  .sg-prototype .sg-title-short { display: none; }
  .sg-prototype .sg-title-full { display: inline; }
  .sg-prototype .sg-copy p,
  .sg-prototype .sg-panel.is-active .sg-copy p {
    opacity: 1;
    max-height: none;
    margin-top: 14px;
    overflow: visible;
    max-width: 520px;
    font-size: 15px;
    line-height: 1.65;
    transition: none;
  }
  .sg-prototype .sg-number { top: 22px; left: 28px; font-size: 16px; }
  .sg-prototype .sg-number > span { display: inline; }
  .sg-prototype .sg-action,
  .sg-prototype .sg-panel.is-active .sg-action {
    width: auto;
    height: auto;
    min-height: 46px;
    border: 1px solid #e6ebdfd9;
    border-radius: 28px;
    padding: 11px 16px;
    gap: 14px;
    margin-top: 19px;
  }
  .sg-prototype .sg-action-label,
  .sg-prototype .sg-panel.is-active .sg-action-label { display: inline; }
  .sg-prototype .sg-panel:not(.is-current) .sg-copy { opacity: 0; transition: opacity 180ms ease; }
  .sg-prototype .sg-panel:not(.is-current) .sg-copy p,
  .sg-prototype .sg-panel:not(.is-current) .sg-action { display: none; }
  .sg-prototype .sg-panel:not(.is-current) .sg-title-full { display: none; }
  .sg-prototype .sg-panel:not(.is-current) .sg-title-short { display: inline; }
  .sg-prototype .sg-panel:not(.is-current) .sg-number > span { display: none; }
  .sg-prototype .sg-panel:focus-within .sg-copy { opacity: 1; }
  .sg-prototype .sg-panel.is-active .sg-link > img { transform: none; }
  .sg-prototype .sg-navigation:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 6% 0;
  }
  .sg-prototype .sg-counter { font: 400 19px/1 Georgia, serif; letter-spacing: 2px; color: #52634c; margin: 0; }
  .sg-prototype .sg-counter > span { color: #17382f; }
  .sg-prototype .sg-navigation > div { display: flex; gap: 9px; }
  .sg-prototype .sg-navigation button {
    width: 48px;
    height: 48px;
    border: 1px solid #667b60;
    border-radius: 50%;
    background: transparent;
    color: #17382f;
    font-size: 21px;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    touch-action: manipulation;
  }
  .sg-prototype .sg-navigation button:disabled { opacity: .38; cursor: default; }
  .sg-prototype .sg-navigation button:focus-visible { outline: 3px solid #b8794f; outline-offset: 3px; }
  .sg-prototype .sg-mobile-hint { display: block; padding: 0 6%; font-size: 12px; line-height: 1.6; color: #53624e; margin: 12px 0 0; }
}

@media (max-width: 600px) {
  .sg-prototype .sg-showcase { padding: 30px 0 44px; }
  .sg-prototype .sg-intro { gap: 14px; margin-bottom: 21px; }
  .sg-prototype .sg-intro .eyebrow { margin-bottom: 10px; font-size: 10px; letter-spacing: 2px; }
  .sg-prototype .sg-intro h1 { font-size: clamp(39px, 10vw, 52px); letter-spacing: -1.2px; }
  .sg-prototype .sg-intro > p { font-size: 14px; line-height: 1.65; }
  .sg-prototype .sg-track { height: 540px; gap: 12px; }
  .sg-prototype .sg-panel,
  .sg-prototype .sg-panel.is-active { flex-basis: 86%; }
  .sg-prototype .sg-copy,
  .sg-prototype .sg-panel.is-active .sg-copy { left: 21px; right: 21px; bottom: 23px; }
  .sg-prototype .sg-copy h2,
  .sg-prototype .sg-panel.is-active .sg-copy h2 { font-size: clamp(28px, 8vw, 34px); }
  .sg-prototype .sg-copy p,
  .sg-prototype .sg-panel.is-active .sg-copy p { margin-top: 11px; font-size: 14px; line-height: 1.58; }
  .sg-prototype .sg-number { top: 18px; left: 21px; font-size: 15px; }
  .sg-prototype .sg-action,
  .sg-prototype .sg-panel.is-active .sg-action { min-height: 44px; margin-top: 16px; padding: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-prototype .sg-panel,
  .sg-prototype .sg-copy p,
  .sg-prototype .sg-link > img,
  .sg-prototype .sg-action { transition: none !important; }
  .sg-prototype .sg-track { scroll-behavior: auto !important; }
}

/* V14.32: all seven services stay visible on ordinary desktop windows. */
@media(min-width:960px){
 .sg-prototype .sg-showcase{padding:clamp(28px,3.6vw,52px) clamp(22px,3.4vw,64px) 52px}
 .sg-prototype .sg-track{height:clamp(460px,58vh,590px);gap:9px;overflow:visible}
 .sg-prototype .sg-panel{flex-basis:0;transition:flex-grow 460ms cubic-bezier(.22,.68,.24,1);border-radius:7px}
 .sg-prototype .sg-panel .sg-copy{left:12px;right:12px;bottom:20px}
 .sg-prototype .sg-panel .sg-copy h2{font-size:clamp(14px,1.25vw,19px);line-height:1.2;hyphens:auto;overflow-wrap:anywhere;writing-mode:horizontal-tb;transform:none;max-width:none;text-wrap:balance}
 .sg-prototype .sg-panel .sg-title-short{display:none}
 .sg-prototype .sg-panel .sg-title-full{display:inline}
 .sg-prototype .sg-panel.is-active .sg-copy{left:24px;right:24px}
 .sg-prototype .sg-panel.is-active .sg-copy h2{font-size:clamp(25px,2.4vw,38px);line-height:1.1;hyphens:auto;overflow-wrap:normal}
 .sg-prototype .sg-panel.is-active .sg-copy p{font-size:14px;line-height:1.55;transition:opacity 160ms ease 160ms,max-height 300ms ease 100ms,margin 300ms ease 100ms}
 .sg-prototype .sg-panel .sg-number{left:14px;top:18px}
 .sg-prototype .sg-link::after{background:linear-gradient(180deg,#071e1424 0%,#071e1405 27%,#071e1433 46%,#071e14d9 100%)}
 .sg-prototype .sg-panel .sg-action-label{font-size:13px}
 .sg-prototype .sg-panel .sg-action{flex-shrink:0}
 .sg-prototype .sg-panel:not(.is-active) .sg-action{width:36px;height:36px;margin-top:13px}
 .sg-prototype .sg-panel.is-active .sg-link>img{transform:scale(1.025)}
 .sg-prototype .sg-panel.is-active .sg-action{padding:10px 14px;gap:10px}
 .sg-prototype .sg-intro{margin-bottom:26px}
}
@media(prefers-reduced-motion:reduce){.sg-prototype .sg-panel,.sg-prototype .sg-panel.is-active .sg-copy p{transition:none!important}}
