/* ===========================
   CampGate – Basvariabler
   =========================== */
:root {
  --primary: #0B6FFF;
  --primary-dark: #084fbf;
  --text: #0B2540;
  --muted: #6B7A8A;
  --bg: #ffffff;
  --accent: #EAF4FF;
  --radius: 10px;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --container: 900px;
  --spacing: 12px;
  --header-bg: var(--primary);
  --header-text: #ffffff;
  --header-hover: rgba(255, 255, 255, 0.15);
}

/* ===========================
   Grundlayout
   =========================== */
html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}

#header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: var(--header-bg);
  color: var(--header-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

#app {
  position: relative;
  z-index: 1;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--spacing);
}

main {
  flex: 1 0 auto;
}

/* ===========================
   TEST SECTION
   =========================== */



/* ===========================
   END TEST SECTION
   =========================== */

/* ===========================
   Rubriker
   =========================== */
h1,
h2,
h3,
h4 {
  color: var(--text);
  margin-top: 0;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.8rem;
  /* margin-top: 10px; */
}

h3 {
  font-size: 1.3rem;
  margin-top: 24px;
}

/* ===========================
   HERO
   =========================== */
.hero {
  padding: 40px 0;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 650px;
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
}

/* ===========================
   Knappar
   =========================== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  width: max-content;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

/* ===========================
   Sektioner
   =========================== */
section {
  margin-bottom: 10px;
  scroll-margin-top: 190px;
}

.features {
  display: grid;
  /* grid-template-columns: repeat(4, 1fr); */
  /* TODO: Ta bort denna rad om du vill ha responsiv grid */
  gap: 16px;
  margin-top: 24px;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.feature,
.price-item,
.info-box {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

/* ===========================
   Listor
   =========================== */
ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 6px;
  color: var(--muted);
}

/* ===========================
   Info-box (ägare)
   =========================== */
.info-box {
  background: var(--accent);
  border-left: 4px solid var(--primary);
}

/* ===========================
   Priser
   =========================== */
.price-list {
  display: grid;
  gap: 16px;
}

.price-item .price {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary);
}

/* ===========================
   CTA
   =========================== */
.cta-buttons {
  margin: 20px;
}

/* ===========================
   Responsivitet
   =========================== */
@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }

  .actions {
    flex-direction: column;
  }

  .price-list {
    grid-template-columns: 1fr;
  }

}

/* ===========================
   HEADER
   =========================== */

header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--header-bg);
  color: var(--header-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

header a {
  color: var(--header-text);
}

header a:hover {
  background: var(--header-hover);
  border-radius: 6px;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--spacing);
  display: flex;
  flex-direction: column;
  /* ← MENY UNDER LOGGA */
  gap: 12px;
  position: relative;
  z-index: 2;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  /* mellan språk och hamburgare */
}

/* ===========================
   TOP ROW (logo + language)
   =========================== */

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: auto;
  width: auto;
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
}


/* ===========================
   LANGUAGE SWITCH
   =========================== */

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: var(--primary);
  border: 1px solid transparent;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-btn.active {
  opacity: 50%;
  pointer-events: none;
}

.lang-btn:hover {
  filter: drop-shadow(0 0 4px var(--primary));
  transform: scale(1.25);
}

.flag {
  height: 20px;
  width: auto;
  display: block;
}

/* ===========================
   NAVIGATION (desktop)
   =========================== */

.vertical-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  /* ← centrerad meny */
  width: 100%;
}

.vertical-nav a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 4px;
  border-radius: 6px;
  transition: 0.2s ease;
}

.vertical-nav a:hover {
  background: var(--header-hover);
}

.modern-cta {
  background: #fff;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: 0.2s ease;
}

.modern-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* ===========================
   HAMBURGER ANIMATION
   =========================== */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  width: 30px;
  height: 24px;
  justify-content: center;
  position: relative;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s ease;
  transform-origin: center;
}

/* --- OPEN STATE --- */

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hamburger:hover span {
  opacity: 0.7;
}

/* ===========================
   MOBILE MENU
   =========================== */
/* MOBILMENY – vertikal layout */
.mobile-menu {
  display: flex;
  flex-direction: column;
  /* ⭐ gör menyn vertikal */
  gap: 16px;
  /* avstånd mellan länkar */
  padding: 20px;
  background: var(--header-bg);
  position: fixed;
  top: 100px;
  /* justera efter headerhöjd */
  left: 0;
  right: 0;
  z-index: 9999;
  border-bottom: 1px solid #eee;
}

/* Dölj menyn när hidden används */
.mobile-menu[hidden] {
  display: none !important;
}

/* När menyn är öppen */
.mobile-menu.show {
  display: flex !important;
}

/* Länkar i mobilmenyn */
.mobile-menu a {
  font-size: 18px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--accent);
  font-size: 1.15rem;
  border-radius: 6px;
}

.mobile-menu a:hover {
  background: var(--header-hover);
}

.mobile-menu .modern-cta {
  background: var(--white);
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.mobile-menu .modern-cta:hover {
  background: #f2f6ff;
}

.lang-switch-mobile {
  display: none;
}

/* ===========================
   RESPONSIVE BEHAVIOR
   =========================== */

@media (max-width: 500px) {
  .lang-switch {
    display: none;
  }

  .lang-switch-mobile {
    display: flex;
  }

  .section-card ul {
    padding-left: 0px !important;
  }
}

@media (max-width: 900px) {
  section {
    margin-bottom: 10px;
    scroll-margin-top: 110px;
  }

  .vertical-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger {
    display: flex;
    margin-right: 4px;
  }

  .mobile-menu.show {
    display: flex;
  }

  .header-inner {
    flex-direction: column;
    /* ← MENY UNDER LOGGA ÄVEN MOBIL */
    align-items: stretch;
  }

  .header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
  }

  .header-top img.logo {
    width: clamp(240px, 50vw, 260px);
  }

  .bookBtn {
    display: none;
  }
}

/* ===========================
   FOOTER
   =========================== */

.footer {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 4px 0;
  font-size: 0.95rem;
  margin-top: 40px;
  box-shadow: var(--shadow);
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer a:hover {
  opacity: 0.8;
}

.footerContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px;

  .title {
    font-weight: 600;
    text-align: justify
  }
}

.footerContainer {
  .subtitle {
    font-size: 13px;
  }
}

.footerContainer {
  .copyright {
    font-size: 13px;
  }
}

.footerContainer {
  .footer-right {
    text-align: right;
  }
}

/* .footerContainer {
  .email {
  }
} */
@media (max-width: 520px) {
  .footerContainer {
    display: flow;

    .title {
      text-align: center;
    }
  }

  .footerContainer {
    .subtitle {
      font-size: 13px;
    }
  }

  .footerContainer {
    .copyright {
      font-size: 13px;
    }
  }

  .footerContainer {
    .footer-right {
      text-align: center;
    }
  }

  .feature-list {
    column-count: 1 !important;
  }



  /* .footerContainer {
  .email {
  }
} */
}

/* ===========================
   FEATURE CARDS
   =========================== */


.feature-list {
  column-count: 2;
}

.feature-card h1,
.feature-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  max-width: 90vw;
}

.feature-image {
  height: 220px;
  border-radius: 12px;
  display: contents;
}

.feature-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.feature-image-wide {
  height: auto;
  width: 100%;
}

/* ===========================
   GRID FÖR FLERA CARDS
   =========================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* .features {
  margin: 60px 0;
} */

.features h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* CARD */
.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(11, 38, 64, 0.08);
  border: 1px solid #eef2f7;
  position: relative;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-card p,
.feature-card li {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
}

.feature-card ul {
  padding-left: 20px;
  margin: 0;
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-card textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-card .muted {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-card .error {
  font-size: 0.8rem;
  color: #c0392b;
  min-height: 1em;
  visibility: hidden;
}

#form-status {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Real-time validation borders */
input.input-error,
textarea.input-error,
select.input-error {
  border: 2px solid #e63946 !important;
}

input.input-success,
textarea.input-success,
select.input-success {
  border: 2px solid #2a9d8f !important;
}

input,
textarea,
select {
  transition: border 0.2s ease;
}

/* Success card */
.success-card {
  background: #e8fff1;
  border: 1px solid #b6f2cd;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
}

.success-card h3 {
  color: #2a9d8f;
  margin-bottom: 1rem;
}

.success-card p {
  color: var(--text);
}

.error {
  color: #d9534f;
  font-size: 0.8rem;
  min-height: 1em;
}

/* FEATURE CARD LISTS */
.section ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.section ul li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border: 1px solid #eef2f7;
  color: var(--text);
  line-height: 1.55;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover-effekt (desktop) */
.section ul li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(11, 38, 64, 0.12);
}

/* Ikonpunkt (valfritt, subtil) */
.section ul li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  margin-right: 8px;
}

/* Mobilanpassning */
@media (max-width: 600px) {
  .section ul {
    grid-template-columns: 1fr;
  }
    .optional-text {
    display: none;
  }
}

/* SECTION CARDS */
.section-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eef2f7;
  padding: 26px 30px;
  margin: 2rem 0;
}

.section-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.section-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.section-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.contact-form {
  /* max-width: fit-content; */
  width: 600px;
}

.feature-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}


.feature-card {
  position: relative !important;
  overflow: visible;
}

.optional-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #2ECC71;
  /* grön ikon */
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  /* cursor: help; */
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.optional-icon {
  color: #2ECC71;
}

.optional-info {
  display: none;
  position: absolute;
  top: 40px;
  right: 10px;
  background: var(--accent);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  width: 240px;
  z-index: 10;
}

.optional-badge:hover .optional-info {
  display: block;
}

.optional-icon-img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(48%) sepia(83%) saturate(422%) hue-rotate(85deg) brightness(95%) contrast(90%);
}

.feature-note {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}