/* CSS 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, 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 {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFF7F1;
  color: #37525B;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: #FFF7F1;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #37525B;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem;  margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }

p, li, ul, ol { font-size: 1rem;  color: #37525B; }
strong { font-weight: 700; }
a { color: #A8623D; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #8B4513; text-decoration: underline; }

/* CONTAINERS & SECTIONS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(168,98,61,0.07);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HERO SECTION */
.hero {
  background: #FFE7CB;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 6px 32px 0 rgba(168,98,61,0.05);
  margin-bottom: 40px;
  padding: 48px 0 32px 0;
}
.hero .container { padding: 0 20px; }
.hero h1 { color: #37525B; font-size: 2.4rem; }
.hero p { color: #37525B; font-size: 1.18rem; margin-bottom: 18px; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 26px;
  padding: 12px 32px;
  margin-top: 14px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(168,98,61,0.10);
  outline: none;
}
.cta.primary {
  background: #A8623D;
  color: #FFF7F1;
}
.cta.primary:hover, .cta.primary:focus {
  background: #8B4513;
  color: #FFFFFF;
}
.cta.secondary {
  background: #FFE7CB;
  color: #A8623D;
  border: 1px solid #A8623D;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #A8623D;
  color: #FFFFFF;
}

/* NAVIGATION - DESKTOP */
header {
  background: #FFF7F1;
  box-shadow: 0 2px 16px 0 rgba(168,98,61,0.05);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand-logo img {
  height: 42px;
  width: auto;
  border-radius: 12px;
  background: rgba(231, 211, 190, 0.45);
  padding: 6px 7px;
  box-shadow: 0 1px 4px 0 rgba(55, 82, 91, 0.04);
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #37525B;
  border-radius: 14px;
  padding: 4px 13px;
  transition: background .16s, color .16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FFE7CB;
  color: #A8623D;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #A8623D;
  cursor: pointer;
  margin-left: 18px;
  border-radius: 16px;
  padding: 3px 9px;
  transition: background .20s, color .15s;
}
.mobile-menu-toggle:focus {
  background: #FFE7CB;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF7F1;
  box-shadow: 0 0 44px 2px rgba(168,98,61,0.10);
  z-index: 1200;
  padding: 30px 28px;
  transform: translateX(-110vw);
  transition: transform 0.33s cubic-bezier(.8, .1, .2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #A8623D;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  border-radius: 14px;
  padding: 3px 8px;
  transition: background .16s;
}
.mobile-menu-close:focus {
  background: #FFE7CB;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  color: #37525B;
  padding: 10px 6px 10px 0;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFE7CB;
  color: #A8623D;
}

/* Hide/show menu based on breakpoint */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* -------- LAYOUTS & FLEX --------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFFFFF;
  border-radius: 16px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 3px 14px 0 rgba(168,98,61,0.13);
  padding: 26px 20px 22px 22px;
  transition: box-shadow .20s, transform .18s;
}
.card:hover {
  box-shadow: 0 6px 20px 0 rgba(168,98,61,0.17);
  transform: translateY(-2px) scale(1.016);
}
.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;
  padding: 20px;
  background: #FFF7F1;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(168,98,61,0.10);
  margin-bottom: 20px;
  transition: box-shadow .14s;
}
.testimonial-card p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: #37525B;
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #A8623D;
  margin-top: 6px;
}
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.service-item {
  background: #FFF;
  border-radius: 15px;
  box-shadow: 0 2px 8px 0 rgba(168,98,61,0.07);
  padding: 24px 18px 20px 18px;
  flex: 1 1 220px;
  min-width: 240px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .16s, transform .15s;
}
.service-item:hover {
  box-shadow: 0 6px 24px 0 rgba(168,98,61,0.13);
  transform: scale(1.018);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.category-item {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(168,98,61,0.06);
  padding: 24px 16px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 330px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .18s, transform .16s;
}
.category-item:hover {
  box-shadow: 0 8px 30px 0 rgba(168,98,61,0.13);
  transform: scale(1.019);
}
.highlights {
  background: #FFE7CB;
  border-radius: 14px;
  padding: 20px 16px 10px 18px;
  color: #A8623D;
  margin-bottom: 20px;
}

/* USP LIST FOR SLUZBY */
.usp-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.usp-list > div {
  background: #FFFFFD;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(168,98,61,0.06);
  padding: 20px 17px 16px 16px;
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 330px;
}

/* TEXT BLOCKS */
.text-section, .info-section, .contact-block {
  margin-bottom: 26px;
}
.text-section ul,
.text-section ol {
  margin-left: 1.1em;
  margin-bottom: 16px;
  padding-left: 0.7em;
}
.text-section li {
  margin-bottom: 9px;
}

/* FOOTER */
footer {
  margin-top: 60px;
  background: #E7D3BE;
  color: #37525B;
  padding: 38px 0 24px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.footer-nav a {
  color: #37525B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 2px 8px;
  border-radius: 8px;
  transition: background .13s;
}
.footer-nav a:hover {
  background: #FFE7CB;
}
.contact-info {
  font-size: 1rem;
  color: #37525B;
  margin-bottom: 15px;
}
.contact-info a {
  color: #A8623D;
  text-decoration: underline;
}
.footer-brand img {
  height: 38px;
  width: auto;
  margin-top: 12px;
  border-radius: 11px;
  padding: 4px 6px;
}

/* MISC */
ul, ol {
  list-style: disc inside;
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1300;
  background: #FFE7CB;
  border-top: 2px solid #E7D3BE;
  color: #37525B;
  font-size: 1rem;
  padding: 20px 5vw 20px 4vw;
  box-shadow: 0 -1px 14px 0 rgba(168,98,61,0.13);
  gap: 18px;
  transition: transform .3s;
}
.cookie-banner.hide {
  transform: translateY(130%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 21px;
  padding: 9px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 0;
  transition: background .16s, color .16s;
  outline: none;
}
.cookie-banner .accept {
  background: #A8623D;
  color: #FFF7F1;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #8B4513;
  color: #FFFFFF;
}
.cookie-banner .reject {
  background: #FFF;
  color: #A8623D;
  border: 1px solid #A8623D;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #E7D3BE;
  color: #8B4513;
}
.cookie-banner .settings {
  background: transparent;
  border: 1px solid #A8623D;
  color: #A8623D;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #FFE7CB;
  color: #8B4513;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1400;
  background: rgba(55,82,91,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.cookie-modal {
  background: #FFF7F1;
  border-radius: 20px;
  padding: 38px 26px 26px 26px;
  max-width: 460px;
  width: 92vw;
  box-shadow: 0 10px 36px 0 rgba(168,98,61,0.13);
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
  animation: cookieModalAppear .34s cubic-bezier(.8, .16, .16,1);
}
@keyframes cookieModalAppear {
  from { opacity: 0; transform: scale(0.93); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-categories {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal label {
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #37525B;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}
.cookie-toggle {
  accent-color: #A8623D;
  width: 1.3em;
  height: 1.3em;
}
.cookie-category-essential {
  opacity: 0.65;
  pointer-events: none;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 9px; right: 9px;
  background: none;
  border: none;
  color: #A8623D;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 11px;
  padding: 2px 7px;
  transition: background .15s;
}
.cookie-modal .close-modal:focus {
  background: #FFE7CB;
}

/* FORM ELEMENTS */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 13px;
  border-radius: 11px;
  border: 1px solid #E7D3BE;
  background: #FFF;
  margin-bottom: 18px;
  color: #37525B;
  outline: none;
  box-shadow: 0 1px 3px 0 rgba(168,98,61,0.04);
  transition: border .16s, box-shadow .14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #A8623D;
  box-shadow: 0 1px 9px 0 #e7d3be99;
}
button:focus {
  outline: 2px solid #A8623D;
  outline-offset: 1.5px;
}

/* THANK-YOU PAGE LINK STYLE */
.text-section a.cta.primary {
  display: inline-flex;
  margin-top: 10px;
}

/* SPACING + RESPONSIVENESS */
@media (max-width: 991px) {
  .footer-nav { gap: 12px; }
  .container { padding-left: 8px; padding-right: 8px; }
  .testimonials { gap: 16px; }
  .card-container, .usp-list, .category-grid, .service-list { gap: 16px; }
  .card, .category-item, .service-item, .usp-list > div { min-width: 90vw; max-width: 100%; }
}
@media (max-width: 768px) {
  .container { max-width: 98vw; }
  .hero { padding: 34px 0 22px 0; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
  .section { margin-bottom: 38px; padding: 28px 8px; border-radius: 12px; }
  .card, .category-item, .service-item, .usp-list > div {
    min-width: 100vw;
    padding: 18px 5vw 14px 5vw;
    border-radius: 13px;
  }
  .content-grid, .card-container, .testimonials, .service-list, .usp-list, .category-grid {
    flex-direction: column;
    gap: 14px;
    justify-content: flex-start;
  }
  .content-wrapper {
    gap: 18px;
  }
  .footer-nav { flex-direction: column; gap: 9px; align-items: flex-start; }
  .text-image-section { flex-direction: column; gap: 18px; }
}
@media (max-width: 560px) {
  h1 { font-size: 1.26rem; }
  h2 { font-size: 1.09rem; }
  .hero { padding: 22px 0 12px 0; border-radius: 0 0 17px 17px; }
  .section { padding: 13px 3vw; }
  .cookie-banner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .cookie-banner .cookie-actions { gap: 12px; }
  .cookie-modal { padding: 19px 4vw 12px 4vw; }
}

/* MICRO-INTERACTIONS */
.cta {
  transition: background .19s, color .19s, box-shadow .23s, transform .17s;
}
.cta:active {
  box-shadow: 0 1px 6px 0 rgba(168,98,61,0.23) !important;
  transform: scale(0.98);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 3px 17px 0 rgba(168,98,61,0.18);
}
.card:active, .service-item:active, .category-item:active {
  transform: scale(0.99);
}
.mobile-nav a:active, .footer-nav a:active {
  color: #FFFFFF !important;
  background: #A8623D;
}

/* SCROLLBAR (nice look, friendly colors) */
body::-webkit-scrollbar {
  width: 9px;
  background: #E7D3BE;
  border-radius: 7px;
}
body::-webkit-scrollbar-thumb {
  background: #FFE7CB;
  border-radius: 7px;
}
body::-webkit-scrollbar-thumb:hover {
  background: #A8623D;
}

/* ACCESSIBILITY: focus-visible styling */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px dashed #A8623D;
  outline-offset: 2px;
}

/* PREVENT OVERLAP: add bottom margin to all non-card elements inside wrappers */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}
/* Prevent last card overlapping */
.card:last-child, .service-item:last-child, .category-item:last-child, .usp-list > div:last-child, .testimonial-card:last-child {
  margin-bottom: 0;
}

/* DECORATIVE IMAGES (only absolute for floating SVG marks etc.) */
.decor-absolute {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

/* PRINT/SELECTION COLORS */
::selection { background: #FFE7CB; color: #37525B; }

/* Hide script tag in footer for proper baseline layout */
footer script { display: none !important; }
