/*
  Nutričně.cz – základní styl
  - Světlé, čitelné, zaměřené na typografii a přehlednost
*/
:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #059669; /* sofistikovaná zelená */
  --primary-600: #047857;
  --primary-50: #ecfdf5;
  --primary-100: #d1fae5;
  --surface: #f8fafc;
  --border: #e5e7eb;
  --maxw: 1120px;
  
  /* Nová paleta - harmonické odstíny */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --accent-blue: #3b82f6;
  --accent-blue-50: #eff6ff;
  --accent-green: #f0fdf4;  
  --accent-warm: #f59e0b;
  --accent-warm-50: #fffbeb;
  --accent-purple: #8b5cf6;
  --accent-purple-50: #f3e8ff;
}
* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif; }
body {
  margin: 0; color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.section { 
  padding: 20px 0; 
  transition: background-color .2s ease; 
}
.section--tight { padding: 60px 0; }
.section--hero { 
  padding: 100px 0 80px; 
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg) 100%);
}
.section--services { 
  background: var(--neutral-50); 
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--blog {
  background: var(--accent-green);
}
.section.section--hover:hover { 
  filter: brightness(0.98); 
}
/* Hero */
.hero { 
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg) 100%); 
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23059669" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}
.hero__grid { 
  display: grid; 
  grid-template-columns: 1.2fr 0.8fr; 
  gap: 60px; 
  align-items: center; 
  position: relative;
  z-index: 1;
}
.hero .actions { 
  display: flex; 
  gap: 16px; 
  margin-top: 24px; 
  flex-wrap: wrap; 
}
.hero .h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, #3b75a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow: visible;
}
.hero .p-lead {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.h1 { font-size: 39px; line-height: 1.3; margin: 0 0 16px; padding-bottom: 0.1em; }
.h2 { font-size: 32px; line-height: 1.2; margin: 0 0 24px; font-weight: 600; }
.p-lead { font-size: 18px; color: var(--muted); line-height: 1.6; }

/* Header */
.header { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--border); z-index: 50; }
.header__row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand small { font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--text); font-weight: 500; }
.nav-cta { padding: 10px 14px; border-radius: 10px; background: var(--primary); color: #fff !important; }
.nav-cta:hover { background: var(--primary-600); text-decoration: none; }
.menu-btn { display: none; border: 1px solid var(--border); background: #fff; padding: 8px 10px; border-radius: 8px; }

/* Hero */
.hero { background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 60%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.hero__grid > div:last-child {
  align-self: start;
  margin-top: 65px;
}
.hero .actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--text); font-weight: 600; transition: transform .1s ease, box-shadow .1s ease; }
.btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn--secondary { color: var(--primary); background: #fff; border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-600); }
.btn--ghost { background: transparent; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.05); text-decoration: none; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 24px; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
  transition: all .2s ease; 
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-blue) 100%);
  opacity: 0;
  transition: opacity .2s ease;
}
.card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 8px 25px rgba(0,0,0,.08); 
  border-color: var(--primary-100);
}
.card:hover::before {
  opacity: 1;
}
.card h3 { 
  margin: 8px 0 12px; 
  font-size: 20px; 
  font-weight: 600;
  line-height: 1.3;
}
.card h3 a {
  color: var(--text);
  text-decoration: none;
}
.card a {
  text-decoration: none;
}
.card a:hover {
  text-decoration: underline;
}

.card p { 
  margin: 0.3; 
  color: var(--muted); 
  line-height: 1.6;
}
.badge { 
  display: inline-block; 
  padding: 6px 12px; 
  background: var(--primary-50); 
  color: var(--primary); 
  border: 1px solid var(--primary-100); 
  border-radius: 20px; 
  font-size: 13px; 
  font-weight: 500;
}

/* Chips (filters) */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; user-select: none; }
.chip[aria-pressed=\"true\"], .chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Lists */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.list li::before { content: "✓"; color: var(--primary); margin-top: 2px; }

/* Bio box (O mně) - Rework */
.bio-box {
  width: 100%;
  max-width: 800px; /* adjust as needed */
  margin: 0 auto;
}

.bio-box__img-wrap { text-align: center; }
.bio-box img { max-width: 240px; border-radius: 16px; border: 6px solid #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

@media screen and (min-width: 768px) {
  .bio-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
  }
  .bio-box__img-wrap { grid-template-columns: auto 1fr; order: 1; }
  .bio-box__text { order: 2; }
}

/* Article content */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: 36px; margin: 0 0 12px; }
.article h2 { font-size: 24px; margin: 24px 0 8px; }
.article p { margin: 12px 0; }
.article blockquote { margin: 16px 0; padding: 12px 16px; background: var(--lilac-50); border-left: 4px solid var(--lilac-100); border-radius: 8px; }
.article figure { margin: 16px 0; }
.article figcaption { font-size: 14px; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 12px; max-width: 640px; }
.label { font-weight: 600; }
.input, .textarea, .select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.textarea { min-height: 120px; }
.helper { font-size: 13px; color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }

/* Approach (Můj přístup) - Rework */
.approach {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  max-width: 768px;
  margin: 24px auto 0;
}
.approach:hover .approach-item:not(:hover) {
  opacity: 0.6;
}
.approach-item {
  list-style: none;
  border-radius: 16px;
  transition: all .3s ease;
  background: var(--surface);
  border: 1px solid var(--border);
}
.approach-item.open {
  background: var(--mint-50);
  border-color: var(--mint-100);
}
.approach__btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.approach__btn .icon {
  font-style: normal;
  font-size: 24px;
  color: var(--primary);
  transition: transform .3s cubic-bezier(0.25, 1, 0.5, 1);
}
.approach__btn[aria-expanded="true"] .icon {
  transform: rotate(45deg);
}
.approach__more {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: all .35s ease;
  padding: 0 20px;
}
.approach-item.open .approach__more {
  max-height: 200px;
  opacity: 1;
  padding: 0 20px 20px;
}
.approach__more p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Timeline (hravá, střídavá) */
.timeline { position: relative; max-width: 768px; margin: 32px auto 0; list-style: none; padding: 0; }
.timeline::before { content: ''; position: absolute; top: 0; left: 50%; bottom: 0; transform: translateX(-50%); width: 2px; background: linear-gradient(to bottom, var(--mint-100), var(--peach-100), var(--lilac-100)); }
.tl-item { position: relative; width: 50%; padding: 16px 32px; }
.tl-item:nth-child(odd) { left: 0; }
.tl-item:nth-child(even) { left: 50%; }
.tl-item:nth-child(even)::before, .tl-item:nth-child(odd)::before { content: ''; position: absolute; top: 30px; width: 12px; height: 2px; background: var(--border); }
.tl-item:nth-child(odd)::before { right: -12px; }
.tl-item:nth-child(even):before { left: -12px; }
.tl-icon { position: absolute; top: 22px; width: 24px; height: 24px; background: #fff; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 14px; }
.tl-item:nth-child(odd) .tl-icon { right: -12px; transform: translateX(50%); }
.tl-item:nth-child(even) .tl-icon { left: -12px; transform: translateX(-50%); }
.tl-content { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; text-align: left; }
.tl-time { font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.tl-title { font-weight: 600; margin-bottom: 4px; }

@media (max-width: 767px) {
  .timeline::before { left: 12px; }
  .tl-item { width: 100%; left: 0 !important; padding-left: 48px; padding-right: 0; }
  .tl-item:nth-child(odd)::before, .tl-item:nth-child(even)::before { left: -12px; }
  .tl-item:nth-child(odd) .tl-icon, .tl-item:nth-child(even) .tl-icon { left: -12px; transform: translateX(-50%); }
}

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.footer .footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid { 
    grid-template-columns: 1fr; 
    gap: 40px;
  }
  .hero .h1 {
    font-size: 40px;
  }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .section {
    padding: 60px 0;
  }
  .section--hero {
    padding: 80px 0 60px;
  }
  .hero .h1 {
    font-size: 32px;
  }
  .hero .p-lead {
    font-size: 18px;
  }
  .h2 {
    font-size: 28px;
  }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; right: 12px; left: 12px; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
  .nav.open { display: flex; }
}

/* Utility classes for common inline styles */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }

.max-w-760 { max-width: 760px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.opacity-95 { opacity: 0.95; }
.opacity-90 { opacity: 0.90; }

.font-size-sm { font-size: 0.9em; }
.font-size-xs { font-size: 0.8em; }

.color-white { color: white; }
.color-muted { color: var(--muted); }

.bg-light-blue { background: #f0f8ff; }
.bg-light-orange { background: #fff3e0; }
.bg-light-gray { background: #f5f5f5; }
.bg-light-green { background: #e8f5e9; }

.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }

.border-radius-12 { border-radius: 12px; }
.border-radius-8 { border-radius: 8px; }

.flex-1 { flex: 1; }

/* Blog navigation */
.back-to-blog {
  margin-bottom: 1.5rem;
}
.back-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

/* Category links */
.category-links {
  margin-top: 8px;
  font-size: 0.9em;
}
.category-link {
  color: var(--primary);
  text-decoration: none;
}
.category-link:hover {
  text-decoration: underline;
}

/* Subcategory chips */
.subcategory-chips {
  display: none;
  margin-top: 8px;
}
.chip--small {
  font-size: 0.85em;
  padding: 6px 10px;
}

/* Grid variations */
.grid--4 {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

/* Card enhancements */
.card-actions {
  margin-top: 12px;
}
.card-helper {
  margin-top: 8px;
}

/* Form enhancements */
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Section spacing */
.section-spacing {
  margin-top: 28px;
}

/* Timeline enhancements */
.timeline-spacing {
  margin-top: 20px;
}

/* Approach section */
.approach-spacing {
  margin-top: 28px;
}

/* FAQ spacing */
.faq-spacing {
  margin-top: 28px;
}

/* Service process grid */
.service-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .service-process {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 680px) {
  .service-process {
    grid-template-columns: 1fr;
  }
}

.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.popup.hidden {
  display: none;
}
.popup-content {
  background: white;
  color: #7a9f86;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
