/* ====================================================================== */
/* 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; }
*, *:before, *:after { box-sizing: inherit; }

body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: linear-gradient(120deg, #F5F3EE 0%, #E9EEEA 100%);
  color: #40613B;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
button, input, select, textarea { font-family: inherit; font-size: 1em; }

ul, ol { list-style: none; }

/* ====================================================================== */
/* FONT IMPORTS                                                           */
/* ====================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600;700&display=swap');

/* ====================================================================== */
/* VARIABLE DEFINITIONS                                                   */
/* ====================================================================== */
:root {
  --color-primary: #40613B;
  --color-secondary: #F5F3EE;
  --color-accent: #C99B58;
  --color-light: #fff;
  --color-muted: #E9EEEA;
  --color-dark: #2B3723;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --shadow: 0 6px 16px rgba(64, 97, 59, 0.09), 0 1.5px 5px rgba(0,0,0,0.05);
  --shadow-card: 0 2px 12px rgba(64, 97, 59, 0.09), 0 0.5px 2px rgba(0,0,0,0.045);
  --radius: 20px;
  --gap-section: 60px;
  --gap-flex: 24px;
  --transition: all 0.26s cubic-bezier(.4,0,.2,1);
}

/* ====================================================================== */
/* TYPOGRAPHY                                                             */
/* ====================================================================== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.18;
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}
h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}
p, ul li, ol li, .text-section, .card p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-dark);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.text-section em {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 600;
}
strong { font-weight: bold; color: var(--color-primary); }

/* Typography scale responsive */
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.375rem; }
  h3, .h3 { font-size: 1.125rem; }
}

/* ====================================================================== */
/* GENERAL LAYOUT                                                         */
/* ====================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* For main content, no overlapping! */
main > .section, section {
  margin-bottom: 60px;
}

/* ====================================================================== */
/* HEADER & NAVIGATION                                                    */
/* ====================================================================== */
header {
  width: 100%;
  background: linear-gradient(120deg, #F5F3EE 0%, #E6EDDE 100%);
  box-shadow: 0 4px 18px rgba(64, 97, 59, 0.07);
  position: relative;
  z-index: 20;
}
header .container {
  min-height: 72px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header img {
  height: 40px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 6px 0;
  transition: color 0.22s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-accent);
}
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(90deg, var(--color-primary) 68%, var(--color-accent) 100%);
  color: var(--color-light);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 12px rgba(64, 97, 59, 0.11);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: var(--transition);
  margin-left: 16px;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-accent) 100%);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 4px 18px rgba(201,155,88,0.13);
}
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: var(--color-light);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(201,155,88,0.08);
  transition: var(--transition);
  margin-right: 8px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: #B8833A;
  transform: translateY(-1.5px) scale(1.018);
}

/* ====================================================================== */
/* MOBILE BURGER MENU                                                     */
/* ====================================================================== */
.mobile-menu-toggle {
  position: absolute;
  z-index: 60;
  right: 22px;
  top: 24px;
  font-size: 2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  display: none;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.23s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #e3e9e4;
}

@media (max-width: 1020px) {
  header .container {
    gap: 8px;
  }
  header nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #F5F3EE 60%, #40613B 100%);
  transform: translateX(110vw);
  transition: transform 0.35s cubic-bezier(.7,.15,.4,1.1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 28px;
  padding-left: 0;
  padding-right: 0;
  box-shadow: 0 8px 32px rgba(64,97,59,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 22px;
  top: 22px;
  font-size: 2.2rem;
  background: none;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.22s;
  z-index: 210;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #e3e9e4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 80px 36px 30px 36px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
  padding: 10px 8px;
  border-radius: 12px;
  transition: background 0.16s, color 0.21s;
  min-width: 200px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-light);
}

@media (max-width: 900px) {
  .btn-primary { display: none; }
}

@media (max-width: 600px) {
  .mobile-nav { padding: 60px 14px 20px 14px; }
}

/* ====================================================================== */
/* MAIN CONTENT SECTIONS & FLEX LAYOUTS                                   */
/* ====================================================================== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 350px;
  background: var(--color-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 26px 16px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border: 1.5px solid #e2e8df;
  transition: box-shadow 0.26s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 19px rgba(201,155,88,0.12), var(--shadow-card);
}
.features-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}

.product-grid,
.testimonial-slider,
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.product-grid > div,
.card {
  flex: 1 1 240px;
  min-width: 220px;
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 22px 14px 22px;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
  gap: 12px;
  transition: box-shadow 0.23s, transform 0.22s;
}
.card:hover, .product-grid > div:hover {
  box-shadow: 0 7px 21px rgba(64, 97, 59, 0.18);
  transform: scale(1.03);
}
.card h3 {
  margin-bottom: 6px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.text-image-section .content {
  flex: 2;
  min-width: 260px;
}
.text-image-section img {
  flex: 1;
  min-width: 170px;
  max-width: 340px;
  margin: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}

/* List styles */
ul, ol {
  margin-bottom: 14px;
}
ul li, ol li {
  padding-left: 0;
  margin-bottom: 4px;
}
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 12px;
}
.contact-info-list img { width: 20px; height: 20px; }

/* ====================================================================== */
/* TESTIMONIALS                                                           */
/* ====================================================================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  flex: 1 1 320px;
  min-width: 250px;
  max-width: 475px;
  font-size: 1.06rem;
  margin-bottom: 20px;
  border-left: 8px solid var(--color-accent);
  color: #23281f;
  transition: box-shadow 0.17s;
}
.testimonial-card p {
  color: #23281f;
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 0;
  font-style: italic;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: 0.99rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 7px 19px rgba(201,155,88,0.13), var(--shadow-card);
}

/* ====================================================================== */
/* FOOTER                                                                 */
/* ====================================================================== */
footer {
  background: linear-gradient(120deg, #E6EDDE 30%, #F5F3EE 100%);
  border-top: 1.5px solid #e2e8df;
  margin-top: 40px;
  padding: 48px 0 16px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  flex: 2;
  margin-bottom: 14px;
  color: var(--color-dark);
  font-size: 1rem;
  font-family: var(--font-display);
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-contact {
  flex: 3;
  font-size: 0.98rem;
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact img { vertical-align: middle; margin-right: 6px; width:20px; height:20px; }
.footer-brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.96rem;
  color: var(--color-muted);
  margin-top: 18px;
}
.footer-brand img {
  width: 38px; height: 38px;
}
footer span {
  color: #40613B;
}

/* ====================================================================== */
/* FORM ELEMENTS                                                          */
/* ====================================================================== */
input, select, textarea {
  border-radius: 8px;
  border: 1.4px solid #cfcfcf;
  padding: 9px 14px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border 0.2s, background 0.22s;
  margin-bottom: 12px;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #F5F3EE;
}
select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #F5F3EE;
}

label { font-family: var(--font-body); font-weight: 600; color: #40613B; }

.sorting-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.sorting-filters select {
  min-width: 140px;
}

/* ====================================================================== */
/* NEWSLETTER SIGN UP                                                     */
/* ====================================================================== */
.newsletter-signup {
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* ====================================================================== */
/* COOKIE CONSENT BANNER                                                  */
/* ====================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 9000;
  background: #fff;
  border-top: 2px solid #E6EDDE;
  box-shadow: 0 -4px 20px rgba(64,97,59,0.14);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 20px 26px 20px;
  max-width: 100vw;
  transition: transform 0.37s cubic-bezier(.4,0,.2,1);
  font-size: 1rem;
  font-family: var(--font-body);
}
.cookie-banner.hide {
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner .cookie-banner-content {
  flex: 3;
  color: #2B3723;
}
.cookie-banner .cookie-banner-actions {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-banner .btn {
  padding: 10px 19px;
  border-radius: 22px;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  margin-bottom: 0;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .accept {
  background: var(--color-primary);
  color: var(--color-light);
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #2B3723;
}
.cookie-banner .reject {
  background: #ebe8e2;
  color: var(--color-primary);
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #DDDAD3;
}
.cookie-banner .settings {
  background: var(--color-accent);
  color: var(--color-light);
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #B8833A;
}

@media (max-width: 700px) {
  .cookie-banner{
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 18px 8px 18px 8px;
    font-size: 0.95rem;
  }
  .cookie-banner .cookie-banner-actions {
    gap: 8px;
  }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  background: var(--color-light);
  box-shadow: 0 8px 32px rgba(64,97,59,0.14);
  border-radius: var(--radius);
  z-index: 9100;
  width: 90vw;
  max-width: 420px;
  max-height: 84vh;
  transform: translate(-50%,-60%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  padding: 40px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: opacity 0.22s, transform 0.22s;
}
.cookie-modal.open {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
  pointer-events: auto;
}
.cookie-modal h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 20px; height: 20px;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0 12px 0;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  margin-top: 14px;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .btn {
  font-family: var(--font-display);
  border-radius: 22px;
  padding: 10px 21px;
  border: none;
  font-weight: 700;
  font-size: 0.99rem;
  cursor: pointer;
  background: var(--color-secondary);
  color: var(--color-primary);
  transition: background 0.18s, color 0.18s;
}
.cookie-modal .btn.primary {
  background: var(--color-primary);
  color: var(--color-light);
}
.cookie-modal .btn.primary:hover,
.cookie-modal .btn.primary:focus {
  background: #2B3723;
}
.cookie-modal .btn.close {
  background: #ebe8e2;
  color: var(--color-primary);
}
.cookie-modal .btn.close:hover,
.cookie-modal .btn.close:focus {
  background: #DDDAD3;
}

/* ====================================================================== */
/* RESPONSIVE DESIGN                                                      */
/* ====================================================================== */
@media (max-width: 1040px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  .footer-brand {
    flex-basis: 100%;
    margin-top: 0;
    justify-content: flex-start;
  }
  .footer-contact, .footer-nav {
    flex-basis: 100%;
  }
  .container { gap: 18px; padding: 0 10px; }
}
@media (max-width: 830px) {
  .features-grid, .product-grid, .testimonial-slider, .card-container, .card-grid {
    gap: 16px;
  }
  .features-grid > div, .product-grid > div, .testimonial-card, .card {
    min-width: 167px;
  }
}
@media (max-width: 768px) {
  .container, footer .container {
    flex-direction: column !important;
    gap: 22px;
  }
  .features-grid{
    flex-direction: column;
    align-items: stretch;
  }
  .features-grid > div {
    max-width: 100%;
    width: 100%;
  }
  .testimonial-slider, .card-container, .card-grid, .product-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 18px 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .newsletter-signup {
    padding: 18px 7px;
  }
  .section {
    padding: 25px 6px;
    margin-bottom: 34px;
  }
  footer {
    padding: 30px 0 14px 0;
  }
}
@media (max-width: 520px) {
  h1, .h1 { font-size: 1.33rem; }
  h2, .h2 { font-size: 1.10rem; }
  .testimonial-card { font-size: 0.91rem; }
  .footer-nav, .footer-contact, .footer-brand { font-size: 0.90rem; }
}

/* ====================================================================== */
/* MICRO-INTERACTIONS                                                    */
/* ====================================================================== */
a, .btn-primary, .btn-secondary, .mobile-menu-toggle,
.mobile-menu-close, .cookie-banner .btn,
.cookie-modal .btn {
  transition: var(--transition);
}

.card, .features-grid > div, .testimonial-card, .newsletter-signup,
.product-grid > div {
  transition: box-shadow 0.23s, transform 0.21s;
}
.card:hover, .features-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 8px 22px rgba(64,97,59,0.13), var(--shadow-card);
  transform: translateY(-2px) scale(1.013);
}

nav a:focus, .mobile-nav a:focus, .btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2.5px;
}

/* ================= Helper Classes & Extra for Spacing ================= */
.mt-20 { margin-top: 20px!important; }
.mb-20 { margin-bottom: 20px!important; }
.mt-32 { margin-top: 32px!important; }
.mb-32 { margin-bottom: 32px!important; }
.gap-12 { gap: 12px!important; }
.gap-20 { gap: 20px!important; }

/* Hide elements visually (for accessibility modifiers) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ====================================================================== */
/* END OF CSS                                                            */
/* ====================================================================== */
