/* === CSS RESET & BASE STYLES === */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #222;
  background: #FFF9F4;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
:root {
  --primary: #1A3A1A;
  --secondary: #D9B382;
  --accent: #FFFFFF;
  --dynamic1: #fe695e;
  --dynamic2: #44d8a4;
  --dynamic3: #ffd447;
  --dynamic4: #a761fe;
}
img {
  max-width: 100%;
  border-radius: 12px;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--dynamic1);
  outline: none;
}
ul, ol {
  list-style-type: none;
}
strong {
  font-weight: bold;
}

/* === FONT IMPORTS === */
@font-face {
  font-family: 'Playfair Display';
  font-weight: 700;
  src: local('Playfair Display Bold'), local('PlayfairDisplay-Bold'), url(https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap);
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@700&display=swap');

/* === TYPOGRAPHY & HEADINGS === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-wrap: balance;
  font-weight: 700;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  line-height: 1.13;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--dynamic1);
}
.subheadline {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  background: var(--dynamic3);
  padding: 12px 24px;
  border-radius: 20px 8px 20px 8px;
  display: inline-block;
  box-shadow: 0 2px 12px 0 rgba(254, 105, 94, 0.16);
}
p {
  margin-bottom: 16px;
}

/* === CONTAINER AND LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.text-section {
  margin-bottom: 16px;
  padding-left: 0;
}

/* === SECTIONS & SPACING === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 4px 32px 0 rgba(67, 216, 164, 0.04), 0 2px 16px 0 rgba(254, 105, 94, 0.08);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.3s;
}
section:hover {
  box-shadow: 0 8px 48px 0 rgba(67, 216, 164, 0.10), 0 4px 24px 0 rgba(254, 105, 94, 0.14);
}

/* === HEADER === */
header {
  background: linear-gradient(90deg, var(--dynamic3) 45%, var(--dynamic2) 100%);
  box-shadow: 0 4px 32px 0 rgba(26, 58, 26, 0.08);
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 20px;
  transition: background 0.18s, color 0.16s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--dynamic1);
  color: #fff;
}
header img[alt="Gurmánské Stopy"] {
  height: 44px;
  margin-right: 20px;
  border-radius: 12px 24px 12px 24px;
  background: #fff;
}
.btn-primary {
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 30px 12px 30px 12px;
  padding: 14px 34px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 4px 20px 0 rgba(254, 105, 94, 0.10);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
  position: relative;
  margin-left: 12px;
  margin-right: 8px;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--dynamic1);
  box-shadow: 0 6px 30px 0 rgba(67, 216, 164, 0.16);
  color: var(--accent);
  transform: translateY(-2px) scale(1.04);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: var(--dynamic1);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  padding: 8px 12px;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.18s, transform 0.12s;
  z-index: 1002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--dynamic4);
  transform: rotate(6deg) scale(1.08);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  background: #fff;
  z-index: 1005;
  box-shadow: 0 4px 32px 0 rgba(26,58,26,0.22);
  transform: translateX(110vw);
  transition: transform 0.36s cubic-bezier(.86,.01,.54,1.05);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 40px 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--dynamic2);
  border: none;
  color: var(--primary);
  border-radius: 50%;
  font-size: 2rem;
  margin: 18px 0 18px 18px;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--dynamic1);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 38px;
  width: 100%;
  align-items: flex-start;
  padding-left: 36px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  padding: 12px 18px;
  border-radius: 22px;
  transition: background 0.16s, color 0.16s;
  min-width: 66vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--dynamic3);
  color: var(--dynamic4);
}

@media (max-width: 1020px) {
  header .container {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 12px;
  }
  .btn-primary {
    font-size: 1rem;
    padding: 12px 28px;
    margin-left: 0;
    margin-top: 6px;
  }
}
@media (max-width: 870px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
}
@media (max-width: 860px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 861px) {
  .mobile-menu,
  .mobile-menu-close {
    display: none!important;
  }
}
@media (max-width: 400px) {
  .mobile-nav {
    padding-left: 6vw;
  }
}
/* === CARD, FEATURE GRID, LISTS === */
.feature-grid,
.content-grid,
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  margin-top: 10px;
  margin-bottom: 10px;
}
.feature-grid li,
.card {
  flex: 1 1 220px;
  background: var(--dynamic2);
  border-radius: 22px 10px 22px 10px;
  box-shadow: 0 4px 20px 0 rgba(26,58,26,0.08);
  padding: 24px 22px 22px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 250px;
  max-width: 360px;
  position: relative;
  transition: box-shadow 0.27s, transform 0.20s;
  border: 2px solid var(--accent);
  z-index: 1;
  overflow: hidden;
  animation: card-bounce-in 0.55s cubic-bezier(.24,.85,.68,1.25);
}
.feature-grid li img {
  width: 54px;
  height: 54px;
  margin-bottom: 5px;
  background: var(--accent);
  border-radius: 50%;
  border: 2.5px solid var(--dynamic1);
  padding: 7px;
  box-shadow: 0 3px 16px 0 rgba(254, 105, 94, 0.15);
}
.feature-grid li h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}
.card:hover, .feature-grid li:hover {
  transform: translateY(-4px) scale(1.034);
  box-shadow: 0 10px 40px rgba(255,212,71,0.10), 0 8px 30px rgba(254,105,94,0.14);
}

@keyframes card-bounce-in {
  0% { opacity: 0; transform: translateY(30px) scale(0.94); }
  70% { opacity: 1; transform: translateY(-10px) scale(1.05); }
  100% { opacity: 1; transform: none; }
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--dynamic3);
  color: #222;
  border-radius: 20px 32px 20px 14px;
  padding: 20px 30px 26px 28px;
  margin-bottom: 20px;
  box-shadow: 0 3px 18px 0 rgba(26,58,26,0.09);
  font-family: 'Montserrat', sans-serif;
  transition: box-shadow 0.22s, transform 0.14s;
  border: 1.5px solid var(--dynamic1);
}
.testimonial-card p {
  font-size: 1.15rem;
  color: #1a1a1a;
  margin-right: 12px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 26px 0 rgba(254,105,94,0.11);
  transform: scale(1.02);
  border-color: var(--primary);
}
.testimonial-card span {
  font-size: 0.98rem;
  color: var(--dynamic4);
  margin-top: 8px;
}

/* === LISTS WITH ICONS === */
.text-section ul li, ul li {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 8px;
  background: none;
  transition: color 0.17s;
}
.text-section ul li img {
  width: 33px;
  height: 33px;
  margin-bottom: 0;
  background: var(--dynamic2);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--dynamic1);
  object-fit: contain;
}
.text-section ul {
  margin-bottom: 12px;
  padding-left: 0;
}
ul li strong {
  color: var(--primary);
}

/* === FLEXBOX PATTERNS (MANDATORY) === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: #fff;
  margin-top: 80px;
  padding: 40px 0 0 0;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -2px 32px 0 rgba(254,105,94,0.10);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-bottom: 22px;
}
footer .content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 42px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--secondary);
  font-size: 1.04rem;
  border-radius: 8px;
  padding: 7px 6px;
  transition: background 0.13s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--dynamic2);
  color: var(--primary);
}
footer .text-section p {
  color: var(--accent);
  font-size: 1rem;
}
footer img[alt="Gurmánské Stopy"] {
  height: 40px;
  border-radius: 8px 20px 8px 20px;
  background: #fff;
}

/* === BUTTONS and LINKS === */
button, .btn-primary {
  font-family: 'Montserrat', sans-serif;
  transition: background 0.17s, color 0.16s, box-shadow 0.16s, transform 0.14s;
}
button:focus, .btn-primary:focus {
  outline: 2.5px solid var(--dynamic4);
  outline-offset: 2px;
}

/* === ANIMATIONS & MICRO INTERACTIONS === */
.btn-primary:active {
  transform: scale(0.97);
}
.card:active, .feature-grid li:active {
  transform: scale(0.98);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 {
    font-size: 1.45rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 13px;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  section, .section {
    padding: 28px 6px;
    margin-bottom: 34px;
    border-radius: 18px;
  }
  .feature-grid,
  .content-grid,
  .card-container,
  .card-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 4px;
  }
  .feature-grid li, .card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    padding: 18px 10px 18px 13px;
    border-radius: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 17px 10px 20px 12px;
    border-radius: 16px;
  }
}
@media (max-width: 490px) {
  .btn-primary {
    font-size: 0.97rem;
    padding: 11px 18px;
  }
  .subheadline {
    font-size: 0.95rem;
    padding: 10px 10px;
  }
}

/* === COOKIE BANNER AND COOKIE MODAL === */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 9998;
  background: var(--dynamic1);
  color: #fff;
  border-radius: 30px 14px 30px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 28px 20px 24px;
  box-shadow: 0 8px 44px 0 rgba(254, 105, 94, 0.18);
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  opacity: 0;
  transform: translateY(200px);
  pointer-events: none;
  transition: opacity 0.28s, transform 0.29s;
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  font-size: 0.97rem;
  border-radius: 20px;
  border: none;
  margin-left: 0;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 rgba(255,255,255,0.13);
  transition: color 0.19s, background 0.16s, transform 0.14s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--dynamic4);
  color: var(--dynamic3);
  outline: none;
}
.cookie-banner .cookie-settings-btn {
  background: var(--dynamic2);
  color: var(--primary);
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--dynamic3);
  color: var(--dynamic1);
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    left: 6px;
    right: 6px;
    padding: 15px 12px;
    font-size: 0.96rem;
  }
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 10012;
  background: rgba(30,30,30,0.53);
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  max-width: 370px;
  min-width: 230px;
  border-radius: 28px 9px 28px 9px;
  padding: 36px 28px 28px 28px;
  box-shadow: 0 6px 40px 0 rgba(254, 105, 94, 0.19);
  font-family: 'Montserrat', sans-serif;
  color: #222;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal h3 {
  color: var(--dynamic1);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.cookie-modal .cookie-category label {
  font-size: 0.99rem;
  color: var(--primary);
}
.cookie-modal .toggle-switch {
  width: 38px;
  height: 22px;
  background: var(--dynamic3);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .toggle-slider {
  position: absolute;
  top: 3px; left: 4px;
  width: 16px; height: 16px;
  background: var(--dynamic4);
  border-radius: 50%;
  transition: left 0.18s, background 0.15s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  left: 18px;
  background: var(--dynamic1);
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 1.34rem;
  background: transparent;
  border: none;
  color: var(--dynamic2);
  cursor: pointer;
  border-radius: 50%;
  padding: 2px 7px;
  transition: color 0.14s, background 0.16s;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  color: var(--dynamic1);
  background: var(--dynamic3);
}

/* === SCROLLBAR (playful) === */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-thumb {
  background: var(--dynamic3);
  border-radius: 12px;
}
::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 16px;
}

/* === COLORFUL DECORATIVE BUBBLES (playful) === */
section:before, section:after {
  content: '';
  display: block;
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
section:before {
  width: 52px;
  height: 52px;
  top: -19px;
  left: -12px;
  background: var(--dynamic4);
  opacity: 0.08;
}
section:after {
  width: 36px;
  height: 36px;
  bottom: -14px;
  right: -4px;
  background: var(--dynamic2);
  opacity: 0.12;
}

/* === FUN FONTS and ENERGETIC FEEL for Playful Dynamic === */
h1, h2, h3 {
  font-family: 'Playfair Display', cursive, serif;
  font-weight: 700;
}
p, a, li, button, .btn-primary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

/* === 404 / Thank-you special styling === */
.text-section h1, .text-section h2, .text-section h3 {
  text-align: center;
  width: 100%;
  display: block;
}
.text-section {
  align-items: center;
  display: flex;
  flex-direction: column;
}

/* === HIGH CONTRAST FOR TESTIMONIALS & REVIEWS === */
.testimonial-card {
  background: var(--dynamic3);
  color: #222 !important;
}

/* === Z-INDEX CONTROL === */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 1000;
}

/* === UTILITIES === */
.hide-desktop {
  display: none;
}
@media (max-width: 768px) {
  .hide-desktop {
    display: block;
  }
}
.hide-mobile {
  display: block;
}
@media (max-width: 860px) {
  .hide-mobile {
    display: none;
  }
}

/* === FOCUS RING FOR ACCESSIBILITY === */
:focus {
  outline: 2.5px solid var(--dynamic1);
  outline-offset: 2px;
}

/* === PRINT STYLES (RESET) === */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section { box-shadow: none !important; }
}
