/*
 * "stream" template: dark #1a1a1a with an orange accent, full-width photo hero and
 * four-column plan cards. Loaded only for websites whose template is "stream"
 * (see app/views/site/layout.php), so every other site keeps its current look.
 */

.theme-stream {
  /* Call-to-action buttons follow the site's brand colour (Admin > Websites > Primary colour). */
  --stream-cta: var(--brand-primary);
  --stream-cta-hover: color-mix(in srgb, var(--brand-primary) 86%, #fff);
  /* RGB triplet used by the cover-hero scrim; the octo theme overrides it. */
  --hero-scrim-rgb: 26, 26, 26;
}

/* ---------- Header ---------- */
.theme-stream .site-header {
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.theme-stream .site-header.is-scrolled {
  background: color-mix(in srgb, var(--site-bg) 94%, transparent);
  border-color: var(--site-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.theme-stream .site-header nav a:not(.site-button) {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 0;
  padding: 0.5rem 0.1rem;
  margin-inline: 0.8rem;
}
.theme-stream .site-header nav a:not(.site-button):hover {
  color: #fff !important;
}
.theme-stream .site-header nav a:not(.site-button) > span.absolute {
  left: 0;
  right: 0;
  bottom: -0.1rem;
  width: auto;
  height: 2px;
  border-radius: 0;
  transform: none;
  translate: none;
}
.theme-stream .site-header .site-button--primary {
  background: var(--stream-cta);
  color: var(--brand-contrast, #fff);
  box-shadow: none;
  min-height: 2.35rem;
  padding: 0.35rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.theme-stream .site-header .site-button--primary:hover {
  background: var(--stream-cta-hover);
  box-shadow: none;
}

/* ---------- Buttons, headings, cards ---------- */
.theme-stream .site-button {
  min-height: 2.9rem;
  padding: 0.6rem 1.5rem;
  gap: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.theme-stream .site-button--compact {
  text-transform: none;
}
.theme-stream .site-button__arrow {
  display: none;
}
.theme-stream .site-button--ghost,
.theme-stream .site-button--outline {
  background: var(--site-surface-2);
  border-color: transparent;
  color: #fff;
}
.theme-stream .site-button--ghost:hover,
.theme-stream .site-button--outline:hover {
  background: #323232;
}
.theme-stream .site-shell h1,
.theme-stream .site-shell h2,
.theme-stream .site-shell h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.theme-stream .site-kicker:before {
  display: none;
}
.theme-stream .site-kicker {
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--brand-primary) !important;
}
.theme-stream .site-card {
  background: var(--site-surface);
  border: 0;
  border-radius: 0.5rem;
}
.theme-stream .site-card:hover {
  transform: none;
  box-shadow: none;
  background: var(--brand-primary);
}
.theme-stream .site-card:hover :is(h3, h4, p, li, span, a) {
  color: #fff;
}
.theme-stream .site-card:hover svg {
  color: #fff;
}

/* Inner-page hero band (centered / split layouts): flat dark, no stage photo. */
.theme-stream .site-hero-band {
  background-image: none;
  background-color: var(--site-bg);
}
.theme-stream .site-hero-band:after {
  display: none;
}
.theme-stream .site-hero-band .animate-ping {
  display: none;
}
.theme-stream .site-hero-band span.inline-flex {
  border: 0;
  background: transparent;
  padding-inline: 0;
  color: var(--brand-primary);
  letter-spacing: 0.08em;
}

/* ---------- Cover hero (layout: cover) ---------- */
.hero-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(92vh, 60rem);
  /* The sticky header is 4.5rem tall and transparent; the photo slides under it. */
  margin-top: -4.5rem;
  background-color: var(--site-bg);
  background-image:
    linear-gradient(90deg, rgba(var(--hero-scrim-rgb, 26, 26, 26), 0.88) 0%, rgba(var(--hero-scrim-rgb, 26, 26, 26), 0.6) 50%, rgba(var(--hero-scrim-rgb, 26, 26, 26), 0.3) 100%),
    linear-gradient(180deg, rgba(var(--hero-scrim-rgb, 26, 26, 26), 0.6) 0%, rgba(var(--hero-scrim-rgb, 26, 26, 26), 0) 26%, rgba(var(--hero-scrim-rgb, 26, 26, 26), 0) 72%, var(--site-bg) 100%),
    var(--hero-cover-image);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-cover__inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 8.5rem 2rem 6rem;
}
.hero-cover__eyebrow {
  margin: 0 0 1.1rem;
  color: var(--brand-primary);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero-cover__title {
  margin: 0;
  max-width: 11.5em;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}
.hero-cover__sub {
  margin: 1.75rem 0 0;
  max-width: 40rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}
.hero-cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-cover__bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero-cover__bullets li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-cover__bullets li > span {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
}
.hero-cover__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-cover__social a {
  display: inline-grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 999px;
  background: #2b2b2b;
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.hero-cover__social a:hover {
  background: var(--brand-primary);
  transform: translateY(-2px);
}
@media (max-width: 767px) {
  .hero-cover {
    min-height: 0;
  }
  .hero-cover__inner {
    padding: 7.5rem 1.25rem 4rem;
  }
  .hero-cover__title {
    font-size: clamp(2.1rem, 9.5vw, 3rem);
  }
  .hero-cover__sub {
    font-size: 0.82rem;
  }
  .hero-cover__social a {
    width: 3rem;
    height: 3rem;
  }
}

/* ---------- Shared heading pieces (plans, library slider, reviews) ---------- */
.stream-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .stream-section {
    padding: 6rem 0;
  }
}
.stream-section__head {
  max-width: 56rem;
  margin: 0 auto;
  padding-inline: 1rem;
  text-align: center;
}
.stream-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem 0.95rem;
  border: 1px solid rgba(232, 87, 26, 0.45);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 45%, transparent);
  border-radius: 999px;
  background: rgba(232, 87, 26, 0.1);
  background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
  color: #ffb089;
  color: color-mix(in srgb, var(--brand-primary) 55%, #fff);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stream-pill span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: currentColor;
}
.stream-title {
  margin: 1.25rem 0 0;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  color: #fff;
}
.stream-accent {
  background: linear-gradient(90deg, #ff9a3c 0%, var(--brand-primary) 55%, #d6336c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stream-sub {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--site-muted);
}

/* ---------- Plan tabs + cards (PACKAGES section) ---------- */
.plan-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 2.5rem auto 0;
  padding: 0.35rem;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.plan-tabs__tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #bdbdbd;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.plan-tabs__tab:hover {
  color: #fff;
}
.plan-tabs__tab:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
.plan-tabs__tab[aria-selected="true"] {
  color: #ffb089;
  color: color-mix(in srgb, var(--brand-primary) 55%, #fff);
  border-color: rgba(232, 87, 26, 0.55);
  border-color: color-mix(in srgb, var(--brand-primary) 55%, transparent);
  background: rgba(232, 87, 26, 0.14);
  background: color-mix(in srgb, var(--brand-primary) 14%, transparent);
}
@media (max-width: 520px) {
  .plan-tabs__tab {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
  }
}
.plan-panel[hidden] {
  display: none;
}
.plan-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr);
}
.plan-grid--1 {
  grid-template-columns: minmax(0, 26rem);
  justify-content: center;
}
@media (min-width: 700px) {
  .plan-grid--2,
  .plan-grid--3,
  .plan-grid--4,
  .plan-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .plan-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plan-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .plan-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), var(--site-surface);
  color: #fff;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}
.plan-card--featured {
  border-color: rgba(232, 87, 26, 0.6);
  border-color: color-mix(in srgb, var(--brand-primary) 60%, transparent);
  box-shadow: 0 0 44px -8px rgba(232, 87, 26, 0.45);
  box-shadow: 0 0 44px -8px color-mix(in srgb, var(--brand-primary) 45%, transparent);
}
.plan-card--featured:hover {
  border-color: var(--brand-primary);
}
.plan-card__head {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.plan-card__badge {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), #f97316);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan-card__badge--alt {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #1a1a1a;
}
.plan-card__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
}
.plan-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0.8rem 0 0;
  line-height: 1;
}
.plan-card__price span {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3.4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.plan-card__price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--site-muted);
}
.plan-card__sub {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--site-muted);
}
.plan-card__tagline {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.plan-card__features {
  display: grid;
  gap: 0.8rem;
  margin: 1.35rem 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}
.plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.plan-card__tick {
  flex: none;
  margin-top: 0.15em;
  color: #ff9a5c;
  color: color-mix(in srgb, var(--brand-primary) 70%, #fff);
}
.plan-card__cta {
  display: block;
  margin-top: auto;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-card__cta:hover {
  background: rgba(255, 255, 255, 0.16);
}
.plan-card__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.plan-card--featured .plan-card__cta {
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand-primary), #f97316);
  box-shadow: 0 12px 28px -10px rgba(232, 87, 26, 0.7);
}
.plan-card--featured .plan-card__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ---------- Auto-scrolling library slider + review cards ---------- */
.media-marquee {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.media-marquee__track {
  display: flex;
  width: max-content;
  animation: media-marquee var(--marquee-duration, 45s) linear infinite;
  will-change: transform;
}
.media-marquee__half {
  display: flex;
  flex: none;
  min-width: 100vw;
  justify-content: space-around;
}
.media-marquee:hover .media-marquee__track,
.media-marquee:focus-within .media-marquee__track {
  animation-play-state: paused;
}
@keyframes media-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.media-tile {
  position: relative;
  flex: none;
  width: 10.5rem;
  aspect-ratio: 2 / 3;
  margin: 0 1.25rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: var(--site-surface-2);
}
@media (min-width: 768px) {
  .media-tile {
    width: 12rem;
  }
}
.media-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-tile__label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 1rem 1rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.media-tile__label::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 3px;
  margin-bottom: 0.5rem;
  border-radius: 2px;
  background: var(--stream-cta, #e8571a);
}
.media-tile__art {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 1rem;
}
.media-tile__art span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.review-card {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 20rem;
  margin: 0 1.25rem 0 0;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), var(--site-surface);
  white-space: normal;
}
.review-card__stars {
  display: flex;
  gap: 0.15rem;
  color: rgba(255, 255, 255, 0.2);
}
.review-card__stars .is-on {
  color: #f5b301;
}
.review-card__stars svg {
  fill: currentColor;
}
.review-card blockquote {
  margin: 0;
}
.review-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.review-card figcaption {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.review-card figcaption span {
  font-weight: 400;
  color: var(--site-muted);
}
.review-static {
  margin-top: 3rem;
  padding-inline: 1rem;
}
.review-static__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.review-static .review-card {
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .media-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .media-marquee__track {
    animation: none;
  }
}
