/* Neuropsykiatrisk Foredrag – one-page booking site */

:root {
  --navy: #0f172a;
  --slate: #1e293b;
  --text: #1e293b;
  --muted: #475569;
  --bg: #f8fafc;
  --white: #ffffff;
  --line: #e2e8f0;
  --teal: #0f766e;
  --teal-hover: #115e59;
  --teal-bright: #0d9488;
  --teal-soft: #ccfbf1;
  --error: #b91c1c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --nav-h: 72px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1100px;
  --narrow: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img,
picture img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

figure {
  margin: 0;
}

.framed {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.framed picture,
.framed img {
  width: 100%;
  height: 100%;
}

.framed picture {
  display: block;
}

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-hover);
}

:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.container,
.container-narrow {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

.container-narrow {
  max-width: var(--narrow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-hover);
  border-color: var(--teal-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 0.75rem;
}

.nav-brand {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-menu a {
  color: var(--slate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--teal);
}

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--teal-hover);
  color: var(--white) !important;
}

.hero {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(13, 148, 136, 0.22), transparent 48%),
    linear-gradient(165deg, var(--navy) 0%, var(--slate) 100%);
  color: var(--white);
  padding: 4rem 0 4.5rem;
}

.hero-layout,
.intro-layout,
.takeaways-layout,
.speaker-grid,
.target-grid,
.booking-layout {
  min-width: 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-copy {
  text-align: left;
  min-width: 0;
}

.hero-photo {
  aspect-ratio: 4 / 3;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-position: center 30%;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.35rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 999px;
  color: #5eead4;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.hero-lead {
  font-size: 1.12rem;
  color: #e2e8f0;
  margin-bottom: 1.2rem;
}

.hero-speakers {
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.hero-speakers strong {
  color: var(--white);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.85rem;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.section h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.sub-title {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro p,
.booking-lead {
  color: var(--muted);
}

.intro p + p {
  margin-top: 1rem;
}

.intro-layout,
.takeaways-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.25rem;
  align-items: center;
}

.intro-photo {
  aspect-ratio: 4 / 3;
}

.intro-photo img {
  width: 100%;
  height: 100%;
  object-position: center;
}

.speakers h2,
.key-takeaways h2,
.target-groups h2,
.booking h2 {
  margin-bottom: 2rem;
}

.speaker-grid,
.takeaways-grid,
.target-grid {
  display: grid;
  gap: 1.25rem;
}

.speaker-grid {
  grid-template-columns: repeat(2, 1fr);
}

.takeaways-grid {
  grid-template-columns: 1fr;
}

.target-grid {
  grid-template-columns: repeat(3, 1fr);
}

.speaker-card,
.takeaway-box,
.target-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem 1.45rem 1.65rem;
  box-shadow: var(--shadow);
}

.speaker-card {
  padding: 0;
  overflow: hidden;
  border-top: 4px solid var(--teal-bright);
}

.speaker-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.speaker-card picture {
  display: block;
}

.speaker-photo--axel {
  object-position: center 18%;
}

.speaker-photo--martin {
  object-position: 22% 12%;
}

.speaker-body {
  padding: 1.35rem 1.4rem 1.55rem;
}

.speaker-role {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.speaker-card p:last-child,
.takeaway-box p,
.target-card p {
  color: var(--muted);
}

.key-takeaways,
.booking {
  background: var(--white);
}

.takeaways-visual {
  aspect-ratio: 3 / 4;
  align-self: stretch;
}

.takeaways-visual img {
  width: 100%;
  height: 100%;
  object-position: center 20%;
}

.target-banner {
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 8;
}

.target-banner img {
  width: 100%;
  height: 100%;
  object-position: center 35%;
}

.target-card {
  border-left: 4px solid var(--teal-bright);
}

.practical-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.practical-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  color: var(--muted);
}

.practical-list strong {
  color: var(--navy);
}

.booking-lead {
  max-width: 640px;
  margin-bottom: 2rem;
}

.booking-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.booking-aside,
.booking-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem;
}

.booking-aside {
  background: var(--bg);
}

.booking-photo {
  margin-bottom: 1.15rem;
  aspect-ratio: 4 / 3;
}

.booking-photo img {
  width: 100%;
  height: 100%;
  object-position: center 40%;
}

.booking-aside p {
  color: var(--muted);
  margin-top: 0.7rem;
}

.booking-aside a {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.booking-aside a:hover {
  color: var(--teal);
}

.booking-form {
  background: var(--white);
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.form-group {
  display: grid;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 600;
  color: var(--navy);
}

.required {
  color: var(--teal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  min-height: 48px;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 3px solid rgba(13, 148, 136, 0.25);
  border-color: var(--teal-bright);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--error);
}

.form-privacy {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  min-height: 1.4em;
  font-weight: 600;
}

.form-status.success {
  color: var(--teal);
}

.form-status.error {
  color: var(--error);
}

.footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 2.4rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer p + p {
  margin-top: 0.3rem;
}

.copyright {
  margin-top: 0.85rem !important;
  font-size: 0.9rem;
}

.footer a {
  color: #5eead4;
  text-decoration: none;
}

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

@media (max-width: 900px) {
  .hero-layout,
  .intro-layout,
  .takeaways-layout,
  .speaker-grid,
  .target-grid,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .intro-photo,
  .takeaways-visual,
  .target-banner,
  .booking-photo {
    aspect-ratio: 16 / 10;
    width: 100%;
  }

  .speaker-photo {
    aspect-ratio: 4 / 5;
  }

  .speaker-grid,
  .takeaways-grid,
  .target-grid {
    gap: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  body {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .section h2 {
    font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  }

  .hero-badge {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.25rem 1.1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
  }

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

  .nav-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.7rem 0.2rem;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
  }

  .hero {
    text-align: left;
    padding: 2.2rem 0 2.6rem;
  }

  .hero-layout,
  .intro-layout,
  .takeaways-layout {
    gap: 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .hero-ctas .btn,
  .booking-form .btn,
  .btn {
    width: 100%;
    min-height: 48px;
    text-align: center;
  }

  .section {
    padding: 3rem 0;
  }

  .booking-aside,
  .booking-form {
    padding: 1.25rem;
  }

  .footer a,
  .booking-aside a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .nav-brand {
    font-size: 0.88rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
