/* ============================================================
   REGION BYG & RÅDGIVNING — Design System
   Dark, premium, brick-tan accent. Mobile-first.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:        #0A0A0A;
  --bg-1:      #0F0F0F;
  --bg-2:      #151515;
  --bg-3:      #1B1B1B;   /* cards */
  --bg-4:      #232323;   /* elevated / hover */
  --sand:      #EDE7DD;

  /* Lines */
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text:       #F4EFE7;
  --text-muted: #9B958B;
  --text-faint: #6E6960;

  /* Brand — brick tan / copper */
  --accent:        #C8996A;
  --accent-light:  #DEB686;
  --accent-dark:   #A87B50;
  --accent-soft:   rgba(200, 153, 106, 0.12);
  --accent-glow:   rgba(200, 153, 106, 0.28);
  --brick-contrast: #F3EDE3;   /* the logo's "black" bricks, inverted to warm-white on dark */

  /* Buttons keep the same warm-gold look in BOTH themes */
  --btn-1: #DEB686;
  --btn-2: #A87B50;
  --btn-fg: #1A1206;

  /* Theme-aware chrome + photo overlays */
  --header-bg: rgba(10, 10, 10, 0.82);
  --mobile-bg: rgba(10, 10, 10, 0.97);
  --ov-soft: linear-gradient(180deg, rgba(10,10,10,0.42) 0%, rgba(10,10,10,0.66) 60%, var(--bg) 100%);
  --ov-strong: linear-gradient(180deg, rgba(10,10,10,0.82) 0%, rgba(10,10,10,0.90) 100%);
  --ov-hero: linear-gradient(105deg, rgba(10,10,10,0.94) 32%, rgba(10,10,10,0.62) 70%, rgba(10,10,10,0.45) 100%);

  /* State */
  --danger: #E5705A;
  --ok:     #7FB069;

  /* Typography */
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Geometry */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.55s;

  /* Shadows */
  --shadow:    0 14px 40px -18px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.9);

  /* Native controls (date/time picker, scrollbars) follow the theme */
  color-scheme: dark;
}

/* ---------- 1b. Light theme ---------- */
[data-theme="light"] {
  --bg:        #FBF9F5;
  --bg-1:      #FFFFFF;
  --bg-2:      #F2EDE6;
  --bg-3:      #FFFFFF;
  --bg-4:      #F4EEE5;

  --line:        rgba(28, 24, 20, 0.12);
  --line-strong: rgba(28, 24, 20, 0.22);

  --text:       #211C17;
  --text-muted: #5E574E;
  --text-faint: #918A7F;

  --accent:        #BC8344;
  --accent-light:  #985A1E;   /* accent used as TEXT — deep amber, readable on light */
  --accent-dark:   #875E33;
  --accent-soft:   rgba(188, 131, 68, 0.14);
  --accent-glow:   rgba(188, 131, 68, 0.30);
  --brick-contrast: #211C17;  /* logo contrast bricks go dark on light — like the original */

  --header-bg: rgba(251, 249, 245, 0.86);
  --mobile-bg: rgba(251, 249, 245, 0.98);

  --ov-soft: linear-gradient(180deg, rgba(251,249,245,0.46) 0%, rgba(251,249,245,0.72) 60%, var(--bg) 100%);
  --ov-strong: linear-gradient(180deg, rgba(251,249,245,0.84) 0%, rgba(251,249,245,0.92) 100%);
  --ov-hero: linear-gradient(105deg, rgba(251,249,245,0.95) 32%, rgba(251,249,245,0.66) 70%, rgba(251,249,245,0.46) 100%);

  --shadow:    0 14px 40px -18px rgba(60, 45, 20, 0.22);
  --shadow-lg: 0 30px 70px -24px rgba(60, 45, 20, 0.26);

  color-scheme: light;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Section background photos (distributed across the site) ---------- */
.section--photo { position: relative; isolation: isolate; }
.section--photo > .sec-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.section--photo > .sec-overlay { position: absolute; inset: 0; z-index: -1; background: var(--ov-strong); }
.section--photo.sec--soft > .sec-overlay { background: var(--ov-soft); }
.hero.section--photo > .sec-overlay { background: var(--ov-hero); }
.hero__content { max-width: 720px; }

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

::selection { background: var(--accent); color: #0A0A0A; }

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 10vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
}

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
.section-head p { color: var(--text-muted); margin-top: 1rem; font-size: 1.05rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

/* ---------- 4. Buttons (shadcn-style: rounded-md, shadow-xs, ring focus) ---------- */
.btn {
  --btn-h: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--btn-h);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.btn:disabled { opacity: 0.6; pointer-events: none; }
.btn[hidden] { display: none; }   /* `hidden` must win over display:inline-flex */

/* primary — solid brand tan */
.btn--primary {
  background: var(--accent);
  color: var(--btn-fg);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ghost — shadcn "outline" treatment (the site's secondary button) */
.btn--ghost {
  background: var(--bg-1);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--bg-3); border-color: var(--accent); color: var(--accent-light); }

/* soft — shadcn transparent "ghost" */
.btn--soft { background: transparent; border-color: transparent; box-shadow: none; color: var(--text); }
.btn--soft:hover { background: var(--accent-soft); color: var(--accent-light); }

/* destructive */
.btn--destructive { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--destructive:hover { filter: brightness(0.92); }

.btn--block { width: 100%; }
.btn--lg { --btn-h: 2.9rem; padding: 0.72rem 1.5rem; font-size: 0.98rem; }
.btn--sm { --btn-h: 2.1rem; padding: 0.4rem 0.85rem; font-size: 0.82rem; border-radius: 7px; }

/* ---------- 5. Header / Nav ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
  transition: height 0.4s var(--ease);
}
.header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header.is-scrolled .header__inner { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand:hover .brand__mark { transform: rotate(-2deg); }
.brand__mark { width: 34px; height: 35px; flex-shrink: 0; transition: transform 0.4s var(--ease); }
.brand__word {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.66rem;
  line-height: 1.0;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--text);
}
.brand__word span { display: block; }
/* Larger lockup in the footer */
.footer .brand__mark { width: 44px; height: 46px; }
.footer .brand__word { font-size: 0.85rem; }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav__links { display: none; align-items: center; gap: 0.1rem; }
.nav__links > a, .nav__top {
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
  position: relative;
  display: inline-block;
}
.nav__links > a:hover, .nav__top:hover { color: var(--text); }
.nav__links > a.is-active, .nav__top.is-active { color: var(--accent-light); }
.nav__links > a::after, .nav__top::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__links > a:hover::after, .nav__top:hover::after,
.nav__links > a.is-active::after, .nav__top.is-active::after { transform: scaleX(1); }

/* Services dropdown */
.nav__item--menu { position: relative; display: inline-flex; align-items: center; }
.nav__caret { color: var(--text-faint); font-size: 0.7rem; margin-left: -0.4rem; pointer-events: none; transition: transform 0.3s var(--ease), color 0.25s; }
.nav__item--menu:hover .nav__caret, .nav__item--menu:focus-within .nav__caret { transform: rotate(180deg); color: var(--accent-light); }
.nav__menu {
  position: absolute; top: 100%; left: 0; margin-top: 0.4rem;
  min-width: 200px; padding: 0.5rem;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 0.15rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 50;
}
.nav__item--menu:hover .nav__menu, .nav__item--menu:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__menu a {
  padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.92rem; color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.nav__menu a:hover { background: var(--accent-soft); color: var(--accent-light); }

/* Client-type chooser cards */
.choose-grid { display: grid; gap: 1.2rem; }
.choose-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.8rem;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.choose-card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 70%; height: 80%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.choose-card:hover { transform: translateY(-5px); border-color: var(--accent-dark); background: var(--bg-4); }
.choose-card:hover::after { opacity: 1; }
.choose-card__icon { width: 52px; height: 52px; color: var(--accent); position: relative; }
.choose-card h3 { font-size: clamp(1.4rem, 4vw, 1.9rem); position: relative; }
.choose-card p { color: var(--text-muted); position: relative; flex-grow: 1; }
.choose-card .card__link { font-size: 1rem; position: relative; }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__actions .btn--primary { display: none; }   /* shown on desktop only; in drawer on mobile */

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
}
.lang-toggle button {
  padding: 0.35rem 0.7rem;
  color: var(--text-muted);
  transition: background 0.25s, color 0.25s;
}
.lang-toggle button.is-active { background: var(--accent); color: #0A0A0A; }

/* Theme (light/dark) toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.4s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-soft); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }

/* Mobile menu button */
.nav__burger { display: inline-flex; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--mobile-bg);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 600;
  padding: 0.6rem 0; color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, padding-left 0.3s var(--ease);
}
.mobile-menu a:hover { color: var(--accent-light); padding-left: 0.6rem; }
.mobile-menu .btn { margin-top: 2rem; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-top: clamp(7rem, 16vw, 11rem); padding-bottom: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 85% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(200,153,106,0.06), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero__inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: transparent; background: linear-gradient(120deg, var(--accent-light), var(--accent)); -webkit-background-clip: text; background-clip: text; }
.hero__lead { color: var(--text-muted); font-size: clamp(1rem, 2.5vw, 1.18rem); max-width: 56ch; margin-top: 1.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__tagline { margin-top: 2.5rem; font-family: var(--font-display); font-weight: 600; color: var(--accent-light); font-size: 1.05rem; }

/* Pillars under hero */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.pillar {
  background: var(--bg-1);
  padding: 1.6rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: background 0.35s var(--ease);
}
.pillar:hover { background: var(--bg-3); }
.pillar__icon { width: 38px; height: 38px; color: var(--accent); }
.pillar h3 { font-size: 1.05rem; }
.pillar p { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- 6b. Page hero with photo background ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-top: clamp(8rem, 18vw, 12rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ov-soft);
}
.page-hero .eyebrow { color: var(--accent-light); }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.7rem); max-width: 18ch; }
.page-hero__sub { font-family: var(--font-display); font-weight: 600; color: var(--accent-light); font-size: clamp(1.05rem, 2.5vw, 1.3rem); margin-top: 1rem; }

/* Approach panel (welcome values) */
.approach {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem);
}
.approach h3 { font-size: 1.25rem; margin-bottom: 1.2rem; }

/* Category cards (from the flyer) */
.cat-grid { display: grid; gap: 1.1rem; }
.cat-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.cat-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--bg-4); }
.cat-card__icon {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-dark);
  display: grid; place-items: center;
}
.cat-card__icon svg { width: 24px; height: 24px; color: var(--accent-light); }
.cat-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.cat-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- 7. Services ---------- */
.tabs { display: inline-flex; gap: 0.3rem; padding: 0.35rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 2.5rem; }
.tabs button {
  padding: 0.6rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  color: var(--text-muted); transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.tabs button.is-active { background: var(--accent); color: var(--btn-fg); }

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.service-panel { display: none; }
.service-panel.is-active { display: block; animation: fadeUp 0.5s var(--ease) both; }

.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--bg-4); }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 42px; height: 42px; color: var(--accent); margin-bottom: 0.3rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--text-muted); font-size: 0.92rem; flex-grow: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: 0.45em;
  color: var(--accent-light); font-weight: 600; font-size: 0.9rem; margin-top: 0.4rem;
  transition: gap 0.3s var(--ease);
}
.card__link:hover { gap: 0.8em; }
.card__link svg { width: 1em; height: 1em; }

/* ---------- 8. Custom services / split banner ---------- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.split__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.55)); }
.split ul.checklist { display: grid; gap: 0.8rem; margin-top: 1.5rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.8rem; color: var(--text); }
.checklist li svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ---------- 9. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-1); padding: 1.5rem 1.2rem; text-align: center; }
.stat strong { font-family: var(--font-display); font-size: clamp(1.02rem, 2.4vw, 1.25rem); line-height: 1.2; color: var(--accent-light); display: block; margin-bottom: 0.3rem; }
.stat span { font-size: 0.82rem; color: var(--text-muted); }

/* Home showcase image grid */
.showcase-grid { display: grid; gap: 1.1rem; }
.showcase-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.showcase-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.showcase-item:hover img { transform: scale(1.06); }
.showcase-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,10,10,0.5)); }
.showcase-item figcaption { position: absolute; left: 1rem; bottom: 0.9rem; z-index: 1; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: #fff; }

/* ---------- 10. Forms ---------- */
.form-shell {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.3rem; }
.field > label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.5rem; }
.field .hint { color: var(--text-faint); font-size: 0.82rem; margin-bottom: 0.6rem; }
.field .req { color: var(--accent); }

.input, .textarea, .select {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  accent-color: var(--accent);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
/* Date/time field — themed via color-scheme; tidy the picker icon */
input[type="datetime-local"].input { min-height: 50px; }
input[type="datetime-local"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.75; transition: opacity 0.2s; }
input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg-2);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.field-error .input, .field-error .textarea, .field-error .select { border-color: var(--danger); }
.error-msg { display: none; color: var(--danger); font-size: 0.8rem; margin-top: 0.4rem; }
.field-error .error-msg { display: block; }

.grid-2 { display: grid; gap: 1.3rem; }

/* Choice chips (radio/checkbox cards) */
.choices { display: grid; gap: 0.7rem; }
.choice {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.choice:hover { border-color: var(--accent-dark); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.choice span { font-size: 0.95rem; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* File upload */
.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  padding: 1.8rem; text-align: center; color: var(--text-muted);
  cursor: pointer; transition: border-color 0.25s, background 0.25s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 32px; height: 32px; color: var(--accent); margin: 0 auto 0.6rem; }
.dropzone input { display: none; }
.file-list { margin-top: 0.8rem; display: grid; gap: 0.4rem; }
.file-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.85rem; background: var(--bg-3); padding: 0.5rem 0.8rem; border-radius: 8px; }
.file-list button { color: var(--danger); font-size: 1.1rem; line-height: 1; }

/* ---------- 11. Multi-step form ---------- */
.wizard { max-width: 760px; margin-inline: auto; }
.selected-service {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--accent-soft); border: 1px solid var(--accent-dark);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 2rem;
}
.selected-service svg { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.selected-service small { display: block; color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.selected-service strong { font-family: var(--font-display); font-size: 1.1rem; }

.progress { margin-bottom: 2rem; }
.progress__bar { height: 6px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-dark), var(--accent-light)); border-radius: 999px; transition: width 0.5s var(--ease); }
.progress__meta { display: flex; justify-content: space-between; margin-top: 0.6rem; font-size: 0.82rem; color: var(--text-muted); }
.progress__meta strong { color: var(--accent-light); }

.step { display: none; animation: fadeUp 0.45s var(--ease) both; }
.step.is-active { display: block; }
.step h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.step > p { color: var(--text-muted); margin-bottom: 1.6rem; }

.wizard__nav { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.wizard__nav .btn { flex: 1 1 140px; min-width: 0; }   /* fill the lower space; stack on very narrow screens */

/* Success state */
.form-success { text-align: center; padding: 2rem 1rem; display: none; }
.form-success.is-visible { display: block; animation: fadeUp 0.5s var(--ease) both; }
.form-success__icon {
  width: 76px; height: 76px; margin: 0 auto 1.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent);
}
.form-success__icon svg { width: 38px; height: 38px; color: var(--accent-light); }
.form-success h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--text-muted); max-width: 48ch; margin: 0 auto 1.6rem; }

/* Confirmation: reference block + contact card */
.confirm-ref {
  max-width: 460px; margin: 0 auto 1.4rem;
  background: var(--accent-soft); border: 1px solid var(--accent-dark);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; text-align: center;
}
.confirm-ref small { display: block; color: var(--text-muted); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; }
.confirm-ref strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent-light); letter-spacing: 0.02em; margin: 0.3rem 0; word-break: break-word; }
.confirm-ref span { display: block; color: var(--text-muted); font-size: 0.82rem; }

.confirm-contact {
  max-width: 460px; margin: 0 auto 1.8rem; text-align: left;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.confirm-contact h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.confirm-contact > p { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 1rem; max-width: none; }
.confirm-contact__items { display: grid; gap: 0.4rem; }
.confirm-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0.7rem; border-radius: var(--radius-sm);
  color: var(--text); transition: background 0.25s;
}
a.confirm-row:hover { background: var(--accent-soft); }
.confirm-row svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.confirm-row small { display: block; color: var(--text-faint); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.confirm-row b { font-weight: 600; font-size: 0.95rem; }

/* ---------- 12. Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.contact-item svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.contact-item small { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.contact-item a, .contact-item p { font-size: 1.05rem; }

/* ---------- 13. CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, rgba(200,153,106,0.16), rgba(200,153,106,0.04));
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.cta-band p { color: var(--text-muted); max-width: 52ch; margin: 1rem auto 2rem; }
.cta-band .hero__cta { justify-content: center; margin-top: 0; }

/* ---------- 14. Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-1); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; gap: 2.5rem; margin-bottom: 3rem; }
.footer__brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 1.2rem; max-width: 38ch; }
.footer__col h4 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 1.1rem; }
.footer__col a { display: block; color: var(--text-muted); padding: 0.35rem 0; transition: color 0.25s, padding-left 0.3s var(--ease); font-size: 0.95rem; }
.footer__col a:hover { color: var(--accent-light); padding-left: 0.4rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 0.85rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-size: 0.78rem; color: var(--accent-light); background: var(--accent-soft); padding: 0.3rem 0.7rem; border-radius: 999px; }

/* ---------- 15. Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120%);
  background: var(--bg-4); border: 1px solid var(--line-strong); color: var(--text);
  padding: 0.9rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow-lg);
  z-index: 200; transition: transform 0.5s var(--ease); font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.toast.is-visible { transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--accent-light); }

/* ---------- 16. Responsive ---------- */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .choose-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__actions .btn--primary { display: inline-flex; }
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 16b. Mobile fine-tuning ---------- */
@media (max-width: 760px) {
  /* Stronger hero overlay on phones for guaranteed text contrast */
  .hero.section--photo > .sec-overlay { background: var(--ov-strong); }
  /* Comfortable tap targets + spacing */
  .btn { padding: 0.95rem 1.5rem; }
  .wizard__nav .btn { flex: 1; }
  .choice { padding: 1rem 1.1rem; }
  .section-head p { font-size: 1rem; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 380px) {
  .brand__word { font-size: 0.6rem; }
  .lang-toggle button { padding: 0.35rem 0.55rem; }
}

/* ---------- 17. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 18. Consent, bilingual blocks, legal page ---------- */
html[lang="da"] [data-lang="en"], html[lang="en"] [data-lang="da"] { display: none; }

.consent { display: flex; align-items: flex-start; gap: 0.65rem; cursor: pointer; font-size: 0.9rem; color: var(--text-muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.consent a { color: var(--accent-light); text-decoration: underline; }
.field-error .consent { color: var(--danger); }

.footer__cvr { display: block; color: var(--text-faint); font-size: 0.85rem; padding-top: 0.4rem; }

.legal { max-width: 760px; }
.legal h3 { font-size: 1.15rem; margin: 1.9rem 0 0.5rem; color: var(--text); }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.2rem; list-style: disc; margin: 0.5rem 0; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--accent-light); text-decoration: underline; }
.legal .muted { font-size: 0.85rem; color: var(--text-faint); margin-top: 2rem; }
