/* ===== Basvariabler (justera dessa för att flytta din textruta) ===== */
:root {
  --overlay-left: 10vw;      /* horisontell position */
  --overlay-bottom: 44vh;    /* vertikal position från nederkant */
  --overlay-max-width: 800px;
  --nav-height: 56px;       /* menyhöjd */
}

/* Reset och bas */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: #fff;
  line-height: 1.4;
  overflow-x: hidden;
}

/* ===== Bakgrundsvideo ===== */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* täck skärmen */
  object-position: center;
}

/* ===== Meny (desktop) ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(12px, 3vw, 28px);
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  z-index: 10;
}

.top-nav .brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.top-nav .nav-links {
  list-style: none;
  display: flex;
  gap: clamp(10px, 3vw, 24px);
  margin: 0; padding: 0;
}

.top-nav .nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.top-nav .nav-links a:hover,
.top-nav .brand:hover { text-decoration: underline; }

/* ===== Overlay-kort (flyttbart) ===== */
.overlay-card {
  position: fixed;
  left: var(--overlay-left);
  bottom: var(--overlay-bottom);
  max-width: var(--overlay-max-width);
  padding: clamp(12px, 2.2vw, 22px);
  border-radius: 14px;
  font-family: "Rouge Script", cursive;
  /*background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);*/
}

.overlay-card h1 {
  margin: 0 0 8px 0;
  font-size: clamp(20px, 3.2vw, 32px);
  line-height: 1.1;
}

.overlay-card p {
  margin: 0;
  font-size: 2.5vw;
}

/* Säkerhetsmarginal så overlay inte hamnar bakom menyn vid små höjder */
@media (max-height: 560px) {
  .overlay-card {
    bottom: calc(var(--overlay-bottom) + var(--nav-height));
  }
}

/* =================================================================== */
/* =================== MOBIL / PORTRAIT-LÄGE ========================= */
/* =================================================================== */
@media (orientation: portrait) {

  /* Nu när du har separat mobilvideo, täck skärmen även i portrait */
  .bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* din mobilvideo antas vara stående/klippt för portrait */
  }

  /* Flytta menyn till botten i mobil */
  .top-nav {
    top: auto;
    bottom: 0;
    height: var(--nav-height);
    background: rgba(0,0,0,0.92);
  }

  .top-nav .nav-links { gap: 16px; }

  /* Overlay ovanför bottmenyn och in från kanten */
  :root {
    --overlay-left: 6vw;
    --overlay-bottom: calc(6vh + var(--nav-height));
    --overlay-max-width: min(88vw, 520px);
  }

  .overlay-card h1 { font-size: clamp(20px, 5.2vw, 28px); }
  .overlay-card p  { font-size: clamp(15px, 4.2vw, 18px); }
}

/* Små skärmar i landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .top-nav {
    height: 48px;
    padding: 0 12px;
  }
  .overlay-card {
    padding: 12px 14px;
    border-radius: 12px;
  }
}