/* Sidspecifikt: startsidan, sidrubriker, Samarbeta, Press, eventsidor, säkerhetsinfo och 404. */

/* ---------- Startsidans hero: rundad panel med bild ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-inline: var(--inset); border-radius: var(--radius-lg);
  min-height: clamp(540px, calc(100svh - var(--header-h) - 24px), 860px);
  display: flex; align-items: flex-end;
  background: var(--hero-bg); color: var(--paper);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.1) 0%, rgba(24, 24, 28, 0.2) 40%, rgba(24, 24, 28, 0.85) 100%);
}
.hero__inner { width: 100%; padding: 20px clamp(18px, 3.5vw, 48px) clamp(22px, 4vw, 48px); }
.hero__title { font-size: clamp(3.5rem, 16vw, 8.5rem); font-weight: 700; letter-spacing: -0.055em; line-height: 0.9; margin-bottom: 18px; }
.hero .lead { max-width: 30ch; }
.hero .btn-row { margin-top: 22px; }
/* Videon tonas in ovanpå stillbilden när den väl spelar. */
.hero__video { opacity: 0; transition: opacity 0.8s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__toggle {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(24, 24, 28, 0.45); color: var(--paper); cursor: pointer; transition: background 0.2s;
}
.hero__toggle:hover { background: rgba(24, 24, 28, 0.7); }
.hero__toggle:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.hero__toggle svg { width: 18px; height: 18px; fill: currentColor; }
.hero__toggle[aria-pressed="true"] .hero__icon-pause, .hero__toggle[aria-pressed="false"] .hero__icon-play { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: hero-settle 2.6s var(--ease) both; }
  .hero__inner { animation: rise 1s var(--ease) both; }
}
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Startsidan: festivaler, intro, om oss, vägar vidare ---------- */
.festivals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.festivals__label { margin-bottom: 14px; color: var(--muted); }
.festival {
  position: relative; display: grid; gap: 10px; height: 100%;
  padding: 6px 6px 14px; border-radius: var(--radius); background: var(--card);
  text-decoration: none; transition: background-color 0.25s var(--ease);
}
.festival:hover { background: var(--card-hover); }
.festival__media { display: block; aspect-ratio: 1.91 / 1; overflow: hidden; border-radius: var(--radius-sm); }
.festival__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.festival:hover .festival__media img { transform: scale(1.06); }
.festival__body { display: grid; gap: 2px; padding-inline: 8px; padding-right: 32px; }
.festival__name { font-size: clamp(0.9375rem, 2.2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.festival__meta { font-size: 0.8125rem; color: var(--muted); }
.festival__arrow { position: absolute; right: 14px; bottom: 14px; font-size: 1.125rem; line-height: 1; transition: transform 0.25s var(--ease); }
.festival:hover .festival__arrow { transform: translate(2px, -2px); }

.intro-text { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }

.feature-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
@media (min-width: 900px) { .feature-img--tall { aspect-ratio: 4 / 5; } }

.paths { display: grid; gap: 10px; }
@media (min-width: 760px) { .paths { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.paths--single { grid-template-columns: 1fr !important; }
.path {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 240px;
  padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.path h3 { font-size: clamp(1.625rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 8px; }
.path p { color: var(--muted); transition: color 0.3s var(--ease); max-width: 40ch; }
.path:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.path:hover p { color: var(--muted-on-ink); }
.path:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Sidrubrik på undersidor ---------- */
.page-hero { padding-block: clamp(40px, 8vw, 112px) clamp(32px, 5vw, 64px); }
.page-hero .label { display: block; margin-bottom: 18px; }
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { margin-top: 24px; max-width: 40ch; }
.page-hero--wide h1 { max-width: none; }

/* ---------- Kort i rutnät (tjänster, skäl, presskit) ---------- */
.card-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.info-card { display: grid; align-content: start; gap: 10px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--card); }
.info-card h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.info-card p { color: var(--muted); }
.info-card .label { color: var(--muted); }

.steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { display: flex; align-items: baseline; gap: 14px; padding: 18px 20px; border: 1px solid var(--line-on-ink); border-radius: var(--radius); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; counter-increment: step; }
@media (min-width: 900px) { .steps li { flex-direction: column; gap: 28px; min-height: 140px; } }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; color: var(--muted-on-ink); }

.contact-card { display: grid; gap: 20px; align-items: center; padding: 6px; border-radius: var(--radius); background: var(--card); }
.contact-card img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.contact-card__body { display: grid; gap: 8px; justify-items: start; padding: 0 14px 18px; }
.contact-card__body h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.04em; }
.contact-card__body .label { color: var(--muted); }
.contact-cards { display: grid; gap: 12px; }
@media (min-width: 1100px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) {
  .contact-card { grid-template-columns: 220px 1fr; gap: 28px; }
  .contact-card__body { padding: 14px 14px 14px 0; }
}

.download { display: grid; gap: 10px; align-content: start; padding: 6px 6px 16px; border-radius: var(--radius); background: var(--card); }
.download__preview { display: grid; place-items: center; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-sm); background: var(--paper); }
.download__preview--ink { background: var(--ink); }
.download__preview img { width: 100%; height: 100%; object-fit: cover; }
.download__preview--logo img { width: 52%; height: auto; object-fit: contain; }
.download__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-inline: 10px; }
.download__body span { font-weight: 500; }

/* ---------- Eventsida ---------- */
.event__head { padding-block: clamp(28px, 6vw, 72px) clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.event__head h1 { font-size: clamp(2.75rem, 8vw, 7rem); line-height: 0.9; letter-spacing: -0.055em; }
.event__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.event__place { font-family: var(--mono); color: var(--muted); }
.link-back { justify-self: start; text-decoration: none; color: var(--muted); }
.link-back:hover { color: var(--ink); }
.event__media img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.event__body { padding-block: clamp(36px, 6vw, 72px) var(--section); }
.event__aside { display: grid; gap: 24px; align-content: start; }
@media (min-width: 900px) { .event__aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.event__content { display: grid; gap: 44px; max-width: 760px; }
.event__content h2 { font-size: var(--fs-label); font-family: var(--mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; margin-bottom: 14px; }
.event__content .lead { font-size: clamp(1.25rem, 2vw, 1.625rem); }
.event__status {
  display: inline-flex; align-self: start; justify-self: start; padding: 8px 14px; border-radius: 999px; background: var(--card);
  font-family: var(--mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}

.facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }

.timetable { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timetable li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.timetable time { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.artists { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }

/* ---------- Säkerhetsinfo ---------- */
.info-blocks { display: grid; gap: 10px; }
@media (min-width: 900px) { .info-blocks { grid-template-columns: repeat(3, 1fr); } }
.info-block { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--card); }
.info-block h3 { font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 14px; }
.info-block ul { margin: 0; padding-left: 1.1em; }
.info-block li { margin-bottom: 8px; }
.callout { display: grid; gap: 8px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.callout strong { font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: -0.04em; line-height: 1; }
.map-img { width: 100%; max-width: 820px; border-radius: var(--radius); }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; align-content: center; gap: 24px; padding-block: var(--section); }
.not-found__code { font-size: clamp(6rem, 24vw, 18rem); font-weight: 700; letter-spacing: -0.07em; line-height: 0.8; }
