/* === FILE: assets/css/pages/psi-testing-center.css ===
   Page-specific styles for /psi-testing-center.
   Inherits the shared internal-page template (page-hero,
   page-content, page-sidebar, page-info-callout) from
   demo-flight.css, then layers on a PSI partner badge above
   the main content, a 2-col FAA test-types grid, and a small
   booking-actions row.
   ============================================================ */

@import url('demo-flight.css');

/* ─── HERO OVERRIDES (interior photo needs to read through) ──── */
/* The default page-hero overlay is tuned for high-contrast outdoor
   shots — it crushes the testing-room interior (cream walls, dark
   wood) into a flat gray. Lighten the overlay everywhere outside
   the text column, and reframe the image on the testing stations
   instead of the wall above them. */
.page-hero-bg {
  object-position: center 62%;
}

.page-hero-overlay {
  background: linear-gradient(
    100deg,
    rgba(17, 24, 39, .78) 0%,
    rgba(17, 24, 39, .55) 32%,
    rgba(17, 24, 39, .22) 62%,
    rgba(17, 24, 39, .05) 100%
  );
}

/* Floor-of-frame readability — short bottom darken so the right
   side image stays visible but the page-hero edge doesn't blow out. */
.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(17, 24, 39, .35) 0%,
    rgba(17, 24, 39, 0) 100%
  );
  pointer-events: none;
}

/* ─── PARTNER BADGE (PSI True Talent logo above intro) ───────── */
.partner-badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.125rem 1.375rem;
  margin: 0 0 2.5rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
}

.partner-badge-img {
  flex-shrink: 0;
  width: clamp(110px, 18vw, 160px);
  height: auto;
  display: block;
}

.partner-badge-text {
  flex: 1 1 auto;
  min-width: 0;
}

.partner-badge-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 .25rem;
}

.partner-badge-text p {
  margin: 0 !important;
  font-size: .9375rem !important;
  line-height: 1.5 !important;
  color: var(--color-secondary);
}

@media (max-width: 540px) {
  .partner-badge {
    flex-direction: column;
    align-items: flex-start;
    gap: .875rem;
    padding: 1rem 1.125rem;
  }
}

/* ─── BOOKING ACTIONS ROW (phone + URL chips) ────────────────── */
.psi-booking {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin: 1rem 0 2rem;
}

@media (min-width: 600px) {
  .psi-booking { grid-template-columns: repeat(2, 1fr); }
}

.psi-booking-card {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  padding: 1.125rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  border-bottom: 1px solid var(--color-border) !important;  /* override page-content a underline */
  transition:
    transform 200ms var(--ease),
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.psi-booking-card:hover,
.psi-booking-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--color-accent);
  box-shadow: 0 6px 20px -12px rgba(17, 24, 39, .18);
}

.psi-booking-label {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.psi-booking-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -.005em;
  word-break: break-word;
}

/* ─── FAA TESTS GRID (2-col on wider screens) ────────────────── */
.faa-tests {
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .625rem 1rem;
}

@media (min-width: 560px) {
  .faa-tests { grid-template-columns: repeat(2, 1fr); }
}

.faa-tests li {
  position: relative;
  padding: .625rem .875rem .625rem 2.25rem;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--color-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.faa-tests li::before {
  content: '';
  position: absolute;
  left: .875rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: rgba(232, 151, 26, .12);
  border: 2px solid var(--color-accent);
  box-sizing: border-box;
}

.faa-tests li::after {
  content: '';
  position: absolute;
  left: 1.18rem;
  top: 50%;
  width: 4px;
  height: 7px;
  margin-top: -5px;
  border: solid var(--color-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
