/* LEKRA holding page — colours, type and logo rules from the Packaging Brand Guide, Edition 02 */

@font-face {
  font-family: "Tinos";
  src: url("/assets/fonts/tinos-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #17382F;          /* Forest green */
  --cream: #F3EADC;          /* Warm cream */
  --paper: #FCF8F0;          /* Light page tone used in the brand book */
  --ink: #17382F;
  --muted: #4E5D54;
  --line: rgba(23, 56, 47, 0.22);
  --cream-muted: rgba(243, 234, 220, 0.78);
  --cream-line: rgba(243, 234, 220, 0.22);
  /* Headlines: Nimbus Roman. Copy: Nimbus Sans. Close system/web fallbacks follow. */
  --serif: "Nimbus Roman", "Nimbus Roman No9 L", "Times New Roman", "Tinos", Times, serif;
  --sans: "Nimbus Sans", "Nimbus Sans L", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.nowrap { white-space: nowrap; }

.opening, .idea, .lead, .lead-en, .doc h1, .doc h2 { text-wrap: balance; }

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- Hero: botanical canvas with a clear field ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(28px, 6vw, 72px) 16px;
  background-color: var(--cream);
  background-image: url("/assets/img/botanical-1000.webp");
  background-image: image-set(url("/assets/img/botanical-1000.webp") 1x, url("/assets/img/botanical-1800.webp") 2x);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 1000px) {
  .hero {
    background-image: url("/assets/img/botanical-1800.webp");
    min-height: min(100vh, 980px);
  }
}

.hero-card {
  position: relative;
  width: min(100%, 620px);
  padding: clamp(40px, 8vw, 68px) clamp(24px, 7vw, 64px) clamp(36px, 7vw, 56px);
  background: var(--paper);
  text-align: center;
  box-shadow: 0 30px 70px -40px rgba(23, 56, 47, 0.55);
}

/* Fine keyline, as on the primary seal */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.hero-logo { margin: 0 auto; width: min(300px, 74%); }
.hero-logo img { width: 100%; }

.descriptor {
  margin-top: clamp(18px, 3.6vw, 26px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  line-height: 1.5;
  color: var(--green);
}

.rule {
  display: block;
  width: 44px;
  height: 1px;
  margin: clamp(22px, 4vw, 30px) auto;
  background: var(--green);
  opacity: 0.45;
}

.opening {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 8.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.005em;
}

.opening-en {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-place {
  margin-top: clamp(22px, 4vw, 30px);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Intro ---------- */

.intro {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(72px, 12vw, 128px) 16px;
  text-align: center;
}

.idea {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
}

.lead {
  max-width: 34em;
  margin: clamp(20px, 3.5vw, 28px) auto 0;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
}

.lead-en {
  max-width: 36em;
  margin: 10px auto 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Practical information ---------- */

.info {
  background: var(--green);
  color: var(--cream);
  padding: clamp(56px, 9vw, 96px) 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1120px;
  margin: 0 auto;
}

.info-item {
  padding: 26px 0;
  border-top: 1px solid var(--cream-line);
}
.info-item:first-child { border-top: 0; padding-top: 0; }
.info-item:last-child { padding-bottom: 0; }

.info-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
}

.info-title span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.info address { font-style: normal; }
.info p + p { margin-top: 2px; }
.info .en, .info .note { color: var(--cream-muted); }
.info .note { margin-top: 10px; font-size: 14px; }
.info .handle { color: var(--cream-muted); }
.info a:hover .handle { color: var(--cream); }

.info-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
}

@media (min-width: 640px) {
  .info-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .info-item,
  .info-item:first-child,
  .info-item:last-child { padding: 28px 0; border-top: 1px solid var(--cream-line); }
  .info-item:nth-child(-n+2) { border-top: 0; padding-top: 0; }
  .info-item:nth-child(n+3) { padding-bottom: 0; }
}

@media (min-width: 1000px) {
  .info-grid { grid-template-columns: 1fr 1.25fr 1fr 1fr; column-gap: 0; }
  .info-item,
  .info-item:first-child,
  .info-item:last-child,
  .info-item:nth-child(-n+2),
  .info-item:nth-child(n+3) {
    padding: 4px 32px 4px 32px;
    border-top: 0;
    border-left: 1px solid var(--cream-line);
  }
  .info-item:first-child { padding-left: 0; border-left: 0; }
  .info-item:last-child { padding-right: 0; }
}

/* ---------- Signature lines ---------- */

.signature {
  padding: clamp(72px, 11vw, 120px) 16px;
  background: var(--cream);
  text-align: center;
}

.signature-emblem { width: 76px; margin: 0 auto clamp(24px, 4vw, 32px); }

.signature p {
  font-size: clamp(13px, 1.9vw, 16px);
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 2.1;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 48px 16px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.footer-wordmark { width: 96px; margin: 0 auto 20px; }

.legal { max-width: 40em; margin: 0 auto; }

/* Social icons: official Instagram glyph and Facebook logo (Simple Icons, CC0) */
.social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.social--on-green { justify-content: flex-start; margin: 2px 0 0; }

.social-link {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--green);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social-link svg { display: block; width: 24px; height: 24px; }
.social-link:hover { transform: translateY(-1px); }

/* Monochrome: brand green on light, cream on green */
.social--mono .social-link:hover,
.social--mono .social-link:focus-visible { background: var(--green); border-color: var(--green); color: var(--cream); }
.social--mono.social--on-green .social-link { border-color: var(--cream-line); color: var(--cream); }
.social--mono.social--on-green .social-link:hover,
.social--mono.social--on-green .social-link:focus-visible { background: var(--cream); border-color: var(--cream); color: var(--green); }

/* Official colours: Instagram gradient, Facebook blue, on a light badge */
.social--brand .social-link { background: #ffffff; border-color: var(--line); }
.social--brand .social-link svg { width: 26px; height: 26px; }
.social--brand .social-link:hover,
.social--brand .social-link:focus-visible { border-color: var(--green); }
.social--brand.social--on-green .social-link { border-color: transparent; }
.social--brand.social--on-green .social-link:focus-visible { outline-color: var(--cream); }


.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  margin-top: 14px;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}
.link-button:hover { text-decoration-thickness: 2px; }
.link-button[hidden] { display: none; }

/* ---------- Cookie banner ---------- */

.cc {
  position: fixed;
  z-index: 50;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 460px;
  padding: 20px 20px 16px;
  background: var(--green);
  color: var(--cream);
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.45);
}
.cc[hidden] { display: none; }

@media (min-width: 640px) {
  .cc { left: 24px; right: auto; bottom: 24px; padding: 24px 24px 18px; font-size: 14px; }
}

.cc-title {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}

.cc-en { margin-top: 8px; color: var(--cream-muted); font-size: 13px; }

.cc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

/* Accept and decline are given equal weight, as the Danish guidance requires */
.cc-btn {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--cream);
  background: var(--cream);
  color: var(--green);
  font: 600 14px/1.2 var(--sans);
  cursor: pointer;
}
.cc-btn span { font-weight: 400; }
.cc-btn:hover { background: #fffaf2; }
.cc-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.cc-more { margin-top: 12px; font-size: 13px; }

/* ---------- Text pages (privacy, 404) ---------- */

.page-header {
  display: flex;
  justify-content: center;
  padding: 28px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.page-header a { display: block; }
.page-header img { width: 112px; }

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 16px clamp(56px, 8vw, 96px);
}

.doc h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.1;
}

.doc .updated { margin-top: 10px; color: var(--muted); font-size: 14px; }

.doc h2 {
  margin-top: 44px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.6vw, 30px);
  line-height: 1.2;
}

.doc h3 {
  margin-top: 26px;
  font-size: 16px;
  font-weight: 700;
}

.doc p, .doc ul, .doc .table-wrap { margin-top: 14px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc address { margin-top: 12px; font-style: normal; }
.doc td:last-child { white-space: nowrap; }

.doc .lang-switch { margin-top: 18px; font-size: 14px; }

.doc hr { margin: 56px 0 0; border: 0; border-top: 1px solid var(--line); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.doc table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}
.doc th, .doc td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.doc th { font-weight: 700; }

.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px 16px;
  background-color: var(--cream);
  background-image: url("/assets/img/botanical-1000.webp");
  background-position: center;
  background-size: cover;
}
.notfound .hero-card .opening { font-size: clamp(30px, 6vw, 44px); }
.notfound .home-link { display: inline-block; margin-top: 22px; font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
