/* ===========================================================================
 * STRIP HEADER
 *
 * The clickable banner that sits at the top of every accordion strip.
 * Contains a square image on the left and an h2 + description on the
 * right (at mobile width, the image stacks above the text). On tablet+
 * the layout becomes a 2-column grid; even-indexed strips flip via
 * `direction: rtl` so the image alternates sides.
 *
 * Does NOT own:
 *   - the expandable content below the header (css/strip-content.css)
 *   - footer-strip header overrides (css/strip-footer.css)
 *   - focus indicator on the header (css/a11y.css)
 * ===========================================================================
 */

.strip-header {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.strip-image {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem var(--page-pad);
}

.strip-image img {
  width: 140px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
}

.strip-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem var(--page-pad);
}

.strip-text h2 {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.strip-text p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(240, 240, 240, 0.6);
}

/* --- Tablet (768+) ---
 * Switch to a 2-column grid. Alternate-row RTL trick swaps the image/
 * text order on even strips without duplicating selectors. */
@media (min-width: 768px) {
  .strip-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    flex-direction: row;
  }

  .accordion-strip:nth-child(even) .strip-header {
    direction: rtl;
  }
  .accordion-strip:nth-child(even) .strip-header > * {
    direction: ltr;
  }

  .strip-image {
    min-height: 0;
  }
  .strip-image img {
    width: 180px;
  }

  .strip-text {
    padding: 1.25rem var(--page-pad);
    min-height: 0;
  }
  .strip-text h2 {
    font-size: 1.15rem;
  }
  .strip-text p {
    font-size: 0.8rem;
    max-width: 500px;
  }
}

/* --- Desktop (1024+) --- */
@media (min-width: 1024px) {
  .strip-text {
    padding: 1.5rem var(--page-pad);
  }
  .strip-text h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }
  .strip-text p {
    font-size: 0.85rem;
    line-height: 1.6;
  }
}
