:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #faf6f0;
  --bg-2: #f2ece3;
  --surface: #fffaf2;
  --surface-2: #dfe5e8;
  --ink: #1e2a38;
  --muted: #596571;
  --muted-2: #5e6870;
  --accent: #e5a93c;
  --accent-strong: #b87818;
  --accent-soft: #f7e4bb;
  --navy: #1e2a38;
  --navy-soft: #e9eef1;
  --slate: #dfe5e8;
  --slate-soft: #f2f5f6;
  --line: #d8dde0;
  --line-strong: #c4ccd1;
  --shadow: 0 18px 44px rgba(30, 42, 56, 0.14);
  --shadow-soft: 0 10px 28px rgba(30, 42, 56, 0.09);
  --radius: 8px;
  --max: 1120px;

  /* Dynamic overlays and colors */
  --grad-overlay: rgba(223, 229, 232, 0.7);
  --grid-color: rgba(30, 42, 56, 0.032);
  --header-bg: rgba(250, 246, 240, 0.94);
  --header-border: rgba(216, 221, 224, 0.94);
  --dropdown-bg: rgba(250, 246, 240, 0.98);
  --btn-ghost-bg: rgba(250, 246, 240, 0.78);
  --btn-ghost-border: rgba(30, 42, 56, 0.24);
  --card-bg: rgba(250, 246, 240, 0.92);

  /* Theme toggle visibility */
  --sun-display: none;
  --moon-display: block;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181512;
  --bg-2: #221e1a;
  --surface: #2c2621;
  --surface-2: #3a322c;
  --ink: #fcfaf7;
  --muted: #a59990;
  --muted-2: #baaeb5;
  --accent: #f0b85d;
  --accent-strong: #e5a93c;
  --accent-soft: #473c35;
  --navy: #181512;
  --navy-soft: #352e28;
  --slate: #3a322c;
  --slate-soft: #26201b;
  --line: #473d36;
  --line-strong: #5a4e45;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.3);

  /* Dynamic overlays and colors */
  --grad-overlay: rgba(58, 50, 44, 0.45);
  --grid-color: rgba(252, 250, 247, 0.024);
  --header-bg: rgba(24, 21, 18, 0.92);
  --header-border: rgba(71, 61, 54, 0.85);
  --dropdown-bg: rgba(44, 38, 33, 0.98);
  --btn-ghost-bg: rgba(44, 38, 33, 0.6);
  --btn-ghost-border: rgba(252, 250, 247, 0.2);
  --card-bg: rgba(44, 38, 33, 0.85);

  /* Theme toggle visibility */
  --sun-display: block;
  --moon-display: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, var(--grad-overlay), transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  text-rendering: optimizeLegibility;
  transition: background 0.3s ease, color 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 75%);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:not(.btn, .logoandname, .site-nav a) {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: rgba(229, 169, 60, 0.5);
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

a:not(.btn, .logoandname, .site-nav a):hover {
  color: var(--navy);
  text-decoration-color: rgba(30, 42, 56, 0.5);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: minmax(290px, auto) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.logoandname {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.logoandname:hover {
  background: var(--btn-ghost-bg);
  transform: translateY(-1px);
}

.logoandname:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.nav-more-trigger:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(229, 169, 60, 0.72);
  outline-offset: 3px;
}

#logo {
  width: 6.2rem;
  height: 6.2rem;
  object-fit: contain;
  filter: drop-shadow(0 9px 16px rgba(30, 42, 56, 0.13));
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.brand-mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.72rem;
  line-height: 1;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.25;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.site-nav a,
.nav-more-trigger {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.nav-more:hover .nav-more-trigger,
.nav-more:focus-within .nav-more-trigger {
  color: var(--accent-strong);
  background: var(--surface);
  border-color: rgba(229, 169, 60, 0.48);
  transform: translateY(-1px);
}

.site-nav .nav-featured {
  color: var(--navy);
  background: rgba(223, 229, 232, 0.86);
  border-color: rgba(30, 42, 56, 0.13);
  box-shadow: inset 0 0 0 1px rgba(250, 246, 240, 0.72);
}

.site-nav .nav-featured:hover,
.site-nav .nav-featured:focus-visible {
  color: #faf6f0;
  background: var(--navy);
  border-color: rgba(229, 169, 60, 0.82);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-more {
  position: relative;
}

.nav-more-trigger::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.nav-more:hover .nav-more-trigger::after,
.nav-more:focus-within .nav-more-trigger::after {
  transform: translateY(1px) rotate(225deg);
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 250px;
  padding: 8px;
  display: grid;
  gap: 4px;
  background: var(--dropdown-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, background 0.3s ease;
}

.nav-more-menu::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto 0;
  height: 12px;
}

.nav-more:hover .nav-more-menu,
.nav-more:focus-within .nav-more-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-more-menu a {
  justify-content: flex-start;
  border-radius: var(--radius);
  padding: 11px 12px;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  justify-self: end;
  min-height: 40px;
  border: 1px solid rgba(229, 169, 60, 0.45);
  background: var(--surface);
  color: var(--accent-strong);
  padding: 9px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--navy);
  background: rgba(223, 229, 232, 0.62);
  border: 1px solid rgba(30, 42, 56, 0.12);
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.social-link:hover {
  color: var(--accent-strong);
  background: var(--surface);
  border-color: rgba(229, 169, 60, 0.58);
  transform: translateY(-1px);
}

.social-link:focus-visible {
  outline: 2px solid rgba(229, 169, 60, 0.72);
  outline-offset: 3px;
}

.social-link svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link svg path {
  fill: currentColor;
  stroke: none;
}

/* Header Right controls grouping */
.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--btn-ghost-border);
  background: var(--btn-ghost-bg);
  color: var(--navy);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent-strong);
  background: var(--surface);
  border-color: var(--accent);
  transform: translateY(-1px) rotate(15deg);
}

.theme-toggle:focus-visible {
  outline: 2px solid rgba(229, 169, 60, 0.72);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

/* Toggle Sun/Moon icon visibility based on färgtema */
.theme-toggle .sun-icon {
  display: var(--sun-display);
}

.theme-toggle .moon-icon {
  display: var(--moon-display);
}

.header-social-links {
  /* Handled by parent header-right flex layout */
}

section,
.section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 88px) 24px;
}

.page-route {
  display: flex;
  flex-direction: column;
  animation: routeFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes routeFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-top: clamp(46px, 6vw, 72px);
}

@media (min-width: 981px) {
  .hero {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
  }
}

.hero-copy {
  max-width: 820px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(30, 42, 56, 0.12));
  animation: logoFloat 6s ease-in-out infinite;
}

[data-theme="dark"] .hero-logo {
  filter: drop-shadow(0 0 20px rgba(229, 169, 60, 0.18)) drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 4.8vw, 5rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.45rem);
  line-height: 1.04;
}

h3 {
  font-size: clamp(1.32rem, 1.5vw, 1.72rem);
  line-height: 1.16;
}

h4 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.2;
}

p,
li {
  line-height: 1.65;
}

.lead,
.section-lead,
.kurser-content,
.contact-details p,
.about-copy,
.nosework-copy,
.nosework-list,
.hoopers-copy,
.hoopers-list,
.blog-preview-excerpt,
.blog-post-intro,
.blog-preview-meta,
.blog-category {
  color: var(--muted);
}

.lead {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(1.04rem, 1.2vw, 1.17rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn.primary {
  background: var(--accent);
  color: var(--navy);
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn.ghost {
  color: var(--navy);
  background: var(--btn-ghost-bg);
  border-color: var(--btn-ghost-border);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn.ghost:hover {
  background: var(--navy-soft);
  border-color: var(--line-strong);
}

.section-title {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-lead {
  margin: 0;
  font-size: clamp(1.04rem, 1vw, 1.16rem);
}

figure {
  margin: 0;
}

.feature {
  padding-top: 0;
}

.feature-figure,
.inline-photos figure,
.gallery-grid figure,
.kurser-photo,
.contact-photo,
.about-photo,
.nosework-photo,
.nosework-triptych figure,
.blog-preview-card,
.blog-post-figure,
.card,
.blog-card,
.timeline-item,
.info-block {
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.3s ease;
}

.feature-figure:hover,
.inline-photos figure:hover,
.gallery-grid figure:hover,
.kurser-photo:hover,
.contact-photo:hover,
.about-photo:hover,
.nosework-photo:hover,
.nosework-triptych figure:hover,
.blog-preview-card:hover,
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.feature-figure img,
.kurser-photo img,
.contact-photo img,
.about-photo img,
.blog-post-figure img {
  width: 100%;
  height: auto;
}

figcaption,
.feature-figure figcaption,
.inline-photos figcaption,
.gallery-grid figcaption,
.kurser-photo figcaption,
.contact-photo figcaption,
.about-photo figcaption,
.nosework-photo figcaption {
  padding: 13px 15px 15px;
  color: var(--muted-2);
  font-size: 0.93rem;
  line-height: 1.45;
  text-align: center;
}

.inline-photos,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.inline-photos {
  margin-top: 28px;
}

.inline-photos img,
.gallery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.inline-photos figure:hover img,
.gallery-grid figure:hover img {
  transform: scale(1.035);
}

.kurser-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 34px;
  align-items: center;
}

.kurser-hero-copy {
  max-width: 690px;
}

.kurser-hero-copy .section-lead {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(1.12rem, 1.5vw, 1.36rem);
  font-weight: 700;
}

.kurser-hero-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.upcoming-courses-list {
  display: grid;
  gap: 16px;
  margin: 20px 0 28px;
}

.course-item {
  padding: 18px 22px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  display: grid;
  gap: 6px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.course-item:hover {
  transform: translateX(3px);
  border-top-color: var(--line-strong);
  border-right-color: var(--line-strong);
  border-bottom-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.course-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.course-time {
  font-weight: 600;
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.course-dates {
  color: var(--muted);
  font-size: 0.92rem;
}

.course-placeholder {
  padding: 18px 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
  background: rgba(250, 246, 240, 0.32);
}

[data-theme="dark"] .course-placeholder {
  background: rgba(44, 38, 33, 0.2);
}

.course-placeholder p {
  margin: 0;
  line-height: 1.5;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  line-height: 1;
}

.badge-open {
  background-color: #2e7d32;
  color: #ffffff;
}

[data-theme="dark"] .badge-open {
  background-color: #f0b85d;
  color: #181512;
}

.badge-completed {
  background-color: var(--line-strong);
  color: var(--navy);
  opacity: 0.75;
}

[data-theme="dark"] .badge-completed {
  background-color: var(--line);
  color: var(--ink);
  opacity: 0.65;
}

/* Course headers */
.course-header,
.course-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* Date Pills & Highlight Style */
.course-dates-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.dates-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.course-dates-list,
.date-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.date-pill.open {
  background-color: var(--accent-soft);
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}

.date-pill.completed {
  background-color: var(--slate-soft);
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.7;
  border-bottom: 2px solid var(--line);
}

/* Avslutade Kurser Section */
.avslutade-kurser-section {
  margin-top: 56px;
  margin-bottom: 28px;
}

.section-title-alt {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-desc-alt {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 720px;
}

.completed-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.course-card.completed {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  opacity: 0.88;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.course-card.completed:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.course-card-header h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  flex: 1;
}

.course-card-body {
  margin-top: 14px;
  margin-bottom: 20px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--muted);
}

.course-card-body p {
  margin: 0 0 12px 0;
}

.course-card-body p:last-child {
  margin-bottom: 0;
}

.course-card-subdetails {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-card-subdetails p {
  margin: 0;
  line-height: 1.5;
}

.course-card-subdetails a {
  color: var(--accent-strong);
  text-decoration: underline;
  font-weight: 600;
}

.course-card-subdetails a:hover {
  color: var(--accent);
}

.course-card-subdetails .note {
  font-size: 0.88rem;
  opacity: 0.9;
}

.course-card-meta {
  margin-top: auto;
  padding: 16px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.meta-item {
  color: var(--muted);
}

.meta-item strong {
  color: var(--navy);
}

.course-card-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-card-dates strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .course-card.completed {
    padding: 20px;
  }
}

.kurser-visual,
.kurser-card,
.kurser-price-card,
.kurser-details,
.kurser-booking {
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.kurser-visual {
  align-self: stretch;
}

.kurser-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.kurser-visual figcaption {
  padding: 13px 15px 15px;
  color: var(--muted-2);
  font-size: 0.93rem;
  line-height: 1.45;
  text-align: center;
}

.kurser-value-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kurser-card {
  padding: 22px;
  background: linear-gradient(145deg, var(--card-bg), var(--grad-overlay));
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.3s ease;
}

.kurser-card:hover,
.kurser-price-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.kurser-card h3,
.kurser-content h3,
.kurser-booking h3 {
  color: var(--navy);
}

.kurser-card p {
  margin: 0;
  color: var(--muted);
}

.kurser-offer-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: start;
}

.kurser-content,
.about-copy,
.nosework-copy,
.hoopers-copy {
  max-width: 900px;
  font-size: 1.02rem;
}

.kurser-content p,
.about-copy p,
.nosework-copy p,
.hoopers-copy p {
  margin: 0 0 20px;
}

.kurser-pricing {
  display: grid;
  gap: 14px;
}

.kurser-pricing > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.kurser-price-card {
  padding: 20px;
  display: grid;
  gap: 6px;
  background: var(--surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.kurser-price-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.kurser-price-card strong {
  color: var(--navy);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 2vw, 2.8rem);
  line-height: 1;
}

.kurser-price-card p {
  margin: 0;
  color: var(--muted);
}

.kurser-details {
  margin-top: 28px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: var(--navy);
  color: #faf6f0;
}

.kurser-details span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.kurser-details p {
  margin: 0;
  color: rgba(250, 246, 240, 0.86);
  font-size: 0.95rem;
}

.kurser-booking {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(145deg, var(--accent-soft), var(--card-bg));
}

.kurser-booking p {
  margin: 0;
  color: var(--muted);
}

.kurser-booking .eyebrow {
  margin-bottom: 8px;
}

.contact-details {
  max-width: 690px;
  margin-bottom: 28px;
  padding: 24px 26px;
  background: linear-gradient(145deg, var(--card-bg), var(--grad-overlay));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact-details p {
  margin: 0 0 14px;
  font-size: 1.04rem;
}

.contact-details p:last-child {
  margin-bottom: 0;
}

.contact-details strong,
.nosework-emphasis {
  color: var(--ink);
}

.contact-photo figcaption,
.about-photo figcaption,
.nosework-photo figcaption {
  font-style: italic;
}

.contact-photo figcaption span {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--navy-soft);
  color: var(--navy);
}

.about-photo {
  margin: 12px 0 36px;
}

.nosework-copy-extended {
  margin-top: 26px;
}

.nosework-list,
.hoopers-list {
  margin: 0 0 22px;
  padding-left: 1.5rem;
}

.nosework-list li,
.hoopers-list li {
  margin: 0 0 9px;
}

.nosework-triptych {
  max-width: 980px;
  margin: 10px auto 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.nosework-triptych img,
.nosework-photo img,
.nosework-sport-card img {
  width: 100%;
  object-fit: cover;
}

.nosework-triptych img {
  height: 100%;
  aspect-ratio: 3 / 4;
}

.nosework-photo {
  max-width: 860px;
  margin: 12px auto 0;
}

.nosework-photo img {
  height: auto;
  aspect-ratio: 3 / 4;
}

.nosework-photo-wide {
  max-width: 980px;
}

.nosework-photo-wide img {
  aspect-ratio: 4 / 3;
}

.nosework-photo-portrait {
  max-width: 760px;
}

.nosework-photo-missing {
  width: 100%;
  min-height: 340px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--navy-soft);
  font-weight: 700;
}

.nosework-why,
.nosework-sport {
  max-width: 980px;
  margin: 44px auto 0;
}

.nosework-why h3 {
  text-align: center;
  margin-bottom: 20px;
}

.nosework-why-grid,
.nosework-sport-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.nosework-why-card,
.nosework-sport-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.nosework-why-card:hover,
.nosework-sport-card:hover {
  transform: translateY(-3px);
  background: var(--btn-ghost-bg);
  box-shadow: var(--shadow);
}

.nosework-why-card {
  text-align: center;
}

.nosework-why-card h4,
.nosework-sport-card h4 {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  font-weight: 700;
}

.nosework-why-card p,
.nosework-sport-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.nosework-sport {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
}

.nosework-sport h3 {
  margin-bottom: 24px;
}

.nosework-sport-card img {
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  margin-bottom: 13px;
}

.blog-list-page .section-title {
  max-width: 880px;
}

.blog-preview-card {
  max-width: 880px;
  padding: 24px 26px;
}

.blog-preview-card h3 a {
  color: var(--ink);
}

.blog-category,
.blog-preview-meta {
  margin: 0 0 12px;
  font-size: 0.92rem;
}

.blog-preview-excerpt {
  margin: 0;
}

.blog-detail-page {
  max-width: 900px;
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--navy);
  font-weight: 700;
}

.blog-post-meta span:nth-child(2) {
  color: var(--accent);
}

.blog-post-figure {
  margin-bottom: 18px;
}

.blog-tag {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--navy-soft);
  font-size: 0.92rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card,
.info-block {
  padding: 22px;
}

.sport-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}

.sport-content,
.timeline {
  display: grid;
  gap: 18px;
}

.info-block.accent {
  background: var(--accent-soft);
  border-color: rgba(229, 169, 60, 0.42);
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.timeline-step {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 22px;
  padding: 22px;
}

.blog-meta,
.blog-content p {
  color: var(--muted);
}

.cta {
  padding-bottom: 90px;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 34px;
  color: #faf6f0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta .eyebrow {
  color: #f8e6dc;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta .btn.primary {
  color: var(--accent-strong);
  background: #faf6f0;
  border-color: #faf6f0;
}

.cta .btn.ghost {
  color: #faf6f0;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px 48px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(320px, 460px) minmax(150px, auto);
  gap: 24px;
  align-items: start;
  color: var(--muted);
  border-top: 1px solid rgba(216, 221, 224, 0.9);
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-brand {
  min-width: 0;
}

.footer-contact-card {
  margin: 0;
  padding: 18px;
  display: grid;
  gap: 12px;
  color: var(--ink);
  background: linear-gradient(145deg, var(--card-bg), var(--grad-overlay));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-style: normal;
}

.footer-contact-title {
  color: var(--navy);
  font-weight: 700;
}

.footer-contact-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: baseline;
  font-size: 0.94rem;
}

.footer-contact-row > span:first-child {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-contact-row a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(229, 169, 60, 0.58);
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.footer-contact-row a:hover {
  color: var(--accent-strong);
  text-decoration-color: rgba(229, 169, 60, 0.9);
}

.footer-contact-row a:focus-visible {
  outline: 2px solid rgba(229, 169, 60, 0.72);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-social-links {
  padding-top: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Terms Section under Anmälan */
.terms-container {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.terms-title {
  text-align: center;
  margin-bottom: 36px;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  color: var(--navy);
}

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

.terms-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.terms-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.terms-card-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 50%;
}

.terms-card-icon svg {
  width: 20px;
  height: 20px;
}

.terms-card h4 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  color: var(--navy);
}

.terms-card p {
  margin: 0 0 12px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--muted);
}

.terms-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 18px;
    gap: 18px;
  }

  .header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .header-social-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(340px, calc(100vw - 24px));
    display: none;
    align-items: stretch;
    justify-content: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--dropdown-bg);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .nav-more-trigger {
    width: 100%;
    justify-content: flex-start;
    min-height: 42px;
    border-radius: var(--radius);
    padding: 11px 12px;
  }

  .site-nav .nav-featured {
    color: var(--navy);
    background: rgba(223, 229, 232, 0.68);
    border-color: transparent;
    box-shadow: none;
  }

  .site-nav .nav-featured:hover,
  .site-nav .nav-featured:focus-visible {
    color: var(--accent-strong);
    background: var(--surface);
    border-color: rgba(229, 169, 60, 0.48);
  }

  .nav-more {
    display: contents;
  }

  .nav-more-trigger {
    display: none;
  }

  .nav-more-menu {
    position: static;
    min-width: 0;
    padding: 0;
    display: contents;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-more-menu::before {
    content: none;
  }

  .blog-card,
  .cta-inner,
  .kurser-hero,
  .kurser-offer-grid,
  .kurser-booking {
    grid-template-columns: 1fr;
  }

  .kurser-visual img {
    max-height: 520px;
  }

  .kurser-value-grid {
    grid-template-columns: 1fr;
  }

  .kurser-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1.2fr);
  }

  .footer-links {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 820px) {
  #logo {
    width: 5.2rem;
    height: 5.2rem;
  }

  .brand-mark {
    font-size: 1.52rem;
  }

  .brand-tag {
    font-size: 0.82rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 720px) {
  section,
  .section {
    padding: 48px 18px;
  }

  .site-header-inner {
    padding: 10px 12px;
    gap: 10px;
  }

  #logo {
    width: 4.8rem;
    height: 4.8rem;
  }

  .brand-mark {
    font-size: 1.38rem;
  }

  .brand-tag {
    font-size: 0.78rem;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .contact-details,
  .blog-preview-card,
  .card,
  .info-block,
  .timeline-item,
  .cta-inner,
  .kurser-card,
  .kurser-price-card,
  .kurser-details,
  .kurser-booking,
  .terms-card {
    padding: 20px;
  }

  .nosework-triptych,
  .nosework-why-grid,
  .nosework-sport-grid,
  .kurser-details,
  .terms-grid {
    grid-template-columns: 1fr;
  }

  .nosework-sport {
    padding: 22px;
  }

  .nosework-photo img,
  .nosework-photo-wide img,
  .nosework-photo-portrait img,
  .nosework-sport-card img {
    aspect-ratio: auto;
    object-fit: contain;
  }

  .inline-photos,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .inline-photos img,
  .gallery-grid img {
    height: auto;
    max-height: 460px;
  }

  .kurser-visual img {
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .kurser-booking .cta-actions {
    width: 100%;
  }

  .site-footer {
    padding-inline: 18px;
  }

  .footer-contact-card {
    padding: 16px;
  }

  .footer-contact-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 430px) {
  .logoandname {
    gap: 8px;
    padding-right: 4px;
  }

  .brand-tag {
    display: none;
  }

  .nav-toggle {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
