/* ==========================================================================
   Førstehjælpskassen — style.css
   Custom-kodet design. Ingen frameworks, ingen afhængigheder ud over
   Google Fonts (Fraunces + Inter).
   ========================================================================== */

:root {
  --navy: #0d2438;
  --navy-2: #123350;
  --blue: #1d6fb8;
  --blue-dark: #124b7d;
  --blue-pale: #eaf2f9;
  --red: #c1443a;
  --red-pale: #fbeceb;
  --ink: #16202b;
  --grey: #56626d;
  --grey-light: #f5f6f8;
  --border: #e4e7eb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1180px;
  --shadow-sm: 0 2px 10px rgba(13, 36, 56, 0.06);
  --shadow: 0 10px 34px rgba(13, 36, 56, 0.10);
  --shadow-lg: 0 22px 60px rgba(13, 36, 56, 0.16);
  --font-display: "Fraunces", "Georgia", serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
svg { display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

section { padding: 88px 0; position: relative; }
section.tight { padding: 56px 0; }

h1, h2, h3, h4 {
  margin: 0 0 18px;
  line-height: 1.18;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); color: var(--navy); }
h3 { font-size: 1.28rem; color: var(--navy); font-weight: 600; }
p { margin: 0 0 16px; color: var(--grey); }
.lead { font-size: 1.18rem; color: var(--ink); }
strong { color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--red);
  display: inline-block;
}

.center { text-align: center; }
.center .eyebrow::before { display: none; }
.narrow { max-width: 740px; margin-left: auto; margin-right: auto; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29,111,184,0.32); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--navy);
  color: #c9d6e0;
  font-size: 0.82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #dfe8ef; }
.topbar a:hover { color: white; }
.topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar-links span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links svg { width: 14px; height: 14px; }
@media (max-width: 700px) { .topbar-links span.hide-mobile { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--navy); }
.brand-mark {
  height: 40px; width: auto;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { font-weight: 500; font-size: 0.95rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red);
}
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 16px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: 0; }
}

/* ---------- Certification badge ---------- */
.cert-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--grey-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.cert-badge img { height: 56px; width: auto; flex-shrink: 0; }
.cert-badge span { font-size: 0.85rem; color: var(--grey); line-height: 1.5; }
.cert-badge strong { color: var(--navy); }

/* ---------- Decorative backgrounds ---------- */
.blob-field { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.35; }
.blob-blue { background: #7db4e2; width: 460px; height: 460px; top: -160px; right: -120px; }
.blob-red { background: #eab3ac; width: 360px; height: 360px; bottom: -140px; left: -100px; opacity: 0.28; }
.dot-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(13,36,56,0.10) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}
.hero > .container, .hero-page > .container { z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--blue-pale) 0%, var(--white) 100%);
  padding: 76px 0 92px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 52px;
  align-items: center;
}
.hero-page {
  position: relative;
  padding: 64px 0 56px;
  background: var(--navy);
  color: #cfdae3;
  overflow: hidden;
}
.hero-page::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(720px 320px at 15% 0%, rgba(29,111,184,0.35), transparent 60%);
}
.hero-page h1 { color: white; }
.hero-page .eyebrow { color: #ffb199; }
.hero-page .lead { color: #c9d6e0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { clip-path: none; }
}

/* ---------- Trust bar ---------- */
.trust-bar { padding: 0; margin-top: -46px; position: relative; z-index: 2; }
.trust-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 22px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: 0.95rem; color: var(--navy); }
.trust-item span { font-size: 0.82rem; color: var(--grey); }
@media (max-width: 900px) {
  .trust-card { grid-template-columns: 1fr 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .trust-card { grid-template-columns: 1fr; }
}

/* ---------- Image placeholders ---------- */
.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--grey-light);
  box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo:hover img { transform: scale(1.035); }
.photo-frame { position: relative; }
.photo-frame::before {
  content: "";
  position: absolute; inset: -12px; z-index: -1;
  border: 2px solid var(--blue-pale);
  border-radius: calc(var(--radius) + 8px);
}
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-3-2 { aspect-ratio: 3 / 2; }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card .photo { margin: -30px -30px 22px; border-radius: var(--radius) var(--radius) 0 0; }

.icon-chip {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-chip svg { width: 26px; height: 26px; }
.icon-chip.red { background: var(--red-pale); color: var(--red); }

.check-list { list-style: none; margin: 0 0 20px; padding: 0; }
.check-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink);
}
.check-list li svg {
  width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px;
  color: var(--blue);
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; margin: 24px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); }
th { background: var(--navy); color: white; font-weight: 600; font-family: var(--font-display); font-size: 1.02rem; }
tr:nth-child(even) td { background: var(--grey-light); }
tr:last-child td { border-bottom: none; }

/* ---------- Section variants ---------- */
.section-alt { background: var(--grey-light); }
.section-navy { background: var(--navy); color: #cfdae3; }
.section-navy h2 { color: white; }
.section-navy p { color: #b9c6d1; }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(560px 260px at 85% 15%, rgba(29,111,184,0.45), transparent 60%),
              radial-gradient(420px 220px at 10% 100%, rgba(193,68,58,0.35), transparent 60%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: white; }
.cta-banner p { color: rgba(255,255,255,0.82); }
.cta-banner .btn-outline { color: white; border-color: rgba(255,255,255,0.6); }
.cta-banner .btn-outline:hover { background: white; color: var(--navy); border-color: white; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 22px 46px;
  color: var(--ink);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute; left: 14px; top: 30px; bottom: 0;
  width: 1px; background: var(--border);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 29px; height: 29px; border-radius: 50%;
  background: var(--blue); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(29,111,184,0.35);
}

/* ---------- Quote / testimonial ---------- */
.quote-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.quote-mark { font-family: var(--font-display); font-size: 2.6rem; color: var(--blue); line-height: 1; margin-bottom: 6px; }

/* ---------- Form ---------- */
.contact-form { display: grid; gap: 18px; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
input, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.98rem;
  background: var(--grey-light);
  transition: border-color 0.2s ease, background 0.2s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.85rem; color: var(--grey); }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; }
.form-status.success { background: #e6f4ea; color: #1e6b34; }
.form-status.error { background: var(--red-pale); color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: #081521; color: #a9b7c3; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; color: white; margin-bottom: 12px; }
.footer-brand img { height: 38px; width: auto; flex-shrink: 0; display: block; }
.site-footer h4 { color: white; font-size: 1rem; margin-bottom: 14px; font-family: var(--font-display); font-weight: 600; }
.site-footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.85rem; color: #74838f;
}
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-row a svg { width: 17px; height: 17px; }
.social-row a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.contact-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.contact-line svg { width: 17px; height: 17px; color: var(--blue); flex-shrink: 0; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.15); filter: grayscale(0.15); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }
