/* MansKunskap - Modern Scandinavian Fitness & Lifestyle Styling */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-light: #d1fae5;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Header & Nav */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-badge {
  background: var(--accent);
  color: white;
  font-weight: 800;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.btn-nav {
  background: var(--accent);
  color: white !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, transform 0.1s !important;
}

.btn-nav:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

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

.section {
  padding: 4rem 0;
}

.section-dark {
  background: var(--primary);
  color: white;
}

.section-accent {
  background: #ecfdf5;
}

.title-center {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem auto;
}

.title-center h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-dark .title-center h2 {
  color: white;
}

.title-center p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-dark .title-center p {
  color: #94a3b8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: #cbd5e1;
}

.btn-large {
  padding: 1.1rem 2.25rem;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 5rem 0 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-content h1 span {
  color: #10b981;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255,255,255,0.1);
  display: block;
}

.trainer-card-overlay {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: white;
  color: var(--primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 280px;
}

.trainer-card-overlay .icon {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Certificate Badges Bar */
.certificates-bar {
  background: var(--bg-white);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.cert-icon {
  font-size: 2rem;
}

.cert-text h4 {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
}

.cert-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Card Grids */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  align-self: flex-start;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Story Section */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.story-text h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.story-text p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
  font-size: 1.05rem;
}

.highlight-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.highlight-box p {
  color: #065f46;
  font-weight: 600;
  margin: 0;
  font-size: 1.05rem;
}

/* Article Styling */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 3rem 3.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.article-content h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin: 2.25rem 0 1rem 0;
  font-weight: 700;
}

.article-content h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 1.75rem 0 0.75rem 0;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 1.35rem;
  font-size: 1.05rem;
  color: #334155;
}

.article-content ul, .article-content ol {
  margin: 0 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.article-image-box {
  margin: 2rem 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-image-box img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-image-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
  background: var(--bg-light);
}

/* Interactive Quiz */
.quiz-container {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.quiz-progress {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 20%;
  transition: width 0.3s ease;
}

.quiz-question {
  display: none;
}

.quiz-question.active {
  display: block;
}

.quiz-question h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option {
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quiz-option:hover {
  border-color: var(--accent);
  background: #f0fdf4;
}

.quiz-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: #065f46;
  font-weight: 600;
}

.quiz-result {
  display: none;
  text-align: center;
}

.quiz-result-score {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 1rem 0;
}

/* Lead Form Page */
.form-container {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.4;
}

/* Thank You Page */
.thankyou-box {
  max-width: 600px;
  margin: 3rem auto;
  text-align: center;
  background: var(--bg-white);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem auto;
}

.thankyou-box h1 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.thankyou-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid #1e293b;
  font-size: 0.9rem;
}

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

.footer-brand h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  line-height: 1.6;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

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

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-disclaimer-box {
  background: rgba(255,255,255,0.04);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #94a3b8;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}

/* Cookie Banner (GDPR compliant) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.25);
  z-index: 9999;
  display: none;
}

.cookie-content {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.cookie-text a {
  color: #34d399;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-cookie-decline {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #475569;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-grid, .story-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .article-container {
    padding: 2rem 1.5rem;
  }
}
