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

:root {
  --bg-deep: #0d1a0d;
  --bg-mid: #1a1a14;
  --bg-card: #111a0f;
  --text: #e8d5a3;
  --text-muted: rgba(232, 213, 163, 0.7);
  --gold: #c4a87a;
  --gold-dark: #8b6914;
  --green: #a0b890;
  --border: #2d3d2d;
  --section-pad: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.7;
}

/* ── Typography ── */
h1, h2, h3 { color: var(--text); font-family: Georgia, serif; }

.site-title {
  font-family: Georgia, serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.hero-name {
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.1;
  margin: 0.5rem 0;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--green);
}

.section-heading {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  color: var(--gold);
  margin-top: 0.35rem;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold-dark);
  margin: 1.5rem auto;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem clamp(1rem, 5vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(13,26,13,0.9), transparent);
  transition: background 0.3s;
}

nav.scrolled {
  background: rgba(10, 20, 10, 0.97);
  box-shadow: 0 1px 0 var(--border);
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--gold); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 20, 10, 0.98);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-menu a:hover { color: var(--gold); }

.mobile-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── Hero ── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d1a0d 0%, #1e2e1a 55%, #2d1e0f 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1448375240586-882707db888b?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.hero-content { position: relative; max-width: 700px; }

.hero-ornament {
  font-size: 0.8rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 1.25rem;
}

.hero-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--green);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  opacity: 0.55;
}

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

/* ── Sections ── */
section { padding: var(--section-pad); }
.section-alt { background: var(--bg-mid); }
.section-inner { max-width: 1100px; margin: 0 auto; }

/* Haandvaerk section strips side padding so panels go edge-to-edge */
#haandvaerk { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.haandvaerk-heading { padding: 0 clamp(1rem, 5vw, 4rem) 2rem; text-align: center; }

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .two-col .col-img { order: -1; }
}

.col-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: block;
}

/* ── About ── */
.about-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  max-width: 800px;
  margin: 2rem auto 0;
}

.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-dark);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .about-inner { flex-direction: column; text-align: center; }
  .about-photo { width: 140px; height: 140px; }
}

/* ── Craft triptych panels ── */
.craft-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(300px, 58vh, 700px);
  gap: 3px;
  margin-top: 2rem;
  overflow: hidden;
}

.craft-panel {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  /* explicit height so child image and overlay can use height: 100% / inset: 0 */
  height: clamp(300px, 58vh, 700px);
}

.craft-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.craft-panel:hover img {
  transform: scale(1.08);
}

.craft-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 16, 8, 0.88) 0%,
    rgba(8, 16, 8, 0.28) 45%,
    rgba(8, 16, 8, 0.35) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 0.35rem;
  transition: background 0.4s ease;
}

.craft-panel:hover .craft-panel-overlay {
  background: linear-gradient(
    to top,
    rgba(8, 16, 8, 0.62) 0%,
    rgba(8, 16, 8, 0.08) 45%,
    rgba(8, 16, 8, 0.12) 100%
  );
}

.craft-panel-label {
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--green);
}

.craft-panel-title {
  font-family: Georgia, serif;
  font-size: clamp(1.05rem, 2.2vw, 1.85rem);
  color: var(--text);
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
  font-weight: normal;
  letter-spacing: 0.04em;
}

.craft-panel-cta {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.craft-panel:hover .craft-panel-cta {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .craft-panels {
    grid-template-columns: 1fr;
    height: auto;
    gap: 2px;
  }
  .craft-panel { height: 55vw; min-height: 190px; }
  .craft-panel-cta { opacity: 1; transform: translateY(0); }
}

/* ── Ambient background glow (per craft page) ── */
@keyframes ambientDrift {
  0%   { transform: scale(1)    translate(0,    0);   opacity: 0.65; }
  100% { transform: scale(1.12) translate(3%, 5%);    opacity: 1; }
}

.collage-section {
  position: relative;
  overflow: hidden;
}

.collage-section::before {
  content: '';
  position: absolute;
  inset: -25%;
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 24s ease-in-out infinite alternate;
}

/* Træskæring — warm amber + forest deep */
.glow-wood::before {
  background:
    radial-gradient(ellipse 65% 55% at 18% 28%, rgba(150, 95, 18, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 55% 65% at 82% 68%, rgba(55, 85, 22, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 45% 40% at 52% 8%,  rgba(110, 62, 14, 0.11) 0%, transparent 52%);
}

/* Pileflet — cool teal + water-sage */
.glow-willow::before {
  background:
    radial-gradient(ellipse 65% 55% at 22% 32%, rgba(22, 82, 88, 0.16) 0%, transparent 58%),
    radial-gradient(ellipse 55% 65% at 78% 65%, rgba(38, 98, 58, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 45% 40% at 50% 82%, rgba(18, 58, 82, 0.11) 0%, transparent 52%);
}

/* Pode-kurser — spring gold + earthy green */
.glow-graft::before {
  background:
    radial-gradient(ellipse 65% 55% at 22% 25%, rgba(88, 108, 18, 0.16) 0%, transparent 58%),
    radial-gradient(ellipse 55% 65% at 78% 72%, rgba(112, 88, 18, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 45% 40% at 52% 52%, rgba(42, 92, 28, 0.11) 0%, transparent 52%);
}

/* ── Scattered photo grid ── */
.collage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(20, clamp(22px, 3.8vw, 50px));
  gap: 10px;
  padding: 2rem 0 4rem;
}

.collage-item {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 4px 8px 26px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

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

.collage-item:hover {
  box-shadow: 6px 12px 34px rgba(0, 0, 0, 0.72);
  transform: scale(1.025);
  position: relative;
  z-index: 2;
}

/* Scattered placement — each photo sits at a different x/y position */
.collage-item:nth-child(1) { grid-area:  2 /  1 /  9 /  4; } /* tall, far left, upper */
.collage-item:nth-child(2) { grid-area:  9 /  2 / 14 /  5; } /* medium, left, lower */
.collage-item:nth-child(3) { grid-area:  1 /  5 /  8 /  8; } /* tall, centre, top */
.collage-item:nth-child(4) { grid-area:  7 /  7 / 12 / 10; } /* medium, centre-right */
.collage-item:nth-child(5) { grid-area: 12 /  4 / 17 /  7; } /* tall, left-centre, low */
.collage-item:nth-child(6) { grid-area:  2 / 10 /  9 / 13; } /* tall, far right, upper */
.collage-item:nth-child(7) { grid-area: 10 /  9 / 15 / 12; } /* medium, right, lower */
.collage-item:nth-child(8) { grid-area: 15 /  7 / 20 / 10; } /* medium, centre-right, bottom */
.collage-item:nth-child(9) { grid-area: 15 /  1 / 20 /  4; } /* short, far left, bottom */

/* Mobile: simple vertical stack, no grid */
@media (max-width: 900px) {
  .collage {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0 2rem;
  }
  .collage-item { height: 60vw; max-height: 340px; }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 1.5rem;
  min-height: 44px;
  font-family: inherit;
}

.btn:hover { background: var(--gold); color: var(--bg-deep); }

@media (max-width: 640px) {
  .btn { display: block; text-align: center; width: 100%; }
}

/* ── Page banner (inner pages) ── */
.page-banner {
  padding: 6rem clamp(1rem, 5vw, 4rem) 3rem;
  text-align: center;
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--gold);
  margin-top: 0.4rem;
}

/* ── Program list ── */
.program-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold-dark);
  padding: 1.5rem;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.program-card .meta { flex: 1; }

.program-date {
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.program-card h3 { color: var(--text); font-size: 1rem; margin-bottom: 0.25rem; }
.program-card p { color: var(--text-muted); font-size: 0.85rem; }
.program-location { color: var(--green); font-size: 0.78rem; margin-top: 0.3rem; }

@media (max-width: 640px) {
  .program-card { flex-direction: column; align-items: flex-start; }
  .program-card .btn { margin-top: 1rem; }
}

/* ── Forms ── */
.form-wrap { max-width: 560px; margin: 2rem auto 0; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 2px;
  transition: border-color 0.2s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 1.25rem;
  font-style: italic;
  text-align: center;
}

.thank-you {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--gold-dark);
  border-radius: 4px;
  max-width: 560px;
  margin: 2rem auto 0;
}

.thank-you h3 { color: var(--gold); margin-bottom: 0.6rem; font-size: 1.2rem; }
.thank-you p { color: var(--text-muted); }

/* ── Footer ── */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1rem, 5vw, 4rem);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

footer a { color: var(--green); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
