/* fitness.ee redesign — demo stylesheet */
:root {
  --blue: #1e5f9e;
  --blue-light: #e8f0f9;
  --blue-dark: #154a7a;
  --green: #067d62;
  --green-light: #e6f5f0;
  --bg: #fafaf8;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e5e7eb;
  --border-light: #f0f0ee;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --max-width: 1200px;
  --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Nav ── */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--blue); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-secondary);
  transition: color var(--transition);
  padding: 4px 0;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  text-decoration: none;
}

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1a2332 0%, #1e3a5f 50%, #1e5f9e 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-search {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 16px 24px;
  padding-right: 56px;
  border-radius: 28px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 16px;
  outline: none;
  transition: all var(--transition);
}
.hero-search input::placeholder { color: rgba(255,255,255,0.6); }
.hero-search input:focus {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
}
.hero-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: var(--blue);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-thumb {
  width: 100%;
  height: 180px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-thumb img {
  max-height: 160px;
  object-fit: contain;
}
.product-brand {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.product-price {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  margin-top: auto;
}
.product-price .currency {
  font-size: 13px;
  font-weight: 600;
  margin-top: 3px;
}
.product-price .whole {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.product-price .fraction {
  font-size: 13px;
  font-weight: 600;
}
.product-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.product-meta .serving { color: var(--text-secondary); }
.product-cta {
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  text-decoration: none;
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue-light);
  text-decoration: none;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #056b54; color: #fff; text-decoration: none; }

/* ── Category Filters ── */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

/* ── Article Card (homepage) ── */
.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-md); }
.article-card .date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.article-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--blue); }
.article-card .excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.article-card .tags {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: var(--blue-light);
  color: var(--blue);
}

/* ── Article Page ── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 48px 0;
}
.article-body { max-width: 720px; }
.article-body h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.article-body .meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
}
.article-body p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.article-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 16px;
  color: var(--text);
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.article-body li { margin-bottom: 8px; }

/* Sidebar */
.sidebar {}
.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.sidebar-product {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}
.sidebar-product:last-child { border-bottom: none; }
.sidebar-product img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.sidebar-product-info { flex: 1; }
.sidebar-product-info .name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}
.sidebar-product-info .price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.sidebar-product-info .snippet {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; }

/* ── Calculator ── */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}
.calc-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.calc-form h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--blue);
}
.calc-results {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.calc-results h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}
.result-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}
.result-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.result-macro {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.macro-item {
  flex: 1;
  text-align: center;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
}
.macro-item .value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.macro-item .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Product Detail ── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}
.detail-image {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 400px;
}
.detail-image img {
  max-height: 360px;
  object-fit: contain;
}
.detail-info h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.detail-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.detail-price {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 4px;
}
.detail-serving-price {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.detail-snippet {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding: 16px;
  background: var(--blue-light);
  border-radius: var(--radius);
}
.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.spec-item {
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
}
.spec-item .label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 2px; }
.spec-item .value { font-size: 15px; font-weight: 600; display: block; }

.detail-faq { margin-top: 32px; }
.detail-faq h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.faq-item { border-bottom: 1px solid var(--border-light); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.faq-a { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ── URL Callout ── */
.url-callout {
  background: var(--green-light);
  border: 1px solid #c3e6d8;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  color: #0a5c47;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
}
.url-callout .icon { font-size: 18px; }

/* ── Footer ── */
.footer {
  background: #1a2332;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  margin-top: 64px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand span { color: #6baed6; }
.footer-tagline { font-size: 13px; opacity: 0.6; }
.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  padding: 3px 0;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  opacity: 0.4;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .article-layout { grid-template-columns: 1fr; }
  .calc-layout { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; gap: 24px; }
  .section { padding: 40px 0; }
  .result-macro { flex-direction: column; }
}

/* ── Demo Banner ── */
.demo-banner {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}
