/* ===== CSS RESET & NORMALIZATION ===== */
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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFF8F4;
  color: #4B342C;
  font-family: 'Nunito', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 14px;
}
ul, ol {
  list-style: none;
}
a {
  color: #B58663;
  text-decoration: none;
  transition: color .18s;
  word-break: break-word;
}
a:hover, .main-nav a:focus {
  color: #4B342C;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border-radius: 12px;
  border: 1.5px solid #B5866333;
  padding: 9px 13px;
  transition: border-color .18s, box-shadow .18s;
}
button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid #B58663;
  border-color: #B58663;
}
strong, b {
  font-weight: 700;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 700;
  color: #4B342C;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
h1 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.18rem;
}

/* ===== UTILITIES, CONTAINERS & LAYOUTS ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 22px;
  background: #FFF8F4;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 #B5866322;
  margin-bottom: 20px;
  position: relative;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 6px 28px 0 #B5866350;
}

.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;
  margin-bottom: 20px;
  background: #FFF4EB;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 3px 18px 0 #B5866333;
  border-left: 5px solid #B58663;
}
.testimonial-card p {
  color: #4B342C;
  font-size: 1.07rem;
}
.testimonial-card small {
  color: #7e614a;
}

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

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 #B5866312;
  padding: 0;
  z-index: 20;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo-link img, header img {
  max-height: 50px;
  border-radius: 14px;
  box-shadow: 0 1px 6px 0 #4B342C11;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Quicksand', Arial, sans-serif;
  font-size: 1rem;
  color: #4B342C;
  background: transparent;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background .16s, color .16s;
}
.main-nav a:hover, .main-nav a.active {
  background: #F4E1CF;
  color: #B58663;
}

/* ===== BURGER MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  border: none;
  background: #FFF6EE;
  color: #B58663;
  font-size: 2.1rem;
  padding: 9px 18px 9px 9px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 94vw;
  max-width: 320px;
  height: 100vh;
  background: #FFF8F4;
  box-shadow: -6px 0 25px #B5866330;
  z-index: 222;
  display: flex;
  flex-direction: column;
  padding: 40px 28px 18px 28px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.58,.01,.52,1);
  /* hidden by default; .mobile-menu.active will show it */
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #B58663;
  background: #fff4e2;
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  margin-bottom: 12px;
  padding: 7px 14px 7px 7px;
  border-radius: 50%;
  transition: background .16s;
  cursor: pointer;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #F4E1CF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  color: #4B342C;
  font-size: 1.17rem;
  font-weight: 600;
  padding: 11px 0 11px 6px;
  border-radius: 8px;
  transition: background .18s;
  background: none;
  border: none;
  text-align: left;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F4E1CF;
  color: #B58663;
}

/* ===== GENERAL LAYOUTS & FLEXBOX ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: flex-start;
}
.feature-grid > div, .feature-grid > li {
  flex: 1 1 220px;
  min-width: 200px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 #B5866317;
  padding: 22px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .18s, transform .16s;
}
.feature-grid > div:hover, .feature-grid > li:hover {
  box-shadow: 0 6px 28px 0 #B5866347;
  transform: translateY(-2px) scale(1.018);
}
.feature-grid img {
  width: 46px;
  height: 46px;
  background: #FFF1E2;
  padding: 7px;
  border-radius: 14px;
  margin-bottom: 7px;
  box-shadow: 0 1.5px 6px #B5866330;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.product-grid > div {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 2px 14px #B5866314;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 300px;
  padding: 24px 18px 16px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow .16s, transform .16s;
}
.product-grid > div:hover {
  box-shadow: 0 6px 24px #B5866335;
  transform: translateY(-3px) scale(1.012);
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}
.product-filters > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.product-filters label {
  font-size: 14px;
  color: #7e614a;
  font-weight: 600;
}
.product-filters select,
.product-filters input {
  font-size: 1rem;
  padding: 7.5px 11px;
  border-radius: 9px;
  border: 1.2px solid #B5866333;
}

/* ===== BUTTONS ===== */
.cta, .cta.primary, button.cta, .feature-item button, .product-grid button {
  display: inline-block;
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #B58663;
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 10px 28px;
  font-size: 1.14rem;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 1.5px 8px #B5866314;
  transition: background .18s, color .18s, box-shadow .18s, transform .13s;
}
.cta.primary {
  background: #4B342C;
  color: #fff;
}
.cta:focus, .cta:hover, button.cta:focus, button.cta:hover {
  background: #4B342C;
  color: #fff4e2;
  box-shadow: 0 3px 16px #B5866350;
  transform: translateY(-2px) scale(1.015);
}

/* ===== HERO SECTIONS ===== */
.hero {
  background: #FFF4EB;
  padding: 58px 0 46px 0;
  margin-bottom: 48px;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 9px 32px 0 #B5866310;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 16px;
}
.hero h1 {
  color: #B58663;
  font-size: 2.1rem;
}

/* ===== TEXT BLOCKS & TYPOGRAPHY ===== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fffefc;
  border-radius: 12px;
  padding: 20px 18px 18px 18px;
  box-shadow: 0 2px 10px #f4e1cf22;
}
.text-section p {
  color: #4B342C;
  font-size: 1.07rem;
  line-height: 1.7;
}
.text-section strong {
  color: #B58663;
  font-weight: bold;
}
.text-section blockquote {
  border-left: 4px solid #B58663;
  color: #987151;
  font-style: italic;
  background: #FFF8F4;
  font-size: 1.07rem;
  padding: 14px 22px;
  margin-left: 0;
  margin-right: 0;
  border-radius: 12px;
  margin-bottom: 6px;
}
.privacy-note {
  font-size: 0.96rem;
  color: #987151;
  margin-top: 7px;
}

/* ===== FOOTER ===== */
footer {
  background: #4B342C;
  color: #fff;
  padding: 42px 0 24px 0;
  border-radius: 32px 32px 0 0;
  margin-top: 38px;
  box-shadow: 0 -3px 22px #B5866317;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: center;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff4e2;
  font-size: 0.98rem;
  padding: 3px 9px;
  border-radius: 8px;
  transition: background .12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #B58663;
  color: #fff;
}
footer p {
  color: #FFE2B7;
  font-size: 0.91rem;
}

/* ===== OTHER COMPONENTS ===== */
.highlight {
  background: #FDEAC7;
  color: #B58663;
  font-weight: bold;
  padding: 9px 15px;
  border-radius: 11px;
  box-shadow: 0 0.5px 6px #b5866322;
  text-align: center;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 3000;
  box-shadow: 0 -3px 28px #B5866358;
  background: #FFF4EB;
  color: #4B342C;
  padding: 26px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.28s cubic-bezier(.58,.01,.52,1), opacity .1s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.cookie-banner button, .cookie-banner .cta {
  border-radius: 14px;
  font-size: 1rem;
  padding: 10px 24px;
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 700;
  border: none;
  margin-bottom: 0;
  background: #B58663;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1.5px 8px #B5866314;
  transition: background .13s, color .13s;
}
.cookie-banner button.accept {
  background: #4B342C;
}
.cookie-banner .settings-btn {
  background: #fff;
  color: #B58663;
  border: 1.5px solid #B58663;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #4B342C;
  color: #fff4e2;
}
.cookie-banner .settings-btn:hover {
  background: #FDEAC7;
  color: #4B342C;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.97);
  z-index: 4000;
  width: 95vw;
  max-width: 430px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 9px 66px #4b342c62;
  padding: 34px 19px 19px 19px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 1;
  transition: opacity .18s, transform .22s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-40%) scale(0.98);
}
.cookie-modal .modal-close {
  position: absolute;
  right: 17px; top: 14px;
  background: #FDEAC7;
  color: #B58663;
  border: none;
  font-size: 1.4rem;
  border-radius: 50%;
  padding: 2px 12px 2px 6px;
  cursor: pointer;
  transition: background .15s;
}
.cookie-modal .modal-close:focus,
.cookie-modal .modal-close:hover {
  background: #B5866330;
  color: #4B342C;
}
.cookie-modal h3 {
  color: #B58663;
  font-size: 1.23rem;
  margin-bottom: 0;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #B5866316;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-weight: 600;
  color: #7e614a;
  font-size: 1.06rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: #B58663;
  width: 20px;
  height: 20px;
}
.cookie-category .always-on {
  background: #F4E1CF;
  color: #B58663;
  border-radius: 7px;
  padding: 5px 13px;
  font-size: .92rem;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal button {
  font-size: 1rem;
  border-radius: 15px;
  background: #B58663;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background .13s;
}
.cookie-modal button:focus,
.cookie-modal button:hover {
  background: #4B342C;
}

/* ===== FORMS (For Product Filters, etc.) ===== */
select, input[type="text"] {
  min-width: 150px;
  background: #FFF8F4;
  border-radius: 9px;
  border: 1.2px solid #B5866333;
  color: #4B342C;
  font-size: 1rem;
  padding: 7.5px 11px;
  margin-bottom: 2px;
}

/* ===== RESPONSIVE (MOBILE FIRST) ===== */
@media (max-width: 1060px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 868px) {
  .feature-grid {
    gap: 17px;
  }
  .product-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 9px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid {
    flex-direction: column;
    gap: 15px;
  }
  .content-grid {
    flex-direction: column;
    gap: 19px;
  }
  .product-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .hero {
    padding-top: 32px;
    padding-bottom: 25px;
    border-radius: 0 0 28px 28px;
    margin-bottom: 34px;
  }
  .section {
    padding: 26px 7px;
    margin-bottom: 36px;
  }
  .testimonial-card {
    padding: 18px 10px;
  }
}
@media (max-width: 510px) {
  .hero h1 {
    font-size: 1.25rem;
  }
  h2 {
    font-size: 1rem;
  }
  .content-wrapper {
    gap: 10px;
  }
}

/* ===== MICRO-ANIMATIONS ===== */
.cta, .cta.primary, button.cta, .feature-grid > div, .feature-grid > li, .product-grid > div, .testimonial-card {
  transition: box-shadow .19s, background .16s, color .16s, transform .15s;
}
input, select, button {
  transition: border-color .16s, box-shadow .19s;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid #B58663;
  outline-offset: 2px;
}

/* ===== Z-INDEX ===== */
.mobile-menu, .cookie-modal, .cookie-banner {
  z-index: 9999;
}

/* ===== SPECIAL CLASSES ===== */
ol {
  list-style: decimal inside;
  margin-left: 1.3em;
  padding-left: 0;
}
ul {
  list-style: disc inside;
  margin-left: 0.8em;
}
ul li, ol li {
  margin-bottom: 10px;
}

/* End of warm_friendly flex CSS for Cucina Viva */
