/* ==========================================================================
   BETSY MATTHEWS — THE MOMENTUM METHOD™
   Professional Credentials & Trust System
   Variants: Full (About), Compact (Home, Coaching), Light (Membership), Inline (Assessment)
   Strictly adheres to brand tokens: Berry (#BD125B, #98124B), Blush (#F8EDF2),
   Ink (#171416), Taupe (#51474D), Muted (#62575E), Border (#EADCE2).
   ========================================================================== */

:root {
  --cred-berry: #BD125B;
  --cred-berry-deep: #98124B;
  --cred-berry-kicker: #A11A53;
  --cred-rose: #C42F70;
  --cred-blush: #F8EDF2;
  --cred-near-white: #FCF9FA;
  --cred-white: #FFFFFF;
  --cred-ink: #171416;
  --cred-taupe: #51474D;
  --cred-muted: #62575E;
  --cred-border: #EADCE2;
  --cred-font-display: 'Cormorant Garamond', Georgia, serif;
  --cred-font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cred-font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   SHARED SECTION CONTAINER
   -------------------------------------------------------------------------- */
.credentials-section {
  position: relative;
  width: 100%;
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(64px, 8vw, 96px);
  background-color: var(--cred-near-white);
  border-top: 1px solid var(--cred-border);
  border-bottom: 1px solid var(--cred-border);
  color: var(--cred-ink);
  box-sizing: border-box;
}

.credentials-section--white {
  background-color: var(--cred-white);
}

.credentials-section--blush {
  background-color: var(--cred-blush);
}

.credentials-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .credentials-container {
    width: min(1180px, calc(100% - 32px));
  }
}

/* --------------------------------------------------------------------------
   HEADER & EDITORIAL ACCENT
   -------------------------------------------------------------------------- */
.credentials-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(36px, 5vw, 54px);
}

.credentials-eyebrow {
  display: inline-block;
  font-family: var(--cred-font-ui);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cred-berry-kicker);
  margin-bottom: 14px;
}

.credentials-heading {
  font-family: var(--cred-font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--cred-ink);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.credentials-heading em {
  font-style: italic;
  color: var(--cred-berry);
}

/* Subtle Berry Accent Stroke */
.credentials-accent {
  display: block;
  width: 44px;
  height: 2px;
  background-color: var(--cred-berry);
  margin: 18px auto 26px;
  border-radius: 2px;
}

.credentials-statement {
  font-family: var(--cred-font-ui);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cred-berry-deep);
  max-width: 720px;
  margin: 0 auto 16px;
}

.credentials-body {
  font-family: var(--cred-font-body);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--cred-taupe);
  max-width: 680px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   CREDENTIAL CARDS GRID (VARIANT: FULL)
   -------------------------------------------------------------------------- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  box-sizing: border-box;
}

.credential-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--cred-white);
  border: 1px solid var(--cred-border);
  border-radius: 6px;
  padding: 30px 20px 26px;
  box-sizing: border-box;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 100%;
}

.credential-card:hover {
  border-color: #d8c2cc;
  box-shadow: 0 8px 24px rgba(23, 20, 22, 0.04);
}

/* Badge Slot: Strictly maintains layout regardless of image vs text */
.credential-badge-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  height: 52px;
  width: 100%;
  margin-bottom: 18px;
}

.credential-badge-img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Editorial Text Badge Treatment (Used when official vector/raster asset is pending) */
.credential-badge-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  background-color: var(--cred-blush);
  border: 1px solid var(--cred-border);
  border-radius: 4px;
  box-sizing: border-box;
  white-space: nowrap;
  max-width: 100%;
}

.credential-badge-mark-org {
  font-family: var(--cred-font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cred-berry-kicker);
  white-space: nowrap;
}

.credential-badge-mark-sep {
  color: var(--cred-border);
  font-weight: 300;
  font-size: 11px;
  white-space: nowrap;
}

.credential-badge-mark-code {
  font-family: var(--cred-font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cred-ink);
  white-space: nowrap;
}

.credential-abbrev-heading {
  font-family: var(--cred-font-ui);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--cred-ink);
  margin: 0 0 8px;
}

.credential-title-desc {
  font-family: var(--cred-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--cred-taupe);
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.credential-org-sub {
  font-family: var(--cred-font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cred-muted);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   QUALIFICATIONS & SIGN-OFF HIERARCHY
   -------------------------------------------------------------------------- */
.credentials-qualifications {
  text-align: center;
  margin-top: clamp(38px, 5vw, 52px);
  padding-top: clamp(28px, 4vw, 38px);
  border-top: 1px solid var(--cred-border);
}

.credentials-qual-primary {
  font-family: var(--cred-font-ui);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--cred-ink);
  margin-bottom: 12px;
}

.credentials-qual-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--cred-font-body);
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--cred-muted);
  margin-bottom: 22px;
}

.credentials-qual-secondary span {
  display: inline-block;
}

.credentials-qual-dot {
  color: var(--cred-berry);
  opacity: 0.6;
  font-size: 12px;
}

.credentials-positioning {
  font-family: var(--cred-font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--cred-berry-deep);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   VARIANT: COMPACT (HOMEPAGE & COACHING)
   -------------------------------------------------------------------------- */
.credentials-compact {
  background-color: var(--cred-near-white);
  border-top: 1px solid var(--cred-border);
  border-bottom: 1px solid var(--cred-border);
  padding: clamp(48px, 6vw, 68px) 0;
}

.credentials-compact--card {
  background-color: var(--cred-white);
  border: 1px solid var(--cred-border);
  border-radius: 8px;
  padding: clamp(36px, 5vw, 54px) clamp(20px, 4vw, 44px);
  max-width: 980px;
  margin: 0 auto;
}

.credentials-compact-inner {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.credentials-compact-trustline {
  font-family: var(--cred-font-ui);
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--cred-berry-deep);
  margin: 14px auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.credentials-compact-trustline span {
  display: inline-block;
}

.credentials-compact-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 840px;
  margin: 0 auto;
}

.credentials-compact-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  background-color: var(--cred-white);
  border: 1px solid var(--cred-border);
  border-radius: 4px;
  transition: border-color 0.2s ease;
  min-height: 96px;
  box-sizing: border-box;
}

.credentials-compact-badge:hover {
  border-color: #d8c2cc;
}

.credentials-compact-badge .credential-badge-slot {
  min-height: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.credentials-compact-badge .credential-badge-img {
  max-height: 38px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.credentials-compact-badge .credential-badge-mark {
  padding: 3px 6px;
  gap: 4px;
}

.credentials-compact-badge .credential-badge-mark-org {
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.credentials-compact-badge .credential-badge-mark-sep {
  font-size: 9px;
}

.credentials-compact-badge .credential-badge-mark-code {
  font-size: 10.5px;
}

.credentials-compact-badge-title {
  font-family: var(--cred-font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--cred-muted);
  text-align: center;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.credentials-compact-supporting {
  font-family: var(--cred-font-body);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.6;
  color: var(--cred-taupe);
  max-width: 620px;
  margin: 24px auto 0;
}

.credentials-compact-positioning {
  font-family: var(--cred-font-display);
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  color: var(--cred-berry-deep);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   VARIANT: LIGHT / REASSURANCE (MEMBERSHIP & FOOTER)
   -------------------------------------------------------------------------- */
.credentials-light {
  text-align: center;
  padding: 26px 20px;
  background-color: var(--cred-white);
  border: 1px solid var(--cred-border);
  border-radius: 6px;
  max-width: 720px;
  margin: 32px auto 0;
}

.credentials-light-lead {
  font-family: var(--cred-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cred-berry-kicker);
  margin-bottom: 8px;
}

.credentials-light-trustline {
  font-family: var(--cred-font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--cred-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.credentials-light-positioning {
  font-family: var(--cred-font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--cred-berry-deep);
}

/* --------------------------------------------------------------------------
   VARIANT: INLINE (ASSESSMENT & MICRO-CONTEXTS)
   -------------------------------------------------------------------------- */
.credentials-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 4px;
  background-color: rgba(248, 237, 242, 0.45);
  border: 1px solid var(--cred-border);
  box-sizing: border-box;
}

.credentials-inline-lead {
  font-family: var(--cred-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cred-berry-kicker);
}

.credentials-inline-text {
  font-family: var(--cred-font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--cred-ink);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT & BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .credentials-compact-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 580px) {
  .credential-card {
    padding: 22px 14px 18px;
  }

  .credential-abbrev-heading {
    font-size: 16px;
  }

  .credential-title-desc {
    font-size: 13px;
  }

  .credentials-compact-trustline {
    font-size: 12.5px;
    gap: 4px 8px;
  }

  .credentials-compact-badge {
    padding: 12px 8px;
    min-height: 88px;
  }

  .credentials-compact-badge .credential-badge-slot {
    min-height: 38px;
    height: 38px;
    margin-bottom: 6px;
  }

  .credentials-compact-badge .credential-badge-img {
    max-height: 34px;
    max-width: 120px;
  }

  .credentials-compact-badge-code {
    font-size: 12px;
  }

  .credentials-compact-badge-org {
    font-size: 9.5px;
  }

  .credentials-compact-badge-title {
    font-size: 10.5px;
  }
}

@media (max-width: 390px) {
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .credential-card {
    padding: 16px 8px 14px;
  }

  .credential-badge-slot {
    min-height: 44px;
    height: 44px;
    margin-bottom: 12px;
  }

  .credential-badge-mark {
    padding: 4px 6px;
    gap: 4px;
  }

  .credential-badge-mark-org {
    font-size: 8.5px;
    letter-spacing: 0.05em;
  }

  .credential-badge-mark-code {
    font-size: 10.5px;
  }

  .credential-abbrev-heading {
    font-size: 14.5px;
    margin-bottom: 6px;
  }

  .credential-title-desc {
    font-size: 12px;
    line-height: 1.35;
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY & MOTION PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .credential-card,
  .credentials-compact-badge {
    transition: none !important;
  }
}
