/* ===========================================================
   RESET & BASE
   ======================================================== */
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;
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #351229;
  line-height: 1.7;
  background: #FAF6F1;
  min-height: 100vh;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

a {
  color: #973165;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #218267;
  text-decoration: underline;
}

/* ===========================================================
   VINTAGE RETRO COLOR PALETTE + PATTERNS
   ======================================================== */
:root {
  --primary: #973165;
  --secondary: #F3F3F8;
  --accent: #218267;
  --cream: #FAF3E9;
  --yellow: #EAC36A;
  --brown: #76513E;
  --retro-green: #B3A96B;
  --retro-blue: #457ca3;
  --border-card: #DDD3C4;
  --shadow-card: 0 4px 20px 0 rgba(55, 23, 37, 0.09);
}

/* Fun dotted background for some sections */
.retro-bg {
  background-color: var(--cream);
  background-image: repeating-radial-gradient(circle at 0 0, #f8e9ce, #f8e9ce 1px, transparent 1px, transparent 30px);
}

/* ===========================================================
   TYPOGRAPHY – VINTAGE/RETRO FONTS
   ======================================================== */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.12;
  margin-bottom: 24px;
  text-shadow: 1px 2px 0 var(--yellow), 1px 3px var(--cream);
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 2px dashed var(--retro-green);
  letter-spacing: 0.05em;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
h4 {
  font-size: 1.1rem;
}
.subtitle, .section .subtitle {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.22rem;
  color: var(--brown);
  margin-bottom: 20px;
  line-height: 1.45;
}
p, li, address {
  font-family: 'Roboto', Arial, sans-serif;
  color: #482a3f;
  font-size: 1rem;
  margin-bottom: 12px;
}
strong {
  color: var(--accent);
  font-weight: 700;
}

blockquote {
  font-style: italic;
  font-size: 1.11rem;
  color: #63485a;
  margin-bottom: 12px;
  position: relative;
  padding-left: 1.3em;
}
blockquote:before {
  content: '“';
  color: var(--yellow);
  font-size: 2.5em;
  position: absolute;
  left: 0;
  top: -0.3em;
  line-height: 1;
}

/* ===========================================================
   CONTAINER & SECTIONS (mandatory spacing)
   ======================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--cream);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.text-section {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--secondary);
  border: 2px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 8px 26px 0 rgba(55, 23, 37, 0.13);
  transform: translateY(-2px) scale(1.03);
  z-index: 1;
}

.content-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;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFF9F5;
  border: 2px solid var(--yellow);
  box-shadow: 2px 7px 30px 0 rgba(168, 133, 61, 0.07);
  border-radius: 14px;
  padding: 20px;
  min-width: 270px;
  max-width: 340px;
  margin-bottom: 20px;
  flex-direction: column;
  filter: sepia(0.13);
}
.testimonial-card blockquote {
  color: #4a3d27;
}
.testimonial-card strong {
  color: var(--primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}

/* Tables (for ceník page) */
table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFF9F5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
table th, table td {
  padding: 15px 10px;
  text-align: left;
  font-size: 1rem;
}
table th {
  background: var(--yellow);
  color: #614022;
  font-family: 'Montserrat', Arial, sans-serif;
}
table tr:nth-child(even){
  background: #F6E8D0;
}
table tr:nth-child(odd){
  background: #FFF9F5;
}
table td {
  color: #482a3f;
  font-family: 'Roboto', Arial, sans-serif;
}

/* Lists with vintage icons */
ul li, .content-wrapper ul li {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  font-size: 1rem;
}
ul li img {
  width: 28px;
  height: 28px;
  filter: sepia(0.25) contrast(1.1);
  margin-right: 4px;
}

/* ===========================================================
   HEADER & NAVIGATION
   ======================================================== */
header {
  background: var(--primary);
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 16px 0 rgba(55, 23, 37, 0.09);
  position: relative;
  z-index: 50;
}
header .container {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
header nav a {
  color: #fff7f3;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 0;
  transition: color 0.19s;
}
header nav a:hover,
header nav a:focus {
  color: var(--yellow);
}
header a.btn-primary {
  margin-left: 20px;
}

header img {
  height: 44px;
  width: auto;
  filter: sepia(0.06) contrast(1.03);
  margin-right: 12px;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--yellow);
  font-size: 2rem;
  border: none;
  margin-left: 12px;
  padding: 2px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.18s;
  z-index: 130;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: rgba(234, 195, 106, 0.14);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF6F0;
  box-shadow: 2px 0 40px 0 rgba(55,23,37, 0.07);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-110vw);
  transition: transform 0.36s cubic-bezier(0.5,1,0.94,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  align-self: flex-end;
  margin: 24px 28px 10px 0;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 0 0 36px;
  width: 80vw;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1.5px dotted var(--accent);
  width: 100%;
  min-width: 180px;
  transition: color 0.13s, background 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--accent);
  background: var(--yellow);
}

@media (max-width: 1024px) {
  header nav {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }
  header nav {
    flex-wrap: wrap;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    gap: 7px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header a.btn-primary {
    margin-left: 4px;
    font-size: 1rem;
    padding: 0.8em 1.3em;
  }
}

/* ===========================================================
   BUTTONS & LINKS
   ======================================================== */
.btn-primary {
  background: linear-gradient(90deg, var(--primary) 85%, var(--brown) 100%);
  color: #fff7f3;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  padding: 0.92em 2em;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 10px 0 rgba(72,42,63,0.09);
  margin-top: 10px;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.16s;
  position: relative;
  outline: none;
}
.btn-primary:after {
  content: '';
  position: absolute;
  right: 12px; top: 50%;
  width: 2.5em; height: 2.5em;
  border-radius: 100%;
  transform: translateY(-50%) scale(0.3);
  background: rgba(33, 130, 103,0.09);
  z-index: 0;
  pointer-events: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--yellow) 60%, var(--accent) 100%);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 22px 0 rgba(72,42,63,0.18);
}

/* Generic btn accent */
.btn-accent {
  background: var(--accent);
  color: #fff7f3;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85em 2em;
  border-radius: 30px;
  margin: 0 10px;
  cursor: pointer;
  transition: background 0.17s, color 0.18s, transform 0.13s;
  border: none;
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 28px;
  font-size: 1rem;
  padding: 0.8em 1.5em;
  transition: background 0.17s, color 0.18s, border 0.1s;
  margin: 0 8px;
  cursor: pointer;
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--primary);
  color: #fff7f3;
}

/* ===========================================================
   FOOTER
   ======================================================== */
footer {
  background: var(--primary);
  color: #fff7f3;
  font-size: 1rem;
  padding: 40px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
footer .footer-nav {
  gap: 18px;
  margin-bottom: 6px;
}
footer .footer-nav a {
  color: #fff7f3;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.13s;
}
footer .footer-nav a:hover,
footer .footer-nav a:focus {
  color: var(--yellow);
  text-decoration: underline;
}
footer a {
  color: #fee0f4;
  transition: color 0.14s;
}
footer a:hover, footer a:focus {
  color: var(--yellow);
}

@media (max-width: 520px) {
  footer .container {
    padding: 0 8px;
    font-size: 0.95rem;
  }
  footer .footer-nav {
    gap: 9px;
    flex-wrap: wrap;
  }
}

/* ===========================================================
   RETRO MICRO-DETAILS (PATTERNS, SHADOWS, EFFECTS)
   ======================================================== */
/* Example: subtle vertical stripes for background highlight */
.section, .testimonial-card, .card, .text-section {
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 20px, rgba(229,176,121,0.06) 20px, rgba(229,176,121,0.12) 90px);
}

/* Retro round borders for images/icons */
img, .testimonial-card img, .feature-item img {
  border-radius: 12px;
}

/* ===========================================================
   COOKIE CONSENT BANNER & MODAL
   ======================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffbed;
  border-top: 3px solid var(--yellow);
  box-shadow: 0 -2px 24px 0 rgba(156,95,40,0.07);
  z-index: 3000;
  padding: 18px 9vw 14px 9vw;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #56361a;
  animation: slideup-bounce 0.9s cubic-bezier(0.15,1.04,0.67,0.99);
}

@keyframes slideup-bounce {
  0% { transform: translateY(110%); opacity: 0; }
  80% { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(0); }
}

.cookie-banner .btn-primary,
.cookie-banner .btn-accent,
.cookie-banner .btn-outline {
  margin: 0 8px 0 0;
  font-size: 1rem;
  padding: 0.75em 1.4em;
}

.cookie-banner .btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}
.cookie-banner .btn-outline:hover {
  background: var(--accent);
  color: #fffbed;
}

.cookie-modal-overlay {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(60, 18, 40, 0.36);
  z-index: 4000;
  transition: background 0.18s;
  pointer-events: none;
  opacity: 0;
}
.cookie-modal-open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fffbed;
  border-radius: 24px 24px 0 0;
  padding: 38px 32px 22px 32px;
  min-width: 320px;
  max-width: 99vw;
  width: 440px;
  box-shadow: 0 -2px 44px 0 rgba(156,95,40,0.11);
  font-family: 'Roboto', Arial, sans-serif;
  color: #56361a;
  transform: translateY(100vh);
  transition: transform 0.35s cubic-bezier(0.29,1.13,0.73,1.02);
}
.cookie-modal-open .cookie-modal {
  transform: translateY(0);
}
.cookie-modal h2 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.45rem;
  margin: 0 0 14px 0;
  border: none;
}
.cookie-modal .cookie-category {
  padding: 12px 0 7px 0;
  border-bottom: 1px dotted var(--yellow);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.1rem;
}
.cookie-modal .category-label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
  cursor: pointer;
  appearance: none;
  width: 38px; height: 22px;
  background: var(--yellow);
  border-radius: 16px;
  position: relative;
  outline: none;
  transition: background 0.16s;
}
.cookie-modal .cookie-toggle:checked {
  background: var(--accent);
}
.cookie-modal .cookie-toggle:before {
  content: '';
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 17px; height: 16px;
  border-radius: 50%;
  background: #fffbed;
  box-shadow: 0 1px 2px 0 #eac36a55;
  transition: left 0.16s;
}
.cookie-modal .cookie-toggle:checked:before {
  left: 18px;
}
.cookie-modal .cookie-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
/* Cookie modal close */
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 17px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--accent);
}

/* Ensure full-width and no overlap on mobile */
@media (max-width: 768px) {
  .cookie-modal {
    min-width: 0;
    width: 95vw;
    padding: 28px 11vw 16px 11vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1rem;
    padding: 11px 4vw 10px 4vw;
  }
}

/* ===========================================================
   RESPONSIVE & FLEXBOX ONLY LAYOUTS
   ======================================================== */
@media (max-width: 1100px) {
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
}

@media (max-width: 900px) {
  .content-wrapper,
  .card-container,
  .content-grid {
    gap: 16px;
  }
  .section {
    padding: 30px 8px;
    margin-bottom: 40px;
  }
  .testimonial-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 4px;
  }
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .section {
    padding: 20px 4px;
    margin-bottom: 32px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  .text-section {
    padding: 0 0.5em;
    max-width: 100%;
    font-size: 1.05rem;
    gap: 11px;
  }
  .card {
    padding: 18px 10px;
    font-size: 0.99rem;
    margin-bottom: 14px;
  }
  h1 {font-size: 1.55rem;}
  h2 {font-size: 1.20rem;}
  h3 {font-size: 1rem;}
  .testimonial-card{
    min-width: 0;
    padding: 14px 6px;
    font-size: .99rem;
    gap: 6px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
  table th, table td {
    font-size: 0.99rem;
    padding: 9px 6px;
  }
}

/* Force spacing between all flex items (minimum 20px) */
.section > .container > .content-wrapper > *,
.section > .container > .content-wrapper > div,
.card-container > *, .content-grid > *, .feature-item > * {
  margin-bottom: 20px;
}

/* Remove last margin (for stacked layouts) */
.section > .container > .content-wrapper > *:last-child,
.card-container > *:last-child, .content-grid > *:last-child, .feature-item > *:last-child {
  margin-bottom: 0;
}


/* ===========================================================
   RETRO HOVER EFFECTS
   ======================================================== */
.card, .testimonial-card, .btn-primary, .btn-accent, .btn-outline {
  transition: box-shadow 0.18s, border-color 0.16s, background 0.18s, color .16s, transform 0.18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 9px 36px 0 rgba(165, 72, 105,0.18);
  border-color: var(--accent);
  transition: box-shadow 0.13s, border-color 0.13s;
  cursor: pointer;
}

/* Section shadow enhancement & some retro flare on scroll */
.section {
  transition: box-shadow 0.23s, background 0.24s;
}
.section:hover, .section:focus-within {
  box-shadow: 0 8px 26px 0 rgba(229,176,121,0.12);
  background: #f5eee6;
}


/* ===========================================================
   MISC/UTILITY & ACCESSIBILITY
   ======================================================== */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

:focus {
  outline: 2px dotted var(--yellow);
  outline-offset: 2px;
}
::-webkit-scrollbar { width: 9px; background: #f5eee6; }
::-webkit-scrollbar-thumb { background: var(--yellow); border-radius: 9px; }

/* ===========================================================
   DEMO: Hide cookie elements by default (to be toggled by JS)
   ======================================================== */
.cookie-banner, .cookie-modal-overlay { display: none; }

/* Add .active class via JS to enable */
.cookie-banner.active { display: flex !important; }
.cookie-modal-overlay.cookie-modal-open { display: flex !important; }

/* ===========================================================
   END OF CSS FILE
   ======================================================== */
