/* Google Maps and Google reviews integration */
.google-reviews-section {
  position: relative;
  overflow: hidden;
  background: #f7f4ec;
}

.google-reviews-section::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  top: -180px;
  border: 70px solid rgba(244, 196, 0, .22);
  border-radius: 50%;
  pointer-events: none;
}

.google-reviews-section .section-head {
  position: relative;
  z-index: 1;
}

.google-reviews-intro {
  display: grid;
  gap: 22px;
  align-content: start;
}

.google-reviews-shell {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin-top: clamp(36px, 5vw, 64px);
}

.google-service-placeholder,
.google-reviews-error {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: 190px;
  padding: clamp(26px, 5vw, 48px);
  color: #fff;
  background: var(--ink);
  border-radius: max(var(--radius), 20px);
  box-shadow: 0 24px 60px rgba(11, 12, 13, .14);
}

.google-service-placeholder-copy,
.google-reviews-error-copy {
  max-width: 760px;
}

.google-service-placeholder h3,
.google-reviews-error h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.google-service-placeholder p,
.google-reviews-error p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: .95rem;
  line-height: 1.65;
}

.google-service-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.google-service-actions .button {
  min-width: 190px;
  justify-content: center;
}

.google-reviews-loading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.google-review-skeleton {
  min-height: 270px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(11, 12, 13, .1);
  border-radius: max(var(--radius), 18px);
  overflow: hidden;
}

.google-review-skeleton::before,
.google-review-skeleton::after {
  content: "";
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #ece9e1 25%, #f9f7f1 50%, #ece9e1 75%);
  background-size: 200% 100%;
  animation: google-skeleton 1.35s linear infinite;
}

.google-review-skeleton::before {
  width: 54%;
  height: 14px;
  margin-bottom: 24px;
}

.google-review-skeleton::after {
  width: 100%;
  height: 150px;
  border-radius: 12px;
}

@keyframes google-skeleton {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.google-reviews-live {
  display: grid;
  gap: 22px;
}

.google-place-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  color: var(--ink);
  background: var(--brand);
  border-radius: max(var(--radius), 20px);
}

.google-rating-block {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px;
  align-items: center;
}

.google-rating-value {
  font-family: var(--font-heading);
  font-size: clamp(2.55rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.055em;
}

.google-rating-meta {
  display: grid;
  gap: 6px;
}

.google-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: .02em;
}

.google-rating-count {
  color: rgba(11, 12, 13, .7);
  font-size: .83rem;
  font-weight: 700;
}

.google-place-copy {
  min-width: 0;
}

.google-place-copy small {
  display: block;
  margin-bottom: 6px;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.google-place-copy strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 2.05rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.google-place-copy span {
  display: block;
  margin-top: 8px;
  font-size: .86rem;
  line-height: 1.5;
}

.google-place-summary .button {
  min-width: 190px;
  justify-content: center;
}

.google-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.google-review-card {
  display: flex;
  min-width: 0;
  min-height: 300px;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  background: #fff;
  border: 1px solid rgba(11, 12, 13, .11);
  border-radius: max(var(--radius), 18px);
  box-shadow: 0 18px 48px rgba(11, 12, 13, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}

.google-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(11, 12, 13, .11);
}

.google-review-author {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.google-review-avatar,
.google-review-initial {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.google-review-avatar {
  display: block;
  object-fit: cover;
  background: #ece9e1;
}

.google-review-initial {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.google-review-author-copy {
  min-width: 0;
}

.google-review-author-copy a,
.google-review-author-copy strong {
  display: block;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.google-review-author-copy a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.google-review-author-copy time,
.google-review-author-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
}

.google-review-card .google-stars {
  margin-top: 20px;
  color: #a87800;
}

.google-review-text {
  display: -webkit-box;
  margin: 18px 0 24px;
  color: #303133;
  font-size: .92rem;
  line-height: 1.68;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.google-review-translation {
  margin: -14px 0 18px;
  color: var(--muted);
  font-size: .72rem;
}

.google-review-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.google-review-link::after {
  content: "↗";
  font-size: 1rem;
}

.google-review-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.google-reviews-attribution {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.google-data-sources {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
}

.google-data-sources a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.google-maps-attribution {
  display: inline-block;
  color: #1f1f1f !important;
  font-family: var(--font-body), sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400 !important;
  letter-spacing: normal;
  line-height: 1.4;
  text-transform: none;
  white-space: nowrap;
}

.section-map {
  background: #fff;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(280px, .76fr) minmax(0, 1.24fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
}

.map-copy {
  min-width: 0;
}

.map-copy h2 {
  max-width: 640px;
  margin-top: 24px;
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  line-height: 1.01;
}

.map-copy > p {
  max-width: 610px;
  margin-top: 24px;
  color: var(--muted);
}

.map-address {
  display: block;
  margin: 30px 0 26px;
  padding: 22px 24px;
  border-left: 5px solid var(--brand);
  background: #f7f4ec;
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.google-map-shell {
  position: relative;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  background: var(--ink);
  border-radius: max(var(--radius), 20px);
  box-shadow: var(--shadow);
}

.google-map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: clamp(28px, 5vw, 52px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 12, 13, .94), rgba(11, 12, 13, .8)),
    repeating-linear-gradient(45deg, rgba(244, 196, 0, .12) 0 1px, transparent 1px 22px);
  text-align: center;
}

.google-map-placeholder-inner {
  max-width: 560px;
}

.google-map-pin {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  color: var(--ink);
  background: var(--brand);
  border-radius: 50% 50% 50% 12px;
  font-size: 1.65rem;
  transform: rotate(-45deg);
}

.google-map-pin span {
  transform: rotate(45deg);
}

.google-map-placeholder h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.google-map-placeholder p {
  margin: 14px auto 24px;
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  line-height: 1.65;
}

.google-map-placeholder .button {
  margin-inline: auto;
}

.google-map-frame {
  display: block;
  width: 100%;
  min-height: 430px;
  border: 0;
  background: #ece9e1;
}

.google-map-shell.is-loading .google-map-placeholder .button,
.google-reviews-shell.is-loading [data-google-reviews-load] {
  pointer-events: none;
  opacity: .65;
}

.google-map-shell.is-loading .google-map-placeholder .button::after,
.google-reviews-shell.is-loading [data-google-reviews-load]::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: google-spin .7s linear infinite;
}

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

.google-integrations-noscript {
  padding: 18px 20px;
  background: #fff5c0;
  border: 1px solid rgba(11, 12, 13, .15);
  font-size: .9rem;
}

.google-reviews-section [hidden],
.section-map [hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .google-review-grid,
  .google-reviews-loading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .google-review-card:last-child:nth-child(odd),
  .google-review-skeleton:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr);
    gap: 24px 40px;
    align-items: end;
  }

  .map-copy .section-index,
  .map-copy h2 {
    grid-column: 1 / -1;
  }

  .map-copy > p,
  .map-address {
    margin-top: 0;
  }

  .map-copy .text-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .google-service-placeholder,
  .google-reviews-error,
  .google-place-summary {
    grid-template-columns: 1fr;
  }

  .google-service-actions {
    justify-content: flex-start;
  }

  .google-place-summary .button {
    width: 100%;
  }

  .map-copy {
    display: block;
  }

  .map-copy h2 {
    margin-top: 18px;
  }

  .map-copy > p {
    margin-top: 20px;
  }

  .map-address {
    margin: 24px 0;
  }
}

@media (max-width: 640px) {
  .google-reviews-section::before {
    width: 240px;
    height: 240px;
    right: -120px;
    top: -120px;
    border-width: 46px;
  }

  .google-review-grid,
  .google-reviews-loading {
    grid-template-columns: 1fr;
  }

  .google-review-card:last-child:nth-child(odd),
  .google-review-skeleton:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .google-service-placeholder,
  .google-reviews-error {
    min-height: 0;
    padding: 26px 22px;
  }

  .google-service-actions,
  .google-service-actions .button {
    width: 100%;
  }

  .google-rating-block {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .google-place-summary {
    padding: 24px 22px;
  }

  .google-review-card {
    min-height: 0;
    padding: 24px 22px;
  }

  .google-map-shell,
  .google-map-placeholder,
  .google-map-frame {
    min-height: 350px;
  }

  .google-map-placeholder {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .google-review-skeleton::before,
  .google-review-skeleton::after,
  .google-map-shell.is-loading .google-map-placeholder .button::after,
  .google-reviews-shell.is-loading [data-google-reviews-load]::after {
    animation: none;
  }

  .google-review-card {
    transition: none;
  }
}

.google-review-grid > .google-service-placeholder {
  grid-column: 1 / -1;
}


/* Direct review display and dedicated reviews page */
.google-reviews-shell.is-ready {
  min-height: 0;
}

.google-reviews-shell.is-loading .google-reviews-live {
  opacity: .94;
}

.google-reviews-live {
  transition: opacity .2s ease;
}

.google-review-excerpt {
  display: block;
  width: fit-content;
  margin-top: auto;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid rgba(11, 12, 13, .09);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.google-sync-status {
  color: var(--ink);
  font-weight: 750;
}

.google-reviews-shell[data-sync-state="syncing"] .google-sync-status::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: google-spin .7s linear infinite;
}

.reviews-hero {
  min-height: 0;
  padding-top: clamp(108px, 12vw, 154px);
  color: #fff;
  background: var(--ink);
}

.reviews-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.reviews-hero-copy {
  min-width: 0;
}

.reviews-hero .hero-kicker {
  color: var(--brand);
}

.reviews-hero h1 {
  max-width: 760px;
  margin: 22px 0 0;
  color: #fff;
  font-size: clamp(3.2rem, 6.2vw, 6.8rem);
  line-height: .96;
  letter-spacing: -.05em;
}

.reviews-hero h1 span {
  display: block;
}

.reviews-hero .lead {
  max-width: 650px;
  margin-top: 28px;
  color: rgba(255, 255, 255, .72);
}

.reviews-hero-score {
  display: flex;
  gap: 18px;
  align-items: center;
  width: fit-content;
  margin-top: 34px;
  padding: 20px 24px;
  color: var(--ink);
  background: var(--brand);
  border-radius: 18px;
}

.reviews-hero-score > strong {
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: .9;
}

.reviews-hero-score > span {
  display: grid;
  gap: 7px;
}

.reviews-hero-score small {
  font-weight: 800;
}

.reviews-hero-visual {
  position: relative;
  min-height: 610px;
}

.reviews-hero-visual figure {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.reviews-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviews-visual-main {
  inset: 0 16% 7% 0;
}

.reviews-visual-main img {
  object-position: center 42%;
}

.reviews-visual-detail {
  right: 0;
  bottom: 0;
  width: 48%;
  height: 36%;
  border: 7px solid var(--ink);
}

.reviews-page-section .google-review-text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.reviews-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(36px, 5vw, 64px);
}

.reviews-proof-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 40px);
  background: #f7f4ec;
  border: 1px solid rgba(11, 12, 13, .09);
  border-radius: 20px;
}

.reviews-proof-card > span {
  display: block;
  margin-bottom: 34px;
  color: #9a7600;
  font-weight: 900;
}

.reviews-proof-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

.reviews-proof-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.reviews-work {
  color: #fff;
  background: var(--ink);
}

.reviews-work h2 {
  max-width: 920px;
  margin-top: 22px;
  color: #fff;
}

.reviews-gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr 1.15fr;
  gap: 16px;
  margin-top: clamp(36px, 5vw, 64px);
}

.reviews-gallery figure {
  min-width: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
}

.reviews-gallery figure:nth-child(even) {
  transform: translateY(30px);
}

.reviews-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 980px) {
  .reviews-hero-grid { grid-template-columns: 1fr; }
  .reviews-hero-visual { min-height: 520px; }
  .reviews-proof-grid { grid-template-columns: 1fr; }
  .reviews-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .reviews-hero { padding-top: 94px; }
  .reviews-hero h1 { font-size: clamp(2.5rem, 12vw, 3.45rem); line-height: 1.01; }
  .reviews-hero .lead { margin-top: 20px; }
  .reviews-hero-score { width: 100%; padding: 18px; }
  .reviews-hero-visual { min-height: 390px; }
  .reviews-visual-main { inset: 0 10% 5% 0; }
  .reviews-visual-detail { width: 52%; height: 34%; border-width: 5px; }
  .reviews-gallery { gap: 10px; }
  .reviews-gallery figure { border-radius: 12px; }
  .reviews-gallery figure:nth-child(even) { transform: translateY(14px); }
  .google-data-sources { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .google-reviews-shell[data-sync-state="syncing"] .google-sync-status::before { animation: none; }
  .reviews-gallery figure:nth-child(even) { transform: none; }
}
