/* ===== VARIABLER — LJUST TEMA (standard) ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1a2332;
  --text-muted: #5a6472;
  --border: #e2e6ec;
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-text: #ffffff;
  --shadow: 0 2px 12px rgba(26, 35, 50, 0.06);
  --shadow-hover: 0 6px 24px rgba(26, 35, 50, 0.12);
  --radius: 16px;
}

/* ===== MÖRKT TEMA ===== */
[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #111111;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --border: #2a2a2a;
  --accent: #ff8c42;
  --accent-hover: #ff7a26;
  --accent-text: #000000;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 6px 24px rgba(255, 140, 66, 0.15);
}

/* ===== RESET & BAS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== LOGOTYP ===== */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: transform, filter;
}

.logo-img {
  height: clamp(48px, 6vw, 90px);
  width: auto;
  display: block;
}

.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}

.logo:hover {
  transform: translateY(-3px) scale(1.04);
  text-decoration: none;
}

.logo-light:hover {
  filter: drop-shadow(0 0 12px rgba(20, 184, 166, 0.7));
}

.logo-dark:hover {
  filter: drop-shadow(0 0 12px rgba(255, 140, 66, 0.8));
}

.logo:active {
  transform: translateY(0) scale(0.97);
  transition: transform 0.1s ease;
}

.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent);
  text-decoration: none;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  color: var(--text);
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

/* ===== HERO ===== */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ===== SEKTIONER ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ===== INFO-RUTOR ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-box {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.info-box:hover {
  border-color: var(--accent);
}

.info-box > span:first-child {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.info-box strong {
  color: var(--text);
  font-size: 0.95rem;
}

.info-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== KURSBOXAR ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.course-card.coming-soon {
  opacity: 0.72;
}

.course-card.coming-soon:hover {
  transform: none;
}

.course-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.badge-open {
  background-color: var(--accent);
  color: var(--accent-text);
}

.badge-soon {
  background-color: var(--border);
  color: var(--text-muted);
}

.course-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.course-card .course-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.course-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-disabled {
  background-color: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

.btn-disabled:hover {
  background-color: var(--border);
}

/* ===== EXPANDERBAR INFO ===== */
.course-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 0;
}

.course-details.open {
  max-height: 1200px;
  margin-top: 1.25rem;
}

.course-details-inner {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.9rem;
}

.course-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.course-details h4:first-child {
  margin-top: 0;
}

.course-details ul {
  list-style: none;
  padding-left: 0;
}

.course-details li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.course-details li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.course-details p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ===== MODAL (BOKNING) ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: var(--bg-alt);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ===== DROPDOWN & PLATSINFO ===== */
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: var(--bg-alt);
  color: var(--text);
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.spots-info {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  min-height: 1.2em;
}

.spots-info.full {
  color: #ef4444;
}

.booking-help {
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.booking-help a {
  color: var(--accent);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-message {
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 1rem;
  display: none;
}

.form-message.success {
  background-color: rgba(20, 184, 166, 0.15);
  color: var(--accent);
  display: block;
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  display: block;
}

/* ===== INNEHÅLLSSIDOR ===== */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.page-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.page-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.page-content ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-title-center {
  text-align: center;
}

/* ===== PROFILBILD ===== */
.profile-photo {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: 50% / 40%;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
}

.photo-placeholder {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  background-color: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ===== OM-SIDAN ===== */
.page-title-with-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.title-logo {
  height: clamp(60px, 7vw, 100px);
  width: auto;
  display: block;
}

.title-logo-dark {
  display: none;
}

[data-theme="dark"] .title-logo-light {
  display: none;
}

[data-theme="dark"] .title-logo-dark {
  display: block;
}

.about-layout {
  display: block;
  margin-bottom: 1.5rem;
}

.about-layout::after {
  content: "";
  display: table;
  clear: both;
}

.about-photo {
  float: left;
  width: clamp(100px, 14vw, 180px);
  margin: 0 1.5rem 1rem 0;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  border-radius: 50% / 40%;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
}

.about-text {
  /* Ingen flex — texten flödar runt bilden */
}

/* ===== KONTAKTKORT ===== */
.contact-cards {
  clear: both;
  margin-top: 1rem;
}

.contact-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.contact-card a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--accent);
}

/* ===== BOKNINGSMODAL — INFO ===== */
.booking-info {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background-color: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.booking-info p {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.booking-info ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.booking-info li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.booking-info li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.booking-price {
  padding: 1rem;
  background-color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 10px;
  text-align: center;
}

.booking-price strong {
  color: var(--accent);
  font-size: 1.1rem;
}

.price-old {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.booking-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.booking-note:last-child {
  margin-bottom: 0;
}

/* Länk-knapp i modal */
.modal-actions a.btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ===== RESPONSIVT ===== */

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0.85rem 1rem;
  }

  nav {
    gap: 1rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero {
    padding: 2.5rem 1rem 2rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-actions {
    flex-direction: column;
  }

  .about-photo {
    width: clamp(70px, 20vw, 100px);
    margin: 0 1rem 0.75rem 0;
  }

  .page-title-with-logo {
    gap: 0.6rem;
  }

  .contact-card {
    padding: 1rem 1.1rem;
  }

  .contact-card p {
    font-size: 0.85rem;
  }
}
