/*
Theme Name: LytteDK
Theme URI: https://lytte.dk
Author: Jesper Carstens
Author URI: https://lytte.dk
Description: Minimalistisk WordPress-tema til lydbog-affiliate site.
Version: 1.2.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lydbogsfinderen
Tags: custom-menu, custom-logo, featured-images, translation-ready
*/

/* ═══════════════════════════════════════
   CUSTOM PROPERTIES
   ═══════════════════════════════════════ */
:root {
  --lf-ink: #1A1A1A;
  --lf-paper: #FAFAF7;
  --lf-warm: #F3EFE9;
  --lf-cream: #ece6db;
  --lf-accent: #E8553D;
  --lf-accent-hover: #D14A34;
  --lf-accent-soft: #FFF0ED;
  --lf-sage: #1A8A7D;
  --lf-sage-light: #E6F5F3;
  --lf-muted: #6B6B6B;
  --lf-border: #E8E6E1;
  --lf-white: #ffffff;

  --lf-shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --lf-shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --lf-shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

  --lf-radius: 14px;
  --lf-radius-sm: 8px;
  --lf-radius-lg: 20px;
  --lf-radius-pill: 100px;

  --lf-font-display: 'DM Serif Display', Georgia, serif;
  --lf-font-body: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --lf-font-serif: 'DM Serif Display', Georgia, serif;

  --lf-max-w: 1120px;
  --lf-content-w: 920px;
  --lf-gap: 40px;
  --lf-pad: 24px;
}


/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--lf-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--lf-ink);
  background: var(--lf-paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.011em;
}

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

a {
  color: var(--lf-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--lf-accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lf-font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--lf-ink);
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}


/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
#page {
  overflow-x: clip;
}

.lf-container {
  max-width: var(--lf-max-w);
  margin: 0 auto;
  padding: 0 var(--lf-pad);
}

/* Prose container for readable text (pages, posts) */
.lf-prose {
  max-width: var(--lf-content-w);
}

.lf-section { padding: 44px 0; }

.lf-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.lf-section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 0; letter-spacing: -0.02em; }
.lf-section-header a { font-size: 13px; font-weight: 600; }
.lf-section-header a:hover { text-decoration: underline; }


/* ═══════════════════════════════════════
   PAGE & POST CONTENT (full-width)
   ═══════════════════════════════════════ */
.lf-page {
  max-width: var(--lf-content-w);
  margin-left: auto;
  margin-right: auto;
  padding: 56px 0 72px;
}

.lf-page__header {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--lf-border);
}

.lf-page__header h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 0;
}

.lf-page__header .lf-page__meta {
  font-size: 14px;
  color: var(--lf-muted);
  margin-top: 8px;
}

/* Entry content — full-width container, prose width for text */
.entry-content {
  font-family: var(--lf-font-body);
  font-size: 16.5px;
  line-height: 1.8;
  color: #3d3830;
}

/* Let wide elements break out */
.entry-content > .alignwide,
.entry-content > .wp-block-image.alignwide,
.entry-content > .wp-block-gallery {
  max-width: var(--lf-max-w);
}

.entry-content > .alignfull {
  max-width: none;
  margin-left: calc(-1 * var(--lf-pad));
  margin-right: calc(-1 * var(--lf-pad));
}

.entry-content h1 {
  font-family: var(--lf-font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}

.entry-content h2 {
  font-family: var(--lf-font-body);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}

.entry-content h3 {
  font-family: var(--lf-font-body);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.entry-content h4 {
  font-family: var(--lf-font-body);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--lf-muted);
}

.entry-content p {
  margin-bottom: 1.4em;
}

.entry-content a {
  color: var(--lf-accent);
  text-decoration: underline;
  text-decoration-color: var(--lf-accent-soft);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.entry-content a:hover {
  text-decoration-color: var(--lf-accent);
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--lf-accent);
  background: var(--lf-warm);
  border-radius: 0 var(--lf-radius-sm) var(--lf-radius-sm) 0;
  font-style: italic;
  color: var(--lf-ink);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content ul,
.entry-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.4em;
  margin-top: 0.5em;
}

.entry-content ul { list-style-type: disc !important; }
.entry-content ol { list-style-type: decimal !important; }

.entry-content ul ul { list-style-type: circle !important; }
.entry-content ol ol { list-style-type: lower-alpha !important; }

.entry-content li {
  margin-bottom: 0.5em;
  padding-left: 0.4em;
  line-height: 1.7;
}

.entry-content li::marker {
  color: var(--lf-accent);
}

.entry-content img {
  border-radius: var(--lf-radius);
  margin: 2em 0;
}

.entry-content figure {
  margin: 2em 0;
}

.entry-content figcaption {
  font-family: var(--lf-font-body);
  font-size: 13px;
  color: var(--lf-muted);
  margin-top: 8px;
  text-align: center;
}

.entry-content hr {
  border: none;
  border-top: 1px solid var(--lf-border);
  margin: 3em 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-family: var(--lf-font-body);
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--lf-border);
  text-align: left;
}

.entry-content th {
  font-weight: 600;
  background: var(--lf-warm);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lf-muted);
}

.entry-content code {
  font-size: 0.9em;
  background: var(--lf-warm);
  padding: 2px 6px;
  border-radius: 4px;
}

.entry-content pre {
  background: var(--lf-ink);
  color: var(--lf-paper);
  padding: 24px;
  border-radius: var(--lf-radius);
  overflow-x: auto;
  margin: 2em 0;
  font-size: 14px;
  line-height: 1.6;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}


/* ═══════════════════════════════════════
   FAQ BLOCK (Yoast schema-faq + generic)
   ═══════════════════════════════════════ */
.schema-faq,
.wp-block-yoast-faq-block {
  margin: 2.5em 0;
}

.schema-faq-section {
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius);
  background: var(--lf-white);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.schema-faq-section:hover {
  border-color: var(--lf-accent-soft);
  box-shadow: var(--lf-shadow-sm);
}

.schema-faq-section .schema-faq-question,
.schema-faq-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--lf-font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--lf-ink);
  cursor: pointer;
  margin: 0;
  user-select: none;
  list-style: none;
}

.schema-faq-section .schema-faq-question::-webkit-details-marker,
.schema-faq-section summary::-webkit-details-marker {
  display: none;
}

.schema-faq-section .schema-faq-question::after,
.schema-faq-section summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 16px;
  background: var(--lf-warm);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%238c857b' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 4l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s ease, background-color 0.2s;
}

.schema-faq-section[open] .schema-faq-question::after,
.schema-faq-section[open] summary::after,
.schema-faq-section.is-open .schema-faq-question::after {
  transform: rotate(180deg);
  background-color: var(--lf-accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%23c45d3e' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 4l3 3 3-3'/%3E%3C/svg%3E");
}

.schema-faq-section .schema-faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #5a534a;
}

.schema-faq-section .schema-faq-answer p:last-child {
  margin-bottom: 0;
}


/* ═══════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════ */
.pagination,
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--lf-radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--lf-muted);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.page-numbers:hover {
  background: var(--lf-warm);
  color: var(--lf-ink);
}

.page-numbers.current {
  background: var(--lf-ink);
  color: var(--lf-paper);
}

.page-numbers.dots {
  border: none;
  pointer-events: none;
}


/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.site-header {
  border-bottom: 1px solid var(--lf-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(250,250,247,0.85);
}

.site-header__inner {
  max-width: var(--lf-max-w);
  margin: 0 auto;
  padding: 0 var(--lf-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-branding a {
  font-family: var(--lf-font-display);
  font-size: 22px;
  color: var(--lf-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-branding__icon {
  width: 34px; height: 34px;
  background: var(--lf-accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  flex-shrink: 0;
}

/* Navigation */
.main-navigation { display: flex; align-items: center; gap: 28px; }
.main-navigation .menu { display: flex; align-items: center; gap: 28px; }
.main-navigation a {
  color: var(--lf-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--lf-ink); }

.main-navigation .menu-item-cta > a {
  background: var(--lf-ink);
  color: var(--lf-paper) !important;
  padding: 8px 20px;
  border-radius: var(--lf-radius-pill);
  font-size: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.main-navigation .menu-item-cta > a:hover {
  transform: translateY(-1px);
  box-shadow: var(--lf-shadow-md);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--lf-ink);
  font-size: 24px;
}


/* ═══════════════════════════════════════
   HEADER SEARCH (right-aligned)
   ═══════════════════════════════════════ */
.site-header__search {
  flex-shrink: 0;
}
.lf-header-search {
  position: relative;
  width: 240px;
}
.lf-header-search__input {
  width: 100%;
  height: 38px;
  border: 1.5px solid var(--lf-border);
  border-radius: var(--lf-radius-pill);
  padding: 0 38px 0 14px;
  font-family: var(--lf-font-body);
  font-size: 13px;
  background: var(--lf-white);
  color: var(--lf-ink);
  outline: none;
  transition: all 0.2s;
}
.lf-header-search__input::placeholder { color: var(--lf-muted); opacity: 0.6; }
.lf-header-search__input:focus {
  border-color: var(--lf-accent);
  box-shadow: 0 0 0 3px rgba(232,85,61,0.08);
  width: 320px;
}
.lf-header-search__btn {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border: none; border-radius: 50%;
  background: var(--lf-accent);
  color: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lf-header-search__btn:hover { background: var(--lf-accent-hover); }


/* ═══════════════════════════════════════
   COMPARE — Premium service cards (TOP)
   ═══════════════════════════════════════ */
.lf-compare {
  padding: 40px 0 44px;
  border-bottom: 1px solid var(--lf-border);
}
.lf-compare--top {
  padding: 48px 0 52px;
  border-bottom: none;
}
.lf-compare__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 16px;
}
.lf-compare__aff-note {
  font-size: 11px;
  color: var(--lf-muted);
  font-style: italic;
  margin: 16px 0 0;
}

/* Service card — premium */
.lf-svc-card {
  background: var(--lf-white);
  border: 1px solid var(--lf-border);
  border-radius: 16px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: visible;
}
.lf-svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lf-sage) 0%, var(--lf-sage-light) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.lf-svc-card:hover {
  border-color: var(--lf-accent);
  box-shadow: 0 12px 40px rgba(232,85,61,0.1);
  transform: translateY(-4px);
}
.lf-svc-card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--lf-accent) 0%, var(--lf-accent-hover) 100%);
}

/* Featured / recommended card */
.lf-svc-card--featured {
  border-color: var(--lf-accent);
  box-shadow: 0 4px 20px rgba(232,85,61,0.08);
}
.lf-svc-card--featured::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--lf-accent) 0%, #f07b39 100%);
}

/* Anbefalet badge */
.lf-svc-card__badge {
  position: absolute;
  top: -13px; left: 26px;
  background: var(--lf-ink);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.lf-svc-card--featured .lf-svc-card__badge {
  background: var(--lf-accent);
}

.lf-svc-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.lf-svc-card__logo {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--lf-border);
  background: var(--lf-white);
  display: flex; align-items: center; justify-content: center;
}
.lf-svc-card__logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 5px;
}
.lf-svc-card__logo--fb {
  background: var(--lf-accent);
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-color: var(--lf-accent);
}
.lf-svc-card__name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.4px;
  flex: 1;
}
.lf-svc-card__score {
  width: 36px; height: 36px; min-width: 36px;
  border-radius: 50%;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}

.lf-svc-card__price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0ece6;
}
.lf-svc-card__price-from {
  font-size: 12px;
  color: var(--lf-muted);
  font-weight: 500;
}
.lf-svc-card__price-amount {
  font-family: var(--lf-font-serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1.5px;
}
.lf-svc-card__price-per {
  font-size: 13px;
  color: var(--lf-muted);
  margin-left: 2px;
}

.lf-svc-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.lf-svc-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: #4a453d;
}
.lf-svc-card__features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.lf-svc-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lf-svc-card__cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: var(--lf-ink);
  color: var(--lf-paper) !important;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: -0.1px;
}
.lf-svc-card__cta:hover {
  background: #333;
  color: var(--lf-paper) !important;
}
.lf-svc-card--featured .lf-svc-card__cta {
  background: var(--lf-accent);
}
.lf-svc-card--featured .lf-svc-card__cta:hover {
  background: var(--lf-accent-hover);
}
.lf-svc-card__cta.lf-aff::after {
  content: "*";
  font-size: 0.7em;
  vertical-align: super;
  opacity: 0.7;
  margin-left: 1px;
}
.lf-svc-card__read {
  text-align: center;
  font-size: 13px;
  color: var(--lf-muted) !important;
  text-decoration: underline !important;
}
.lf-svc-card__note {
  text-align: center;
  font-size: 11.5px;
  color: var(--lf-muted);
  margin-top: 6px;
}


/* ═══════════════════════════════════════
   QUIZ BANNER — Full-width CTA
   ═══════════════════════════════════════ */
.lf-quiz-banner {
  background: var(--lf-ink);
  position: relative;
  overflow: hidden;
  border-radius: var(--lf-radius-lg);
  margin: 0 var(--lf-pad);
  max-width: calc(var(--lf-max-w) - var(--lf-pad) * 2);
  margin-left: auto;
  margin-right: auto;
}
.lf-quiz-banner__bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.lf-quiz-banner__bg-circle--1 {
  top: -60px; right: -40px;
  width: 260px; height: 260px;
  background: var(--lf-accent);
  opacity: 0.12;
}
.lf-quiz-banner__bg-circle--2 {
  bottom: -80px; right: 120px;
  width: 180px; height: 180px;
  background: var(--lf-sage);
  opacity: 0.1;
}
.lf-quiz-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 0;
  position: relative;
  z-index: 1;
}
.lf-quiz-banner__text {
  max-width: 520px;
}
.lf-quiz-banner__text h2 {
  font-family: var(--lf-font-display);
  font-size: clamp(28px, 4vw, 36px);
  color: white;
  line-height: 1.12;
  margin-bottom: 10px;
}
.lf-quiz-banner__text h2 em {
  font-style: italic;
  opacity: 0.85;
}
.lf-quiz-banner__text p {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 400px;
}
.lf-quiz-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lf-accent);
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  letter-spacing: -0.1px;
}
.lf-quiz-banner__btn:hover {
  background: var(--lf-accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.lf-quiz-banner__btn svg {
  transition: transform 0.25s;
}
.lf-quiz-banner__btn:hover svg {
  transform: translateX(4px);
}

/* Decorative book shapes */
.lf-quiz-banner__visual {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  opacity: 0.2;
}
.lf-quiz-banner__book {
  width: 48px;
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
}


/* ═══════════════════════════════════════
   SECTION HEADER — updated label style
   ═══════════════════════════════════════ */
.lf-section-header__label {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lf-accent);
}
.lf-section-header__bar {
  display: none;
}


/* ═══════════════════════════════════════
   LEGACY HERO — kept for back-compat but
   no longer used on front-page
   ═══════════════════════════════════════ */
.lf-hero-compact {
  background: var(--lf-warm);
  padding: 64px var(--lf-pad) 0;
  position: relative;
  overflow: hidden;
}
.lf-hero-compact::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 450px;
  background: radial-gradient(ellipse, rgba(232,85,61,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.lf-hero-compact__inner {
  max-width: var(--lf-max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lf-hero-compact__main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lf-hero-compact__main h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 14px;
}
.lf-hero-compact__main h1 em { font-style: italic; color: var(--lf-accent); }
.lf-hero-compact__sub {
  font-family: var(--lf-font-serif);
  font-size: 16px;
  color: var(--lf-muted);
  max-width: 440px;
  margin: 0 0 28px;
  line-height: 1.6;
}
.lf-hero-compact .lf-search { max-width: 520px; margin: 0; width: 100%; }
.lf-hero-compact .lf-filters { justify-content: center; margin-top: 14px; }
.lf-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 580px;
  width: 100%;
  margin: 36px auto 0;
  padding-bottom: 52px;
}
.lf-hero-action {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  border-radius: var(--lf-radius-lg);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: left;
}
.lf-hero-action:hover {
  transform: translateY(-3px);
  box-shadow: var(--lf-shadow-lg);
}
.lf-hero-action--quiz {
  background: linear-gradient(135deg, var(--lf-ink) 0%, #2d261f 100%);
  color: var(--lf-paper);
  position: relative;
  overflow: hidden;
}
.lf-hero-action--quiz::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(232,85,61,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.lf-hero-action--quiz:hover { color: var(--lf-paper); }
.lf-hero-action--genre {
  background: var(--lf-white);
  border: 1px solid var(--lf-border);
  color: var(--lf-ink);
}
.lf-hero-action--genre:hover { color: var(--lf-ink); }
.lf-hero-action__icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center; justify-content: center;
  font-family: var(--lf-font-display);
  font-size: 18px;
  font-style: italic;
}
.lf-hero-action--quiz .lf-hero-action__icon {
  background: var(--lf-accent);
  color: white;
}
.lf-hero-action--genre .lf-hero-action__icon {
  background: var(--lf-sage-light);
  color: var(--lf-sage);
}
.lf-hero-action__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.lf-hero-action__title {
  font-family: var(--lf-font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}
.lf-hero-action--quiz .lf-hero-action__title { color: var(--lf-paper); }
.lf-hero-action__desc {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.55;
  font-family: var(--lf-font-body);
}
.lf-hero-wave {
  display: block;
  width: 100%;
  height: 48px;
  background: var(--lf-warm);
  position: relative;
}
.lf-hero-wave svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}


/* ═══════════════════════════════════════
   NEW HERO — v2 clean centered design
   ═══════════════════════════════════════ */
.lf-hero-v2 {
  max-width: var(--lf-max-w);
  margin: 0 auto;
  padding: 80px var(--lf-pad) 24px;
  text-align: center;
}
.lf-hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lf-sage-light);
  color: var(--lf-sage);
  padding: 6px 16px;
  border-radius: var(--lf-radius-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: lfFadeUp 0.6s ease both;
}
.lf-hero-v2__badge::before { content: '✦'; }

.lf-hero-v2 h1 {
  font-family: var(--lf-font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 700px;
  margin: 0 auto 20px;
  animation: lfFadeUp 0.6s ease 0.1s both;
}
.lf-hero-v2 h1 em {
  font-style: italic;
  color: var(--lf-accent);
}
.lf-hero-v2__sub {
  font-size: 1.1rem;
  color: var(--lf-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
  animation: lfFadeUp 0.6s ease 0.2s both;
}


/* ═══════════════════════════════════════
   HOW IT WORKS — Steps section
   ═══════════════════════════════════════ */
.lf-steps {
  padding: 20px 0 56px;
  border-bottom: 1px solid var(--lf-border);
}
.lf-steps__title {
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.02em;
  margin-bottom: 44px;
  max-width: 480px;
}
.lf-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.lf-step {
  position: relative;
  padding-top: 16px;
}
.lf-step__num {
  font-family: var(--lf-font-display);
  font-size: 3.5rem;
  color: var(--lf-border);
  line-height: 1;
  margin-bottom: 16px;
}
.lf-step h3 {
  font-family: var(--lf-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.lf-step p {
  font-size: 0.9rem;
  color: var(--lf-muted);
  line-height: 1.6;
  margin: 0;
}

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


/* ═══════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════ */
.lf-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.lf-search__input {
  width: 100%;
  padding: 16px 56px 16px 22px;
  font-size: 15px;
  border: 2px solid var(--lf-border);
  border-radius: var(--lf-radius-pill);
  background: var(--lf-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--lf-ink);
}
.lf-search__input::placeholder { color: var(--lf-muted); opacity: 0.55; }
.lf-search__input:focus {
  border-color: var(--lf-accent);
  box-shadow: 0 0 0 4px rgba(232,85,61,0.08);
}
.lf-search__btn {
  position: absolute;
  right: 5px; top: 50%;
  transform: translateY(-50%);
  background: var(--lf-accent);
  color: white; border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.lf-search__btn:hover { transform: translateY(-50%) scale(1.05); }


/* ═══════════════════════════════════════
   FILTER CHIPS
   ═══════════════════════════════════════ */
.lf-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.lf-chip {
  padding: 7px 16px;
  border-radius: var(--lf-radius-pill);
  border: 1px solid var(--lf-border);
  background: var(--lf-white);
  font-size: 13px;
  font-weight: 500;
  color: var(--lf-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.lf-chip:hover {
  border-color: var(--lf-accent-soft);
  color: var(--lf-accent);
}
.lf-chip--active {
  border-color: var(--lf-accent);
  color: var(--lf-accent);
  background: rgba(232,85,61,0.06);
}


/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.lf-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 13px 30px;
  border-radius: var(--lf-radius-pill);
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lf-btn--primary { background: var(--lf-accent); color: white; }
.lf-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,85,61,0.3);
  color: white;
}
.lf-btn--secondary {
  background: var(--lf-white);
  color: var(--lf-ink);
  border: 1px solid var(--lf-border);
}
.lf-btn--secondary:hover { border-color: var(--lf-accent-soft); }


/* Quiz banner — deprecated, now integrated into hero */


/* ═══════════════════════════════════════
   BOOK CARDS & GRID
   ═══════════════════════════════════════ */
.lf-book-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 100%;
}
.lf-book-grid--5 { grid-template-columns: repeat(5, 1fr); }
.lf-book-grid--3 { grid-template-columns: repeat(3, 1fr); }

.lf-book-card {
  cursor: pointer;
  transition: transform 0.25s ease;
  text-decoration: none;
  color: var(--lf-ink);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 260px;
}
.lf-book-card:hover { transform: translateY(-5px); color: var(--lf-ink); }

.lf-book-card__cover {
  aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--lf-shadow-sm);
  margin-bottom: 10px;
  background: var(--lf-cream);
  flex-shrink: 0;
  width: 100%;
}
.lf-book-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Audiobook badge — headphone icon */
.lf-book-card__cover::after {
  content: '';
  position: absolute;
  bottom: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(26,22,18,0.75) 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='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 18v-6a9 9 0 0118 0v6'/%3E%3Cpath d='M21 19a2 2 0 01-2 2h-1a2 2 0 01-2-2v-3a2 2 0 012-2h3zM3 19a2 2 0 002 2h1a2 2 0 002-2v-3a2 2 0 00-2-2H3z'/%3E%3C/svg%3E") no-repeat center center;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s;
}
.lf-book-card:hover .lf-book-card__cover::after {
  opacity: 1;
}

.lf-book-card__duration {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(26,22,18,0.85);
  backdrop-filter: blur(4px);
  color: white;
  padding: 3px 9px;
  border-radius: var(--lf-radius-pill);
  font-size: 10px; font-weight: 500;
}

/* Text area — fixed height so cards align */
.lf-book-card__info {
  display: flex;
  flex-direction: column;
  min-height: 52px;
}

.lf-book-card__title {
  font-family: var(--lf-font-body);
  font-size: 14px; font-weight: 600;
  line-height: 1.35; margin-bottom: 2px;
  color: var(--lf-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lf-book-card__author {
  font-size: 13px;
  color: var(--lf-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lf-book-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.lf-rating { font-size: 11px; font-weight: 600; color: var(--lf-accent); }

.lf-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--lf-muted);
  background: var(--lf-warm);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}


/* ═══════════════════════════════════════
   GENRE CARDS & TABS
   ═══════════════════════════════════════ */
.lf-genre-tabs {
  display: flex; gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.lf-genre-tab {
  padding: 8px 18px;
  border-radius: var(--lf-radius-pill);
  border: 1.5px solid var(--lf-border);
  background: var(--lf-white);
  font-size: 13px; font-weight: 500;
  color: var(--lf-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--lf-font-body);
}
.lf-genre-tab:hover { border-color: var(--lf-accent-soft); color: var(--lf-accent); }
.lf-genre-tab--active {
  border-color: var(--lf-ink);
  background: var(--lf-ink);
  color: var(--lf-paper);
}

.lf-genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lf-genre-card {
  background: var(--lf-white);
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius);
  padding: 20px 18px;
  text-decoration: none;
  color: var(--lf-ink);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
}
.lf-genre-card:hover {
  border-color: var(--lf-accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--lf-shadow-md);
  color: var(--lf-ink);
}
.lf-genre-card__icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lf-genre-card h3 { font-size: 16px; margin: 0; line-height: 1.3; font-family: var(--lf-font-body); font-weight: 500; }
.lf-genre-card span { font-size: 11px; color: var(--lf-muted); }


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  background: var(--lf-paper);
  border-top: 1px solid var(--lf-border);
  color: var(--lf-muted);
  padding: 56px 0 28px;
  margin-top: 72px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.site-footer__brand .site-branding a { color: var(--lf-ink); }
.site-footer__brand p { font-size: 14px; line-height: 1.6; max-width: 260px; margin-top: 10px; color: var(--lf-muted); }

.site-footer__col h4 {
  color: var(--lf-ink);
  font-family: var(--lf-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer__col a {
  display: block;
  color: var(--lf-muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.2s;
  line-height: 1.5;
}
.site-footer__col a:hover { color: var(--lf-ink); }

.site-footer__bottom {
  border-top: 1px solid var(--lf-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--lf-muted);
  flex-wrap: wrap; gap: 8px;
}


/* ═══════════════════════════════════════
   WORDPRESS DEFAULTS
   ═══════════════════════════════════════ */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin: 0 auto 1.5em; }

.wp-caption { margin-bottom: 1.5em; max-width: 100%; }
.wp-caption .wp-caption-text {
  margin: 0.5em 0;
  font-size: 13px;
  color: var(--lf-muted);
  text-align: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 2em;
}

.gallery img { border-radius: var(--lf-radius-sm); }

.sticky { display: block; }
.updated:not(.published) { display: none; }

.page-links { clear: both; margin: 2em 0; }

/* Selection */
::selection {
  background: rgba(232,85,61,0.15);
  color: var(--lf-ink);
}


/* ═══════════════════════════════════════
   GENRE CARDS IN CONTENT (shortcode)
   ═══════════════════════════════════════ */
.entry-content .lf-genre-grid--shortcode a.lf-genre-card {
  text-decoration: none;
}
.entry-content .lf-genre-grid--shortcode a.lf-genre-card:hover {
  text-decoration: none;
}
.lf-genre-grid--shortcode {
  margin: 28px 0 36px;
}


/* ═══════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════ */
.lf-breadcrumbs {
  background: var(--lf-warm);
  border-bottom: 1px solid var(--lf-border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--lf-muted);
}
.lf-breadcrumbs a {
  color: var(--lf-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.lf-breadcrumbs a:hover { color: var(--lf-accent); }
.lf-breadcrumbs__sep {
  margin: 0 6px;
  color: var(--lf-border);
}
.lf-breadcrumbs__current {
  color: var(--lf-ink);
  font-weight: 500;
}


/* ═══════════════════════════════════════
   HEADER DROPDOWN MENUS
   ═══════════════════════════════════════ */
.main-navigation .menu > .menu-item {
  position: relative;
}
.main-navigation .menu > .menu-item > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lf-white);
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow-lg);
  min-width: 200px;
  padding: 8px 0;
  z-index: 200;
  flex-direction: column;
  gap: 0;
}
.main-navigation .menu > .menu-item:hover > .sub-menu,
.main-navigation .menu > .menu-item:focus-within > .sub-menu {
  display: flex;
}
.main-navigation .sub-menu .menu-item {
  display: block;
}
.main-navigation .sub-menu a {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--lf-muted);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.main-navigation .sub-menu a:hover {
  background: var(--lf-warm);
  color: var(--lf-ink);
}
/* Arrow indicator for items with children */
.main-navigation .menu > .menu-item-has-children > a::after {
  content: '▾';
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  vertical-align: middle;
}

/* Custom logo constraint */
.site-branding .custom-logo-link img,
.site-branding .custom-logo {
  max-height: 38px !important;
  width: auto !important;
  height: auto;
}


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .lf-book-grid,
  .lf-book-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .lf-genre-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .lf-hero-compact__main h1 { font-size: clamp(28px, 4vw, 40px); }
  .lf-compare__grid { grid-template-columns: 1fr; gap: 16px; }
  .lf-svc-card { max-width: 480px; }
  .lf-quiz-banner__visual { display: none; }
  .lf-steps__grid { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 768px) {
  :root {
    --lf-pad: 20px;
    --lf-content-w: 100%;
  }
  .menu-toggle { display: block; }
  .main-navigation .menu {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--lf-paper);
    border-bottom: 1px solid var(--lf-border);
    flex-direction: column;
    padding: 16px var(--lf-pad);
    gap: 0;
    box-shadow: var(--lf-shadow-lg);
  }
  .main-navigation .menu.is-open { display: flex; }
  .main-navigation .menu a { font-size: 16px; padding: 8px 0; }

  /* Mobile dropdowns: inline instead of absolute */
  .main-navigation .menu > .menu-item > .sub-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
    min-width: auto;
    display: none;
    border-radius: 0;
  }
  .main-navigation .menu > .menu-item:hover > .sub-menu,
  .main-navigation .menu > .menu-item.is-open > .sub-menu {
    display: flex;
  }
  .main-navigation .sub-menu a {
    padding: 6px 0;
    font-size: 14px;
  }
  .main-navigation .sub-menu a:hover { background: transparent; }

  .entry-content { font-size: 16px; }
  .lf-page__header h1 { font-size: 28px; }

  .lf-breadcrumbs { font-size: 12px; }

  .lf-hero-compact { padding: 32px var(--lf-pad) 0; }
  .lf-hero-compact__sub { font-size: 14px; }
  .lf-hero-actions { padding-bottom: 40px; }

  .site-header__search { display: none; }

  /* Quiz banner mobile */
  .lf-quiz-banner { margin: 0 var(--lf-pad); border-radius: 16px; }
  .lf-quiz-banner__inner { padding: 40px 0; flex-direction: column; text-align: center; }
  .lf-quiz-banner__text h2 { font-size: 28px; }
  .lf-quiz-banner__text p { max-width: 100%; }
  .lf-quiz-banner__btn { padding: 12px 24px; font-size: 14px; }
}

@media (max-width: 640px) {
  .lf-book-grid,
  .lf-book-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .lf-genre-grid { grid-template-columns: 1fr; }
  .lf-hero-compact__main h1 { font-size: 28px; }
  .lf-hero-actions { grid-template-columns: 1fr; gap: 12px; padding-bottom: 36px; }
  .lf-hero-action { padding: 18px 16px; }
  .lf-hero-action__title { font-size: 15px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__bottom { flex-direction: column; }

  .lf-svc-card__price-amount { font-size: 30px; }
  .lf-compare--top { padding: 36px 0 40px; }
  .lf-quiz-banner__inner { padding: 32px 0; }
  .lf-quiz-banner__text p { margin-bottom: 20px; }
}


/* ═══════════════════════════════════════
   ARTICLE LAYOUT WITH SIDEBAR
   ═══════════════════════════════════════ */
.lf-article-layout {
  display: block;
}

.lf-article-layout--has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.lf-article-layout__main {
  min-width: 0;
  overflow: hidden;
}

.lf-article-layout__sidebar {
  display: none;
}

/* Only show sidebar on desktop */
@media (min-width: 1025px) {
  .lf-article-layout__sidebar {
    display: block;
    position: sticky;
    top: 88px; /* header height + gap */
    padding-top: 48px;
    align-self: start;
    max-height: calc(100vh - 88px);
  }
}

/* Sidebar ad */
.lf-sidebar-ad {
  text-align: left;
}

.lf-sidebar-ad .lf-ad__label {
  text-align: left;
}

.lf-sidebar-ad__link {
  display: inline-block;
  border-radius: var(--lf-radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 100%;
}

.lf-sidebar-ad__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--lf-shadow-md);
}

.lf-sidebar-ad__img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--lf-radius);
}


/* ═══════════════════════════════════════
   ARTICLE / BLOG POST LAYOUT
   ═══════════════════════════════════════ */
.lf-article {
  max-width: var(--lf-content-w);
  padding: 48px 0 64px;
}

/* When sidebar is present, article fills its grid column */
.lf-article-layout--has-sidebar .lf-article {
  max-width: none;
}

.lf-article__header {
  margin-bottom: 36px;
}

.lf-article__cats {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.lf-article__title {
  font-family: var(--lf-font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.1;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}

.lf-article__excerpt {
  font-family: var(--lf-font-serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--lf-muted);
  margin-top: 16px;
  margin-bottom: 0;
}

.lf-article__meta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--lf-border);
}

.lf-article__author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lf-article__avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50%;
  object-fit: cover;
}

.lf-article__author-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--lf-ink);
}

.lf-article__date {
  display: block;
  font-size: 13px;
  color: var(--lf-muted);
}

.lf-article__hero-img {
  margin: 0 0 36px;
  border-radius: var(--lf-radius-lg);
  overflow: hidden;
}

.lf-article__hero-img img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
}

.lf-article__hero-img figcaption {
  font-size: 13px;
  color: var(--lf-muted);
  text-align: center;
  margin-top: 10px;
  padding: 0 var(--lf-pad);
}

.lf-article__content {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Article footer */
.lf-article__footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--lf-border);
}

.lf-article__tags {
  margin-bottom: 32px;
}

.lf-article__tags-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--lf-muted);
  margin-bottom: 10px;
}

.lf-article__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Author box */
.lf-author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--lf-warm);
  border-radius: var(--lf-radius);
}

.lf-author-box__avatar {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.lf-author-box__info {
  min-width: 0;
}

.lf-author-box__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--lf-muted);
  margin-bottom: 2px;
}

.lf-author-box__name {
  display: block;
  font-family: var(--lf-font-display);
  font-size: 18px;
  color: var(--lf-ink);
}

.lf-author-box__bio {
  font-size: 14px;
  color: var(--lf-muted);
  line-height: 1.6;
  margin-top: 6px;
  margin-bottom: 0;
}

/* Post navigation */
.post-navigation {
  margin-top: 48px;
  padding: 0;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  min-width: 0;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  display: block;
  padding: 20px;
  background: var(--lf-white);
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius);
  text-decoration: none;
  transition: all 0.2s;
}

.post-navigation a:hover {
  border-color: var(--lf-accent-soft);
  box-shadow: var(--lf-shadow-sm);
  transform: translateY(-2px);
}

.lf-postnav__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lf-muted);
  margin-bottom: 4px;
}

.lf-postnav__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--lf-ink);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ═══════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════ */
.lf-related {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--lf-border);
}

.lf-related__title {
  font-family: var(--lf-font-display);
  font-size: 26px;
  margin-bottom: 24px;
}

.lf-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


/* ═══════════════════════════════════════
   BLOG CARDS (shared: front page + related)
   ═══════════════════════════════════════ */
.lf-blog-card {
  border-radius: var(--lf-radius);
  overflow: hidden;
  background: var(--lf-white);
  border: 1px solid var(--lf-border);
  transition: all 0.25s;
}

.lf-blog-card:hover {
  border-color: var(--lf-accent-soft);
  box-shadow: var(--lf-shadow-md);
  transform: translateY(-3px);
}

.lf-blog-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--lf-ink);
  height: 100%;
}

.lf-blog-card__link:hover {
  color: var(--lf-ink);
}

.lf-blog-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--lf-cream);
}

.lf-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.lf-blog-card:hover .lf-blog-card__img img {
  transform: scale(1.04);
}

.lf-blog-card__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lf-blog-card__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lf-accent);
  margin-bottom: 6px;
}

.lf-blog-card__title {
  font-family: var(--lf-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--lf-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lf-blog-card__desc {
  font-size: 14px;
  color: var(--lf-muted);
  line-height: 1.55;
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lf-blog-card__meta {
  font-size: 12px;
  color: var(--lf-muted);
  margin-top: auto;
}


/* ── Featured blog card (large, front page) ── */
.lf-blog-card--featured {
  grid-column: 1 / -1;
}

.lf-blog-card--featured .lf-blog-card__link {
  flex-direction: row;
}

.lf-blog-card--featured .lf-blog-card__img {
  flex: 1;
  aspect-ratio: auto;
  min-height: 280px;
}

.lf-blog-card--featured .lf-blog-card__img--featured {
  aspect-ratio: auto;
}

.lf-blog-card--featured .lf-blog-card__body {
  flex: 1;
  padding: 28px 32px;
  justify-content: center;
}

.lf-blog-card__title--featured {
  font-family: var(--lf-font-display) !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  -webkit-line-clamp: 3 !important;
}


/* ── Blog grid (front page) ── */
.lf-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lf-section--blog {
  background: var(--lf-warm);
  padding: 56px 0 64px;
  margin-top: 0;
}


/* ═══════════════════════════════════════
   AD BLOCKS (3 types: banner, card, inline)
   ═══════════════════════════════════════ */

/* Shared */
.lf-ad {
  position: relative;
  margin: 32px 0;
}

.lf-ad__label {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--lf-muted);
  margin-bottom: 6px;
  opacity: 0.7;
}

.lf-aff-star {
  font-size: 0.75em;
  opacity: 0.6;
  margin-left: 1px;
  vertical-align: super;
  font-weight: 400;
}

/* Logo wrapper — white bg, shows full logo */
.lf-ad__logo-wrap {
  background: var(--lf-white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px 10px;
}

.lf-ad__logo {
  display: block;
  max-height: 24px;
  width: auto;
  max-width: 90px;
}

.lf-ad__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: var(--lf-accent);
  color: var(--lf-white) !important;
  border: none;
  border-radius: var(--lf-radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
}

.lf-ad__btn:hover {
  background: var(--lf-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,85,61,0.25);
  color: var(--lf-white) !important;
}


/* ── 1. Banner (full-width dark CTA) ── */
.lf-ad--banner .lf-ad__inner {
  background: linear-gradient(135deg, #0f0d0a 0%, #2a2520 100%);
  border-radius: var(--lf-radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.lf-ad--banner .lf-ad__inner::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(232,85,61,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.lf-ad--banner .lf-ad__left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.lf-ad__title {
  display: block;
  font-family: var(--lf-font-display);
  font-size: 17px;
  color: var(--lf-paper);
  line-height: 1.3;
}

.lf-ad__sub {
  display: block;
  font-size: 12px;
  opacity: 0.45;
  color: var(--lf-paper);
  margin-top: 2px;
}


/* ── 2. Card (compact, centred) ── */
.lf-ad--card .lf-ad__card-inner {
  background: var(--lf-white);
  border: 1.5px solid var(--lf-border);
  border-radius: var(--lf-radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.lf-ad--card:hover .lf-ad__card-inner {
  border-color: var(--lf-accent-soft);
}

.lf-ad__logo-wrap--card {
  margin: 0 auto 16px;
  border-radius: 8px;
  border: 1px solid var(--lf-border);
  padding: 8px 16px;
  max-width: 150px;
}

.lf-ad__logo-wrap--card .lf-ad__logo {
  max-height: 30px;
  max-width: 120px;
}

.lf-ad__card-title {
  display: block;
  font-family: var(--lf-font-display);
  font-size: 18px;
  color: var(--lf-ink);
  line-height: 1.3;
}

.lf-ad__card-sub {
  display: block;
  font-size: 13px;
  color: var(--lf-muted);
  margin-top: 4px;
}

.lf-ad__btn--card {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
}


/* ── 3. Inline (text-link, subtle bar) ── */
.lf-ad--inline .lf-ad__inline-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--lf-warm);
  border-radius: var(--lf-radius-sm);
  border: 1px solid var(--lf-border);
}

.lf-ad__logo-wrap--inline {
  border-radius: 4px;
  border: 1px solid var(--lf-border);
  padding: 4px 8px;
}

.lf-ad__logo-wrap--inline .lf-ad__logo {
  max-height: 20px;
  max-width: 70px;
}

.lf-ad__inline-text {
  flex: 1;
  font-size: 14px;
  color: var(--lf-ink);
  min-width: 0;
  line-height: 1.4;
}

.lf-ad__inline-sub {
  font-weight: 400;
  color: var(--lf-muted);
}

.lf-ad__inline-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--lf-accent) !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.lf-ad__inline-link:hover {
  color: var(--lf-accent-hover) !important;
}

/* Ad blocks inside entry-content — override default link styles */
.entry-content .lf-ad a {
  text-decoration: none;
}

.entry-content .lf-ad {
  max-width: none;
}


/* ═══════════════════════════════════════
   RESPONSIVE ADDITIONS
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .lf-article-layout--has-sidebar {
    display: block;
  }

  .lf-article-layout__sidebar {
    display: none !important;
  }

  .lf-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lf-blog-card--featured .lf-blog-card__link {
    flex-direction: column;
  }

  .lf-blog-card--featured .lf-blog-card__img {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .lf-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lf-article__title {
    font-size: 28px;
  }

  .lf-article__excerpt {
    font-size: 16px;
  }

  .lf-blog-grid {
    grid-template-columns: 1fr;
  }

  .lf-blog-card--featured {
    grid-column: 1;
  }

  .lf-blog-card__title--featured {
    font-size: 20px !important;
  }

  .lf-related__grid {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .lf-author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Ad banner mobile */
  .lf-ad--banner .lf-ad__inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .lf-ad--banner .lf-ad__left {
    flex-direction: column;
    align-items: center;
  }

  .lf-ad__btn {
    width: 100%;
    justify-content: center;
  }

  /* Ad inline mobile */
  .lf-ad--inline .lf-ad__inline-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .lf-ad__inline-link {
    width: 100%;
    text-align: center;
  }
}


/* ============================================
   CONTACT FORM 7 – PREMIUM STYLING
   Indsæt denne CSS i dit WordPress tema:
   Udseende → Tilpas → Ekstra CSS
   ============================================ */

/* ---------- Wrapper ---------- */
.wpcf7 {
  max-width: 580px;
  margin: 3rem auto;
  padding: 3rem 2.8rem 2.5rem;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 30px rgba(0, 0, 0, 0.06);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Subtle decorative accent bar at top */
.wpcf7::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #2d6a4f, #52b788, #95d5b2);
  border-radius: 20px 20px 0 0;
}

/* ---------- Labels ---------- */
.wpcf7-form label {
  display: block;
  margin-bottom: 1.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3a3a3a;
}

/* ---------- Input & Textarea ---------- */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 12px;
  outline: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  box-sizing: border-box;
}

.wpcf7-form input[type="text"]:hover,
.wpcf7-form input[type="email"]:hover,
.wpcf7-form textarea:hover {
  background: #f1f3f5;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form textarea:focus {
  background: #ffffff;
  border-color: #2d6a4f;
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
}

/* Placeholder styling */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

/* ---------- Textarea specifikt ---------- */
.wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

/* ---------- Send-knap ---------- */
.wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.8rem;
  padding: 0.9rem 2.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.3s ease;
  box-shadow: 0 4px 14px rgba(45, 106, 79, 0.3);
}

.wpcf7-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
  background: linear-gradient(135deg, #245a42, #2d6a4f);
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.3);
}

/* ---------- Validerings-beskeder ---------- */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #e03131;
  font-weight: 500;
}

.wpcf7-not-valid {
  border-color: #e03131 !important;
  box-shadow: 0 0 0 4px rgba(224, 49, 49, 0.08) !important;
}

/* Succes-besked */
.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: #2d6a4f;
  background: #ebfbee;
  border: 1px solid #b2f2bb;
  border-radius: 10px;
}

/* Fejl-besked */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: #c92a2a;
  background: #fff5f5;
  border: 1px solid #ffc9c9;
  border-radius: 10px;
}

/* Generel response output reset */
.wpcf7-response-output {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ---------- Spinner ---------- */
.wpcf7-spinner {
  margin-left: 1rem;
}

/* ---------- Responsivt ---------- */
@media (max-width: 640px) {
  .wpcf7 {
    margin: 1.5rem 1rem;
    padding: 2rem 1.5rem 1.8rem;
    border-radius: 16px;
  }

  .wpcf7-form input[type="submit"] {
    width: 100%;
  }
}

.site-footer__address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  color: var(--lf-muted);
}