/* ==========================================================================
   SPTECH — Digital Building
   Depende de styles.css e course.css (hero, breadcrumb).
   ========================================================================== */

.facade { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.facade img { width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 46% 24px 24px 24px; box-shadow: var(--shadow); }
.facade::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -7%; bottom: -6%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 0 100% 0 0;
  background: var(--teal);
}
.facade::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -5%; top: -5%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
}
.address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.address__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; }
.address__ico svg { width: 22px; height: 22px; }
.address strong { display: block; color: var(--ink); font-family: var(--font-display); }
.address span { color: var(--muted); font-size: 0.92rem; }
.address .btn { margin-left: auto; }
@media (max-width: 520px) { .address .btn { width: 100%; margin-left: 0; } }

/* Valores do espaço */
.values2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value2 {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.value2:nth-child(1) { background: var(--pink); color: rgba(255, 255, 255, 0.88); }
.value2:nth-child(2) { background: var(--navy); color: rgba(255, 255, 255, 0.8); }
.value2 small { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yellow); }
.value2 h3 { margin-top: 10px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.03em; }
.value2 p { margin-top: 10px; font-size: 1.05rem; }
.value2::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -50px; bottom: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 760px) { .values2 { grid-template-columns: 1fr; } }

/* Galeria em mosaico */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-auto-flow: dense;
}
/* 8 fotos: 1 grande (2x2) + 1 alta (1x2) + 6 simples = 3 linhas completas */
.gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery li:nth-child(4) { grid-row: span 2; }
.shot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot__cap {
  position: absolute;
  left: 10px; bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery li:nth-child(4) { grid-row: span 1; }
  .gallery li:nth-child(8) { grid-column: span 2; }
}
@media (max-width: 480px) { .gallery { grid-auto-rows: 140px; } .shot__cap { font-size: 0.72rem; } }

/* Lightbox */
.lightbox {
  width: min(1100px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
}
.lightbox::backdrop { background: rgba(10, 14, 24, 0.85); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; background: #000; }
.lightbox figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-weight: 600; }
.lightbox figcaption span { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; }
.lb-btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  transform: translateY(-50%);
}
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev { left: 12px; }
.lb-prev svg { transform: rotate(180deg); }
.lb-next { right: 12px; }
.lb-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--navy); }
.lb-close svg { width: 20px; height: 20px; }

/* Localização */
.where { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 16px; align-items: stretch; }
.where__info { padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--bg-soft); }
.where__info h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.where__list { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.where__list li { display: flex; gap: 12px; color: var(--ink); }
.where__list svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--pink); }
.where__list small { display: block; color: var(--muted); }
.map {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(rgba(31, 43, 69, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(31, 43, 69, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    color-mix(in srgb, var(--teal) 8%, #fff);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: center;
}
.map__pin { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50% 50% 50% 0; background: var(--pink); color: #fff; transform: rotate(-45deg); box-shadow: 0 16px 30px -12px rgba(255, 9, 96, 0.6); }
.map__pin svg { width: 28px; height: 28px; transform: rotate(45deg); }
.map__load strong { font-family: var(--font-display); }
.map__load span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } }
