/* ═══════════════════════════════════════════════════════════════
   QTSI — assets.css
   Styles for real asset integration:
   Founder stats · Cloud stats · Cyber bottom row · Vendor row ·
   Gallery tile enhancements · LinkedIn banners · Hero tagline
   Design by NEXORA (nexorayyc.io)
═══════════════════════════════════════════════════════════════ */

/* ── Hero tagline pill ───────────────────────────────────────── */
.hero-tagline {
  display: inline-flex;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-light) !important;
  border-color: var(--border-green) !important;
  background: rgba(93,185,55,.07) !important;
  margin-bottom: var(--sp-3);
}

/* ── Founder stats row ──────────────────────────────────────── */
.founder-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.founder-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.founder-stat-value {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  /* Gradient text padding fix */
  padding-bottom: 0.05em;
}

.founder-stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.founder-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-md);
  align-self: center;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .founder-stats { gap: var(--sp-5); padding: var(--sp-4) var(--sp-5); }
  .founder-stat-divider { display: none; }
}

/* ── Founder photo CSS — focus on face area from assets/2/3.png ─ */
.founder-photo {
  object-position: center 15%; /* shows face and upper body from the full poster */
}

/* ── Cloud stats row ─────────────────────────────────────────── */
.cloud-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-10);
  padding: var(--sp-8) var(--sp-8);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
}

.cloud-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cloud-stat-value {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  padding-bottom: 0.05em;
}

.cloud-stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.03em;
}

.cloud-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-md);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cloud-stats-row { gap: var(--sp-6); }
  .cloud-stat-divider { display: none; }
}

@media (max-width: 480px) {
  .cloud-stats-row { grid-template-columns: repeat(2, 1fr); display: grid; padding: var(--sp-5); gap: var(--sp-4); }
  .cloud-stat-item { align-items: flex-start; }
}

/* ── Cybersecurity bottom row ────────────────────────────────── */
.cyber-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

/* Stat callout — 67% */
.cyber-stat-callout {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-8);
  background: rgba(0,112,243,.06);
  border: 1px solid rgba(0,112,243,.18);
  border-radius: var(--r-xl);
  flex-wrap: wrap;
}

.cyber-stat-number {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
  padding-bottom: 0.05em;
}

.cyber-stat-body { flex: 1; min-width: 160px; }

.cyber-stat-text {
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.cyber-stat-source {
  font-size: 0.75rem;
  font-style: italic;
}

/* Compliance frameworks */
.cyber-frameworks {
  padding: var(--sp-6) var(--sp-7);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.cyber-frameworks-label {
  display: block;
  margin-bottom: var(--sp-4);
}

.cyber-framework-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

@media (max-width: 1024px) {
  .cyber-bottom-row { grid-template-columns: 1fr; }
  .cyber-stat-callout { flex-wrap: nowrap; }
}

@media (max-width: 600px) {
  .cyber-stat-callout { flex-direction: column; align-items: flex-start; }
}

/* ── Vendor partner row ──────────────────────────────────────── */
.proc-vendor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

.proc-vendor-name {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  transition: background 200ms, color 200ms, border-color 200ms;
  white-space: nowrap;
}

.proc-vendor-name:hover {
  background: rgba(0,112,243,.08);
  border-color: var(--border-blue);
  color: var(--blue-light);
}

/* ── Gallery enhancements — tag on tiles ────────────────────── */
.gallery-tile-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(0,112,243,.25);
  border: 1px solid rgba(0,112,243,.4);
  color: var(--blue-light);
  margin-bottom: 4px;
  display: block;
}

/* Overlay now holds both tag and caption */
.gallery-tile-overlay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* Ensure loaded images show immediately */
.gallery-tile-inner > img.gallery-img {
  opacity: 1;
}

/* Hide placeholder content when real img is present */
.gallery-tile-inner:has(> img.gallery-img) .gallery-placeholder-content {
  display: none;
}

/* Show overlay on hover for tiles with real images */
.gallery-tile-inner:has(> img.gallery-img) .gallery-tile-overlay {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 250ms var(--ease-expo), transform 250ms var(--ease-expo);
}

.gallery-tile-inner:has(> img.gallery-img):hover .gallery-tile-overlay {
  opacity: 1;
  transform: none;
}

/* ── LinkedIn banner preview ─────────────────────────────────── */
.li-banner-preview {
  width: calc(100% + var(--sp-7) + var(--sp-7));
  margin-inline: calc(-1 * var(--sp-7));
  margin-top: calc(-1 * var(--sp-8));
  margin-bottom: var(--sp-5);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  /* Header ratio matches the regenerated full-bleed banners (3:1). At 3:1 the
     QTSI banner (2172×724 = exactly 3:1) fills the header edge-to-edge with no
     bars and no crop. Both cards share this class → identical header height. */
  aspect-ratio: 3 / 1;
  /* Dark backdrop = the banners' own near-black background, so any residual
     margin blends invisibly — no overlay on the artwork. */
  background: #05060a;
  flex-shrink: 0;
}

.li-banner-preview img {
  width: 100%;
  height: 100%;
  /* LinkedIn-style cover header: fill the area, centred. With a 3:1 banner in
     a 3:1 box this is a 1:1 fit (no crop). object-position centre keeps the
     artwork centred for any banner that isn't an exact 3:1. */
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Adjust card to account for negative margin */
.li-card {
  overflow: hidden;
}

/* ── OG image meta hint (comment only — no CSS needed) ───────── */
/* Add to <head>:
   <meta property="og:image" content="https://qtsi.ca/assets/1/1.png" />
*/
