/* Crimson Bloom Vault Vibrant Energetic CSS - Mobile-First, Only Flexbox Layouts */

/* 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,
b, u, i, center,
dl, dt, dd, menu, 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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #230d1c;
  min-height: 100vh;
}
a {
  color: #840F29;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #F5A623;
  outline: none;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}


/* BRAND COLORS & FONTS */
:root {
  --primary: #840F29;
  --secondary: #E5DED7;
  --accent: #F5A623;
  --neutral-dark: #230d1c;
  --neutral-mid: #57213a;
  --neutral-light: #fff;
  --box-bg: #faf6f2;
  --success: #22c28b;
  --danger: #D7263D;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
}

/* UTILS */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(245,166,35,0.07);
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}

p, li, span, strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--neutral-dark);
}
p {
  margin-bottom: 16px;
}
.text-section p,
.text-section ul,
.text-section ol {
  font-size: 1.08rem;
  line-height: 1.7;
}

strong {
  font-weight: 800;
}

/* HEADER */
header {
  background: var(--secondary);
  box-shadow: 0 2px 24px rgba(132,15,41, 0.07);
  border-bottom: 3px solid var(--accent);
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  min-height: 68px;
  gap: 16px;
}
header img {
  max-height: 47px;
  margin-right: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1rem;
  color: var(--primary);
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.15s, color 0.13s;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.cta-button {
  border-radius: 25px;
  padding: 9px 28px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(245,166,35,0.05);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 20px;
  outline: none;
  transition: background 0.18s, color 0.13s, box-shadow 0.15s;
  position: relative;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(132,15,41,0.14);
}

/* Main CTA link */
.cta-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  font-size: 1.04rem;
}
.cta-link:hover, .cta-link:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  border: none;
  box-shadow: 0 2px 12px rgba(245,166,35,0.17);
  transition: background 0.18s, box-shadow 0.11s;
  cursor: pointer;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(132,15,41,0.98);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.76,.23,.32,1.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 38px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.1rem;
  align-self: flex-end;
  margin-right: 25px;
  margin-bottom: 16px;
  border: none;
  cursor: pointer;
  opacity: .85;
  transition: opacity .13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 80vw;
  margin-left: 25px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 7px 0;
  transition: color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
}

/* Hide desktop nav & show burger on mobile */
@media (max-width: 992px) {
  header nav,
  .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    justify-content: flex-start;
    gap: 0;
  }
}

/* HERO / LANDING SECTIONS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:nth-of-type(odd) {
  background: var(--box-bg);
}

@media (min-width: 1100px) {
  section {
    padding: 56px 0px;
  }
}

/* FLEX LAYOUTS */
/* 1. Card containers and feature grids */
.feature-grid,
.values-grid,
.case-study-blocks, 
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 16px;
}
.service-list,
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-top: 10px;
}
.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;
}
@media (max-width: 768px) {
  .feature-grid,
  .values-grid,
  .case-study-blocks, 
  .card-container, 
  .service-list, .team-bios, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

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

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 20px rgba(132,15,41,0.07), 0 1.5px 5px rgba(245,166,35,0.05);
  margin-bottom: 26px;
  flex-wrap: wrap;
  border-left: 5px solid var(--accent);
}
.testimonial-card p {
  font-size: 1.12rem;
  color: var(--neutral-dark);
  font-style: italic;
  margin-bottom: 8px;
  flex: 1 1 auto;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.94;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 16px;
  }
}

.card, .feature-grid > div,
.values-grid > div,
.case-study-blocks > div,
.service-list > div,
.team-bios > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 14px rgba(132,15,41,0.08), 0 1.5px 5px rgba(245,166,35,0.05);
  padding: 24px 20px;
  flex: 1 1 225px;
  min-width: 220px;
  max-width: 420px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.14s, transform 0.17s;
  border-left: 4px solid var(--accent);
}
.card:hover, .feature-grid > div:hover,
.values-grid > div:hover,
.case-study-blocks > div:hover,
.service-list > div:hover,
.team-bios > div:hover {
  box-shadow: 0 3px 24px rgba(245,166,35,0.16), 0 1.5px 21px rgba(132,15,41,0.18);
  transform: translateY(-2px) scale(1.03);
  z-index: 2;
}

.feature-grid > div img,
.values-grid > div img,
.case-study-blocks > div img {
  max-width: 46px;
  margin-bottom: 8px;
}

/* Text & Image sections */
.text-section {
  margin: 18px 0;
}
.text-image-section img {
  max-width: 180px;
  border-radius: 12px;
  box-shadow: 0 2px 13px rgba(132,15,41,0.07);
}

.contact-snippet,
.contact-details {
  background: var(--box-bg);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 18px;
  box-shadow: 0 1.5px 12px rgba(245,166,35,0.07);
  font-size: 1.03rem;
}

/* MAP placeholder (Kontakt) */
.map-placeholder {
  display: flex;
  align-items: center;
  background: var(--secondary);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

/* Footer */
footer {
  background: var(--primary);
  color: #fff;
  margin-top: 48px;
  padding: 35px 0 0 0;
  box-shadow: 0 -2px 32px rgba(55,3,11,0.07);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 18px 26px 18px;
}
footer img {
  max-height: 47px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
footer nav a {
  color: #fff;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
  justify-content: center;
}
.footer-menu a {
  color: #fed4bd;
  font-size: 0.9rem;
  transition: color 0.14s;
}
.footer-menu a:hover {
  color: var(--accent);
}
.copyright {
  font-size: 0.92rem;
  color: #ffe4db;
  opacity: 0.92;
  margin-bottom: 0;
}

/* ================= COOKIE CONSENT BANNER ================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 -2px 24px rgba(132,15,41, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1200;
  padding: 18px 20px 18px 20px;
  transition: transform 0.29s;
  gap: 12px;
}
.cookie-banner.hide {
  transform: translateY(100%);
}
.cookie-banner__text {
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
  margin-bottom: 8px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.cookie-btn, .cookie-modal-open {
  font-family: var(--font-body);
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 7px 23px;
  font-size: 1rem;
  margin-top: 3px;
  cursor: pointer;
  transition: background 0.17s;
  outline: none;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-modal-open:hover, .cookie-modal-open:focus {
  background: #fff;
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--danger);
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fff;
  color: var(--danger);
}
.cookie-modal-open {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--accent);
  transition: background 0.13s, color 0.12s;
}
.cookie-modal-open:hover, .cookie-modal-open:focus {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 700px) {
  .cookie-banner__actions {
    flex-direction: column;
    width: 100%;
    gap: 9px;
  }
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(132,15,41,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  transition: opacity 0.25s;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__dialog {
  background: #fff;
  color: var(--primary);
  padding: 32px 24px 24px 24px;
  border-radius: 18px;
  box-shadow: 0 4px 48px rgba(132,15,41,0.21);
  width: 98vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: slideInCookie 0.25s cubic-bezier(.77,.13,.51,1.19);
  position: relative;
}
@keyframes slideInCookie {
  from { transform: translateY(40px) scale(0.95); opacity: 0 }
  to { transform: translateY(0) scale(1); opacity: 1 }
}
.cookie-modal__close {
  position: absolute;
  right: 17px;
  top: 13px;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity .14s;
}
.cookie-modal__close:hover { opacity: 1; }

.cookie-modal__title {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
}
.cookie-modal__desc {
  font-size: 0.99rem;
  font-weight: 400;
  line-height: 1.55;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.01rem;
}
.cookie-category input[type=checkbox][disabled] {
  accent-color: var(--success);
}
.cookie-toggle {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}
.cookie-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ====== END COOKIE ====== */


/* GENERAL SPACING */
.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; }

main {
  min-height: 420px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html { font-size: 97%; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.09rem; }
  .container { padding: 0 10px; }
  .section { padding: 32px 6px; margin-bottom: 38px; }
  section { padding: 28px 6px; margin-bottom: 40px; }
  .card, .feature-grid > div, .values-grid > div, .case-study-blocks > div {
    max-width: 100%;
    min-width: 0;
    padding: 15px 12px;
  }

  .contact-snippet,
  .contact-details {
    padding: 13px 9px;
  }
  footer .container { padding: 0 7px 19px 7px; }
  .feature-grid, .values-grid, .case-study-blocks, .card-container, .service-list, .content-grid, .team-bios {
    flex-direction: column;
    gap: 13px;
    align-items: stretch;
  }
  .testimonial-card { padding: 14px; }
}

/* ===== VIBRANT / ENERGETIC DECORATIVE ===== */
.card, .feature-grid > div, .values-grid > div, .case-study-blocks > div {
  border-left: 5px solid var(--accent);
  box-shadow: 0 2px 12px rgba(245,166,35,0.11), 0 2px 11px rgba(132,15,41,0.13);
}
.card:before, .feature-grid > div:before, .team-bios > div:before, .case-study-blocks > div:before {
  content: '';
  display: block;
  position: absolute;
  left: -14px;
  top: 10px;
  width: 10px;
  height: 36px;
  border-radius: 6px;
  background: var(--accent);
  opacity: 0.4;
  z-index: 0;
}

/* Accent hover flash for CTA */
.cta-button:after {
  content: '';
  display: block;
  position: absolute;
  left: 12px; top: 11px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.19;
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.cta-button:hover:after { opacity: 0.38; }

/* Form Field Styles */
input, textarea, select {
  border: 2px solid var(--primary);
  border-radius: 6px;
  padding: 9px 13px;
  font-size: 1rem;
  color: var(--primary);
  background: #f9f7f5;
  margin-bottom: 18px;
  width: 100%;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--accent);
  background: #fff;
  outline: none;
}

button, .cookie-btn {
  transition: background 0.18s, color 0.14s, box-shadow 0.17s;
}

/* Accent marker for steps (on 'Jak spolupracujeme') */
ol > li {
  list-style: none;
  position: relative;
  padding-left: 34px;
  margin-bottom: 17px;
}
ol > li:before {
  content: '';
  display: inline-block;
  position: absolute;
  top: 4px;
  left: 0;
  width: 19px;
  height: 19px;
  background: var(--accent);
  border-radius: 50%;
  opacity: .65;
  border: 2px solid #fff;
}

/* ========== MICRO-ANIMATIONS / HOVER ========== */
.card, .feature-grid > div, .values-grid > div, .case-study-blocks > div, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.15s;
}
.card:active, .feature-grid > div:active, .testimonial-card:active {
  transform: scale(0.98);
}

.cta-link {
  position: relative;
  transition: color .13s;
}
.cta-link:after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width .20s;
  border-radius: 2px;
}
.cta-link:hover:after, .cta-link:focus:after {
  width: 100%;
}

/* ========== SCROLLBAR (accented) ========== */
::-webkit-scrollbar {
  width: 11px;
  background: #f5e8de;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 8px;
  border: 2px solid #f5e8de;
}

/* ========== SELECTION (highlight) ========== */
::selection { background: var(--accent); color: #fff; }

/* ========== PRINT ========== */
@media print {
  .mobile-menu,
  .mobile-menu-toggle,
  .cookie-banner,
  .cookie-modal,
  header,
  footer { display: none !important; }
  body { color: #000; background: #fff; }
}
