/* --- 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;
  scroll-behavior: smooth;
}

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

body {
  min-height: 100vh;
  line-height: 1.5;
  background-color: #F7F3ED;
  color: #29403b;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background-image: url('../assets/textures/texture-leaf-light.png');
  background-repeat: repeat;
  background-position: center;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

a {
  color: #37515F;
  text-decoration: underline;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #388e5a;
}

button, .btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  border: none;
  outline: none;
  padding: 14px 32px;
  border-radius: 32px;
  background-color: #37515F;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(55, 81, 95, 0.08);
  display: inline-block;
  transition: background 0.25s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn-primary:hover, .btn-primary:focus, button:hover, button:focus {
  background-color: #497046;
  box-shadow: 0 6px 24px rgba(72, 145, 76, 0.10);
  transform: translateY(-2px) scale(1.03);
}

strong {
  font-weight: 600;
  color: #2B4529;
}

em {
  color: #37515F;
  font-style: italic;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #37515F;
  line-height: 1.15;
  letter-spacing: -1px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
h5,h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}

p, ul, ol {
  margin-bottom: 16px;
}

ul, ol {
  padding-left: 22px;
}

li {
  margin-bottom: 10px;
  line-height: 1.6;
}

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

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 32px 32px 40px 16px;
  box-shadow: 0 5px 28px rgba(145, 181, 137, 0.07);
  background-image: url('../assets/textures/organic-paper-2.png');
  background-size: cover;
  background-repeat: repeat;
}

.text-section {
  background: rgba(249,252,248,0.60);
  border-radius: 18px;
  padding: 24px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px 0 rgba(55,81,95,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

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

.card {
  background: #F7F3ED;
  border-radius: 24px 32px 26px 18px;
  box-shadow: 0 3px 16px rgba(61, 115, 70, 0.09);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow 0.22s, transform 0.17s;
}

.card:hover {
  box-shadow: 0 10px 36px rgba(61, 115, 70, 0.16);
  transform: translateY(-3px) scale(1.02);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #ebf2eb;
  border-radius: 22px 30px 14px 32px;
  box-shadow: 0 2px 11px rgba(55, 81, 95, 0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 22px rgba(55, 81, 95, 0.12);
}
.testimonial-card p {
  color: #29403b;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.testimonial-card small {
  color: #486B4E;
  font-size: 0.97rem;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* --- HEADER & NAVBAR --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 18px rgba(55,81,95, 0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  max-width: 1050px;
  margin: 0 auto;
  padding: 12px 20px 10px 20px;
}
header nav a {
  color: #37515F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 17px;
  margin-right: 4px;
  letter-spacing: -.2px;
  padding: 4px 8px;
  border-radius: 12px;
  transition: background 0.19s, color 0.17s;
  text-decoration: none;
}
header nav a:hover, header nav a:focus {
  background: #dbead1;
  color: #388e5a;
}
header nav a.btn-primary {
  background: #37515F;
  color: #fff;
  margin-left: auto;
  margin-right: 0;
  padding: 10px 26px;
  border-radius: 24px;
  font-size: 16px;
  box-shadow: 0 1px 4px rgba(55,81,95,0.12);
}
header nav a.btn-primary:hover {
  background: #497046;
  color: #fff;
}

header img {
  height: 46px;
  width: auto;
  margin-right: 22px;
  vertical-align: middle;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #497046;
  color: #fff;
  font-size: 2.1rem;
  border-radius: 50%;
  border: none;
  width: 48px;
  height: 48px;
  position: absolute;
  right: 16px;
  top: 10px;
  z-index: 80;
  box-shadow: 0 2px 9px rgba(61, 115, 70, 0.095);
  transition: background 0.17s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #254b33;
  color: #d9af62;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #F7F3ED;
  box-shadow: -4px 0 24px rgba(55, 81, 95, 0.17);
  position: fixed;
  top: 0;
  right: -105vw;
  width: 86vw;
  max-width: 395px;
  height: 100vh;
  z-index: 160;
  padding: 38px 20px 32px 24px;
  transition: transform 0.36s cubic-bezier(.77,0,.18,1), right 0.36s;
  transform: translateX(100%);
  border-radius: 22px 0 0 32px;
}
.mobile-menu.open {
  right: 0;
  transform: translateX(0);
  box-shadow: -8px 0 44px rgba(55,81,95, 0.19);
}

.mobile-menu-close {
  background: #254b33;
  color: #fff;
  font-size: 2rem;
  border: none;
  width: 38px;
  height: 38px;
  position: absolute;
  right: 18px;
  top: 12px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 200;
  margin-bottom: 28px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #D9AF62;
  color: #254b33;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 46px;
  width: 100%;
}
.mobile-nav a {
  color: #37515F;
  padding: 14px 1px 12px 7px;
  font-size: 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border-radius: 10px;
  transition: background .17s, color .16s;
  text-decoration: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #dbead1;
  color: #388e5a;
}

/* --- MAIN HERO & COMPONENTS --- */
.hero-subheadline {
  color: #2B4529;
  font-size: 1.3rem;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #f6f5f2;
  border-radius: 14px 20px 20px 8px;
  overflow: hidden;
}
th, td {
  padding: 14px 11px;
  text-align: left;
}
th {
  background: #f6eed7;
  color: #37515F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
}
td {
  font-size: 1.02rem;
}
tr:nth-child(even) {
  background: #f3f9f2;
}

/* --- FOOTER --- */
footer {
  background: #37515F;
  color: #fffffc;
  padding: 38px 0 28px 0;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 90px;
}
.footer-brand {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}
footer img {
  height: 46px;
  margin: 0 auto 18px auto;
  display: block;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 auto 8px auto;
  justify-content: center;
}
.footer-nav a {
  color: #dbead1;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin: 0;
  transition: color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #D9AF62;
}
.footer-contact {
  font-size: 1rem;
  color: #edeada;
  margin-bottom: 6px;
  text-align: center;
  line-height: 1.7;
}
.footer-contact a {
  color: #dbead1;
  text-decoration: underline;
}
.footer-contact a:hover {
  color: #D9AF62;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
  align-items: center;
}
.footer-social img {
  height: 34px;
  width: 34px;
  border-radius: 8px;
  background: #ebf2eb;
  padding: 4px;
  transition: background .18s, box-shadow .18s;
  box-shadow: 0 2px 7px rgba(80,95,75,0.08);
}
.footer-social img:hover {
  background: #D9AF62;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg, #f6eed7 80%, #e2ddc3 100%);
  color: #37515F;
  box-shadow: 0 -2px 18px rgba(55,81,95, 0.13);
  padding: 22px 28px 18px 28px;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  animation: cookie-slide-in 0.7s cubic-bezier(.53,.04,.91,.43);
}
@keyframes cookie-slide-in {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.cookie-banner p {
  color: #29403b;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 4px;
}
.cookie-banner button { 
  padding: 8px 22px;
  border-radius: 22px;
  font-size: 1rem;
  border: none;
  margin: 0 2px;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(42, 104, 67, 0.08);
  transition: background 0.18s, color 0.16s;
}
.cookie-banner .accept {
  background: #497046;
  color: #fff;
}
.cookie-banner .accept:hover { background: #37515F; }
.cookie-banner .reject {
  background: #f6eed7;
  color: #497046;
}
.cookie-banner .reject:hover { background: #dbead1; }
.cookie-banner .settings {
  background: #D9AF62;
  color: #254b33;
}
.cookie-banner .settings:hover { background: #bfa45b; color: #fff; }

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 255;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(55, 81, 95, 0.27);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.4s;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal {
  background: #fffefb;
  border-radius: 20px;
  box-shadow: 0 8px 38px rgba(78,101,82,0.18);
  max-width: 480px;
  width: 93vw;
  padding: 36px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: modal-slide-in 0.38s cubic-bezier(.74,-0.15,.69,1.16);
}
@keyframes modal-slide-in {
  from { transform: translateY(50px); opacity: 0.40; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-modal h2 {
  color: #37515F;
  margin-bottom: 8px;
  font-size: 1.32rem;
}
.cookie-modal .cookie-category {
  margin-bottom: 10px;
  padding: 10px 0 8px 0;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
  appearance: none;
  width: 36px;
  height: 20px;
  background: #dbead1;
  border-radius: 12px;
  position: relative;
  outline: none;
  transition: background 0.16s;
  cursor: pointer;
  border: solid 1px #bfa45b;
}
.cookie-modal .cookie-toggle:checked {
  background: #37515F;
  border-color: #388e5a;
}
.cookie-modal .cookie-toggle::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px;
  top: 1.7px;
  transition: transform 0.16s;
  box-shadow: 0 1px 2px rgba(55,81,95,0.06);
}
.cookie-modal .cookie-toggle:checked::before {
  transform: translateX(16px);
  background: #dbead1;
}

.cookie-modal .cookie-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-modal button {
  padding: 10px 26px;
  font-size: 1.08rem;
  border-radius: 16px;
}

/* Essential cookies - always-on visual */
.cookie-category.essential .cookie-toggle { 
  background: #254b33;
  border-color: #497046;
}
.cookie-category.essential .cookie-toggle::before {
  background: #dbead1;
}
.cookie-category.essential label {
  font-weight: 700;
  color: #254b33;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1020px) {
  .container { max-width: 97vw; padding: 0 8px; }
  header nav { max-width: 97vw; }
}
@media (max-width: 900px) {
  .section { padding: 32px 8px; margin-bottom: 38px; }
  .card-container, .content-grid { gap: 12px; }
}
@media (max-width: 768px) {
  .container { padding: 0 2vw; }
  .section {
    margin-bottom: 32px;
    padding: 20px 2vw;
    border-radius: 19px 19px 30px 8px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.34rem; }
  .text-section { padding: 12px 4px; }
  .card {
    padding: 18px 10px;
    min-width: 180px;
  }
  .testimonial-card { padding: 14px; }
  .text-image-section { flex-direction: column; gap: 16px; }
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-nav, .footer-contact, .footer-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    text-align: left;
  }
  .footer-nav { align-items: flex-start; }
  .footer-social {
    justify-content: flex-start;
  }
  footer img { margin: 0 0 18px 0; }
}

@media (max-width:510px) {
  .section { padding: 8px 1vw; }
  .card, .testimonial-card { padding: 10px 4px; }
  .cookie-banner {
    padding: 16px 5vw 9px 5vw;
    font-size: 0.95rem;
  }
  .cookie-modal {
    padding: 22px 7px 14px 7px;
    max-width: 99vw;
  }
}

/* --- ANIMATIONS and MICRO-INTERACTIONS --- */
.btn-primary, button, .cookie-banner button, .cookie-modal button {
  transition: background 0.21s, color 0.14s, box-shadow 0.15s, transform 0.12s;
}
.btn-primary:active, button:active, .cookie-banner button:active, .cookie-modal button:active {
  transform: scale(0.98);
}

.card:active, .testimonial-card:active {
  transform: scale(0.99);
}

/* Disable user-select on UI controls for smooth touch */
button, .btn-primary, .mobile-menu-toggle, .mobile-menu-close {
  user-select: none;
}

/* --- Miscellaneous Utility Classes --- */
.hide {
  display: none !important;
}
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* --- Scrollbar Custom --- */
::-webkit-scrollbar {
  width: 9px;
  background: #e7e2db;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #afbcab;
  border-radius: 8px;
}

/* --- End of CSS --- */