/* ============================================================================
   SeoWeb Landing Pages — Base / shared primitives
   Hver side overstyrer fargevariabler + fonter i sin egen <style>.
   ========================================================================== */

:root {
  --ink: #0f1b2d;
  --ink-soft: #43536b;
  --muted: #6b7890;
  --line: #e3e8f0;
  --surface: #ffffff;
  --bg: #ffffff;
  --accent: #1f3a6d;        /* SeoWeb navy */
  --accent-ink: #ffffff;
  --accent-2: #2f6df0;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --shadow-sm: 0 1px 2px rgba(15,27,45,.06), 0 2px 8px rgba(15,27,45,.05);
  --shadow-md: 0 10px 30px rgba(15,27,45,.10);
  --shadow-lg: 0 24px 60px rgba(15,27,45,.16);
  --font-head: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-soft); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--accent-2); color: #fff; box-shadow: var(--shadow-md); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-block { width: 100%; }

/* generic cards / chips */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: color-mix(in oklab, var(--accent) 8%, transparent); color: var(--accent);
}

/* topbar */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.topbar__logo { height: 34px; width: auto; }
.topbar__actions { display: flex; align-items: center; gap: 14px; }
.topbar__tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; text-decoration: none; }

/* trust strip */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 5vw, 56px); }
.trust__item { display: flex; flex-direction: column; }
.trust__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1; letter-spacing: -.03em; }
.trust__label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.logo-pill { height: 46px; padding: 0 20px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; font-family: var(--font-head); font-weight: 700; color: var(--muted); background: var(--surface); letter-spacing: .02em; }

/* feature grid */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* testimonials */
.quote { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 27px); line-height: 1.32; letter-spacing: -.01em; }
.author { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.author__avatar { width: 44px; height: 44px; border-radius: 50%; background: color-mix(in oklab, var(--accent) 16%, #fff); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; color: var(--accent); }
.author__name { font-weight: 700; font-size: 15px; }
.author__role { font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-head); font-weight: 600; font-size: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .25s var(--ease); line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 22px 22px; color: var(--ink-soft); }

/* form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(24px, 3.5vw, 38px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.field label .req { color: #d4503b; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent);
}
.field--error input, .field--error select, .field--error textarea { border-color: #d4503b; }
.field__error { color: #d4503b; font-size: 13px; min-height: 0; }
.field--error .field__error { min-height: 16px; }
.field__hint { font-size: 13px; color: var(--muted); }
.brreg-note { font-size: 13px; min-height: 16px; font-weight: 600; }
.brreg-note--loading { color: var(--muted); }
.brreg-note--ok { color: #1c8a52; }
.brreg-note--err { color: #d4503b; }
.form-success { text-align: center; padding: 20px 0; }
.form-success__check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: color-mix(in oklab, #1c8a52 14%, #fff); color: #1c8a52; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.form-consent { font-size: 12.5px; color: var(--muted); }
.form-consent a { color: var(--accent); }

/* sticky mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; transform: translateY(110%); transition: transform .3s var(--ease); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: none; gap: 10px; background: var(--accent); box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
.callbar.is-visible { transform: translateY(0); }
.callbar .btn { flex: 1; }

/* footer */
.footer { padding: 56px 0 40px; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__contact a { text-decoration: none; }
.footer__legal { font-size: 13px; opacity: .7; margin-top: 28px; }

/* helpers */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-720 { max-width: 720px; }
.maxw-620 { max-width: 620px; }
.section-head { margin-bottom: clamp(34px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* placeholder media (drop real images later) */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--accent) 7%, #fff) 0 14px, color-mix(in oklab, var(--accent) 11%, #fff) 14px 28px);
  border: 1px dashed color-mix(in oklab, var(--accent) 30%, var(--line));
  display: flex; align-items: center; justify-content: center; min-height: 220px;
}
.ph span { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12.5px; color: color-mix(in oklab, var(--accent) 70%, #555); background: rgba(255,255,255,.7); padding: 5px 10px; border-radius: 6px; }

@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .callbar { display: flex; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn:hover { transform: none !important; }
}
