/* ============================================================
   ZENCY DESIGN SYSTEM  ·  v1
   ------------------------------------------------------------
   Portable, framework-agnostic CSS for zency.dk.

   • Plain CSS: no build step. Loaded globally, so every class below
     can be reused on any zency.dk page or section.
   • Fonts (Merriweather, Source Sans, Dosis) are loaded elsewhere on
     zency.dk — this file only references them.
   ============================================================ */

:root {
  /* ---- Fonts (real stacks; the site loads the actual webfonts) ---- */
  --font-merriweather: "Merriweather", Georgia, serif;          /* headings */
  --font-source: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif; /* body */
  --font-dosis: "Dosis", system-ui, sans-serif;                 /* CTA / numerals */

  /* ---- Sage-green scale (brand base 500 = #59736E) ---- */
  --color-sage-50:  #f3f6f5;
  --color-sage-100: #e5edea;
  --color-sage-200: #cbdad4;
  --color-sage-300: #a6c0b8;
  --color-sage-400: #7e9d93;
  --color-sage-500: #59736e;
  --color-sage-600: #4a615c;
  --color-sage-700: #3d4f4b;
  --color-sage-800: #2e3b38;
  --color-sage-900: #1f2825;

  /* ---- Deep teal-green + forest (dark sections) ---- */
  --color-deep:       #44675b;
  --color-forest:     #14302a;   /* flat dark — text-heavy dark panels (footer): WCAG-AA safe */
  --color-forest-700: #1c3d35;

  /* ---- Light mint ---- */
  --color-mint:      #b2ddc3;
  --color-mint-soft: #d8ece0;

  /* ---- Accents ---- */
  --color-gold:       #ebc144;
  --color-gold-soft:  #f4dd9b;
  --color-olive:      #7a6c40;   /* the single CTA accent — WCAG-AA on white (5.19:1) */
  --color-olive-dark: #615531;   /* olive hover/active — darker step (7.36:1) */
  --color-terracotta: #c8794f;

  /* ---- Warm neutrals ---- */
  --color-ink:      #20211e;
  --color-ink-soft: #4a4d47;
  --color-cream:    #f7f5ef;     /* page surface */
  --color-cream-2:  #efeae0;
  --color-sand:     #e9e2d4;
  --color-line:     #e2ddd2;     /* hairline borders */

  /* ---- Motion + radii ---- */
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
}

/* ============================================================
   TYPE SCALE — apply directly (e.g. <h1 class="z-h1">) on any element.
   ============================================================ */
.z-h1   { font-family: var(--font-merriweather); font-weight: 400; font-size: clamp(2rem, 1.5109rem + 2.1739vw, 3.25rem); line-height: 1.1; letter-spacing: 0.6px; }
.z-h2   { font-family: var(--font-merriweather); font-weight: 400; font-size: 1.7059rem; line-height: 36px; letter-spacing: 0.6px; }
.z-h3   { font-family: var(--font-merriweather); font-weight: 300; font-size: 1.4118rem; line-height: 30px; letter-spacing: 0.6px; }
.z-h4   { font-family: var(--font-merriweather); font-weight: 300; font-size: clamp(1.0588rem, 1.0107rem + 0.2273vw, 1.1765rem); line-height: 30px; letter-spacing: 0.6px; }
.z-text { font-family: var(--font-source); font-weight: 400; font-size: 1.0588rem; line-height: 26px; letter-spacing: 0.2px; }
.z-usp  { font-family: var(--font-source); font-weight: 400; font-size: clamp(0.9412rem, 0.8449rem + 0.4545vw, 1.1765rem); line-height: 30px; letter-spacing: 0.2px; }
.z-cta  { font-family: var(--font-dosis); font-weight: 400; font-size: clamp(0.9412rem, 0.893rem + 0.2273vw, 1.0588rem); line-height: 24px; letter-spacing: 1px; text-transform: none; }

/* ============================================================
   SECTION HEADING — brand H2 with the signature sage rule beneath it.
   The rule sits BELOW the text (never overlaps multi-line headings).
   ============================================================ */
.z-section-h2 {
  font-family: var(--font-merriweather);
  font-weight: 400;
  font-size: clamp(1.7059rem, 1.4rem + 1.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: 0.6px;
  color: var(--color-forest);
  position: relative;
  padding-bottom: 0.85rem;
  text-wrap: balance;
}
.z-section-h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  border-radius: 2px;
  background: var(--color-sage-500);
}
/* Centered variant — heading text AND rule both centred (the rule must never sit
   centred under left-aligned text). */
.z-section-h2--center { text-align: center; }
.z-section-h2--center::after { left: 50%; transform: translateX(-50%); }

/* ============================================================
   DARK BRAND PANELS
   .z-panel-dark   — sage→forest gradient (accent panels: stats, guarantee,
                     highlighted price card, CTA bands).
   .z-panel-forest — flat forest #14302a (text-heavy dark sections / FOOTER).
   ⚠ The gradient's light stop (#5b746f) is too light for small body text.
     Use .z-panel-forest (or white-only text) where a dark panel carries
     paragraphs/links — that passes WCAG AA.
   ============================================================ */
.z-panel-dark   { background: linear-gradient(160deg, #5b746f 0%, #2f3b39 100%); }
.z-panel-forest { background: var(--color-forest); }

/* ============================================================
   .zency-article — the prose "lift" applied to the_content() / rich post
   bodies. Brand typography on raw markup; the sage heading-rule sits BELOW
   the heading text so nothing can overlap it.
   ============================================================ */
.zency-article { color: var(--color-ink-soft); }

.zency-article h2 {
  font-family: var(--font-merriweather);
  font-weight: 400;
  font-size: clamp(1.7059rem, 1.45rem + 1.05vw, 2rem);
  line-height: 1.22;
  letter-spacing: 0.6px;
  color: var(--color-forest);
  position: relative;
  margin: 3rem 0 1.4rem;
  padding-bottom: 0.85rem;
  scroll-margin-top: 6.5rem;
  text-wrap: balance;
}
.zency-article h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  border-radius: 2px;
  background: var(--color-sage-500);
}
.zency-article > h2:first-child { margin-top: 0; }

.zency-article h3 {
  font-family: var(--font-merriweather);
  font-weight: 300;
  font-size: 1.4118rem;
  line-height: 1.3;
  letter-spacing: 0.6px;
  color: var(--color-forest);
  margin: 2.1rem 0 0.6rem;
  scroll-margin-top: 6.5rem;
  text-wrap: balance;
}

.zency-article p {
  font-family: var(--font-source);
  font-size: 1.0588rem;
  line-height: 1.75;
  letter-spacing: 0.2px;
  margin: 0 0 1.15rem;
}

.zency-article ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.zency-article ul li {
  position: relative;
  padding-left: 1.6rem;
  font-family: var(--font-source);
  font-size: 1.0588rem;
  line-height: 1.6;
  color: var(--color-ink-soft);
}
.zency-article ul li::before {
  content: "";
  position: absolute;
  left: 0.1rem; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 9999px;
  background: var(--color-sage-500);
}
.zency-article ul li > p { display: inline; margin: 0; } /* live wraps some li text in <p> */

.zency-article strong { color: var(--color-forest); font-weight: 700; }

.zency-article a {
  color: var(--color-sage-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--color-sage-300);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.zency-article a:hover {
  color: var(--color-olive);
  text-decoration-color: var(--color-olive);
}

/* ------------------------------------------------------------
   .zency-article CONTENT COMPONENTS — the rich post_content vocabulary.
   post_content opts in via classes.
   ------------------------------------------------------------ */

/* Summary box — "Kort fortalt" */
.zency-article .z-summary {
  background: var(--color-sage-50);
  border: 1px solid var(--color-sage-200);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  margin: 0 0 2.5rem;
}
.zency-article .z-summary h2 { margin: 0 0 0.7rem; padding-bottom: 0; }
.zency-article .z-summary h2::after { display: none; }
.zency-article .z-summary .lead {
  font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.28rem);
  line-height: 1.55;
  color: var(--color-deep);
}
.zency-article ul.z-summary__list {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.zency-article ul.z-summary__list li {
  padding-left: 0;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  line-height: 1.5;
}
.zency-article ul.z-summary__list li::before { display: none; }
.z-summary__list .ic {
  flex: none;
  width: 1.55rem; height: 1.55rem;
  margin-top: 0.1rem;
  background: var(--color-sage-500);
  border-radius: 50%;
  display: grid; place-items: center;
}
.z-summary__list .ic svg { width: 0.85rem; height: 0.85rem; fill: #fff; }
.zency-article .z-summary__foot { margin: 0; font-style: italic; color: var(--color-deep); }

/* Media split — text + supporting image side by side */
.zency-article .z-media-split {
  display: grid;
  gap: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  align-items: center;
  margin: 1.6rem 0;
}
@media (min-width: 768px) {
  .zency-article .z-media-split { grid-template-columns: 1fr 1fr; }
}
.zency-article .z-media-split p:last-child { margin-bottom: 0; }
.z-media-split__media { margin: 0; }
.z-media-split__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px -18px rgba(20, 48, 42, 0.35);
}

/* Standalone figure */
.zency-article .z-figure { margin: 1.9rem 0; }
.zency-article .z-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px -18px rgba(20, 48, 42, 0.35);
}
.zency-article .z-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-deep);
}

/* Floating content image — running text wraps around it */
.zency-article .z-figure--float { margin: 0.4rem 0 1.25rem; }
.zency-article .z-figure--float img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px -18px rgba(20, 48, 42, 0.35);
}
@media (min-width: 768px) {
  .zency-article .z-figure--float { float: right; width: 42%; margin: 0.5rem 0 1.25rem 2rem; }
}
/* Headings always start on a fresh full-width line, never beside a float */
.zency-article h2,
.zency-article h3 { clear: both; }

/* Benefit / symptom cards (feature + tint) */
.zency-article .z-benefit-grid {
  display: grid;
  gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  margin: 1.9rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .zency-article .z-benefit-grid { grid-template-columns: repeat(2, 1fr); }
}
.zency-article .z-benefit-card { border-radius: 1.25rem; padding: clamp(1.35rem, 1rem + 1.5vw, 1.9rem); }
.zency-article .z-benefit-card--feature {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 30px -18px rgba(68, 103, 91, 0.25);
}
.zency-article .z-benefit-card--tint { background: var(--color-sage-50); border: 1px solid var(--color-sage-200); }
.zency-article .z-benefit-card h3 { margin-top: 0; display: flex; align-items: center; gap: 0.55rem; }
.zency-article .z-benefit-card h3 .dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--color-sage-500); flex: none; }
.zency-article .z-benefit-card p:last-child { margin-bottom: 0; }

/* Callout — note / tip / "vidste du" (left olive accent). The icon is a clean
   outline info-circle; reuse the SAME svg for any info/tooltip affordance. */
.zency-article .z-callout {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--color-cream-2);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-olive);
  border-radius: 1rem;
  padding: 1.1rem 1.3rem;
  margin: 1.9rem 0;
}
.z-callout__icon { flex: none; width: 1.5rem; height: 1.5rem; color: var(--color-olive); margin-top: 0.1rem; }
.zency-article .z-callout p { margin: 0; }
/* Canonical info-circle markup (reuse anywhere — price-card tooltips, etc.):
   <svg viewBox="0 0 24 24" fill="none">
     <circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="1.8"/>
     <path d="M12 11v5" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/>
     <circle cx="12" cy="7.75" r="1.1" fill="currentColor"/>
   </svg>
   (colour follows currentColor — set the wrapper's text colour, don't hardcode.) */

/* Checklist — green circle + white check */
.zency-article ul.z-checklist { gap: 0.7rem; }
.zency-article ul.z-checklist li { padding-left: 2.2rem; line-height: 1.5; }
.zency-article ul.z-checklist li::before {
  content: "✓";
  left: 0; top: 0.05em;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--color-sage-500);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  display: grid; place-items: center;
}

/* Numbered process timeline */
.zency-article ol.z-steps { list-style: none; counter-reset: zstep; margin: 1.8rem 0; padding: 0; }
.zency-article ol.z-steps li { position: relative; counter-increment: zstep; padding: 0 0 1.6rem 3.6rem; }
.zency-article ol.z-steps li::before {
  content: counter(zstep);
  position: absolute;
  left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--color-sage-500);
  color: #fff;
  font-family: var(--font-dosis);
  font-weight: 700;
  font-size: 1.05rem;
  display: grid; place-items: center;
  z-index: 1;
}
.zency-article ol.z-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.2rem; top: 2.4rem; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--color-mint), #dce8e2);
  transform: translateX(-1px);
}

/* Contained CTA band (dark green conversion panel) */
.zency-article .z-cta-band {
  background: linear-gradient(160deg, #5b746f 0%, #2f3b39 100%);
  border-radius: 1.5rem;
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 2.75rem);
  margin: 2.5rem 0 0;
  color: var(--color-mint-soft);
}
.zency-article .z-cta-band h2 { color: #fff; margin: 0 0 0.6rem; padding-bottom: 0; }
.zency-article .z-cta-band h2::after { display: none; }
.zency-article .z-cta-band p { color: var(--color-mint-soft); margin-bottom: 1.25rem; }
.zency-article .z-cta-band .z-cta-band__btn {
  display: inline-block;
  border: 0;
  background: var(--color-olive);
  color: #fff;
  font-family: var(--font-dosis);
  font-weight: 400;
  letter-spacing: 1px;
  border-radius: 9999px;
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: background-color 0.2s;
}
.zency-article .z-cta-band .z-cta-band__btn:hover { background: var(--color-olive-dark); color: #fff; text-decoration: none; }

/* Action row — primary (olive) + optional secondary "gift" CTA (ghost). The ghost keeps the
   olive primary dominant; use for a complementary intent (e.g. "Køb som gave" → gavekort). */
.zency-article .z-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.zency-article .z-cta-band .z-cta-band__btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(216, 236, 224, 0.45); /* mint-soft, translucent */
  color: #fff;
}
.zency-article .z-cta-band .z-cta-band__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-mint);
  color: #fff;
}

/* ============================================================
   PRIMARY CTA BUTTON — olive pill, sentence case (never uppercase).
   ============================================================ */
.z-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-dosis);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: none;
  background: var(--color-olive);
  color: #fff;
  border: 1px solid var(--color-olive);
  border-radius: 9999px;
  padding: 0.9rem 2rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.z-btn:hover { background: var(--color-olive-dark); border-color: var(--color-olive-dark); color: #fff; }
.z-btn--outline { background: transparent; color: var(--color-olive); }
.z-btn--outline:hover { background: var(--color-olive); color: #fff; }
