/* ================================
   Kouzlo Tradic - style.css
   Creative Artistic Flexbox-Only Styles
   ================================ */

/* --- 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;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
  background: #F5F3EB;
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
button, input, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  outline: none;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 28px 10px;
  }
}

/* Creative Artistic colors and backgrounds */
:root {
  --primary: #1B365D;
  --secondary: #E5B02E;
  --accent: #F5F3EB;
  --folklore-red: #d12b38;
  --folklore-green: #357a38;
  --folklore-blue: #4368A4;
  --folklore-orange: #F26D2D;
}

/* Artistic BG splashes */
.section:nth-child(odd) {
  background: #fffaf7;
  border-radius: 32px 6px 28px 14px/20px 38px 22px 34px;
  box-shadow: 0 8px 32px 0 rgba(27,54,93,0.05);
}
.section:nth-child(even) {
  background: #f5f3eb;
  border-radius: 18px 42px 9px 45px/35px 9px 41px 20px;
  box-shadow: 0 4px 24px 0 rgba(229,176,46,.08);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 16px;
  line-height: 1.15;
  background: linear-gradient(90deg, var(--secondary) 40%, var(--folklore-red) 70%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: 2.1rem;
  color: var(--folklore-red);
  margin-bottom: 6px;
}
h3 {
  font-size: 1.4rem;
  color: var(--folklore-blue);
}
h4 {
  font-size: 1.15rem;
  color: var(--folklore-green);
}
p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #222;
}
strong {
  font-weight: 700;
  color: var(--secondary);
}
em {
  color: var(--folklore-orange);
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 3px 24px 0 rgba(27, 54, 93, 0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
  padding: 0 20px;
}
.logo img {
  height: 54px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.main-nav .cta-btn {
  background: var(--folklore-red);
  color: #fff;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 24px;
  margin-left: 12px;
  box-shadow: 0 4px 12px 0 rgba(209,43,56, 0.10);
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 6px 16px 0 rgba(229,176,46, 0.18);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.1rem;
  padding: 4px 16px;
  border-radius: 12px;
  cursor: pointer;
  margin-left: 18px;
  box-shadow: 0 2px 12px 0 rgba(229,176,46, 0.10);
  z-index: 51;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover {
  background: var(--folklore-red);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  padding: 46px 12px 0 12px;
  box-shadow: 0 3px 36px 0 rgba(27,54,93,0.11);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 12px;
  margin-bottom: 24px;
  padding: 0 16px;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 18px 0 rgba(27,54,93,0.12);
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:active {
  background: var(--folklore-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  margin-top: 20px;
  font-size: 1.2rem;
}
.mobile-nav a {
  color: var(--folklore-blue);
  font-family: 'Merriweather', serif;
  padding: 12px 0 12px 6px;
  border-radius: 8px;
  width: 100%;
  transition: background 0.21s, color 0.21s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--folklore-orange);
  color: #fff;
}

@media (max-width: 1020px) {
  .main-nav { gap: 17px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 10px; }
}
@media (max-width: 830px) {
  header .container { padding: 0 8px; }
  .main-nav { gap: 7px; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- HERO SECTIONS --- */
.section .container,
main > .container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- UI CARD/GRID PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 20px 0 rgba(27,54,93,0.06);
  padding: 28px 20px 24px 20px;
  min-width: 250px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.23s;
  z-index: 1;
}
.card:hover {
  box-shadow: 0 7px 28px 0 rgba(229,176,46,0.15);
  top: -6px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffdf8;
  border-radius: 14px;
  box-shadow: 0 1px 10px 0 rgba(229,176,46,0.06);
  padding: 18px 18px 14px;
  font-size: 1.1rem;
  margin-bottom: 22px;
}

/* --- TESTIMONIAL STYLES --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 20px 20px 36px 12px/12px 39px 25px 26px;
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(27,54,93,.09);
  margin-bottom: 24px;
  border-left: 8px solid var(--folklore-red);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.23s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px 0 rgba(229,176,46,0.14);
}
.testimonial-card p {
  color: #252525;
  font-size: 1.09rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--primary);
  font-family: 'Merriweather', serif;
}

/* --- BUTTONS & CALLS TO ACTION --- */
.cta-btn {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 18px 42px 15px 23px/19px 41px 21px 17px;
  border: none;
  padding: 12px 32px;
  font-family: 'Merriweather', serif;
  font-size: 1.13rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 18px 0 rgba(229, 176, 46, 0.18);
  letter-spacing: .05em;
  position: relative;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.13s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--folklore-red);
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(209,43,56,0.13);
  transform: translateY(-2px) scale(1.04);
}

button:active, .cta-btn:active {
  opacity: 0.93;
  transform: scale(0.98);
}

/* --- FOOTER --- */
footer {
  background: #fffdfa;
  border-top: 5px double var(--secondary);
  padding: 30px 0 20px 0;
  margin-top: 38px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--folklore-blue);
  font-size: 1rem;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: var(--folklore-red);
}
.footer-logo img {
  height: 49px;
  margin-bottom: 2px;
}
footer p {
  color: #928850;
  font-size: 0.94rem;
  margin-top: 6px;
}
@media (max-width: 520px) {
  .footer-nav { flex-direction: column; align-items: center; gap: 7px; }
}

/* --- FORMS --- */
input[type="text"], input[type="email"], textarea {
  border: 2px solid var(--secondary);
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
  margin-bottom: 16px;
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 1px 5px 0 rgba(229,176,46,.04);
  transition: border 0.16s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 2px solid var(--folklore-red);
}
label {
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 8px;
}

/* --- LISTS --- */
ul, ol {
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 0;
}
ul li, ol li {
  padding-left: 0.8em;
  position: relative;
  margin-bottom: 14px;
  font-size: 1rem;
}
ul li:before {
  content: "\2022";
  color: var(--folklore-green);
  font-weight: bold;
  display: inline-block;
  width: 1.15em;
  margin-left: -1.15em;
  font-size: 1.1em;
  vertical-align: middle;
}
ol li:before {
  content: none;
}

/* --- SPACING UTILS --- */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: var(--primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 38px 20px 23px;
  box-shadow: 0 0 32px 0 rgba(27,54,93,0.18), 0 -2px 8px rgba(229,176,46,0.10);
  z-index: 120;
  gap: 32px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 23px 23px 0 0/17px 17px 0 0;
  animation: cookie-banner-appear 0.8s ease;
}
@keyframes cookie-banner-appear {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  flex: 1;
  min-width: 0;
  margin-right: 14px;
  color: var(--primary);
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 12px 28px 9px 24px / 16px 21px 12px 15px;
  font-weight: bold;
  padding: 10px 18px;
  border: none;
  font-size: 1rem;
  font-family: 'Merriweather', serif;
  transition: background 0.18s, color 0.18s, box-shadow 0.13s;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(229,176,46,0.06);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--folklore-red);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(209,43,56,0.12);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-btn.reject {
  background: #f5f3eb;
  color: var(--folklore-red);
  border: 2px solid var(--folklore-red);
}

@media (max-width: 670px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 10px 14px 10px;
  }
  .cookie-banner__buttons {
    gap: 7px;
    flex-wrap: wrap;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(27,54,93,0.18);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadein 0.36s;
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__dialog {
  background: #fffdfa;
  border-radius: 22px 9px 30px 19px / 15px 28px 33px 18px;
  box-shadow: 0 3px 28px 0 rgba(27,54,93,0.13);
  max-width: 380px;
  width: 100%;
  padding: 32px 24px 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.cookie-modal__title {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
}
.cookie-modal__close {
  background: var(--folklore-red);
  color: #fff;
  border-radius: 12px;
  border: none;
  font-size: 1.6rem;
  padding: 2px 13px;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-modal__close:hover {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 34px;
  font-size: 1.04rem;
}
.cookie-category label {
  color: var(--folklore-blue);
  font-weight: bold;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--folklore-red);
  width: 20px; height: 20px;
  border-radius: 6px;
  margin-right: 4px;
}
.cookie-category .always {
  font-size: .93em;
  color: var(--folklore-orange);
  font-style: italic;
  margin-left: 6px;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
}
@media (max-width: 480px) {
  .cookie-modal__dialog { padding: 16px 4px 8px 4px; }
  .cookie-modal__title { font-size: 1.08rem; }
}

/* --- MISC DECORATIVE/ARTISTIC ELEMENTS --- */
body, html {
  background-attachment: fixed;
  background-image: url('../assets/bg-folk-motif.svg'), linear-gradient(120deg, #f5f3eb 40%, #fffefa 100%);
  background-repeat: no-repeat, repeat;
  background-position: left top, left top;
  background-size: 360px auto, cover;
}

h1, h2, h3, h4 {
  text-shadow: 0 2px 9px rgba(229,176,46,0.06), 0 1px 0 #fff;
}

.section {
  transition: box-shadow 0.23s;
}
.section:hover {
  box-shadow: 0 10px 48px rgba(27,54,93,0.06);
}

/* --- RESPONSIVE ADAPTATION --- */
@media (max-width: 600px) {
  .container, .section .container, main > .container {
    padding: 0 2px;
  }
  h1, h2 { word-break: break-word; }
}

@media (max-width: 385px) {
  .footer-logo img { height: 33px; }
}

/* --- SMOOTH INTERACTION EFFECTS --- */
a, button, .cta-btn, .main-nav a, .mobile-nav a {
  transition: background 0.16s, color 0.18s, box-shadow 0.15s, transform 0.13s;
}

/* --- FOCUS OUTLINE FOR ACCESSIBILITY --- */
a:focus, .cta-btn:focus, button:focus, input:focus, .mobile-menu-toggle:focus {
  outline: 2px solid var(--folklore-blue);
  outline-offset: 2px;
}

/* --- Z-INDEX CONTROL FOR LAYERED ELEMENTS --- */
header,
.mobile-menu,
.cookie-banner,
.cookie-modal {
  z-index: 100 !important;
}

/* --- CUSTOM ELEMENTS/DECORATIVE (optional, non-blocking if no svg)--- */
/* For extra folk/hand-made effect, can add tissue-paper borders as pseudo-elements if asset available */

/* ================= END OF STYLE.CSS =================== */
