/* ==========================================================
   CSS RESET & BASELINE NORMALIZATION FOR ELEGANT CLASSIC THEME
   ========================================================== */

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,
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.7;
  background: #F8F4F0;
  color: #263238;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #8E5C3C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B97A50;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}

/* ============================
   TYPOGRAPHY - Elegant classic
   ============================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 700;
  color: #263238;
  margin-bottom: 0.8em;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.18;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}
h4 {
  font-size: 1.1rem;
  line-height: 1.3;
}
p, li, blockquote, cite {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #263238;
}
blockquote {
  font-style: italic;
  color: #544B43;
  padding-left: 1.2em;
  border-left: 3px solid #B97A50;
  margin-bottom: 0.5em;
}
cite {
  display: block;
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: #8E5C3C;
  font-size: 0.9375rem;
  margin-top: 0.3em;
  font-style: normal;
}
strong {
  font-weight: bold;
}
em {
  font-style: italic;
}

/* =======================
   CONTAINER & PAGE STRUCTURE
   ======================= */
.container {
  max-width: 1070px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ================
   HEADER
   ================ */
header {
  background: #FFF;
  border-bottom: 1px solid #EBE5DD;
  position: sticky;
  top: 0;
  z-index: 202;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  height: 72px;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  padding: 0;
}
.logo img {
  height: 36px;
}
.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #263238;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color 0.18s, border-bottom-color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #8E5C3C;
  border-bottom-color: #B97A50;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #8E5C3C;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px 12px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #B97A50;
}
/* =====================
   MOBILE MENU OVERLAY
   ===================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #F8F4F0;
  box-shadow: 0 0 32px 0 rgba(38,50,56,0.08);
  z-index: 3000;
  transform: translateX(-115%);
  transition: transform 0.36s cubic-bezier(.82,.01,.63,1.08);
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100vw;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  font-weight: bold;
  color: #8E5C3C;
  padding: 18px 24px 6px 24px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #263238;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 28px 20px 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #263238;
  padding: 12px 0;
  background: none;
  border-bottom: 1px solid #EAD7C0;
  transition: color 0.17s, background 0.17s;
  border-radius: 4px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #8E5C3C;
  background: #FCF9F7;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}


/* ================
   SECTION SPACING & LAYOUTS
   ================ */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 16px;
}
.content-wrapper {
  gap: 32px;
  padding: 0;
  background: none;
}

/* ================
   CARDS & FLEX GRIDS
   ================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(38, 50, 56, 0.05);
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/****** Features grid on index, katalog... *****/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  list-style: none;
}
.feature-grid li {
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(38, 50, 56, 0.05);
  padding: 26px 20px 18px 20px;
  flex: 1 1 225px;
  min-width: 195px;
  max-width: 295px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.19s;
}
.feature-grid li img {
  height: 38px;
  width: 38px;
  margin-bottom: 8px;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 4px 18px 0 rgba(38, 50, 56, 0.13);
  transform: translateY(-3px) scale(1.015);
}

/**** Product listing (Katalog page) ****/
.product-listing {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
  margin-bottom: 24px;
}
.product-listing li {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 2px 5px 0 rgba(38, 50, 56, 0.05);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  justify-content: space-between;
}
.product-listing .cta-btn.small {
  font-size: 0.92rem;
  padding: 7px 20px;
  min-width: unset;
}

/**** USP banner ****/
.usp-banner {
  background: #FFF;
  border: 2px solid #EBE5DD;
  border-radius: 16px;
  padding: 32px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 2px 8px 0 rgba(38, 50, 56, 0.08);
  margin-bottom: 0;
}
.usp-banner ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 0 0;
}
.usp-banner li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #263238;
}
.usp-banner img {
  height: 26px;
}

/* ================
   TESTIMONIALS
   ================ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #FAF7F3;
  border-left: 5px solid #B97A50;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px 0 rgba(38, 50, 56, 0.04);
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 32px 0 rgba(38,50,56,0.07);
}
.testimonial-card blockquote {
  font-size: 1.06rem;
  color: #39302a;
  font-style: italic;
  border-left: none;
  padding-left: 0;
  margin: 0 0 0 0;
}
.testimonial-card cite {
  color: #8E5C3C;
  font-style: normal;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
}

/* ================
   BUTTONS & CTA
   ================ */
.cta-btn, .cta-link, .category-buttons button {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  background: #8E5C3C;
  color: #FFF;
  border-radius: 7px;
  padding: 11px 28px;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 4px 0 rgba(38,50,56,0.09);
  cursor: pointer;
  border: none;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.18s, color 0.18s, box-shadow 0.20s, transform 0.20s;
  min-width: 156px;
}
.cta-btn.primary {
  background: #B97A50;
}
.cta-link {
  background: none;
  color: #B97A50;
  border: none;
  box-shadow: none;
  padding: 0;
  text-decoration: underline;
  min-width: 0;
  font-size: 1.04rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 5px;
}
.cta-btn:hover, .cta-link:hover,
.cta-btn:focus, .cta-link:focus, .category-buttons button:hover, .category-buttons button:focus {
  background: #263238;
  color: #FFF;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 rgba(38,50,56,0.16);
  transform: translateY(-2px) scale(1.02);
}
.category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0 0;
}
.category-buttons button {
  background: #F8F4F0;
  color: #8E5C3C;
  border: 1px solid #B97A50;
  padding: 8px 22px;
  border-radius: 5px;
  font-size: 0.97rem;
  min-width: 95px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background 0.18s, color 0.16s;
  cursor: pointer;
}

/* ================
   FORMS & INPUTS
   ================ */
input[type="text"], input[type="email"], textarea, select {
  background: #FFF;
  border: 1px solid #EBE5DD;
  border-radius: 6px;
  padding: 10px 13px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #263238;
  transition: border 0.18s;
  width: 100%;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border-color: #B97A50;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #544B43;
  font-size: 0.99rem;
  margin-bottom: 3px;
  display: block;
}

/* ================
   FOOTER
   ================ */
footer {
  background: #FCFCFA;
  border-top: 1px solid #EBE5DD;
  margin-top: 46px;
}
footer .container {
  padding: 0 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: center;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #8E5C3C;
  font-size: 1rem;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #263238;
}
.footer-branding {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #B97A50;
  font-size: 0.97rem;
  padding-bottom: 18px;
}
.footer-branding img {
  height: 34px;
}

/* ==============
   MISC ELEMENTS
   ==============
*/
details {
  background: #FFF7F0;
  border: 1px solid #EBE5DD;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 18px 16px 14px 18px;
}
details summary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  color: #8E5C3C;
  outline: none;
  margin-bottom: 7px;
}
details[open] summary {
  color: #B97A50;
  font-weight: 700;
}

.text-section {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.static-map-embed {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 9px 0 rgba(38,50,56,0.09);
}
.success-message {
  background: #F6F5F3;
  border: 1.5px solid #E1D9CF;
  border-radius: 16px;
  padding: 32px 24px;
  margin-bottom: 32px;
  font-size: 1.04rem;
  color: #263238;
}
.success-message a.cta-btn {
  margin-top: 16px;
}

/* ================
   RESPONSIVE ADJUSTMENTS
   ================ */
@media (max-width: 990px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid li {
    min-width: 100%;
    max-width: none;
    width: 100%;
  }
  .footer-nav {
    gap: 16px;
    font-size: 0.98rem;
  }
  .content-wrapper, .card-container, .usp-banner ul, .content-grid {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 6px;
  }
  header .container {
    height: 54px;
  }
  section {
    margin-bottom: 40px;
    padding: 26px 4px;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 16px 12px 18px 16px;
    gap: 8px;
  }
  .usp-banner {
    padding: 22px 10px 12px 10px;
  }
  .usp-banner ul {
    gap: 10px;
    flex-direction: column;
  }
  .product-listing li {
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 10px 8px;
  }
  .main-nav {
    display: none !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .footer-nav { flex-direction: column; align-items: center; }
  .footer-branding { gap: 6px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.21rem; }
  .card { padding: 15px; }
  .feature-grid li { padding: 13px 8px 10px 8px; }
  .usp-banner { border-radius: 9px; }
  details { padding: 10px 6px; }
  .success-message { padding: 15px 8px; border-radius: 9px; }
}

/* ===========================
   COOKIE CONSENT BANNER/MODAL
   =========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5010;
  background: #F8F4F0;
  border-top: 1px solid #EAD7C0;
  box-shadow: 0 -2px 16px 0 rgba(38,50,56,0.10);
  padding: 24px 10vw 18px 8vw;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.05rem;
  color: #263238;
  animation: cookieBannerIn 0.6s cubic-bezier(.57,-0.09,.6,1.48);
}
@keyframes cookieBannerIn {
  from { transform: translateY(120%); }
  to { transform: translateY(0); }
}
.cookie-banner__msg {
  flex: 2 1 300px;
  min-width: 120px;
}
.cookie-banner__actions {
  flex: 1 1 180px;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 6px;
  padding: 9px 21px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner__btn.accept {
  background: #B97A50;
  color: #FFF;
}
.cookie-banner__btn.reject {
  background: #FCFCFA;
  color: #8E5C3C;
  border: 1.5px solid #B97A50;
}
.cookie-banner__btn.settings {
  background: #F8F4F0;
  color: #8E5C3C;
  border: 1px solid #EAD7C0;
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: #263238;
  color: #FFF;
}
/* Responsive cookie banner */
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 8px 12px 8px;
    font-size: 0.97rem;
  }
  .cookie-banner__actions {
    gap: 7px;
  }
}

/**** COOKIE MODAL ****/
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(38,50,56,0.28);
  z-index: 5020;
  transition: background 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.24s;
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #FFF;
  border-radius: 18px;
  max-width: 400px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  padding: 34px 26px 28px 28px;
  box-shadow: 0 4px 32px 0 rgba(38,50,56,0.19);
  animation: cookieModalSlide 0.34s cubic-bezier(.57,-0.09,.6,1.48);
}
@keyframes cookieModalSlide {
  from { transform: translateY(40px); opacity: 0.2; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  margin: 0 0 12px 0;
  font-size: 1.16rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-list {
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0 0 16px 0;
}
.cookie-modal-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #263238;
}
.cookie-modal-switch {
  margin-left: auto;
}
.cookie-modal-switch input[type="checkbox"] {
  accent-color: #B97A50;
}
.cookie-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.cookie-modal__footer button {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 9px 19px;
  border-radius: 6px;
  font-size: 0.99rem;
  border: none;
  cursor: pointer;
}
.cookie-modal__footer .accept {
  background: #B97A50;
  color: #FFF;
}
.cookie-modal__footer .reject {
  background: #F8F4F0;
  color: #8E5C3C;
  border: 1.5px solid #B97A50;
}
.cookie-modal__footer .close {
  background: #FCFCFA;
  color: #8E5C3C;
  border: 1px solid #EAD7C0;
}
.cookie-modal__footer button:hover, .cookie-modal__footer button:focus {
  background: #263238;
  color: #FFF;
}

/* Hide modal by default; toggle with class */
.cookie-modal-overlay {
  display: none;
}
.cookie-modal-overlay.active {
  display: flex;
}

/* =================
   SPACING ENFORCE (global)
   ================= */
.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;
}

/* Ensure min 20px between any cards/section */
.card, .feature-grid li, .testimonial-card, .usp-banner, .success-message {
  margin-bottom: 24px;
}
section:last-child, .usp-banner:last-child { margin-bottom: 0; }

/* Prevent overlapping, z stacking for decor only */
.card, .feature-grid li, .usp-banner, .testimonial-card, .content-wrapper, .container {
  position: relative;
  z-index: 1;
}

/* ===================
   SMOOTH TRANSITIONS
   =================== */
* {
  transition-property: box-shadow, background, color, border, transform;
  transition-duration: 0.17s;
  transition-timing-function: cubic-bezier(.5,.15,.7,1.15);
}

/* ===================
   ACCESSIBLE FOCUS STATES
   =================== */
a:focus, button:focus, .cta-btn:focus, .category-buttons button:focus, .mobile-menu-close:focus {
  outline: 2px solid #B97A50;
  outline-offset: 1px;
}

/* ===================
   HIDE SCROLLBAR FOR MOBILE OVERSLAY
   =================== */
.mobile-menu { scrollbar-width: none; }
.mobile-menu::-webkit-scrollbar { display: none; }

/* ==============
   MISC
   ==============
*/
::-webkit-input-placeholder { color: #9c856e; opacity: 1; }
::-moz-placeholder { color: #9c856e; opacity: 1; }
:-ms-input-placeholder { color: #9c856e; opacity: 1; }
::placeholder { color: #9c856e; opacity: 1; }

/****************************
   ELEGANT MICRO-INTERACTIONS
 ****************************/
.cta-btn, .category-buttons button, .cookie-banner__btn, .cookie-modal__footer button {
  will-change: transform;
}
.cta-btn:active, .category-buttons button:active, .cookie-banner__btn:active {
  transform: scale(0.97);
  transition-duration: 0.13s;
}

/********************************
   SUPPORT FOR PRINT (OPTIONAL)
 ********************************/
@media print {
  header, .main-nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay, footer {
    display: none !important;
  }
  section, .section, .container, .content-wrapper {
    box-shadow: none !important;
    background: #FFF !important;
    color: #111 !important;
  }
}
