/* dafis.dk – one stylesheet, no framework. Colours are carried over from the old Divi theme. */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/dm-sans.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/poppins-700.woff2') format('woff2'); }

:root {
  --navy: #02233c;
  --navy-soft: #344f63;
  --blue: #1a37d3;
  --blue-dark: #142aa3;
  --teal: #7ebec5;
  --mist: #f2f5f8;
  --white: #fff;
  --text: #33424e;
  --muted: #5d6b76;
  --line: #dde3e9;

  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(2, 35, 60, 0.08);
  --gutter: 16px;
  --max: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
}

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

a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: 8px; z-index: 10; padding: 8px 14px; background: var(--white); }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.7em 1.5em;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font: 600 1rem/1.2 var(--font-head);
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.button--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.6); }
.button--ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.button--light { background: var(--white); border-color: var(--white); color: var(--blue); }
.button--light:hover { background: var(--mist); border-color: var(--mist); color: var(--blue-dark); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.site-header__logo img { width: 112px; height: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.button) { color: var(--white); font: 500 0.98rem/1.6 var(--font-head); text-decoration: none; }
.site-nav a:not(.button):hover, .site-nav a[aria-current='page'] { color: var(--teal); }
.site-nav .button { padding: 0.45em 1.2em; font-size: 0.95rem; }

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--mist { background: var(--mist); }
.lead { font-size: 1.2rem; color: var(--muted); }
.page-head { padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 48px); background: var(--mist); }
.page-head p { max-width: 46rem; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }

/* Hero (front page) */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 104px) 0;
  background: linear-gradient(rgba(2, 35, 60, 0.85), rgba(2, 35, 60, 0.85)), url('/assets/img/hero-bg.jpg') center / cover var(--navy);
  color: var(--white);
}
.hero h1 { color: var(--white); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero ul { padding: 0; list-style: none; }
.hero li { position: relative; margin-bottom: 0.8em; padding-left: 1.8em; }
.hero li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--teal); }
.hero__shot { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1.1fr; } }

/* Feature cards */
.features { display: grid; gap: 24px; margin-top: 40px; padding: 0; list-style: none; }
.features li { padding: 32px 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.features img { width: 56px; height: 56px; margin-bottom: 16px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Two-column split */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: var(--radius); }

/* Pricing */
.price-card { max-width: 30rem; padding: 40px 32px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.price-card__amount { margin: 0.2em 0 0; color: var(--blue); font: 700 clamp(2.5rem, 7vw, 3.4rem)/1 var(--font-head); }
.price-card__per { margin-bottom: 0.2em; color: var(--navy); font: 600 1.1rem/1.4 var(--font-head); }
.checklist { margin: 24px 0 28px; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 0.35em 0 0.35em 1.9em; border-bottom: 1px solid var(--line); }
.checklist li::before { content: '✓'; position: absolute; left: 0.2em; color: var(--blue); font-weight: 700; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 2.2em 18px 0; color: var(--navy); font: 600 1.1rem/1.4 var(--font-head); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.2em; top: 14px; color: var(--blue); font-size: 1.5rem; }
.faq[open] summary::after { content: '–'; }
.faq > div { padding-bottom: 12px; }

/* Support categories */
.cards { display: grid; gap: 24px; padding: 0; list-style: none; }
.cards > li { padding: 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.cards ul { margin: 0; padding-left: 1.1em; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Contact */
.contact-list { margin: 0 0 1.5em; padding: 0; list-style: none; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-list span { min-width: 6.5rem; color: var(--muted); }
address { font-style: normal; }

/* Screenshot gallery (guides) */
.steps { display: grid; gap: 24px; margin: 1.5em 0; padding: 0; list-style: none; counter-reset: step; }
.steps figure { margin: 0; }
.steps img { margin: 0; }
.steps figcaption { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

/* Article meta */
.breadcrumb { margin-bottom: 1em; font-size: 0.95rem; }
.breadcrumb a { color: var(--muted); }

/* Call to action band */
.cta { padding: clamp(48px, 7vw, 80px) 0; background: url('/assets/img/bubbles.svg') right -60px center / auto 140% no-repeat var(--blue); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); }

/* Footer */
.site-footer { padding: 56px 0 24px; background: var(--navy); color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--teal); }
.site-footer img { width: 112px; margin-bottom: 16px; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer__heading { margin-bottom: 0.8em; color: var(--white); font-size: 1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.3em; }
.site-footer .button { margin-top: 8px; }
.site-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 0.9rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Utilities */
.h3 { font-size: 1.25rem; }
.muted { color: var(--muted); font-size: 0.95rem; }

/* Grid tracks default to min-content, which lets a wide screenshot push the page past the viewport. */
.hero__grid, .features, .split, .cards, .steps, .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) {
  .features, .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (min-width: 860px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1.1fr; } }
