/*
Theme Name: Bänkskivor Online
Theme URI: https://bankskivoronline.se
Author: AV Group AB
Author URI: https://bankskivoronline.se
Description: Skräddarsytt tema för Bänkskivor Online – måttanpassade bänkskivor direkt på nätet.
Version: 3.1.48
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
License URI: https://bankskivoronline.se
Text Domain: bankskivor
*/

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */

:root {
  --color-primary: #1a3c5e;
  --color-primary-dark: #0f2a44;
  --color-primary-light: #2a5580;
  --color-primary-ultra-light: rgba(26, 60, 94, 0.06);
  --color-secondary: #28a745;
  --color-secondary-dark: #1e8e3a;
  --color-secondary-light: #34c759;
  --color-success: #627D47;
  --color-alert: #b20000;

  --color-bg: #ffffff;
  --color-bg-soft: #f7f9fb;
  --color-bg-warm: #f0f5fa;
  --color-bg-dark: #0c1e30;
  --color-bg-dark-lighter: #12293e;

  --color-text: #475569;
  --color-text-dark: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-text-on-dark: #cbd5e1;
  --color-text-white: #ffffff;

  --color-border: rgba(15, 23, 42, 0.08);
  --color-border-strong: rgba(15, 23, 42, 0.15);

  --gradient-primary: linear-gradient(135deg, #1a3c5e 0%, #2a5580 100%);
  --gradient-hero: linear-gradient(135deg, rgba(12,30,48,0.78) 0%, rgba(12,30,48,0.45) 50%, rgba(12,30,48,0.20) 100%);
  --gradient-cta: linear-gradient(135deg, #0f2a44 0%, #1a3c5e 40%, #2a5580 100%);
  --gradient-section: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.5rem;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.65;
  --lh-relaxed: 1.8;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-section: clamp(5rem, 10vw, 8rem);

  --container-max: 1700px;
  --container-wide: 1700px;
  --container-narrow: 720px;
  --container-content: 1700px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 50px;
  --radius-round: 50%;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --shadow-xl: 0 24px 56px rgba(0,0,0,0.14);
  --shadow-glow: 0 0 0 4px rgba(26,60,94,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.10);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);

  --z-header: 1000;
  --z-overlay: 1100;
  --z-modal: 1200;
  --z-sticky-cta: 900;
}

/* ========================================
   RESET & BASE
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, var(--fs-4xl)); font-weight: var(--fw-extrabold); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--fs-3xl)); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-xl); font-weight: var(--fw-semibold); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
blockquote { border: none; margin: 0; padding: 0; }

/* ========================================
   LAYOUT
   ======================================== */

.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-lg); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }
.container--content { max-width: var(--container-content); }

/* ========================================
   UTILITY CLASSES
   ======================================== */

.accent-text { font-family: var(--font-accent); font-style: italic; font-weight: 400; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background: var(--color-primary-ultra-light);
  padding: 0.5em 1.2em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
}

.section-label--light {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
}

.section-title { margin-bottom: var(--space-md); }

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 620px;
}
.section-subtitle.centered { margin-inline: auto; }

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1;
  padding: 0.95em 2em;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible { outline: 3px solid rgba(26,60,94,0.4); outline-offset: 2px; }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(26,60,94,0.25);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,60,94,0.35);
}
.btn--primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(26,60,94,0.25); }

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,60,94,0.25);
}

/* Mörkare grön: WCAG ~4.5:1 mot vit text (Lighthouse color-contrast) */
.btn--green {
  background: #157347;
  color: var(--color-text-white);
  border-color: #157347;
  font-weight: var(--fw-semibold);
  box-shadow: 0 2px 8px rgba(21,115,71,0.28);
}
.btn--green:hover {
  background: #126040;
  border-color: #126040;
  color: var(--color-text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18,96,64,0.35);
}

.btn--white {
  background: var(--color-bg);
  color: var(--color-primary);
  border-color: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn--white:hover {
  background: rgba(255,255,255,0.9);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn--ghost-light {
  background: transparent;
  color: var(--color-text-white);
  border-color: rgba(255,255,255,0.3);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: var(--color-text-white);
}

.btn--lg { font-size: var(--fs-md); padding: 1.05em 2.4em; }
.btn--sm { font-size: var(--fs-sm); padding: 0.7em 1.5em; }
.btn--icon svg { width: 1.1em; height: 1.1em; }

/* ========================================
   SITE HEADER
   ======================================== */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  transition: all var(--transition-base);
  padding: var(--space-lg) 0;
}
.site-header.is-transparent { background: transparent; }
.site-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 1px 0 var(--color-border), 0 4px 20px rgba(0,0,0,0.03);
  padding: var(--space-sm) 0;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl);
  overflow: visible;
}
.site-header .container { overflow: visible; }
.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.site-logo__mark {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(320px, 55vw);
  transition: height var(--transition-base);
}
.site-header.is-scrolled .site-logo__mark { height: 36px; }
.site-logo__mark--light { display: none; height: 42px; }
.site-header.is-transparent.has-light-logo .site-logo__mark--default { display: none; }
.site-header.is-transparent.has-light-logo .site-logo__mark--light { display: block; }

/* Desktop Nav — only top-level ul is horizontal; nested .sub-menu must stay column */
.primary-nav { display: none; overflow: visible; }
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.primary-nav > ul > li > a {
  display: block;
  padding: 0.5em 0.85em;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}
.primary-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0.2em;
  left: 0.85em;
  right: 0.85em;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: center;
}
.primary-nav > ul > li > a:hover::after,
.primary-nav > ul > li.current-menu-item > a::after {
  transform: scaleX(1);
}

.site-header.is-transparent .primary-nav > ul > li > a { color: var(--color-text-white); }
.site-header.is-transparent .primary-nav > ul > li > a::after { background: var(--color-text-white); }
.site-header.is-scrolled .primary-nav > ul > li > a { color: var(--color-text-dark); }

/* Submenu: base (all levels) */
.primary-nav li { position: relative; }

/*
 * Undermenyer: glapp mellan länk och panel tappade :hover.
 * padding-bottom på endast <li> med barn gjorde raden högre där → flex centrering
 * flyttade upp "Material" visuellt. Osynlig ::before-bro (absolute, ur flödet) fyller
 * glappet utan att ändra li-höjd.
 */
.primary-nav > ul > li.menu-item-has-children::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: calc(var(--z-header) + 15);
}

.primary-nav .sub-menu {
  position: absolute;
  z-index: calc(var(--z-header) + 20);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-border);
  padding: var(--space-sm);
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}

/* Level 1: direkt under <li> (ingen glapp mot länken) */
.primary-nav > ul > li > .sub-menu {
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}
.primary-nav > ul > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Osynlig bro mellan undermeny och nästa nivå (t.ex. Laminatmönster → underkategorier) */
.primary-nav .sub-menu > li.menu-item-has-children::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 100%;
  transform: translateX(100%);
  z-index: calc(var(--z-header) + 25);
}

/* Level 2+ flyout till höger */
.primary-nav .sub-menu .sub-menu {
  top: 0;
  left: calc(100% - 4px);
  margin-top: calc(-1 * var(--space-sm));
  transform: translateX(-2px);
  z-index: calc(var(--z-header) + 40);
}
.primary-nav .sub-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.primary-nav .sub-menu a {
  color: var(--color-text);
  padding: 0.6em 1em;
  font-size: var(--fs-sm);
  border-radius: var(--radius-sm);
  display: block;
  white-space: nowrap;
}
.primary-nav .sub-menu a:hover {
  background: var(--color-bg-soft);
  color: var(--color-primary);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--space-md); }

.header-cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-round);
  transition: all var(--transition-fast);
  background: none; border: none; cursor: pointer; padding: 0;
}
.header-cart:hover { background: var(--color-primary-ultra-light); }
.header-cart svg { width: 22px; height: 22px; stroke: var(--color-text-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--transition-fast); }
.site-header.is-transparent .header-cart svg { stroke: var(--color-text-white); }
.site-header.is-scrolled .header-cart svg { stroke: var(--color-text-dark); }

.cart-count {
  position: absolute; top: 2px; right: 0;
  background: var(--color-secondary); color: var(--color-text-white);
  font-size: 10px; font-weight: var(--fw-bold);
  width: 18px; height: 18px; border-radius: var(--radius-round);
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.cart-count:empty { display: none; }

/* ========================================
   CART DRAWER (slide-out panel)
   ======================================== */

.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}
.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: var(--color-bg);
  z-index: var(--z-modal);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-drawer__header h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  margin: 0;
}
.cart-drawer__header h3 svg {
  stroke: var(--color-primary);
}

.cart-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}
.cart-drawer__close:hover {
  background: var(--color-bg-soft);
  color: var(--color-text-dark);
}
.cart-drawer__close svg {
  stroke: currentColor;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg) var(--space-xl);
}

/* WooCommerce mini cart styling inside drawer */
.cart-drawer .woocommerce-mini-cart__empty-message {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.cart-drawer .woocommerce-mini-cart {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cart-drawer .woocommerce-mini-cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer .woocommerce-mini-cart-item:last-child {
  border-bottom: none;
}

.cart-drawer .woocommerce-mini-cart-item a:not(.remove) {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--color-text-dark);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  flex: 1;
  min-width: 0;
}
.cart-drawer .woocommerce-mini-cart-item a:not(.remove):hover {
  color: var(--color-primary);
}

.cart-drawer .woocommerce-mini-cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

.cart-drawer .woocommerce-mini-cart-item .quantity {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: var(--fw-normal);
  margin-top: 2px;
}

.cart-drawer .woocommerce-mini-cart-item a.remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-round);
  font-size: 1.1rem;
  color: var(--color-text-light) !important;
  text-decoration: none;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  order: 3;
}
.cart-drawer .woocommerce-mini-cart-item a.remove:hover {
  background: #fef2f2;
  color: #b91c1c !important;
}

/* Totals */
.cart-drawer .woocommerce-mini-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  margin-top: var(--space-sm);
  border-top: 2px solid var(--color-border);
  font-size: var(--fs-base);
}
.cart-drawer .woocommerce-mini-cart__total strong {
  font-weight: var(--fw-semibold);
  color: var(--color-text-dark);
}
.cart-drawer .woocommerce-mini-cart__total .woocommerce-Price-amount {
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  color: var(--color-text-dark);
}

/* Buttons */
.cart-drawer .woocommerce-mini-cart__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: 0;
}
.cart-drawer .woocommerce-mini-cart__buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: all var(--transition-base);
  text-align: center;
}
.cart-drawer .woocommerce-mini-cart__buttons a.wc-forward:first-child {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border-strong);
}
.cart-drawer .woocommerce-mini-cart__buttons a.wc-forward:first-child:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}
.cart-drawer .woocommerce-mini-cart__buttons a.checkout {
  background: var(--color-secondary);
  color: var(--color-text-white);
  border: 2px solid var(--color-secondary);
  box-shadow: 0 2px 8px rgba(40,167,69,0.25);
}
.cart-drawer .woocommerce-mini-cart__buttons a.checkout:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  box-shadow: 0 6px 20px rgba(40,167,69,0.35);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 42px; height: 42px; background: none; border: none;
  cursor: pointer; gap: 5px; padding: 0; border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.menu-toggle:hover { background: var(--color-primary-ultra-light); }
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-text-dark); border-radius: 2px;
  transition: all var(--transition-base);
}
.site-header.is-transparent .menu-toggle span { background: var(--color-text-white); }
.site-header.is-scrolled .menu-toggle span { background: var(--color-text-dark); }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-bg); z-index: var(--z-overlay);
  padding: 5rem var(--space-lg) var(--space-xl);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav > ul > li > a {
  display: block; padding: var(--space-md) 0;
  font-size: var(--fs-lg); font-weight: var(--fw-semibold);
  color: var(--color-text-dark); border-bottom: 1px solid var(--color-border);
}
.mobile-nav .sub-menu { padding-left: var(--space-lg); }
.mobile-nav .sub-menu a {
  display: block; padding: var(--space-sm) 0;
  font-size: var(--fs-base); color: var(--color-text-muted);
}
.mobile-nav .sub-menu a:hover { color: var(--color-primary); }
.mobile-nav-cta { margin-top: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md); }

/* ========================================
   PAGE HERO (used on all subpages)
   ======================================== */

.page-hero {
  position: relative;
  padding: calc(5rem + var(--space-5xl)) 0 var(--space-4xl);
  background: var(--gradient-primary);
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.8;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-bg), transparent);
}

.page-hero h1 {
  color: var(--color-text-white);
  position: relative; z-index: 1;
  font-size: clamp(2rem, 4vw, var(--fs-3xl));
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-md);
  margin-top: var(--space-md);
  max-width: 600px; margin-inline: auto;
  position: relative; z-index: 1;
}
.page-hero p a,
.page-hero p strong {
  color: #fff;
}
.page-hero p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity var(--transition-fast);
}
.page-hero p a:hover {
  opacity: 0.8;
}

/* Designa-sidan: tydligare övergång hero → verktyg */
.page-hero--designa {
  padding-bottom: var(--space-3xl);
}
.page-hero--designa::after {
  height: 100px;
}

.page-hero--designa .page-hero__lead {
  max-width: min(52rem, 100%);
  margin-inline: auto;
  /* Överstyr .page-hero p { max-width: 600px } så ingressen får samma luft som 1700-layouten */
  width: 100%;
}

.designa-hero-trust {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  position: relative;
  z-index: 1;
}
.designa-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.92);
  padding: 0.45em 0.95em;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.designa-hero-trust li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-round);
  background: var(--color-secondary-light);
  flex-shrink: 0;
}

.designa-hero-actions {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Konfigurator-yta: intro + verktyg */
.designa-tool-region {
  scroll-margin-top: 6rem;
}
.designa-tool-region__intro {
  width: 100%;
  max-width: var(--container-wide);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  text-align: center;
}
.designa-tool-region__title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
  line-height: var(--lh-snug);
  margin: 0 auto var(--space-lg);
  max-width: min(48rem, 100%);
}
.designa-tool-region__text {
  margin: 0 auto;
  max-width: min(48rem, 100%);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}
.designa-tool-region__hint {
  margin: var(--space-xl) auto 0;
  max-width: min(48rem, 100%);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}
.designa-tool-region__hint a {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(26, 60, 94, 0.35);
}
.designa-tool-region__hint a:hover {
  text-decoration-color: var(--color-primary);
}

.designa-step-cards {
  list-style: none;
  margin: var(--space-3xl) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  text-align: left;
  width: 100%;
}
/* 2×2 på laptop – fyra smala kolumner gör svensk text oläsbar */
@media (min-width: 640px) {
  .designa-step-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}
/* Först vid riktigt bred yta: fyra kolumner (~min 300px per kort) */
@media (min-width: 1500px) {
  .designa-step-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2xl);
  }
}
.designa-step-cards > li {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  margin: 0;
  padding: var(--space-2xl);
  min-height: 7.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 28px rgba(15, 35, 55, 0.06);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.designa-step-cards > li:hover {
  border-color: rgba(26, 60, 94, 0.2);
  box-shadow: 0 12px 36px rgba(15, 35, 55, 0.08);
}
.designa-step-cards__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  background: var(--color-primary-ultra-light);
  border-radius: var(--radius-md);
}
.designa-step-cards__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
  flex: 1;
}
.designa-step-cards__head {
  font-size: var(--fs-md);
  color: var(--color-text-dark);
}
.designa-step-cards__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

body.page-template-page-designa-din-bankskiva-php.is-configurator-page .designa-bankskiva-editor {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 42%);
}

body.page-template-page-designa-din-bankskiva-php.is-configurator-page .designa-tool-region .designa-bankskiva-editor {
  padding-top: var(--space-md);
}

body.page-template-page-designa-din-bankskiva-php .designa-page__lead {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  line-height: var(--lh-snug);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  margin-top: 0;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

body.page-template-page-designa-din-bankskiva-php .designa-bankskiva-editor .entry-content > p,
body.page-template-page-designa-din-bankskiva-php .designa-bankskiva-editor .entry-content > ul,
body.page-template-page-designa-din-bankskiva-php .designa-bankskiva-editor .entry-content > ol {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-muted);
}

.faq-section--soft {
  background: var(--color-bg-soft);
}

.section-header .section-intro {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 32rem;
  margin: var(--space-md) auto 0;
}

.page-hero--with-image {
  padding: calc(5rem + var(--space-5xl)) 0 var(--space-5xl);
}
.page-hero--with-image .page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.page-hero--with-image .page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.page-hero--with-image .page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-hero);
}

/* ========================================
   HERO SECTION (frontpage)
   ======================================== */

.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--color-bg-dark);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-hero);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 660px;
  padding-top: 9rem; padding-bottom: var(--space-4xl);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  background: rgba(40,167,69,0.2); color: var(--color-secondary-light);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  padding: 0.5em 1.2em; border-radius: var(--radius-pill);
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(40,167,69,0.3);
  backdrop-filter: blur(8px);
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--color-secondary-light); border-radius: var(--radius-round); }

.hero-tagline {
  font-family: var(--font-accent); font-style: italic;
  font-size: var(--fs-xl); color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-md); font-weight: 400;
}
.hero h1 {
  color: var(--color-text-white);
  font-size: clamp(2.75rem, 5.5vw, var(--fs-5xl));
  margin-bottom: var(--space-lg);
  line-height: 1.05;
}
.hero-description {
  font-size: var(--fs-md); color: rgba(255,255,255,0.75);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-2xl); max-width: 520px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: var(--space-md); }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--space-2xl);
  margin-top: var(--space-3xl); padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-trust-item { display: flex; align-items: center; gap: var(--space-sm); }
.hero-trust-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(40,167,69,0.15); border-radius: var(--radius-md);
}
.hero-trust-icon svg { width: 18px; height: 18px; stroke: var(--color-secondary-light); fill: none; stroke-width: 2; }
.hero-trust-text { font-size: var(--fs-sm); color: rgba(255,255,255,0.6); font-weight: var(--fw-medium); }

/* ========================================
   ICON CIRCLE
   ======================================== */

.icon-circle {
  width: 56px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(26,60,94,0.2);
}
.icon-circle svg { width: 24px; height: 24px; stroke: var(--color-text-white); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.icon-circle--light {
  background: var(--color-primary-ultra-light);
  box-shadow: none;
}
.icon-circle--light svg { stroke: var(--color-primary); }

.icon-circle--lg { width: 64px; height: 64px; border-radius: var(--radius-xl); }
.icon-circle--lg svg { width: 28px; height: 28px; }

/* ========================================
   PROCESS / TIMELINE
   ======================================== */

.process-section { padding: var(--space-section) 0; background: var(--color-bg); }

.timeline { margin-top: var(--space-3xl); position: relative; }

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-3xl);
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute; left: 31px; top: 72px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-border));
}
.timeline-item:last-child::before { display: none; }

.timeline-number {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary);
  color: var(--color-text-white);
  font-size: var(--fs-xl); font-weight: var(--fw-bold);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 16px rgba(26,60,94,0.25);
  position: relative; z-index: 1;
}

.timeline-content {
  padding-top: var(--space-md);
}
.timeline-content h3 { font-size: var(--fs-lg); margin-bottom: var(--space-sm); }
.timeline-content p { color: var(--color-text-muted); line-height: var(--lh-relaxed); }

/* ========================================
   USP / FEATURE CARDS
   ======================================== */

.usp-section { padding: var(--space-section) 0; background: var(--color-bg-soft); }

.usp-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-xl); margin-top: var(--space-3xl);
}

.usp-card {
  display: flex; align-items: flex-start; gap: var(--space-lg);
  padding: var(--space-2xl);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}
.usp-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--color-border);
}
.usp-card h3 { font-size: var(--fs-base); font-weight: var(--fw-semibold); margin-bottom: var(--space-xs); }
.usp-card p { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: var(--lh-normal); }

/* ========================================
   MATERIAL CARDS
   ======================================== */

.material-section { padding: var(--space-section) 0; background: var(--color-bg); }

.material-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-xl); margin-top: var(--space-3xl);
}

.material-card {
  position: relative; background: var(--color-bg);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}
.material-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}

.material-card-image {
  position: relative; padding-top: 60%; overflow: hidden; background: var(--color-bg-soft);
}
.material-card-image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.material-card:hover .material-card-image img { transform: scale(1.06); }

.material-badge {
  position: absolute; top: var(--space-md); left: var(--space-md);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.4em 1em; border-radius: var(--radius-pill); z-index: 1;
}
.material-badge--available { background: var(--color-secondary); color: var(--color-text-white); }
.material-badge--soon { background: rgba(0,0,0,0.5); color: var(--color-text-white); backdrop-filter: blur(8px); }
.material-badge--external { background: var(--color-primary); color: var(--color-text-white); }

.material-card-body { padding: var(--space-xl) var(--space-xl) var(--space-2xl); }
.material-card-body h3 { font-size: var(--fs-xl); margin-bottom: var(--space-sm); }
.material-card-body > p { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-lg); }

.material-features { display: flex; flex-direction: column; gap: var(--space-sm); }
.material-features li {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: var(--fs-sm); color: var(--color-text);
}
.material-features svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--color-secondary); fill: none; stroke-width: 2.5; }

/* ========================================
   SAMPLES / PROVER (split layout)
   ======================================== */

.samples-section { padding: var(--space-section) 0; background: var(--color-bg-soft); }
.samples-inner { display: grid; grid-template-columns: 1fr; gap: var(--space-3xl); align-items: center; }

.samples-text .accent-text {
  font-size: clamp(1.5rem, 3vw, var(--fs-2xl)); color: var(--color-primary);
  display: block; margin-bottom: var(--space-sm);
}
.samples-text h2 { margin-bottom: var(--space-lg); }
.samples-text p { color: var(--color-text-muted); font-size: var(--fs-md); line-height: var(--lh-relaxed); margin-bottom: var(--space-xl); }

.samples-image { position: relative; }
.samples-image img { border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); }
.samples-image::before {
  content: ''; position: absolute; inset: -12px;
  border: 2px solid var(--color-primary-ultra-light);
  border-radius: calc(var(--radius-2xl) + 12px);
  z-index: -1;
}

/* ========================================
   STATS ROW
   ======================================== */

.stats-section { padding: var(--space-3xl) 0; background: var(--color-bg); }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-xl);
}

.stat-item { text-align: center; padding: var(--space-lg); }
.stat-number {
  font-size: var(--fs-3xl); font-weight: var(--fw-extrabold);
  color: var(--color-primary); line-height: 1;
  margin-bottom: var(--space-xs);
}
.stat-label { font-size: var(--fs-sm); color: var(--color-text-muted); font-weight: var(--fw-medium); }

.stats-grid--dark .stat-number { color: var(--color-secondary-light); }
.stats-grid--dark .stat-label { color: rgba(255,255,255,0.6); }

/* ========================================
   QUOTE BLOCK
   ======================================== */

.quote-block {
  position: relative;
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  max-width: 780px; margin-inline: auto;
}
.quote-block::before {
  content: '\201C';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-family: var(--font-accent); font-size: 8rem; line-height: 1;
  color: var(--color-primary); opacity: 0.08;
}
.quote-block p {
  font-family: var(--font-accent); font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, var(--fs-2xl));
  color: var(--color-text-dark); line-height: var(--lh-snug);
  position: relative;
}
.quote-block cite {
  display: block; margin-top: var(--space-lg);
  font-family: var(--font-body); font-style: normal;
  font-size: var(--fs-sm); color: var(--color-text-muted); font-weight: var(--fw-medium);
}

/* ========================================
   SECTION SPLIT (50/50 image + text)
   ======================================== */

.section-split {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-3xl); align-items: center;
  padding: var(--space-section) 0;
}
.section-split--reverse .split-image { order: -1; }

.split-image { position: relative; }
.split-image img { border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); width: 100%; }

/* Om oss: vektorillustration istället för foto (samma yta som split-image) */
.split-image--om-illo .om-oss-illo {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  overflow: hidden;
  background: linear-gradient(165deg, #fff 0%, var(--color-bg-soft) 55%, var(--color-bg-warm) 100%);
  border: 1px solid var(--color-border);
}
.split-image--om-illo .om-oss-illo svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Om oss-illustration: lätt rörelse (material / pekare / bock) */
.split-image--om-illo .om-oss-illo-motion-slab {
  transform-origin: 200px 158px;
  animation: om-oss-slab-breathe 5.5s ease-in-out infinite;
}
.split-image--om-illo .om-oss-illo-slab-gloss {
  animation: om-oss-gloss-line 3.8s ease-in-out infinite;
}
.split-image--om-illo .om-oss-illo-motion-measure {
  animation: om-oss-measure-soft 4.2s ease-in-out infinite;
}
.split-image--om-illo .om-oss-illo-cursor {
  transform-origin: 234px 150px;
  animation: om-oss-cursor-move 3.2s ease-in-out infinite;
}
.split-image--om-illo .om-oss-illo-check {
  transform-origin: 318px 214px;
  animation: om-oss-check-pulse 2.8s ease-in-out infinite;
}

@keyframes om-oss-slab-breathe {
  0%, 100% { transform: translateY(0); filter: brightness(1); }
  50% { transform: translateY(-2px); filter: brightness(1.06); }
}
@keyframes om-oss-gloss-line {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}
@keyframes om-oss-measure-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.78; }
}
@keyframes om-oss-cursor-move {
  0%, 100% { transform: translate(0, 0); }
  45% { transform: translate(-8px, 5px); }
  70% { transform: translate(5px, -3px); }
}
@keyframes om-oss-check-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .split-image--om-illo .om-oss-illo-motion-slab,
  .split-image--om-illo .om-oss-illo-slab-gloss,
  .split-image--om-illo .om-oss-illo-motion-measure,
  .split-image--om-illo .om-oss-illo-cursor,
  .split-image--om-illo .om-oss-illo-check {
    animation: none !important;
  }
}

.split-image--decorated::after {
  content: ''; position: absolute;
  bottom: -16px; right: -16px;
  width: 50%; height: 50%;
  border: 2px solid var(--color-primary-ultra-light);
  border-radius: var(--radius-2xl);
  z-index: -1;
}

.split-text .section-label { margin-bottom: var(--space-lg); }
.split-text h2 { margin-bottom: var(--space-lg); }
.split-text p { color: var(--color-text-muted); font-size: var(--fs-md); line-height: var(--lh-relaxed); }
.split-text .btn { margin-top: var(--space-xl); }

/* ========================================
   SECTION DARK
   ======================================== */

.section-dark {
  background: var(--gradient-cta);
  color: var(--color-text-white);
  padding: var(--space-section) 0;
  position: relative; overflow: hidden;
}
.section-dark::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.section-dark h2 { color: var(--color-text-white); position: relative; }
.section-dark p { color: rgba(255,255,255,0.7); position: relative; }
.section-dark .section-label { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.12); position: relative; }

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  padding: var(--space-section) 0;
  background: var(--gradient-cta);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.cta-inner {
  text-align: center; max-width: 680px; margin-inline: auto;
  position: relative; z-index: 1;
}
.cta-inner h2 { color: var(--color-text-white); margin-bottom: var(--space-md); }
.cta-inner p { color: rgba(255,255,255,0.7); font-size: var(--fs-md); margin-bottom: var(--space-2xl); }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-section { padding: var(--space-section) 0; }

.faq-list {
  max-width: var(--container-content);
  margin: var(--space-3xl) auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }

.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: var(--space-xl) 0;
  background: none; border: none; cursor: pointer;
  font-size: var(--fs-md); font-weight: var(--fw-semibold);
  color: var(--color-text-dark); text-align: left;
  transition: color var(--transition-fast);
  gap: var(--space-lg);
}
.faq-question:hover { color: var(--color-primary); }

.faq-question svg {
  width: 20px; height: 20px; flex-shrink: 0;
  stroke: var(--color-text-muted); fill: none; stroke-width: 2;
  transition: transform var(--transition-base), stroke var(--transition-fast);
}
.faq-item.is-open .faq-question svg { transform: rotate(180deg); stroke: var(--color-primary); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}
.faq-answer-inner {
  padding-bottom: var(--space-xl);
  color: var(--color-text-muted); font-size: var(--fs-base); line-height: var(--lh-relaxed);
}

.faq-item.is-open .faq-answer { max-height: 500px; }

/* ========================================
   CONTACT GRID
   ======================================== */

.contact-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-3xl); align-items: start;
}

.contact-info-cards { display: flex; flex-direction: column; gap: var(--space-lg); }

.contact-card {
  display: flex; align-items: flex-start; gap: var(--space-lg);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--color-bg); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}
.contact-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--color-border);
}
.contact-card h3 { font-size: var(--fs-base); font-weight: var(--fw-semibold); margin-bottom: var(--space-xs); }
.contact-card p { font-size: var(--fs-sm); color: var(--color-text-muted); }

.contact-form-card {
  background: var(--color-bg);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3xl);
  border: 1px solid var(--color-border);
}
.contact-form-card h2 { font-size: var(--fs-xl); margin-bottom: var(--space-xs); }
.contact-form-card > p { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-2xl); }

/* CF7 styled */
.contact-form-card .wpcf7 p { margin-bottom: var(--space-lg); }
.contact-form-card .wpcf7 label {
  display: block; font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  color: var(--color-text-dark); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}
.contact-form-card .wpcf7 input[type="text"],
.contact-form-card .wpcf7 input[type="email"],
.contact-form-card .wpcf7 input[type="tel"],
.contact-form-card .wpcf7 select,
.contact-form-card .wpcf7 textarea {
  width: 100%; padding: 0.85em 1.1em;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  transition: all var(--transition-fast);
  background: var(--color-bg-soft);
}
.contact-form-card .wpcf7 input:focus,
.contact-form-card .wpcf7 select:focus,
.contact-form-card .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  background: var(--color-bg);
}
.contact-form-card .wpcf7 textarea { min-height: 140px; resize: vertical; }

.contact-form-card h2 { font-size: var(--fs-xl); margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.contact-form-card h2:first-child { margin-top: 0; }
.contact-form-card h3 { font-size: var(--fs-md); margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.contact-form-card > p, .contact-form-card > div > p { color: var(--color-text-muted); font-size: var(--fs-sm); }
.contact-form-card ul, .contact-form-card ol { padding-left: 1.2em; margin-bottom: var(--space-lg); }
.contact-form-card li { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-xs); }
.contact-form-card ul { list-style: disc; }
.contact-form-card ol { list-style: decimal; }
.contact-form-card .wpcf7 input[type="submit"] {
  width: 100%; padding: 1em 2em;
  background: var(--color-primary); color: var(--color-text-white);
  border: none; border-radius: var(--radius-lg);
  font-weight: var(--fw-semibold); font-size: var(--fs-md);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26,60,94,0.25);
  transition: all var(--transition-base);
}
.contact-form-card .wpcf7 input[type="submit"]:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,60,94,0.35);
}

/* ========================================
   CHECKLIST / FEATURE LIST
   ======================================== */

.check-list { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-lg); }
.check-list li {
  display: flex; align-items: flex-start; gap: var(--space-md);
  font-size: var(--fs-md); color: var(--color-text);
}
.check-list svg {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  stroke: var(--color-secondary); fill: none; stroke-width: 2.5;
}

/* ========================================
   KONFIGURATOR (ingen .container kring verktyget)
   ======================================== */

.configurator-card {
  background: var(--color-bg);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  overflow: hidden;
}

.configurator-seo { padding: var(--space-section) 0; background: var(--color-bg-soft); }
.configurator-seo h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}

/* Full bredd i <main> — ingen maxbredd/sidpadding från tema för verktygsytan */
body.is-configurator-page #main-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* Mallen "Konfigurator": luft under fast header */
body.page-template-page-konfigurator-php.is-configurator-page .designa-bankskiva-editor {
  padding-top: 5rem;
}

/*
 * Konfigurator-sidor (body.is-configurator-page): innehåll i .designa-bankskiva-editor i 1700px-container
 * som .container — utom själva verktyget. Använder is-configurator-page (inte page-{slug}) eftersom
 * sidan kan köra page-template-default utan slug-klass. Stöd för Gutenberg + Flatsome/UX Builder (.row).
 */
body.is-configurator-page .designa-bankskiva-editor {
  width: 100%;
  max-width: none;
}

body.is-configurator-page .designa-bankskiva-editor > .entry-content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.is-configurator-page .designa-bankskiva-editor .entry-content > *,
body.is-configurator-page .designa-bankskiva-editor > *:not(.entry-content) {
  max-width: min(100%, var(--container-max));
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  box-sizing: border-box;
}

body.is-configurator-page .designa-bankskiva-editor > .wp-block-shortcode,
body.is-configurator-page .designa-bankskiva-editor > .alignfull,
body.is-configurator-page .designa-bankskiva-editor .entry-content > .wp-block-shortcode,
body.is-configurator-page .designa-bankskiva-editor .entry-content > .alignfull,
body.is-configurator-page .designa-bankskiva-editor #root,
body.is-configurator-page .designa-bankskiva-editor > [class*="jored"],
body.is-configurator-page .designa-bankskiva-editor > [class*="Jored"],
body.is-configurator-page .designa-bankskiva-editor > [class*="konfigurator"],
body.is-configurator-page .designa-bankskiva-editor > [class*="Konfigurator"],
body.is-configurator-page .designa-bankskiva-editor .entry-content > [class*="jored"],
body.is-configurator-page .designa-bankskiva-editor .entry-content > [class*="Jored"],
body.is-configurator-page .designa-bankskiva-editor .entry-content > [class*="konfigurator"],
body.is-configurator-page .designa-bankskiva-editor .entry-content > [class*="Konfigurator"],
body.is-configurator-page .designa-bankskiva-editor .entry-content > *:has(#root),
body.is-configurator-page .designa-bankskiva-editor .entry-content > *:has(#joreds-configurator-root),
body.is-configurator-page .designa-bankskiva-editor > .row:has(#joreds-configurator-root),
body.is-configurator-page .designa-bankskiva-editor > .row:has([id$="configurator-root"]),
body.is-configurator-page .designa-bankskiva-editor > *:has(#joreds-configurator-root),
body.is-configurator-page .designa-bankskiva-editor > *:has([id$="configurator-root"]) {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* ========================================
   SITE FOOTER
   ======================================== */

.footer-wave {
  display: block; width: 100%;
  background: var(--color-bg-dark);
  margin-bottom: -1px;
}
.footer-wave svg { display: block; width: 100%; height: auto; }

.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding-top: var(--space-4xl);
}

.footer-top {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  color: rgba(255,255,255,0.5); font-size: var(--fs-sm);
  line-height: var(--lh-relaxed); margin-top: var(--space-lg); max-width: 300px;
}
.footer-brand .site-logo:not(.site-logo--native-light) .site-logo__mark {
  filter: brightness(0) invert(1);
  height: 36px;
}
.footer-brand .site-logo.site-logo--native-light .site-logo__mark {
  filter: none;
  height: 36px;
}
.footer-contact { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-xl); }
.footer-contact a {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  color: rgba(255,255,255,0.5); font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}
.footer-contact a:hover { color: var(--color-text-white); }
.footer-contact svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.footer-links .footer-links__title {
  color: var(--color-text-white); font-size: var(--fs-xs);
  font-weight: var(--fw-bold); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: var(--space-lg);
  line-height: var(--lh-snug);
}
.footer-links ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-links a {
  color: rgba(255,255,255,0.5); font-size: var(--fs-sm);
  transition: all var(--transition-fast);
}
.footer-links a:hover { color: var(--color-text-white); transform: translateX(3px); }

.footer-bottom {
  display: flex; flex-direction: column; gap: var(--space-lg);
  padding: var(--space-xl) 0; align-items: center; text-align: center;
  flex-wrap: wrap;
}
.footer-copyright {
  font-size: var(--fs-xs); color: rgba(255,255,255,0.72);
  max-width: 42rem; margin: 0;
}
.payment-icons {
  display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; justify-content: center;
  flex-shrink: 0;
}
.payment-icons img, .payment-icons svg { height: 24px; width: auto; opacity: 0.4; transition: opacity var(--transition-fast); }
.payment-icons img:hover, .payment-icons svg:hover { opacity: 0.7; }

/* ========================================
   PAGE CONTENT (generic)
   ======================================== */

.page-content { padding: var(--space-section) 0; }
.page-content .container--content,
.page-content .container--wide { font-size: var(--fs-md); line-height: var(--lh-relaxed); }

/* Informationssidor (villkor, integritet, cookies, frakt) */
.legal-prose h2 { margin-top: 2.25rem; margin-bottom: 0.75rem; font-size: var(--fs-xl); }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose .legal-doc-lead {
  font-size: var(--fs-lg);
  color: var(--color-text-dark);
  margin: 0 0 var(--space-xl);
  line-height: var(--lh-snug);
}
.legal-prose p,
.legal-prose li { font-size: var(--fs-md); line-height: var(--lh-relaxed); color: var(--color-text); }
.legal-prose ul,
.legal-prose ol { margin: 0 0 1rem 1.25rem; list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: var(--fs-sm);
}
.legal-prose th,
.legal-prose td {
  border: 1px solid var(--color-border);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.legal-prose thead th { background: var(--color-bg-soft); font-weight: var(--fw-semibold); }
.page-content h2 { margin-top: var(--space-3xl); margin-bottom: var(--space-md); }
.page-content h2:first-child { margin-top: 0; }
.page-content h3 { margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.page-content ul, .page-content ol { margin-bottom: 1em; padding-left: 1.5em; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 0.5em; }
.page-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(26,60,94,0.3); }
.page-content a:hover { text-decoration-color: var(--color-primary); }
.page-content img { border-radius: var(--radius-xl); margin: var(--space-2xl) 0; }
/* Konfigurator: dekorer ska inte få .page-content img-rundning (verktyget direkt i main) */
body.is-configurator-page .designa-bankskiva-editor .wp-block-shortcode img,
body.is-configurator-page .designa-bankskiva-editor .wp-block-shortcode picture,
body.is-configurator-page .designa-bankskiva-editor #root img,
body.is-configurator-page .designa-bankskiva-editor #root picture,
body.is-configurator-page .designa-bankskiva-editor #joreds-configurator-root img,
body.is-configurator-page .designa-bankskiva-editor #joreds-configurator-root picture,
body.is-configurator-page .designa-bankskiva-editor > div:not(.entry-content) img,
body.is-configurator-page .designa-bankskiva-editor > div:not(.entry-content) picture,
body.is-configurator-page .designa-bankskiva-editor .row:has(#joreds-configurator-root) img,
body.is-configurator-page .designa-bankskiva-editor .row:has(#joreds-configurator-root) picture {
  border-radius: 0 !important;
  margin: 0 !important;
}
body.is-configurator-page .designa-bankskiva-editor p img,
body.is-configurator-page .designa-bankskiva-editor .wp-block-image img {
  border-radius: var(--radius-lg);
  margin: var(--space-2xl) 0;
}
.page-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-xl); margin: var(--space-2xl) 0;
  font-family: var(--font-accent); font-style: italic;
  font-size: var(--fs-lg); color: var(--color-text-dark);
}

/* ========================================
   STICKY MOBILE CTA
   ======================================== */

.mobile-sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: var(--z-sticky-cta);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}
.mobile-sticky-cta .btn { width: 100%; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (min-width: 640px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .primary-nav { display: block; }
  .menu-toggle { display: none; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-bottom {
    flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center;
    text-align: left; gap: var(--space-xl);
  }
  .footer-copyright { flex: 1 1 14rem; min-width: 0; }
  .payment-icons { justify-content: flex-end; margin-left: auto; }
  .samples-inner { grid-template-columns: 1fr 1fr; }
  .section-split { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .timeline-item { grid-template-columns: 72px 1fr; }
}

@media (min-width: 1024px) {
  .usp-grid { grid-template-columns: repeat(3, 1fr); }
  .material-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .mobile-sticky-cta { display: block; }
  .hero { min-height: 100svh; }
  .hero-content { padding-top: 7rem; }
  .hero-trust { flex-direction: column; gap: var(--space-md); }
  .site-footer { padding-bottom: 80px; }
  /* Konfigurator: ingen sticky CTA + normal footermarginal (ingen plats reserverad för CTA) */
  body.is-configurator-page .mobile-sticky-cta {
    display: none !important;
  }
  body.is-configurator-page .site-footer {
    padding-bottom: var(--space-3xl);
  }
  .section-split--reverse .split-image { order: 0; }
}

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */

.alignwide { max-width: var(--container-wide); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(-50vw + 50%); }
.wp-block-image img { border-radius: var(--radius-lg); }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute; height: 1px; width: 1px; overflow: hidden; }

/* CF7 general */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%; padding: 0.85em 1.1em;
  border: 2px solid var(--color-border-strong); border-radius: var(--radius-md);
  font-size: var(--fs-base); transition: all var(--transition-fast); background: var(--color-bg);
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: var(--shadow-glow);
}
.wpcf7 input[type="submit"] {
  background: var(--color-primary); color: var(--color-text-white);
  border: none; padding: 0.95em 2em; border-radius: var(--radius-lg);
  font-weight: var(--fw-semibold); cursor: pointer;
  box-shadow: 0 2px 8px rgba(26,60,94,0.25);
  transition: all var(--transition-base);
}
.wpcf7 input[type="submit"]:hover {
  background: var(--color-primary-dark); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,60,94,0.35);
}

/* ========================================
   BLOG / POSTS
   ======================================== */

.posts-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.post-card {
  background: var(--color-bg); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}
.post-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--color-border);
}
.post-card-image img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: var(--space-xl); }
.post-card-body h2 { font-size: var(--fs-lg); margin-bottom: var(--space-sm); }
.post-card-body h2 a { color: var(--color-text-dark); }
.post-card-body h2 a:hover { color: var(--color-primary); }
.post-card-body p { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-lg); }

.pagination { margin-top: var(--space-3xl); text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: var(--space-xs); flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-md);
  font-size: var(--fs-sm); font-weight: var(--fw-medium);
  color: var(--color-text); background: var(--color-bg);
  border: 1px solid var(--color-border); transition: all var(--transition-fast);
}
.pagination .page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .page-numbers.current { background: var(--color-primary); color: var(--color-text-white); border-color: var(--color-primary); }
.pagination .prev, .pagination .next { width: auto; padding: 0 var(--space-md); }

/* ========================================
   ANIMATIONS
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
  .fade-in-up {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
  }
  .fade-in-up.is-visible { opacity: 1; transform: translateY(0); }

  .fade-in-up:nth-child(2) { transition-delay: 0.1s; }
  .fade-in-up:nth-child(3) { transition-delay: 0.2s; }
  .fade-in-up:nth-child(4) { transition-delay: 0.3s; }
}
