/* ==========================================================================
   DESIGN SYSTEM & THEME VARIABLES - HOJIVÉ MÍSTEČKO
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

:root {
  /* Color Palette - Brand HEX #36B6B1 (From instrukce.md & image specification) */
  --primary: #36B6B1;
  --primary-dark: #247D79;
  --primary-light: #5CC4C0;
  --secondary: rgba(54, 182, 177, 0.8);
  --secondary-light: #E0F4F3;
  --accent: #36B6B1;
  --accent-hover: #2B9B96;
  --accent-light: #EBF7F7;
  
  --bg-main: #FFFFFF;
  --bg-alt: #F2F9F9;
  --bg-dark: #247D79;
  --bg-dark-card: #1B5E5B;
  --card-bg: #FFFFFF;
  
  --text-main: #333333;
  --text-muted: #666666;
  --text-light: #FFFFFF;
  --text-light-muted: #D0EAE8;
  
  --border-color: #D6EFEF;
  --border-dark: #329994;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Spacing System */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(63, 78, 70, 0.08);
  --shadow-lg: 0 16px 40px rgba(63, 78, 70, 0.12);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

p {
  font-size: 1.05rem;
  color: var(--text-main);
  max-width: 70ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Layout Utilities */
.container {
  width: 85%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-padding {
  padding: var(--space-8) 0;
}

@media (min-width: 992px) {
  .section-padding {
    padding: var(--space-9) 0;
  }
}

/* Buttons (Matching Reference Design Pill Buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

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

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

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

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-pill-stacked {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 20px 28px;
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: var(--radius-pill);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-pill-stacked:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--primary-dark);
  letter-spacing: 0.03em;
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown Navigation */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #ffffff;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 1000;
  border: 1px solid var(--border-color);
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-transform: none;
}

.dropdown-item:hover,
.dropdown-item.active {
  background-color: rgba(54, 182, 177, 0.1);
  color: var(--accent);
}

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

/* Organic Background Blobs */
.blob-bg {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: linear-gradient(135deg, #E6DDD1, #D8CEBF);
  z-index: 1;
  opacity: 0.7;
  animation: floatBlob 12s infinite ease-in-out alternate;
}

.blob-1 {
  width: 320px;
  height: 320px;
  top: -40px;
  right: 5%;
}

.blob-2 {
  width: 450px;
  height: 450px;
  top: 10%;
  right: -50px;
  background: linear-gradient(135deg, #DFD6C8, #C9BCAB);
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(15px, 25px) rotate(6deg); }
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-9);
  background-color: var(--bg-main);
  overflow: hidden;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.hero-title {
  margin-bottom: var(--space-5);
  color: var(--primary-dark);
}

.hero-description {
  font-size: 1.2rem;
  margin: 0 auto var(--space-6);
  color: var(--text-main);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}

/* Banner Card inside Hero */
.hero-banner-card {
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-7);
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-banner-card .badge {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.hero-banner-card h3 {
  color: var(--text-light);
  font-size: 1.4rem;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* Section 2: Dark Background - "S czym vam pomohu?" */
.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
}

.section-dark h2,
.section-dark h3 {
  color: var(--text-light);
}

.section-dark p {
  color: var(--text-light-muted);
  max-width: none;
}

.section-header-center {
  text-align: center;
  margin-bottom: var(--space-7);
}

.section-header-center h2 {
  margin-bottom: var(--space-3);
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-4);
  background-color: var(--primary-light);
  color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-card h3 {
  margin-bottom: var(--space-4);

}

.service-card p {
  margin: 0 auto var(--space-6);
  font-size: 0.98rem;
}

/* Section 3: Audience Pills with Curved Road Graphics */
.section-audience {
  position: relative;
  background-color: var(--bg-main);
  overflow: hidden;
}

.svg-path-accent {
  position: absolute;
  width: 280px;
  opacity: 0.25;
  pointer-events: none;
}

.svg-path-left {
  top: 10%;
  left: -40px;
}

.svg-path-right {
  bottom: 10%;
  right: -40px;
}

.pill-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-top: var(--space-6);
}

/* Section 4: Public Lectures & Workshops (Dark Split) */
.events-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 992px) {
  .events-split {
    grid-template-columns: 1fr 1fr;
  }
}

.poster-frame {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
}

.poster-frame img {
  border-radius: var(--radius-sm);
  width: 100%;
  object-fit: cover;
}

/* Section 5: "O MNE" (About Jiřina) */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 992px) {
  .about-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.about-image-wrapper {
  position: relative;
  text-align: center;
}

.about-photo {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  max-width: 440px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  border: 6px solid #ffffff;
}

.code-of-ethics-card {
  margin-top: var(--space-6);
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  position: relative;
}

.code-of-ethics-card h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.code-of-ethics-card p {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.code-of-ethics-card .arrow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

/* Section 6: FAQ Accordion */
.accordion-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-header {
  width: 100%;
  padding: 20px 32px;
  background: none;
  border: none;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-header i {
  transition: transform 0.3s ease;
  font-size: 1.1rem;
  color: var(--accent-light);
}

.accordion-item.active {
  border-radius: var(--radius-md);
  background-color: var(--primary-dark);
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 32px;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 0 32px 24px 32px;
  transition: max-height 0.4s ease-in-out;
}

.accordion-content p {
  color: var(--text-light-muted);
  font-size: 0.98rem;
}

/* Contact & Form Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info-card {
  background-color: var(--bg-alt);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.14);
}

/* Honeypot Anti-Spam Field */
.hp-field {
  display: none !important;
}

/* Footer */
.footer {
  background-color: #1A5452;
  color: #ffffff;
  padding: var(--space-8) 0 var(--space-5);
  font-size: 0.92rem;
  border-top: 1px solid var(--border-dark);
}

.footer p,
.footer span,
.footer div,
.footer li,
.footer a,
.footer h4,
.footer strong,
.footer-bottom p {
  color: #ffffff !important;
  opacity: 1 !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer h4 {
  color: #ffffff !important;
  margin-bottom: 16px;
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 700;
}

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

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

.footer-links a {
  color: #ffffff !important;
  text-decoration: underline;
}

.footer-links a:hover {
  color: #ffffff !important;
  opacity: 0.8 !important;
}

.footer-bottom {
  text-align: center !important;
  padding: var(--space-5) 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  width: 100%;
  box-sizing: border-box;
}

.footer-bottom p {
  text-align: center !important;
  margin: 0 auto !important;
  display: block;
  width: 100%;
}

.footer-legal-links {
  margin-bottom: 12px !important;
  font-size: 0.92rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #ffffff !important;
  text-decoration: underline;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
  opacity: 0.75 !important;
}

.footer-legal-links .sep {
  opacity: 0.5;
}

/* Cookie Bar */
.cookie-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border-dark);
}

.cookie-bar.hidden {
  display: none;
}

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

.cookie-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.cookie-accept {
  background-color: var(--accent);
  color: #ffffff;
}

.cookie-reject {
  background-color: transparent;
  border: 1px solid var(--text-light-muted);
  color: var(--text-light);
}

.cookie-settings {
  background-color: var(--primary-light);
  color: var(--text-light);
}

/* Responsive Mobile Navigation */
@media (max-width: 991px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-main);
    flex-direction: column;
    padding: 24px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-item-dropdown {
    width: 100%;
    text-align: center;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background-color: var(--bg-alt);
    opacity: 1;
    visibility: visible;
    display: none;
    padding: 8px 0;
    margin-top: 8px;
    border-radius: var(--radius-sm);
    min-width: 100%;
  }
  .nav-item-dropdown:hover .dropdown-menu,
  .nav-item-dropdown.open .dropdown-menu {
    display: block;
  }
}

