/* RESET & BASELINE */
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,
br, 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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  background: #F4F6F7;
  color: #17202A;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #8A6F2A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B3A369;
  text-decoration: underline;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 700;
  color: #2D2926;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.4rem;
  letter-spacing: 0.07em;
  text-shadow: 0 2px 0 #fff6, 0 4px 10px #CFBC9A33;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.7rem;
  color: #B3A369;
  text-shadow: 0 1px 0 #fff9;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.25rem;
  color: #17202A;
  margin-bottom: 10px;
}
p, ul, ol {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
}
small, .small {
  font-size: 0.875rem;
  color: #6e6661;
}
strong {
  font-weight: bold;
  color: #17202A;
}

/* VINTAGE RETRO FONTS - FALLBACKS */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* VINTAGE RETRO COLORS */
:root {
  --primary: #17202A;
  --secondary: #B3A369;
  --accent: #F4F6F7;
  --retro-red: #D26C5B;
  --retro-green: #76A69E;
  --retro-blue: #7396AF;
  --retro-orange: #E6AE57;
  --retro-beige: #FEF3DB;
  --dark-text: #17202A;
  --light-bg: #F4F6F7;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-beige);
  box-shadow: 0 6px 34px #b3a36913;
  border-radius: 16px;
}

/* CARDS & FLEXPACKS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffbe9;
  border: 2px solid #e4ce95;
  border-radius: 14px;
  box-shadow: 0 4px 16px #b3a36922;
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px #b3a36955, 0 0px 0px #0000;
  transform: translateY(-4px) scale(1.012);
  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;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* FEATURES & LISTS */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 22px;
}
ul li, ol li {
  padding-left: 0;
  margin-bottom: 8px;
  position: relative;
  list-style: none;
  color: #3C2D1A;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
ul li::before {
  content: '\2714';
  color: var(--secondary);
  margin-right: 12px;
  font-size: 1rem;
  font-family: inherit;
}

/* Remove custom marker if icon exists in li */
ul li img + span, ul li img {
  margin-right: 10px;
}
ul li img {
  position: relative;
  left: 0;
  margin: 0 6px 0 0;
}
ul li img ~ * {
  vertical-align: middle;
}

/* CTA BUTTONS */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary);
  color: var(--primary) !important;
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 3px 14px #b3a36922;
  transition: background 0.2s, color 0.2s, transform 0.14s, box-shadow 0.2s;
  cursor: pointer;
  margin: 24px 0 12px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #E6AE57;
  color: #fff !important;
  transform: translateY(-2px) scale(1.018);
  box-shadow: 0 8px 44px #b3a36955, 0 0px 0px #0000;
}

/* HEADER */
header {
  background: #fffdfa;
  border-bottom: 6px solid #E6AE57;
  box-shadow: 0 7px 32px #E6AE5711;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav > a {
  font-family: 'Playfair Display', serif;
  font-size: 1.04rem;
  color: var(--primary);
  padding: 7px 14px;
  border-radius: 6px;
  background: none;
  transition: color 0.16s, background 0.2s;
  position: relative;
}
.main-nav > a.cta-primary {
  margin-left: 18px;
  background: var(--retro-red);
  color: #fff !important;
  padding: 12px 30px;
  font-size: 1.12rem;
  text-shadow: 0 2px 0 #ba46303d;
}
.main-nav > a.cta-primary:hover, .main-nav > a.cta-primary:focus {
  background: #B3A369;
  color: var(--primary) !important;
}
.main-nav > a:hover:not(.cta-primary), .main-nav > a:focus:not(.cta-primary) {
  background: #E6AE57;
  color: #fff !important;
}
.main-nav > a.active {
  background: #D26C5B33;
  color: var(--retro-red);
}

.main-nav img {
  height: 38px;
  width: auto;
  margin-right: 10px;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  background: var(--retro-red);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 34px;
  z-index: 202;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #B3A369;
  color: var(--primary);
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fffdfa;
  box-shadow: 0 10px 40px #B3A36988;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 210;
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
  justify-content: flex-start;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 24px;
  top: 28px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--retro-red);
  cursor: pointer;
  z-index: 301;
  padding: 8px 12px;
  border-radius: 9px;
  transition: background 0.12s, color 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #B3A36922;
  color: var(--primary);
}
.mobile-nav {
  width: 100%;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-left: 32px;
  padding-right: 32px;
}
.mobile-nav a {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--primary);
  padding: 12px 0;
  background: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  min-width: 120px;
  min-height: 44px;
  display: block;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-red);
  color: #fff !important;
  text-decoration: none;
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* HERO SECTIONS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--retro-beige);
  border-radius: 20px;
  box-shadow: 0 4px 30px #ceb56b10;
}

@media (max-width: 600px) {
  section {
    padding: 22px 6px;
    margin-bottom: 34px;
  }
  .container {
    padding: 0 6px;
  }
}


/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #B3A36933;
  margin-bottom: 20px;
  box-shadow: 0 2px 22px #B3A36921;
  font-style: italic;
  transition: border 0.2s, box-shadow 0.2s, transform 0.12s;
  position: relative;
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #452C25;
  margin: 0 0 10px 0;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: var(--retro-green);
  font-family: 'Playfair Display', serif;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: var(--retro-orange);
  box-shadow: 0 6px 30px #E6AE5742;
  transform: translateY(-2px);
  z-index: 5;
}

/* FOOTER */
footer {
  background: #fffdfa;
  border-top: 6px solid #E6AE57;
  box-shadow: 0 -4px 22px #E6AE5711;
  margin-top: 60px;
}
footer .container {
  padding: 30px 20px 20px 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 200px;
}
.footer-nav a {
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  transition: color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--retro-red);
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px 0;
  font-size: 0.98rem;
  color: #69523d;
}
.contact-info img {
  width: 20px;
  height: 20px;
  filter: grayscale(34%) brightness(1.3);
  margin-right: 7px;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
.social-links a img {
  width: 28px;
  height: 28px;
  transition: filter 0.2s, transform 0.14s;
}
.social-links a:hover img, .social-links a:focus img {
  filter: brightness(0.85) sepia(1) hue-rotate(-18deg) saturate(1.45);
  transform: scale(1.12);
}

@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}

/* TEXT SECTIONS */
.text-section {
  background: #fffdfa;
  border-radius: 16px;
  box-shadow: 0 1px 14px #E6AE5733;
  padding: 30px 20px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* MODALS & BANNERS */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #2D2926;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  padding: 28px 16px 24px 16px;
  z-index: 5000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  box-shadow: 0 -6px 30px #B3A36956;
  animation: slideUpBanner 0.7s cubic-bezier(.33,1.42,.58,1) 0s 1;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  flex: 2;
  font-size: 1rem;
  margin: 0;
}
.cookie-buttons {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-btn, .cookie-btn-settings {
  background: #fffdfa;
  border: 2px solid #B3A369;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  border-radius: 50px;
  padding: 8px 26px;
  font-size: 1.09rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s, color 0.13s, box-shadow 0.2s;
  margin: 0;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #E6AE57;
  color: #fff;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: #D26C5B;
  color: #fff;
  border-color: #D26C5B;
}
.cookie-btn-settings {
  background: #7396AF;
  color: #fff;
  border-color: #7396AF;
  margin-left: 8px;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #185177;
  border-color: #185177;
}


.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  max-width: 96vw;
  min-width: 320px;
  background: #fffdfa;
  border-radius: 20px;
  box-shadow: 0 10px 48px #8A6F2A77;
  transform: translate(-50%, 80%) scale(0.95);
  opacity: 0;
  z-index: 5100;
  transition: opacity 0.23s, transform 0.36s cubic-bezier(.41,1.45,.73,1.31);
  padding: 46px 34px 34px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
  animation: fadeInModal 0.48s cubic-bezier(.48,1.55,.42,.99) 1;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translate(-50%, 5%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.38rem;
  margin-bottom: 8px;
  color: var(--retro-red)
}
.cookie-modal h3 {
  margin-bottom: 4px;
  font-size: 1.13rem;
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.cookie-modal label {
  font-family: 'Roboto', sans-serif;
  color: #17202A;
  font-size: 1rem;
}
.cookie-modal .cookie-toggle {
  margin-left: 8px;
  accent-color: #D26C5B;
}
.cookie-modal .essential {
  font-style: italic;
  color: #777;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal .cookie-btn {
  min-width: 120px;
}
.cookie-modal .cookie-close {
  position: absolute;
  right: 24px;
  top: 28px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--retro-red);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.12s, color 0.13s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  background: #B3A36922;
  color: var(--primary);
}

@media (max-width: 480px) {
  .cookie-modal {
    min-width: 98vw;
    padding: 30px 10px;
  }
}

/* RETRO DECORATIVE ELEMENTS */
section {
  position: relative;
  overflow: hidden;
}
section::before {
  content: '';
  display: block;
  position: absolute;
  top: -36px;
  right: -36px;
  width: 98px;
  height: 98px;
  background: repeating-linear-gradient(-45deg, #fffdfa, #fffdfa 8px, #E6AE57 8px, #E6AE57 16px);
  opacity: 0.18;
  border-radius: 64px;
  z-index: 0;
}
section::after {
  content: '';
  position: absolute;
  left: -34px;
  bottom: -34px;
  width: 70px;
  height: 70px;
  background: repeating-linear-gradient(45deg, #B3A369 0 8px, #F4F6F7 8px 16px);
  border-radius: 50%;
  opacity: 0.12;
  z-index: 0;
}

/* ---- FORM ELEMENTS (for kontakt.html etc.) ---- */
input, select, textarea, button {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  outline: none;
  border-radius: 8px;
}
input, select, textarea {
  padding: 12px;
  border: 1.5px solid #B3A369;
  margin-bottom: 16px;
  background: #fffdfa;
  box-shadow: 0 1px 6px #B3A36911;
  transition: border 0.19s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  border: 1.5px solid #D26C5B;
  box-shadow: 0 1px 10px #D26C5B22;
}
button, .button {
  background: #B3A369;
  border: none;
  color: #fff;
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.15s, color 0.13s, transform 0.12s;
  margin-top: 8px;
}
button:hover, button:focus, .button:hover, .button:focus {
  background: #17202A;
  color: #fffbea;
  transform: scale(1.04);
}

/* RESPONSIVE TYPOGRAPHY */
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.23rem; }
}

/* ADDITIONAL VINTAGE PATTERNS & COLOR POPS */
hr {
  border: 0;
  border-top: 2px dotted #E6AE57;
  margin: 34px 0;
  opacity: 0.25;
}

/* MICRO-INTERACTIONS */
section, .card, .testimonial-card, .cta-primary, .button, .cookie-banner, .cookie-btn {
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, border 0.2s, transform 0.12s;
}

/* SPACING & FLEX GAPS */
.section, section, .content-wrapper, .card-container, .feature-item, .content-grid, .testimonial-card {
  margin-bottom: 20px;
  gap: 20px;
}

/* Hide .main-nav on mobile, show hamburger */
@media (max-width: 992px) {
  .main-nav { display: none; }
  header .container { justify-content: flex-start; }
}

/* Remove section gutter on fullwidth hero */
main>section:first-child {
  margin-top: 22px;
}

/* Print support */
@media print {
  body, section, header, footer {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .cookie-banner, .cookie-modal { display: none !important; }
}
