/* ==========================================================================
   Company Profile & Corporate Credentials (Bento Grid Section)
   - Streamlined Compact Bento Grid for 1-Screen Fit
   ========================================================================== */

.credentials-section {
  position: relative;
  background-color: var(--primary-bg, #0E1420);
  padding: 80px 0 40px;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
  min-height: calc(var(--vh, 1vh) * 100);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credentials-container {
  max-width: var(--container-max-width, 1320px);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Header */
.credentials-header {
  margin-bottom: 20px;
}

.credentials-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-gold, #D8A84E);
  margin-bottom: 6px;
}

.credentials-title {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  color: var(--text-main, #D8CFC3);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.credentials-subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim, rgba(230, 230, 240, 0.65));
  max-width: 680px;
  margin: 0;
}

/* Bento Grid */
.credentials-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: stretch;
}

/* Base Bento Card */
.bento-card {
  background: var(--surface-color, #0A0F1A);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm, 6px);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.bento-card:hover {
  border-color: rgba(216, 168, 78, 0.35);
  background: rgba(16, 24, 40, 0.95);
}

.bento-card-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(216, 168, 78, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

/* Top Row: Card 1 (Entity Legal) & Card 2 (Hubs) */
.bento-card-entity {
  grid-column: span 7;
}

.bento-card-hubs {
  grid-column: span 5;
}

/* Bottom Row: Card 3 (Bank), Card 4 (Fields), Card 5 (Contact & Dossier) */
.bento-card-bank {
  grid-column: span 4;
}

.bento-card-fields {
  grid-column: span 4;
}

.bento-card-contact {
  grid-column: span 4;
}

/* Card Header inside Bento */
.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(216, 168, 78, 0.12);
  border: 1px solid rgba(216, 168, 78, 0.25);
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold, #D8A84E);
}

.bento-icon-wrapper {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold, #D8A84E);
  font-size: 13px;
}

/* Entity Details */
.entity-main-title {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin: 0 0 2px;
}

.entity-sub {
  font-size: 11.5px;
  color: var(--text-dim, rgba(230, 230, 240, 0.65));
  margin-bottom: 12px;
}

.legal-grid-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  flex: 1;
}

.legal-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.legal-item-label {
  font-size: 8.5px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-gold, #D8A84E);
  display: block;
  margin-bottom: 2px;
}

.legal-item-val {
  font-size: 11px;
  font-weight: 600;
  color: #FFFFFF;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  word-break: break-word;
}

/* Hubs List */
.hubs-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  justify-content: space-between;
}

.hub-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 7px 10px;
  flex: 1;
}

.hub-bullet {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(216, 168, 78, 0.1);
  color: var(--accent-gold, #D8A84E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

.hub-info h4 {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 1px;
}

.hub-info p {
  font-size: 11px;
  color: var(--text-dim, rgba(230, 230, 240, 0.65));
  margin: 0;
  line-height: 1.35;
}

.hub-info .workshop-tags {
  font-size: 9px;
  color: var(--accent-gold, #D8A84E);
  margin-top: 2px;
  display: block;
}

/* Bank Accounts & Partners */
.bank-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.bank-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 5px 9px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bank-account-item:hover {
  border-color: rgba(216, 168, 78, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.bank-acc-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bank-acc-name {
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.bank-acc-type {
  font-size: 8.5px;
  color: var(--accent-gold, #D8A84E);
  background: rgba(216, 168, 78, 0.1);
  border: 1px solid rgba(216, 168, 78, 0.2);
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.bank-acc-number {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.bank-holder-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-dim, rgba(230, 230, 240, 0.75));
  margin-bottom: 8px;
  padding: 4px 8px;
  background: rgba(216, 168, 78, 0.07);
  border: 1px dashed rgba(216, 168, 78, 0.25);
  border-radius: 5px;
}

.bank-holder-box i {
  color: var(--accent-gold, #D8A84E);
  font-size: 11px;
}

.bank-holder-box strong {
  color: #FFFFFF;
}

.bank-compliance-note {
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--text-dim, rgba(230, 230, 240, 0.65));
  margin: 0;
  border-left: 2px solid var(--accent-gold, #D8A84E);
  padding-left: 8px;
}

/* Business Fields */
.fields-tag-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.field-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10.5px;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.field-tag i {
  color: var(--accent-gold, #D8A84E);
  font-size: 8.5px;
  flex-shrink: 0;
}

/* Contact & Action Card */
.contact-dossier-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.contact-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.contact-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-meta-item:hover {
  color: var(--accent-gold, #D8A84E);
}

.contact-meta-item i {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(216, 168, 78, 0.1);
  color: var(--accent-gold, #D8A84E);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.btn-dossier-action {
  width: 100%;
  background: var(--accent-gold, #D8A84E);
  color: #0E1420;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-dossier-action:hover {
  background: #E5B869;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE & HEIGHT BREAKPOINTS FOR LAPTOPS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 992px) and (max-height: 880px) {
  .credentials-section {
    padding: 48px 0 16px;
  }


  .credentials-header {
    margin-bottom: 10px;
  }

  .credentials-label {
    font-size: 9px;
    margin-bottom: 3px;
  }

  .credentials-title {
    font-size: clamp(20px, 2.2vw, 28px);
    margin-bottom: 2px;
  }

  .credentials-subtitle {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .credentials-bento-grid {
    gap: 9px;
    /* Cap row heights so 2 rows fit within remaining viewport space */
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .bento-card {
    padding: 12px 14px;
    overflow: hidden;
  }

  .bento-card-header {
    margin-bottom: 7px;
  }

  .bento-badge {
    font-size: 8.5px;
    padding: 2px 7px;
  }

  .entity-main-title {
    font-size: 15px;
    margin-bottom: 1px;
  }

  .entity-sub {
    font-size: 10.5px;
    margin-bottom: 7px;
  }

  .legal-grid-specs {
    gap: 4px;
  }

  .legal-item {
    padding: 4px 8px;
  }

  .legal-item-label {
    font-size: 7.5px;
  }

  .legal-item-val {
    font-size: 9.5px;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  }

  .hubs-list {
    gap: 4px;
  }

  .hub-item {
    padding: 4px 8px;
    flex: unset;
  }

  .hub-info h4 {
    font-size: 11px;
  }

  .hub-info p {
    font-size: 9.5px;
    line-height: 1.3;
  }

  .bank-accounts-list {
    gap: 3px;
    margin-bottom: 5px;
  }

  .bank-account-item {
    padding: 3px 7px;
  }

  .bank-acc-name,
  .bank-acc-number {
    font-size: 10.5px;
  }

  .bank-holder-box {
    padding: 3px 6px;
    font-size: 9px;
    margin-bottom: 5px;
  }

  .bank-compliance-note {
    font-size: 8.5px;
  }

  .fields-tag-list {
    gap: 4px;
  }

  .field-tag {
    padding: 3px 6px;
    font-size: 9px;
  }

  .contact-meta-list {
    gap: 5px;
    margin-bottom: 7px;
  }

  .contact-meta-item {
    font-size: 10px;
  }

  .contact-meta-item i {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .btn-dossier-action {
    padding: 7px 10px;
    font-size: 9px;
  }
}

/* Ultra-compact laptop viewports (≤720px height) */
@media (min-width: 992px) and (max-height: 720px) {
  .credentials-section {
    padding: 38px 0 10px;
  }

  .credentials-header {
    margin-bottom: 7px;
  }

  .credentials-title {
    font-size: 20px;
  }

  .bento-card {
    padding: 9px 12px;
  }

  .bento-card-header {
    margin-bottom: 5px;
  }

  .hub-info .workshop-tags {
    display: none;
  }
}

@media (max-width: 1100px) {
  .bento-card-entity {
    grid-column: span 12;
  }
  .bento-card-hubs {
    grid-column: span 12;
  }
  .bento-card-bank {
    grid-column: span 6;
  }
  .bento-card-fields {
    grid-column: span 6;
  }
  .bento-card-contact {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .credentials-section {
    padding: 60px 0 80px;
  }
  .bento-card {
    padding: 20px 16px;
  }
  .bento-card-bank,
  .bento-card-fields,
  .bento-card-contact {
    grid-column: span 12;
  }
  .legal-grid-specs {
    grid-template-columns: 1fr;
  }
  .btn-dossier-action {
    height: 48px;
    font-size: 14px;
  }
}
