/*
Theme Name: Björn Sennbrink
Theme URI: https://bjornsennbrink.se
Author: Björn Sennbrink
Description: Personligt tema för Björn Sennbrink – Kristdemokraterna Nora 2026.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: bjorn-sennbrink
*/

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --kd:      #003E7E;
  --kd-mid:  #1A5FA0;
  --kd-lt:   #4A8CC4;
  --kd-pal:  #EAF0F8;
  --kd-pal2: #F2F6FB;
  --black:   #0D0D0D;
  --dark:    #232323;
  --mid:     #686868;
  --light:   #ABABAB;
  --pale:    #E3E0D9;
  --cream:   #F3F1EC;
  --white:   #FAFAF8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Karla', sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kd); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TYPOGRAFI ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
  color: var(--black);
}
h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── KNAPPAR ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: 'Karla', sans-serif;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: none; transition: background 0.2s, color 0.2s;
}
.btn-primary   { background: var(--kd);   color: #fff; }
.btn-primary:hover { background: var(--kd-mid); color: #fff; text-decoration: none; }
.btn-white     { background: #fff; color: var(--kd); }
.btn-white:hover { background: var(--kd-pal); text-decoration: none; }
.btn-ghost     { background: transparent; color: var(--dark); border: 1px solid var(--pale); }
.btn-ghost:hover { border-color: var(--kd); color: var(--kd); text-decoration: none; }

/* ── LAYOUT ── */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 4rem; }
.section        { padding: 6rem 4rem; }
.section-sm     { padding: 4rem; }

.section-label {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--kd); font-weight: 500; margin-bottom: 0.8rem; display: block;
}
.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 300; color: var(--black); line-height: 1.15;
}
.section-heading em { font-style: italic; }

/* ── NAV ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,62,126,0.09);
  transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }

.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 4rem;
}
.site-branding { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.kd-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--kd);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.site-branding .site-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; font-weight: 300;
  letter-spacing: 0.1em; color: var(--black);
}
.site-branding .custom-logo { height: 36px; width: auto; }

/* Primär meny */
#primary-nav ul {
  display: flex; gap: 2.5rem; list-style: none;
}
#primary-nav a {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; transition: color 0.2s;
}
#primary-nav a:hover,
#primary-nav .current-menu-item > a { color: var(--kd); }

/* Hamburgare (mobil) */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
}
.menu-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--black); margin: 5px 0; transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  margin-top: 68px;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  filter: grayscale(20%) contrast(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,20,55,0.5) 55%,
    rgba(0,30,75,0.88) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; padding: 0 4rem 5rem;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem;
}
.hero-eyebrow-line { width: 2rem; height: 1px; background: rgba(255,255,255,0.3); }
.hero-eyebrow-text {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 300; line-height: 1; color: #fff;
  letter-spacing: -0.02em; margin-bottom: 0.75rem;
}
.hero-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.55);
}

/* ── INTRO BAND ── */
.intro-band {
  background: var(--kd); padding: 2.75rem 4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 3rem;
}
.intro-band-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.72); max-width: 700px; line-height: 1.6;
}
.intro-band-sub {
  font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.25); white-space: nowrap;
}

/* ── OM MIG ── */
.about-section { padding: 6rem 4rem; background: var(--white); }
.about-inner {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 5rem; align-items: start;
}
.about-sticky { position: sticky; top: 6rem; }
.about-body {
  font-size: 0.95rem; line-height: 1.9;
  color: var(--dark); font-weight: 300;
}
.about-body p + p { margin-top: 1rem; }
.about-body strong { font-weight: 500; color: var(--black); }

/* ── CARDS ── */
.cards-section { padding: 6rem 4rem; background: var(--cream); }
.cards-header  { margin-bottom: 3rem; }
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.card {
  background: var(--white); border: 1px solid var(--pale);
  padding: 2.5rem; display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--kd-lt); transform: translateY(-3px); }
.card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem; font-style: italic;
  color: var(--kd-lt); margin-bottom: 1.25rem;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; font-weight: 400;
  color: var(--black); margin-bottom: 0.85rem; line-height: 1.25;
}
.card-text {
  font-size: 0.85rem; line-height: 1.8;
  color: var(--mid); font-weight: 300; flex: 1;
}
.card-tag {
  display: inline-block; margin-top: 1.5rem;
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--kd); background: var(--kd-pal); padding: 0.25rem 0.7rem;
  align-self: flex-start;
}

/* ── VÄRDERINGAR ── */
.values-section { background: var(--kd); padding: 6rem 4rem; }
.values-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; margin-bottom: 4rem;
}
.values-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 2.5vw, 2.8rem);
  font-weight: 300; color: #fff; line-height: 1.15;
}
.values-heading em { font-style: italic; color: rgba(255,255,255,0.5); }
.values-intro-text {
  font-size: 0.925rem; font-weight: 300;
  line-height: 1.9; color: rgba(255,255,255,0.5);
}
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,0.06);
}
.vcard {
  background: var(--kd); padding: 2.25rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.vcard-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem; font-style: italic;
  color: rgba(255,255,255,0.25); margin-bottom: 1.25rem; display: block;
}
.vcard-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 300;
  color: rgba(255,255,255,0.88); margin-bottom: 0.65rem;
}
.vcard-text {
  font-size: 0.8rem; line-height: 1.75;
  color: rgba(255,255,255,0.35); font-weight: 300;
}

/* ── CITAT ── */
.quote-section { background: var(--white); padding: 6rem 4rem; text-align: center; }
.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem; font-weight: 300; line-height: 0.7;
  color: var(--pale); margin-bottom: 1.5rem;
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 300; font-style: italic;
  color: var(--black); max-width: 760px;
  margin: 0 auto 1.75rem; line-height: 1.55;
}
.quote-attr {
  font-size: 0.65rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--light);
}

/* ── BLOGG – ARKIV ── */
.blog-archive { padding: 6rem 4rem; }
.blog-archive-inner {
  display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: start;
}
.posts-list { display: flex; flex-direction: column; gap: 3rem; }
.post-card { border-bottom: 1px solid var(--pale); padding-bottom: 3rem; }
.post-card:last-child { border-bottom: none; }
.post-meta {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--light); margin-bottom: 0.75rem;
}
.post-meta a { color: var(--kd); text-decoration: none; }
.post-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 300; margin-bottom: 0.85rem; line-height: 1.2;
}
.post-card h2 a { color: var(--black); text-decoration: none; }
.post-card h2 a:hover { color: var(--kd); }
.post-excerpt { font-size: 0.9rem; line-height: 1.85; color: var(--mid); font-weight: 300; margin-bottom: 1.25rem; }
.read-more {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--kd); text-decoration: none; border-bottom: 1px solid var(--kd-pal); padding-bottom: 2px;
}
.read-more:hover { border-color: var(--kd); }

/* Pagination */
.pagination { margin-top: 3rem; display: flex; gap: 0.5rem; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; font-size: 0.8rem;
  border: 1px solid var(--pale); color: var(--mid); text-decoration: none;
  transition: all 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--kd); color: #fff; border-color: var(--kd); }

/* ── SINGLE POST ── */
.single-post-wrap { padding: 6rem 4rem; }
.single-inner {
  display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: start;
}
.post-content { font-size: 0.95rem; line-height: 1.9; color: var(--dark); }
.post-content h2, .post-content h3 { margin: 2rem 0 1rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content a { color: var(--kd); }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--pale); }
.post-header h1 { margin-bottom: 1rem; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 6rem; }
.widget { margin-bottom: 2.5rem; }
.widget-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 300;
  color: var(--black); margin-bottom: 1rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--pale);
}
.widget ul { list-style: none; }
.widget ul li {
  padding: 0.4rem 0; border-bottom: 1px solid var(--pale);
  font-size: 0.85rem; color: var(--mid);
}
.widget ul li a { color: var(--mid); text-decoration: none; }
.widget ul li a:hover { color: var(--kd); }

/* ── SÖK ── */
.search-form {
  display: flex; gap: 0; margin-bottom: 1rem;
}
.search-field {
  flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--pale);
  border-right: none; font-family: 'Karla', sans-serif;
  font-size: 0.875rem; outline: none; background: var(--white);
}
.search-field:focus { border-color: var(--kd); }
.search-submit {
  padding: 0.75rem 1.25rem; background: var(--kd); color: #fff;
  border: none; cursor: pointer; font-size: 0.8rem; transition: background 0.2s;
}
.search-submit:hover { background: var(--kd-mid); }
.search-results-page { padding: 6rem 4rem; }

/* ── SIDA (PAGE) ── */
.page-wrap { padding: 6rem 4rem; }
.page-inner {
  display: grid; grid-template-columns: 1fr 320px; gap: 4rem;
}
.page-content { font-size: 0.95rem; line-height: 1.9; color: var(--dark); }
.page-content h2, .page-content h3 { margin: 2rem 0 1rem; }
.page-content p { margin-bottom: 1.25rem; }
.page-title-bar {
  background: var(--kd); padding: 4rem 4rem 3rem;
  margin-top: 68px;
}
.page-title-bar h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300; color: #fff; line-height: 1.1;
}
.page-title-bar .page-subtitle {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-top: 0.75rem;
}

/* ── 404 ── */
.error-404 { padding: 8rem 4rem; text-align: center; }
.error-404 h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 8rem; font-weight: 300; color: var(--pale); line-height: 1;
}
.error-404 h2 { margin-bottom: 1rem; }
.error-404 p { color: var(--mid); margin-bottom: 2rem; }

/* ── FÖLJ MIG ── */
.follow-section { background: var(--kd-pal2); padding: 6rem 4rem; text-align: center; }
.follow-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 300; color: var(--black); margin-bottom: 1rem; line-height: 1.2;
}
.follow-title em { font-style: italic; }
.follow-p {
  font-size: 0.925rem; font-weight: 300; line-height: 1.85;
  color: var(--mid); max-width: 520px; margin: 0 auto 2.5rem;
}
.social-row { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── FOOTER ── */
#site-footer { background: var(--kd); }
.footer-widgets {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem; padding: 4rem 4rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-widget-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 300; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6); margin-bottom: 1.25rem;
  padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-widget-area { color: rgba(255,255,255,0.35); font-size: 0.85rem; }
.footer-widget-area ul { list-style: none; }
.footer-widget-area ul li { padding: 0.3rem 0; }
.footer-widget-area ul li a {
  color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s;
}
.footer-widget-area ul li a:hover { color: rgba(255,255,255,0.7); }
.footer-widget-area p { color: rgba(255,255,255,0.35); font-size: 0.85rem; line-height: 1.7; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.75rem 4rem;
}
.footer-bottom-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}
#footer-nav ul { display: flex; gap: 2rem; list-style: none; }
#footer-nav a {
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.18); text-decoration: none; transition: color 0.2s;
}
#footer-nav a:hover { color: rgba(255,255,255,0.5); }
.footer-copy { font-size: 0.6rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.12); }

/* ── SCROLL ANIMATION ── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-inner { padding: 1rem 1.5rem; }
  #primary-nav { display: none; }
  #primary-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--pale); padding: 1rem 1.5rem; }
  #primary-nav.open ul { flex-direction: column; gap: 0; }
  #primary-nav.open ul li { border-bottom: 1px solid var(--pale); padding: 0.75rem 0; }
  .menu-toggle { display: block; }
  .about-inner, .values-intro, .blog-archive-inner, .single-inner, .page-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-sticky { position: static; }
  .sidebar { position: static; }
  .section, .section-sm, .about-section, .cards-section, .values-section, .quote-section, .blog-archive, .single-post-wrap, .page-wrap, .search-results-page, .follow-section { padding: 4rem 1.5rem; }
  .hero-content { flex-direction: column; align-items: flex-start; padding: 0 1.5rem 3rem; }
  .intro-band { flex-direction: column; padding: 2.5rem 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; padding: 3rem 1.5rem 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; padding: 1.5rem; }
  #footer-nav ul { flex-wrap: wrap; justify-content: center; }
  .page-title-bar { padding: 3rem 1.5rem 2.5rem; }
}

@media (max-width: 600px) {
  .values-grid { grid-template-columns: 1fr; }
}
