/* ==========================================================================
   Zdravý Muž - Style Sheet
   Colors: Czech Flag Inspired Palette
   Primary Blue: #11457E | Accent Red: #D7141A | Neutral White: #FFFFFF
   Dark Text: #1E293B | Soft Background: #F8FAFC | Card Border: #E2E8F0
   ========================================================================== */

:root {
  --primary-blue: #11457E;
  --primary-blue-dark: #0D3461;
  --accent-red: #D7141A;
  --accent-red-hover: #B50F14;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

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

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

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

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

/* --- Top Header & Navigation --- */
.top-bar {
  background-color: var(--primary-blue-dark);
  color: #FFFFFF;
  font-size: 0.85rem;
  padding: 6px 0;
  text-align: center;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--accent-red);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-red));
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
  background-color: rgba(17, 69, 126, 0.08);
}

.btn-header {
  background-color: var(--accent-red);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s, transform 0.1s;
}

.btn-header:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-blue);
  cursor: pointer;
}

/* --- Layout Containers --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.narrow-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* --- Buttons & UI Elements --- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--accent-red);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-red-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--primary-blue);
  color: white;
}

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

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: white;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

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

.hero-tag {
  display: inline-block;
  background-color: var(--accent-red);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 30px;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.2);
}

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

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-icon {
  font-size: 1.8rem;
  color: var(--accent-red);
}

.hero-badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--primary-blue);
}

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

/* --- Section Headings --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.section-subtitle {
  color: var(--accent-red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 12px;
}

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

/* --- Story Feature Card --- */
.story-preview-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border-left: 6px solid var(--accent-red);
  margin-bottom: 60px;
}

.story-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.story-title {
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.story-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* --- Interactive Tool Section --- */
.interactive-section {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  margin: 50px 0;
}

.quiz-container {
  max-width: 700px;
  margin: 0 auto;
}

.quiz-question {
  display: none;
}

.quiz-question.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.quiz-question h3 {
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.quiz-option-btn {
  background-color: var(--bg-light);
  border: 2px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-option-btn:hover {
  border-color: var(--primary-blue);
  background-color: rgba(17, 69, 126, 0.04);
}

.quiz-progress {
  height: 8px;
  background-color: var(--border-color);
  border-radius: 4px;
  margin-bottom: 24px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--accent-red);
  width: 20%;
  transition: width 0.3s ease;
}

.quiz-result {
  display: none;
  text-align: center;
  padding: 20px;
}

.quiz-result.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.quiz-score-badge {
  display: inline-block;
  background-color: var(--primary-blue);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

/* Calculator Grid */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-blue);
}

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

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.calc-results-box {
  background: linear-gradient(135deg, rgba(17, 69, 126, 0.05), rgba(215, 20, 26, 0.05));
  border: 2px dashed var(--primary-blue);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-stat-item {
  margin-bottom: 16px;
}

.calc-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-red);
}

/* --- Features / Grid Cards --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(17, 69, 126, 0.1);
  color: var(--primary-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.3rem;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

/* --- Offer Showcase (PROST AKTIV - No Price) --- */
.offer-box {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
  overflow: hidden;
  margin: 50px 0;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.offer-img-col {
  background: radial-gradient(circle, #ffffff 0%, #f1f5f9 100%);
  padding: 40px;
  text-align: center;
}

.offer-img-col img {
  max-height: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}

.offer-info-col {
  padding: 40px;
}

.offer-badge-tag {
  background-color: var(--primary-blue);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.offer-title {
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.offer-bullet-list {
  list-style: none;
  margin: 20px 0 30px 0;
}

.offer-bullet-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.offer-bullet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-red);
  font-weight: bold;
  font-size: 1.2rem;
}

/* --- Certificates Section --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.cert-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.cert-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.cert-badge-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px auto;
  background-color: rgba(215, 20, 26, 0.08);
  color: var(--accent-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
}

.cert-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-blue);
}

/* --- Lead Consultation Form (ONLY ON konzultace.html) --- */
.consultation-form-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border-top: 6px solid var(--accent-red);
  max-width: 550px;
  margin: 0 auto;
}

.form-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
  text-align: center;
}

/* --- Modal for Certificates & Cookies --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

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

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-blue-dark);
  color: white;
  padding: 20px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
  z-index: 1500;
  display: none;
  border-top: 3px solid var(--accent-red);
}

.cookie-banner.active {
  display: block;
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-text a {
  color: #93C5FD;
  text-decoration: underline;
}

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

/* --- Footer --- */
.site-footer {
  background-color: #0F172A;
  color: #94A3B8;
  margin-top: auto;
  border-top: 4px solid var(--primary-blue);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 30px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-red);
}

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

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

.footer-links a {
  color: #94A3B8;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.disclaimer-box {
  background-color: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #CBD5E1;
  border-left: 3px solid var(--accent-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
}

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

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid, .calc-grid, .offer-grid, .grid-3, .grid-2, .footer-top {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--accent-red);
  }

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

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  .cert-grid {
    grid-template-columns: 1fr;
  }
  .cookie-container {
    flex-direction: column;
    align-items: stretch;
  }
}
