/* ============================================
   Zdeněk Mlčoch — Data & Financial Analytics
   Professional Website Stylesheet
   ============================================ */

:root {
  --primary: #1a365d;
  --primary-light: #2b4c7e;
  --primary-dark: #0f2440;
  --accent: #c9a84c;
  --accent-light: #d4b96a;
  --accent-dark: #a88a35;
  --text: #2d3748;
  --text-light: #718096;
  --text-white: #f7fafc;
  --bg: #ffffff;
  --bg-light: #f7f9fc;
  --bg-alt: #edf2f7;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(26, 54, 93, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 54, 93, 0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

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

body {
  font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5 {
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent); }

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== NAVIGATION ========== */
.navbar {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 70px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  color: var(--text-white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-white);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  opacity: 0.85;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.12);
  color: var(--accent);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--text-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 750px;
}

.hero h1 {
  color: var(--text-white);
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

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

.hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-dark {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ========== SECTIONS ========== */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}

.section-transition {
  text-align: center;
  color: var(--text-light);
  font-size: 0.93rem;
  font-style: italic;
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.bg-light { background: var(--bg-light); }
.bg-alt { background: var(--bg-alt); }

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

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--accent);
}

.card h3 {
  color: var(--primary);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.card-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

/* ========== PROCESS / STEPS ========== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h4 { color: var(--primary); }
.step p { color: var(--text-light); font-size: 0.9rem; }

/* ========== STATS ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-white);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ========== CASE STUDIES ========== */
.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

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

.case-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-white);
  padding: 1.5rem 2rem;
}

.case-header h3 { color: var(--text-white); margin-bottom: 0.25rem; }
.case-header span { font-size: 0.85rem; opacity: 0.8; }

.case-body {
  padding: 1.5rem 2rem;
}

.case-body .label {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.case-body p { font-size: 0.93rem; margin-bottom: 1rem; }

.case-result {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.result-badge {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ========== TABLE ========== */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.styled-table thead {
  background: var(--primary);
  color: var(--text-white);
}

.styled-table th,
.styled-table td {
  padding: 1rem 1.25rem;
  text-align: left;
}

.styled-table th {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.styled-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.styled-table tbody tr:hover {
  background: var(--bg-light);
}

.styled-table tbody tr:last-child {
  border-bottom: none;
}

/* ========== POSITIONING / QUOTE ========== */
.quote-block {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--text-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
  position: relative;
}

.quote-block::before {
  content: '\201C';
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

.quote-block p {
  font-size: 1.25rem;
  font-style: italic;
  position: relative;
  z-index: 1;
  max-width: 700px;
}

/* ========== TWO-COLUMN LAYOUT ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.two-col-content h2 {
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.6rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--text-white);
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-dark);
  color: var(--text-white);
  padding: 3rem 0 1.5rem;
}

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

.footer h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer p, .footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

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

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

.footer-links li { margin-bottom: 0.5rem; }

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

/* ========== CONTACT FORM ========== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========== ABOUT PAGE ========== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 13px;
  height: 13px;
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent);
}

.timeline-item h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.timeline-item .year {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

.timeline-item p {
  color: var(--text-light);
  font-size: 0.93rem;
}

/* ========== SKILLS ========== */
.skill-bar-container {
  margin-bottom: 1.25rem;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 1s ease;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }

  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .hero { padding: 3.5rem 0; }
  section { padding: 3.5rem 0; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  h1 { font-size: 1.75rem; }
  .hero { padding: 2.5rem 0; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }

  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
  .quote-block { padding: 2rem 1.5rem; }
  .quote-block p { font-size: 1.05rem; }
}

/* ========== CHECKLIST PAGE ========== */
.checklist-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: background var(--transition), border-color var(--transition);
}

.checklist-item:hover {
  background: var(--bg-light);
}

.checklist-item:has(.checklist-check:checked) {
  background: #f0f7ff;
  border-color: var(--primary);
}

.checklist-label {
  display: flex;
  gap: 1rem;
  cursor: pointer;
  align-items: flex-start;
}

.checklist-check {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.checklist-label div strong {
  display: block;
  color: var(--primary);
  font-size: 0.97rem;
  margin-bottom: 0.25rem;
}

.checklist-label div p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

/* ========== DIAGNOSTIC FORM — CHECKBOX GROUP ========== */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.checkbox-label:hover {
  background: var(--bg-light);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .checkbox-group { grid-template-columns: 1fr; }
}
