/* =============================================
   Klíšťata.cz — Komplexní průvodce o klíšťatech
   Design: Forest Editorial
   ============================================= */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

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

:root {
  --forest-deep: #0a1f0f;
  --forest: #143d1f;
  --forest-mid: #1e5c30;
  --sage: #6b8f71;
  --sage-light: #a3c4a8;
  --cream: #faf8f0;
  --cream-warm: #f5f0e1;
  --amber: #c9913a;
  --amber-light: #e8c97a;
  --amber-glow: #fff8e7;
  --danger: #9b2c2c;
  --danger-light: #fed7d7;
  --warning-bg: #fffbeb;
  --warning-border: #d69e2e;
  --info-bg: #ebf8ff;
  --info-border: #3182ce;
  --success-bg: #f0fff4;
  --success-border: #38a169;
  --text: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #6b6b6b;
  --text-on-dark: #e8e4da;
  --border: #e2dfd6;
  --card-bg: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-hover: 0 12px 36px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-width: 1140px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--forest-mid);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}
a:hover { color: var(--amber); }

/* ========================
   HEADER & NAVIGATION
   ======================== */
.site-header {
  background: var(--forest-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.site-logo:hover { color: var(--amber-light); }
.site-logo .logo-icon { font-size: 1.5rem; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--text-on-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--amber-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
  position: relative;
  padding: 100px 28px 90px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(160deg, var(--forest-deep) 0%, var(--forest) 40%, var(--forest-mid) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,15,0.3) 0%, rgba(10,31,15,0.6) 100%);
  z-index: 1;
}

.hero > *:not(.hero-bg) { position: relative; z-index: 2; }

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta a {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--amber);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(201,145,58,0.4);
}
.btn-primary:hover {
  background: #b8822e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,145,58,0.5);
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* Page hero (subpages) */
.page-hero {
  position: relative;
  padding: 60px 28px 50px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(160deg, var(--forest-deep) 0%, var(--forest) 100%);
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,15,0.2) 0%, rgba(10,31,15,0.5) 100%);
  z-index: 1;
}

.page-hero > * { position: relative; z-index: 2; }

.page-hero .container { max-width: var(--max-width); margin: 0 auto; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  font-weight: 300;
}

.page-hero .breadcrumb {
  margin-bottom: 16px;
  font-size: 0.85rem;
  opacity: 0.7;
}
.page-hero .breadcrumb a { color: var(--amber-light); }
.page-hero .breadcrumb span { margin: 0 6px; }

/* ========================
   CONTAINER & CONTENT
   ======================== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

.page-content { padding: 48px 0 70px; }

h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--forest);
  margin: 56px 0 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h2:first-of-type { margin-top: 0; }

h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest-mid);
  margin: 36px 0 12px;
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 18px 24px; }
li { margin-bottom: 7px; }

strong { color: var(--text); }

/* Section divider */
.section-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 32px 0;
  box-shadow: var(--shadow);
}

/* ========================
   CARDS GRID
   ======================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin: 36px 0;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--forest);
}

.card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--forest);
}

.card-body p {
  color: var(--text-mid);
  font-size: 0.94rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--amber);
  transition: all var(--transition);
}
.card-link:hover { color: var(--forest-mid); gap: 10px; }

/* ========================
   INFO BOXES
   ======================== */
.info-box {
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
  border-left: 4px solid;
}
.info-box p:last-child { margin-bottom: 0; }
.info-box-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box.warning { background: var(--warning-bg); border-color: var(--warning-border); }
.info-box.warning .info-box-title { color: #92600a; }

.info-box.danger { background: var(--danger-light); border-color: var(--danger); }
.info-box.danger .info-box-title { color: var(--danger); }

.info-box.info { background: var(--info-bg); border-color: var(--info-border); }
.info-box.info .info-box-title { color: #2b6cb0; }

.info-box.success { background: var(--success-bg); border-color: var(--success-border); }
.info-box.success .info-box-title { color: #276749; }

/* ========================
   STAT BOXES
   ======================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin: 32px 0;
}

.stat-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--forest-mid);
  transition: transform var(--transition);
}
.stat-box:hover { transform: translateY(-2px); }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--forest);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 6px;
  font-weight: 500;
}

/* ========================
   TABLES
   ======================== */
.table-wrap { overflow-x: auto; margin: 28px 0; border-radius: var(--radius); box-shadow: var(--shadow); }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
}

thead { background: var(--forest); color: #fff; }
th {
  padding: 14px 18px;
  font-weight: 600;
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
tbody tr:hover { background: var(--success-bg); }
tbody tr:last-child td { border-bottom: none; }

/* ========================
   STEPS
   ======================== */
.steps { list-style: none; margin: 28px 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 64px;
  margin-bottom: 14px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  background: var(--forest-mid);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
}

/* ========================
   MYTHS
   ======================== */
.myth {
  background: var(--danger-light);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
  border-left: 4px solid var(--danger);
}
.myth-title { font-weight: 700; color: var(--danger); margin-bottom: 4px; }
.myth p { margin: 0; font-size: 0.94rem; }

/* ========================
   REGION RISK
   ======================== */
.region-risk {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.region-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid;
  transition: all var(--transition);
}
.region-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.region-item.very-high { border-color: var(--danger); }
.region-item.high { border-color: #dd6b20; }
.region-item.moderate { border-color: var(--warning-border); }
.region-item.low { border-color: var(--success-border); }
.region-name { font-weight: 700; font-size: 1.05rem; font-family: var(--font-display); }
.region-level {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}
.region-item.very-high .region-level { color: var(--danger); }
.region-item.high .region-level { color: #dd6b20; }
.region-item.moderate .region-level { color: #92600a; }
.region-item.low .region-level { color: var(--success-border); }
.region-desc { font-size: 0.9rem; color: var(--text-light); margin-top: 8px; }

/* ========================
   SCHEDULE TIMELINE
   ======================== */
.schedule-timeline {
  position: relative;
  padding-left: 36px;
  margin: 28px 0;
}
.schedule-timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--forest-mid), var(--sage-light));
  border-radius: 2px;
}
.schedule-item {
  position: relative;
  margin-bottom: 22px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.schedule-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 22px;
  width: 14px;
  height: 14px;
  background: var(--forest-mid);
  border-radius: 50%;
  border: 3px solid var(--sage-light);
}
.schedule-label { font-weight: 700; color: var(--forest-mid); font-size: 0.88rem; font-family: var(--font-display); }

/* ========================
   FAQ ACCORDION
   ======================== */
.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 52px 18px 22px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
  font-family: var(--font-body);
  line-height: 1.5;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--forest-mid); }
.faq-question::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--sage);
  transition: transform var(--transition);
  font-weight: 300;
}
.faq-item.open .faq-question::after { content: "\2212"; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 22px 18px;
  color: var(--text-mid);
  font-size: 0.94rem;
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
  background: var(--forest-deep);
  color: var(--text-on-dark);
  padding: 56px 28px 28px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  color: var(--cream);
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.footer-col a {
  color: var(--sage-light);
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  font-weight: 400;
}
.footer-col a:hover { color: var(--amber-light); }
.footer-col p { font-size: 0.9rem; line-height: 1.7; color: var(--sage-light); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1, .hero p, .hero-cta {
  animation: fadeInUp 0.6s ease both;
}
.hero p { animation-delay: 0.1s; }
.hero-cta { animation-delay: 0.2s; }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--forest-deep);
    flex-direction: column;
    padding: 12px 16px;
    gap: 2px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.95rem; }

  .hero { padding: 60px 20px 55px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }

  .page-hero { padding: 40px 20px 35px; }
  .page-hero h1 { font-size: 1.9rem; }

  h2 { font-size: 1.45rem; }

  .cards-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .region-risk { grid-template-columns: 1fr; }

  .steps li { padding-left: 56px; }
  .section-img { height: 160px; }

  table { font-size: 0.86rem; }
  th, td { padding: 10px 14px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.8rem; }
  .page-hero h1 { font-size: 1.6rem; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.2rem; }
  .hero-cta a { width: 100%; text-align: center; }
  .card-img { height: 150px; }
}
