/* ===========================
   SKADEKRAV.NO — style.css
   =========================== */

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

:root {
  --clr-bg: #ffffff;
  --clr-text: #1a1a1a;
  --clr-text-muted: #555;
  --clr-accent: #d97706;
  --clr-accent-dark: #b45309;
  --clr-soft: #fafaf8;
  --clr-border: #e5e5e5;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(0,0,0,.08);
  --max-w: 1120px;
  --font: 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 1rem;
  line-height: 1.7;
}

/* CONTAINER */
.container { width: 90%; max-width: var(--max-w); margin-inline: auto; }
.container.narrow { max-width: 720px; }

/* SECTION */
.section { padding: 4rem 0; }
.section-soft { background: var(--clr-soft); }

/* TYPOGRAPHY */
h1 { font-size: clamp(2.1rem, 5.5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; margin-top: 1.5rem; }
p { margin-bottom: 1rem; color: var(--clr-text); }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--clr-text-muted); margin-bottom: 1.5rem; }

ul.event-list { padding-left: 1.25rem; margin-bottom: 1rem; }
ul.event-list li { margin-bottom: .4rem; }

/* TOPBAR */
.topbar {
  background: var(--clr-accent);
  color: #fff;
  height: 36px;
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  padding: 0 1rem;
  white-space: nowrap; overflow: hidden;
}
.topbar span { opacity: .9; }
@media (max-width: 600px) {
  .topbar { gap: .85rem; font-size: .72rem; }
}

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  padding: .75rem 0;
}
.nav-wrap { display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--clr-text); }
.logo img { border-radius: 6px; }
.main-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--clr-text-muted); font-weight: 600; font-size: .95rem; transition: color .2s; }
.main-nav a:hover { color: var(--clr-accent); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--clr-border); border-radius: 6px; padding: .4rem .8rem; font-family: var(--font); font-size: .9rem; cursor: pointer; }

/* HERO */
.hero { padding: 5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-content { }
.hero-kicker { font-size: 1.1rem; font-weight: 700; color: var(--clr-accent); margin-bottom: .5rem; }
.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.trust-line { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.trust-line span {
  display: inline-flex; align-items: center;
  border: 1px solid #f0b429; border-radius: 999px;
  padding: .3rem .85rem;
  background: #fffbeb; color: #92400e;
  font-size: .88rem; font-weight: 700;
}
.hero-image-wrap { border-radius: var(--radius); overflow: hidden; }
.hero-image-wrap img { width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* Hero split before/after */
.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  height: clamp(260px, 36vw, 460px);
}
.hero-split-half { position: relative; overflow: hidden; }
.hero-split-half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-split-badge {
  position: absolute; bottom: .7rem; left: 50%; transform: translateX(-50%);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .7rem; border-radius: 999px; white-space: nowrap;
}
.hero-split-badge.foer  { background: rgba(0,0,0,.55); color: #fff; }
.hero-split-badge.etter { background: var(--clr-accent); color: #fff; }
.hero-split-divider {
  position: absolute; top: 0; bottom: 0; left: calc(50% - 2px); width: 4px;
  background: var(--clr-accent); z-index: 2;
}
.hero-split-divider::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  background: var(--clr-accent);
  border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--clr-accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--clr-accent-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 2px solid var(--clr-accent);
  color: var(--clr-accent);
}
.btn-ghost:hover { background: var(--clr-accent); color: #fff; }
.btn-block { width: 100%; text-align: center; }

/* STATS */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat-num { display: block; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--clr-accent); }
.stat-label { font-size: .9rem; color: var(--clr-text-muted); }

/* STEPS */
.steps.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 2rem 0; }
.step { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; background: var(--clr-accent); color: #fff; border-radius: 50%; font-weight: 800; font-size: .9rem; margin-bottom: .75rem; }
.step p { margin: 0; font-size: .95rem; }

/* PAYMENT BOX */
.payment-box {
  background: #fff8ed;
  border-left: 4px solid var(--clr-accent);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}
.payment-box h3 { margin-top: 0; color: var(--clr-accent-dark); }

/* CONTACT FORM */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: start; }
.form-card { background: var(--clr-soft); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-intro { font-size: .95rem; color: var(--clr-text-muted); margin-bottom: 1.5rem; }
.form-speed { font-weight: 700; color: var(--clr-accent); }
.form-trust { font-size: .85rem; color: var(--clr-text-muted); margin-top: .75rem; text-align: center; }
.privacy-link { font-size: .9rem; color: var(--clr-text-muted); }
.privacy-link a { color: var(--clr-accent); }
.field-note { font-size: .85rem; color: var(--clr-text-muted); background: #fff3cd; border-radius: 6px; padding: .5rem .75rem; margin-top: .25rem; }

label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; margin-top: 1rem; }
label:first-of-type { margin-top: 0; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1px solid var(--clr-border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--clr-accent); }
textarea { resize: vertical; }
input[type="file"] { padding: .4rem; font-size: .9rem; }
.check-label { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; margin-top: 1rem; cursor: pointer; }
.check-label input { margin-top: .25rem; flex-shrink: 0; width: auto; }

/* ── Progressive form ──────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.form-progress-wrap { height: 6px; background: var(--clr-border); border-radius: 999px; margin-bottom: .75rem; overflow: hidden; }
.form-progress-bar { height: 100%; background: var(--clr-accent); border-radius: 999px; transition: width .4s ease; width: 0; }
.form-step-counter { font-size: .82rem; color: var(--clr-text-muted); margin-bottom: 1rem; }

.form-step { display: none; }
.form-step.active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-question { font-size: 1.15rem; font-weight: 700; color: var(--clr-text); margin-bottom: .75rem; margin-top: 0; }
.form-nav { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; }

/* ── Testimonials ──────────────────────────────────── */
.section-lead { color: var(--clr-text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }
.testimonials-grid { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.testimonial-card { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.testimonial-card blockquote { margin: 0 0 1rem; font-size: 1rem; line-height: 1.65; color: var(--clr-text); font-style: italic; position: relative; padding-left: 1.4rem; }
.testimonial-card blockquote::before { content: '\201C'; position: absolute; left: 0; top: -.15rem; font-size: 2.2rem; line-height: 1; color: var(--clr-accent); font-style: normal; }
.testimonial-card footer { display: flex; align-items: center; gap: .5rem; }
.testimonial-card footer strong { color: var(--clr-text); font-size: .95rem; }
.testimonial-card footer span { color: var(--clr-text-muted); font-size: .88rem; }
.testimonial-card footer span::before { content: '\00B7'; margin-right: .35rem; }
@media (min-width: 760px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Før og etter ──────────────────────────────────── */
.foer-etter-grid { display: grid; gap: 2rem; margin-top: 1.5rem; }
.foer-etter-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.foer-etter-col { position: relative; }
.foer-etter-col img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); display: block; }
.foer-etter-label {
  position: absolute; top: .6rem; left: .6rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .65rem; border-radius: 999px; z-index: 1;
}
.foer-etter-label.foer  { background: #fee2e2; color: #991b1b; }
.foer-etter-label.etter { background: #dcfce7; color: #166534; }
@media (min-width: 760px) { .foer-etter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .foer-etter-pair { grid-template-columns: 1fr; } .foer-etter-col img { height: 190px; } }

/* Storm illustration */
.krav-storm-img { width: 100%; max-width: 520px; height: 210px; object-fit: cover; border-radius: var(--radius); margin: 1.25rem 0; display: block; }

/* FAQ */
#faq h3 { color: var(--clr-text); }

/* FOOTER */
.site-footer { background: var(--clr-text); color: #ccc; padding: 2.5rem 0; font-size: .9rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-size: 1rem; }
.footer-brand img { filter: brightness(0) invert(1); border-radius: 4px; }
.site-footer a { color: #ccc; text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-wrap { order: -1; max-height: 300px; overflow: hidden; }
  .steps.four { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 600px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--clr-border); padding: 1rem 5%; gap: 1rem; }
  .menu-toggle { display: block; }
  .steps.four { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .hero { padding: 2.5rem 0 2rem; }
}
