/* ==========================================================================
   ValderTech — template gallery (/templates)

   Part of the ValderTech site, so it uses the brand tokens from styles.css.
   The demo sites it links to carry their own styling instead.
   ========================================================================== */

.tg-intro {
  max-width: 62ch;
  margin: 0 0 30px;
  color: var(--vt-ink);
  font-size: var(--fs-lede);
}

.tg-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.tg-card {
  display: flex;
  flex-direction: column;
  background: var(--vt-white);
  border: 1px solid var(--vt-line);
  border-radius: var(--vt-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--vt-shadow-sm);
  transition: transform 0.18s var(--vt-ease), box-shadow 0.18s var(--vt-ease),
    border-color 0.18s var(--vt-ease);
}

.tg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--vt-shadow-lg);
  border-color: var(--vt-blue);
  color: inherit;
}

/* A stand-in screenshot built from the demo's own palette — no binary assets
   to keep in sync, and it updates automatically if a palette changes. */
.tg-card__shot {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  aspect-ratio: 16 / 10;
  padding: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tg-a), var(--tg-b));
}

.tg-card__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--vt-ease);
}

.tg-card:hover .tg-card__img {
  transform: scale(1.04);
}

/* Keeps the business name legible over any photo. */
.tg-card__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(12, 16, 26, 0.05) 30%,
    rgba(12, 16, 26, 0.72) 100%
  );
}

.tg-card__chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.9);
}

.tg-card__chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vt-line);
}

/* The style name sits in the body now, over white; the screenshot carries
   the whole image area on its own. */
.tg-card__name {
  font-family: var(--vt-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--vt-navy);
  margin-bottom: 6px;
}

.tg-card__shot::after {
  content: none;
}

.tg-card__img {
  object-position: top;
}

.tg-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.tg-card__niche {
  font-family: var(--vt-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--vt-slate);
  margin-bottom: 8px;
}

.tg-card__tagline {
  color: var(--vt-ink);
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.tg-card__more {
  margin-top: auto;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--vt-blue-deep);
}

.tg-after {
  max-width: 62ch;
  margin: 30px 0 0;
  font-size: var(--fs-lede);
  color: var(--vt-ink);
}

.tg-after--muted {
  margin-top: 14px;
  font-size: var(--fs-body);
  color: var(--vt-slate);
}

.tg-note {
  margin-top: 22px;
}
