/* =========================================================
   FE/LA – "Delad scen"
   Färger och typsnitt samlade här uppe, ändra dem på ett ställe.
   ========================================================= */
:root {
  --lila: #5e17eb;        /* huvudfärg: knappar, kort, hero-bakgrund */
  --lila-ljus: #b79bff;   /* små rubriker, hover på länkar */
  --bg: #2f2e2c;          /* sidans bakgrund */
  --bg-band: #262523;     /* mörkare band (Event, Case, fält) */
  --bg-footer: #1f1e1d;
  --text: #fff;
  --text-dim: rgba(255, 255, 255, .75);
  --text-faint: rgba(255, 255, 255, .6);
  --line: rgba(255, 255, 255, .12);
  --max: 1400px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Archivo, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lila-ljus); }
img { display: block; }
input, textarea, button { font-family: inherit; }

/* ---------- Gemensamt ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 110px; padding-bottom: 110px; }
.band { background: var(--bg-band); }
.stack { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
h1 { font-stretch: 115%; font-size: clamp(44px, 5.6vw, 88px); line-height: 1.02; text-wrap: balance; }
h2 { font-stretch: 115%; font-size: clamp(34px, 4vw, 58px); line-height: 1.04; }
h3 { font-stretch: 110%; font-size: 22px; letter-spacing: 0; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--lila-ljus); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head p { font-size: 16px; line-height: 1.6; color: var(--text-dim); max-width: 420px; }
.section-head .stack p { max-width: none; }

.grid { display: grid; gap: 20px; }

/* ---------- Knappar ---------- */
.btn { display: inline-block; border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; border: 0; }
.btn-primary { background: var(--lila); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.1); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .4); padding: 14px 24px; font-size: 15px; }
.btn-lg { padding: 18px 30px; font-size: 15px; }
.btn-ghost.btn-lg { padding: 17px 28px; }
.btn-block { display: block; width: 100%; padding: 16px; font-size: 15px; text-align: center; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sidhuvud ---------- */
.topbar { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.topbar-inner { padding-top: 20px; padding-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 32px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.topbar-cta { display: flex; gap: 18px; align-items: center; font-size: 14px; font-weight: 600; }
.phone { color: var(--text-dim); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); min-height: min(86vh, 800px); }
.hero-text { padding: clamp(48px, 7vw, 110px) clamp(20px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.lead { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 460px; }
.facts { display: flex; gap: 36px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14px; }
.fact-label { color: var(--text-faint); }
.fact-value { font-weight: 700; margin-top: 3px; }
/* Den "delade scenen": lila sned kant bakom bilden */
.hero-image { position: relative; min-height: 420px; background: var(--lila); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.hero-image img { position: absolute; inset: 0 0 0 14px; width: calc(100% - 14px); height: 100%; object-fit: cover; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- Event ---------- */
.grid-events { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.event-card { background: var(--bg-band); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.event-card img { width: 100%; height: 320px; object-fit: cover; }
.event-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; }
.event-body p { font-size: 15px; line-height: 1.55; color: var(--text-dim); }

/* ---------- Utrustning ---------- */
.grid-gear { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.gear-card { background: var(--lila); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 190px; }
.gear-card h3 { font-stretch: 112%; font-size: 26px; margin-top: auto; }
.gear-card p { font-size: 16px; line-height: 1.55; }
.slash { width: 10px; height: 24px; background: #fff; transform: skewX(-25deg); }

/* ---------- Case ---------- */
.case { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); min-height: 620px; }
.case-images { position: relative; min-height: 420px; overflow: hidden; }
.case-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.case-slide.is-active { opacity: 1; }
.case-slide img, .case-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-text { padding: clamp(40px, 6vw, 90px) clamp(20px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.case-text h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; }
.case-lead { font-size: 21px; line-height: 1.45; font-weight: 600; }
.case-body { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .8); text-wrap: pretty; max-width: 520px; }
.case-controls { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.round { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; flex-shrink: 0; color: #fff; }
.round-ghost { background: none; border: 1.5px solid rgba(255, 255, 255, .35); }
.round-ghost:hover { background: var(--lila); border-color: var(--lila); }
.round-primary { background: var(--lila); border: 0; }
.dots { display: flex; gap: 8px; margin-left: 6px; }
.dot { height: 8px; width: 8px; border-radius: 999px; background: rgba(255, 255, 255, .3); border: 0; cursor: pointer; transition: all .2s; }
.dot.is-active { width: 28px; background: var(--lila); }
.case-count { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--text-faint); }

/* ---------- Om mig ---------- */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-img { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.about .stack p { font-size: 16px; line-height: 1.6; color: var(--text-dim); }

/* ---------- Omdömen ---------- */
.grid-quotes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.quote-card { background: var(--bg-band); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.quote-card .stars { color: var(--lila-ljus); letter-spacing: .2em; font-size: 15px; min-height: 18px; }
.quote-card blockquote { font-size: 18px; line-height: 1.55; font-weight: 500; flex: 1; }
.quote-card figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote-card figcaption span { color: var(--text-faint); }

/* ---------- Så funkar det ---------- */
.steps-title { margin-bottom: 44px; }
.grid-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 36px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step-num { display: flex; align-items: center; gap: 14px; }
.step-num span { width: 50px; height: 50px; border-radius: 50%; background: var(--lila); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.step-num i { flex: 1; height: 1px; background: rgba(255, 255, 255, .18); }
.step p { font-size: 16px; line-height: 1.55; color: var(--text-dim); }

/* ---------- Kontakt ---------- */
.contact-wrap { padding-bottom: 110px; }
.band .event-card, .band .quote-card { background: var(--bg); }
.contact { background: var(--lila); border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px; }
.contact-text { display: flex; flex-direction: column; gap: 20px; }
.contact-text h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.06; }
.contact-text p { font-size: 17px; line-height: 1.6; }
.contact-details { display: flex; flex-direction: column; gap: 6px; font-size: 18px; font-weight: 700; margin-top: auto; }
.contact-details a:hover { color: #fff; text-decoration: underline; }
.contact-form, .contact-thanks { background: var(--bg); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.contact-thanks { font-size: 18px; line-height: 1.6; font-weight: 600; justify-content: center; }
.contact-thanks[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid input, .form-grid textarea { background: var(--bg-band); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 15px 16px; font-size: 15px; color: #fff; outline: none; min-width: 0; }
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--lila-ljus); }
.form-grid input.is-invalid, .form-grid textarea.is-invalid { border-color: #ff8a8a; }
.form-error { color: #ff8a8a; font-size: 14px; margin: 0; }
.form-error[hidden], .contact-form[hidden] { display: none; }
.contact-form button[disabled] { opacity: .6; cursor: default; }
.form-grid textarea { grid-column: span 2; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, .5); }

/* ---------- Sidfot ---------- */
.footer { background: var(--bg-footer); }
.footer-inner { padding-top: 44px; padding-bottom: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .7); }
.footer-logo { height: 58px; width: auto; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-direction: column; gap: 56px; }
.partner-row { display: flex; flex-direction: column; gap: 24px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.logo-row img { width: auto; filter: brightness(0) invert(1); opacity: .8; }
.logo-row a:hover img { opacity: 1; }
.proof { font-size: 16px; color: var(--text-dim); margin: -12px 0 28px; }
.proof strong { color: #fff; font-weight: 700; }
@media (max-width: 640px) { .logo-row { gap: 32px; } .partners { gap: 40px; } }

/* ---------- Mobil & surfplatta: hero-bilden blir bakgrund bakom texten ---------- */
@media (max-width: 919px) {
  .hero { position: relative; display: block; min-height: 0; overflow: hidden; }
  .hero-image { position: absolute; inset: 0; min-height: 0; clip-path: none; background: none; }
  .hero-image img { inset: 0; width: 100%; clip-path: none; }
  .hero-image::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(47, 46, 44, .2) 0%, rgba(47, 46, 44, .55) 40%, rgba(47, 46, 44, .9) 75%, var(--bg) 100%); }
  .hero-text { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 48px; gap: 24px; }
  .hero-text h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
  .hero-text .lead { color: rgba(255, 255, 255, .9); }
  .hero-text::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--lila); }
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .topbar-inner { padding-top: 14px; padding-bottom: 12px; row-gap: 12px; }
  .logo img { height: 30px; }
  .topbar-cta .btn { display: none; }
  .phone { color: #fff; font-size: 15px; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 16px; font-size: 13px; padding-bottom: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .facts { gap: 22px; font-size: 13px; }
  /* Event-kort och omdömen: svep i sidled i stället för en lång stapel */
  .grid-events, .grid-quotes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
    scroll-padding-left: var(--gutter); scrollbar-width: none; }
  .grid-events::-webkit-scrollbar, .grid-quotes::-webkit-scrollbar { display: none; }
  .grid-events > *, .grid-quotes > * { flex: 0 0 84%; scroll-snap-align: start; }
  .event-card img { height: 220px; }
  .quote-card { padding: 24px; }
  .quote-card blockquote { font-size: 16px; }
  /* Lila kort: kompaktare */
  .gear-card { min-height: 0; padding: 22px 24px; gap: 8px; }
  .gear-card h3 { font-size: 22px; margin-top: 6px; }
  .gear-card p { font-size: 15px; }
  .section-head { margin-bottom: 28px; }
  /* Kontakt: mindre luft runt formuläret */
  .contact { padding: 28px 20px; gap: 28px; border-radius: 22px; }
  .contact-form { padding: 18px; }
  .contact-wrap { padding-bottom: 72px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid textarea { grid-column: auto; }
}
/* Radbrytningar i case-texterna (&#10; i data-text) */
.case-body { white-space: pre-line; }

/* Tältcaset: fyra bilder som tonar över i varandra (15 s per varv, ca 3,75 s per bild) */
.fade-stack { position: absolute; inset: 0; }
.fade-stack img { position: absolute; inset: 0; opacity: 0; animation: fadeCycle 15s infinite; }
.fade-stack img:nth-child(1) { opacity: 1; animation-delay: -0.75s; }
.fade-stack img:nth-child(2) { animation-delay: 3s; }
.fade-stack img:nth-child(3) { animation-delay: 6.75s; }
.fade-stack img:nth-child(4) { animation-delay: 10.5s; }
@keyframes fadeCycle { 0% { opacity: 0; } 5% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fade-stack img { animation: none; } .fade-stack img:not(:first-child) { display: none; } }

/* South Ocean Festival: sex bilder, 3 s per bild (18 s per varv) */
.fade-stack.six img { animation: fadeCycle6 18s infinite; }
.fade-stack.six img:nth-child(1) { opacity: 1; animation-delay: -0.5s; }
.fade-stack.six img:nth-child(2) { animation-delay: 2.5s; }
.fade-stack.six img:nth-child(3) { animation-delay: 5.5s; }
.fade-stack.six img:nth-child(4) { animation-delay: 8.5s; }
.fade-stack.six img:nth-child(5) { animation-delay: 11.5s; }
.fade-stack.six img:nth-child(6) { animation-delay: 14.5s; }
@keyframes fadeCycle6 { 0% { opacity: 0; } 3% { opacity: 1; } 16.7% { opacity: 1; } 20% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fade-stack.six img { animation: none; } }
