/* CSS RESET & ROOT VARIABLES */
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;
}
footer p {
  color: white;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F5F4ED;
  color: #2E3440;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}
a {
  color: #99522B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #608239;
  text-decoration: underline;
}

/* BRAND ROOT VARIABLES */
:root {
  --primary: #2E3440;
  --secondary: #ECEFF4;
  --background: #F5F4ED;
  --earth: #B2A68D;
  --accent: #99522B;
  --accent-dark: #7c401c;
  --accent-light: #AF6E4D;
  --leaf: #608239;
  --green-light: #D9E5D6;
  --brown-light: #EFE4DB;
  --card-bg: #FEFCF7;
  --shadow: 0 2px 16px rgba(176,154,116, 0.06), 0 1.5px 4px rgba(99,120,54,0.05);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
p, ul, ol, dl {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.subheadline {
  font-size: 1.2rem;
  color: var(--leaf);
  margin-bottom: 24px;
  font-family: 'Open Sans', Arial, sans-serif;
  letter-spacing: 0.02em;
}
strong {
  color: var(--accent);
  font-weight: 700;
}

/* LAYOUT: CONTAINER & WRAPPERS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 32px 58px 32px 48px/62px 32px 34px 44px;
  /* Organic shape simulation with radii */
  box-shadow: var(--shadow);
  position: relative;
}
@media (max-width:768px){
  .section {
    padding: 32px 10px;
    border-radius: 24px 32px 24px 32px/32px 24px 24px 32px;
  }
  .container {
    padding: 0 8px;
  }
}

/* FLEX STRUCTURES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--card-bg);
  border-radius: 24px 38px 22px 34px/36px 22px 14px 25px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  min-width: 240px;
  max-width: 380px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 32px rgba(176,154,116,0.15);
  transform: translateY(-4px) scale(1.018);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--green-light);
  border-radius: 20px 36px 12px 30px/28px 18px 32px 20px;
  box-shadow: 0 1.5px 8px rgba(96,130,57,0.06), 0 1px 3px rgba(128,128,128,0.05);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 480px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 32px rgba(96,130,57,0.11);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
@media (max-width:900px){
  .content-grid, .card-container {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width:768px){
  .text-image-section, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

/* HEADER & NAVIGATION */
header {
  background: var(--background);
  box-shadow: 0 1.5px 7px rgba(99,120,54,0.05);
  padding: 0 0 8px 0;
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 10px;
}
header nav a img {
  height: 46px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  align-items: center;
}
header nav ul li a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 17px 30px 15px 24px/24px 15px 18px 12px;
  transition: background 0.18s, color 0.18s;
}
header nav ul li a:hover, header nav ul li a:focus, header nav ul li a[aria-current="page"] {
  background: var(--green-light);
  color: var(--accent);
}
/* Hamburger Icon */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 2.2rem;
  border-radius: 50%;
  padding: 8px 14px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover {
  background: var(--leaf);
  color: #fff;
}
@media (max-width:900px){
  header nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245,244,237,0.97);
  box-shadow: 0 6px 40px rgba(155,82,43,0.10);
  z-index: 5000;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.45,0.05,0.36,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-y: auto;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 22px 0 0;
  background: var(--earth);
  border: none;
  color: var(--primary);
  font-size: 2.3rem;
  border-radius: 50%;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent-dark);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 18px;
  padding: 40px 24px 24px 40px;
  background: none;
}
.mobile-nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 18px 40px 20px 24px/30px 20px 24px 18px;
  margin-bottom: 2px;
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--leaf);
  color: #fff;
}
@media (min-width:901px){
  .mobile-menu,
  .mobile-menu-toggle {
    display: none!important;
  }
}

/* MAIN & SECTION LAYOUTS */
main {
  margin-bottom: 40px;
}
section {
  margin-bottom: 60px;
  padding: 40px 16px;
  background: var(--card-bg);
  border-radius: 32px 58px 32px 48px/62px 32px 34px 44px;
  box-shadow: var(--shadow);
}
section .container {
  padding: 0;
}

/* TABLES & MEDIA */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: var(--secondary);
  border-radius: 19px 39px 13px 28px/25px 18px 19px 15px;
  box-shadow: 0 1.5px 8px rgba(155,82,43,0.05), 0 1px 3px rgba(128,128,128,0.04);
  overflow: hidden;
}
thead tr {
  background: var(--earth);
  color: var(--primary);
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
}
td, th {
  padding: 14px 10px;
  text-align: left;
}
tbody tr {
  border-bottom: 1px solid var(--green-light);
}
tr:last-child {
  border-bottom: none;
}

/* LISTS */
ul, ol {
  padding-left: 26px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
}
li span {
  color: var(--accent-dark);
  font-weight: 700;
}
.feature-list li, .content-wrapper > ul > li {
  position: relative;
  padding-left: 14px;
}
.feature-list li:before, .content-wrapper > ul > li:before {
  content: '';
  display: inline-block;
  width: 11px; height: 11px;
  background: var(--leaf);
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: middle;
  position: absolute;
  left: 0; top: 7px;
}

/* DL FAQ */
dl {
  margin-bottom: 20px;
  background: var(--brown-light);
  border-radius: 13px 22px 13px 15px/18px 13px 15px 12px;
  box-shadow: 0 0.5px 2.5px rgba(160,130,80,0.04);
  padding: 18px 16px;
}
dt {
  color: var(--leaf);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 6px;
  margin-top: 12px;
  font-family: 'Merriweather', serif;
}
dd {
  margin-bottom: 8px;
  margin-left: 0;
}

/* CTA BUTTONS */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: 1.12rem;
  font-weight: 600;
  border: none;
  border-radius: 32px 64px 28px 54px/52px 28px 39px 23px;
  padding: 14px 36px;
  margin: 10px 0 0 0;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(155,82,43,0.08);
  transition: background 0.24s, box-shadow 0.18s, transform 0.18s;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--leaf);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 36px rgba(96,130,57,0.17);
}

/* TESTIMONIALS */
.testimonial-card {
  background: var(--green-light);
  color: var(--primary);
  border-left: 6px solid var(--leaf);
  margin-bottom: 20px;
}
.testimonial-text {
  font-family: 'Merriweather', serif;
  font-size: 1.07rem;
  color: var(--primary);
  margin-bottom: 8px;
  max-width: 520px;
}
.testimonial-meta {
  color: var(--leaf);
  font-size: 0.98rem;
  font-family: 'Open Sans', sans-serif;
}
.star {
  color: var(--accent);
  font-size: 1.05em;
  margin-left: 6px;
  letter-spacing: 2px;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--secondary);
  width: 100%;
  padding: 0 0 24px 0;
}
footer .container {
  padding: 0 12px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 32px 0 0;
}
footer a {
  color: var(--accent-light);
  font-size: 1rem;
  transition: color 0.16s;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a:hover, footer nav a:focus {
  color: var(--leaf);
  text-decoration: underline;
}
.footer-contact {
  font-size: 0.96rem;
  color: var(--secondary);
  margin-bottom: 6px;
}
footer small {
  color: var(--earth);
  margin-top: 16px;
  display: block;
}
@media (max-width:900px){
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ORGANIC SHAPES: Small decorations for accents */
.section:after {
  content: '';
  display: block;
  width: 40px; height: 40px;
  background: var(--leaf);
  border-radius: 55% 40% 35% 60%/65% 50% 45% 50%;
  opacity: 0.09;
  position: absolute;
  bottom: 16px; right: 14px;
  z-index: 1;
}
.section h2:before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 9px;
  vertical-align: middle;
  background: var(--accent);
  border-radius: 22px 14px 18px 11px/18px 4px 9px 8px;
  opacity: 0.21;
  margin-right: 11px;
}
@media (max-width:600px){
  .section:after, .section h2:before {
    display:none;
  }
}

/* RESPONSIVE TYPOGRAPHY */
@media (max-width:600px){
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  p, li, ul, ol, .subheadline { font-size: 0.99rem; }
  .cta-button { font-size: 1rem; padding: 12px 20px; }
}

/* FORMS (if used in the future) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 12px 24px 9px 18px/13px 9px 12px 13px;
  border: 1.5px solid var(--green-light);
  background: #fff;
  padding: 8px 14px;
  color: var(--primary);
  outline: none;
  margin-bottom: 12px;
  transition: border 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

/* COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--brown-light);
  color: var(--primary);
  box-shadow: 0 -4px 30px rgba(96,130,57,0.10);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 16px;
  z-index: 33300;
  transition: transform 0.38s;
}
.cookie-consent-banner.hide {
  transform: translateY(130%);
}
.cookie-message {
  flex: 2 1 400px;
  font-size: 1rem;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  border-radius: 19px 34px 12px 22px/23px 13px 18px 12px;
  border: none;
  padding: 9px 21px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  background: var(--accent-light);
  color: #fff;
  font-weight: 700;
}
.cookie-btn.accept {
  background: var(--leaf);
  color: #fff;
}
.cookie-btn.reject {
  background: #AF6E4D;
  color: #fff;
}
.cookie-btn.settings {
  background: var(--earth);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.13);
}
@media (max-width:700px){
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 6px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-backdrop {
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  width:100vw; height:100vh;
  z-index:33888;
  background: rgba(46,52,64,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBackdrop 0.25s;
}
@keyframes fadeInBackdrop {from{opacity:0;} to{opacity:1;}}
.cookie-modal {
  background: var(--card-bg);
  border-radius: 32px 58px 32px 48px/62px 32px 34px 44px;
  box-shadow: 0 4px 44px rgba(155,82,43,0.17);
  max-width: 415px;
  width: 92vw;
  padding: 32px 20px 20px;
  color: var(--primary);
  z-index: 39999;
  position: relative;
  animation: fadeInModal 0.34s;
}
@keyframes fadeInModal {from{transform:translateY(40px); opacity:0;} to{transform:translateY(0); opacity:1;}}
.cookie-modal-title {
  font-size: 1.3rem;
  font-family: 'Merriweather', serif;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 700;
}
.cookie-category {
  margin-bottom: 18px;
}
.cookie-category .cookie-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  cursor: pointer;
}
.cookie-switch input[type="checkbox"] {
  display: none;
}
.cookie-slider {
  width: 38px;
  height: 20px;
  background: var(--green-light);
  border-radius: 12px;
  display: inline-block;
  position: relative;
  margin-right: 5px;
  transition: background 0.18s;
}
.cookie-switch input[type="checkbox"]:checked + .cookie-slider {
  background: var(--leaf);
}
.cookie-slider:after {
  content: '';
  display: block;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute; left: 1px; top: 1px;
  transition: left 0.17s;
}
.cookie-switch input[type="checkbox"]:checked + .cookie-slider:after {
  left: 19px;
  background: var(--accent-dark);
}
.cookie-switch[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}
.cookie-modal .cookie-btn-row {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}

.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--leaf);
  color: #fff;
}

/* UTILITIES & ACCESSIBILITY */
.sr-only {
  position: absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* OVERRIDE AUTOFILL STYLES */
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  box-shadow: 0 0 0px 1000px #fff inset;
  -webkit-text-fill-color: var(--primary);
}

/* MICRO-INTERACTION: Subtle Card Animation */
@media (hover: hover) {
  .card:hover, .cta-button:hover, .testimonial-card:hover {
    box-shadow: 0 8px 36px rgba(155,82,43,0.13), 0 2px 13px rgba(96,130,57,0.08);
    transform: translateY(-4px) scale(1.03);
  }
}

/* PRINT STYLES */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-backdrop {
    display: none !important;
  }
  section, main {
    box-shadow: none !important;
    background: #fff !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
}
