/* RESET & BASE LINE --------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  color: #213148;
  background: #F5F7F5;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, textarea, select {
  font: inherit;
  background: none;
  border: none;
  outline: none;
}

/* TYPOGRAPHY --------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
  color: #1a2333;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}
p {
  font-size: 1rem;
  color: #282c22;
  margin-bottom: 8px;
}
strong {
  color: #386150;
  font-weight: 600;
}

/* BRAND COLORS (nature_organic) --------------------------- */
:root {
  --primary: #1a2333;
  --primary-dark: #213148;
  --secondary: #ffffff;
  --secondary-light: #F5F7F5;
  --accent: #d98036;
  --text: #213148;
  --heading: #1a2333;
  --success: #72a07e;
  --natural-green: #567867;
  --earth-brown: #947a5f;
  --gray: #DAE1E7;
  --shadow: rgba(32,52,30,0.06);
}

/* LAYOUT CONTAINERS --------------------------- */
.container {
  width: 100%;
  max-width: 1096px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary-light);
  border-radius: 32px 72px 48px 32px / 48px 64px 32px 72px;
  box-shadow: 0 2px 16px var(--shadow);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 22px 8px;
    border-radius: 16px 38px 18px 22px / 22px 38px 18px 18px;
  }
}

/* FLEXBOX Patterns (MANDATORY) --------------------------- */
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary);
  border-radius: 20px 36px 24px 16px/22px 28px 14px 24px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 28px 20px;
  flex: 1 1 310px;
  min-width: 220px;
  max-width: 350px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 28px var(--shadow);
  transform: translateY(-4px) scale(1.015);
}
.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;
}
@media (max-width: 768px) {
  .content-grid,
  .text-image-section,
  .card-container,
  .card-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/***** TESTIMONIAL CARDS *****/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #ffffff;
  border-radius: 32px 24px 14px 28px/28px 28px 18px 24px;
  box-shadow: 0 3px 24px rgba(90, 108, 84, 0.11);
  margin-bottom: 20px;
  border-left: 6px solid var(--natural-green);
  color: #213148;
  min-width: 0;
}
.testimonial-card p {
  color: #213148;
  font-size: 1.125rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 1rem;
  color: #567867;
  font-family: 'Open Sans', Arial, sans-serif;
}
@media (max-width: 600px) {
  .testimonial-card { flex-direction: column; gap: 10px; padding: 14px; }
}

/***** FEATURE ITEMS *****/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #e7f2ea;
  border-radius: 18px;
  padding: 16px 16px 12px 16px;
  box-shadow: 0 2px 8px var(--shadow);
  margin-bottom: 18px;
}

/***** Cards or Article List styling *****/
ul > li, ol > li {
  margin-bottom: 14px;
  line-height: 1.6;
  padding-left: 0;
  position: relative;
}
ul > li:before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--natural-green);
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: baseline;
}
ol > li:before { display: none; }
ul {
  margin-bottom: 18px;
  padding-left: 2px;
}
ol {
  margin-bottom: 18px;
  padding-left: 20px;
  list-style-position: inside;
  counter-reset: customol;
}
ol > li {
  counter-increment: customol;
  padding-left: 0;
}
ol > li:before {
  content: counter(customol) '.';
  color: var(--natural-green);
  font-weight: bold;
  margin-right: 7px;
}

/**** BUTTONS, CTA, LINKS ****/
.cta, .button {
  background: var(--accent);
  color: #fff;
  font-family: 'Merriweather', Georgia, serif;
  padding: 12px 32px;
  border-radius: 36px 18px 32px 18px / 28px 18px 26px 18px;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 12px 0 0 0;
  cursor: pointer;
  box-shadow: 0 2px 7px var(--shadow), 0 1.5px 0px 0px #cb7d4a49;
  transition: background .18s, transform .2s, box-shadow .2s;
  display: inline-block;
  outline: none;
  text-align: center;
}
.cta:hover, .button:hover, .cta:focus, .button:focus {
  background: #b4662d;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 3px 18px var(--shadow);
  color: #fff;
}
a.cta:active {
  background: #a0642b;
  color: #fff;
}

/***** HEADER & NAVIGATION *****/
header {
  background: #ebefe6;
  box-shadow: 0 2px 14px #d3ddc77d;
  padding: 0;
  margin-bottom: 4px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 18px;
}
.desktop-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.desktop-nav a {
  color: #1a2333;
  padding: 5px 14px;
  font-size: 1rem;
  border-radius: 22px 10px 24px 10px / 16px 14px 10px 12px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  background: #eaf3e2;
  color: var(--natural-green);
  outline: none;
}
.desktop-nav .cta {
  margin-left: 12px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--natural-green);
  color: #fff;
  padding: 12px 18px;
  border-radius: 26px 12px 20px 14px;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s;
  z-index: 104;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
}

@media (max-width: 996px) {
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(69, 82, 55, 0.82);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.57,.08,.48,1.24);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.75rem;
  border-radius: 24px 10px 20px 14px;
  padding: 10px 22px;
  margin: 26px 24px 15px 0;
  cursor: pointer;
  box-shadow: 0 2px 6px var(--shadow);
  transition: background .18s;
  z-index: 2019;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #c66d2b;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 28px;
  width: 85vw;
  max-width: 360px;
  gap: 3px;
  padding: 12px 38px 28px 30px;
  background: #f6f8f1;
  box-shadow: 0 0 24px rgba(0,0,0,0.07);
  height: 100%;
  border-radius: 32px 0 0 40px;
  overflow-y: auto;
}
.mobile-nav a {
  color: #213148;
  padding: 12px 0 12px 16px;
  font-size: 1.07rem;
  border-radius: 22px 10px 24px 10px / 16px 14px 10px 12px;
  margin-bottom: 4px;
  font-weight: 500;
  min-width: 74%;
  transition: background .15s, color .15s;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #dae7e2;
  color: var(--natural-green);
}

/***** MAIN & SECTION SPACING *****/
main {
  flex: 1 1 100%;
  min-height: 60vh;
}
@media (max-width: 600px) {
  h1 { font-size: 1.44rem; }
  h2 { font-size: 1.15rem; }
  p, ul, ol, .cta, .button { font-size: 1rem; }
}

/***** FOOTER *****/
footer {
  background: #213148;
  color: #FFFFFF;
  padding: 44px 0 0 0;
  margin-top: 24px;
  border-top-left-radius: 56px 56px;
  border-top-right-radius: 48px 32px;
  box-shadow: 0 -2px 16px #ccd8cf4d;
}
footer > .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  padding-bottom: 18px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  list-style: none;
  margin-bottom: 10px;
}
.footer-nav a, .footer-legal a {
  color: #cde2da;
  font-size: 1.05rem;
  transition: color .13s;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--accent);
}
.footer-info {
  text-align: right;
  font-size: 0.98rem;
  color: #b6c4bd;
}
@media (max-width: 800px) {
  footer > .container { gap: 18px; }
  .footer-info {
    text-align: left;
  }
}

/***** MAP PLACEHOLDER for contact.html *****/
.map-placeholder {
  width: 100%;
  padding: 28px 0;
  background: #f2eee3;
  color: #827d6a;
  border-radius: 14px 32px 22px 18px;
  font-style: italic;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
  margin-top: 16px;
}

/***** MODALS & OVERLAYS (for cookies) *****/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #ffffff;
  color: #1a2333;
  box-shadow: 0 -3px 18px #92b1a824;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 1.05rem;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  opacity: 1;
  transition: opacity .25s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text {
  flex: 1 1 250px;
  color: #1a2333;
  min-width: 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cookie-btn, .cookie-set {
  border: none;
  color: #fff;
  background: var(--natural-green);
  padding: 9px 20px;
  border-radius: 22px 10px 22px 16px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background .15s, color .15s;
  margin-right: 2px;
}
.cookie-btn.accept {
  background: #d98036;
}
.cookie-btn.reject {
  background: #947a5f;
}
.cookie-btn:hover, .cookie-set:hover, .cookie-btn:focus {
  background: #386150;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3001;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(61,83,51,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #ffffff;
  padding: 34px 38px 26px 38px;
  border-radius: 36px 24px 20px 36px;
  box-shadow: 0 5px 35px #abc4b19c;
  min-width: 320px;
  max-width: 95vw;
  max-height: 80vh;
  overflow-y: auto;
  color: #213148;
  position: relative;
}
.cookie-modal h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.13rem;
  margin-bottom: 18px;
  color: #1a2333;
}
.cookie-modal p {
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 18px;
  margin-bottom: 15px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-toggle input[type=checkbox] {
  accent-color: var(--accent);
  width: 17px; height: 17px;
  border-radius: 4px;
  border: 1px solid #cde2da;
  margin-right: 7px;
}
.cookie-toggle .cookie-label {
  font-size: 1.05rem;
  color: #386150;
}
.cookie-modal .close-modal {
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  border-radius: 18px 10px 18px 14px;
  padding: 8px 19px;
  cursor: pointer;
  position: absolute;
  top: 18px; right: 22px;
  transition: background .16s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #b4662d;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px;
    font-size: 0.96rem;
  }
  .cookie-btn, .cookie-set {
    padding: 9px 13px;
    font-size: .96rem;
  }
  .cookie-modal {
    padding: 18px 13px 15px 14px;
    font-size: 1rem;
    min-width: 0;
    border-radius: 18px 18px 18px 18px;
  }
}

/***** MICRO-INTERACTIONS & TRANSITIONS *****/
a, button, .cta, .cookie-btn {
  transition: background .16s, color .14s, box-shadow .15s, border-radius .18s, transform .16s;
}
.section, .card, .testimonial-card, .map-placeholder {
  transition: box-shadow .18s, transform .18s;
}
.section:hover {
  box-shadow: 0 7px 34px #cedecd7c;
  transform: scale(1.008);
}

/**** ORGANIC DECORS ****/
.section::before {
  content: '';
  position: absolute;
  left: -32px; top: -42px;
  width: 89px; height: 64px;
  background: #e0eede;
  border-radius: 70% 30% 40% 100% / 38% 58% 42% 62%;
  z-index: 0;
  opacity: .18;
  pointer-events: none;
}
.section::after {
  content: '';
  position: absolute;
  right: -45px; bottom: -35px;
  width: 110px; height: 47px;
  background: #e8dccb;
  border-radius: 44% 74% 56% 100% / 62% 74% 32% 66%;
  z-index: 0;
  opacity: .18;
  pointer-events: none;
}

/***** SPACING ENFORCEMENT FOR FLEX ITEMS *****/
.card-container > *, .card-grid > *, .content-grid > *, .section > .container > .content-wrapper > * {
  margin-bottom: 20px;
}
.card-container > *:last-child,
.card-grid > *:last-child,
.content-grid > *:last-child,
.section > .container > .content-wrapper > *:last-child {
  margin-bottom: 0;
}

/***** RESPONSIVE ADJUSTMENTS *****/
@media (max-width: 996px) {
  .container { max-width: 94vw; padding-left: 5vw; padding-right: 5vw; }
  header .container { min-height: 65px; }
}
@media (max-width: 470px) {
  .container { padding-left: 0; padding-right: 0; }
  .section { padding: 12px 2px; }
}

/***** ACCESSIBILITY FOCUS STATES *****/
a:focus, button:focus {
  outline: 3px solid #d98036;
  outline-offset: 2px;
}

/**** CUSTOM SCROLLBARS ****/
html {
  scrollbar-color: #aeb697 #eaf3e2;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 7px;
  background: #eaf3e2;
}
::-webkit-scrollbar-thumb {
  background: #aeb697;
  border-radius: 4px;
}

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

/* END CSS */
