/* ==========================================================================
   Renhjælp — "Eftermiddagsstuen" (the afternoon room)
   Palette drawn from one image: late sun on an oak floor, chalk walls,
   the cool shadow the light leaves behind.
   ========================================================================== */

:root {
  --oak: #B8875A;     /* the floor */
  --linen: #F2ECE1;   /* the wall */
  --paper: #FBF8F2;   /* card / object surface */
  --ink: #221C15;     /* text — warm near-black */
  --moss: #5B6B4E;    /* primary action — a windowsill plant */
  --dusk: #5E7188;    /* atmosphere only — late-day shadow */

  --ink-muted: #5C554A;
  --line: #DED2BE;
  --oak-line: rgba(184, 135, 90, 0.35);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-card: 0 14px 30px -18px rgba(34, 28, 21, 0.35);
  --shadow-lift: 0 20px 40px -16px rgba(34, 28, 21, 0.4);

  --max-width: 1120px;

  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Newsreader", "Iowan Old Style", Georgia, serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--moss); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
em { font-style: italic; color: var(--oak); }
strong { font-weight: 700; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: var(--moss);
  color: var(--paper);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #47543A;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--ink);
  color: var(--paper);
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--linen);
  border-bottom: 1px solid var(--oak-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--oak); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--moss);
  border-bottom-color: var(--moss);
}
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { padding: 10px 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: all 0.2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: -6px; }
.nav-toggle span::after { content: ""; position: absolute; top: 6px; }

/* ==========================================================================
   HERO — the horizon: the headline crosses the seam between wall and floor.
   ========================================================================== */
.hero-horizon {
  position: relative;
  overflow: hidden;
  background: var(--linen);
  min-height: 460px;
  display: flex;
  align-items: center;
}
.hero-horizon::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 44%;
  background: var(--oak);
  transform-origin: bottom;
  transform: scaleY(1);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-horizon::after {
    animation: rise-floor 1.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
}
@keyframes rise-floor {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.hero-horizon-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--moss);
  border-bottom: 2px solid var(--moss);
  margin-right: 10px;
  vertical-align: middle;
}
.hero-heading {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  max-width: 15ch;
  margin: 0;
}
.hero-heading em {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--moss);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  font-style: italic;
}

.hero-body { padding: 0 0 72px; }
.hero-body-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.hero-lead {
  font-size: 20px;
  color: var(--ink-muted);
  max-width: 42ch;
  margin-top: 20px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
.plan-mark::before {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-left: 2px solid var(--moss);
  border-bottom: 2px solid var(--moss);
}

.hero-form-wrap { margin-top: -64px; position: relative; z-index: 2; }

/* ---- Sections ---- */
section { padding: 76px 0; }
.section-narrow { max-width: 760px; margin: 0 auto; }
.section-header { max-width: 640px; margin: 0 0 44px; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--moss);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}
.section-lead { color: var(--ink-muted); font-size: 20px; }

.band-oak { background: var(--oak); }
.band-oak h2, .band-oak h3, .band-oak .eyebrow { color: var(--ink); }
.band-oak .section-lead, .band-oak p { color: rgba(34, 28, 21, 0.72); }
.band-paper { background: var(--paper); }

/* ---- Cards ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--oak-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* ---- Sequence (Sådan virker det) — numbers are earned here ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step-card { position: relative; padding-top: 8px; }
.step-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--oak);
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}
.step-card h3 { font-size: 21px; margin-bottom: 10px; }
.step-card p { color: var(--ink-muted); margin-bottom: 0; font-size: 16.5px; }

/* ---- Feature list — editorial rows, not an icon grid ---- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--oak-line);
  border: 1px solid var(--oak-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-row {
  background: var(--paper);
  padding: 32px 28px;
}
.feature-row h3 { font-size: 19px; margin-bottom: 10px; }
.feature-row p { color: var(--ink-muted); font-size: 16px; margin-bottom: 0; }

/* ---- Trust / cost callout ---- */
.callout {
  background: var(--paper);
  border: 1px solid var(--oak-line);
  border-left: 4px solid var(--moss);
  border-radius: var(--radius-md);
  padding: 32px 36px;
}
.callout h3 { margin-bottom: 8px; }
.callout p { margin-bottom: 0; color: var(--ink-muted); }

/* ---- FAQ Accordion — editorial index, not a card stack ---- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  font-weight: 600;
}
.accordion-trigger .mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.accordion-trigger .mark::before,
.accordion-trigger .mark::after {
  content: "";
  position: absolute;
  background: var(--moss);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-trigger .mark::before { width: 16px; height: 2px; }
.accordion-trigger .mark::after { width: 2px; height: 16px; transition: opacity 0.2s ease; }
.accordion-item.open .accordion-trigger .mark::after { opacity: 0; }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel-inner {
  padding: 0 4px 24px;
  color: var(--ink-muted);
  max-width: 68ch;
  font-size: 17px;
}
.accordion-item.open .accordion-panel { max-height: 600px; }

.faq-preview-link { margin-top: 32px; }

/* ---- Multi-step form — an object resting on the floor ---- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--oak-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 36px;
}
.form-card h2 { font-size: 23px; margin-bottom: 4px; }
.form-sub { color: var(--ink-muted); font-size: 15.5px; margin-bottom: 26px; font-family: var(--font-body); }

.progress { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.progress-step { flex: 1; height: 3px; background: var(--oak-line); }
.progress-step .fill { height: 100%; width: 0%; background: var(--moss); transition: width 0.3s ease; }
.progress-step.done .fill { width: 100%; }
.progress-step.active .fill { width: 50%; }
.progress-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--moss);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.form-step { display: none; }
.form-step.active { display: block; }

.form-row { margin-bottom: 20px; }
.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}
input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--linen);
  color: var(--ink);
  transition: border-color 0.2s ease;
}
input:focus, select:focus {
  border-color: var(--moss);
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 107, 78, 0.18);
}
input.invalid, select.invalid { border-color: #9A4A3A; }

.field-error { color: #8C4234; font-size: 13.5px; margin-top: 6px; display: none; font-family: var(--font-body); }
.field-error.show { display: block; }

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option-pill { position: relative; }
.option-pill input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option-pill label {
  display: block;
  text-align: center;
  padding: 12px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0;
  background: var(--linen);
}
.option-pill input:checked + label {
  border-color: var(--moss);
  background: var(--moss);
  color: var(--paper);
}
.option-pill input:focus-visible + label {
  outline: 3px solid var(--dusk);
  outline-offset: 2px;
}

.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; }
.consent-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--moss); flex-shrink: 0; }
.consent-row label { font-weight: 400; font-family: var(--font-body); font-size: 14.5px; color: var(--ink-muted); margin: 0; }
.consent-row a { color: var(--moss); font-weight: 600; }

/* Honeypot — invisible to real users, catches bots that auto-fill every field */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }
.form-nav .btn { flex: 1; }
.form-nav.single .btn { flex: none; margin-left: auto; }

.form-success { text-align: center; padding: 24px 4px; }
.form-success .mark-big {
  width: 44px; height: 44px; margin: 0 auto 20px;
  border-left: 3px solid var(--moss); border-bottom: 3px solid var(--moss);
}
.form-success h2 { margin-bottom: 10px; }
.form-success p { color: var(--ink-muted); }

.form-note { font-size: 13.5px; color: var(--ink-muted); margin-top: 16px; text-align: center; font-family: var(--font-body); }

/* ---- Table (Priser) ---- */
.price-table-wrap { overflow-x: auto; }
table.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--oak-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
table.price-table th, table.price-table td {
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
table.price-table th {
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
}
table.price-table tr:last-child td { border-bottom: none; }

/* ---- Timeline (Sådan virker det - detailed) ---- */
.timeline { border-left: 1px solid var(--line); margin-left: 4px; }
.timeline-item { position: relative; padding: 0 0 48px 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .timeline-num {
  position: absolute;
  left: -22px;
  top: -4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  background: var(--moss);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-item h3 { font-size: 21px; margin-bottom: 8px; }
.timeline-item p { color: var(--ink-muted); margin-bottom: 0; }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .mark-corner {
  width: 26px; height: 26px; flex-shrink: 0; margin-top: 4px;
  border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss);
}
.contact-info-item h3 { font-size: 16px; margin-bottom: 4px; }
.contact-info-item p { color: var(--ink-muted); margin-bottom: 0; font-size: 15.5px; }

textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  resize: vertical;
  min-height: 130px;
  color: var(--ink);
  background: var(--linen);
}
textarea:focus { border-color: var(--moss); outline: none; box-shadow: 0 0 0 3px rgba(91, 107, 78, 0.18); }

/* ---- Legal pages ---- */
.legal-content h2 { margin-top: 1.8em; font-size: 22px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--ink-muted); }
.legal-content ul { margin-bottom: 1.2em; }
.legal-updated { color: var(--ink-muted); font-size: 14.5px; margin-bottom: 40px; font-family: var(--font-display); }

/* ---- Footer — the floor continues to the bottom of the site ---- */
.site-footer { background: var(--ink); color: #E4DDCE; padding: 64px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 22px; color: var(--paper); margin-bottom: 12px; display: block; text-decoration: none; }
.footer-logo span { color: var(--oak); }
.site-footer p { color: #B8AF9E; font-size: 15px; }
.footer-col h4 { font-family: var(--font-display); color: var(--paper); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #B8AF9E; text-decoration: none; font-size: 15.5px; font-family: var(--font-body); }
.footer-col a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(228, 221, 206, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: #8F8676;
  font-family: var(--font-display);
}
.footer-bottom a { color: #8F8676; }

/* ---- Page hero (inner pages) ---- */
.page-hero { padding: 60px 0 44px; text-align: center; background: var(--linen); }
.page-hero .eyebrow { display: block; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero p { color: var(--ink-muted); font-size: 19px; max-width: 620px; margin: 0 auto; font-family: var(--font-body); }

/* ---- Two column ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col.reverse .two-col-art { order: 2; }
.two-col-art {
  background: var(--oak);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
}
.two-col-art span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.two-col.reverse .two-col-photo { order: 2; }
.two-col-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3;
}
.two-col-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .main-nav, .header-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--linen);
    border-bottom: 1px solid var(--oak-line);
    padding: 12px 24px 20px;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; gap: 4px; }
  .site-header.nav-open .main-nav a { display: block; padding: 12px 4px; }

  .hero-horizon { min-height: 360px; }
  .hero-heading { max-width: 100%; }
  .hero-body-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-form-wrap { margin-top: -40px; }

  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .two-col-art { order: -1; }
  .form-row-group { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr 1fr; }

  section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  body { font-size: 17px; }
}
