/* ========== Base ========== */
:root {
  --bg: #0f1115;
  --surface: #171a21;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #8b5cf6;
  --border: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

/* ========== Layout ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

h1, h2, h3 { margin-top: 0; }

p { color: var(--muted); }

/* ========== Generic elements ========== */
.muted { color: rgba(148,163,184,0.9); }

.card {
  background: var(--surface);
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 16px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 22px;
  background: var(--accent);
  color: #0f1115;
  text-decoration: none;
  font-weight: 800;
  border-radius: 14px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* ========== Header / Nav (single source of truth) ========== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  position: relative; /* viktigt för dropdown på mobil */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 0;
  gap: 14px;
}

/* Brand */
.brand{
  color: var(--text);
  text-decoration:none;
  font-weight: 900;
  letter-spacing: .2px;
}
.brand img { height: 28px; display:block; }

/* Nav links */
.site-header a,
.site-header a:visited{
  color: var(--text);
  text-decoration: none;
}

.site-nav{
  display:flex;
  align-items:center;
  gap: 18px;
}

.site-nav a{
  font-weight: 600;
  opacity: .92;
}

.site-nav a:hover{ color: var(--accent); }

/* CTA in nav */
.site-nav .nav-cta{
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #0f1115;
  font-weight: 900;
  opacity: 1;
}

/* Burger toggle checkbox */
.nav-toggle{ display:none; }

/* Burger button */
.burger{
  display:none;              /* syns bara på mobil */
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  cursor: pointer;

  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap: 5px;
}

.burger span{
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}

/* Dropdown via details/summary */
.nav-details { position: relative; }
.nav-summary{
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  opacity: .92;
  padding: 10px 0;
}
.nav-summary::-webkit-details-marker{ display:none; }

/* Dropdown panel (desktop) */
.nav-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  z-index: 9999;
}

.nav-details[open] .nav-dropdown{ display:flex; }

.nav-dropdown a{
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.nav-dropdown a:first-child{ border-top: 0; }

.nav-dropdown a:hover{
  background: rgba(255,255,255,0.05);
  color: var(--accent);
}

/* Close dropdown when clicking outside is handled by browser for <details> */

/* ========== Intro Section ========== */
.page-intro {
  padding: 120px 0 100px 0;
}

.page-intro h1 { font-size: 42px; }

.page-intro p {
  font-size: 18px;
  max-width: 600px;
}

.page-intro .actions { margin-top: 32px; }

/* ========== Forms (premium look) ========== */
.form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.form-row { display: grid; gap: 8px; }

.form label {
  font-size: 0.95rem;
  color: rgba(241,245,249,0.9);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: #f1f5f9;
  outline: none;
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(148,163,184,0.8);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: rgba(139,92,246,0.55);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.18);
}

/* Gör date/select mer konsekventa i Safari */
.form input[type="date"],
.form select { min-height: 44px; }

/* CTA-knapp i formulär */
.form .btn,
.form button[type="submit"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 1rem;
}

/* Microtext */
.micro {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.form-alert{
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  color: #f1f5f9;
}

/* ========== Grid layout helper ========== */
.grid-2 {
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

/* ========== FAQ details ========== */
.faq {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.faq summary {
  cursor: pointer;
  color: rgba(241,245,249,0.95);
}

.faq p {
  margin: 10px 0 0;
  color: rgba(148,163,184,0.95);
}

/* ========== Gear logos (fixed + responsive) ========== */
.logo-grid{
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.logo-grid .logo-item{
  height: 72px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo-grid img{
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  max-width: 100%;
  opacity: 0.85;
  transform: none; /* viktigt: ingen scale som sabbar mobil */
  transition: opacity .2s ease, filter .2s ease;
}

.logo-grid img:hover{ opacity: 1; }

/* Pioneer -> vit */
.logo-grid img.pioneer{
  filter: grayscale(1) brightness(0) invert(1);
}

/* Rekordbox – lite lägre höjd istället för scale */
.logo-grid img.rekordbox{ max-height: 34px; }

/* Chauvet – ofta lite låg i filen */
.logo-grid img.chauvet{ max-height: 40px; }

/* ========== Footer ========== */
.site-footer,
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner { /* FIX: var ..footer-inner */
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

.footer-contact a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-top: 4px;
  transition: 0.2s ease;
}

.footer-contact a:hover { color: var(--text); }

/* ========== Mobile (single breakpoint) ========== */
@media (max-width: 900px){

  /* Global spacing på mobil */
  section{ padding: 52px 0; }

  .page-intro{
    padding: 64px 0 46px;
  }

  .page-intro h1{
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.2px;
    margin-bottom: 14px;
  }

  .page-intro p{ font-size: 16px; }

  .page-intro .actions{ margin-top: 22px; }

  .btn{
    padding: 12px 18px;
    border-radius: 14px;
  }

  /* Header brand icon */
  .brand img { height: 24px; }

  /* Burger visible */
  .burger{ display:flex; margin-left: auto; }

  /* Nav dropdown panel */
  .site-nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top: 100%;
    padding: 12px 0;
    background: rgba(15,17,21,0.98);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction:column;
    align-items:stretch;
    gap:0;
    z-index:9999;
  }

  /* Din HTML-ordning: input.nav-toggle + label.burger + nav.site-nav */
  .nav-toggle:checked + .burger + .site-nav{ display:flex; }

  .site-nav > a{
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    width:100%;
  }

  .site-nav .nav-cta{
    margin: 10px 24px 6px;
    text-align:center;
    border-top: none;
    width: auto;
    display: inline-block;
  }

  /* Details i mobilmenyn */
  .nav-details{ width:100%; }

  .nav-summary{
    display:block;
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    width:100%;
  }

  .nav-details .nav-dropdown{
    position: static;
    border:0;
    border-radius:0;
    box-shadow:none;
    margin:0;
    padding: 6px 0 10px;
  }

  .nav-dropdown a{
    padding: 10px 24px 10px 38px;
    border-top: 0;
    width:100%;
  }

  /* Logos: 2 kolumner på mobil */
  .logo-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .logo-grid .logo-item{ height: 60px; }

  .logo-grid img{ max-height: 40px; }

  .logo-grid img.rekordbox{ max-height: 30px; }

  /* Footer */
  .footer-inner{
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Extra small phones: 1 kolumn logos */
@media (max-width: 420px){
  .logo-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .logo-grid .logo-item{ height: 56px; }
}
/* =========================
   Footer – helt centrerad
========================= */

.footer-inner{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-contact{
  text-align: center;
}

.footer-contact a{
  display: block;
  margin-top: 6px;
}

/* ===== Recensioner ===== */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin: 24px 0;
}

.testimonial .stars {
  color: #fbbf24; /* guld */
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial blockquote {
  margin: 0 0 16px 0;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

.testimonial .author {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}
.testimonial:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  transition: 0.2s ease;
}
/* =========================
   HERO (mobile-first)
   Använder din premium-bild för mobil + desktop fallback
========================= */

.hero{
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;

  /* Mobile-first hero-bild */
  background: url('/images/dj-hero-mobile-premium.jpg') center/cover no-repeat;
}

/* Extra overlay i CSS (bra om du vill justera senare utan ny bild) */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0.55) 100%
  );
}

/* Innehåll ovanpå overlay */
.hero .container{
  position: relative;
  z-index: 2;
  padding-top: 90px; /* ger luft under sticky header */
  padding-bottom: 54px;
}

.hero h1{
  margin: 0 0 14px 0;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -0.3px;
  max-width: 18ch;
  color: var(--text);
  text-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

.hero p{
  margin: 0;
  font-size: 17px;
  max-width: 52ch;
  color: rgba(241,245,249,0.92);
  text-shadow: 0 10px 30px rgba(0,0,0,0.55);
}

.hero .actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;   /* viktigt */
}

/* Microtext – premium */
.hero .micro{
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(241,245,249,0.78);
  opacity: 0.9;
  letter-spacing: 0.2px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.55);
}
/* =========================
   HERO – iPad/mellanläge + bonus
========================= */

/* iPad / mellanstor skärm (portrait + vissa laptops) */
@media (min-width: 768px) and (max-width: 1100px){

  .hero{
    min-height: 72vh;
    background-position: center 30%;
  }

  .hero .container{
    padding-top: 110px; /* lite mer luft under sticky header på iPad */
    padding-bottom: 64px;
  }

  .hero h1{
    font-size: 46px;
    line-height: 1.12;
    max-width: 22ch;   /* lite bredare än mobilen för snygg radbrytning */
    text-wrap: balance; /* BONUS: snyggare radbrytning i moderna browsers */
  }

  .hero p{
    font-size: 18px;
    max-width: 62ch;
    text-wrap: balance; /* bonus även här */
  }

  .hero .actions{
    margin-top: 26px;
    gap: 14px;
  }
}

/* Större iPad / landscape (valfritt men brukar hjälpa) */
@media (min-width: 1101px) and (max-width: 1366px){
  .hero{
    min-height: 74vh;
    background-position: center 28%;
  }

  .hero h1{
    text-wrap: balance;
  }
}

/* Desktop: byt till bred hero-bild */
@media (min-width: 768px){
  .hero{
    min-height: 72vh;
    background: url('/images/dj-hero-desktop-premium.jpg') center/cover no-repeat;
  }

  .hero h1{
    font-size: 54px;
    max-width: 22ch;
  }

  .hero p{
    font-size: 18px;
  }
}

/* Små mobiler: lite tajtare */
@media (max-width: 420px){
  .hero{
    min-height: 76vh;
  }
  .hero h1{
    font-size: 34px;
  }
}

/* =========================
   iPad / mellanskärm – fixar “för utspridd” meny utan att ändra desktop-look
========================= */
/* =========================
   iPad (portrait + landscape) – tajtare header/meny
========================= */
@media (min-width: 768px) and (max-width: 1366px){

  .site-header .header-inner{
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .site-header .site-nav{
    gap: 12px;
  }

  .site-header .site-nav a{
    white-space: nowrap;
  }

  .site-header .site-nav .nav-cta{
    padding: 10px 12px;
  }
}

/* ========== Paket highlight ========== */

.card {
  position: relative;
}

.featured {
  border: 1px solid var(--accent);
  transform: scale(1.03);
}

.badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.small {
  font-size: 0.9rem;
}
/* featured kort (Bröllop) */
/* --- Kortlayout --- */

.grid.grid-3 {
  display: grid;
  gap: 28px;
  align-items: start;
  overflow: visible;
}

/* --- Kort --- */

.card {
  position: relative;
  background: #101722;
  border-radius: 16px;
  padding: 28px;
  min-height: 340px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* --- Featured kort (Bröllop) --- */

/* --- Grid för korten --- */

.grid.grid-3 {
  display: grid;
  gap: 28px;
  align-items: start;
  overflow: visible;
}

/* --- Grundkort --- */

.card {
  position: relative;
  background: #101722;
  border-radius: 16px;
  padding: 28px;
  min-height: 340px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* --- Featured kort (Bröllop) --- */

.grid.grid-3 {
  display: grid;
  gap: 20px;
  align-items: start;
  overflow: visible;
}

.card {
  position: relative;
  background: #101722;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.06);
}

.card.featured {
  transform: translateY(-12px);
  margin-bottom: -12px;
  z-index: 5;
  border: 2px solid #7c5cff;
}

.card.featured .badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: #7c5cff;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .grid.grid-3 {
    gap: 28px;
  }

  .card {
    min-height: 340px;
  }

  .card.featured {
    transform: translateY(-28px);
    margin-bottom: -28px;
  }
}

@media (max-width: 768px) {
  .card.featured {
    transform: translateY(-8px);
    margin-bottom: -8px;
  }
}

.spotify-embed {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.spotify-link {
  margin-top: 18px;
}

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.vibe-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  overflow: hidden;
}

.vibe-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.vibe-card h3,
.vibe-card p {
  padding: 0 16px;
}

.vibe-card p {
  padding-bottom: 18px;
}

@media (max-width: 800px) {
  .vibe-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .vibe-grid {
    grid-template-columns: 1fr;
  }
}

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.vibe-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .vibe-grid {
    grid-template-columns: 1fr;
  }
}