/* ============================================
   Pakke-listen — Content Pages Stylesheet
   Used by PHP-rendered landing + guide pages.
   Mirrors the SPA's design language.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--theme-font, 'Montserrat'), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e2b4d;
  background: #f4eee5;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--theme-font-heading, 'Montserrat'), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--theme-primary, #747f38);
  text-decoration: none;
}
a:hover {
  color: var(--theme-primary-dark, #5a632b);
}

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

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 760px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--theme-btn-radius, 8px);
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--theme-primary, #747f38);
  color: #fff;
  border-color: var(--theme-primary, #747f38);
}
.btn-primary:hover {
  background: var(--theme-primary-dark, #5a632b);
  border-color: var(--theme-primary-dark, #5a632b);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(116, 127, 56, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--theme-primary, #747f38);
  border-color: var(--theme-primary, #747f38);
}
.btn-secondary:hover {
  background: var(--theme-primary, #747f38);
  color: #fff;
}

.btn-lg {
  font-size: 1.1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 10px;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
}

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
}

.site-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a4a5a;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.nav-link:hover {
  color: #1e2b4d;
  background: rgba(116, 127, 56, 0.06);
}

/* Dropdown nav */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-arrow {
  font-size: 0.6em;
  margin-left: 2px;
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  display: none;
  z-index: 50;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  color: #1a1a2e;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
  background: rgba(116, 127, 56, 0.06);
  color: #1e2b4d;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 99;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-inner {
  padding: 1.5rem;
}

.mobile-menu-section {
  margin-bottom: 1.5rem;
}

.mobile-menu-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.75rem;
}

.mobile-menu-section a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  color: #1a1a2e;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  background: linear-gradient(135deg, #131c33 0%, #1e2b4d 50%, #324576 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(116, 127, 56, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(147, 156, 68, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 900; /* Montserrat Black jf. Brand Guide 2026 */
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero .btn {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  padding: 0.9rem 2.5rem;
  background: #fff;
  color: #1e2b4d;
  border-color: #fff;
  border-radius: 12px;
}
.hero .btn:hover {
  background: #f4eee5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #131c33;
}

/* --- Section Titles --- */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* --- Features --- */
.features {
  padding: 4.5rem 0;
  background: #fff;
}

.features .section-title {
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: 14px;
  border: 1px solid #f0f0ef;
  background: #fafaf8;
  transition: all 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(116, 127, 56, 0.15);
}

.feature-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.feature-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* --- Stats --- */
.stats-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #1e2b4d, #324576);
  color: #fff;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.stat-text {
  font-size: 0.9rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* --- Templates --- */
.templates-section {
  padding: 4.5rem 0;
  background: #fff;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.template-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #e8e8e6;
  border-radius: 12px;
  background: #fafaf8;
  transition: all 0.2s ease;
}
.template-card:hover {
  border-color: rgba(116, 127, 56, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.template-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0ef;
  border-radius: 10px;
  flex-shrink: 0;
}

.template-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.template-desc {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.template-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}

/* --- Guides --- */
.guides-section {
  padding: 4.5rem 0;
  background: #fafaf8;
}

.guides-section .section-title {
  margin-bottom: 2.5rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: #fff;
  border: 1px solid #e8e8e6;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(116, 127, 56, 0.15);
  color: inherit;
}

.guide-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e8e8e6;
}

.guide-content {
  padding: 1.25rem;
}

.guide-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.guide-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, #131c33, #1e2b4d);
  color: #fff;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.cta-section .btn {
  background: #fff;
  color: #1e2b4d;
  border-color: #fff;
}
.cta-section .btn:hover {
  background: #f4eee5;
  color: #131c33;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- Content Page (Article) --- */
.content-page {
  padding: 3rem 0 4rem;
}

.content-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0ef;
}

.content-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.content-date {
  font-size: 0.85rem;
  color: #888;
}

/* Markdown content body */
.content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.content-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: #1a1a2e;
}

.content-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: #1a1a2e;
}

.content-body p {
  margin-bottom: 1.25rem;
}

.content-body ul, .content-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body blockquote {
  border-left: 4px solid #1e2b4d;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #f6faf8;
  border-radius: 0 8px 8px 0;
  color: #444;
  font-style: italic;
}

.content-body code {
  background: #f0f0ef;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.content-body pre {
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

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

.content-body img {
  border-radius: 10px;
  margin: 1.5rem 0;
}

.content-body a {
  color: #1e2b4d;
  text-decoration: underline;
  text-decoration-color: rgba(116, 127, 56, 0.3);
  text-underline-offset: 2px;
}
.content-body a:hover {
  text-decoration-color: #1e2b4d;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.content-body th, .content-body td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e8e8e6;
  font-size: 0.95rem;
}

.content-body th {
  font-weight: 600;
  color: #1a1a2e;
  background: #fafaf8;
}

/* Featured Template Box */
.featured-template-box {
  margin: 3rem 0;
  padding: 1.5rem;
  border: 2px solid #1e2b4d;
  border-radius: 14px;
  background: #f6faf8;
}

.featured-template-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.featured-template-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.featured-template-header p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.featured-template-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
  padding-left: 3.5rem;
}

.featured-template-box .btn {
  width: 100%;
}

/* Content page CTA */
.content-cta {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  background: #f4eee5;
  border-radius: 14px;
}

.content-cta p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  padding: 3rem 0 2rem;
  background: #1a1a2e;
  color: #ccc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .site-logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #999;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #999;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #747f38;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

.footer-bottom a {
  color: #747f38;
}

/* --- Block-based Page Builder Styles --- */

/* Block-based content pages use full-width sections */
.content-page-blocks .content-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Text block */
.block-text {
  padding: 2rem 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

/* Image block */
.block-image {
  padding: 1.5rem 0;
}

.block-image figure {
  margin: 0;
}

.block-image img {
  border-radius: 10px;
  display: block;
}

.block-image-full img {
  width: 100%;
}

.block-image-medium img {
  max-width: 600px;
}

.block-image-small img {
  max-width: 400px;
}

.block-image.align-center figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.block-image.align-right figure {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.block-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}

/* Button block */
.block-button-wrapper {
  padding: 1.5rem 0;
}

.block-button-wrapper.align-center {
  text-align: center;
}

.block-button-wrapper.align-right {
  text-align: right;
}

/* Columns block */
.block-columns {
  padding: 2rem 0;
}

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

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

.columns-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.columns-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Feature grid column variants */
.features-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.features-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.features-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* FAQ block */
.block-faq {
  padding: 3rem 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid #e8e8e6;
}

.faq-item:first-child {
  border-top: 1px solid #e8e8e6;
}

.faq-question {
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  color: #1a1a2e;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: #888;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 0 1.25rem;
  color: #555;
  line-height: 1.7;
}

/* Separator block */
.block-separator {
  padding: 0;
}

.block-spacing-sm {
  padding: 1rem 0;
}

.block-spacing-md {
  padding: 2rem 0;
}

.block-spacing-lg {
  padding: 3rem 0;
}

.block-separator hr {
  border: none;
  height: 1px;
  background: #e8e8e6;
}

.block-separator-dots hr {
  background: none;
  text-align: center;
  height: auto;
}

.block-separator-dots hr::after {
  content: '\2022  \2022  \2022';
  color: #ccc;
  font-size: 1.2rem;
  letter-spacing: 0.5rem;
}

.block-separator-space hr {
  background: none;
  height: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .columns-grid-2,
  .columns-grid-3,
  .columns-grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .stats-grid {
    gap: 2rem;
  }
  .stat-number {
    font-size: 2rem;
  }

  .guides-grid {
    grid-template-columns: 1fr;
  }

  .content-header h1 {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }
  .hero h1 {
    font-size: 1.7rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .templates-grid {
    grid-template-columns: 1fr;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }
}
