/* === 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;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F9F6F0;
  color: #3A2F1D;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #3A2F1D;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: #A4C639;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}
img {
  max-width: 100%;
  display: block;
  border: none;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, color 0.2s;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #3A2F1D;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
}

p, li {
  font-size: 1rem;
  line-height: 1.7;
  color: #3A2F1D;
}
.subheadline {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: #5C5747;
  font-weight: 400;
  letter-spacing: 0.01em;
}
strong {
  font-weight: 700;
}

/* === CONTAINER & SPACING === */
.container {
  width: 100%;
  max-width: 1240px;
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

@media (max-width: 734px) {
  .section {
    padding: 24px 7px;
  }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  align-items: flex-start;
}

/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(58,47,29,0.06);
  padding-top: 0;
  padding-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
  padding: 0 20px;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #3A2F1D;
  padding: 8px 4px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
header nav a:hover, header nav a:focus {
  background: #A4C63916;
  color: #A4C639;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: #A4C639;
  color: #fff;
  padding: 11px 28px;
  border-radius: 26px;
  box-shadow: 0 1px 8px rgba(164,198,57,0.11);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #3A2F1D;
  color: #fff;
  box-shadow: 0 4px 12px rgba(58,47,29,0.09);
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  background: transparent;
  color: #3A2F1D;
  border: 2px solid #A4C639;
  padding: 10px 26px;
  border-radius: 26px;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #A4C639;
  color: #fff;
  border-color: #A4C639;
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  background: #F9F6F0;
  color: #3A2F1D;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  margin-left: 1em;
  transition: background 0.18s, color 0.18s;
  z-index: 41;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #eee;
  color: #A4C639;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.78,.16,.32,.97);
  box-shadow: 0 6px 24px rgba(58,47,29,0.10);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.5rem;
  color: #3A2F1D;
  background: none;
  align-self: flex-end;
  margin: 20px 20px 8px 0;
  z-index: 1003;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F9F6F0;
  color: #A4C639;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-left: 32px;
  gap: 18px;
  margin-top: 1.5em;
}
.mobile-nav a {
  color: #3A2F1D;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  padding: 12px 4px 14px 0;
  transition: color 0.15s, background 0.15s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #A4C639;
  background: #F9F6F0;
}

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

/* === MAIN SECTIONS === */
main {
  min-height: 55vh;
  margin-bottom: 40px;
}
section {
  background: none;
}

/* === FLEXBOX LAYOUTS === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(58,47,29,0.08);
  padding: 28px 20px 24px 20px;
  flex: 1 1 240px;
  min-width: 250px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.18s;
  border: 1px solid #ece7d9;
}
.feature-grid > div:hover {
  box-shadow: 0 10px 32px rgba(58,47,29,0.10);
  transform: translateY(-5px) scale(1.015);
}
.feature-grid img {
  height: 44px;
  width: 44px;
  margin-bottom: 10px;
  object-fit: contain;
}

.usp-list ul,
.usp-list {
  margin: 0;
  padding-left: 18px;
  margin-bottom: 0;
  color: #3A2F1D;
  font-size: 1.04rem;
  line-height: 1.75;
  font-weight: 500;
}
.usp-list li {
  margin-bottom: 6px;
  position: relative;
}
.usp-list li::marker {
  color: #A4C639;
}

/* === LAYOUT PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(58,47,29,0.10);
  padding: 20px;
  position: relative;
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 225px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.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;
  margin-bottom: 36px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-width: 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(58,47,29,0.08);
  margin-bottom: 20px;
  border: 1px solid #f2ecdc;
  transition: box-shadow 0.2s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(58,47,29,0.11);
  transform: scale(1.017);
}
.testimonial-card p {
  font-size: 1.01rem;
  color: #1F1B13;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-meta {
  color: #A4C639;
  font-size: 0.96rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin-left: 12px;
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}
.rating-overview {
  font-size: 1.05rem;
  margin: 10px 0 0 0;
}

/* === BUTTONS === */
button, .cta-primary, .cta-secondary {
  cursor: pointer;
  user-select: none;
  border: none;
  outline: 0;
}
button:active, .cta-primary:active, .cta-secondary:active {
  opacity: 0.85;
}

/* === FOOTER === */
footer {
  background: #f2efe4;
  border-top: 1px solid #ece7d9;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding-top: 44px;
  padding-bottom: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-logo img {
  height: 66px;
  width: auto;
}
.footer-contact, .footer-links, .footer-legal, .footer-newsletter {
  min-width: 180px;
  flex: 0 1 220px;
}
.footer-contact h3, .footer-links h3, .footer-newsletter h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.footer-links nav, .footer-legal nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a, .footer-legal a, .footer-newsletter a {
  color: #3A2F1D;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  opacity: 0.92;
  transition: color 0.15s;
}
.footer-links a:hover, .footer-legal a:hover, .footer-newsletter a:hover {
  color: #A4C639;
}
.footer-bottom {
  background: #F9F6F0;
  border-top: 1px solid #ece7d9;
  font-size: 0.93rem;
  color: #8C8C7F;
  padding: 12px 0;
  text-align: center;
}

@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 22px;
    padding-top: 26px;
    padding-bottom: 20px;
  }
  .footer-contact, .footer-links, .footer-legal, .footer-newsletter {
    min-width: unset;
    flex: 1 1 100%;
  }
  .footer-logo img {
    height: 54px;
  }
}

/* === FORMS (Newsletter) === */
input,
select,
textarea {
  padding: 11px 12px;
  border: 1px solid #d2cfbc;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 12px;
  background: #faf9f6;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #A4C639;
  border-color: #A4C639;
  background: #fff;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 32px rgba(58,47,29,0.08);
  border-top: 1px solid #ece7d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  gap: 32px;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
  transition: opacity 0.34s, transform 0.34s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner-message {
  font-size: 1rem;
  color: #3A2F1D;
  flex: 1 1 320px;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: 18px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: background 0.18s, color 0.18s, border 0.18s;
  border: 2px solid #A4C639;
  background: transparent;
  color: #3A2F1D;
}
.cookie-btn.accept {
  background: #A4C639;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #A4C639;
}
.cookie-btn.settings {
  background: transparent;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #3A2F1D;
  color: #fff;
  border-color: #3A2F1D;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #7b921a;
  border-color: #7b921a;
}

@media (max-width: 734px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    padding: 18px 8px 16px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner-actions {
    width: 100%;
    gap: 10px;
    justify-content: flex-start;
  }
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58,47,29,0.18);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 64px rgba(58,47,29,0.11);
  padding: 34px 30px 24px 30px;
  max-width: 410px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 1210;
  animation: showModal 0.38s cubic-bezier(.73,-0.07,.33,1.13);
}
@keyframes showModal {
  from { transform: scale(0.92) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  font-size: 1.6rem;
  color: #3A2F1D;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F9F6F0;
  color: #A4C639;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.28rem;
  margin-bottom: 0.6em;
}
.cookie-category {
  border-bottom: 1px solid #ece7d9;
  padding-bottom: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category-label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #ece7d9;
  position: relative;
  outline: none;
  transition: background 0.22s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #A4C639;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.22s;
}
.cookie-toggle:checked:before {
  left: 18px;
}
.cookie-essential {
  color: #bbb;
  font-size: 0.97rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 499px) {
  .cookie-modal {
    padding: 20px 8px 18px 10px;
    min-width: unset;
    max-width: 98vw;
  }
}

/* === UTILITY === */
.hide {
  display: none !important;
}

/* === ACCESSIBILITY & FOCUS === */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: 2px solid #A4C639;
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #888!important; opacity: 1; }
::-moz-placeholder { color: #888!important; opacity: 1; }
:-ms-input-placeholder { color: #888!important; opacity: 1; }
::placeholder { color: #888!important; opacity: 1; }

/* === MICRO-INTERACTIONS === */
.feature-grid > div, .card, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.14s;
}
.feature-grid > div:hover, .card:hover {
  box-shadow: 0 10px 32px rgba(58,47,29,0.16);
  transform: translateY(-6px) scale(1.018);
}

/* === RESPONSIVE FONT SIZES === */
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.08rem; }
  .subheadline { font-size: 1.09rem; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.09rem; }
  .subheadline { font-size: 0.97rem; }
}

/* === ADDITIONAL RESPONSIVE === */
@media (max-width: 430px) {
  .feature-grid > div, .card {
    min-width: unset;
    padding: 14px 7px 11px 7px;
  }
  .testimonial-card {
    padding: 12px;
  }
}

/* === VISUAL HIERARCHY === */
main section {
  padding-top: 12px;
  padding-bottom: 12px;
}
h1 + .subheadline, h2 + .subheadline {
  margin-top: -9px;
}

/* === SELECTORS FOR EXACT HTML STRUCTURE === */
.content-wrapper h1, .content-wrapper h2, .content-wrapper h3 {
  margin-top: 0;
}
.content-wrapper h1:not(:first-child), .content-wrapper h2:not(:first-child) {
  margin-top: 22px;
}

/* === MISC === */
::-webkit-scrollbar {
  width: 10px;
  background: #f3f0ea;
}
::-webkit-scrollbar-thumb {
  background: #ece7d9;
  border-radius: 6px;
}
