/* ---------- Proměnné a základní nastavení ---------- */
:root {
  /* Založeno na návrhu - tmavě modrá/indigo přecházející do světlé */
  --color-primary: #1e3a8a; /* tmavě modrá (indigo-900) */
  --color-secondary: #3b82f6; /* světlejší modrá */
  --color-accent: #fcd34d; /* zářivě žlutá (zlatavá, hvězdy) */
  --color-accent-hover: #fbbf24;
  --color-bg-light: #f8fafc; /* krémově bílá pozadí sekcí */
  --color-text-main: #334155;
  --color-text-light: #64748b;
  --color-white: #ffffff;
  
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  
  --max-width: 1200px;
  --border-radius: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 14px 0 rgba(252, 211, 77, 0.39);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 211, 77, 0.6);
}

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

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

/* ---------- Hlavička a Navigace ---------- */
.header {
  position: absolute; /* Přes Hero banner */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background: linear-gradient(to bottom, rgba(30, 58, 138, 0.8), transparent);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.logo-text {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 800;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-desktop a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-desktop a:hover::after {
  width: 100%;
}

/* Dropdown */
.nav-item-has-children {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-white);
  min-width: 200px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 150;
  padding: 0.5rem 0;
}

.nav-item-has-children:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text-main);
  text-shadow: none;
}

.dropdown a::after {
  display: none;
}

.dropdown a:hover {
  background-color: var(--color-bg-light);
  color: var(--color-secondary);
}

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

/* ---------- Hero Banner ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px; /* Offset for header */
}

/* Parallax pozadí */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/img/hero_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

/* Tmavý/modrý překryv pro lepší čitelnost textu, gradientní obloha */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(30, 58, 138, 0.4) 0%, rgba(30, 58, 138, 0.1) 50%, rgba(248, 250, 252, 1) 100%);
  z-index: -1;
}

/* Plovoucí hvězdičky animace (generované CSS) */
.stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.star {
  position: absolute;
  background-color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
  animation: twinkle var(--duration) infinite alternate;
}

@keyframes twinkle {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 15px 4px rgba(252, 211, 77, 0.9); }
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  z-index: 10;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-motto {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  background: rgba(30, 58, 138, 0.3);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-motto strong {
  color: var(--color-accent);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Hlavní obsah ---------- */
.section {
  padding: 6rem 2rem;
}

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

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

.section-title {
  font-size: 2.5rem;
  color: var(--color-primary);
  display: inline-block;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '★';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-accent);
  font-size: 1.5rem;
}

/* ---------- O nás ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h3 {
  font-size: 1.75rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.about-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius);
  border: 4px solid var(--color-white);
  z-index: 10;
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* ---------- Aktuality ---------- */
.news-section {
  background-color: var(--color-white);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}

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

.news-img {
  height: 200px;
  background-color: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.08);
}

.news-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

.news-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
}

.news-content p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  color: var(--color-secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
}

.read-more span {
  transition: transform 0.3s ease;
}

.news-card:hover .read-more span {
  transform: translateX(5px);
}

.news-action {
  text-align: center;
}

/* ---------- Patička ---------- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  margin-bottom: 3rem;
}

.footer-col h5 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-col p, .footer-col li {
  color: #cbd5e1;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col a:hover {
  color: var(--color-accent);
  padding-left: 5px; /* Přidá lehký pohyb při hoveru pro odkazy */
}

.footer-logo {
  max-width: 100px; /* Zmenšíme, protože znak na výšku je velký */
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  font-size: 0.875rem;
}

/* ---------- Responzivita ---------- */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { order: -1; } /* Obrázek nad textem na mobilu */
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .mobile-menu-btn { display: block; }
  .hero h1 { font-size: 2rem; }
  .hero-motto { font-size: 1.125rem; }
  .hero-actions { flex-direction: column; }
}
