/* ==========================================================================
   Drammen Bye – felles designsystem for forside, aktive verv og personvern.
   Selvstendig; bruker ikke Webflow-CSS (normalize/framework/drammenbye).
   ========================================================================== */
:root {
  --ink: #1b1d1f;
  --ink-soft: #50565c;
  --accent: #0a66c2;
  --accent-2: #1277d4;
  --bg: #faf8f5;
  --surface: #ffffff;
  --dark: #16181a;
  --line: rgba(27,29,31,.10);
  --line-soft: rgba(27,29,31,.06);
  --shadow-sm: 0 1px 2px rgba(27,29,31,.05), 0 6px 18px rgba(27,29,31,.04);
  --shadow-md: 0 8px 30px rgba(27,29,31,.10);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: "Nunito", system-ui, sans-serif; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
p, li, .lead, .card p, .who, .answer, .badge .lbl, .stat .v { overflow-wrap: break-word; }
.hero-grid > *, .about-grid > *, .contact-grid > *, .foot-grid > *,
.cards > *, .quote-grid > *, .stats-grid > * { min-width: 0; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 14px; font-weight: 700; font-size: 1rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(10,102,194,.28); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-2); box-shadow: 0 12px 26px rgba(10,102,194,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* NAV */
header.site { position: sticky; top: 0; z-index: 50; transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s; }
header.site.scrolled { background: rgba(250,248,245,.85); backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-weight: 500; color: var(--ink-soft); font-size: .98rem; transition: color .15s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* HERO */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 88% 8%, rgba(10,102,194,.10), transparent 70%),
    radial-gradient(50% 50% at 5% 100%, rgba(27,29,31,.05), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); margin: 1.1rem 0 1.2rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 4.3; background: #ddd;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; left: -18px; bottom: 28px; background: var(--surface);
  border-radius: 16px; padding: 1rem 1.25rem; box-shadow: var(--shadow-md); border: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: .85rem;
}
.badge .num { font-family: "Nunito", sans-serif; font-size: 2.1rem; line-height: 1; color: var(--accent); font-weight: 600; }
.badge .lbl { font-size: .9rem; color: var(--ink-soft); font-weight: 500; line-height: 1.25; }

/* PAGE HEAD (subsider) */
.page-head { padding: clamp(44px, 6vw, 88px) 0 clamp(20px, 3vw, 40px); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 85% 0%, rgba(10,102,194,.10), transparent 70%);
}
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin: 1rem 0 1rem; max-width: 20ch; }
.page-head p { color: var(--ink-soft); font-size: 1.12rem; max-width: 54ch; }

/* STAT STRIP */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1.5rem; text-align: center; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; }
.stat .k { font-family: "Nunito", sans-serif; font-size: 1.7rem; color: var(--ink); font-weight: 600; }
.stat .v { font-size: .92rem; color: var(--ink-soft); margin-top: .2rem; }

/* SECTION */
section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 1rem 0 .9rem; }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; }

/* SERVICES / CARDS */
.services { background: var(--surface); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 2rem 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(10,102,194,.12); color: var(--accent); margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: .9rem; }
.card ul { list-style: none; }
.card li { position: relative; padding: .42rem 0 .42rem 1.4rem; color: var(--ink-soft); font-size: .98rem; border-top: 1px solid var(--line-soft); }
.card li:first-child { border-top: 0; }
.card li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card p { color: var(--ink-soft); }

/* VERV-KORT (aktive verv) */
.verv-card { position: relative; overflow: hidden; }
.verv-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.verv-card h2 { font-size: 1.2rem; line-height: 1.35; margin-bottom: .7rem; }
.verv-card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }

/* ABOUT (dark panel) */
.about { background: var(--dark); color: #f3f1ee; position: relative; overflow: hidden; }
.about::after { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 90% 0%, rgba(10,102,194,.16), transparent 65%); pointer-events: none; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.about .eyebrow { color: var(--accent-2); }
.about h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 1rem 0 1.3rem; }
.about p { color: #c8c6c2; font-size: 1.08rem; margin-bottom: 1.1rem; }
.about .creds { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.about .chip { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; color: #e8e6e2; font-weight: 500; }
.about-media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5/5.6; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* TESTIMONIALS */
.quotes { background: var(--bg); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.quote .mark { font-family: "Nunito", sans-serif; font-size: 3.4rem; line-height: .6; color: var(--accent); height: 1.6rem; }
.quote p { color: var(--ink); margin: .6rem 0 1.4rem; font-size: 1.02rem; }
.quote .who { margin-top: auto; font-size: .92rem; color: var(--ink-soft); }
.quote .who strong { color: var(--ink); display: block; font-weight: 600; }
.quote-viewport { overflow: hidden; transition: height .5s cubic-bezier(.22,.61,.36,1); }
.quote-track { display: flex; align-items: flex-start; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.quote-page { flex: 0 0 100%; width: 100%; }
.quote-nav { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 2.6rem; }
.qnav { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: border-color .18s, color .18s, transform .18s; }
.qnav:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.quote-dots { display: flex; gap: .55rem; }
.qdot { position: relative; width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .18s, transform .18s; }
.qdot::after { content: ""; position: absolute; inset: -11px; }
.qdot.is-active { background: var(--accent); transform: scale(1.3); }

/* FAQ */
.faq { background: var(--surface); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: .35rem 0; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.25rem 0; font-family: "Nunito", sans-serif; font-size: 1.25rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: .2s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: var(--ink); transition: .25s; }
.faq summary .plus::before { width: 12px; height: 2px; top: 14px; left: 9px; }
.faq summary .plus::after { width: 2px; height: 12px; top: 9px; left: 14px; }
.faq details[open] summary .plus { background: var(--accent); border-color: var(--accent); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: #fff; }
.faq details[open] summary .plus::after { transform: rotate(90deg); }
.faq .answer { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 90%; }

/* CONTACT */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 1rem 0 1rem; }
.contact .info-list { list-style: none; margin-top: 1.8rem; }
.contact .info-list li { display: flex; gap: .8rem; align-items: center; padding: .55rem 0; color: var(--ink-soft); }
.contact .info-list .ico { color: var(--accent); flex: 0 0 auto; }
.form { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem; background: var(--bg); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10,102,194,.14); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn-primary { width: 100%; justify-content: center; margin-top: .4rem; }
.feedback { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; font-size: .97rem; }
.feedback[hidden] { display: none; }
.feedback.ok { background: #e7f6ec; color: #1b5e2f; }
.feedback.err { background: #fbeaea; color: #8a2020; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* LEGAL (personvern) */
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.legal-inner { max-width: 780px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 1rem 0 .4rem; }
.legal .legal-updated { color: var(--ink-soft); font-size: .95rem; margin: 0 0 2.5rem; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 2.6rem 0 .75rem; }
.legal h3 { font-family: "Nunito", sans-serif; font-weight: 700; font-size: 1.12rem; margin: 1.6rem 0 .5rem; }
.legal p { line-height: 1.75; margin: 0 0 1rem; color: var(--ink-soft); }
.legal ul { margin: 0 0 1.25rem; padding-left: 1.3rem; line-height: 1.75; color: var(--ink-soft); }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal strong { color: var(--ink); }

/* FOOTER */
footer.site-footer { background: var(--dark); color: #c8c6c2; padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.10); }
.foot-grid h4 { font-family: "Nunito", sans-serif; color: #fff; font-size: 1.5rem; font-weight: 500; margin-bottom: .8rem; }
.foot-grid a { color: #c8c6c2; transition: color .15s; }
.foot-grid a:hover { color: var(--accent-2); }
.foot-col .label { color: #fff; font-weight: 600; margin-bottom: .9rem; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; }
.foot-col ul { list-style: none; display: grid; gap: .55rem; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 24px; font-size: .88rem; color: #8b8884; }
.foot-bottom a { color: inherit; }
.foot-credit a { color: #a9a7a3; text-decoration: underline; }
.foot-credit a:hover { color: var(--accent-2); }
.foot-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; transition: .18s; }
.foot-social a:hover { background: var(--accent); border-color: var(--accent); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .about-media { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 16px; right: 16px;
    background: var(--surface); padding: 1.2rem; border-radius: 16px; box-shadow: var(--shadow-md); gap: 1rem;
  }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { display: block; background: var(--accent); color: #fff; text-align: center; padding: .75rem 1rem; border-radius: 10px; font-weight: 700; }
  .cards, .cards.cols-2, .quote-grid, .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line-soft); }
  .stat:first-child { border-top: 0; }
  .badge { left: 8px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
