/* Reviews are readable immediately on load; motion is never required to reveal a card. */
.reviews .google-marquee-wrapper {
  width: min(1320px, calc(100% - 112px));
  margin: 0 auto;
  overflow: visible;
  padding: 4px 0 12px;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
.reviews .google-marquee-wrapper:focus-visible { outline: 2px solid #e4c38e; outline-offset: 4px; }
.reviews .google-marquee-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  padding: 0;
  animation: none !important;
  transform: none !important;
  will-change: auto;
}
.reviews .google-review-card {
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 238px;
  height: auto;
  padding: 18px 18px 16px;
  border-radius: 11px;
  box-shadow: 0 8px 22px #0002;
}
.reviews .gr-avatar { width: 34px; height: 34px; font-size: 13px; }
.reviews .gr-name { font-size: 13px; }
.reviews .gr-date { font-size: 11px; }
.reviews .gr-stars { font-size: 14px; margin-bottom: 9px; }
.reviews .gr-text { font-size: 13px !important; line-height: 1.48 !important; }
.reviews .gr-footer { padding-top: 8px; }
.reviews .gr-verified { font-size: 11px; }
.showcase-preview .preview-image picture { display: block; width: 100%; height: 100%; }
.reviews { border-bottom: 1px solid #ffffff1a; }

/* Unified hero ratio across all 5 cards so desktop and mobile frames share identical dimensions without bands or text clipping. */
.showcase-preview { --hero-ratio: 1536 / 818; --hero-ar: 1.87775; }

/* Bespoke per-card brand themes matching each showcase visual (replaces the generic dark caption bar). */
.showcase-preview.niche-professional {
  --card-bg: #f2efe9;
  --card-border: #d5d0c7;
  --cap-divider: #dbd6cd;
  --cap-eyebrow: #6b665d;
  --cap-title: #191917;
  --cap-text: #525049;
  --cap-font: Inter, Arial, sans-serif;
  --cap-title-weight: 500;
  --cap-title-track: -.035em;
  --cta-bg: #191917;
  --cta-color: #f6f3ed;
  --cta-border: #191917;
  --cta-radius: 2px;
  --cta-weight: 500;
}
.showcase-preview.niche-artisan {
  --card-bg: linear-gradient(135deg, #00359e 0%, #07225f 100%);
  --card-border: #4c7ef066;
  --cap-divider: #ffffff26;
  --cap-eyebrow: #c8ff34;
  --cap-title: #ffffff;
  --cap-text: #cfe0ff;
  --cap-font: Inter, Arial, sans-serif;
  --cap-title-weight: 700;
  --cap-title-track: -.035em;
  --cta-bg: #c8ff34;
  --cta-color: #062468;
  --cta-border: #c8ff34;
  --cta-radius: 5px;
  --cta-weight: 700;
}
.showcase-preview.niche-salon {
  --card-bg: #f1e5df;
  --card-border: #d8bcb0;
  --cap-divider: #dec7bd;
  --cap-eyebrow: #8c5a51;
  --cap-title: #231918;
  --cap-text: #5e4944;
  --cap-font: Fraunces, Georgia, serif;
  --cap-title-weight: 400;
  --cap-title-track: -.03em;
  --cta-bg: #c49288;
  --cta-color: #1c1312;
  --cta-border: #b88479;
  --cta-radius: 3px;
  --cta-weight: 600;
}
.showcase-preview.niche-restaurant {
  --card-bg: linear-gradient(160deg, #42141c 0%, #280b10 100%);
  --card-border: #9c434f66;
  --cap-divider: #d89b3e38;
  --cap-eyebrow: #e7b35d;
  --cap-title: #faf1e4;
  --cap-text: #decab8;
  --cap-font: Fraunces, Georgia, serif;
  --cap-title-weight: 400;
  --cap-title-track: -.03em;
  --cta-bg: #da9c3d;
  --cta-color: #260a0f;
  --cta-border: #e5ae57;
  --cta-radius: 999px;
  --cta-weight: 600;
}
.showcase-preview.niche-shop {
  --card-bg: linear-gradient(160deg, #1a3d29 0%, #11261a 100%);
  --card-border: #4e806266;
  --cap-divider: #ddb4f438;
  --cap-eyebrow: #e2baf7;
  --cap-title: #f7effc;
  --cap-text: #cbe0d1;
  --cap-font: Fraunces, Georgia, serif;
  --cap-title-weight: 400;
  --cap-title-track: -.03em;
  --cta-bg: #ddb4f4;
  --cta-color: #132a1d;
  --cta-border: #e6c6f8;
  --cta-radius: 999px;
  --cta-weight: 600;
}

.showcase:not(.motion-ready) .design-board.showcase-preview { height: auto; }
.showcase:not(.motion-ready) .showcase-preview .preview-image { height: auto; aspect-ratio: var(--hero-ratio); }

@media (min-width: 901px) {
  .showcase.motion-ready .design-stage {
    width: min(1150px, calc(100% - 56px));
    container-type: size;
  }
  .showcase.motion-ready .design-board.showcase-preview {
    inset: auto;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    width: min(calc(100cqw - 70px), calc((100cqh - 32px) * var(--hero-ar)));
    height: auto;
    aspect-ratio: var(--hero-ratio);
  }
  .showcase.motion-ready .design-board.showcase-preview .preview-image {
    width: 100%;
    height: 100%;
    aspect-ratio: var(--hero-ratio);
  }
  .showcase.motion-ready .design-board.showcase-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  .showcase.motion-ready .design-board.showcase-preview {
    width: min(calc(100cqw - 40px), calc((100cqh - 20px) * var(--hero-ar)));
  }
}

@media (max-width: 1150px) and (min-width: 701px) {
  .reviews .google-marquee-wrapper { width: min(670px, calc(100% - 80px)); }
  .reviews .google-marquee-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* The same scroll-driven scene is used on desktop, tablet and phone. */
  .showcase.motion-ready { height: 480svh; }
  .showcase-preview .preview-image { aspect-ratio: var(--hero-ratio); }
  .showcase-preview .preview-image img { object-fit: cover; object-position: center top; }
  .showcase.motion-ready .showcase-pin {
    position: sticky;
    top: 76px;
    height: calc(100svh - 76px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    padding: 16px 0 14px;
  }
  .showcase.motion-ready .design-stage {
    position: relative;
    width: calc(100% - 16px);
    max-width: 850px;
    min-height: 0;
    overflow: hidden;
    margin: 0 auto;
  }
  .showcase.motion-ready .design-board.showcase-preview {
    position: absolute;
    inset: auto;
    left: 50%;
    top: 50%;
    width: min(560px, calc(100% - 10px));
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    translate: -50% -50%;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 18px 42px #0006;
  }
  .showcase.motion-ready .preview-image {
    width: 100%;
    height: auto;
    aspect-ratio: var(--hero-ratio);
    flex: none;
  }
  .showcase.motion-ready .preview-caption {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    min-height: 174px;
    flex: none;
    gap: 14px;
    padding: 15px 16px 16px;
    background: var(--card-bg);
    color: var(--cap-title);
    border-top: 1px solid var(--cap-divider);
  }
  .showcase.motion-ready .preview-caption > div > span {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cap-eyebrow);
  }
  .showcase.motion-ready .preview-caption h3 {
    font-family: var(--cap-font);
    font-weight: var(--cap-title-weight);
    letter-spacing: var(--cap-title-track);
    font-size: 21px;
    line-height: 1.12;
    margin: 5px 0 4px;
    color: var(--cap-title);
  }
  .showcase.motion-ready .preview-caption p {
    display: block;
    font-size: 12.5px;
    line-height: 1.42;
    color: var(--cap-text);
    margin: 0;
  }
  .showcase.motion-ready .preview-caption a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 15px;
    background: var(--cta-bg);
    color: var(--cta-color);
    border: 1px solid var(--cta-border);
    border-radius: var(--cta-radius);
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    font-weight: var(--cta-weight);
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, filter .18s ease;
  }
  .showcase.motion-ready .preview-caption a:hover,
  .showcase.motion-ready .preview-caption a:focus-visible {
    filter: brightness(1.06);
    color: var(--cta-color);
  }
  .showcase.motion-ready .preview-caption a:active {
    transform: scale(.985);
  }
  .showcase.motion-ready .preview-caption a > span {
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: none;
    color: currentColor;
  }
  .showcase.motion-ready .preview-caption a > span:last-child {
    font-size: 15px;
    line-height: 1;
    color: currentColor;
  }
  .showcase.motion-ready .showcase-footer { margin-top: 8px; }
}

@media (max-width: 700px) {
  .reviews { padding: 58px 0 70px; }
  .reviews .google-marquee-wrapper {
    width: 100%;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 16px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .reviews .google-marquee-wrapper::-webkit-scrollbar { display: none; }
  .reviews .google-marquee-track {
    display: flex;
    width: max-content;
    gap: 12px;
    padding: 0 20px;
  }
  .reviews .google-review-card {
    flex: 0 0 min(76vw, 280px);
    width: min(76vw, 280px);
    min-height: 232px;
    scroll-snap-align: start;
  }
}

@media (max-width: 360px) {
  .showcase.motion-ready .design-controls { grid-template-columns: .86fr .96fr 1.32fr 1.04fr .82fr; gap: 2px; }
  .showcase.motion-ready .design-controls button { font-size: 9.5px; letter-spacing: -.03em; padding: 6px 1px; }
  .reviews .google-badge-card { flex-wrap: wrap; gap: 8px; }
  .showcase.motion-ready .preview-caption h3 { font-size: 18px; }
  .showcase.motion-ready .preview-caption a { font-size: 12px; padding: 0 12px; }
}

@media (max-width: 900px) and (max-height: 700px) {
  .showcase.motion-ready .preview-caption { min-height: 160px; padding: 12px 15px 14px; gap: 10px; }
  .showcase.motion-ready .preview-caption h3 { font-size: 19px; }
  .showcase.motion-ready .preview-caption p { display: block; font-size: 12px; }
}

@media (max-width: 900px) and (max-height: 620px) {
  .showcase.motion-ready .showcase-pin { padding: 10px 0 8px; }
  .showcase.motion-ready .showcase-heading h2 { font-size: clamp(22px, 4vw, 28px); }
  .showcase.motion-ready .showcase-heading .eyebrow { margin-bottom: 3px; }
  .showcase.motion-ready .design-board.showcase-preview {
    width: min(460px, calc(100% - 12px), calc((100svh - 275px) * 1.88));
  }
  .showcase.motion-ready .preview-caption { min-height: 114px; padding: 10px 14px 12px; gap: 10px; }
  .showcase.motion-ready .preview-caption h3 { font-size: 18px; margin: 4px 0 0; }
  .showcase.motion-ready .preview-caption p { display: none; }
  .showcase.motion-ready .preview-caption a { min-height: 40px; font-size: 12px; }
  .showcase.motion-ready .showcase-footer>p { display: none; }
  .showcase.motion-ready .design-controls button { min-height: 36px; }
}

@media (max-width: 900px) and (max-height: 480px) {
  .showcase.motion-ready .showcase-heading { margin-bottom: 4px; }
  .showcase.motion-ready .showcase-heading .eyebrow { display: none; }
  .showcase.motion-ready .showcase-heading h2 { font-size: 22px; line-height: 1.05; }
  .showcase.motion-ready .design-board.showcase-preview {
    width: min(520px, calc(100% - 20px));
    height: calc(100% - 8px);
    max-height: 200px;
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: minmax(0, 1fr);
  }
  .showcase.motion-ready .preview-image { height: 100%; aspect-ratio: auto; }
  .showcase.motion-ready .preview-image img { object-fit: cover; object-position: left top; }
  .showcase.motion-ready .preview-caption {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 10px 12px;
    gap: 8px;
    border-top: 0;
    border-left: 1px solid var(--cap-divider);
  }
  .showcase.motion-ready .preview-caption h3 { font-size: 17px; }
  .showcase.motion-ready .preview-caption a { min-height: 36px; padding: 0 11px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase.motion-ready .design-stage { container-type: normal; }
  .design-board.showcase-preview {
    height: auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
  }
  .showcase-preview .preview-image { height: auto; aspect-ratio: var(--hero-ratio); }
  .showcase-preview .preview-caption {
    background: var(--card-bg);
    color: var(--cap-title);
    border-top: 1px solid var(--cap-divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
  }
  .showcase-preview .preview-caption > div > span { color: var(--cap-eyebrow); font-weight: 600; }
  .showcase-preview .preview-caption h3 {
    font-family: var(--cap-font);
    font-weight: var(--cap-title-weight);
    color: var(--cap-title);
    font-size: 23px;
    margin: 6px 0 4px;
  }
  .showcase-preview .preview-caption p { color: var(--cap-text); }
  .showcase-preview .preview-caption a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    background: var(--cta-bg);
    color: var(--cta-color);
    border: 1px solid var(--cta-border);
    border-radius: var(--cta-radius);
    font-weight: var(--cta-weight);
    white-space: nowrap;
  }
  .showcase-preview .preview-caption a > span {
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: none;
    color: currentColor;
  }
}
