/* --------------------------------------------------
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;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #f8fafb;
  color: #1A232E;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  min-height: 100vh;
}
a {
  color: #155142;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D8AA72;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol {
  margin-left: 1.25em;
  padding-left: 1em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 0.5em;
}
button {
  font-family: inherit;
  cursor: pointer;
}

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

h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #155142;
  font-weight: 700;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: #155142;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A232E;
}
p, ul, ol, li {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #273040;
  font-size: 1rem;
}
strong {
  font-weight: bold;
}
.section ul{
  margin-bottom: 0;
}

/* --------------------------------------------------
CONTAINER & SECTION
-------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(50,60,70,0.07);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 720px;
}

/* --------------------------------------------------
HEADER & NAVIGATION
-------------------------------------------------- */
header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(36,42,54,0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  position: relative;
  z-index: 10;
  min-height: 70px;
}
header > a img {
  height: 40px;
}
header nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav a {
  color: #155142;
  font-weight: 600;
  padding: 8px 0;
  letter-spacing: 0.01em;
  font-size: 1rem;
  transition: color 0.16s;
  border-bottom: 2px solid transparent;
}
header nav a:hover,
header nav a:focus {
  color: #D8AA72;
  border-bottom: 2px solid #D8AA72;
}
.cta-primary {
  background: #155142;
  color: #fff;
  padding: 11px 30px;
  margin-left: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(46,59,95,0.10);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  text-align: center;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #D8AA72;
  color: #155142;
  box-shadow: 0 4px 16px rgba(21,81,66,0.12);
}

/* MOBILE MENU INITIALLY HIDDEN */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #155142;
  position: absolute;
  top: 18px;
  right: 24px;
  z-index: 120;
  padding: 4px 10px;
}
.mobile-menu {
  display: none;
}

/* --------------------------------------------------
HERO SECTIONS
-------------------------------------------------- */
.hero {
  background: #f1f5f8 url('../assets/hero-bg.jpg') no-repeat center/cover;
  min-height: 350px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 40px 0;
  box-shadow: 0 4px 18px 0 rgba(21,81,66,0.04);
}
.hero .container {
  display: flex;
  flex-direction: column;
}
.hero h1 {
  color: #155142;
  text-shadow: 0 2px 16px rgba(21,81,66,0.08);
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.20rem;
  color: #273040;
}
.hero .cta-primary {
  margin-top: 22px;
}

/* --------------------------------------------------
CARD STYLES & FLEXBOX UTILITY CLASSES
-------------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(21,81,66,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 30px;
  min-width: 260px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(21,81,66,0.13);
  transform: translateY(-6px) scale(1.018);
}

.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;
  background: #f5f7fa;
  border-radius: 8px;
  padding: 22px 19px;
  box-shadow: 0 2px 8px rgba(21,81,66,0.07);
  transition: box-shadow 0.18s, background 0.16s;
  min-width: 180px;
  flex: 1 1 220px;
}
.feature-item img {
  height: 40px;
  width: 40px;
}
.feature-item h3, .feature-item span {
  margin-bottom: 0;
  color: #155142;
  font-weight: 600;
}
.feature-item:hover {
  background: #e9f1ed;
  box-shadow: 0 6px 26px rgba(21,81,66,0.14);
}

/* Custom grid classes for various lists */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.category-list, .product-list, .recent-posts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.category-list > div, .product-list > div, .recent-posts-list > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(21,81,66,0.06);
  padding: 28px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.category-list > div:hover,.product-list > div:hover,.recent-posts-list > div:hover {
  box-shadow: 0 2px 20px rgba(21,81,66,0.16);
  transform: translateY(-2px) scale(1.012);
  background: #f5f7fa;
}

.value-statements ul, .sustainability-labels ul, .product-category-filters ul, .categories-overview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.value-statements li, .sustainability-labels li, .product-category-filters li, .categories-overview li {
  margin-bottom: 0;
  padding: 8px 16px;
  background: #e9f1ed;
  border-radius: 6px;
  color: #155142;
  font-size: 1em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sustainability-labels img {
  height: 20px;
  width: 20px;
}

/* Testimonial cards */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #f5f7fa;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(40,60,54,0.06);
  color: #1A232E;
  font-size: 1.09rem;
  line-height: 1.5;
  transition: box-shadow 0.14s, background 0.15s;
}
.testimonial-card strong {
  color: #155142;
  font-weight: 700;
}
.testimonial-card img {
  height: 22px;
  width: 22px;
  margin-left: 3px;
  filter: drop-shadow(0 1px 2px #D8AA72);
}
.testimonial-card:hover {
  background: #e9f1ed;
  box-shadow: 0 6px 16px rgba(21,81,66,0.09);
}

/* --------------------------------------------------
FOOTER
-------------------------------------------------- */
footer {
  background: #1A232E;
  padding: 32px 0 18px 0;
  color: #fff;
  font-size: 1rem;
  margin-top: 60px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
  justify-content: center;
}
footer nav a {
  color: #fff;
  opacity: 0.89;
  font-weight: 400;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: color 0.16s, opacity 0.18s;
}
footer nav a:hover,footer nav a:focus{
  color: #D8AA72;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #d6dde8;
  font-size: 0.96rem;
  text-align: center;
}

/* --------------------------------------------------
MOBILE RESPONSIVE & LAYOUT FIXES
-------------------------------------------------- */
@media (max-width: 1080px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  header nav {
    gap: 14px;
  }
  .feature-grid, .category-list, .product-list, .recent-posts-list {
    gap:14px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .section {
    margin-bottom: 42px;
    padding: 26px 10px;
  }
  .hero {
    padding: 28px 0 18px 0;
    min-height: 210px;
  }
  header {
    flex-direction: row;
    padding: 14px 12px 12px 12px;
    min-height: 52px;
  }
  header nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline;
    right: 12px;
    top: 14px;
  }

  .content-grid, .card-container,.category-list,.product-list,.recent-posts-list,.feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-contact {
    font-size: 0.97rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* --------------------------------------------------
MOBILE MENU (SLIDE-IN/OUT, OVERLAY, BUTTONS)
-------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background: rgba(26,35,46,0.97);
  z-index: 5000;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.5, 0.7, 0.31, 1.01);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
  display: flex;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  position: absolute;
  top: 17px;
  right: 18px;
  z-index: 5100;
  padding: 3px 10px;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  color: #D8AA72;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
  padding: 12px 5px;
  border-radius: 6px;
  transition: background 0.16s, color 0.16s;
  margin: 0 0 8px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D8AA72;
  color: #155142;
}

@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
  header nav, .cta-primary {
    display: inline-flex !important;
  }
}

/* Overlay background for mobile menu if needed */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,35,46,0.5);
  z-index: 4000;
}

/* --------------------------------------------------
BUTTON STYLES & INTERACTIONS
-------------------------------------------------- */
button, .cta-primary {
  outline: none;
  transition: box-shadow 0.18s, background 0.16s, color 0.16s;
}
button:focus-visible, .cta-primary:focus-visible {
  box-shadow: 0 0 0 2px #15514240;
}

/* Small secondary button (for cookies, close, etc.) */
.button-secondary, .cookie-preferences-btn {
  border: 1.5px solid #155142;
  background: #fff;
  color: #155142;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 1rem;
  margin-right: 14px;
  transition: background 0.17s, color 0.16s, border 0.17s;
}
.button-secondary:hover, .cookie-preferences-btn:hover {
  background: #e9f1ed;
  color: #155142;
  border-color: #D8AA72;
}
.button-danger {
  background: #fff;
  color: #b02117;
  border: 1.5px solid #b02117;
  border-radius: 6px;
  padding: 9px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.17s, color 0.16s, border 0.17s;
}
.button-danger:hover {
  background: #fde8e5;
  color: #7d1517;
  border-color: #d06760;
}

/* --------------------------------------------------
COOKIE CONSENT BANNER & MODAL
-------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2.5px solid #155142;
  box-shadow: 0 -2px 20px 0 rgba(21,81,66,0.07);
  z-index: 16000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 26px 12px 18px 12px;
  animation: cookieSlideUp 0.5s ease;
}
.cookie-banner .cookie-banner-inner {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cookie-banner p {
  color: #1A232E;
  font-size: 1em;
  margin-bottom: 9px;
  text-align: center;
}
.cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  justify-content: center;
}
.cookie-accept-btn,
.cookie-reject-btn,
.cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 7px;
  font-size: 1.02em;
  font-weight: 700;
  padding: 9px 21px;
  cursor: pointer;
  border: none;
  transition: background 0.16s, color 0.16s, box-shadow 0.14s;
}
.cookie-accept-btn {
  background: #155142;
  color: #fff;
  margin-right: 6px;
}
.cookie-accept-btn:hover, .cookie-accept-btn:focus {
  background: #D8AA72;
  color: #155142;
  box-shadow: 0 2px 8px #D8AA7233;
}
.cookie-reject-btn {
  background: #fff;
  color: #b02117;
  border: 1.5px solid #b02117;
}
.cookie-reject-btn:hover {
  background: #f7dddd;
  color: #7d1517;
}
.cookie-settings-btn {
  background: #e9f1ed;
  color: #155142;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #155142;
  color: #fff;
}

@keyframes cookieSlideUp {
  from {transform: translateY(120%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 17000;
  background: rgba(26,35,46,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.3s ease;
}
@keyframes cookieModalIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal-content {
  background: #fff;
  border-radius: 13px;
  padding: 38px 30px 30px 30px;
  max-width: 440px;
  min-width: 270px;
  box-shadow: 0 2px 32px #154B4420;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.5em;
  color: #155142;
  margin-bottom: 8px;
}
.cookie-modal-content ul {
  margin-bottom: 0;
}
.cookie-category {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-category label {
  font-weight: 600;
  color: #155142;
  margin-right: 10px;
  cursor: pointer;
}
.cookie-toggle {
  margin-left: auto;
  accent-color: #155142;
  width: 20px; height: 20px;
}
.cookie-essential {
  font-weight: 500;
  color: #273040;
  opacity: 0.80;
}
.cookie-modal-close {
  position: absolute;
  top: 7px;
  right: 13px;
  background: none;
  border: none;
  font-size: 1.9em;
  color: #155142;
  cursor: pointer;
  z-index: 30;
  padding: 2px 10px;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #D8AA72;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .cookie-banner {
    padding: 18px 3vw 10px 3vw;
  }
  .cookie-modal-content {
    padding: 22px 8vw 16px 8vw;
    min-width: 0;
    max-width: 95vw;
  }
  .cookie-btn-row {
    gap: 8px;
    flex-direction: column;
  }
}

/* --------------------------------------------------
MISC UTILITY & OVERRIDES
-------------------------------------------------- */
::-webkit-scrollbar {width:9px;} ::-webkit-scrollbar-thumb {background:#e5eaea;} ::-webkit-scrollbar-thumb:hover{background:#D8AA72;}

/* Spacing for all content structures */
.section + .section,
.content-wrapper + .content-wrapper,
.card + .card,
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* Add hover underline on article/links in lists */
.recent-posts-list a, .category-list a, .product-list a {
  border-bottom: 1.5px solid #e9f1ed;
  color: #155142;
  font-weight: 600;
  transition: border-bottom 0.15s, color 0.13s;
}
.recent-posts-list a:hover, .category-list a:hover, .product-list a:hover {
  color: #D8AA72;
  border-bottom: 1.5px solid #D8AA72;
}

/* Ensure no overlap (enforce margin/gap everywhere) */
.container, .content-wrapper, .section, .card, .testimonial-card, .feature-item {
  box-sizing: border-box;
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2.5px solid #D8AA72;
  outline-offset: 1.5px;
}

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip:rect(0,0,0,0);
  border: 0;
}

/* --------------------------------------------------
END
-------------------------------------------------- */
