/* -------------------
   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, 
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 {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F6F7F4; /* subtle warm off-white reminiscent of nature */
  color: #293529;
  font-family: 'Open Sans', Arial, sans-serif;
  letter-spacing: 0.02em;
  font-size: 1rem;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 12px;
}
a {
  color: #35694b;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1D3557;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* -------------------
   COLOR VARIABLES (with fallback)
----------------------*/
:root {
  --color-bg: #F6F7F4;
  --color-primary: #1D3557;
  --color-secondary: #E63946;
  --color-accent: #F1FAEE;
  --color-dark: #293529;
  --color-neutral: #887864;
  --color-success: #426751;
  --color-earth1: #d9cbb3;
  --color-earth2: #b7aa8f;
  --color-grey: #ececec;
  --color-shadow: rgba(44,52,41,0.06);
  --color-footer: #d5e4d4;
}

/* -------------------
   TYPOGRAPHY
----------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1D3557;
  line-height: 1.18;
}
h1 { font-size: 2.4rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; margin-top: 8px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; margin-top: 8px; }
h4 { font-size: 1.13rem; margin-bottom: 8px; }
p, .subheadline {
  font-size: 1.06rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #293529;
  margin-bottom: 16px;
}
.subheadline { font-size: 1.15rem; color: #426751; font-weight: 600; }
strong, b {
  font-weight: 700;
  color: #426751;
}
blockquote {
  font-style: italic;
  background: #f1faee;
  border-left: 4px solid #7fb77e;
  color: #35594b;
  margin: 0;
  padding: 24px 24px 24px 32px;
  border-radius: 18px;
  box-shadow: 0 4px 24px var(--color-shadow);
}

/* Typography scale for small screens */
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.34rem; }
  h3 { font-size: 1.05rem; }
  p, .subheadline { font-size: 0.95rem; }
}

/* -------------------
   LAYOUT: global containers & sections
----------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 32px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 32px;
    padding: 20px 6px;
    border-radius: 20px;
  }
}

/* Organic backgrounds for major intro or CTA blocks */
section {
  position: relative;
}
section:nth-child(odd) .container {
  background: #f1faee;
  border-radius: 32px;
  box-shadow: 0 4px 32px var(--color-shadow);
}

/* Flexible content grid for cards, features, etc. */
.card-container, .card-grid, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.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) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---- CARDS ---- */
.card, .service-card, .testimonial-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px 0 var(--color-shadow);
  padding: 28px 28px 28px 28px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  flex: 1 1 300px;
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover, .service-card:hover, .testimonial-card:hover {
  box-shadow: 0 12px 36px 0 rgba(52, 100, 74, 0.14);
  transform: translateY(-4px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---- TESTIMONIAL CARD ---- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F1FAEE;
  border-left: 6px solid #7fb77e;
  box-shadow: 0 2px 18px var(--color-shadow);
  margin-bottom: 20px;
  font-size: 1.03em;
  color: #293529;
}
.testimonial-meta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98em;
  font-weight: 600;
  color: #335338;
}
.testimonial-card span {
  color: #40744B;
  font-size: 1.1em;
}
@media (max-width: 700px) {
  .testimonial-card {
    flex-direction: column;
    text-align: left;
    padding: 20px 12px;
    gap: 10px;
  }
}

/* ---- FEATURE LISTS & ITEMS ---- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
ul li, .feature-item li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #35594b;
}
ul li img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d9cbb3;
  padding: 4px;
  margin-right: 8px;
}

/* -------------------
   NAVIGATION + HEADER
----------------------*/
header {
  background: #F1FAEE;
  box-shadow: 0 2px 10px var(--color-shadow);
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  padding: 0;
  position: relative;
  z-index: 20;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
}
nav img {
  height: 54px;
  width: auto;
  margin-right: 4px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #1D3557;
  font-size: 1.05em;
  padding: 8px 16px;
  border-radius: 28px;
  transition: background 0.16s, color 0.16s;
}
nav a:hover, nav a:focus {
  background: #E3ECCE;
  color: #2b4f37;
}
nav .cta-primary {
  background: #426751;
  color: #fff !important;
  border-radius: 99px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(42, 85, 33, 0.14);
  padding: 10px 26px;
  letter-spacing: 0.06em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
nav .cta-primary:hover, nav .cta-primary:focus {
  background: #1D3557 !important;
  color: #F1FAEE !important;
}

@media (max-width: 992px) {
  nav {
    gap: 8px;
  }
  nav img {
    height: 44px;
  }
  nav a {
    padding: 7px 9px;
    font-size: 1em;
  }
}

/* Hide nav links and show burger on mobile */
.mobile-menu-toggle {
  display: none;
  background: #426751;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 14px;
  padding: 8px 13px 8px 13px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.20s;
  z-index: 100;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #294e38;
}
@media (max-width: 880px) {
  .mobile-menu-toggle {
    display: block;
  }
  nav {
    display: none;
  }
}

/* -------------------
   MOBILE SLIDE MENU
----------------------*/
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #E3ECCE;
  transform: translateX(-100vw);
  transition: transform 0.42s cubic-bezier(.75,-0.01,.47,1.01);
  z-index: 111;
  box-shadow: 6px 0 22px rgba(26,62,50,.15); 
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 16px 2px 0;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #293529;
  cursor: pointer;
  padding: 0 13px;
  border-radius: 15px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #d8e5cb;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: start;
  gap: 6px;
  padding: 36px 24px 0 40px;
  width: 100%;
}
.mobile-nav a {
  color: #1D3557;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.27em;
  font-weight: 600;
  padding: 14px 16px;
  width: 100%;
  border-radius: 18px;
  background: none;
  margin-bottom: 4px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #c3e3c0;
  color: #2e4638;
}
@media (min-width: 881px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* -------------------
   FOOTER
----------------------*/
footer {
  background: var(--color-footer, #d5e4d4);
  color: #294e38;
  font-size: 1rem;
  border-top: 2px solid #E3ECCE;
  padding-top: 36px;
  padding-bottom: 18px;
}
footer .container {
  padding-top: 0;
  padding-bottom: 0;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
footer img {
  height: 42px;
  border-radius: 8px;
  margin-bottom: 2px;
}
.brand-tagline {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #426751;
  font-size: 1.10rem;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 4px;
}
.footer-menu, .footer-sitemap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}
.footer-menu a, .footer-sitemap a {
  color: #294e38;
  font-weight: 600;
  font-size: 1em;
  opacity: 0.89;
}
.footer-menu a:hover, .footer-sitemap a:hover {
  color: #426751;
  opacity: 1;
}
@media (max-width: 480px) {
  footer .content-wrapper, .footer-menu, .footer-sitemap {
    flex-direction: column;
    gap: 11px;
    align-items: flex-start;
  }
}

/* -------------------
   BUTTONS
----------------------*/
.cta-primary,
button.cta-primary {
  background: #426751;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08em;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 99px;
  padding: 15px 40px;
  box-shadow: 0 3px 18px rgba(61, 83, 70, 0.11);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.12s;
  outline: none;
  margin-top: 16px;
  margin-bottom: 8px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #254137;
  color: #e5fcf6;
  transform: translateY(-2px) scale(1.025);
}
.cta-secondary {
  background: #F1FAEE;
  color: #426751;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1em;
  border: none;
  border-radius: 22px;
  padding: 11px 22px;
  text-align: center;
  transition: background 0.18s, color 0.16s, box-shadow 0.16s;
  margin-top: 8px;
  margin-bottom: 0;
  box-shadow: 0 1px 8px rgba(99,137,82,.09);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #c1e4b0;
  color: #254137;
  box-shadow: 0 2px 12px rgba(99,137,82,.13);
}
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  font-family: inherit;
  font-size: inherit;
  border-radius: 12px;
  border: none;
  background: #b7aa8f;
  color: #293529;
  padding: 11px 19px;
  transition: background .16s, color .16s;
  cursor: pointer;
}
button:hover, button:focus {
  background: #426751;
  color: #fff;
}

/* Accessibility: Focus outline for all actionable elements */
a, button, input[type=submit], input[type=button] {
  outline: none;
}
a:focus,
button:focus {
  box-shadow: 0 0 0 2px #7fb77e;
}

/* -------------------
   ORGANIC SHAPES: Card Shadows, Borders, Textures
----------------------*/
.card, .service-card, .testimonial-card, .cta-primary, .cta-secondary {
  border-radius: 22px;
  box-shadow: 0 6px 32px 0 var(--color-shadow);
}

/* Decorative subtle bg shapes (organic, leaf-like) can be done with pseudo-elements - example for big hero sections */
section.hero::before, section.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  border-radius: 44% 56% 60% 40%;
  opacity: 0.18;
  background: #b7aa8f;
  filter: blur(38px);
}
section.hero::before {
  width: 220px; height: 180px; left: -60px; top: 10px;
}
section.hero::after {
  width: 170px; height: 130px; right: -40px; bottom: 24px;
}

/* -------------------
   TABLES
----------------------*/
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0 32px 0;
  background: #F1FAEE;
  border-radius: 22px;
  box-shadow: 0 1px 8px var(--color-shadow);
  overflow: hidden;
  font-size: 1em;
}
thead {
  background: #d1dbc2;
}
th, td {
  text-align: left;
  padding: 13px 19px;
}
th {
  color: #1D3557;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.04em;
}
td {
  color: #293529;
}
tr {
  border-bottom: 1px solid #ececec;
}
tr:last-child { border-bottom: none; }

/* Responsive tables */
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td {
    display: block;
  }
  th, td {
    padding: 8px 7px;
    font-size: 0.97em;
  }
}

/* -------------------
   FORMS (if later added)
----------------------*/
input[type=text], input[type=email], textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 1em;
  border: 1px solid #b7aa8f;
  border-radius: 10px;
  background: #fafcf8;
  margin-bottom: 19px;
  color: #1D3557;
  transition: border 0.15s, box-shadow 0.16s;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  border-color: #426751;
  outline: none;
}

/* -------------------
   RESPONSIVE SPACING & FLEX LAYOUTS
----------------------*/
@media (max-width: 991px) {
  .container { padding: 0 9px; }
  .card-container, .card-grid, .service-cards {
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .card-container, .card-grid, .service-cards, .content-grid {
    flex-direction: column;
    gap: 13px;
  }
  .service-card, .testimonial-card, .card {
    min-width: 0;
  }
}

/* Adequate margin/padding between all elements */
main > section, section {
  margin-bottom: 60px;
}
@media (max-width: 700px) {
  main > section, section {
    margin-bottom: 32px;
  }
}

.card, .service-card, .testimonial-card {
  margin-bottom: 24px;
}

/* Prevent content overlap, always use flex or margin */
.content-wrapper > * {
  margin-bottom: 22px;
}
.content-wrapper > *:last-child {
  margin-bottom: 0;
}

/* --------------
   COOKIE CONSENT BANNER
----------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #335338;
  color: #fff;
  font-size: 1.01rem;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 20px 10px;
  z-index: 9999;
  box-shadow: 0 -2px 22px #42675155;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform .28s cubic-bezier(.78,.14,.41,1.07);
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner .cta-primary, .cookie-banner .cta-secondary {
  font-size: 1em;
  border-radius: 14px;
  padding: 9px 22px;
  margin: 0 3px;
}
.cookie-banner .cta-primary {
  background: #40744B;
  color: #fff;
}
.cookie-banner .cta-secondary {
  background: #e2e7e2;
  color: #335338;
}
.cookie-banner button.reject {
  background: #E63946;
  color: #fff;
}
.cookie-banner button.reject:hover,
.cookie-banner .cta-secondary:hover {
  background: #b32734;
  color: #fff;
}
.cookie-banner .cta-primary:hover {
  background: #254137;
}

/* --------------------
   COOKIE MODAL PREFERENCES
----------------------*/
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%) scale(1);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 44px rgba(62,83,75,0.22);
  z-index: 10001;
  width: 98%;
  max-width: 420px;
  padding: 34px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.22s, transform 0.22s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-56%) scale(0.95);
  visibility: hidden;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #1D3557;
}
.cookie-modal-category {
  font-size: 1.05em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal-category input[type=checkbox]:not(:disabled) {
  accent-color: #426751;
}
.cookie-modal-category label {
  font-weight: 600;
}
.cookie-modal-category input[type=checkbox][disabled] {
  accent-color: #bcbba5;
}
.cookie-modal-footer {
  margin-top: 12px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  width: 100%;
  justify-content: flex-end;
}
.cookie-modal button {
  border-radius: 14px;
  font-weight: 700;
  font-family: inherit;
  font-size: 1em;
}
.cookie-modal .close {
  background: none;
  color: #40744B;
  border: none;
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.5em;
  cursor: pointer;
}
.cookie-modal .close:hover {
  background: #e2e7e2;
  border-radius: 12px;
}

/* Backdrop overlay for modal */
.cookie-modal-backdrop {
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: rgba(62,68,55,0.36);
  z-index: 10000;
  
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Button subtle tap animation */
button:active, .cta-primary:active, .cta-secondary:active {
  transform: translateY(1.5px) scale(0.98);
  box-shadow: 0 2px 7px rgba(61, 83, 70, 0.09);
}

/* Smooth slide for mobile nav */
.mobile-menu {
  transition: transform 0.42s cubic-bezier(.69,-0.01,.55,1.01);
}

/* SECTION accent headers with organic colored underline */
h2, h3 {
  position: relative;
}
h2:after, h3:after {
  content: "";
  display: block;
  width: 74px;
  height: 7px;
  border-radius: 13px;
  background: linear-gradient(90deg, #b7aa8f 8%, #c2f087 85%);
  position: absolute;
  bottom: -12px; left: 0;
  opacity: 0.35;
}

/* Responsive adjustments for all columns & flex layouts */
@media (max-width: 750px) {
  .card-container, .card-grid, .service-cards, .content-grid, .footer-menu, .footer-sitemap {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }
}

/* Prevent content overlap and provide good spacing */
.container, .content-wrapper, .card-container, .card-grid, .service-cards, .content-grid, .feature-item, .testimonial-card {
  gap: 20px;
}
@media (max-width: 480px) {
  .container, .content-wrapper, .card-container, .card-grid, .service-cards, .content-grid, .feature-item, .testimonial-card {
    gap: 10px;
  }
}

/* -----------
   ACCESSIBILITY COLORS FOR TESTIMONIALS & CTA
-------------*/
.testimonial-card {
  background: #F1FAEE;
  color: #284130;
}
.testimonial-card blockquote {
  color: #274B35;
  background: transparent;
  border: none;
  font-style: italic;
}

/* -----------
   UTILITIES
---------------*/
.d-none { display: none !important; }
.text-center { text-align: center !important; }
.mt-24 { margin-top: 24px !important; }
.mb-16 { margin-bottom: 16px !important; }

/* -----------
   PRINT Safe (if needed)
-------------*/
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-modal-backdrop { display: none !important; }
}

/* -----------
   END CSS
---------------*/
