/*
Theme Name: Topprank
Theme URI: https://topprank.se
Author: Topprank / Jennie Karlsson
Description: Custom theme for topprank.se - beige, blue and gold design with Playfair Display and Inter typography.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary
Text Domain: topprank
*/

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

:root {
  --blue:        #033062;
  --blue-light:  #0a4a8f;
  --blue-faint:  #EEE8DF;
  --blue-mid:    #DDD0BC;
  --gold:        #B8891A;
  --gold-light:  #E0B040;
  --gold-faint:  #FAF3E0;
  --bg:          #FEFCFA;
  --bg2:         #FAF5EE;
  --bg3:         #F5EDE3;
  --border:      #E8DCCF;
  --border-dark: #D4C0A8;
  --text:        #091828;
  --muted:       #4D6A85;
  --muted2:      #7A9AB8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── TOPBAR ─── */
.topbar {
  background: var(--blue);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.84rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.topbar .gold { color: var(--gold-light); }
.topbar .sep { margin: 0 8px; opacity: 0.5; }

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  box-shadow: 0 1px 12px rgba(44,26,14,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot { color: var(--gold); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links .current-menu-item a,
.nav-links .current_page_item a { color: var(--blue); }

/* ─── Dropdown ─── */
.nav-links .has-dropdown { position: relative; }
.nav-links .has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links .has-dropdown > a .caret {
  transition: transform .22s ease;
  color: var(--gold);
  stroke-width: 2.5;
  flex-shrink: 0;
}
.nav-links .has-dropdown:hover > a .caret,
.nav-links .has-dropdown:focus-within > a .caret { transform: rotate(180deg); }

.nav-links .submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  min-width: 280px;
  list-style: none;
  margin: 0;
  box-shadow: 0 16px 48px rgba(44,26,14,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-links .submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 28px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-links .has-dropdown:hover .submenu,
.nav-links .has-dropdown:focus-within .submenu,
.nav-links .has-dropdown.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-links .has-dropdown.is-open > a .caret { transform: rotate(180deg); }
.nav-links .submenu::after {
  /* hover-bridge so moving mouse from parent to submenu doesn't close it */
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-links .submenu li { margin: 0; }
.nav-links .submenu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  transition: background .15s, color .15s, transform .15s;
}
.nav-links .submenu a .submenu-title { font-weight: 600; }
.nav-links .submenu a .submenu-desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.nav-links .submenu a:hover {
  background: var(--bg2);
  color: var(--blue);
  transform: translateX(2px);
}
.nav-links .submenu a:hover .submenu-desc { color: var(--blue); opacity: 0.7; }

.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-ghost {
  background: transparent;
  border: 0.5px solid var(--border-dark);
  color: var(--blue);
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-faint); }
.btn-primary {
  background: var(--blue);
  border: none;
  color: #fff;
  padding: 10px 22px;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all .2s;
  box-shadow: 0 2px 12px rgba(44,26,14,0.3);
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--blue-light); box-shadow: 0 4px 20px rgba(44,26,14,0.4); transform: translateY(-1px); color: #fff; }

/* Mobile nav toggle - hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 0;
  color: var(--blue);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.nav-toggle:hover { background: var(--blue-faint); border-color: var(--blue); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s ease, opacity .15s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(160deg, var(--bg2) 0%, #fff 60%);
  padding: 56px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 820px) {
  .hero { padding: 36px 0 56px; }
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(44,26,14,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,162,39,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0.5px solid var(--gold);
  border-radius: 2px;
  padding: 8px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 32px;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}
h1 .highlight { color: var(--blue); font-style: italic; }
h1 .gold-text { color: var(--gold); font-style: italic; }

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.85;
  font-weight: 300;
  letter-spacing: 0.02em;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-lg {
  padding: 15px 34px;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-lg.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(44,26,14,0.35);
}
.btn-lg.primary:hover { background: var(--blue-light); box-shadow: 0 6px 28px rgba(44,26,14,0.45); transform: translateY(-2px); color: #fff; }
.btn-lg.gold-btn {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 20px rgba(201,162,39,0.35);
}
.btn-lg.gold-btn:hover { background: #d4ac2a; box-shadow: 0 6px 28px rgba(201,162,39,0.45); transform: translateY(-2px); color: #fff; }
.btn-lg.outline {
  background: transparent;
  border: 0.5px solid var(--border-dark);
  color: var(--blue);
  font-weight: 700;
}
.btn-lg.outline:hover { border-color: var(--blue); background: var(--blue-faint); }

.hero-trust {
  margin-top: 22px;
  color: var(--muted2);
  font-size: 0.83rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-trust .check { color: var(--blue); font-weight: 700; }

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.stat-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 18px;
  padding: 22px 32px;
  text-align: center;
  min-width: 148px;
  box-shadow: 0 2px 16px rgba(44,26,14,0.07);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.stat-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 8px 28px rgba(44,26,14,0.14); }
.stat-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  letter-spacing: -0.02em;
}
.stat-card .label { color: var(--muted); font-size: 0.78rem; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }

/* ─── SECTIONS ─── */
section { padding: 80px 0; }
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 0 0 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.section-label.no-lines::before,
.section-label.no-lines::after { display: none; }
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--text);
}
h2 .gold-text { color: var(--gold); }
h2 em { font-style: italic; color: var(--gold); }
.section-sub { color: var(--muted); font-size: 1.02rem; max-width: 560px; margin-bottom: 48px; line-height: 1.8; font-weight: 300; }

.divider { height: 1px; background: var(--border); margin: 0; }

/* Alt sections */
.section-alt { background: var(--bg2); }
.section-alt2 { background: var(--blue-faint); }

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text p { color: var(--muted); margin-bottom: 16px; line-height: 1.85; font-weight: 300; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 22px; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 0.95rem; }
.check-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.72rem; color: #fff; line-height: 1;
}
.about-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 2px 16px rgba(44,26,14,0.07);
  transition: border-color .2s, transform .2s;
}
.about-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.about-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--text); letter-spacing: -0.01em; }
.about-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.8; font-weight: 300; }
.about-card .big-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue);
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.about-cards-col { display: flex; flex-direction: column; gap: 18px; }

/* ─── TEAM (Om oss - Jennie / Edvin) ─── */
.about-intro { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.about-intro .section-label { display: inline-block; margin-bottom: 14px; }
.about-intro p { color: var(--muted); font-size: 1.02rem; line-height: 1.85; margin-top: 18px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}
.team-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 32px 34px;
  box-shadow: 0 2px 16px rgba(44,26,14,0.06);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.team-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(44,26,14,0.09);
}
.team-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.team-head-noimg { padding-left: 2px; }
.team-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg2);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-ident { min-width: 0; }
.team-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.team-role {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 6px;
  font-style: italic;
  line-height: 1.4;
}
.team-meta {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--blue);
  margin: 0;
}
.team-body p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.8;
  margin: 0 0 12px;
  font-weight: 300;
}
.team-body p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; gap: 18px; }
  .team-card { padding: 26px 24px 28px; }
  .team-avatar { width: 60px; height: 60px; }
  .team-card h3 { font-size: 1.35rem; }
}

/* ─── SERVICES ─── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.service-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 2px 12px rgba(44,26,14,0.05);
}
.service-card:hover { border-color: var(--blue); transform: translateY(-5px); box-shadow: 0 8px 28px rgba(44,26,14,0.12); }
.service-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.service-icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-faint);
  border: 0.5px solid var(--blue-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); letter-spacing: -0.01em; }
.service-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.8; font-weight: 300; }

/* Tjänste-hub (klickbara service-kort med pil) */
a.service-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
a.service-link:hover { text-decoration: none; }
a.service-link p { flex: 1; margin-bottom: 16px; }
.service-arrow {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.01em;
  transition: transform .15s ease, color .15s ease;
}
a.service-link:hover .service-arrow { color: var(--gold); transform: translateX(3px); }

/* Hub-grid: större gap för bättre läsning, icon-box subtilare */
.services-hub { gap: 22px; }
.services-hub .service-icon-box {
  background: var(--bg2);
  color: var(--blue);
  font-size: 1.8rem;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  margin-bottom: 16px;
}
@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-hub { gap: 14px; }
}
@media (min-width: 640px) and (max-width: 820px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
}

/* ─── PRICING ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: start; }
.pricing-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 2px 12px rgba(44,26,14,0.06);
  transition: border-color .2s, box-shadow .2s;
}
.pricing-card:hover { border-color: var(--blue); box-shadow: 0 8px 32px rgba(44,26,14,0.12); }
.pricing-card.featured {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 40px rgba(44,26,14,0.3);
  color: #fff;
}
.pricing-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  border-radius: 9999px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.plan-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 10px; }
.plan-price .amount { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; }
.plan-price .per { font-size: 0.88rem; opacity: 0.65; }
.plan-desc { font-size: 0.87rem; margin-bottom: 20px; line-height: 1.65; opacity: 0.75; }
.featured .plan-desc { opacity: 0.85; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; padding: 0; }
.plan-features li {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.9rem;
}
.plan-features li::before {
  content: '✓';
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-faint);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 0.72rem; flex-shrink: 0;
  line-height: 18px; text-align: center;
}
.featured .plan-features li::before {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.btn-plan {
  width: 100%;
  padding: 13px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.btn-plan.outline-plan {
  background: transparent;
  border: 0.5px solid var(--border-dark);
  color: var(--blue);
}
.btn-plan.outline-plan:hover { border-color: var(--blue); background: var(--blue-faint); }
.btn-plan.fill-plan {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 16px rgba(201,162,39,0.35);
}
.btn-plan.fill-plan:hover { background: #d4ac2a; box-shadow: 0 6px 24px rgba(201,162,39,0.45); transform: translateY(-1px); color: #fff; }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
details {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(44,26,14,0.05);
  transition: border-color .2s;
}
details[open] { border-color: var(--blue); }
details summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  letter-spacing: -0.01em;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 14px;
}
details[open] summary::after { transform: rotate(45deg); }
details summary:hover { color: var(--blue); }
.faq-body,
details > p,
details > .faq-body {
  margin: 0;
  padding: 4px 24px 22px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 400;
}
details > p + p,
.faq-body + .faq-body { padding-top: 10px; }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--blue);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(44,26,14,0.3);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(201,162,39,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner h2 { font-family: 'Playfair Display', serif; color: #fff; font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 14px; font-weight: 700; letter-spacing: -0.02em; font-style: italic; }
.cta-banner p { color: rgba(255,255,255,0.72); max-width: 500px; margin: 0 auto 32px; font-weight: 300; line-height: 1.85; letter-spacing: 0.02em; }
.cta-mini { color: rgba(255,255,255,0.45); font-size: 0.75rem; margin-top: 18px; text-transform: uppercase; letter-spacing: 0.15em; }

/* ─── TRUST BAND ─── */
.trust-band {
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 24px 0;
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}
.trust-item .ti-icon { font-size: 1.2rem; }

/* ─── LOGO BAR (brand logos / plattformar) ─── */
.logo-bar {
  background: #fff;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 32px 0 28px;
  text-align: center;
}
.logo-bar-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.logo-bar-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.88;
  transition: opacity .15s ease;
}
.brand-logo:hover { opacity: 1; }
.brand-logo svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.brand-logo .brand-name {
  letter-spacing: -0.01em;
}
@media (max-width: 820px) {
  .logo-bar { padding: 24px 0 22px; }
  .logo-bar-items { gap: 22px 28px; }
  .brand-logo { font-size: 0.88rem; gap: 6px; }
  .brand-logo svg { width: 18px; height: 18px; }
}
@media (max-width: 520px) {
  .logo-bar-items { gap: 16px 20px; }
  .brand-logo { font-size: 0.82rem; }
}

/* ─── BRAND CARD (verktygs-hero med logo + namn) ─── */
.brand-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px 24px;
  box-shadow: 0 10px 32px rgba(44,26,14,0.08);
}
.brand-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 0.5px solid var(--border);
}
.brand-card-logo-box {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border-radius: 12px;
  padding: 10px;
}
.brand-card-logo-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.brand-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.brand-card-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.brand-card-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 560px) {
  .brand-card { padding: 22px 22px 20px; }
  .brand-card-header { gap: 14px; padding-bottom: 14px; margin-bottom: 14px; }
  .brand-card-logo-box { width: 56px; height: 56px; padding: 8px; }
  .brand-card-brand { font-size: 1.15rem; }
}

/* ─── SHOWCASE (content + screenshot) ─── */
.showcase {
  padding: 80px 0;
  background: #fff;
}
.showcase.alt { background: var(--bg2); }
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}
.showcase-reverse .showcase-grid {
  grid-template-columns: 1.15fr 1fr;
}
.showcase-reverse .showcase-visual { order: -1; }
.showcase-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.showcase-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  line-height: 1.18;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}
.showcase-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px;
}
.showcase-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
}
.showcase-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text);
  line-height: 1.5;
  font-size: 0.98rem;
}
.showcase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(184,137,26,0.18);
}
.showcase-list li strong { color: var(--blue); }
.showcase-visual {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 48px -14px rgba(3,48,98,0.28), 0 2px 8px -4px rgba(3,48,98,0.12);
  background: #fff;
  border: 0.5px solid var(--border);
}
.showcase-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.showcase-caption {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 12px 16px;
  border-top: 0.5px solid var(--border);
  background: #fff;
  line-height: 1.4;
}
@media (max-width: 820px) {
  .showcase { padding: 52px 0; }
  .showcase-grid,
  .showcase-reverse .showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .showcase-reverse .showcase-visual { order: 0; }
  .showcase-title { font-size: 1.6rem; }
  .showcase-lead { font-size: 0.98rem; }
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  color: #fff;
  text-decoration: none;
}
.footer-logo .dot { color: var(--gold); }
.footer-about { font-size: 0.9rem; line-height: 1.75; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  margin-bottom: 16px; color: rgba(255,255,255,0.4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.9rem; transition: color .2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-col .contact-item {
  color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 0.5px solid rgba(255,255,255,0.1);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.82rem;
  transition: all .2s;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ─── GENERIC PAGE / POST ─── */
.page-content,
.entry-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}
.page-content h1,
.entry-content h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 24px; }
.page-content h2,
.entry-content h2 { margin-top: 32px; font-size: 1.8rem; }
.page-content h3,
.entry-content h3 { margin-top: 24px; font-size: 1.25rem; font-family: 'Playfair Display', serif; }
.page-content p,
.entry-content p { margin-bottom: 16px; color: var(--muted); line-height: 1.85; font-weight: 300; }
.page-content ul,
.entry-content ul { margin: 0 0 16px 22px; color: var(--muted); }
.page-content a,
.entry-content a { color: var(--blue); text-decoration: underline; }

.blog-archive { padding: 60px 24px; max-width: 1100px; margin: 0 auto; }
.blog-archive .services-grid { margin-top: 24px; }
.blog-archive article h3 a { color: var(--text); text-decoration: none; }
.blog-archive article h3 a:hover { color: var(--blue); }
.blog-archive .meta { font-size: 0.78rem; color: var(--muted2); margin-bottom: 8px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 820px) {
  .about-grid, .services-grid, .audiences-grid,
  .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats { gap: 12px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 0.5px solid var(--border);
    box-shadow: 0 18px 40px rgba(44,26,14,0.10);
    flex-direction: column;
    padding: 20px 24px 24px;
    gap: 8px;
    z-index: 200;
  }
  .nav-links.is-open > li { padding: 4px 0; }
  .nav-links.is-open > li > a {
    font-size: 1rem;
    padding: 6px 0;
    white-space: nowrap;
  }
  /* Mobilens CTA-item inuti drawern */
  .nav-links .nav-cta-item { padding-top: 12px; margin-top: 8px; border-top: 0.5px solid var(--border); }
  .nav-links .nav-cta-item .btn-primary,
  .nav-links .nav-cta-item a.btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 0.95rem;
    color: #fff;
    background: var(--blue);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
  }
  .nav-links .nav-cta-item a.btn-primary:hover { color: #fff; background: var(--blue-light); }
}

/* CTA-item visas BARA inuti mobilens drawer - dolt på desktop */
.nav-links .nav-cta-item { display: none; }
@media (max-width: 820px) {
  .nav-links .nav-cta-item { display: block; }
}

/* Mobil (≤820px): Dropdown blir inline, indragen list istället för flytande popover */
@media (max-width: 820px) {
  .nav-links.is-open .has-dropdown > a .caret { display: none; }
  .nav-links.is-open .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 8px 0 4px 12px;
    min-width: 0;
    margin-top: 6px;
    border-left: 2px solid var(--border);
    border-radius: 0;
    display: block;
  }
  .nav-links.is-open .submenu::before,
  .nav-links.is-open .submenu::after { display: none; }
  .nav-links.is-open .submenu a {
    padding: 8px 12px;
    font-size: 0.88rem;
  }
  .nav-links.is-open .submenu a .submenu-desc { display: none; }
  .site-header { position: relative; }
  .site-header .container { position: relative; }
}

/* Mellanmobil: liten skärm - dölj text-CTA i header, behåll bara hamburger */
@media (max-width: 560px) {
  .nav-actions .btn-primary { display: none; }
  .nav-actions { gap: 0; }
  .nav-actions .btn-ghost { display: none; }
  .cta-banner { padding: 40px 24px; }
  .trust-items { gap: 20px; }
}

/* Elementor page compatibility - if a user edits a page in Elementor it shouldn't break layout */
.elementor-page .page-content { max-width: none; padding: 0; }

/* ─── FEATURE GRID (Mer än bara en länk) ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 30px;
  box-shadow: 0 2px 16px rgba(44,26,14,0.06);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(44,26,14,0.09);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-faint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
  font-weight: 300;
}
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 26px 24px; }
}

/* ─── PROCESS (Från data till dominans) ─── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 52px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-dark), transparent);
  z-index: 0;
}
.process-step {
  position: relative;
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px 26px;
  box-shadow: 0 2px 14px rgba(44,26,14,0.05);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  z-index: 1;
}
.process-step:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(44,26,14,0.09);
}
.process-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.process-step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.process-step p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
  font-weight: 300;
}
@media (max-width: 960px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}
@media (max-width: 520px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ─── LOGO BAND (Trusted by / Verktyg) - variant B: färgade loggor i vita kort ─── */
.logo-band { padding: 72px 0; background: var(--bg); }
.logo-band.alt { background: var(--bg2); }
.logo-band .eyebrow {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--blue);
  margin-bottom: 36px;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.logo-row .logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  min-height: 120px;
  box-shadow: 0 2px 14px rgba(44,26,14,0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.logo-row .logo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(44,26,14,0.08);
}
.logo-row img {
  max-height: 56px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Fallback textlogo (används tills officiell SVG/PNG finns). */
.logo-row .logo-placeholder {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-align: center;
}
.logo-row .logo-placeholder small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted2);
  margin-top: 2px;
}
@media (max-width: 640px) {
  .logo-row { grid-template-columns: 1fr; max-width: 360px; gap: 16px; }
  .logo-row .logo-item { min-height: 100px; padding: 22px 20px; }
  .logo-row img { max-height: 48px; max-width: 160px; }
}

/* ─── AI DATA SECTION ─── */
.ai-data { background: var(--blue-faint); position: relative; overflow: hidden; }
.ai-data::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(ellipse, rgba(201,162,39,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.ai-data::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(ellipse, rgba(3,48,98,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.ai-data .container { position: relative; z-index: 1; }
.ai-data .ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 32px;
}
.ai-data .ai-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(44,26,14,0.07);
}
.ai-data .ai-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text);
}
.ai-data .ai-card h3 em { font-style: italic; color: var(--gold); }
.ai-data .ai-card p {
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  font-size: 0.97rem;
}
.ai-data .ai-card p + p { margin-top: 14px; }

@media (max-width: 820px) {
  .ai-data .ai-grid { grid-template-columns: 1fr; gap: 20px; }
  .logo-row { gap: 32px; }
  .logo-row img { max-height: 32px; }
  .logo-row .logo-placeholder { font-size: 1.25rem; }
}
