/* Homepage V2 design lab: prototype-only additions. */

.shp-logo-marquee {
  padding: 50px 0 54px;
  border-top: 1px solid var(--shp-line);
  background: #fff;
  scroll-margin-top: 140px;
}

.shp-logo-heading,
.shp-locations-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.shp-logo-heading h2,
.shp-locations-heading h2 {
  margin: 0;
  color: var(--shp-ink);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.shp-logo-heading > p {
  max-width: 510px;
  margin: 0;
  color: var(--shp-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.shp-logo-stage {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.shp-logo-viewport {
  overflow-x: auto;
  padding: 1px 1px 6px;
  scrollbar-width: thin;
}

.shp-logo-marquee.is-marquee-ready .shp-logo-viewport {
  overflow: hidden;
  padding-bottom: 1px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.shp-logo-track,
.shp-logo-sequence {
  display: flex;
  width: max-content;
  gap: 10px;
}

.shp-logo-track {
  transform: none;
}

.shp-logo-marquee.is-marquee-ready .shp-logo-track {
  animation-duration: 66s;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
  animation-play-state: running;
  animation-timing-function: linear;
  backface-visibility: hidden;
  will-change: transform;
}

.shp-logo-marquee.is-marquee-ready .shp-logo-track-right { animation-name: shp-marquee-right; }
.shp-logo-marquee.is-marquee-ready .shp-logo-track-left { animation-name: shp-marquee-left; animation-duration: 64s; }

.shp-logo-tile {
  display: grid;
  width: 150px;
  height: 70px;
  flex: 0 0 150px;
  place-items: center;
  overflow: hidden;
  padding: 10px 16px;
  border: 1px solid rgba(32, 32, 32, 0.11);
  border-radius: 10px;
  background: #fff;
}

.shp-logo-tile img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
}

/* These three source files are square exports with generous white canvas. */
.shp-logo-tile img[src$="brand-asian-paints.png"],
.shp-logo-tile img[src$="brand-hafele.png"],
.shp-logo-tile img[src$="brand-blue-point.png"] {
  transform: scale(1.65);
}

.shp-experience-grid,
.shp-experience-media { min-height: 480px; }
.shp-experience-copy h2 { font-size: clamp(2rem, 2.8vw, 2.6rem); }

.shp-locations {
  padding: 56px 0 64px;
  background: #fff;
  scroll-margin-top: 140px;
}

.shp-locations-heading > div > p:not(.shp-eyebrow) {
  margin: 12px 0 0;
  color: var(--shp-text);
  font-size: 0.98rem;
  line-height: 1.6;
}

.shp-locations-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--shp-teal-deep);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 4px;
}

.shp-locations-heading > a:hover { text-decoration: underline; }
.shp-locations-heading > a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shp-locations-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  min-height: 390px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(32, 32, 32, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(27, 36, 38, 0.08);
}

.shp-map-frame {
  position: relative;
  min-width: 0;
  min-height: 390px;
  overflow: hidden;
  background: #edf2ef;
}

.shp-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.shp-map-loading {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #edf2ef;
  color: var(--shp-muted);
  font-size: 0.82rem;
  pointer-events: none;
  transition: opacity 180ms var(--shp-ease), visibility 180ms var(--shp-ease);
}

.shp-map-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 109, 117, 0.22);
  border-top-color: var(--shp-teal-deep);
  border-radius: 50%;
  animation: shp-map-spin 800ms linear infinite;
}

.shp-map-frame.is-loaded .shp-map-loading { opacity: 0; visibility: hidden; }

.shp-location-panel {
  display: flex;
  min-width: 0;
  border-left: 1px solid var(--shp-line);
  background: #fff;
  flex-direction: column;
}

.shp-location-panel button,
.shp-location-panel a { font: inherit; }

.shp-location-overview {
  display: block;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  border-bottom: 1px solid var(--shp-line);
  background: #f8faf9;
  color: var(--shp-ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms var(--shp-ease), color 180ms var(--shp-ease);
}

.shp-location-overview > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 700;
}

.shp-location-overview svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--shp-teal-deep);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.shp-location-overview small {
  display: block;
  margin: 5px 0 0 29px;
  color: var(--shp-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.shp-location-overview[aria-pressed="true"] { background: var(--shp-teal-soft); color: var(--shp-teal-deep); }

.shp-location-list {
  display: flex;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  flex-direction: column;
}

.shp-location-list li {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  flex: 1;
  border-top: 1px solid var(--shp-line);
}

.shp-location-list li:first-child { border-top: 0; }

.shp-location-list button {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 92px;
  padding: 16px 10px 16px 18px;
  border: 0;
  background: transparent;
  color: var(--shp-ink);
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms var(--shp-ease);
}

.shp-location-list button:hover,
.shp-location-list button[aria-pressed="true"] { background: var(--shp-teal-soft); }

.shp-location-number {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--shp-teal-deep);
  color: #fff;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 700;
}

.shp-location-list strong,
.shp-location-list small { display: block; }
.shp-location-list strong { font-size: 0.93rem; line-height: 1.35; }
.shp-location-list small {
  margin-top: 5px;
  color: var(--shp-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.shp-location-list a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  margin-right: 16px;
  color: var(--shp-teal-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 3px;
}

.shp-location-list a:hover { text-decoration: underline; }

@keyframes shp-marquee-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 5px), 0, 0); }
}

@keyframes shp-marquee-right {
  from { transform: translate3d(calc(-50% - 5px), 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes shp-map-spin { to { transform: rotate(360deg); } }

@media (max-width: 991px) {
  .shp-logo-heading,
  .shp-locations-heading { align-items: start; }
  .shp-logo-heading > p { max-width: 390px; }
  .shp-locations-card { grid-template-columns: 1fr; }
  .shp-map-frame { min-height: 340px; }
  .shp-location-panel { border-top: 1px solid var(--shp-line); border-left: 0; }
  .shp-location-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shp-location-list li {
    display: flex;
    align-items: stretch;
    border-top: 0;
    border-left: 1px solid var(--shp-line);
    flex-direction: column;
  }
  .shp-location-list li:first-child { border-left: 0; }
  .shp-location-list button { min-height: 112px; padding-right: 16px; }
  .shp-location-list a { margin: 0; padding: 0 18px 16px 58px; }
}

@media (max-width: 720px) {
  .shp-logo-marquee { padding: 40px 0 44px; }
  .shp-logo-heading,
  .shp-locations-heading { display: block; }
  .shp-logo-heading > p { margin-top: 12px; }
  .shp-logo-tile { width: 128px; height: 62px; flex-basis: 128px; padding: 9px 14px; }
  .shp-logo-tile img { max-height: 42px; }
  .shp-locations { padding: 44px 0 50px; }
  .shp-locations-heading > a { margin-top: 14px; }
  .shp-map-frame { min-height: 280px; }
  .shp-location-list { display: block; }
  .shp-location-list li {
    display: grid;
    border-top: 1px solid var(--shp-line);
    border-left: 0;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .shp-location-list button { min-height: 94px; }
  .shp-location-list a { align-self: center; margin-right: 16px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shp-logo-marquee.is-marquee-ready .shp-logo-viewport {
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }
  .shp-logo-track { animation: none !important; transform: none !important; will-change: auto; }
  .shp-logo-sequence[aria-hidden="true"] { display: none; }
  .shp-map-loading span { animation: none; }
}
