/* ═══════════════════════════════════════════
   Bakkens Børn — Fælles CSS  (style.css)
   ═══════════════════════════════════════════ */

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

:root {
  --bg:    #F7F3EC;
  --green: #3A6B35;
  --earth: #A0522D;
  --sun:   #D4A843;
  --white: #ffffff;
  --text:  #2d2a24;
  --muted: #6b6456;
}

html { scroll-behavior: smooth; }

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

/* ── NAV ── */
nav {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 130px;
}
.nav-logo img { height: 110px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }

/* ── HERO (fælles base for undersider) ── */
.hero {
  background: linear-gradient(to bottom, #2d5a2a, var(--green));
  color: var(--white);
  padding: 5rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  opacity: 0.08;
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  position: relative;
}
.hero p {
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto;
  opacity: 0.92;
  position: relative;
}
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
}

/* ── SECTIONS ── */
section { padding: 4.5rem 1.5rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--earth);
  margin-bottom: 0.4rem;
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--green);
  margin-bottom: 1.2rem;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

/* ── KNAPPER ── */
.btn {
  display: inline-block;
  background: var(--sun);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.btn-groen {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(58,107,53,0.25);
}
.btn-groen:hover { box-shadow: 0 6px 18px rgba(58,107,53,0.3); }

/* ── WAVE DIVIDER ── */
.wave { line-height: 0; }
.wave svg { display: block; width: 100%; }

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}
footer strong { color: var(--white); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}
.hamburger.aaben span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.aaben span:nth-child(2) { opacity: 0; }
.hamburger.aaben span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── RESPONSIVE NAV ── */
@media (max-width: 700px) {
  .hamburger { display: flex; position: absolute; right: 1.5rem; top: 1.2rem; }
  .nav-inner {
    height: auto;
    min-height: 140px;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    justify-content: center;
    position: relative;
  }
  .nav-logo img { height: 125px; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 0.5rem;
  }
  .nav-links.aaben { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(0,0,0,0.06); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.85rem 0.25rem; font-size: 1rem; }
}
