/* ============================================================
   arrangementer.html — dedikert arrangementsside
============================================================ */

.page--arrangementer { background: var(--rik-cream-soft); color: var(--rik-slate-2); }

/* ============ Hero ============ */
.slide--a-hero {
  border-bottom: 1px solid var(--border);
  background: var(--rik-blue-dark);
  padding: 160px 0 100px;
  min-height: 60vh;
  min-height: 60dvh;
  align-items: center;
}
.a-hero__inner {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 1100px;
}
.a-hero__title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 24px 0 28px;
  color: #fff;
}
.a-hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--rik-cream);
}
.a-hero__lede {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 620px;
}

/* ============ Featured event ============ */
.slide--a-featured {
  background: var(--rik-cream-soft);
  display: block;
  padding: 100px 0 60px;
  overflow: clip;
}
.featured-event {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  background: #fff;
  border: 1px solid rgba(51, 52, 75, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 42, 102, 0.18);
}
.featured-event__art {
  position: relative;
  min-height: 380px;
  background: linear-gradient(135deg, var(--rik-blue) 0%, var(--rik-blue-dark) 100%);
}
.featured-event__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.featured-event__chip {
  position: absolute;
  top: 20px; left: 20px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.95);
  color: var(--rik-blue-dark);
  border-radius: 100px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  z-index: 1;
}
.featured-event__body {
  padding: 44px 48px 48px;
}
.featured-event__body .section-num {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rik-blue);
  font-weight: 500;
  margin-bottom: 16px;
}
.featured-event__body h2 {
  font-family: var(--sans);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--rik-slate-2);
  line-height: 1.05;
  margin-bottom: 18px;
}
.featured-event__lede {
  font-size: 16px;
  color: var(--rik-gray);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Blur-wrapper for placeholder-detaljer (frosted glass) */
.featured-event__blur {
  position: relative;
  margin-bottom: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.featured-event__blur > .featured-event__list,
.featured-event__blur > .featured-event__meta {
  filter: blur(5px);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.featured-event__blur::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 243, 231, 0) 0%, rgba(248, 243, 231, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}
.featured-event__blur-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--rik-blue-dark);
  color: var(--rik-cream);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 16px 40px -10px rgba(0, 42, 102, 0.4);
}
.featured-event__blur-dot {
  width: 10px; height: 10px;
  background: var(--rik-cream);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(234, 225, 206, 0.5);
  animation: soon-pulse-cream 2.2s ease-in-out infinite;
}

@media (max-width: 640px) {
  .featured-event__blur-label { white-space: normal; text-align: center; max-width: 90%; }
}

.featured-event__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(51, 52, 75, 0.1);
  border-bottom: 1px solid rgba(51, 52, 75, 0.1);
}
.featured-event__list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: baseline;
}
.featured-event__list strong {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--rik-blue-dark);
  letter-spacing: -0.01em;
}
.featured-event__list span {
  font-size: 14.5px;
  color: var(--rik-gray);
  line-height: 1.55;
}

.featured-event__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.featured-event__meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.featured-event__meta span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rik-gray);
}
.featured-event__meta strong {
  font-size: 15px;
  color: var(--rik-slate-2);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.featured-event__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.featured-event .btn--primary {
  background: var(--rik-blue);
  color: #fff;
  border-color: var(--rik-blue);
}
.featured-event__ctas .btn--ghost {
  color: var(--rik-slate-2);
  border-color: rgba(51, 52, 75, 0.18);
}
.featured-event__ctas .btn--ghost:hover {
  background: rgba(51, 52, 75, 0.04);
  border-color: var(--rik-slate-2);
}

/* Fadderuka Gjøvik — eget brand-tema (varm orange/koral) */
.btn--fadder {
  background: #F56038;
  color: #fff;
  border: 1px solid #F56038;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 22px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s;
  white-space: nowrap;
}
.btn--fadder .btn__arrow {
  background: #fff;
  color: #F56038;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  transition: transform 0.4s var(--ease);
}
.btn--fadder:hover {
  background: #E04A22;
  border-color: #E04A22;
  box-shadow: 0 20px 50px -15px rgba(245, 96, 56, 0.4);
}
.btn--fadder:hover .btn__arrow { transform: rotate(-45deg); }
.featured-event .btn--primary .btn__arrow { background: #fff; color: var(--rik-blue); }
.featured-event .btn--primary:hover { background: var(--rik-blue-dark); }

@media (max-width: 1000px) {
  .featured-event { grid-template-columns: 1fr; }
  .featured-event__art { min-height: 240px; }
  .featured-event__body { padding: 36px 32px 40px; }
  .featured-event__list li { grid-template-columns: 1fr; gap: 4px; }
  .featured-event__meta { grid-template-columns: 1fr 1fr; }
}

/* ============ Kategorier ============ */
.slide--a-cats {
  background: var(--rik-cream-soft);
  display: block;
  padding: 60px 0 100px;
  overflow: clip;
}
/* Info-banner: forklarer hvorfor alt står "kommer snart" */
.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  margin-bottom: 56px;
  background: #fff;
  border: 1px solid rgba(0, 74, 173, 0.18);
  border-left: 3px solid var(--rik-blue);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px -20px rgba(0, 42, 102, 0.18);
}
.info-banner__dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  margin-top: 7px;
  background: var(--rik-blue);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 74, 173, 0.4);
  animation: soon-pulse 2.2s ease-in-out infinite;
}
.info-banner p {
  font-size: 14.5px;
  color: var(--rik-slate-2);
  line-height: 1.55;
  margin: 0;
}
.info-banner strong { color: var(--rik-blue-dark); font-weight: 600; }
.info-banner a { color: var(--rik-blue); text-decoration: underline; text-underline-offset: 2px; }
.info-banner a:hover { color: var(--rik-blue-dark); }
@media (max-width: 640px) {
  .info-banner { padding: 14px 18px; margin-bottom: 40px; }
  .info-banner p { font-size: 13.5px; }
}

.event-cat { margin-bottom: 80px; }
.event-cat:last-child { margin-bottom: 0; }
.event-cat__head { margin-bottom: 36px; max-width: 720px; }
.event-cat__head .section-num { color: var(--rik-blue); margin-bottom: 14px; }
.event-cat__head .section-title { color: var(--rik-slate-2); }
.event-cat__head .section-title em { color: var(--rik-blue); }

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(51, 52, 75, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--rik-blue);
  box-shadow: 0 24px 60px -28px rgba(0, 42, 102, 0.18);
}

.event-card__art {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.event-card__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.4;
}
.event-card__art--blue     { background: linear-gradient(135deg, var(--rik-blue) 0%, var(--rik-blue-dark) 100%); }
.event-card__art--cream    { background: linear-gradient(135deg, var(--rik-cream) 0%, #d4c8a5 100%); }
.event-card__art--gradient1 { background: linear-gradient(135deg, var(--rik-slate-2) 0%, var(--rik-blue) 100%); }
.event-card__art--gradient2 { background: linear-gradient(135deg, var(--rik-blue) 0%, var(--rik-cream) 100%); }

/* "Kommer snart"-merke — overlegger på art-arealet (Audi F1-inspirert badge) */
.event-card__soon {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px 9px 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--rik-blue-dark);
  border-radius: 100px;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px -2px rgba(0, 42, 102, 0.22);
}
.event-card__soon::before {
  content: '';
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rik-blue);
  box-shadow: 0 0 0 0 rgba(0, 74, 173, 0.5);
  animation: soon-pulse 2.2s ease-in-out infinite;
}
@keyframes soon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 74, 173, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(0, 74, 173, 0); }
}

/* Liten visuell hint: "soon"-kort har dempet art — gir nettsiden følelsen av at det er placeholder */
.event-card--soon .event-card__art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 1;
}
.event-card--soon:hover .event-card__art::before { background: rgba(0, 0, 0, 0.10); }

/* ============ Countdown (Audi F1-stil) ============ */
.countdown {
  margin: 28px 0 32px;
  padding: 22px 26px;
  background: var(--rik-blue-dark);
  border-radius: var(--radius-sm);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.countdown::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(234, 225, 206, 0.12), transparent 60%);
  pointer-events: none;
}
.countdown__label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rik-cream);
  margin-bottom: 14px;
  font-weight: 500;
  position: relative;
}
.countdown__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
}
.countdown__row > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.countdown__row > div:last-child { border-right: 0; }
.countdown__row strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1;
  color: var(--rik-cream);
  font-variant-numeric: tabular-nums;
}
.countdown__row span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 640px) {
  .countdown { padding: 18px 20px; }
  .countdown__row { gap: 12px; }
  .countdown__row > div { padding-right: 12px; }
  .countdown__row strong { font-size: 26px; }
  .countdown__row span { font-size: 10px; }
}

/* ============ Live countdown (premium) ============ */
.countdown--live {
  padding: 26px 30px 22px;
  background: linear-gradient(135deg, var(--rik-blue-dark) 0%, var(--rik-blue-deep) 100%);
  position: relative;
}
.countdown--live::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 213, 71, 0.08), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(234, 225, 206, 0.06), transparent 60%);
  pointer-events: none;
}
.countdown__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}
.countdown__header .countdown__label { margin-bottom: 0; }
.countdown__target {
  font-size: 12.5px;
  color: var(--rik-cream);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: var(--serif);
  font-style: italic;
}
.countdown__target::before {
  content: "●";
  color: #2ee68b;
  font-size: 10px;
  margin-right: 8px;
  animation: countdown-pulse 1.8s ease-in-out infinite;
}
@keyframes countdown-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.countdown__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: end;
  position: relative;
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(234, 225, 206, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.countdown__unit:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(234, 225, 206, 0.22);
}
.countdown__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1;
  color: var(--rik-cream);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.countdown__name {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.countdown__sep {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 44px);
  color: rgba(234, 225, 206, 0.35);
  line-height: 1;
  margin-bottom: 28px;
  animation: countdown-blink 1.4s ease-in-out infinite;
}
@keyframes countdown-blink {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.85; }
}
.countdown__note {
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  position: relative;
}

@media (max-width: 720px) {
  .countdown--live { padding: 22px 22px 20px; }
  .countdown__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .countdown__sep { display: none; }
  .countdown__num { font-size: 30px; }
  .countdown__name { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .countdown__sep,
  .countdown__target::before { animation: none; }
}

/* Tidslinje — "kommer snart" variant (når dato ikke er satt) */
.countdown--soon { padding: 22px 26px; }
.countdown__soon {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}
.countdown__soon-dot {
  flex-shrink: 0;
  width: 12px; height: 12px;
  margin-top: 6px;
  background: var(--rik-cream);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(234, 225, 206, 0.5);
  animation: soon-pulse-cream 2.2s ease-in-out infinite;
}
@keyframes soon-pulse-cream {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 225, 206, 0.4); }
  50%      { box-shadow: 0 0 0 10px rgba(234, 225, 206, 0); }
}
.countdown__soon > div { display: flex; flex-direction: column; gap: 4px; }
.countdown__soon strong {
  font-family: var(--sans);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--rik-cream);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.countdown__soon p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin: 0;
}

.event-card__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.event-card__chip {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(0, 74, 173, 0.08);
  color: var(--rik-blue);
  border-radius: 100px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.event-card__body time {
  font-size: 12.5px;
  color: var(--rik-gray);
  letter-spacing: 0.04em;
}
.event-card__body h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--rik-slate-2);
  line-height: 1.2;
  margin: 2px 0 4px;
}
.event-card__body p {
  font-size: 13.5px;
  color: var(--rik-gray);
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .event-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .slide--a-hero { padding: 130px 0 70px; min-height: auto; }
  .slide--a-featured { padding: 60px 0 40px; }
  .slide--a-cats { padding: 40px 0 80px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-cat { margin-bottom: 56px; }
  .featured-event__body { padding: 28px 24px 32px; }
  .featured-event__meta { grid-template-columns: 1fr; gap: 14px; }
  .featured-event__list { padding: 16px 0; }
}

/* CTA-seksjon footer */
.slide--a-cta {
  background: var(--rik-cream-soft);
  display: block;
  padding: 40px 0 50px;
  overflow: clip;
}
