/* ==========================================================================
   MANSGUIDEN - Main Stylesheet
   Geo: Sweden | Google Ads Compliant Layout & Scandinavian Aesthetic
   ========================================================================== */

:root {
  --primary: #1E3A2B;         /* Deep Nordic Forest Green */
  --primary-hover: #15291E;
  --accent: #D4AF37;          /* Warm Muted Gold */
  --accent-hover: #B89628;
  --accent-light: #FBF7EE;
  --dark: #111827;            /* Slate Dark */
  --text: #374151;            /* Charcoal Text */
  --text-muted: #6B7280;
  --bg-light: #F9FAFB;
  --bg-card: #FFFFFF;
  --border: #E5E7EB;
  --radius: 12px;
  --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-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--text);
  background-color: var(--bg-light);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* Header & Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
}

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

.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.btn-nav:hover {
  background: var(--primary-hover);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, #1E3A2B 0%, #11231A 100%);
  color: #ffffff;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.hero p {
  font-size: 1.15rem;
  color: #E5E7EB;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 800;
}

.stat-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: #D1D5DB;
}

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

.hero-image {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.1);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-caption {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-green {
  background: var(--primary);
  color: #ffffff;
}

.btn-green:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Sections & Cards */
.section {
  padding: 4.5rem 0;
}

.section-light {
  background: #ffffff;
}

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

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

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

/* Story Block */
.story-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.quote-box {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dark);
}

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

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

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

.article-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.8px;
  margin-bottom: 0.5rem;
}

.article-card h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

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

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Certificate Badge Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.cert-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.cert-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.8rem;
}

.cert-card h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

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

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

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

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

.quiz-step {
  display: none;
}

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

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

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

.quiz-option {
  padding: 1.2rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-option:hover, .quiz-option.selected {
  border-color: var(--primary);
  background: rgba(30, 58, 43, 0.04);
}

.quiz-option input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

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

.score-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* Order Page & Lead Form */
.order-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.product-tag {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.product-features {
  list-style: none;
  margin: 1.5rem 0;
}

.product-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.product-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
}

.lead-form-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.lead-form-card h3 {
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.lead-form-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 43, 0.15);
}

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

/* Thank You Page */
.thankyou-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  max-width: 650px;
  margin: 3rem auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #D1FAE5;
  color: #059669;
  font-size: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* Cookie Banner (GDPR) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111827;
  color: #F9FAFB;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
}

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

.cookie-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.btn-cookie-decline {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
}

/* Footer & Disclaimers */
.site-footer {
  background: #111827;
  color: #9CA3AF;
  padding: 4rem 0 2rem;
  border-top: 1px solid #1F2937;
  font-size: 0.9rem;
}

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

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

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

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

.footer-links a {
  color: #9CA3AF;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-disclaimer-box {
  background: #1F2937;
  border-radius: 10px;
  padding: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #D1D5DB;
  margin-bottom: 2rem;
  border: 1px solid #374151;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1F2937;
  font-size: 0.85rem;
}

/* Article Reader Styling */
.article-header {
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-size: 2.5rem;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-content h2 {
  font-size: 1.7rem;
  color: var(--dark);
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin: 1.5rem 0 0.8rem;
}

.article-content p {
  margin-bottom: 1.4rem;
}

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

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

.highlight-card {
  background: rgba(30, 58, 43, 0.05);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 10px 10px 0;
  margin: 1.8rem 0;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid, .order-wrapper {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.show {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

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

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}
