/* ==========================================================================
   Manlig Balans - Design System & Stylesheet
   Geo: Sweden (SE) | Topic: Male Fitness, Vitality & Metabolism after 40
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@700;800;900&display=swap');

:root {
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;
  --bg-light: #f8fafc;
  --bg-surface: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-on-dark: #f8fafc;
  
  --primary: #059669;        /* Emerald Green */
  --primary-hover: #047857;
  --accent: #ccff00;         /* Electric Lime matching GetSlim bottle */
  --accent-dark: #84cc16;
  --gold: #f59e0b;
  --danger: #ef4444;
  
  --border-light: #e2e8f0;
  --border-dark: #334155;
  
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', 'Inter', system-ui, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 24px rgba(204, 255, 0, 0.25);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-lime {
  background-color: var(--accent);
  color: #0f172a;
}

.badge-green {
  background-color: #dcfce7;
  color: var(--primary-hover);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-dark);
  padding: 1rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

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

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-weight: 900;
  font-size: 1.2rem;
}

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

.nav-links a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-cta {
  background-color: var(--accent);
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(204, 255, 0, 0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  background-color: #b8e600;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #a8e000 100%);
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(204, 255, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(204, 255, 0, 0.45);
}

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

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: #ffffff;
}

.btn-outline:hover {
  background: rgba(204, 255, 0, 0.1);
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 70% 20%, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 4.5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(204,255,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-content h1 {
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.hero-content h1 span {
  color: var(--accent);
}

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

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #e2e8f0;
  font-weight: 500;
}

.hero-feature-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(204, 255, 0, 0.15);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

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

.hero-image-box img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  color: #ffffff;
}

.hero-image-badge strong {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-dark h2, .section-dark h3 {
  color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-header p {
  font-size: 1.15rem;
}

/* Story Section */
.story-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.story-img-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.story-img-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.story-text h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.story-text p {
  margin-bottom: 1.25rem;
  color: #334155;
  line-height: 1.7;
}

/* Interactive Calculator */
.calculator-card {
  background: var(--bg-dark-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

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

.calc-form-group label {
  display: block;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.calc-input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calc-range {
  flex: 1;
  accent-color: var(--accent);
}

.calc-value-badge {
  background: #0f172a;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  min-width: 80px;
  text-align: center;
}

.calc-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: #0f172a;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.calc-select:focus {
  border-color: var(--accent);
}

.calc-result-box {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-result-header {
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.calc-result-header h4 {
  color: var(--accent);
  font-size: 1.25rem;
}

.calc-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-dark-card);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.05);
}

.metric-card span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-card strong {
  display: block;
  font-size: 1.6rem;
  color: #ffffff;
  font-family: var(--font-heading);
  margin-top: 0.25rem;
}

.metric-card strong small {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

.vitality-gauge {
  margin-bottom: 1.5rem;
}

.vitality-bar-bg {
  height: 12px;
  background-color: #334155;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.5rem;
}

.vitality-bar-fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, #f59e0b 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

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

.article-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.article-img-box {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-img-box img {
  transform: scale(1.05);
}

.article-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.article-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

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

.article-link {
  color: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-link:hover {
  color: var(--primary-hover);
}

/* Certificates Strip & Showcase */
.cert-strip {
  background: var(--bg-dark-card);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

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

.cert-badge-item {
  background: #0f172a;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #ffffff;
  transition: var(--transition);
  cursor: pointer;
}

.cert-badge-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cert-icon {
  width: 44px;
  height: 44px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cert-info strong {
  display: block;
  font-size: 0.95rem;
}

.cert-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Product & Order Form Page */
.product-presentation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-main-img {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  text-align: center;
}

.product-main-img img {
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
}

.ingredient-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ingredient-pill {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.order-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary);
  position: relative;
}

.order-box-header {
  border-bottom: 2px dashed var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 1rem 0;
}

.price-current {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
}

.price-old {
  font-size: 1.3rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Dedicated Lead Form (ONLY Name and Phone Number) */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.form-input.error {
  border-color: var(--danger);
  background-color: #fef2f2;
}

.form-error-msg {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}

.form-guarantee-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #166534;
}

/* Thank You Page Styling */
.thank-you-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  max-width: 700px;
  margin: 3rem auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

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

.thank-you-details {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: left;
  border: 1px solid var(--border-light);
}

.thank-you-details-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.thank-you-details-row:last-child {
  border-bottom: none;
}

/* Disclaimer Banner & Footer */
.compliance-disclaimer {
  background: #1e293b;
  color: #94a3b8;
  font-size: 0.825rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-dark);
  line-height: 1.6;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-dark);
}

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

.footer-col h5 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-col p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 500px;
  background: #0f172a;
  color: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner-btns {
  display: flex;
  gap: 0.75rem;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Responsive Queries */
@media (max-width: 992px) {
  .hero-grid, .story-card, .calc-grid, .product-presentation-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-dark);
  }

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

  .mobile-toggle {
    display: block;
  }

  .product-gallery {
    position: static;
  }
}

@media (max-width: 576px) {
  .hero { padding: 3rem 0; }
  .section { padding: 3rem 0; }
  .story-card, .calculator-card, .order-box, .thank-you-box {
    padding: 1.5rem;
  }
  .calc-metric-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
