/* ============================================================
   SILDRING — style.css
   Fargar: #120029 mørkelilla | #CEA5FF lilla
           #E5FF7E gul        | #FF5B89 korall
   Font:   Satoshi (via Fontshare)
   ============================================================ */

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

/* ── FARGAR OG VARIABLAR ── */
:root {
  --bg:     #120029;
  --lilla:  #CEA5FF;
  --gul:    #E5FF7E;
  --korall: #FF5B89;
  --white:  #ffffff;
  --muted:  rgba(255, 255, 255, 0.75);
  --border: rgba(206, 165, 255, 0.2);
}

/* ── BASE ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Satoshi', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
}

/* Støy-tekstur overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}


/* ── TYPOGRAFI ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.95rem; }
h6 { font-size: 0.85rem; }

p {
  font-size: 1.2rem;
  line-height: 1.7;
}


/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.5rem 6rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
}

/* Sub-sider nav */
.sub-nav {
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sub-nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sub-nav-icon {
  width: 36px;
  height: 36px;
  opacity: 0.7;
}

.sub-nav-wordmark {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}

.nav-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.2s;
}

.nav-toggle:hover {
  color: var(--lilla);
}

.header-tagline {
  font-size: clamp(2rem, 2vw, 3rem);
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  margin: 0;
  text-align: left;
}

.header-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.header-icon svg {
  width: 100%;
  height: 100%;
}

.header-wordmark-row {
  margin-top: 6rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-illustration {
  height: clamp(3rem, 10vw, 14rem);
  width: auto;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: -0.2em;
  margin-left: auto;
  color: #CEA5FF;
  transition: color 0.1s linear;
}

.header-wordmark {
  margin-top: 0;
  font-size: clamp(5rem, 20vw, 30rem);
  font-weight: 700;
  letter-spacing: normal;
  color: var(--white);
  line-height: 0.88;
  white-space: nowrap;
  text-align: left;
}

/* ============================================================
   FULLSKJERMSMENY
   ============================================================ */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay-top {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
}

.nav-overlay-close {
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav-overlay-link {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: normal;
  transition: color 0.2s;
}

.nav-overlay-link:hover {
  color: var(--lilla);
}


/* ============================================================
   VIDEO MODAL
   ============================================================ */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 0, 25, 0.85);
}

.video-modal-inner {
  position: relative;
  width: min(90vw, 1100px);
}

.video-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
}

.video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1.5rem;
  overflow: hidden;
}

.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   KNAPPAR
   ============================================================ */





/* ============================================================
   VIDEO
   ============================================================ */

.media-row {
  margin: 0 2rem 2rem;
}

.media-intro {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding-left: 1rem;
}

.media-intro p {
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--white);
}


/* ── Neste arrangement + video ── */
.event-video-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin: 0 2rem 2rem;
}

.event-next {
  flex: 2;
  background: var(--white);
  border-radius: 2rem;
  padding: 3rem 3.5rem;
  color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.event-next .event-label {
  margin-bottom: 0;
}

.event-next-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  text-decoration: none;
  color: inherit;
}

.event-next-content .event-thumb {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.event-next-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.event-next .event-link {
  background: var(--bg);
  color: var(--white);
}

.event-video-row .video-wrap {
  flex: 1;
  align-self: flex-start;
}

.video-wrap {
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 16;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


/* ============================================================
   AKTUELT
   ============================================================ */

.aktuelt {
  padding: 3rem 0 3rem 2rem;
}

.aktuelt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 2rem;
  margin-bottom: 1.5rem;
}

.aktuelt-heading {
  color: var(--white);
}

.aktuelt-nav {
  display: flex;
  gap: 0.5rem;
}

.aktuelt-prev,
.aktuelt-next {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.aktuelt-prev:hover,
.aktuelt-next:hover {
  border-color: var(--lilla);
  color: var(--lilla);
}

.aktuelt-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-right: 2rem;
  -ms-overflow-style: none;
}

.aktuelt-track::-webkit-scrollbar { display: none; }

.aktuelt-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  text-decoration: none;
}

.aktuelt-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 1.2rem;
  display: block;
  margin-bottom: 0.9rem;
}

.aktuelt-text {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.aktuelt-card--video {
  position: relative;
}

.aktuelt-video-btn {
  position: relative;
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-bottom: 0.9rem;
}

.aktuelt-video-btn .aktuelt-img {
  margin-bottom: 0;
}

.aktuelt-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  border-radius: 1.2rem;
  transition: background 0.2s;
}

.aktuelt-video-btn:hover .aktuelt-play-icon {
  background: rgba(0,0,0,0.4);
}

.aktuelt-play-icon svg {
  width: 52px;
  height: 52px;
}

.aktuelt-card--text {
  aspect-ratio: 3 / 4;
  border-radius: 1.2rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.aktuelt-card-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.aktuelt-card-big {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bg);
  line-height: 1.15;
}

/* ============================================================
   ARRANGEMENT-STRIP
   ============================================================ */

.event-strip {
  background: #ffffff;
  margin: 0 2rem 2rem;
  border-radius: 2rem;
  padding: 4rem 5rem;
  color: var(--bg);
}

.event-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(18, 0, 41, 0.75);
  margin-bottom: 2rem;
  font-weight: 700;
}

.event-label--past {
  margin-top: 4rem;
}

.event-list--past .event-title {
  opacity: 0.5;
}

.event-list--past .event-desc {
  opacity: 0.4;
}

.event-list {
  display: flex;
  flex-direction: column;
}

.event-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.event-thumb {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.event-divider {
  border: none;
  border-bottom: 1px solid rgba(18, 0, 41, 0.15);
  margin: 0;
}

.event-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--bg);
  line-height: 1.2;
}

.event-desc {
  color: rgba(18, 0, 41, 0.5);
  margin-top: 0.4rem;
}

.event-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--bg);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.event-link:hover {
  background: var(--lilla);
  color: var(--bg);
}

.event-link svg {
  width: 14px;
  height: 14px;
}


/* ============================================================
   OM OSS
   ============================================================ */

.about {
  background: var(--gul);
  color: var(--bg);
  margin: 2rem;
  border-radius: 2rem;
  padding: 5rem;
}

.about-text {
  max-width: 75ch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-text p {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--bg);
  margin-bottom: 1.4rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding: 0.9rem 1.8rem;
  background: var(--bg);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.about-link:hover {
  background: var(--lilla);
  color: var(--bg);
}

.about-link--lilla {
  background: var(--lilla);
  color: var(--bg);
  margin-top: 0;
}

.about-link--lilla:hover {
  background: var(--white);
  color: var(--bg);
}


/* ============================================================
   FAGFELT
   ============================================================ */

.disciplines {
  padding: 5rem 5rem 8rem;
}

.disciplines-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.disciplines-header h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
}

.disciplines-header span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid var(--white);
  border-radius: 999px;
  font-size: 1.2rem;
  color: var(--white);
  cursor: default;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tag:hover {
  border-color: var(--lilla);
  color: var(--lilla);
  background: rgba(206, 165, 255, 0.07);
}


/* ============================================================
   NYHEITSBREV
   ============================================================ */

.newsletter-row {
  display: flex;
  gap: 2rem;
  margin: 2rem;
  align-items: stretch;
}

.newsletter {
  background: var(--white);
  flex: 2;
  border-radius: 2rem;
  padding: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-img {
  flex: 1;
  border-radius: 2rem;
  overflow: hidden;
  min-height: 300px;
}

.newsletter-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newsletter h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--bg);
  line-height: 1.2;
}

.newsletter h2 em {
  font-style: italic;
  color: var(--bg);
}

.newsletter p {
  margin-top: 1.2rem;
  color: var(--bg);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-form input:not([type="checkbox"]) {
  width: 100%;
  padding: 0.9rem 1.4rem;
  background: rgba(18, 0, 41, 0.06);
  border: 1.5px solid rgba(18, 0, 41, 0.12);
  border-radius: 999px;
  color: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--bg);
}

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.newsletter-consent input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--bg);
  cursor: pointer;
}

.newsletter-consent span {
  font-size: 0.85rem;
  color: var(--bg);
  line-height: 1.5;
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--bg);
  color: var(--white);
  font-family: 'Satoshi', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.newsletter-form button:hover {
  background: var(--lilla);
  color: var(--bg);
}

/* ── Kontakt ── */
.contact {
  background: var(--lilla);
  margin: 2rem;
  border-radius: 2rem;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6rem;
}

.contact-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  max-width: 22ch;
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.contact-social-link:hover { opacity: 1; }

.contact-email {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.75; }


/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding: 3rem 5rem;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  text-decoration: none;
  display: block;
}

.footer-logo img {
  height: 3.8rem;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 01rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.2);
}


/* ============================================================
   ANIMASJONAR
   ============================================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.header-tagline  { animation: fadeUp 0.6s ease both; }
.header-wordmark { animation: fadeIn 1.2s 0.2s ease both; }


/* ============================================================
   RESPONSIV — mobil
   ============================================================ */

@media (max-width: 900px) {
  .media-row {
    grid-template-columns: 1fr;
    margin: 0 1rem 1rem;
  }

  .media-intro {
    max-width: 100%;
    padding-left: 0;
    padding-right: 1rem;
  }

  .event-video-row {
    flex-direction: column;
    margin: 0 1rem 1rem;
  }

  .event-next {
    padding: 2rem 1.5rem;
  }

  .event-next-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }


  .sub-nav {
    padding: 1.5rem 1.5rem 1.5rem;
  }

  .site-header {
    padding: 1.5rem 1.5rem 4rem;
  }

  .header-tagline {
    font-size: 0.85rem;
  }

  .header-icon {
    width: 38px;
    height: 38px;
  }

  .event-strip {
    margin: 0 1rem 1rem;
    border-radius: 1.2rem;
    padding: 2.5rem 2rem;
  }

  .event-item {
    grid-template-columns: 1fr;
  }

  .about {
    margin: 1rem;
    padding: 3rem 2rem;
    border-radius: 1.2rem;
    grid-template-columns: 1fr;
    gap: 3rem;
  }


  .disciplines {
    padding: 3rem 1.8rem 5rem;
  }

  .newsletter-row {
    flex-direction: column;
    margin: 1rem;
  }

  .newsletter {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 2rem;
  }

  .newsletter-img {
    min-height: 260px;
    border-radius: 1.2rem;
  }

  .contact {
    margin: 1rem;
    padding: 3rem 2rem;
    gap: 3rem;
  }

  .contact-heading {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  .contact-email {
    font-size: clamp(1.4rem, 5vw, 2.5rem);
  }

  .contact-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2.5rem 1.8rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}