/* ═══════════════════════════════════════════════════════════════
   MAKE MY DAY — "Kvällens körschema"
   Mörkt, cinematiskt. Kall spotlight (frost) mot varm scen (ember).
   Display: Playfair Display · Brödtext: Inter · Cue-etiketter: DM Mono
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Färg */
  --ink:        #08080b;   /* scensvart */
  --ink-soft:   #101015;   /* alt-panel */
  --bone:       #f3efe8;   /* varm benvit text */
  --muted:      rgba(243, 239, 232, .58);
  --faint:      rgba(243, 239, 232, .40);
  --line:       rgba(243, 239, 232, .12);
  --frost:      #b9e3ff;   /* kall spotlight – brand */
  --frost-soft: rgba(185, 227, 255, .14);
  --ember:      #eba152;   /* varmt scenljus */
  --ember-soft: rgba(235, 161, 82, .16);
  --glass:      rgba(255, 255, 255, .045);
  --glass-2:    rgba(255, 255, 255, .07);

  /* Typografi */
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --display:    'Playfair Display', Georgia, serif;
  --mono:       'DM Mono', ui-monospace, 'SF Mono', monospace;

  /* Mått */
  --container:  1240px;
  --radius:     4px;
  --radius-lg:  10px;
  --ease:       cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  color: var(--bone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
::selection { background: var(--frost); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Cue-etikett (mono "körschema-rubrik") ──────────────────── */
.cue {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ember);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
}
.cue::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--ember);
  opacity: .7;
}

/* ── Rubriker ────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.04; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.15; }

/* ═══ KNAPPAR ════════════════════════════════════════════════ */
.btn {
  --bg: var(--frost);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .04em;
  font-weight: 500;
  padding: .95rem 1.7rem;
  border-radius: 100px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px -10px var(--frost);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--glass);
  border-color: var(--frost);
  box-shadow: none;
  color: var(--frost);
}
.btn-sm { padding: .65rem 1.25rem; font-size: .76rem; }

/* ═══ HEADER ═════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 8, 11, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  height: 84px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 30px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.site-nav a {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--muted);
  position: relative;
  transition: color .25s;
}
.site-nav ul li:not(.nav-cta-item) a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--frost);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.site-nav ul li:not(.nav-cta-item) a:hover { color: var(--bone); }
.site-nav ul li:not(.nav-cta-item) a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta { display: flex; gap: .75rem; }
.nav-cta-item, .nav-close { display: none; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
}
.burger span {
  width: 18px; height: 1.5px;
  background: var(--bone);
  transition: transform .3s, opacity .3s;
}

/* ═══ HERO ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vh, 6rem);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 70% 10%, transparent 0%, rgba(8,8,11,.35) 55%, rgba(8,8,11,.9) 100%),
    linear-gradient(to top, var(--ink) 4%, rgba(8,8,11,.6) 38%, rgba(8,8,11,.15) 70%);
}
.hero-inner { position: relative; }
.hero-title {
  font-size: clamp(2.8rem, 1.6rem + 6.5vw, 7rem);
  font-weight: 900;
  max-width: 16ch;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 40px rgba(0,0,0,.5);
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--frost);
}
.hero-lead {
  max-width: 56ch;
  color: rgba(243, 239, 232, .82);
  font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll {
  position: absolute;
  bottom: 1.75rem; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 3px; height: 8px;
  border-radius: 100px;
  background: var(--frost);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(-4px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ═══ SEKTIONER ══════════════════════════════════════════════ */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); scroll-margin-top: 84px; }
.section-alt { background: var(--ink-soft); }

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-lead { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; max-width: 52ch; }

/* Scroll-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Pelare ──────────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.pillar {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.pillar::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 48px; height: 2px;
  background: var(--ember);
}
.pillar h3 { margin-bottom: .85rem; }
.pillar p { color: var(--muted); }

/* ── Split text+media ────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split-reversed .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8);
}
.split-media::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: inherit;
  pointer-events: none;
}
.split-media img, .split-media video {
  display: block;
  width: 100%; height: auto;
  min-height: 500px;
  object-fit: contain;
}
.split-media video {
  height: 100%;
  object-fit: cover;
}
.split-text h2 { margin-bottom: 1.3rem; }
.split-text p { color: var(--muted); margin-bottom: 1.1rem; }
.split-text p strong { color: var(--bone); font-weight: 600; }
.split-text .btn { margin-top: 1rem; }

/* ── Tjänster / körschema ───────────────────────────────────── */
.acts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  row-gap: clamp(2.5rem, 4vw, 3.5rem);
}
.act { position: relative; }
.act-media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.act-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.45) brightness(.85);
  transition: transform .8s var(--ease), filter .6s var(--ease);
}
.act:hover .act-media img { transform: scale(1.04); filter: grayscale(0) brightness(1); }
.act-body { padding: 1.25rem 0 0; }
.act-body h3 { margin-bottom: .5rem; }
.act-body p { color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ═══ KONTAKT ════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.contact-intro h2 { margin-bottom: 1rem; max-width: 14ch; }

.hosts {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.host {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.host:hover { border-color: var(--frost-soft); background: var(--glass-2); }
.host-name {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: .35rem;
}
.host a { color: var(--bone); transition: color .25s; width: fit-content; }
.host a:hover { color: var(--frost); }

/* ── Formulär ────────────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  backdrop-filter: blur(6px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field label {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .5rem;
}
.field .optional { color: var(--faint); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--bone);
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  transition: border-color .25s, background .25s, box-shadow .25s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--frost);
  background: rgba(0,0,0,.4);
  box-shadow: 0 0 0 3px var(--frost-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }

.cf-status {
  font-size: .9rem;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.cf-status:empty { display: none; }

/* Spinner-knapp */
.cf-submit { width: 100%; margin-top: .5rem; }
.cf-submit-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(8,8,11,.35);
  border-top-color: var(--ink);
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
.cf-submit.cf-loading .cf-submit-label { opacity: .55; }
.cf-submit.cf-loading .cf-submit-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ FOOTER ═════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem) 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 3rem;
}
.footer-logo-img { width: 84px; height: auto; margin-bottom: 1.2rem; }
.footer-col p { color: var(--muted); max-width: 32ch; }
.footer-heading {
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 1.1rem;
}
.footer-col address a, .footer-col ul a {
  color: var(--muted);
  line-height: 1.9;
  transition: color .25s;
}
.footer-col address a:hover, .footer-col ul a:hover { color: var(--frost); }
.footer-col ul { list-style: none; }
.footer-copy {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--faint);
}

/* ═══ MOBIL ══════════════════════════════════════════════════ */
@media (max-width: 940px) {
  .acts { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillar { padding-block: 1.75rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-reversed .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-cta { display: none; }
  .burger { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 340px);
    background: var(--ink-soft);
    border-left: 1px solid var(--line);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform .5s var(--ease);
    z-index: 120;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.5rem; width: 100%; }
  .site-nav a { font-size: 1rem; }
  .nav-cta-item { margin-top: 1rem; width: 100%; }
  .nav-cta-item .btn { width: 100%; }
  .nav-close {
    display: flex;
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    color: var(--bone); cursor: pointer;
  }
  .nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity .4s, visibility .4s;
    z-index: 110;
  }
  .nav-overlay.is-visible { opacity: 1; visibility: visible; }
}

@media (max-width: 560px) {
  .acts { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

/* ═══ TILLGÄNGLIGHET ════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-bg img { animation: none; transform: none; }
}
