/* Scadea theme: single-partnership.css
   Individual Partnership detail page.
   Loaded only on is_singular('partnership') via scadea_enqueue_assets(). */

/* ============================================================
   HERO
   ============================================================ */
.ps-hero {
  position: relative;
  min-height: clamp(320px, 45vw, 500px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--white);
}

/* Background image — absolute fill */
.ps-hero__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ps-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Dark overlay so text is always readable */
.ps-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(14, 29, 63, 0.82) 0%,
    rgba(18, 35, 72, 0.90) 60%,
    rgba(18, 35, 72, 0.96) 100%
  );
}

/* Dot grid — layered above overlay for texture */
.ps-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Content wrapper — sits above all layers */
.ps-hero__inner {
  position: relative;
  z-index: 3;
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* When no hero image is set, fall back to navy gradient */
.ps-hero:not(:has(.ps-hero__bg-wrap)) {
  background: linear-gradient(135deg, #0E1D3F 0%, #122348 55%, #1A2E5C 100%);
}

/* ---- Breadcrumb ---- */
.ps-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-family: var(--f-acc);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.ps-breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.ps-breadcrumb a:hover,
.ps-breadcrumb a:focus {
  color: var(--white);
}

.ps-breadcrumb span[aria-hidden="true"] {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

.ps-breadcrumb span[aria-current="page"] {
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Identity block (logo + title + tagline) ---- */
.ps-hero__identity {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

/* White pill container for the partner logo */
.ps-hero__logo-wrap {
  background: var(--white);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.ps-hero__logo {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

.ps-hero__text {
  flex: 1;
  min-width: 220px;
}

.ps-hero__title {
  font-family: var(--f-head);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 10px;
}

.ps-hero__tagline {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--orange);
  line-height: 1.4;
  margin: 0 0 14px;
}

.ps-hero__partner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-acc);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s;
}

.ps-hero__partner-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ps-hero__partner-link:hover,
.ps-hero__partner-link:focus {
  color: var(--white);
}

/* ============================================================
   CONTENT LAYOUT
   ============================================================ */
.ps-layout {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

/* Readable prose width, centered */
.ps-content {
  max-width: 720px;
  margin-inline: auto;
}

/* ============================================================
   CONTENT BLOCKS
   ============================================================ */
.ps-block {
  padding: 36px 0;
  border-bottom: 1px solid var(--hairline);
}

.ps-block:first-child {
  padding-top: 0;
}

.ps-block:last-of-type {
  border-bottom: 0;
}

.ps-block__label {
  display: block;
  font-family: var(--f-acc);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.ps-block p {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  color: var(--body);
  line-height: 1.75;
  margin: 0;
}

/* Highlighted block — Scadea's Value Add */
.ps-block--highlight {
  background: linear-gradient(135deg, var(--light-blue) 0%, #EEF8FD 100%);
  border: 1px solid rgba(0, 149, 218, 0.14);
  border-radius: 16px;
  padding: 28px 28px 28px;
  margin-block: 8px;
}

.ps-block--highlight .ps-block__label {
  color: var(--blue);
}

/* ============================================================
   USE CASES LIST
   ============================================================ */
.ps-use-cases {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ps-use-cases li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  color: var(--body);
  line-height: 1.65;
}

/* Orange bullet dot */
.ps-use-cases li::before {
  content: "";
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 8px;
}

/* ============================================================
   BACK LINK
   ============================================================ */
.ps-back-link {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.ps-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-acc);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ps-back-link a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.ps-back-link a:hover,
.ps-back-link a:focus {
  color: var(--blue-hover);
}

.ps-back-link a:hover svg,
.ps-back-link a:focus svg {
  transform: translateX(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .ps-hero {
    min-height: 280px;
  }

  .ps-hero__identity {
    flex-direction: column;
    gap: 16px;
  }

  .ps-hero__logo-wrap {
    min-width: auto;
    padding: 10px 16px;
  }

  .ps-hero__logo {
    max-height: 44px;
  }

  .ps-block--highlight {
    padding: 22px 18px;
  }

  .ps-content {
    max-width: 100%;
  }
}

@media (min-width: 641px) {
  .ps-hero__inner {
    gap: 32px;
  }
}
