/* ==== CSS RESET & NORMALIZATION ==== */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FEFAED;
  color: #22315C;
}
ol,ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}
:focus {
  outline: 2px solid #E77825;
  outline-offset: 2px;
}

/* ==== RETRO COLOR PALETTE (with brand integration) ==== */
:root {
  --primary: #22315C; /* Brand Primary */
  --secondary: #FFF8EA; /* Contrast retro background */
  --accent: #DF9640; /* Retro accent orange */
  --teal-retro: #228272; /* Brand accent - softened */
  --cream-retro: #FEFAED; /* Vintage cream background */
  --border-retro: #E4D0A7; /* Muted retro border */
  --red-retro: #B85545; /* Retro red for warnings */
  --yellow-retro: #EECB60; /* Retro yellow for highlights */
  --shadow-retro: 0 3px 16px 0 rgba(68,36,0,0.09);
  --card-bg: #FFF6E0;
}

/* ==== TYPOGRAPHY ==== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Roboto:wght@400;500;700&display=swap');
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 18px;
  background-color: var(--cream-retro);
  color: var(--primary);
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: 2rem;  line-height: 1.18; margin-bottom: 16px;}
h3 { font-size: 1.375rem; line-height: 1.25; margin-bottom: 8px;}
h4 { font-size: 1.125rem; margin-bottom: 8px; }
p {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--primary);
}
.subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--teal-retro);
  letter-spacing: 0.2px;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
  color: var(--primary);
}
em {
  font-style: italic;
}

/* ==== LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== FLEXBOX REPEATABLE PATTERNS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--shadow-retro);
  border: 1.5px solid var(--border-retro);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
}
.content-grid, .feature-grid, .news-list, .services-list, .partner-grid, .footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonials-grid, .partner-testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  border-radius: 14px;
  border: 2px dotted var(--border-retro);
  padding: 20px 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(34,49,92,0.10);
  min-width: 260px;
  flex: 1 1 260px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* === Misc Content Specific Blocks === */
.confirmation-block {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--shadow-retro);
  border: 1.5px solid var(--border-retro);
  text-align: center;
  padding: 40px 24px;
  margin: 0 auto;
  max-width: 520px;
}
.legal-text ul {
  padding-left: 22px;
  margin-bottom: 1.5em;
}
.legal-text ul li {
  list-style: disc inside;
  font-size: 1rem;
  margin-bottom: 8px;
}
.text-section ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==== HEADER/BANNER/LOGO ==== */
header {
  background: var(--secondary);
  border-bottom: 4px solid var(--border-retro);
  margin-bottom: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 3px 10px 0 rgba(142,109,22,0.05);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  position: relative;
}
.logo img {
  height: 44px;
  width: auto;
  animation: logo-float 2s 1 cubic-bezier(.76,0,.24,1);
}
@keyframes logo-float {
  from { transform: translateY(-22px) scale(0.98); opacity:0.2; }
  to   { transform: translateY(0) scale(1); opacity:1; }
}
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  border-radius: 7px;
  padding: 4px 14px;
  transition: background 0.18s, color 0.15s;
}
nav a:hover, nav a.active {
  background: var(--accent);
  color: #fff;
}
/* CTA Button */
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  background: var(--teal-retro);
  font-size: 1.13rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 13px 32px;
  border: none;
  box-shadow: 0 4px 20px 0 rgba(34,49,92,0.12);
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  cursor: pointer;
  margin-left: 10px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 8px 24px 0 rgba(223,150,64,0.09);
}
/* ===== Mobile Burger Menu ===== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  color: var(--primary);
  background: var(--yellow-retro);
  border-radius: 10px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border: 2px solid var(--border-retro);
  margin-left: 18px;
  position: relative;
  z-index: 1201;
  transition: background 0.12s, box-shadow 0.13s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px 0 rgba(34,49,92,0.16);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--cream-retro);
  box-shadow: 0 12px 48px 0 rgba(68,36,0,0.11);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.54,.06,.39,.97);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 54px 24px 22px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 1.9rem;
  position: absolute;
  top: 16px;
  right: 24px;
  background: var(--yellow-retro);
  color: var(--primary);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--border-retro);
  cursor: pointer;
  z-index: 1202;
  transition: background 0.11s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: #fff;
}
.mobile-nav {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  color: var(--primary);
  padding: 14px 20px;
  border-radius: 7px;
  transition: background 0.17s, color 0.15s;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}

/* Hide nav and .btn-primary on mobile, show burger */
@media (max-width: 1000px) {
  header nav,
  header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 1001px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav,
  header .btn-primary {
    display: flex;
  }
}

/* ==== FOOTER ==== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 38px 0 28px 0;
  margin-top: 24px;
  font-size: 1rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
footer .footer-grid > * {
  min-width: 210px;
}
footer nav {
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  gap: 7px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.90;
  transition: opacity 0.15s, background 0.18s;
  margin-bottom: 3px;
  padding: 4px 10px;
  border-radius: 7px;
}
footer nav a:hover {
  opacity: 1;
  background: var(--accent);
}
footer img {
  margin-bottom: 14px;
}
footer a {
  color: #fff;
  transition: color 0.13s;
}
footer a:hover { color: var(--accent); }

/* ==== HERO, SECTIONS, and CARDS ==== */
section {
  background: transparent;
  box-shadow: none;
}
section:first-of-type {
  margin-top: 0px;
}
.card, .confirmation-block {
  border: 2.5px solid var(--border-retro);
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(34,49,92,0.08);
  transition: transform 0.20s, box-shadow 0.17s;
}
.card:hover, .confirmation-block:hover {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 12px 32px 0 rgba(34,49,92,0.13);
}
.feature-grid > div, .partner-grid > div, .services-list > div {
  background: #fff9ea;
  border: 2px solid var(--border-retro);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(34,49,92,0.07);
  padding: 26px 18px 18px 18px;
  min-width: 270px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.feature-grid > div:hover,.partner-grid > div:hover,.services-list > div:hover {
  box-shadow: 0 10px 32px -5px rgba(34,49,92,0.10);
  transform: scale(1.020); 
}
.feature-grid img, .partner-grid img, .services-list img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  filter: sepia(0.25) hue-rotate(15deg) contrast(1.04) saturate(1.3);
}

/* ===== LISTS ==== */
ul {
  margin-bottom: 18px;
  padding-left: 20px;
}
ul li {
  font-size: 1rem;
  color: var(--primary);
  position: relative;
  margin-bottom: 9px;
}
ul li::before {
  content: '\25CF';
  color: var(--accent);
  font-size: 1rem;
  display:inline-block;
  width: 1.3em;
  margin-left: -1.3em;
}

/* ===== NEWS & ARTICLE CARDS ==== */
.news-list, .services-list {
  gap: 24px;
}
.news-list article {
  background: #FFF9EA;
  border: 1.7px solid var(--border-retro);
  border-radius: 11px;
  padding: 22px 18px;
  min-width: 230px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(34,49,92,0.07);
  transition: box-shadow 0.17s, transform 0.16s;
}
.news-list article:hover {
  background: #FFECCA;
  box-shadow: 0 8px 24px 0 rgba(223,150,64,0.09);
  transform: scale(1.013);
}
.news-list article h3 {
  margin-bottom: 5px;
  font-size: 1.1rem;
  color: var(--primary);
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  border: 2.5px solid var(--accent);
  background: #fff;
  color: #121212;
  font-size: 1.07rem;
  font-style: italic;
  box-shadow: 0 4px 20px 0 rgba(34,49,92,0.12);
  margin-bottom: 20px;
  gap: 5px;
}
.testimonial-card strong {
  font-style: normal;
  font-size: 1rem;
  color: var(--primary);
  margin-top: 4px;
}

/* ==== ICONS-inline ==== */
img[alt^="Telefon"], img[alt^="E-mail"], img[alt^="Adresa"], img[alt^="Provozní doba"], img[alt^="Email"] {
  width: 18px;
  margin-right: 7px;
  display:inline;
  vertical-align:middle;
}

/* ==== RESPONSIVE BREAKPOINTS - MOBILE-FIRST ==== */
@media (max-width: 768px) {
  .container {
    padding-left: 6px;
    padding-right: 6px;
    width: 98vw;
  }
  section {
    padding: 30px 5px;
    margin-bottom: 40px;
  }
  .content-grid, .feature-grid, .news-list, .services-list, .partner-grid, .footer-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section, .testimonials-grid, .partner-testimonials {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-card, .feature-grid > div, .partner-grid > div, .services-list > div { min-width: 170px; }
  header .container, footer .footer-grid { flex-direction: column; gap: 12px; align-items: stretch;}
  .confirmation-block { padding: 26px 10px; }
}

/* ===== RETRO EFFECTS, PATTERNS, BORDERS ==== */
section, .card, .card-container, .feature-grid > div, .services-list > div, .news-list article, .testimonial-card {
  border-radius: 14px;
}
main section {
  border-top: 6px double var(--border-retro);
  border-bottom: 2.5px dashed var(--border-retro);
  background: repeating-linear-gradient(135deg, #FEFAED 0px, #FFF8EA 24px, #F7E2B3 48px, #FEFAED 70px);
}
main section:nth-of-type(even) {
  background: repeating-linear-gradient(45deg, #FFF8EA 0px, #FEFAED 60px, #FFFCF2 120px, #FFF8EA 180px);
}

/* ==== ANIMATIONS & TRANSITIONS ==== */
.btn-primary, nav a, .card, .feature-grid > div, .services-list > div, .news-list article, .testimonial-card, .mobile-nav a, .mobile-menu-toggle {
  transition: all 0.18s cubic-bezier(.57,.05,.37,.99);
}

/* === VISUAL EASTER EGG: VINTAGE SHADOW RING === */
.card, .confirmation-block, .feature-grid > div, .news-list article, .services-list > div, .testimonial-card {
  box-shadow: 0 4px 22px 0 rgba(191,154,77,0.11), 0 1.5px 0 0 #fff inset;
}

/* === COOKIES CONSENT BANNER & MODAL ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--yellow-retro);
  color: var(--primary);
  border-top: 3px solid var(--border-retro);
  box-shadow: 0 -2px 20px 0 rgba(191,154,77,0.14);
  display: flex;
  align-items: center;
  flex-wrap:wrap;
  justify-content: space-between;
  padding: 22px 34px;
  gap: 16px;
  z-index: 1500;
  font-size: 1.04rem;
  animation: cookieBannerAppear 0.42s cubic-bezier(.36,1.69,.53,1.03);
}
@keyframes cookieBannerAppear {
  from { transform: translateY(120px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner p { flex: 2 1 220px; margin-bottom:0; }
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}
.cookie-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  margin: 0 4px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(192,142,46,0.09);
  transition: background 0.16s, color 0.16s, box-shadow 0.12s;
}
.cookie-btn.accept {
  background: var(--teal-retro);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: var(--accent);
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  border: 1.5px solid var(--red-retro);
  color: var(--red-retro);
}
.cookie-btn.reject:hover {
  background: var(--red-retro);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.cookie-btn.settings:hover {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; gap: 12px; align-items: flex-start; padding: 18px 9px;}
  .cookie-banner p { font-size: 0.98rem;}
}

/* --- Cookie Modal --- */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  min-width: 310px;
  max-width: 95vw;
  background: #FFFAE5;
  color: var(--primary);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 0 44px 0 rgba(191,154,77,0.21);
  border: 3px solid var(--border-retro);
  z-index: 1550;
  padding: 32px 28px 26px 28px;
  display: none;
  animation: cookieModalAppear 0.29s cubic-bezier(.44,1.42,.81,.94);
}
.cookie-modal.open {
  display: block;
  transform: translateX(-50%) translateY(0);
}
@keyframes cookieModalAppear {
  from { transform: translateX(-50%) translateY(100px); opacity:0; }
  to { transform: translateX(-50%) translateY(0); opacity:1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category {
  border-bottom: 1px dashed var(--border-retro);
  padding-bottom: 9px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-modal .cookie-category:last-child { border:none; margin-bottom:0; }
.cookie-modal label {
  padding-right: 8px;
  font-weight: 500;
  font-size: 1rem;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  border: 1.3px solid var(--accent);
  border-radius: 22px;
  transition: background 0.2s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--accent);
}
.cookie-modal .slider:before {
  position: absolute;
  content: '';
  height: 17px;
  width: 17px;
  left: 2px;
  bottom: 2px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
  background: #fff;
}
.cookie-modal .modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

/* --- Hide native scroll on mobile menu/modal overlay --- */
body.modal-open, body.mobile-menu-open {
  overflow: hidden;
}

/* ==== MICRO-INTERACTIONS ==== */
nav a, .btn-primary, .mobile-nav a, .cookie-btn, .feature-grid > div, .services-list > div, .news-list article, .testimonial-card {
  cursor: pointer;
}
nav a:focus, .btn-primary:focus, .mobile-nav a:focus, .cookie-btn:focus {
  outline: 2.5px solid var(--teal-retro);
  outline-offset: 2px;
  background: var(--accent);
  color: #fff;
}

/* ===== VINTAGE/NOSTALGIC RETRO TOUCHES ==== */
h1, h2, h3 {
  text-shadow: 1.5px 1.5px 0 #e8d3b0, 0 2px 3px #fffbe7;
  letter-spacing: 0.6px;
}
.section-title, h1, h2 {
  border-bottom: 3px double var(--accent);
  display: inline-block;
  padding-bottom: 6px;
  font-family: 'Montserrat', Georgia, serif;
  text-transform: uppercase;
  background: linear-gradient(96deg, #F7E2B3 64%, #EECB60 88%);
  border-radius: 7px 7px 0 0;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(223,150,64,0.04);
}

main {
  margin-bottom: 120px;
}

/* ==== UTILITIES ==== */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.hide        { display: none !important; }
.flex        { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mt-32 { margin-top: 32px; }

/* ==== END ==== */
