/* =========================================================
   CredShields — Brand Guidelines (page-specific)
   Shared styles → page-components.css + penetration-testing.css
   ========================================================= */

/* ── LOGO DOWNLOAD CARDS ────────────────────────────────── */

.brand-logos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.brand-logo-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 1px solid var(--border);
}

.brand-logo-card-dark {
  background: #0a0f0c;
}

.brand-logo-card-light {
  background: #f2f2f2;
  border-color: #e0e0e0;
}

.brand-logo-card img {
  max-width: 220px;
  max-height: 80px;
  width: 100%;
  object-fit: contain;
}

.brand-logo-dl-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms;
  color: rgba(255, 255, 255, 0.7);
}

.brand-logo-dl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.brand-logo-card-light .brand-logo-dl-btn {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.14);
  color: rgba(0, 0, 0, 0.5);
}

.brand-logo-card-light .brand-logo-dl-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #111111;
}

/* ── COLOR SWATCHES ─────────────────────────────────────── */

.brand-colors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.brand-color-swatch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 100px;
  max-width: 160px;
  cursor: pointer;
}

.brand-color-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.brand-color-block {
  width: 100%;
  height: 72px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  transition: transform 120ms, box-shadow 120ms;
}

.brand-color-swatch:hover .brand-color-block {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.brand-color-hex {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--fg-2);
  letter-spacing: 0.03em;
}

/* ── TYPOGRAPHY TABLE ───────────────────────────────────── */

.brand-typo-list {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.brand-typo-row {
  display: grid;
  grid-template-columns: 1fr 72px 72px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

.brand-typo-row:last-child {
  border-bottom: none;
}

.brand-typo-preview {
  color: var(--fg);
  font-family: var(--font-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.brand-typo-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-typo-size {
  font-size: 12px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  text-align: right;
}

/* ── LOGO DOWNLOAD MODAL ────────────────────────────────── */

.brand-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.brand-modal-overlay.open {
  display: flex;
}

.brand-modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.brand-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--fg-3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: var(--r-sm);
  transition: color 150ms;
}

.brand-modal-close-btn:hover {
  color: var(--fg);
}

.brand-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.brand-modal-subtitle {
  font-size: 14px;
  color: var(--fg-3);
  margin-bottom: 24px;
}

.brand-modal-formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.brand-modal-fmt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 150ms;
  color: var(--fg);
}

.brand-modal-fmt-btn:hover {
  border-color: var(--em-color);
}

.brand-modal-fmt-btn span {
  font-size: 15px;
  font-weight: 700;
}

.brand-modal-fmt-btn small {
  font-size: 11px;
  color: var(--fg-3);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 700px) {
  .brand-logos-grid {
    grid-template-columns: 1fr;
  }

  .brand-typo-row {
    grid-template-columns: 1fr 56px 56px;
    padding: 16px 18px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .brand-color-swatch {
    flex: 1 1 80px;
  }
}
