/* ============================================================
   SmartByg — "Nordisk Tillid" (Confident Nordic-Tech)
   See design.md for the full design system.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Core palette */
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-sunken: #F1ECE3;
  --text: #1A1A1A;
  --text-muted: #5C574F;
  --border: #E3DCD0;

  /* Accent (brand) */
  --accent: #1F5E5B;
  --accent-hover: #184B49;
  --accent-soft: #DCE8E5;
  --accent-contrast: #FAF8F4;

  /* Supporting */
  --clay: #C8956D;
  --sage: #8A9A7B;
  --sand: #EAE0CE;

  /* Type */
  --font: "Schibsted Grotesk", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spacing scale (8px base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --shadow-card: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-float: 0 12px 32px rgba(26, 26, 26, 0.10);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* [hidden] must win over component display rules (e.g. .field uses display:flex). */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faint paper grain for warmth/depth — sits behind all content, never interactive. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 800px) {
  .container { padding-inline: var(--sp-8); }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* Anchor targets must clear the sticky header when jumped to. */
section[id], [id]:target { scroll-margin-top: 84px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.lead {
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.btn-lg { min-height: 52px; padding: 15px 28px; font-size: 17px; }

.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

.btn-on-accent { background: var(--bg); color: var(--accent); }
.btn-on-accent:hover { transform: translateY(-1px); background: #fff; }

.btn:focus-visible,
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: 700; letter-spacing: -0.02em; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  color: var(--accent-contrast);
  background: var(--accent);
  border-radius: 10px;
}
.brand-name { font-size: 18px; }

.site-nav { display: none; gap: var(--sp-6); margin-left: var(--sp-4); }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.site-nav a:hover { color: var(--text); }
/* Going to your own sag is not a section of this page — say so in the colour. */
.site-nav .nav-login { color: var(--accent); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
.lang-switch { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.lang-switch a[aria-current="true"] { color: var(--accent); }
.lang-switch a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.header-actions .btn-ghost { display: none; }

/* Keep the header CTA on one line next to the menu button on small phones. */
.header-actions .btn { white-space: nowrap; }
@media (max-width: 520px) {
  .header-actions .btn-primary { padding: 10px 14px; font-size: 15px; }
}

/* Mobile menu button — the nav has more items than fit on a phone. */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* Below the desktop breakpoint the nav drops down from the header bar. It is
   1120 rather than 800 because that is where the row actually fits: the old
   800 was optimistic even for six items — at 900 it broke "Sådan foregår det"
   over three lines inside a 72px bar. Below this width every link, "Mit
   SmartByg" included, lives in the menu. */
@media (max-width: 1119px) {
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    left: 0; right: 0; top: 100%;
    margin: 0;
    padding: var(--sp-2) var(--sp-5) var(--sp-5);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-float);
  }
  .site-nav.is-open a {
    padding: 14px 0;
    font-size: 17px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open a:last-child { border-bottom: 0; }
  /* Last in the menu and the only one that leaves the page — say so. */
  .site-nav.is-open .nav-login { color: var(--accent); font-weight: 600; }
}

@media (min-width: 800px) {
  .lang-switch { display: inline-flex; }
}
@media (min-width: 1120px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  /* Room for a second button beside the CTA, so the ghost takes over from the
     nav link: the same destination, offered once at every width, never twice. */
  .header-actions .btn-ghost { display: inline-flex; }
  .site-nav .nav-login { display: none; }
}
/* The nav is wide now — let it breathe and keep the CTA from being squeezed. */
@media (min-width: 1120px) and (max-width: 1279px) {
  .site-nav { gap: var(--sp-5); }
  .site-nav a { font-size: 14.5px; }
}
/* A nav item that breaks in half reads as two items. */
.site-nav a { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: var(--sp-8) 0 var(--sp-9); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  right: -10%; top: -20%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: .6;
  pointer-events: none;
}
.hero-grid { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-9); }
}

.hero-copy h1 {
  font-size: clamp(40px, 7vw, 60px);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: var(--sp-5);
}
.hero-copy .lead { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-6) 0 var(--sp-5); }

.reassure { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); color: var(--text-muted); font-size: 14px; font-weight: 500; }
.reassure li { display: flex; align-items: center; gap: var(--sp-2); }
.reassure li::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
}

/* Hero visual */
.hero-visual { position: relative; }
.hero-frame {
  position: relative;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
}
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius-sm);
  /* Warm fallback shown only until the photo paints. */
  background: linear-gradient(135deg, var(--sand) 0%, var(--surface-sunken) 100%);
  overflow: hidden;
}
.hero-photo-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Soft scrim at the bottom so the "Din renovering" tag stays legible on any photo. */
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(26,26,26,.30), transparent 36%);
}
.hero-photo-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 1;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent-contrast);
  background: rgba(24,75,73,.62);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.topic {
  flex: 1 1 auto;
  text-align: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-card {
  position: absolute;
  right: -18px; bottom: 40px;
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-float);
  max-width: 232px;
}
.hero-card strong { display: block; font-size: 14px; }
.hero-card span { font-size: 12.5px; color: var(--text-muted); }
.hero-card-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }
@media (max-width: 560px) { .hero-card { right: 8px; bottom: 16px; } }

/* ---------- Trust strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-sunken); }
/* Vertical padding only — the inline gutters come from .container. */
.strip-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  padding-block: var(--sp-6);
}
@media (min-width: 800px) { .strip-inner { grid-template-columns: repeat(4, 1fr); } }
.stat strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--text-muted); }

/* ---------- Savings (value justification) ---------- */
.savings {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
}
.savings-inner {
  display: grid;
  gap: var(--sp-6);
  padding-block: var(--sp-9);
  align-items: center;
}
@media (min-width: 860px) {
  .savings-inner { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-9); }
}
.savings-number {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.savings-number span {
  display: block;
  margin-top: var(--sp-3);
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.savings-copy { font-size: clamp(17px, 2vw, 19px); color: var(--text); margin-bottom: var(--sp-5); max-width: 52ch; }
.savings-points { display: grid; gap: var(--sp-3); }
.savings-points li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-weight: 500;
}
.savings-note {
  margin-top: var(--sp-5);
  max-width: 52ch;
  font-size: 14px;
  color: var(--text-muted);
}
.savings-points li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%231F5E5B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Generic section ---------- */
.section { padding: var(--sp-9) 0; }
.section-sunken { background: var(--surface-sunken); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: var(--sp-7); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-lead { margin-top: var(--sp-4); }
@media (max-width: 800px) { .section { padding: var(--sp-8) 0; } }

/* ---------- Journey (Sådan foregår det) ---------- */
/* A vertical, numbered walk-through of the customer flow — each step carries a
   short example so the process reads as something real, not a diagram. */
.journey { display: grid; gap: var(--sp-4); max-width: 860px; }
.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
@media (min-width: 720px) { .journey-step { padding: var(--sp-6); gap: var(--sp-6); } }
/* Give the copy more room on narrow phones. */
@media (max-width: 520px) {
  .journey-step { grid-template-columns: 40px 1fr; gap: var(--sp-4); }
  .journey-num { width: 40px; height: 40px; font-size: 17px; }
  .journey-step::after { left: calc(var(--sp-5) + 19px); }
}
/* Connector between consecutive steps. */
.journey-step::after {
  content: "";
  position: absolute;
  left: calc(var(--sp-5) + 23px);
  top: 100%;
  width: 2px;
  height: var(--sp-4);
  background: var(--border);
}
@media (min-width: 720px) { .journey-step::after { left: calc(var(--sp-6) + 23px); } }
.journey-step:last-child::after { display: none; }
.journey-num {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.journey-step h3 { font-size: 19px; margin-bottom: var(--sp-2); }
.journey-step p { font-size: 15.5px; color: var(--text-muted); max-width: 60ch; }
.journey-example {
  margin-top: var(--sp-3);
  padding-left: var(--sp-4);
  border-left: 2px solid var(--accent-soft);
  font-size: 14.5px;
}
.journey-example strong { color: var(--text); font-weight: 600; }
.journey-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5);
  margin-top: var(--sp-7);
}
.journey-foot p { font-size: 15px; color: var(--text-muted); }
.journey-foot a:not(.btn) { color: var(--accent); font-weight: 600; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: var(--sp-5); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.card-icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.card-icon svg { width: 24px; height: 24px; }
/* Custom duotone icon badge — used in the picker and on service cards. */
.ico {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.ico svg { width: 27px; height: 27px; }
.ico-lg { width: 52px; height: 52px; border-radius: 14px; margin-bottom: var(--sp-4); }
.ico-lg svg { width: 28px; height: 28px; }
.card h3 { font-size: 20px; margin-bottom: var(--sp-2); }
.card p { color: var(--text-muted); font-size: 15.5px; }
.card-link {
  margin-top: auto;
  padding-top: var(--sp-4);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.card-link:hover { color: var(--accent-hover); }

/* ---------- Services (detailed offering blocks) ---------- */
/* Each of the five offerings gets its own block: copy + CTA on the left, the
   "what you get" list on the right. Blocks without a list use .service-solo. */
.services { display: grid; gap: var(--sp-5); }
.service {
  display: grid;
  gap: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--sp-6);
}
@media (min-width: 880px) {
  .service {
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--sp-8);
    align-items: start;
    padding: var(--sp-7);
  }
  .service-solo { grid-template-columns: 1fr; }
}
.service-kicker {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.service-main h3 {
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
}
.service-main p {
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
  max-width: 62ch;
}
.service-main .btn { margin-top: var(--sp-2); }

.service-facts {
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
  padding: var(--sp-5);
}
.service-facts h4 {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.service-facts ul { display: grid; gap: 10px; }
.service-facts li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
}
.service-facts li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%231F5E5B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Split (for homeowners) ---------- */
.split { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-9); } }
.split-copy h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: var(--sp-4); }
.split-copy .lead { margin-bottom: var(--sp-6); }
.checklist { display: grid; gap: var(--sp-3); }
.checklist li {
  position: relative;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F5E5B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: var(--sp-5); }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-5);
}
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; }
.quote figcaption strong { display: block; }
.quote figcaption span { font-size: 14px; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--accent-contrast); }
.cta-inner { padding-block: var(--sp-9); text-align: center; display: grid; gap: var(--sp-4); justify-items: center; }
.cta-inner h2 { font-size: clamp(28px, 4.5vw, 42px); }
.cta-inner p { color: rgba(250,248,244,.82); font-size: 18px; }
.cta-inner .btn { margin-top: var(--sp-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: var(--sp-8) 0 var(--sp-6); }
.footer-grid { display: grid; gap: var(--sp-7); }
@media (min-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .footer-grid { grid-template-columns: 1.7fr repeat(3, 1fr); }
  .footer-brand { grid-column: auto; }
}
.footer-brand p { color: var(--text-muted); font-size: 15px; margin-top: var(--sp-3); max-width: 32ch; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: var(--sp-4); }
.footer-col a { display: block; padding: 5px 0; color: var(--text); font-size: 15px; overflow-wrap: break-word; }
.footer-col a:hover { color: var(--accent); }
.footer-lang { display: flex; gap: var(--sp-4); }
.footer-lang a[aria-current="true"] { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
}

/* ---------- Reveal animation ---------- */
/* Only hide content when JS is present to reveal it again — without JS the
   page renders fully visible (no blank sections if a script is blocked). */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger siblings within a group */
.cards .card:nth-child(2), .quotes .quote:nth-child(2), .journey-step:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3), .quotes .quote:nth-child(3), .journey-step:nth-child(3) { transition-delay: .16s; }
.journey-step:nth-child(4) { transition-delay: .24s; }
.journey-step:nth-child(5) { transition-delay: .32s; }

/* ---------- Interactive selector (picker) ---------- */
.picker-band { padding: 0 0 var(--sp-9); }
/* Lift the picker card so it bridges the hero and the sections below. */
.picker {
  margin-top: calc(-1 * var(--sp-7));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  padding: var(--sp-7) var(--sp-6);
}
@media (min-width: 800px) { .picker { padding: var(--sp-8); } }
.picker-head { text-align: center; max-width: 640px; margin: 0 auto var(--sp-6); }
.picker-head h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: var(--sp-3); }
.picker-sub { color: var(--text-muted); }

.picker-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
/* Six options: 2-up on mobile, 3-up (two tidy rows) from tablet. A single
   6-across row would clip the longest labels, so we stay at three. */
@media (min-width: 720px) { .picker-options { grid-template-columns: repeat(3, 1fr); } }
.picker-option {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.picker-option:hover { border-color: var(--accent); transform: translateY(-1px); }
.picker-option[aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
/* Long single words ("Projektgennemgang") must break inside the narrow mobile
   column rather than overflow the option. */
.picker-label {
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  hyphens: auto; overflow-wrap: break-word;
}
.picker-hint { font-size: 13px; color: var(--text-muted); }

/* Reveal panel */
.picker-panel {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.js .picker-panel:not([hidden]) { animation: panel-in .28s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.picker-panel-head { margin-bottom: var(--sp-5); }
.picker-panel-head h3 { font-size: 22px; margin-bottom: var(--sp-2); }
.picker-panel-head p { color: var(--text-muted); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.field-opt { font-weight: 400; opacity: .8; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-file input[type="file"] {
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
}
.field-file input[type="file"]::file-selector-button {
  font-family: inherit; font-weight: 600; font-size: 14px;
  color: var(--accent); background: var(--accent-soft);
  border: 0; border-radius: 6px; padding: 8px 12px; margin-right: 12px;
  cursor: pointer;
}

.form-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 680px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.field-wide { grid-column: 1 / -1; }
@media (min-width: 680px) { .field-file { grid-column: 1 / -1; } }

.form-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.form-note { font-size: 14px; color: var(--text-muted); }
.form-status {
  margin-top: var(--sp-4);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500; font-size: 15px;
}
.form-status.is-success { background: #E4F0E6; color: var(--success); border: 1px solid #BFE0C6; }
.form-status.is-error { background: #F6E2DC; color: var(--error); border: 1px solid #E8C4B9; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- About ---------- */
.about { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 820px) { .about { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-9); } }
.about-visual { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.about-photo {
  width: 100%; max-width: 300px; aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(150deg, var(--accent-soft) 0%, var(--sand) 100%);
}
.about-photo-initials {
  font-size: 96px; font-weight: 700; letter-spacing: -0.03em;
  color: var(--accent);
}
.about-cap { font-size: 14px; color: var(--text-muted); }
.about-copy h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: var(--sp-4); }
.about-copy p { color: var(--text-muted); margin-bottom: var(--sp-4); max-width: 60ch; }
.about-sign { font-weight: 600; color: var(--text); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F5E5B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-body { padding: 0 var(--sp-6) var(--sp-5); }
.faq-body p { color: var(--text-muted); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: var(--sp-7); align-items: start; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1fr; gap: var(--sp-9); } }
.contact-copy h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: var(--sp-4); }
.contact-copy .lead { margin-bottom: var(--sp-6); }
.contact-list { display: grid; gap: var(--sp-4); }
.contact-list li { display: flex; align-items: center; gap: var(--sp-4); }
.contact-ic {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
}
.contact-ic svg { width: 22px; height: 22px; }
.contact-k { display: block; font-size: 13px; color: var(--text-muted); }
.contact-list a { font-weight: 600; font-size: 18px; }
.contact-list a:hover { color: var(--accent); }
.contact-form {
  display: grid; gap: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}
.contact-form .btn { justify-self: start; }


/* ---------- Reveal stagger (additions) ---------- */
.cards .card:nth-child(4) { transition-delay: .24s; }
.cards .card:nth-child(5) { transition-delay: .32s; }
.cards .card:nth-child(6) { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
