/* ============================================
   NORDSTJERNEN — teltudlejning
   ============================================ */

@font-face {
  font-family: "Wasted Vindey";
  src: url("assets/fonts/Wasted-Vindey.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --moss: #305A3E;
  --moss-dark: #21402c;
  --cream: #EEE6CC;
  --cream-soft: #FBF6EA;
  --black: #1a1a17;
  --line: rgba(48, 90, 62, 0.25);
  --max-w: 1180px;
  --display: "Wasted Vindey", serif;
  --body: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: normal;
  letter-spacing: 0.02em;
  color: var(--moss);
  margin: 0;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  text-align: center;
  margin-bottom: 0.2em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--moss);
  text-align: center;
  margin-bottom: 14px;
  font-family: var(--body);
  font-weight: 600;
}

.section-intro {
  text-align: center;
  max-width: 620px;
  margin: 22px auto 0;
  color: #3d3b32;
}

.star {
  display: block;
  margin: 30px auto;
  width: 30px;
  height: 30px;
  fill: var(--moss);
}

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(238, 230, 204, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--moss);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.logo-mark svg { width: 20px; height: 20px; fill: var(--moss); }

nav.links {
  display: flex;
  gap: 34px;
  font-size: 0.95rem;
}

nav.links a {
  text-decoration: none;
  color: var(--black);
  position: relative;
  padding-bottom: 3px;
}

nav.links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

nav.links a:hover::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream-soft);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,23,0.35) 0%, rgba(26,26,23,0.5) 55%, rgba(26,26,23,0.75) 100%);
  z-index: 1;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-content .star { fill: var(--cream); margin-bottom: 18px; }

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 7rem);
  color: var(--cream-soft);
  line-height: 0.95;
}

.hero p {
  font-family: var(--body);
  font-style: italic;
  font-size: 1.25rem;
  margin: 22px 0 34px;
  color: rgba(255,250,240,0.92);
}

.btn {
  display: inline-block;
  border: 1px solid currentColor;
  padding: 14px 34px;
  text-decoration: none;
  font-family: var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.hero .btn {
  color: var(--cream-soft);
}
.hero .btn:hover { background: var(--cream-soft); color: var(--moss-dark); }

.btn-solid {
  background: var(--moss);
  color: var(--cream-soft) !important;
  border-color: var(--moss);
}
.btn-solid:hover { background: var(--moss-dark); }

/* ---------- Sections generic ---------- */
section { padding: 110px 0; }
section:nth-of-type(even) { background: var(--cream-soft); }

/* ---------- Om os ---------- */
.om-os {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.om-os img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.om-os .text p { margin: 0 0 18px; }

.draft-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-style: italic;
  color: #7a6f4d;
  background: rgba(48,90,62,0.08);
  padding: 4px 10px;
}

/* ---------- Teltet / specs ---------- */
.specs {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin: 50px 0 10px;
  text-align: center;
}

.spec-item .num {
  font-family: var(--display);
  font-size: 3rem;
  color: var(--moss);
  display: block;
}

.spec-item .label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #5a5646;
}

.tent-text {
  max-width: 680px;
  margin: 40px auto 0;
  text-align: center;
  color: #3d3b32;
}

/* ---------- Galleri ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 50px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  position: relative;
}

.gallery-grid figure:nth-child(3n+1) { aspect-ratio: 4/5; }
.gallery-grid figure:nth-child(4n) { grid-row: span 2; aspect-ratio: 4/10.2; }

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-grid figure:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,22,17,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; object-fit: contain; }
.lightbox .close {
  position: absolute;
  top: 26px;
  right: 36px;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  font-family: var(--body);
}

/* ---------- Priser ---------- */
.price-table {
  max-width: 720px;
  margin: 50px auto 0;
  border-top: 1px solid var(--line);
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.price-row .desc { font-size: 1.02rem; }
.price-row .desc small { display: block; color: #6a664f; font-size: 0.82rem; margin-top: 3px;}
.price-row .amount { font-family: var(--display); font-size: 1.5rem; color: var(--moss); white-space: nowrap; padding-left: 20px;}

.price-note {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 0.88rem;
  color: #6a664f;
  text-align: center;
}

.example-box {
  max-width: 720px;
  margin: 40px auto 0;
  background: rgba(48,90,62,0.06);
  padding: 26px 30px;
  font-size: 0.92rem;
}
.example-box h4 {
  font-family: var(--body);
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--moss-dark);
  font-size: 0.95rem;
}
.example-box .line { display: flex; justify-content: space-between; padding: 3px 0; }
.example-box .line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-weight: 600; }
.example-box + .example-box { margin-top: 18px; }

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  margin-top: 50px;
}

.kontakt-info .row {
  margin-bottom: 26px;
}
.kontakt-info .row .label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: #6a664f;
  margin-bottom: 4px;
}
.kontakt-info .row a { text-decoration: none; font-size: 1.15rem; color: var(--moss); border-bottom: 1px solid transparent; }
.kontakt-info .row a:hover { border-color: var(--moss); }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #5a5646; }
.field input, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 4px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--black);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--moss); }
.field textarea { resize: vertical; min-height: 110px; }

.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
  cursor: pointer;
}

.form-status { font-size: 0.85rem; margin-top: 8px; color: var(--moss-dark); }

/* ---------- Footer ---------- */
footer {
  background: var(--moss);
  color: var(--cream-soft);
  padding: 50px 0 30px;
  text-align: center;
}
footer .logo-mark { justify-content: center; color: var(--cream-soft); margin-bottom: 18px; }
footer .logo-mark svg { fill: var(--cream-soft); }
footer .foot-links { display: flex; justify-content: center; gap: 26px; margin-bottom: 22px; font-size: 0.9rem; }
footer .foot-links a { text-decoration: none; }
footer .foot-links a:hover { text-decoration: underline; }
footer .fine { font-size: 0.78rem; color: rgba(238,230,204,0.6); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav.links { display: none; }
  .om-os { grid-template-columns: 1fr; }
  .om-os img { height: 320px; }
  .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid figure:nth-child(4n) { grid-row: span 1; aspect-ratio: 4/5; }
  section { padding: 70px 0; }
}
