/* ========================================
   HOME SECTION 3 — two service cards in real HTML text
   Both cards share the same grid so badges, titles, subtitles,
   lists and buttons line up across cards.
   ======================================== */

.svc-live {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.svc-live__grid {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.svc-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
  column-gap: 32px;
  padding: 36px;
  background: linear-gradient(145deg, #ffffff 0%, #f1f6ff 100%);
  border: 1px solid rgba(47, 86, 201, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 56px rgba(30, 57, 108, 0.1);
}

/* ---------- Copy column ---------- */
.svc-card__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.svc-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 13px;
  background: #eef3ff;
  border: 1px solid rgba(47, 86, 201, 0.14);
  border-radius: 999px;
  color: #2f56c9;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.svc-g-logo {
  background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.svc-card__title {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 1.9vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f1a2b;
}

.svc-card__subtitle {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #3d4a63;
}

.svc-card__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.svc-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #31415f;
}

.svc-card__list i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 1.05rem;
  color: #2f56c9;
}

.svc-card__btn {
  margin-top: auto; /* pins buttons to the same baseline in both cards */
  margin-right: 8px; /* keeps a clear gap from the visual */
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b6fe8 0%, #2f56c9 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(47, 86, 201, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svc-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(47, 86, 201, 0.34);
}

.svc-card__btn:focus-visible {
  outline: 3px solid rgba(47, 86, 201, 0.5);
  outline-offset: 3px;
}

/* ---------- Visual column ---------- */
.svc-card__visual {
  min-width: 0;
  display: flex;
}

.svc-card__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(15, 26, 43, 0.12);
}

/* ---------- Google Business Profile (Maps-style listing) ---------- */
.gbp {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e3e8f1;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(15, 26, 43, 0.12);
  overflow: hidden;
  font-family: Roboto, Arial, 'Inter', sans-serif;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #3c4043;
}

.gbp__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.28);
  font-size: 0.75rem;
  color: #202124;
}

.gbp__search span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gbp__search .fa-times {
  color: #5f6368;
}

.gbp__photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  height: 118px;
  overflow: hidden;
}

.gbp__photos img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  object-fit: cover;
}

.gbp__photos img:first-child {
  grid-row: 1 / span 2;
}

.gbp__photos img:nth-child(2) {
  object-position: 85% 30%;
}

.gbp__photos img:nth-child(3) {
  object-position: 10% 70%;
}

.gbp__info {
  padding: 10px 14px 8px;
}

.gbp__name {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 500;
  color: #202124;
}

.gbp__rating {
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #70757a;
}

.gbp__rating b {
  font-weight: 500;
  color: #3c4043;
}

.gbp__stars {
  color: #fbbc04;
  letter-spacing: 0.5px;
}

.gbp__meta {
  margin: 0;
  color: #70757a;
}

.gbp__open {
  color: #188038;
  font-weight: 500;
}

.gbp__actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 6px 8px 10px;
  list-style: none;
}

.gbp__actions li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  font-weight: 500;
  color: #1a73e8;
}

.gbp__actions i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dadce0;
  font-size: 0.75rem;
  color: #1a73e8;
}

.gbp__actions li:first-child i {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
}

.gbp__tabs {
  display: flex;
  justify-content: space-around;
  border-bottom: 1px solid #e8eaed;
  font-size: 0.66rem;
  font-weight: 500;
  color: #5f6368;
}

.gbp__tabs span {
  padding: 6px 2px 7px;
}

.gbp__tabs .is-active {
  color: #1a73e8;
  box-shadow: inset 0 -2px 0 #1a73e8;
}

.gbp__review {
  margin: 0;
  padding: 10px 14px 12px;
}

.gbp__review-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
}

.gbp__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.gbp__reviewer {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  font-style: normal;
  color: #202124;
}

.gbp__reviewer-meta {
  display: block;
  font-size: 0.62rem;
  color: #70757a;
}

.gbp__review-stars {
  margin: 0 0 3px;
  font-size: 0.64rem;
  color: #70757a;
}

.gbp__review-text {
  margin: 0;
  color: #3c4043;
}

.gbp__owner {
  margin: 8px 0 0;
  padding: 7px 10px;
  background: #f1f3f4;
  border-radius: 8px;
  font-size: 0.66rem;
  color: #3c4043;
}

.gbp__owner b {
  display: block;
  font-weight: 500;
  color: #202124;
}

/* ---------- Desktop alignment: reserve 2 lines for titles ---------- */
@media (min-width: 1241px) {
  .svc-card__title {
    min-height: calc(2 * 1.15em);
  }

  .svc-card__subtitle {
    min-height: calc(2 * 1.5em);
  }
}

/* ---------- Tablet: one card per row ---------- */
/* Cards stack sooner so each one stays wide enough */
@media (max-width: 1240px) {
  .svc-live__grid {
    grid-template-columns: 1fr;
    max-width: 860px;
  }

  .svc-card__title,
  .svc-card__subtitle {
    min-height: 0 !important;
  }
}

/* ---------- Phone: stack inside each card ---------- */
@media (max-width: 640px) {
  .svc-live__grid {
    padding: 0 12px;
    gap: 18px;
  }

  .svc-card {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .svc-card__visual {
    order: -1;
  }

  .gbp {
    max-width: 360px;
    margin: 0 auto;
  }

  .svc-card__photo {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .svc-card__btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }
}
