/* Self-contained styles keep the existing service cards and page layout intact. */
.gp-carousel {
  --carousel-bg: #edf3e8;
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #174b3310;
  border-radius: 24px;
  background: var(--carousel-bg);
  transition: background-color .45s ease;
  display: flex;
  flex-direction: column;
  touch-action: pan-y pinch-zoom;
}
.gp-carousel[data-theme="family"] { --carousel-bg: #e9f2f7; }
.gp-carousel[data-theme="care"] { --carousel-bg: #f5eee4; }
.gp-carousel-slides { display: grid; flex: 1; min-width: 0; }
.gp-carousel-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-width: 0;
  min-height: 360px;
  padding: 38px 34px 15px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s ease, visibility .45s;
}
.gp-carousel-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.gp-carousel-copy { position: relative; z-index: 1; min-width: 0; }
.gp-carousel-copy .eyebrow {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.25px;
  color: #38604a;
  margin: 0 0 18px;
}
.gp-carousel-title {
  font-size: clamp(30px, 3.05vw, 43px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -1.4px;
  color: #183e2e;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 0 0 18px;
}
.gp-carousel-description {
  color: #4c6457;
  font-size: 14px;
  line-height: 1.7;
  max-width: 350px;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
.gp-carousel-copy .btn { padding: 12px 19px; min-height: 48px; }
.gp-carousel-art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 285px;
  isolation: isolate;
}
.gp-carousel-art::before,
.gp-carousel-art::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; }
.gp-carousel-art::before { width: 102%; aspect-ratio: 1; background: #dbe8d2; }
.gp-carousel-art::after { width: 122%; aspect-ratio: 1; border: 1px solid #c9d9bd; }
[data-theme="family"] .gp-carousel-art::before { background: #d4e6f0; }
[data-theme="family"] .gp-carousel-art::after { border-color: #c3dae7; }
[data-theme="care"] .gp-carousel-art::before { background: #eadfcd; }
[data-theme="care"] .gp-carousel-art::after { border-color: #dfd0b9; }
.gp-carousel-art img {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: rotate(6deg);
  filter: drop-shadow(7px 14px 9px #183e2e12);
  user-select: none;
  -webkit-user-drag: none;
}
[data-theme="family"] .gp-carousel-art img { transform: rotate(-5deg); }
[data-theme="care"] .gp-carousel-art img { max-width: 224px; max-height: 224px; transform: rotate(8deg); }
.gp-carousel-note { grid-column: 1 / -1; font-size: 10px; color: #556552; margin: 0; line-height: 1.5; }
.gp-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 28px;
  padding: 5px 0 12px;
  position: relative;
  z-index: 2;
}
.gp-carousel-pagination, .gp-carousel-navigation { display: flex; align-items: center; gap: 5px; }
.gp-carousel-count { font-size: 11px; letter-spacing: 1px; color: #56675e; margin-right: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-carousel-count b { color: #1b4934; font-weight: 750; }
.gp-carousel-dot, .gp-carousel-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #24533d;
  cursor: pointer;
}
.gp-carousel-dot { width: 44px; min-width: 44px; }
.gp-carousel-dot::after { content: ''; width: 7px; height: 7px; border-radius: 10px; background: #8a9c8e; transition: width .25s, background .25s; }
.gp-carousel-dot[aria-current="true"]::after { width: 23px; background: #245d43; }
.gp-carousel-control { background: #ffffff91; border: 1px solid #ffffffb8; }
.gp-carousel-control:hover { background: #fff; }
.gp-carousel-control:focus-visible, .gp-carousel-dot:focus-visible { outline: 2px solid #145d43; outline-offset: 2px; }
.gp-carousel-control .icon { width: 18px; height: 18px; }
.gp-carousel-previous .icon { transform: rotate(180deg); }
.gp-carousel-control [data-play-icon] { display: none; }
.gp-carousel-control[data-mode="play"] [data-play-icon] { display: block; }
.gp-carousel-control[data-mode="play"] [data-pause-icon] { display: none; }
.gp-carousel-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1500px) { .gp-carousel-slide { min-height: 385px; } }
@media (min-width: 769px) and (max-width: 1100px) {
  .gp-carousel-slide { padding: 30px 26px 15px; gap: 16px; }
  .gp-carousel-title { font-size: 33px; }
  .gp-carousel-art { height: 230px; }
}
@media (max-width: 768px) {
  .gp-carousel { border-radius: 20px; }
  .gp-carousel-slide { padding: 25px 24px 12px; min-height: 325px; gap: 16px; }
  .gp-carousel-title { font-size: 35px; }
  .gp-carousel-art { height: 230px; }
  .gp-carousel-controls { margin: 0 20px; }
}
@media (max-width: 540px) {
  .gp-carousel-slide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-content: start; align-items: start; gap: 14px 16px; min-height: 0; padding: 24px 22px 10px; }
  .gp-carousel-copy { display: contents; }
  .gp-carousel-copy .eyebrow { grid-column: 1 / -1; margin: 0; font-size: 9px; letter-spacing: 1px; }
  .gp-carousel-title { grid-column: 1 / -1; font-size: clamp(28px, 7.6vw, 36px); margin: 0 0 2px; line-height: 1.16; letter-spacing: -1px; }
  .gp-carousel-description { grid-column: 1; font-size: 13px; line-height: 1.6; margin: 0; }
  .gp-carousel-copy .btn { grid-column: 1; align-self: end; justify-self: start; width: 100%; padding: 11px 9px; gap: 7px; font-size: 12px; }
  .gp-carousel-copy .btn .icon { width: 16px; height: 16px; flex-shrink: 0; }
  .gp-carousel-art { grid-column: 2; grid-row: 3 / 5; align-self: center; height: 160px; }
  .gp-carousel-art::after { width: 112%; }
  .gp-carousel-note { font-size: 9px; margin-top: 2px; }
  .gp-carousel-controls { margin: 0 16px; gap: 6px; padding-bottom: 10px; }
  .gp-carousel-count { display: none; }
  .gp-carousel-pagination, .gp-carousel-navigation { gap: 2px; }
  .gp-carousel-control { width: 44px; min-width: 44px; height: 44px; border-radius: 15px; }
}
@media (max-width: 360px) {
  .gp-carousel-slide { padding: 22px 18px 10px; gap: 12px; }
  .gp-carousel-title { font-size: 28px; }
  .gp-carousel-art { height: 140px; }
  .gp-carousel-controls { margin: 0 5px; }
  .gp-carousel-pagination, .gp-carousel-navigation { gap: 0; }
  .gp-carousel-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-carousel, .gp-carousel-slide, .gp-carousel-dot::after { transition: none; }
}
