/* === CSS RESET & VINTAGE RETRO 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,main,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; height: 100%; -webkit-font-smoothing: antialiased; }
*,*:before,*:after { box-sizing: inherit; }
img { max-width: 100%; height: auto; display: block; }
body { min-height: 100%; background: #f4ebdb; color: #1d2439; line-height: 1.6; font-family: 'Montserrat', Arial, sans-serif; font-size: 16px; }

/* === BRAND & RETRO FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Playfair+Display:wght@700&display=swap');

h1,h2,h3,h4,h5,h6 {
  font-family: 'Playfair Display', serif;
  color: #1d2439;
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.5rem; line-height: 1.13; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.15rem; }

p, li, span, a { font-family: 'Montserrat', Arial, sans-serif; }
p, li {
  font-size: 1rem;
}
.subheadline {
  font-family: 'Playfair Display', serif;
  color: #7d6241;
  font-size: 1.25rem;
  margin-bottom: 18px;
  font-style: italic;
}

/* === COLORS - RETRO PALETTE === */
:root {
  --brand-primary: #1d2439;
  --brand-secondary: #e0a96d;
  --brand-accent: #f6f3ee;
  --retro-dark-blue: #2d3142;
  --retro-cream: #f6f3ee;
  --retro-sand: #ffe1bb;
  --retro-brown: #af7c47;
  --retro-orange: #e59c61;
  --retro-green: #7e8f71;
  --retro-red: #d9575c;
  --retro-teal: #55828b;
}

/* === LAYOUT CONTAINERS & SPACING === */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-cream);
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(94,52,5, 0.07);
  position: relative;
}

/* Card Layouts & Flex Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff8ed;
  border: solid 2px #e0a96d;
  border-radius: 16px;
  box-shadow: 0 4px 16px 0 rgba(94,52,5,0.08);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.18s cubic-bezier(.6,.4,.32,1), box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  min-width: 220px;
}
.card:hover, .card:focus-within {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 8px 32px 0 rgba(94,52,5,0.14);
  z-index: 2;
}

.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 28px;
  margin-bottom: 20px;
  background: #fff;
  border-left: 8px solid var(--retro-orange);
  border-radius: 14px 20px 16px 10px;
  box-shadow: 0 4px 20px 0 rgba(80,60,30,0.10);
  font-size: 1.1rem;
  position: relative;
  color: #23212b;
  max-width: 600px;
}
.testimonial-card strong {
  font-family: 'Playfair Display', serif;
  color: #af7c47;
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 20px;
  list-style: none;
}
.features-grid li {
  background: #fff8ed;
  border: 2px dashed #af7c47;
  border-radius: 16px;
  box-shadow: 0 3px 10px 0 rgba(182,139,61,0.11);
  flex: 1 1 200px;
  min-width: 210px;
  padding: 24px 20px;
  margin-bottom: 0;
  transition: box-shadow .17s, transform .18s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.features-grid li img {
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  background: #ffe1bb;
  border-radius: 50%;
  padding: 7px;
  border: 2px solid #e0a96d;
  box-shadow: 0 1px 4px 0 rgba(160,99,12,0.06);
}
.features-grid li:hover {
  background: #ffe1bb;
  transform: translateY(-5px) scale(1.012);
  box-shadow: 0 6px 24px 0 rgba(182,139,61,0.16);
  z-index: 2;
}

.text-section {
  margin-bottom: 24px;
}
.text-section ul, .text-section ol {
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.text-section li {
  margin-bottom: 7px;
}

/* === BUTTONS & LINKS === */
.cta-btn {
  background: var(--brand-secondary);
  color: #23212b;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: .4px;
  font-weight: bold;
  padding: 13px 36px;
  margin-top: 18px;
  border-radius: 27px;
  border: none;
  box-shadow: 0 2px 6px 0 rgba(160,99,12,0.09);
  transition: background 0.18s, color 0.18s, transform 0.13s;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #af7c47;
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}
.main-nav a {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-right: 24px;
  text-decoration: none;
  padding: 8px 2px;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.22s, color 0.17s;
  font-size: 1.08rem;
}
.main-nav a:last-child {
  margin-right: 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: #af7c47;
  border-bottom: 2px solid #e0a96d;
}

/* Footer links */
.footer-nav a {
  color: #af7c47;
  margin-right: 14px;
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #1d2439; text-decoration: underline; }

/* === HEADER & NAV === */
header {
  width: 100%;
  background: #fff8ed;
  border-bottom: 3px solid #e0a96d;
  padding-top: 8px;
  padding-bottom: 8px;
  position: relative;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header img[alt="NatriWagon Šperky"] {
  height: 54px;
  width: auto;
  margin-right: 24px;
  margin-bottom: 0;
}
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}


/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #af7c47;
  padding: 6px 18px 6px 6px;
  cursor: pointer;
  z-index: 1200;
  position: absolute;
  top: 18px;
  right: 22px;
  border-radius: 10px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #ffe1bb;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 84vw;
  max-width: 350px;
  background: #fff8ed;
  box-shadow: 3px 0 38px 0 rgba(61,41,23,0.23);
  z-index: 2000;
  transform: translateX(-105%);
  transition: transform 0.33s cubic-bezier(0.86, 0, 0.07, 1);
  flex-direction: column;
  padding: 28px 0 0 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #af7c47;
  align-self: flex-end;
  margin: 0 16px 16px 0;
  cursor: pointer;
  padding: 4px 16px 4px 6px;
  border-radius: 10px;
  transition: background 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #ffe1bb;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-left: 32px;
  margin-right: 16px;
}
.mobile-nav a {
  color: #1d2439;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 12px 0;
  border-bottom: 1.5px solid #e0a96d;
  transition: color 0.15s, background 0.13s;
}
.mobile-nav a:last-child {
  margin-bottom: 20px;
  border-bottom: none;
}
.mobile-nav a:focus, .mobile-nav a:hover { color: #af7c47; background: #ffe1bb; }

/* === FOOTER === */
footer {
  width: 100%;
  background: #fff8ed;
  border-top: 3px solid #e0a96d;
  padding: 30px 0 18px 0;
  margin-top: 35px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-nav, .footer-contact, .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav {
  flex: 1 1 240px;
  min-width: 170px;
  margin-bottom: 14px;
}
.footer-contact {
  flex: 2 1 340px;
  min-width: 220px;
  color: #7e8f71;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
  margin-bottom: -3px;
}
.footer-brand {
  flex: 1 1 100px;
  align-items: flex-end;
}
.footer-brand img {
  width: 58px;
  height: auto;
}

/* === COOKIE BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #fff8ed;
  box-shadow: 0 -2px 18px 0 rgba(50,31,10,0.13);
  border-top: 2.5px solid #e0a96d;
  padding: 22px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  max-width: 100vw;
  transition: bottom 0.25s;
}
.cookie-banner.hide {
  bottom: -180px;
  transition: bottom 0.25s;
}
.cookie-banner .cookie-text {
  font-size: 1rem;
  color: #2d3142;
  margin-bottom: 4px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn {
  background: #e0a96d;
  color: #23212b;
  border: none;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 22px;
  cursor: pointer;
  margin-right: 3px;
  font-weight: 600;
  transition: background .16s, color .17s, box-shadow .13s;
  box-shadow: 0 2px 4px 0 rgba(160,99,12,0.07);
}
.cookie-btn:hover, .cookie-btn:focus { background: #af7c47; color: #fff; }
.cookie-btn.secondary {
  background: #fff;
  color: #e0a96d;
  border: 2px solid #e0a96d;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus{ background: #fffbe7; color: #af7c47; }

.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 3500;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(90, 71, 57, 0.48);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff8ed;
  border-radius: 18px;
  box-shadow: 0 8px 40px 0 rgba(94,52,5,0.21);
  max-width: 360px;
  width: 94vw;
  padding: 36px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookieModalPop .36s cubic-bezier(.42,0,.22,1);
}
@keyframes cookieModalPop {
  0% { transform: scale(0.86); opacity: 0; }
  85% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.28rem;
  margin-bottom: 12px;
  color: #af7c47;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.04rem;
}
.cookie-modal-category label {
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-toggle {
  width: 28px;
  height: 15px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input { display: none; }
.cookie-switch {
  position: absolute;
  cursor: pointer;
  left: 0; top: -2px;
  width: 28px;
  height: 16px;
  background: #e0a96d;
  border-radius: 16px;
  transition: background 0.15s;
}
.cookie-toggle input:checked + .cookie-switch {
  background: #7e8f71;
}
.cookie-switch::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}
.cookie-toggle input:checked + .cookie-switch::before {
  transform: translateX(10px);
}
.cookie-modal .close-modal {
  position: absolute;
  top: 10px; right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #af7c47;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 7px;
  padding: 3px 10px 3px 3px;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #ffe1bb;
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
  .cta-btn, .cookie-btn, .card, .features-grid li, .mobile-menu {
    transition: all 0.17s;
  }
}

/* === RESPONSIVE & FLEX SWITCHES (MOBILE-FIRST) === */
@media (max-width: 1099px) {
  .container { max-width: 92vw; }
  .content-wrapper { max-width: 700px; }
}
@media (max-width: 900px) {
  .features-grid { gap: 20px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.07rem; }
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
  }
  .features-grid {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid li {
    min-width: 0; width: 100%;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  .card-container { gap: 12px; }
  .testimonial-card {
    padding: 16px 12px;
    max-width: 98vw;
  }
  .footer-nav, .footer-contact, .footer-brand {
    min-width: 120px;
    font-size: 0.95rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .container { padding-left: 8px; padding-right: 8px; }
  .content-wrapper { max-width: 98vw; }
  .footer-brand { align-items: flex-end; }
}
@media (max-width: 580px) {
  header img[alt="NatriWagon Šperky"] {
    height: 35px;
    margin-right: 5px;
  }
}

/* --- MOBILE NAVIGATION LOGIC --- */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .cta-btn { font-size: 1rem; padding: 10px 18px; }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
  nav.main-nav { display: flex; }
}

/* === UTILITY & ACCESSIBILITY === */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === VINTAGE/RETRO EFFECTS & ACCENTS === */
.section {
  border: 2px solid #e0a96d;
  border-style: dotted dashed solid dashed;
  background: repeating-linear-gradient(
    135deg, #f6f3ee 0px, #f6f3ee 19px, #fff8ed 19px, #fff8ed 38px);
  box-shadow: 0 2px 15px 0 rgba(173,124,48,0.13);
}
.card, .features-grid li, .testimonial-card {
  background-image: repeating-linear-gradient(135deg, #fffbe7 0 18px, #ffe1bb 18px 38px);
}
.testimonial-card {
  border-left: 8px double #af7c47;
}
.features-grid li {
  border-style: dashed;
}
.main-nav a, .mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.01rem;
}

/* === RETRO BADGE & SHADOW EFFECTS === */
.cta-btn, .cookie-btn, .mobile-menu-close, .mobile-menu-toggle {
  box-shadow: 0 2px 8px rgba(190,140,50,0.11);
}

/* === SPELL OUT BUTTONS & TABS --- */
.cta-btn, .cookie-btn { letter-spacing: 1.2px; text-transform: uppercase; }

/* === FORM ELEMENTS (if any) === */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
}

/* === OVERLAP PREVENTION === */
.card, .features-grid li, .testimonial-card, .section {
  margin-bottom: 20px;
}

/* === Z-INDEX FOR NAVIGATION & BANNERS === */
header { z-index: 1500; position: sticky; top: 0; background: #fff8ed; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 3500; }

/* === DARK TEXT FOR TESTIMONIAL CARD === */
.testimonial-card, .testimonial-card p, .testimonial-card span, .testimonial-card strong {
  color: #23212b;
}

/* === MICROINTERACTIONS === */
.card:hover, .features-grid li:hover, .cta-btn:hover, .cookie-btn:hover,
.cta-btn:focus, .cookie-btn:focus {
  filter: brightness(1.03);
  outline: none;
}

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