/* ==========================================================================
   Miehen Hyvä Elämä - Päätyylitiedosto (style.css)
   Teema: Nordic Athletic & Mountain Nature (Pohjoinen luonto & moderni kuntosali)
   ========================================================================== */

:root {
  --bg-main: #0B0F17;
  --bg-surface: #121824;
  --bg-card: #182234;
  --bg-card-hover: #1F2C42;
  --border-color: #26354D;
  --border-light: #374B69;
  
  --text-main: #F3F4F6;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --emerald-main: #10B981;
  --emerald-dark: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  
  --cyan-main: #06B6D4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  
  --amber-gold: #F59E0B;
  --amber-glow: rgba(245, 158, 11, 0.2);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--emerald-glow);
  --transition: all 0.25s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--emerald-main);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #34D399;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #FFFFFF;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 12px; }
h4 { font-size: 1.2rem; margin-bottom: 8px; }

p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.lead-text {
  font-size: 1.25rem;
  color: #E2E8F0;
  font-weight: 400;
  line-height: 1.7;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-main);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.section-tag.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-main);
  border-color: rgba(6, 182, 212, 0.3);
}

.section-tag.amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-gold);
  border-color: rgba(245, 158, 11, 0.3);
}

.section-desc {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-main) 0%, var(--emerald-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--emerald-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34D399 0%, var(--emerald-main) 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan-main) 0%, #0891B2 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--cyan-glow);
}

.btn-cyan:hover {
  background: linear-gradient(135deg, #38BDF8 0%, var(--cyan-main) 100%);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.15rem;
}

.btn-block {
  width: 100%;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--emerald-main) 0%, var(--cyan-main) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 15px var(--emerald-glow);
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--emerald-main);
  border-radius: var(--radius-full);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 6px 10px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 70px 0 60px;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 15% 80%, rgba(16, 185, 129, 0.10) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero-content h1 span {
  color: var(--emerald-main);
  display: inline;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 30px 0;
}

.highlight-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
}

.highlight-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan-main);
  margin-bottom: 2px;
}

.highlight-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.25;
}

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

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
}

.hero-image-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(18, 24, 36, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.badge-text-title {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 0.92rem;
}

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

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-card.cyan .feature-icon-box {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-main);
}

.feature-card.amber .feature-icon-box {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-gold);
}

/* Story Section */
.story-highlight-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.story-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-main);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.quote-box {
  background: var(--bg-card);
  border-left: 4px solid var(--emerald-main);
  padding: 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 22px 0;
  font-style: italic;
  color: #E2E8F0;
  font-size: 1.05rem;
}

/* Interactive Quiz / Calculator Component */
.quiz-section {
  padding: 80px 0;
  position: relative;
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  max-width: 800px;
  margin: 0 auto;
}

.quiz-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 30px;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-main), var(--cyan-main));
  width: 25%;
  transition: width 0.3s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 22px 0;
}

.quiz-option-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--text-main);
  font-size: 1.02rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-option-btn:hover, .quiz-option-btn.selected {
  border-color: var(--emerald-main);
  background: rgba(16, 185, 129, 0.1);
  transform: translateX(4px);
}

.quiz-result-box {
  text-align: center;
  padding: 16px 0;
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 6px solid var(--emerald-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 30px var(--emerald-glow);
}

.score-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.score-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Certificate Badges Grid */
.cert-section {
  padding: 70px 0;
  background: var(--bg-surface);
}

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

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cert-info h4 {
  color: #FFFFFF;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.cert-info p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* Product Showcase Box */
.product-showcase-section {
  padding: 85px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.product-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.product-image-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.ingredient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.ingredient-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: #E2E8F0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ingredient-chip span {
  color: var(--emerald-main);
  font-weight: 700;
}

/* Lead Form Page & Card */
.lead-form-page {
  padding: 60px 0 90px;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 15px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 1.05rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--emerald-main);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 24px;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--emerald-main);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.guarantee-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  justify-content: center;
}

/* Article Layout */
.article-page {
  padding: 60px 0 90px;
}

.article-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 40px;
}

.article-content h2 {
  margin-top: 36px;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.article-content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  color: #E2E8F0;
}

.article-content ul, .article-content ol {
  margin: 16px 0 24px 24px;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 10px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.article-cta-box {
  background: var(--bg-card);
  border: 1px solid var(--emerald-main);
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 40px 0 20px;
  text-align: center;
}

/* Legal Pages */
.legal-page {
  padding: 60px 0 90px;
}

.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.legal-card h2 {
  margin-top: 32px;
  font-size: 1.4rem;
}

/* Footer */
.site-footer {
  background: #080B10;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 320px;
  margin-top: 12px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 18px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.footer-disclaimer-box {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  background: rgba(18, 24, 36, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.3s ease;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid, .story-grid, .product-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-image-wrapper img {
    height: 380px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .hero-highlights {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-content, .legal-card, .quiz-card, .lead-card {
    padding: 28px 20px;
  }
  .cookie-actions {
    flex-direction: column;
  }
}
