/*-------------------------------------------------------
  Chytrý Domov & Čas – Playful Dynamic Flexbox CSS
  Style: playful_dynamic (bright colors, fun fonts, energetic, animated)
  Layout: FLEXBOX ONLY! No grid or columns anywhere. Responsive, mobile-first
  Brand: Montserrat(Display), Open Sans(Body); Colors: #375C5C, #F3F5EE, #B38235, #8C5D00
-------------------------------------------------------*/
/* ======= RESET & NORMALIZE ======= */
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,
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 {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F3F5EE;
  color: #243230;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-smooth: antialiased;
  -webkit-font-smoothing: antialiased;
  background-repeat: no-repeat;
  transition: background 0.3s;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #375C5C;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #B38235;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}
button, .cta {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  cursor: pointer;
  outline: none;
  border: none;
  background: none;
  padding: 0;
}
*:focus {
  outline: 2px solid #B38235;
  outline-offset: 2px;
}

/* ======= FONT IMPORTS ======= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

/* ===== BRAND COLOR PALETTE ===== */
:root {
  --c-primary: #375C5C;
  --c-bg: #F3F5EE; /* brand secondary is used as background */
  --c-light: #FFFFFF;
  --c-content: #243230;
  --c-accent: #B38235; /* fun accent */
  --c-accent-dark: #8C5D00;
  --c-fun-blue: #20B2E2; /* playful accent: sky blue */
  --c-fun-pink: #FC669A; /* playful accent: pink */
  --c-fun-yellow: #FFE14D; /* playful accent: yellow */
  --gap-section: 60px;
  --gap-between: 24px;
  --radius-xl: 32px;
  --radius-l: 20px;
  --radius-m: 12px;
  --radius-s: 8px;
  --shadow-card: 0 6px 22px 0 rgba(51, 89, 109, 0.10);
  --transition-main: all 0.25s cubic-bezier(0.5, 1.2, 0.8, 1);
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4, .cta, .main-nav a, .mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
}
h1 {
  font-size: 2.25rem;
  color: var(--c-primary);
  margin-bottom: 24px;
  text-shadow: 1px 2px 0 #FFE14D;
  line-height: 1.2;
}
h2 {
  font-size: 1.6rem;
  color: var(--c-accent-dark);
  margin-bottom: 16px;
  line-height: 1.25;
}
h3 {
  font-size: 1.20rem;
  color: var(--c-primary);
  margin-bottom: 8px;
}
h4 {
  font-size: 1.10rem;
}
.subheadline {
  font-size: 1.1rem;
  color: #20B2E2;
  margin-bottom: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
p, ul li {
  font-size: 1rem;
  color: var(--c-content);
}
strong {
  font-weight: 700;
}

/* ======= CONTAINERS & SECTIONS ======= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--c-light);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-m);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  flex: 1 1 265px;
  transition: transform .18s cubic-bezier(.6,.05,.5,1), 
              box-shadow .2s;
}
.card:hover {
  transform: translateY(-6px) scale(1.03) rotate(-1.5deg);
  box-shadow: 0 12px 26px 0 rgba(51, 89, 109, 0.16);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--c-light);
  border-radius: var(--radius-l);
  box-shadow: 0 4px 20px 0 rgba(51, 89, 109, 0.08);
  padding: 20px;
  min-width: 260px;
  max-width: 550px;
  margin-bottom: 20px;
  border-left: 6px solid var(--c-fun-pink);
  margin-top: 20px;
  animation: fadein-card 0.55s var(--transition-main) backwards;
}
.testimonial-card span {
  color: var(--c-accent-dark);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 4px;
  letter-spacing: 0.01em;
}
@keyframes fadein-card {
  from { opacity: 0; transform: translateX(-28px) scale(0.95); }
  to   { opacity: 1; transform: none; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--c-fun-yellow);
  padding: 18px 20px 15px 20px;
  border-radius: var(--radius-m);
  margin-bottom: 20px;
}

/* ======= HERO SECTION ======= */
.hero {
  padding: 44px 0 20px 0;
  background: linear-gradient(91deg, #FC669A 0%, #FFE14D 74%, #20B2E2 100%);
  background-size: 350% 350%;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  min-height: 320px;
  position: relative;
  z-index: 2;
  animation: hero-gradient-move 18s ease-in-out infinite alternate;
}
@keyframes hero-gradient-move {
  0% { background-position: 0% 80%; }
  100% { background-position: 70% 20%; }
}
.hero h1 {
  color: #fff;
  text-shadow: 1px 2px 10px #B3823580, 2px 8px 0 #FFE14D;
  font-size: 2.5rem;
}
.hero .subheadline {
  color: #fffbe7;
}

/* ======= NAVIGATION ======= */
header {
  background: var(--c-light);
  position: relative;
  z-index: 10;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0 12px 0;
  justify-content: flex-start;
  width: 100%;
}
.main-nav img {
  height: 48px;
  width: auto;
  margin-right: 22px;
  border-radius: var(--radius-m);
  box-shadow: 0 2px 8px #FFE14D88;
}
.main-nav a {
  color: var(--c-primary);
  position: relative;
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 10px;
  margin-left: 2px;
  border-radius: var(--radius-s);
  transition: color .14s, background .15s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #FC669A;
  background: #F3F5EE;
  text-decoration: none;
  box-shadow: 0 4px 24px -18px #B38235;
}
button.mobile-menu-toggle {
  display: none; /* hidden on desktop */
  position: absolute;
  right: 28px;
  top: 18px;
  width: 45px;
  height: 45px;
  font-size: 2rem;
  color: #FC669A;
  background: var(--c-light);
  border-radius: 50%;
  border: none;
  transition: background .2s, color .2s;
  z-index: 102;
}
button.mobile-menu-toggle:active {
  background: #FFE14D;
  color: #375C5C;
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  background: linear-gradient(135deg, #FC669A 0%, #20B2E2 100%);
  color: #fff;
  top: 0; left: 0; height: 100vh; width: 100vw;
  padding: 32px 24px 24px 24px;
  z-index: 9998;
  transform: translateX(-105%);
  transition: var(--transition-main);
  box-shadow: 8px 0 64px 0 #375C5C30;
  opacity: 0; pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0%);
  opacity: 1; pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: #fff1;
  border: none;
  padding: 6px 13px;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  border-radius: 16px;
  margin-bottom: 20px;
  transition: background .2s;
}
.mobile-menu-close:hover {
  background: #fff3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: #fff;
  font-weight: 900;
  border-radius: var(--radius-s);
  padding: 8px 10px 8px 6px;
  letter-spacing: .05em;
  transition: background .12s, color .12s;
  background: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #FFE14D;
  color: #B38235;
}

@media (max-width: 980px) {
  .container {
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .main-nav img {
    margin-right: 10px;
    height: 38px;
  }
}
@media (max-width: 900px) {
  .main-nav a {
    font-size: .97rem;
    padding-left: 6px;
    padding-right: 6px;
  }
  .main-nav img {
    height: 34px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
  button.mobile-menu-toggle {
    display: block;
  }
  .container {
    padding: 0 10px;
  }
}
@media (max-width: 400px) {
  .container {
    padding-left: 4px; padding-right: 4px;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
}

/* ======= FLEX LAYOUTS FOR CONTENT ======= */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 10px;
}
.feature-grid li {
  background: #F3F5EE;
  border-radius: var(--radius-l);
  padding: 22px 18px 15px 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 215px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .18s, box-shadow .18s;
  border-left: 5px solid #20B2E2;
}
.feature-grid li img {
  height: 34px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px #20B2E233;
  background: #FC669A14;
  padding: 2px;
}
.feature-grid li:hover {
  transform: translateY(-7px) scale(1.02) rotate(-0.8deg);
  box-shadow: 0 8px 40px #20B2E222;
}

.article-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.article-grid article {
  background: var(--c-light);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  flex: 1 1 300px;
  min-width: 250px;
  padding: 22px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .16s, transform .16s;
  margin-bottom: 20px;
  border-bottom: 4px solid #FC669A;
}
.article-grid article:hover {
  box-shadow: 0 10px 44px 0 #FC669A30;
  transform: translateY(-3px) scale(1.03);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 14px;
}

/* ======= CTA BUTTONS ======= */
.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(98deg, #20B2E2 60%, #B38235 160%);
  border-radius: 9999px;
  padding: 14px 38px 13px 32px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 3px 18px 0 #20B2E226;
  border: none;
  outline: none;
  letter-spacing: 0.03em;
  text-shadow: 0px 2px 8px #FC669A33;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background .23s, box-shadow .16s, transform .12s;
  z-index: 1;
}
.cta.primary:hover, .cta.primary:active {
  background: linear-gradient(96deg, #FC669A 30%, #375C5C 120%);
  color: #fff;
  box-shadow: 0 9px 40px 0 #FC669A22;
  transform: scale(1.04) rotate(-2deg);
}
.cta:focus {
  box-shadow: 0 0 0 3px #FFE14D99;
}

/* ======= SPACING & LAYOUT (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; }

/* ENSURE NO OVERLAP & Z-INDEX */
[role="main"], main { z-index: 1; position: relative; }

/* ======= FOOTER ======= */
footer {
  background: linear-gradient(88deg, #375C5C 70%, #FC669A 180%);
  color: #fff;
  padding: 32px 0 30px 0;
  margin-top: 35px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -3px 40px #20B2E266;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fffbe9;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 3px 5px;
  border-radius: 5px;
  text-shadow: 1px 1px 0 #20B2E277;
  transition: background .14s, color .14s;
}
.footer-nav a:hover { background: #FFE14D; color: #B38235; }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  font-size: .95rem;
  color: #fffbe9;
}

/* ======= THANK YOU PAGE ======= */
.thankyou .content-wrapper {
  align-items: center;
  text-align: center;
}
.thankyou .cta {
  margin-top: 22px;
}

/* ======= COOKIE BANNER + MODAL ======= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30000;
  background: #375C5C;
  color: #fff;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 26px 17px 20px;
  width: 100vw;
  box-shadow: 0 -2px 30px #24323022;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: .98rem;
  animation: fadein-cookie .6s cubic-bezier(.4,1.5,.5,1) backwards;
}
@keyframes fadein-cookie {
  from { opacity: 0; transform: translateY(60px) scale(0.79); }
  to   { opacity: 1; transform: none; }
}
.cookie-banner button {
  margin-left: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: var(--radius-s);
  padding: 8px 20px;
  border: none;
  outline: none;
  font-weight: 700;
  cursor: pointer;
  background: #fc669a;
  color: #fff;
  transition: background .18s;
}
.cookie-banner .accept-btn {
  background: #20B2E2;
  color: #fff;
}
.cookie-banner .accept-btn:hover {
  background: #375C5C;
  color: #FFE14D;
}
.cookie-banner .reject-btn {
  background: #FFE14D;
  color: #243230;
}
.cookie-banner .reject-btn:hover {
  background: #FC669A;
  color: #fff;
}
.cookie-banner .settings-btn {
  background: #375C5C;
  border: 2px solid #20B2E2;
  color: #fff;
}
.cookie-banner .settings-btn:hover {
  background: #fc669a;
  color: #FFF;
}
/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 0; top:0; right:0; bottom:0;
  background: rgba(37,86,80,0.60);
  z-index: 35000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: background 0.2s;
  animation: fadein-cookie .4s cubic-bezier(.4,1.5,.5,1) backwards;
}
.cookie-modal-inner {
  background: #fff;
  max-width: 94vw;
  width: 450px;
  border-radius: var(--radius-l);
  box-shadow: 0 14px 60px #20B2E222, 0 1px 6px #375C5C22;
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  color: #243230;
  animation: modalin-cookie .4s cubic-bezier(.6,1.5,.3,1.4) backwards;
}
@keyframes modalin-cookie {
  from { opacity: 0; transform: scale(.78) translateY(30px); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal-category label {
  font-size: 1.01rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: #20B2E2;
  width: 17px; height: 17px;
}
.cookie-modal-btns {
  display: flex;
  flex-direction: row;
  gap: 11px;
  margin-top: 8px;
}
.cookie-modal-close {
  display: inline-block;
  align-self: flex-end;
  margin-bottom: -8px;
  margin-right: -6px;
  background: none;
  color: #375C5C;
  font-size: 2.1rem;
  border: none;
  cursor: pointer;
  padding: 1px 7px 3px 7px;
  border-radius: 13px;
  transition: background .17s;
}
.cookie-modal-close:hover {
  background: #FFE14D44;
}

/* =========== RESPONSIVE DESIGN (mobile-first) =========== */
@media (max-width: 900px) {
  .content-wrapper, .card-container, .feature-grid, .article-grid {
    gap: 16px;
  }
  .footer-contact {
    font-size: .92rem;
    gap: 0.3em;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 28px 0;
    min-height: 180px;
    border-radius: 0 0 30px 30px;
  }
  h1 {
    font-size: 1.48rem;
  }
  h2 {
    font-size: 1.14rem;
  }
  .section { margin-bottom: 38px; padding: 23px 0px; }
  .card, .article-grid article, .feature-grid li {
    flex-basis: 100%;
    min-width: 0;
    padding: 16px 8px 16px 10px;
  }
  .testimonial-card {
    max-width: 95vw;
    min-width: 0px; padding: 12px 10px;
  }
  .footer-nav {
    gap: 9px;
    font-size: 0.95rem;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  button.mobile-menu-toggle {
    top: 12px;
  }
  footer {
    border-radius: 22px 22px 0 0;
    font-size: 0.97rem;
    padding: 18px 0 18px;
  }
}
@media (max-width: 530px) {
  .cookie-modal-inner { width: 97vw; padding: 16px 6px 14px 14px; font-size: .97rem; }
  .footer-contact { font-size: .83rem; }
}

/* ======= MICRO-ANIMATIONS ======= */
a, .cta, .main-nav a, .footer-nav a, .cookie-banner button, .mobile-nav a {
  transition: color 0.19s, background 0.16s, box-shadow 0.14s, transform .12s;
}
.card, .feature-grid li, .article-grid article {
  transition: box-shadow 0.14s, transform 0.18s;
}
.card:hover, .feature-grid li:hover, .article-grid article:hover {
  transform: translateY(-4px) scale(1.03) rotate(-1.2deg);
  box-shadow: 0 10px 40px #20B2E222;
}
.testimonial-card:hover {
  background: #fcfcfa;
  box-shadow: 0 12px 52px -12px #20B2E222;
  border-left: 6px solid #20B2E2;
  transform: scale(1.015) rotate(1.1deg);
}

/* ======= CLARITY & ACCESSIBILITY ======= */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #222;
  background: #fff;
}

/* ========== CUSTOM SCROLLBAR ========== */
@media (min-width: 700px) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #375C5C 70%, #FC669A 120%);
    border-radius: 7px;
  }
}

/* =========== GENERAL & MISC (TEXT SECTION ICON IMG ALIGN) =========== */
.text-section img {
  vertical-align: middle;
  margin-right: 9px;
  margin-bottom: -4px;
  height: 22px;
  display: inline-block;
}

/* ========== OTHER PAGE-SPECIFIC ========== */
/* No specific styles required: all leverage flex, hierarchy, playful color & spacing. */

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