/* RESET & BASIC 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,
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-family: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F9F8F6;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  color: #2B2B2B;
  background-color: #F9F8F6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #274472;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #289672;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: #274472;
  line-height: 1.2;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4 { font-size: 1.2rem; margin-bottom: 10px; }
p, blockquote, dl, dd {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #3f3f3f;
}

blockquote {
  border-left: 5px solid #FFE1B5;
  background: #FFF9F1;
  padding: 16px 24px;
  margin: 16px 0;
  border-radius: 16px 8px 8px 16px;
  color: #2D2D16;
  font-style: italic;
}
cite {
  display: block;
  font-size: 0.93rem;
  margin-top: 10px;
  color: #757575;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* ------ BRAND COLORS ------ */
:root {
  --color-primary: #274472;
  --color-secondary: #289672;
  --color-accent: #F2F4F8;
  --color-bg-light: #FFF9F2;
  --color-bg-soft: #F9F8F6;
  --color-orange: #FFD6A2;
  --color-gold: #FFE1B5;
  --color-error: #BF4F51;
  --color-shadow: rgba(39, 68, 114, 0.06);
  --color-shadow-light: rgba(39, 68, 114, 0.04);
  --radius-xs: 8px;
  --radius-s: 14px;
  --radius-m: 20px;
  --radius-l: 30px;
}

/********** LAYOUT CONTAINER ***********/
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
}

/* ------ FLEXBOX SPACING: PATTERNS ------ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF9F2;
  border-radius: var(--radius-l);
  box-shadow: 0 2px 10px var(--color-shadow-light);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius-m);
  box-shadow: 0 2px 14px var(--color-shadow);
  background: #fff;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 6px 28px var(--color-shadow);
  transform: translateY(-6px) scale(1.03);
}
.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;
  background: #FFF9F1;
  border-radius: var(--radius-m);
  box-shadow: 0 2px 8px var(--color-shadow-light);
  margin-bottom: 20px;
  color: #2B2B2B;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/***** HEADER & NAVIGATION *****/
header {
  background: #FFF9F2;
  box-shadow: 0 2px 12px var(--color-shadow-light);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  padding: 14px 16px;
}
header nav {
  display: flex;
  gap: 18px;
}
header nav a {
  font-size: 1.08rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #3d5072;
  padding: 8px 14px;
  border-radius: var(--radius-xs);
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-orange);
  color: var(--color-secondary);
}
.cta-btn {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: var(--radius-m);
  font-family: 'Merriweather', serif;
  font-size: 1.13rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  letter-spacing: 0.04em;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.14s;
  outline: none;
  margin-left: 14px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #274472;
  color: #FFD6A2;
  box-shadow: 0 6px 16px var(--color-shadow);
  transform: translateY(-2px) scale(1.03);
}

/***** MOBILE MENU *****/
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.65rem;
  padding: 6px 16px;
  border: none;
  border-radius: var(--radius-s);
  cursor: pointer;
  margin-left: 20px;
  transition: background 0.2s, color 0.2s;
  z-index: 51;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: #FFE1B5;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #FFF9F2;
  box-shadow: 0 0 44px var(--color-shadow-light);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(-104vw);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  padding: 0 18px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-secondar,y #EB5747);
  background: #ffe1b5;
  color: #274472;
  border: none;
  font-size: 2rem;
  margin: 22px 0 14px 0;
  padding: 5px 17px;
  border-radius: var(--radius-m);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #274472;
  background: none;
  border-radius: var(--radius-xs);
  padding: 10px 8px;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-orange);
  color: var(--color-secondary);
}

/***** HERO SECTION (index) *****/
.hero {
  background: linear-gradient(90deg, #FFE1B5 49%, #F2F4F8 100%);
  padding: 60px 0 44px 0;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  box-shadow: 0 6px 28px var(--color-shadow-light);
  margin-bottom: 50px;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 24px;
  max-width: 630px;
}
.hero h1 {
  color: #274472;
  font-size: 2.7rem;
}
.hero p {
  font-size: 1.25rem;
  color: #274472;
  margin-bottom: 10px;
}

/***** FLEX LAYOUTS FOR OTHER SECTIONS *****/
.features ul, .literary-picks ul, .reviews ul, .readers-tips ul {
  list-style: none;
  margin-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.features ul li, .literary-picks ul li, .reviews ul li, .readers-tips ul li {
  flex: 1 1 260px;
  background: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-radius: var(--radius-m);
  box-shadow: 0 1.5px 7px var(--color-shadow-light);
  color: #274472;
  font-size: 1.09rem;
  min-width: 180px;
}
.features ul li img {
  width: 30px; height: 30px;
  margin-right: 6px;
}
.features ul li span {
  font-size: 1.08rem;
}
.features h3 {
  margin-top: 36px;
  color: #289672;
}
.features > .content-wrapper > div ul li {
  background: #FFF9F1;
  color: #2B2B2B;
  font-size: 1.04rem;
  box-shadow: none;
}

.literary-picks blockquote {
  font-size: 1.18rem;
  margin-top: 14px;
}

/***** REVIEWS CARDS (recenze-knih) *****/
.reviews-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.reviews-cards article {
  background: #FFF9F1;
  border-radius: var(--radius-m);
  box-shadow: 0 2px 14px var(--color-shadow-light);
  flex: 1 1 260px;
  min-width: 230px;
  padding: 22px 20px;
  margin-bottom: 10px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.reviews-cards article:hover {
  box-shadow: 0 10px 28px var(--color-shadow);
  transform: translateY(-2px) scale(1.025);
}
.reviews-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.reviews-filter span {
  font-family: 'Merriweather', serif;
  font-weight: bold;
  color: #274472;
}
.reviews-filter a {
  color: #289672;
  background: #FFE1B5;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 1.04rem;
  transition: background 0.15s, color 0.15s;
}
.reviews-filter a:hover, .reviews-filter a:focus {
  background: #289672;
  color: #fff;
}

/***** TESTIMONIALS & READER STATS *****/
.testimonials .testimonial-card {
  background: #FFE1B5;
  border-left: 5px solid #289672;
  margin-bottom: 20px;
  color: #1A2D3A;
  font-size: 1.07rem;
}
.testimonials .testimonial-card p {
  font-size: 1.12rem;
  color: #274472;
}
.testimonials .testimonial-card strong {
  color: #289672;
  font-weight: 600;
}
.reader-stats {
  margin-top: 35px;
}
.reader-stats h3 {
  font-size: 1.18rem;
  color: #274472;
  margin-bottom: 12px;
}
.reader-stats ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}
.reader-stats li {
  background: #fff;
  border-radius: var(--radius-xs);
  color: #274472;
  padding: 8px 17px;
  box-shadow: 0 2px 12px var(--color-shadow-light);
  font-size: 1.01rem;
  margin: 0;
}

/***** ABOUT, TIPY, VYBERY, ROZHOVORY CARDS *****/
.text-section {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: 0 2px 16px var(--color-shadow-light);
  padding: 40px 28px;
  margin-bottom: 40px;
}
.inspirational-message blockquote {
  background: #FFE1B5;
  border-radius: var(--radius-m);
}
.expert-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.expert-panel > div {
  background: #FFF9F1;
  border-radius: var(--radius-m);
  box-shadow: 0 2px 10px var(--color-shadow-light);
  flex: 1 1 230px;
  padding: 18px 17px;
  color: #274472;
}
.short-quotes p {
  padding: 8px 14px;
  background: #FFE1B5;
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
}
.interview-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 30px;
}
.interview-cards > div {
  background: #FFF9F1;
  border-radius: var(--radius-m);
  box-shadow: 0 2px 14px var(--color-shadow-light);
  flex: 1 1 260px;
  padding: 22px 20px;
  margin-bottom: 10px;
  color: #274472;
  transition: box-shadow 0.18s, transform 0.18s;
}
.interview-cards > div:hover {
  box-shadow: 0 8px 28px var(--color-shadow);
  transform: translateY(-2px) scale(1.025);
}

/***** FOOTER *****/
footer {
  background: #274472;
  color: #fff;
  padding-top: 34px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid #F2F4F8;
}
.footer-wrapper nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}
.footer-wrapper nav a {
  color: #FFD6A2;
  font-size: 1rem;
  padding: 5px 0;
  transition: color 0.16s;
}
.footer-wrapper nav a:hover {
  color: #289672;
}
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 6px;
  color: #F7F6EE;
}
.footer-contact li img {
  width: 18px;
  filter: brightness(0.8) sepia(0.8) hue-rotate(160deg);
}
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 100%;
  width: 36px; height: 36px;
  box-shadow: 0 1px 4px var(--color-shadow-light);
  transition: background 0.18s, transform 0.18s;
}
.footer-social a img {
  width: 22px; height: 22px;
}
.footer-social a:hover {
  background: #FFE1B5;
  transform: scale(1.1);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 6px 0;
  font-size: 0.98rem;
  color: #FFE1B5;
}

/***** COOKIE BANNER + MODAL *****/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #274472;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 22px 24px;
  box-shadow: 0 -3px 16px var(--color-shadow);
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  z-index: 9999;
  font-size: 1.09rem;
  animation: cookieBannerFadeIn 0.8s cubic-bezier(.23,.82,0,1);
}
@keyframes cookieBannerFadeIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cookie-btn {
  font-size: 1.01rem;
  padding: 9px 20px;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.21s;
}
.cookie-btn.accept {
  background: #289672;
  color: #fff;
  font-weight: 600;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #274472;
}
.cookie-btn.reject {
  background: #FFE1B5;
  color: #274472;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: #BF4F51;
  box-shadow: 0 2px 8px var(--color-shadow-light);
}
.cookie-btn.settings {
  background: #fff;
  color: #289672;
  border: 1.5px solid #289672;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFE1B5;
  color: #274472;
}
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,68,114, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeInModal 0.25s linear;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  padding: 32px 24px 24px 24px;
  border-radius: var(--radius-m);
  min-width: 90vw;
  max-width: 400px;
  box-shadow: 0 3px 33px var(--color-shadow);
  color: #274472;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #274472;
  cursor: pointer;
  transition: color 0.19s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #289672;
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.cookie-category input[type=checkbox]:not(:disabled) {
  accent-color: #289672;
  width: 1.15em;
  height: 1.15em;
}
.cookie-category label {
  flex: 1 1 auto;
  font-size: 1.06rem;
}
.cookie-category input[type=checkbox]:disabled + label {
  color: #B2B2B2;
  cursor: not-allowed;
}

/***** FORM ELEMENTS, BUTTONS, ETC. *****/
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: 1.5px solid #d5c598;
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  margin-bottom: 18px;
  background: #fff;
  outline: none;
  box-shadow: 0 0.5px 2px var(--color-shadow-light);
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #289672;
}

/***** RESPONSIVENESS (MOBILE-FIRST) *****/
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 870px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 26px;
    align-items: flex-start;
  }
  .expert-panel, .interview-cards, .reviews-cards {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.45rem; }
  .hero { padding: 34px 0 24px 0; border-radius: 0 0 var(--radius-m) var(--radius-m); }
  .hero h1 { font-size: 2rem; }
  .footer-wrapper {
    flex-direction: column;
    gap: 18px;
    padding-bottom: 18px;
    align-items: flex-start;
  }
  .reader-stats ul, .features ul, .literary-picks ul, .reviews ul, .readers-tips ul, .reviews-cards, .interview-cards, .expert-panel {
    flex-direction: column;
    gap: 10px;
  }
  .reviews-cards article, .interview-cards > div, .expert-panel > div {
    min-width: 180px;
    width: 100%;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cookie-modal-content {
    min-width: 98vw;
    padding: 25px 10px 19px 10px;
  }
  .section {
    margin-bottom: 38px;
    padding: 26px 5px;
  }
  .text-section {
    padding: 24px 8px;
    margin-bottom: 24px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 4px;
  }
  .hero .content-wrapper {
    padding: 0 4px;
  }
  .footer-bottom { font-size: 0.88rem; }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    font-size: 0.99rem;
    padding: 15px 9px;
  }
}
@media (max-width: 700px) {
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/***** OTHER ACCESSIBILITY & INTERACTION STYLES *****/
:focus {
  outline: 2px solid #FFE1B5;
  outline-offset: 2px;
}
section, .section {
  margin-bottom: 60px; /* Enforce spacing */
}

/***** SPECIAL FLEX LAYOUTS *****/
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  gap: 10px;
}

/***** MISCELLANEOUS *****/
::-webkit-input-placeholder { color: #ADADAD; }
::-moz-placeholder { color: #ADADAD; }
:-ms-input-placeholder { color: #ADADAD; }
::placeholder { color: #ADADAD; }

/***** PRINT/ACCESSIBILITY (optional) *****/
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  body { background: #fff !important; }
}
