/* ============================================
   NORDFJORDSOMMAR — Delt CSS
   Tru · Natur · Fellesskap
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ---- FOTO / IMAGE HELPERS ---- */
.photo-hero {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.photo-section {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.photo-card {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
/* Placeholder når bilete manglar */
.img-placeholder {
  background: linear-gradient(135deg, var(--green-dark), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Source Sans 3', sans-serif;
}
/* Hero med bakgrunnsbilete */
.hero-photo {
  background-size: cover;
  background-position: center;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(27,58,90,0.75) 0%, rgba(28,74,80,0.70) 60%, rgba(42,110,114,0.55) 100%);
}

:root {
  /* Primærfarge: teal frå logoen */
  --green-dark:   #1C4A50;
  --green-mid:    #2A6E72;
  --green-light:  #4E9EA3;
  --green-pale:   #DCF0F0;
  /* Aksent: varm gull frå save-the-date */
  --gold:         #BF8030;
  --gold-light:   #F2E4C4;
  /* Mørk marin frå fjellsilhuettane */
  --blue:         #1B3A5A;
  --blue-pale:    #D4E0EA;
  --earth:        #7A5C3A;
  --bg:           #F8F5F0;
  --bg-card:      #FFFFFF;
  --text:         #1A1818;
  --text-soft:    #46403A;
  --text-muted:   #7A7470;
  --border:       #E0D8CC;
  --shadow:       0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
  --radius:       12px;
  --radius-sm:    8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--green-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green-dark); }

strong { color: var(--text); font-weight: 600; }

/* ---- NAV ---- */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-logo span {
  color: var(--green-light);
}
.nav-logo:hover {
  color: rgba(255,255,255,0.88);
}
.nav-logo:hover span {
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.14);
}

/* Phase badges */
.nav-links .phase-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
  margin-left: 0.3rem;
  vertical-align: middle;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge-leiren { background: var(--gold); color: #fff; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
  font-size: 1.5rem;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue) 0%, #1A3050 35%, var(--green-dark) 70%, var(--green-mid) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400'%3E%3Cpath fill='rgba(255,255,255,0.04)' d='M0,300 C360,200 720,350 1440,250 L1440,400 L0,400 Z'/%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0,350 C480,270 960,380 1440,300 L1440,400 L0,400 Z'/%3E%3C/svg%3E") bottom center / cover no-repeat;
}

.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  color: #fff;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero h1 { color: #fff; margin-bottom: 1rem; max-width: 700px; }
.hero .hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-values {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.hero-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  font-weight: 500;
}
.hero-value-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
}
.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover { background: #b8952e; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(201,168,76,0.4); }

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--green-mid);
  border: 2px solid var(--green-mid);
}
.btn-outline:hover { background: var(--green-mid); color: #fff; }

.btn-green {
  background: var(--green-mid);
  color: #fff;
}
.btn-green:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }

/* ---- LAYOUT ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}
.section-sm { padding: 2.5rem 0; }
.section-alt { background: var(--green-pale); }
.section-dark { background: var(--green-dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.82); }
.section-gold-bg { background: var(--gold-light); }
.section-blue-bg { background: var(--blue-pale); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header .eyebrow {
  display: inline-block;
  color: var(--green-mid);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header p {
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

/* ---- CARDS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}
.card-icon svg,
.card-icon i[data-lucide] {
  width: 2rem;
  height: 2rem;
  stroke: var(--green-mid);
  stroke-width: 1.75;
  vertical-align: middle;
}

/* General Lucide icon sizing */
i[data-lucide] {
  display: inline-block;
  vertical-align: middle;
}
i[data-lucide] svg {
  display: block;
}
.card h3 { margin-bottom: 0.5rem; }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ---- VALUE PILLARS ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pillar {
  padding: 2.5rem 2rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* background-color only — shorthand ville nullstilt background-image */
.pillar:nth-child(1) { background-color: var(--blue); }
.pillar:nth-child(2) { background-color: var(--green-dark); }
.pillar:nth-child(3) { background-color: var(--green-mid); }
.pillar h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.75rem; }
.pillar p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
/* Foto-pillar med overlay */
.pillar-photo {
  background-size: cover;
  background-position: center;
  position: relative;
}
.pillar-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.pillar-photo h3,
.pillar-photo p {
  position: relative;
  z-index: 1;
}

/* ---- COUNTDOWN ---- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.countdown-item {
  text-align: center;
}
.countdown-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  margin-top: 0.35rem;
}

/* ---- PHASE BANNER ---- */
.phase-banner {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.phase-banner-icon { font-size: 1.5rem; }
.phase-banner-text { font-size: 0.95rem; color: var(--text-soft); }
.phase-banner-text strong { color: var(--earth); }

/* ---- PROGRAM TABLE ---- */
.program-day {
  margin-bottom: 2.5rem;
}
.program-day-header {
  background: var(--green-mid);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}
.program-items {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.program-item {
  display: flex;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.program-item:last-child { border-bottom: none; }
.program-item:nth-child(even) { background: #fafaf8; }
.program-time {
  font-weight: 600;
  color: var(--green-mid);
  min-width: 110px;
  font-size: 0.92rem;
  padding-top: 0.1rem;
}
.program-desc { color: var(--text-soft); font-size: 0.97rem; }

/* ---- PACKLIST ---- */
.pack-section { margin-bottom: 2rem; }
.pack-section h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--green-pale);
}
.pack-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.5rem;
}
.pack-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  color: var(--text-soft);
}
.pack-list li::before {
  content: '✓';
  color: var(--green-mid);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ---- PERSON CARDS ---- */
.person-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.person-card h4 { color: var(--green-dark); margin-bottom: 0.35rem; }
.person-card p { font-size: 0.92rem; }

/* ---- INFO BOXES ---- */
.info-box {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box.gold {
  background: var(--gold-light);
  border-color: var(--gold);
}
.info-box.green {
  background: var(--green-pale);
  border-color: var(--green-mid);
}
.info-box p { margin: 0; color: var(--text-soft); }

/* ---- ACCORDION ---- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.accordion-header {
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--green-dark);
  transition: background 0.15s;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
}
.accordion-header:hover { background: var(--green-pale); }
.accordion-header .acc-icon { transition: transform 0.2s; font-style: normal; }
.accordion-header.open .acc-icon { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 1rem 1.25rem;
  background: #fafaf8;
  border-top: 1px solid var(--border);
}
.accordion-body.open { display: block; }
.accordion-body p { margin-bottom: 0.5rem; color: var(--text-soft); }

/* ---- TUR CARDS ---- */
.tur-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.tur-card-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  color: #fff;
  padding: 1.25rem 1.5rem;
}
.tur-card-header h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.2rem; }
.tur-date { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.tur-card-body { padding: 1.5rem; }
.tur-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tur-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.tur-meta-item span { font-size: 1rem; }
.tur-ungdom {
  background: var(--gold-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.tur-ungdom strong { color: var(--earth); }

/* ---- KARUSELL / SLIDESHOW ---- */
.slideshow {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-dark);
}
.slideshow-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow-slide:nth-child(1) { animation: slide 12s infinite 0s; }
.slideshow-slide:nth-child(2) { animation: slide 12s infinite 4s; }
.slideshow-slide:nth-child(3) { animation: slide 12s infinite 8s; }
.slideshow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,74,80,0.7) 0%, transparent 50%);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.slideshow-caption {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
}
@keyframes slide {
  0%    { opacity: 0; }
  5%    { opacity: 1; }
  28%   { opacity: 1; }
  33%   { opacity: 0; }
  100%  { opacity: 0; }
}

/* ---- NAV LOGO ---- */
.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ---- ARRANGØR LOGOS ---- */
.org-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.org-logo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.org-logo-slot img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.org-logo-placeholder {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 0 1rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  min-width: 80px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
  margin-top: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.9rem; color: #ffffff}
.footer-links h4 { color: #ffffff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; font-family: 'Source Sans 3', sans-serif; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-orgs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; gap: 0.2rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 0.75rem 1.25rem; }
  .nav-links { width: 100%; padding: 0.5rem 0 0.75rem; }
  .nav-links a { display: block; padding: 0.5rem 0.75rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: auto; }
  .countdown { gap: 1.25rem; }
  .countdown-num { font-size: 2.2rem; }
  .program-item { flex-direction: column; gap: 0.25rem; }
  .program-time { min-width: auto; }
}

/* ---- MISC ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-1 { gap: 1rem; }

.tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2.5rem 0;
}

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

/* Smooth reveal */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
