:root {
  --honey: #f4c430;
  --honey-dark: #d4a017;
  --honey-deep: #8b6508;
  --amber: #ffb627;
  --amber-light: #ffd97d;
  --black: #1a1a1a;
  --soft-black: #2a2a2a;
  --grey: #5a5a5a;
  --light-grey: #e8e4d8;
  --cream: #fffbf0;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --r: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  color: var(--soft-black);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; font-family: -apple-system, system-ui, sans-serif; }

p { margin: 0 0 1em; }

a {
  color: var(--honey-deep);
  text-decoration: none;
  transition: color .15s;
}
a:hover { color: var(--honey-dark); text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.honeycomb-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(244,196,48,0.08) 2px, transparent 2.5px),
    radial-gradient(circle at 0 0, rgba(244,196,48,0.05) 1px, transparent 1.5px);
  background-size: 40px 40px, 60px 60px;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--honey);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--black);
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--honey-deep); }
.logo-icon { font-size: 1.8rem; animation: buzz 4s ease-in-out infinite; display: inline-block; }
@keyframes buzz {
  0%, 100% { transform: translate(0,0) rotate(0); }
  25% { transform: translate(2px,-2px) rotate(-5deg); }
  50% { transform: translate(-1px,1px) rotate(3deg); }
  75% { transform: translate(2px,0) rotate(-2deg); }
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.main-nav a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--soft-black);
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: var(--amber-light); color: var(--black); text-decoration: none; }
.main-nav a.active { background: var(--honey); color: var(--black); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .main-nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 3px solid var(--honey);
    padding: 0.5rem 1rem 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.open ul { display: flex; }
  .main-nav a { padding: 0.75rem 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--honey) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: 0.05;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-text h1 {
  margin-bottom: 1rem;
  color: var(--black);
}
.lead {
  font-size: 1.15rem;
  color: var(--soft-black);
  margin-bottom: 1.5rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--black);
  color: var(--honey);
}
.btn-primary:hover { background: var(--soft-black); color: var(--amber); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-secondary:hover { background: var(--black); color: var(--honey); }

.hero-art { display: flex; justify-content: center; }
.floating-bee {
  width: 100%;
  max-width: 320px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-12px) rotate(3deg); }
}

@media (max-width: 720px) {
  .hero { padding: 2.5rem 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-art { display: none; }
}

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--amber-light), var(--cream));
  padding: 3rem 0 2rem;
  border-bottom: 3px solid var(--honey);
}

/* ---------- Sections ---------- */
.site-main { min-height: 60vh; }

.content-section { padding: 3rem 0; }
.content-section.alt { background: var(--white); }

.features { padding: 3rem 0; background: var(--white); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--cream);
  padding: 2rem 1.5rem;
  border-radius: var(--r);
  border: 1px solid var(--light-grey);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--honey);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.quote-card {
  background: var(--black);
  color: var(--cream);
  padding: 1.75rem;
  border-radius: var(--r);
  border-left: 4px solid var(--honey);
  position: sticky;
  top: 100px;
}
.quote-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
}
.quote-card cite {
  color: var(--honey);
  font-style: normal;
  font-weight: 600;
}
@media (max-width: 720px) {
  .story-grid { grid-template-columns: 1fr; }
  .quote-card { position: static; }
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.info-block {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--r);
  border: 1px solid var(--light-grey);
}

.info-card {
  background: var(--black);
  color: var(--cream);
  padding: 1.5rem;
  border-radius: var(--r);
  border-top: 4px solid var(--honey);
}
.info-card h3 { color: var(--honey); }
.info-card ul { padding-left: 1.2em; }
.info-card a { color: var(--honey); }

.fun-facts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fun-facts li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(244,196,48,0.2);
}
.fun-facts li:last-child { border-bottom: 0; }

.info-list {
  list-style: none;
  padding: 0;
}
.info-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  border-bottom: 1px dashed var(--light-grey);
}
.info-list li::before {
  content: "🐝";
  position: absolute;
  left: 0;
  top: 0.6rem;
}
.info-list li:last-child { border-bottom: 0; }

/* ---------- Honning grid ---------- */
.honning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.honning-card {
  background: var(--white);
  border-radius: var(--r);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--light-grey);
  transition: transform .2s, box-shadow .2s;
}
.honning-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.honning-kilder {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--grey);
}

.honning-jar {
  width: 90px;
  margin: 0 auto 1rem;
  position: relative;
}
.jar-lid {
  height: 12px;
  background: linear-gradient(180deg, var(--honey-deep), var(--honey-dark));
  border-radius: 6px 6px 2px 2px;
  margin: 0 6px;
}
.jar-body {
  height: 100px;
  border-radius: 8px 8px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 2px solid rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}
.honning-lys .jar-body { background: linear-gradient(180deg, #fff7c2, #f4c430); }
.honning-gylden .jar-body { background: linear-gradient(180deg, #f4c430, #d4a017); }
.honning-mørk .jar-body { background: linear-gradient(180deg, #b8860b, #6b4408); color: #fff; }
.jar-body::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 25px;
  background: rgba(255,255,255,0.45);
  border-radius: 6px;
  filter: blur(1px);
}

/* ---------- Timeline ---------- */
.timeline {
  margin-top: 2rem;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--honey);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--r);
  border: 1px solid var(--light-grey);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 1.4rem;
  width: 16px;
  height: 16px;
  background: var(--black);
  border: 3px solid var(--honey);
  border-radius: 50%;
}
.timeline-month {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--honey-deep);
  letter-spacing: 0.05em;
}
.timeline-content h3 { margin: 0.25rem 0 0.5rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--black);
  color: var(--cream);
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--honey); }
.cta-band .btn-primary {
  background: var(--honey);
  color: var(--black);
}
.cta-band .btn-primary:hover { background: var(--amber); }

/* ---------- Contact ---------- */
.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--r);
  border-left: 4px solid var(--honey);
}
.contact-form-wrap {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--r);
  border: 1px solid var(--light-grey);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  background: var(--cream);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--honey);
  outline-offset: 1px;
  border-color: var(--honey-dark);
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid;
}
.alert-ok { background: #ecf7e6; border-color: #7cb342; color: #2e5d1c; }
.alert-err { background: #fdecec; border-color: #d9534f; color: #7a1c1a; }

/* ---------- Galleri ---------- */
.galleri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.galleri-item {
  margin: 0;
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--light-grey);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.galleri-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--honey);
}
.galleri-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--cream);
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.galleri-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.galleri-item:hover .galleri-trigger img { transform: scale(1.04); }
.galleri-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--soft-black);
  border-top: 1px solid var(--light-grey);
  background: var(--white);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-frame {
  margin: 0;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox-frame img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  background: var(--cream);
}
.lightbox-frame figcaption {
  color: var(--cream);
  font-size: 1rem;
  text-align: center;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,251,240,0.1);
  color: var(--cream);
  border: 2px solid rgba(255,251,240,0.3);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s, border-color .15s;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--honey);
  color: var(--black);
  border-color: var(--honey);
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox { padding: 1rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--cream);
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem 1.25rem 2rem;
}
.site-footer h3 { color: var(--honey); }
.site-footer a { color: var(--amber-light); }
.site-footer a:hover { color: var(--honey); }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { padding: 0.25rem 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  font-size: 0.9rem;
  color: rgba(255,251,240,0.6);
}
.footer-bottom p { margin: 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-inner > p { flex: 1; text-align: center; }
.admin-trigger {
  font-size: 0.85rem;
  color: rgba(255,251,240,0.5) !important;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.admin-trigger:hover {
  color: var(--honey) !important;
  border-color: var(--honey);
  background: rgba(244,196,48,0.08);
  text-decoration: none;
}
@media (max-width: 600px) {
  .footer-bottom-inner { justify-content: center; }
  .footer-bottom-inner > p { flex: none; }
}
