/* RESET & BASE STYLES */
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;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background-color: #F2E7C9;
  color: #304735;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.75;
  letter-spacing: 0.01em;
  transition: background-color 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #346B3A;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #476E4A;
  text-decoration: none;
}

ul, ol {
  margin-left: 24px;
  list-style-position: outside;
}
strong {
  font-weight: bold;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #304735;
  line-height: 1.18;
  letter-spacing: 0.005em;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 1.75rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.125rem; margin-bottom: 12px; }
h5, h6 { font-size: 1rem; }

.blockquote, blockquote {
  font-style: italic;
  color: #305936;
  margin-bottom: 10px;
  border-left: 4px solid #88B374;
  padding-left: 16px;
}

/* CONTAINER & GENERAL LAYOUT */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.text-section {
  margin-bottom: 20px;
}

/* FLEX SPACING PATTERNS */
.section {
  background: #fff;
  border-radius: 20px 40px 20px 40px / 40px 20px 40px 20px;
  box-shadow: 0 4px 24px 0 rgba(48, 71, 53, 0.07);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}

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

.card {
  margin-bottom: 20px;
  position: relative;
  background: #f6f5ee;
  border-radius: 18px 32px 18px 32px / 32px 18px 32px 18px;
  box-shadow: 0 2px 8px 0 rgba(48, 71, 53, 0.09);
  padding: 24px;
  transition: box-shadow 0.22s, background 0.22s;
}
.card:hover, .card:focus-within {
  background: #F2E7C9;
  box-shadow: 0 6px 24px 0 rgba(48, 71, 53, 0.13);
  z-index: 2;
}

.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;
  margin-bottom: 20px;
  background: #F2E7C9;
  border-radius: 28px 20px 28px 20px / 16px 36px 16px 36px;
  box-shadow: 0 2px 12px 0 rgba(48,71,53,0.09);
  flex-direction: column;
}

.testimonial-card blockquote {
  color: #304735;
  font-size: 1.125rem;
  margin-bottom: 8px;
  border-left: 4px solid #88B374;
  padding-left: 16px;
  font-style: italic;
}
.testimonial-author {
  font-size: 0.98rem;
  color: #466B45;
  font-family: 'Roboto', Arial,sans-serif;
  font-style: normal;
  letter-spacing: 0.06em;
}

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

/* MAIN NAVIGATION */
header {
  background: #304735;
  box-shadow: 0 2px 8px 0 rgba(48, 71, 53, 0.10);
  padding-top: 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  position: relative;
}

.logo-link img {
  height: 42px;
  width: auto;
  margin-right: 16px;
  display: block;
}

.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  list-style: none;
}
.main-nav ul li a {
  color: #F2E7C9;
  font-family: 'Montserrat',sans-serif;
  font-size: 1.04rem;
  text-decoration: none;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  background: #476E4A;
  color: #fff;
}
.main-nav .cta-btn {
  margin-left: 24px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: #88B374;
  color: #304735;
  border: none;
  border-radius: 28px;
  padding: 12px 34px;
  font-family: 'Montserrat',sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 4px 0 rgba(48, 71, 53, 0.07);
  text-decoration: none;
  transition: background 0.19s, color 0.19s, box-shadow 0.22s, transform 0.13s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #304735;
  color: #F2E7C9;
  box-shadow: 0 4px 24px 0 rgba(48,71,53,0.13);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

/* HIDE MOBILE NAV ON DESKTOP */
.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

/* FOOTER */
footer {
  background: #304735;
  color: #F2E7C9;
  padding: 32px 0 20px 0;
  margin-top: 64px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #F2E7C9;
  opacity: 0.80;
  font-size: 1rem;
  padding: 2px 0;
  text-decoration: none;
  border-bottom: 1.5px dotted rgba(136,179,116,0.39);
  transition: color 0.13s, opacity 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #88B374;
  opacity: 1;
  border-bottom: 2px solid #88B374;
}
.footer-branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-top: 8px;
}
.footer-branding img {
  height: 34px;
  width: auto;
  filter: brightness(1.15);
}
.footer-branding span {
  color: #F2E7C9;
  font-size: 1rem;
  font-family: 'Roboto',sans-serif;
}

/* COOKIES CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: #fff;
  color: #304735;
  border-top: 2.5px solid #88B374;
  box-shadow: 0 -2px 16px 0 rgba(48,71,53,0.16);
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.5s cubic-bezier(.5,.2,.1,1);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner-text {
  font-size: 1rem;
  color: #304735;
}
.cookie-banner-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cookie-btn {
  border: none;
  border-radius: 22px;
  background: #88B374;
  color: #304735;
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 24px;
  cursor: pointer;
  margin-right: 0;
  transition: background 0.19s, color 0.18s, box-shadow 0.15s;
  box-shadow: 0 1px 6px 0 rgba(136,179,116,0.07);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #304735;
  color: #F2E7C9;
}
.cookie-btn.secondary {
  background: #ede9dd;
  color: #304735;
  border: 1.2px solid #88B374;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #88B374;
  color: #304735;
}

/* COOKIE MODAL (SETTINGS) */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(48,71,53,0.48);
  z-index: 1220;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.28s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #304735;
  border-radius: 22px 38px 22px 38px / 38px 22px 38px 22px;
  max-width: 95vw;
  width: 430px;
  box-shadow: 0 8px 32px 0 rgba(30,42,31,0.17);
  padding: 34px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookieModalIn .45s cubic-bezier(.44,.14,.19,.99);
}
@keyframes cookieModalIn {
  from { opacity: 0; transform: translateY(60px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-title {
  font-family: 'Montserrat',sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #304735;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 0.12s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  opacity: 1;
}
.cookie-pref-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-pref-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #f6f5ee;
  border-radius: 13px;
  padding: 11px 14px 11px 14px;
}
.cookie-pref-label {
  color: #304735;
  font-size: 1rem;
  font-family: 'Roboto',sans-serif;
}
.cookie-pref-toggle {
  appearance: none;
  background: #ede9dd;
  width: 38px;
  height: 22px;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  border: 1.2px solid #88B374;
  transition: background 0.16s, border 0.16s;
}
.cookie-pref-toggle:checked {
  background: #88B374;
}
.cookie-pref-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(48,71,53,0.09);
  transition: left 0.16s;
}
.cookie-pref-toggle:checked::before {
  left: 19px;
}
.cookie-category-desc {
  font-size: 0.95rem;
  color: #476E4A;
  opacity: 0.78;
  margin-top: -2px;
  margin-left: 0px;
  font-family: 'Roboto',sans-serif;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 5px;
}

/* FORMS (for future-proofing, e.g. contact) */
input, textarea, select {
  border: 1.5px solid #D7D2B8;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #304735;
  background: #f9f7f3;
  transition: border 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #88B374;
  outline: none;
}
label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #304735;
  margin-bottom: 7px;
  display: block;
}
button {
  font-family: inherit;
  font-size: inherit;
}

/* ANIMATIONS & MICRO-INTERACTIONS */
.card, .cta-btn, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.22s, background 0.22s, color 0.18s, transform 0.19s;
}

hr {
  border: none;
  border-top: 1px solid #E2DFC6;
  margin: 28px 0 20px 0;
}

/* RESPONSIVE DESIGN (Mobile-first) */
@media (max-width: 990px) {
  .main-nav {
    max-width: 100%;
    padding-right: 8px;
    padding-left: 8px;
  }
  .footer-branding img {
    height: 27px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.12rem; }
  .container {
    padding: 0 8px;
  }
  .main-nav ul {
    display: none;
  }
  .main-nav .cta-btn {
    display: none;
  }
  .main-nav {
    padding: 0 8px;
  }
  .logo-link img {
    height: 32px;
  }
  footer {
    text-align: center;
    padding: 24px 0 16px 0;
    margin-top: 34px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .footer-branding {
    flex-direction: column;
    gap: 7px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .section {
    margin-bottom: 30px;
    padding: 20px 6px;
  }
  .card-container, .content-grid {
    gap: 12px;
  }
  .testimonial-card {
    padding: 13px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

@media (max-width:570px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.1rem; }
}

/* MOBILE MENU BURGER & DRAWER */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #88B374;
  color: #304735;
  font-size: 2.1rem;
  border: none;
  border-radius: 7px;
  width: 48px;
  height: 48px;
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
  z-index: 1110;
  box-shadow: 0 1px 8px 0 rgba(48,71,53,0.10);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #476E4A;
  color: #F2E7C9;
  outline: none;
}

@media (min-width: 769px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
}
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex !important; }
  .mobile-menu {
    display: flex;
    position: fixed;
    flex-direction: column;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1100;
    background: #304735;
    color: #F2E7C9;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(.65,.18,.24,1), opacity 0.24s;
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
  }
  .mobile-menu-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #F2E7C9;
    font-size: 2.25rem;
    margin-top: 18px;
    margin-right: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.17s;
  }
  .mobile-menu-close:hover,.mobile-menu-close:focus{
    opacity: 1;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 23px;
    margin-top: 40px;
    margin-left: 30px;
  }
  .mobile-nav a {
    color: #F2E7C9;
    font-family: 'Montserrat',sans-serif;
    font-size: 1.26rem;
    padding: 14px 6px 10px 0;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.17s, color 0.18s;
    width: fit-content;
    outline: none;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #88B374;
    color: #304735;
    outline: none;
  }
}

/* ORGANIC SHAPES & TEXTURE EFFECTS */
.section, .card, .testimonial-card, .cookie-modal {
  /* Organic SVG/shape corners done above, plus a subtle textured overlay */
  position: relative;
  overflow: hidden;
}
.section:before, .card:before, .testimonial-card:before, .cookie-modal:before {
  content: '';
  pointer-events: none;
  display: block;
  position: absolute;
  z-index: 0;
  left: -40%;
  top: -20%;
  width: 180%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 36%, rgba(136,179,116,0.035) 0, rgba(136,179,116,0.012) 48%, transparent 89%),
    radial-gradient(circle at 88% 72%, rgba(48,71,53,0.016) 0, rgba(48,71,53,0.009) 60%, transparent 93%);
}

.testimonial-card:before {
  background: 
    radial-gradient(circle at 30% 70%,rgba(136,179,116,0.12) 0,rgba(136,179,116,0.02) 70%,transparent 100%),
    radial-gradient(circle at 88% 20%,rgba(48,71,53,0.02) 0,transparent 95%);
}

.card:before {
  background: 
    radial-gradient(circle at 73% 45%,rgba(48,71,53,0.10) 0,rgba(136,179,116,0.012) 68%,transparent 100%),
    radial-gradient(circle at 0 100%,rgba(136,179,116,0.07) 0,transparent 85%);
}
.cookie-modal:before {
  background: 
    radial-gradient(circle at 55% 33%,rgba(136,179,116,0.13) 0,transparent 75%);
}
.section:before {
  background: radial-gradient(circle at 80% 8%,rgba(48,71,53,0.04) 0, transparent 70%);
}

/* ORGANIC BUTTON SHAPE MODIFIER */
.cta-btn, .cookie-btn {
  border-radius: 28px 22px 36px 24px / 22px 28px 24px 36px;
}

/* SHADOW & HOVER FOR ACCESSIBILITY */
.card:focus-within, .testimonial-card:focus-within, .cookie-btn:focus, .cta-btn:focus {
  outline: 2.5px solid #88B374;
  outline-offset: 2px;
}

/* ACCESSIBILITY & CONTRAST */
.testimonial-card,
.card,
.section {
  color: #304735;
  background: #F2E7C9;
}

/* PRINT BASICS */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #222;
  }
  .section, .container, .content-wrapper {
    box-shadow: none !important;
    background: #fff !important;
    border-radius: 0 !important;
  }
}
