/* Fest og Flagermus – CVI v1 (see docs/design/Fest_og_Flagermus_CVI_og_Claude_brief.md) */

@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url("../fonts/fredoka-latin-500--4nBbmQ.woff2") format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url("../fonts/fredoka-latin-600-Z5VBliy.woff2") format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-UrOqPH6.woff2") format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-nKItA06.woff2") format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700-trpZehS.woff2") format('woff2'); }

:root {
  /* Brand colours */
  --ink: #27163C;          /* Natteblomme */
  --paper: #FFF9F2;        /* Vanilje */
  --violet: #7752E8;       /* Festlilla – CTA, links, focus */
  --violet-dark: #5B3BC4;
  --violet-soft: #EDE5FF;
  --coral: #FF6572;        /* Koral – accents only */
  --yellow: #FFD05A;       /* Solgul – accents only */
  --mint: #31CBB5;         /* Mynte – availability, slush */
  --mint-text: #147B6B;    /* Mint dark enough for text (AA) */
  --muted: #675E70;        /* Blød skifer */
  --line: #E8E0F0;         /* Lys lavendel */
  --white: #fff;
  --danger: #B42335;
  --danger-soft: #FFE8EA;
  --success-soft: #E3F8F3;
  --shadow: 0 22px 65px rgba(39, 22, 60, .11);
  --shadow-sm: 0 8px 24px rgba(39, 22, 60, .045);

  --font-head: 'Fredoka', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-card: 24px;
  --radius-input: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--violet-dark); }
p { margin-top: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-top: 0;
}
h1 { font-size: clamp(2.5rem, 5vw, 5rem); margin-bottom: .45em; }
h2 { font-size: clamp(2rem, 3.2vw, 3rem); margin-bottom: .45em; }
h3 { font-size: 1.5rem; margin-bottom: .4em; }
.muted, .lead { color: var(--muted); }
.lead { font-size: 1.15rem; line-height: 1.65; max-width: 36em; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.wrap-narrow { width: min(800px, calc(100% - 32px)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 249, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header .wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font: 600 23px/1 var(--font-head); letter-spacing: -.04em; }
.logo img { width: 72px; height: auto; flex: none; display: block; }
.logo small { display: block; font: 700 10.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--violet-dark); margin-top: 5px; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--violet-dark); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  border: 0; border-radius: 999px;
  display: inline-flex; gap: 10px; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 15px 24px; text-decoration: none; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(61, 28, 125, .16); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-dark); }
.btn-secondary { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .icon { width: 18px; height: 18px; }
.textlink { font-weight: 700; color: var(--violet-dark); text-decoration: none; }
.textlink:hover { text-decoration: underline; }

.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #F0E8FF; color: #5B3BC4; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow .dot { width: 8px; height: 8px; background: var(--coral); border-radius: 50%; }
.kicker { color: var(--violet-dark); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .13em; margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.02fr; gap: 36px; align-items: center; padding: 40px 0 90px; }
.hero h1 .highlight { color: var(--violet); position: relative; white-space: nowrap; }
.hero h1 .highlight::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 10px; border-bottom: 6px solid var(--yellow); border-radius: 50%; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 26px; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; color: var(--muted); font-size: 14px; font-weight: 700; list-style: none; padding: 0; margin: 0; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .tick { color: var(--mint-text); }
.hero-visual { min-height: 500px; position: relative; background: var(--violet-soft); border-radius: 50% 44% 42% 39%; overflow: hidden; isolation: isolate; display: grid; place-items: end center; }
.hero-visual::before { content: ""; position: absolute; width: 480px; height: 400px; background: #DBCAFF; left: 10%; top: 18%; border-radius: 50%; filter: blur(30px); z-index: -1; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-visual .machines { width: 92%; filter: drop-shadow(0 26px 20px rgba(39, 22, 60, .17)); }
.hero-photos { position: absolute; inset: 8% 6% 6%; display: flex; gap: 4%; align-items: flex-end; justify-content: center; }
.hero-photos img { position: static; width: 46%; height: 88%; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); background: #fff; }
.hero-photos img:nth-child(2) { height: 72%; }
.hero-photos.count-1 img { width: 80%; height: 92%; }
.price-pill { position: absolute; border-radius: 15px; background: #fff; padding: 11px 18px; box-shadow: var(--shadow); font-weight: 700; z-index: 3; text-decoration: none; color: var(--ink); }
.price-pill b { color: var(--violet-dark); }
.price-pill.p1 { left: 5%; top: 20%; transform: rotate(-6deg); }
.price-pill.p2 { right: 4%; bottom: 14%; transform: rotate(5deg); }
.confetti { position: absolute; width: 14px; height: 14px; border-radius: 50%; }
.confetti.c1 { background: var(--coral); left: 14%; top: 10%; }
.confetti.c2 { background: var(--yellow); right: 16%; top: 14%; width: 18px; height: 18px; }
.confetti.c3 { background: var(--mint); left: 9%; bottom: 20%; width: 10px; height: 10px; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-intro { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.section-intro p { color: var(--muted); font-size: 1.1rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.product-card { background: #fff; border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 150px; gap: 16px; position: relative; }
.product-card h3 { margin: 12px 0 6px; font-size: 1.7rem; }
.product-card p { color: var(--muted); font-size: 15.5px; }
.product-card .art { align-self: center; border-radius: 22px; background: #D8FAF2; aspect-ratio: 3/4; display: grid; place-items: center; overflow: hidden; }
.product-card .art img { width: 100%; height: 100%; object-fit: cover; }
.product-card .art svg { width: 70%; }
.accent-yellow .art, .accent-yellow.art { background: #FFF1CA; }
.accent-coral .art, .accent-coral.art { background: #FFE6E8; }
.accent-violet .art, .accent-violet.art { background: var(--violet-soft); }
.price { font: 600 1.75rem/1.1 var(--font-head); letter-spacing: -.01em; margin: 14px 0; }
.price small { font: 700 14px var(--font-body); color: var(--muted); }
.price-note { font-size: 14px; color: var(--muted); margin: -6px 0 14px; }
.tag { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 6px 11px; background: var(--success-soft); color: var(--mint-text); display: inline-flex; }
.accent-yellow .tag { background: #FFF0DF; color: #8A4815; }
.card-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.how { background: var(--ink); color: #fff; border-radius: 40px; padding: 64px; }
.how p { color: #DAD1E4; }
.how .kicker { color: var(--yellow); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font: 600 25px var(--font-head); transform: rotate(-8deg); }
.steps h3 { font-size: 1.4rem; margin: 16px 0 6px; }
.steps p { margin: 0; font-size: 15px; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0; }
.checklist li { margin: 12px 0; font-weight: 700; display: flex; gap: 10px; }
.checklist li::before { content: "✓"; color: var(--mint-text); font-weight: 700; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.info-card { background: #fff; border: 1px solid var(--line); padding: 28px; border-radius: 22px; }
.info-card h3 { font-size: 1.35rem; display: flex; gap: 10px; align-items: center; }
.info-card h3 svg { width: 24px; height: 24px; color: var(--violet); flex: none; }
.info-card p:last-child { margin-bottom: 0; }

.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid #D8CBDE; padding: 18px 4px; }
.faq summary { font-size: 1.05rem; font-weight: 700; cursor: pointer; list-style-position: outside; }
.faq details p { padding-top: 10px; margin-bottom: 0; color: var(--muted); }

.prose { max-width: 720px; }
.prose p, .prose li { color: #3E3349; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.page-head { padding: 48px 0 16px; }

/* ---------- Product page ---------- */
.product-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 32px 0 56px; }
.product-photo { border-radius: 32px; background: #D8FAF2; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-photo svg { width: 45%; }
.facts { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.accent-yellow .facts li::before { background: var(--yellow); }
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.price-table th, .price-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }

/* ---------- Forms & booking ---------- */
.booking-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding: 24px 0 64px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; }
.panel h2 .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--yellow); font-size: 18px; flex: none; }
.summary { position: sticky; top: 100px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice .box { display: block; border: 1.5px solid var(--line); padding: 16px; border-radius: 16px; background: #fff; transition: border-color .15s, background .15s; }
.choice .box strong { display: block; font-size: 1.05rem; }
.choice .box small { color: var(--muted); font-weight: 500; }
.choice input:checked + .box { border-color: var(--violet); background: #F4EFFF; box-shadow: inset 0 0 0 1px var(--violet); }
.choice input:checked + .box strong::after { content: " ✓"; color: var(--violet-dark); }
.choice input:focus-visible + .box { outline: 3px solid var(--violet); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { color: #4E4559; font-weight: 700; font-size: 14px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date],
.field input[type=number], .field input[type=password], .field select, .field textarea {
  width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid #CFC5DB; border-radius: var(--radius-input); background: #fff; font-size: 16px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field .help { font-size: 13px; color: var(--muted); }
.field-error { color: var(--danger); font-size: 14px; font-weight: 700; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--violet); flex: none; }
.radio-row { display: flex; flex-direction: column; gap: 10px; }

.alert { border-radius: 16px; padding: 14px 18px; margin-bottom: 18px; font-weight: 500; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: var(--danger-soft); color: #7A1020; border: 1px solid #F5B8BF; }
.alert-success { background: var(--success-soft); color: #0E5A4E; border: 1px solid #A8E7DA; }
.alert-info { background: #F4EFFF; color: #3D2780; border: 1px solid #DCCFFF; }

/* Calendar */
.calendar { margin-top: 18px; }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.calendar-head h3 { margin: 0; font-size: 1.25rem; text-transform: capitalize; }
.calendar-head button { background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; font-size: 18px; }
.calendar-head button[disabled] { opacity: .35; cursor: not-allowed; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-grid .dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.day {
  border: 1px solid transparent; border-radius: 12px; background: none; min-height: 52px; padding: 4px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-weight: 700; font-size: 15px;
}
.day .state { font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.day.free { background: var(--success-soft); color: var(--ink); }
.day.free .state { color: var(--mint-text); }
.day.free:hover { border-color: var(--mint-text); }
.day.booked { background: #F3EEF5; color: #9A90A3; text-decoration: line-through; cursor: not-allowed; }
.day.booked .state { text-decoration: none; }
.day.closed { color: #B9B0C2; cursor: not-allowed; }
.day.in-range { background: #E4DAFF; color: var(--ink); }
.day.selected { background: var(--violet); color: #fff; }
.day.selected .state { color: #fff; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.calendar-legend span { display: inline-flex; gap: 6px; align-items: center; }
.calendar-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.calendar-status { min-height: 1.5em; font-size: 14px; font-weight: 700; margin-top: 8px; }

.accessory { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.accessory:last-child { border-bottom: 0; }
.accessory .meta small { display: block; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid #CFC5DB; border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: none; width: 40px; height: 40px; font-size: 20px; font-weight: 700; color: var(--violet-dark); }
.qty input { width: 44px; border: 0; text-align: center; font-weight: 700; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.accessory-group[hidden] { display: none; }
.accessory-group h3 { font-size: 1.1rem; margin: 18px 0 4px; }

.summary-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.summary-lines li span:first-child { color: var(--muted); }
.summary-lines li span:last-child { white-space: nowrap; text-align: right; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 14px; margin: 12px 0 16px; font-weight: 700; }
.summary-total strong { font: 600 2rem var(--font-head); }
.summary-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.summary-terms { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; background: var(--success-soft); border-radius: 12px; padding: 10px 12px; }
.summary-terms summary { cursor: pointer; font-weight: 700; color: var(--mint-text); }
.summary-terms ul { padding-left: 18px; margin: 8px 0; }
.summary-message { font-size: 14px; font-weight: 700; color: var(--danger); }

.status-badge { display: inline-flex; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.status-pending_payment { background: #FFF3D6; color: #7A5300; }
.status-confirmed, .status-completed { background: var(--success-soft); color: var(--mint-text); }
.status-cancelled, .status-expired { background: #F1EDF3; color: #5E5468; }
.payment-box { background: #FFF8E6; border: 1px solid #F3DFA6; border-radius: 18px; padding: 20px; }
.payment-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 10px 0; }
.payment-box dt { color: var(--muted); }
.payment-box dd { margin: 0; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 58px 0 28px; margin-top: 70px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer p, .site-footer a, .site-footer li { color: #DDD2E8; }
.site-footer h2 { font-size: 1.6rem; }
.footer-mascot { width: 96px; height: auto; display: block; margin-bottom: 10px; background: #FFF9F2; border-radius: 18px; padding: 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .meta { border-top: 1px solid #ffffff24; padding-top: 24px; margin-top: 40px; font-size: 13px; color: #BBAFC9; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .meta a { color: #BBAFC9; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; }
  .split, .product-hero { grid-template-columns: 1fr; gap: 28px; }
  .booking-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .how { padding: 44px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .header-cta { display: none; }
  .logo img { width: 58px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .product-card { grid-template-columns: 1fr 110px; padding: 20px; }
  .how { padding: 36px 24px; border-radius: 28px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .fields { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .day { min-height: 46px; font-size: 14px; }
  .day .state { font-size: 9px; }
  .price-pill { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
