/* Bursdagsselskap – felles stil. Ingen eksterne avhengigheter. */
:root {
  --bg: #fffaf5;
  --surface: #ffffff;
  --text: #2b2233;
  --muted: #6b6075;
  --brand: #7a2e6e;        /* plomme */
  --brand-dark: #5a1f51;
  --accent: #ff6b5b;       /* korall */
  --sun: #ffc845;          /* sol */
  --mint: #d9f2ea;
  --line: #eadfe6;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(60, 20, 60, .08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Topp */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--brand); text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mint); color: var(--brand-dark); }
.nav a.cta { background: var(--brand); color: #fff; }
.nav a.cta:hover { background: var(--brand-dark); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }

@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}

/* Knapper */
.btn { display: inline-block; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #e9564a; color: #fff; }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; background: linear-gradient(160deg, #fff3e6 0%, #fde6ef 55%, #efe4fb 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.eyebrow { display: inline-block; background: var(--sun); color: var(--text); font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; }
.hero-card .chat { background: var(--bg); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; font-size: .95rem; }
.hero-card .chat.me { background: var(--mint); margin-left: 32px; }
.hero-card .chat strong { color: var(--brand); }
.confetti { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 48px 0 56px; } }

/* Seksjoner */
section { padding: 64px 0; }
.section-head { max-width: 44em; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .icon { font-size: 2rem; line-height: 1; margin-bottom: 12px; }
.card p { color: var(--muted); }
.card.feature { border-top: 6px solid var(--accent); }
.card.feature.alt { border-top-color: var(--brand); }
.card.feature.soft { border-top-color: var(--sun); }
a.card { text-decoration: none; color: inherit; transition: transform .15s ease; }
a.card:hover { transform: translateY(-3px); }
a.card h3 { color: var(--brand); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--mint); color: var(--brand-dark); margin-bottom: 10px; }
.tag.later { background: #fff0c7; color: #7a5a00; }

.band { background: var(--brand); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band p { color: #f2e2ef; }
.band .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); box-shadow: none; }
.band .card p { color: #f2e2ef; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun); font-weight: 800; margin-bottom: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Artikler */
.article { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.article .meta { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.article h2 { margin-top: 1.6em; font-size: 1.5rem; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.note { background: var(--mint); border-radius: 12px; padding: 16px 18px; margin: 24px 0; }
.note.warn { background: #fff0c7; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.checklist label { cursor: pointer; }
table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: #f7eef4; }
td.num, th.num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* Skjema */
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], input[type=date], select, textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid #d8cad3; border-radius: 10px; background: #fff; color: var(--text); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid #f3c6de; border-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.result { margin-top: 24px; }
.result[hidden] { display: none; }
.suggestion { display: grid; gap: 14px; }
.suggestion .item { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.suggestion .item span.price { font-weight: 700; white-space: nowrap; }
.suggestion .total { font-weight: 800; text-align: right; font-size: 1.1rem; }

/* Bunn */
.site-footer { background: #241b2b; color: #cbbfd2; padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .small { margin-top: 32px; border-top: 1px solid #3a2f42; padding-top: 18px; font-size: .85rem; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
}

/* Lokaleoversikt */
.lokale { display: flex; flex-direction: column; }
.lokale .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.lokale h3 { color: var(--brand); }
.lokale .lokale-info { margin-bottom: 14px; }
.lokale .lokale-lenke { align-self: flex-start; padding: 8px 16px; font-size: .9rem; margin-top: auto; }
.lokale .lokale-kilde { margin: 10px 0 0; font-size: .8rem; }

/* Innkjøp */
.innkjop-meny { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.innkjop-meny a { text-decoration: none; padding: 6px 14px; border-radius: 999px; background: var(--mint); color: var(--brand-dark); font-weight: 600; font-size: .9rem; }
.innkjop-kategori { margin-bottom: 40px; scroll-margin-top: 90px; }
.innkjop-kategori .innkjop-kategori { margin: 24px 0 0; padding-left: 16px; border-left: 4px solid var(--line); }
.butikk { display: flex; flex-direction: column; }
.butikk h4 { margin: 0 0 6px; font-size: 1.1rem; color: var(--brand); }
.butikk p { font-size: .95rem; }
.butikk .lokale-lenke { align-self: flex-start; padding: 8px 16px; font-size: .9rem; margin-top: auto; }
