/* === CSS RESET & BASELINE NORMALIZATION === */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  background: #f9f8f6;
  color: #222822;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image: url('../assets/texture-organic.png'); /* Optional for organic texture */
  background-repeat: repeat;
}
img, svg { max-width: 100%; height: auto; }
a { color: #31A354; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #0D7036; text-decoration: underline; }
ul, ol { list-style: none; }

/* === COLORS & TYPOGRAPHY === */
:root {
  --color-primary: #0D2243;
  --color-secondary: #31A354;
  --color-accent: #F2F4F7;
  --color-earth: #8B7D6B;
  --color-sand: #EDE7D7;
  --color-leaf: #3D7143;
  --color-bark: #514435;
  --color-white: #fff;
  --color-danger: #CE4848;
  --color-shadow1: rgba(62, 94, 42, 0.10);
  --color-shadow2: rgba(87, 106, 94, 0.06);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.4rem; line-height: 1.25; }
h4 { font-size: 1.1rem; }

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.08rem; }
}

p, li, address, span, small {
  font-family: var(--font-body);
  color: #374237;
  margin-bottom: 12px;
}
small, address { font-size: 0.96rem; }

strong { font-weight: 700; color: #284520; }

/* === LAYOUT SPACING === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 28px;
  box-shadow: 0 2px 32px var(--color-shadow1), 0 1.5px 4px var(--color-shadow2);
}
@media (max-width: 600px) {
  .section { padding: 28px 10px; margin-bottom: 32px; border-radius: 18px; }
  .container { padding: 0 10px; }
}

/* === FLEX LAYOUTS === */
.card-container, .feature-grid, .team-bios, .blog-list, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 20px;
}
.card {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 1.5px 12px var(--color-shadow2);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 340px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 7px 24px var(--color-shadow1), 0 2px 14px var(--color-shadow2);
  transform: translateY(-3.5px) scale(1.016);
}
.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 {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 20px var(--color-shadow1);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 260px;
  flex: 1 1 340px;
  margin-bottom: 20px;
  border-left: 6px solid var(--color-secondary);
  transition: box-shadow 0.22s, border-color 0.2s;
}
.testimonial-card p {
  color: #294124;
  font-size: 1.12rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card span {
  font-size: 0.97em;
  color: var(--color-bark);
  font-style: normal;
}
.testimonial-card:hover { box-shadow: 0 7px 25px var(--color-shadow1); border-color: #83c99a; }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--color-shadow2);
  padding: 18px 16px;
}

.customer-ratings {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

@media (max-width: 900px) {
  .card-container, .feature-grid, .team-bios, .blog-list, .faq-list {
    flex-direction: column;
    gap: 20px;
  }
  .testimonial-carousel {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* === HEADER & NAVIGATION === */
header {
  background: var(--color-sand);
  box-shadow: 0 2px 16px var(--color-shadow2);
  position: sticky; top: 0; z-index: 101;
  border-radius: 0 0 28px 28px;
  margin-bottom: 10px;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 18px;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
header nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 9px 0 9px 0;
  border-radius: 16px;
  transition: color 0.13s, background 0.16s;
}
header nav a:hover, header nav a:focus {
  color: var(--color-secondary);
  background: #e0efd8;
}
.cta-button {
  background: var(--color-secondary);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.09rem;
  padding: 11px 32px;
  border-radius: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 14px var(--color-shadow2);
  margin-left: 12px;
  transition: background 0.16s, transform 0.15s, box-shadow 0.15s;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: #299844;
  transform: translateY(-2.5px) scale(1.04);
}
button,
.mobile-menu-toggle,
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px 14px;
  font-size: 1.6rem;
  color: var(--color-primary);
  border-radius: 10px;
  transition: background 0.14s, color 0.17s;
}
.mobile-menu-toggle {
  display: none;
  background: #e6f4eb;
  color: var(--color-secondary);
  margin-left: 14px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #d0e8cd;
  color: #2a7e4d;
}
@media (max-width: 950px) {
  header nav { display: none; }
  .cta-button { display: none; }
  .mobile-menu-toggle { display: flex; align-items: center; }
}
@media (min-width: 951px) {
  .mobile-menu { display: none !important; }
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(39,72,30,0.98);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.91,0,0,1);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-secondary);
  background: #e5efd7;
  width: 48px;
  height: 48px;
  margin: 24px 0 0 24px;
  align-self: flex-start;
  border-radius: 20px;
  z-index: 1010;
  transition: background 0.14s, color 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #c2dda9;
  color: #174e2a;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 56px 0 0 28px;
  gap: 14px;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 12px;
  transition: background 0.13s, color 0.14s;
  min-width: 180px;
  display: inline-block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e7fbe7;
  color: var(--color-secondary);
}
@media (max-width:700px) {
  .mobile-menu {
    padding-left: 0;
  }
  .mobile-nav {
    margin: 44px 0 0 14px;
    gap: 12px;
  }
}

/* === MAIN CONTENT === */
main {
  flex: 1 1 auto;
}
section,
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: var(--color-accent);
}
@media (max-width:700px) {
  section, .section {
    padding: 20px 6px;
    margin-bottom: 34px;
    border-radius: 12px;
  }
}

/* === FAQ, RESOURCE & BLOG STYLES === */
.faq-list, .resources-list, .blog-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}
.faq-list > div, .resources-list ul li, .blog-list article {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 1.5px 10px var(--color-shadow2);
  padding: 20px 16px 18px 16px;
  min-width: 220px;
  flex: 1 1 320px;
  margin-bottom: 20px;
}
.faq-list h3, .resources-list h3, .blog-list h3 { margin-bottom: 10px; }

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.blog-categories a {
  background: #e9efd3;
  color: #346831;
  border-radius: 12px;
  padding: 7px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.16s, color 0.15s;
}
.blog-categories a:hover,
.blog-categories a:focus {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* === TEAM BIOS === */
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.team-bios > div {
  background: var(--color-white);
  padding: 22px 20px;
  border-radius: 16px;
  box-shadow: 0 1.5px 14px var(--color-shadow2);
  flex: 1 1 270px;
  min-width: 200px;
  transition: box-shadow 0.22s, transform 0.15s;
}
.team-bios > div:hover { box-shadow: 0 7px 25px var(--color-shadow1); transform: scale(1.025); }

/* === TRUST BADGES === */
.trust-badges {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 16px 0 12px 0;
}
.trust-badges img {
  width: 48px; height: 48px;
  background: #ecf9ec;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 2px 6px var(--color-shadow2);
}

/* === INTERACTIVE BUTTONS === */
button,
input[type="button"],
input[type="submit"] {
  font-family: var(--font-display);
  font-size: 1.04rem;
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: 10px 26px;
  border-radius: 20px;
  margin: 0 6px 0 0;
  transition: background 0.15s, transform 0.14s;
  cursor: pointer;
}
button:hover, button:focus,
input[type="button"]:hover, input[type="button"]:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: #2b8755;
  transform: translateY(-2px) scale(1.05);
}

/* === ADDRESS & CONTACT BLOCKS === */
.footer-contact, .contact-information address {
  font-style: normal;
  color: var(--color-bark);
  margin-bottom: 8px;
  margin-top: 12px;
  display: block;
}
.footer-contact img, .contact-information address img {
  margin-right: 6px;
  vertical-align: middle;
}
.map-static {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e1ecda;
  padding: 12px 16px;
  border-radius: 12px;
}

/* === FOOTER === */
footer {
  background: var(--color-sand);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 16px var(--color-shadow2);
  margin-top: 40px;
  padding-top: 24px;
  padding-bottom: 14px;
  font-size: 1rem;
}
footer .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
footer nav {
  flex-direction: row;
  gap: 12px;
}
footer nav a {
  color: #41603a;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.11s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-secondary);
}
footer small {
  margin-left: 18px;
  font-size: 0.94rem;
  color: var(--color-bark);
}
@media (max-width:800px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10010;
  background: #f4f1e3;
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -4px 24px rgba(40,82,40,.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: center;
  padding: 18px 16px;
  min-height: 68px;
  /* Slide up */
  transform: translateY(123%);
  opacity: 0;
  transition: transform 0.37s cubic-bezier(.75,0,0,1), opacity 0.19s;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner__text {
  color: #292814;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  max-width: 450px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: 20px;
  border: none;
  padding: 9px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1em;
  margin: 0 2px;
  transition: background 0.14s, transform 0.11s;
  cursor: pointer;
}
.cookie-btn.settings {
  background: #e3e9da;
  color: var(--color-leaf);
}
.cookie-btn.reject {
  background: var(--color-danger);
  color: var(--color-white);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #299844;
  color: var(--color-white);
  transform: scale(1.04);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-leaf);
  color: var(--color-white);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #912d2d;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 18px 5px;
  }
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 11000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(33,50,41,0.67);
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.show {
  display: flex;
}
.cookie-modal {
  background: var(--color-accent);
  border-radius: 22px;
  min-width: 340px;
  max-width: 96vw;
  padding: 34px 32px;
  box-shadow: 0 12px 46px rgba(53,80,43,0.20);
  position: relative;
  animation: cookieModalAppear 0.28s 1 cubic-bezier(.8,0,0,1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@keyframes cookieModalAppear {
  0% { opacity:0; transform: scale(0.92); }
  100% { opacity:1; transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  background: #ecf8eb;
  border-radius: 12px;
  padding: 13px 17px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.cookie-category label {
  color: var(--color-leaf);
  font-weight: 700;
}
.cookie-category input[type='checkbox'] {
  width: 18px; height: 18px;
  accent-color: var(--color-secondary);
}
.cookie-category.essential label {
  color: #b5b570;
  font-weight: 600;
}
.cookie-category.essential input { display: none; }
.cookie-modal .cookie-btn {
  margin-top: 8px;
}
.cookie-modal .close {
  position: absolute;
  top: 16px; right: 16px;
  background: #e9e9df;
  color: #536431;
  border: none;
  border-radius: 8px;
  font-size: 1.32rem;
  width: 32px; height: 32px;
  cursor: pointer;
}
.cookie-modal .close:hover { background: #bacc9e; color: #1A4026; }
@media (max-width: 500px) {
  .cookie-modal {
    min-width: 210px;
    padding: 12px 8px 22px 8px;
  }
}

/* === UTILITY CLASSES === */
.d-flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-lg { gap: 40px; }
.gap-md { gap: 20px; }
.gap-sm { gap: 8px; }
.bg-organic { background: #e8ecd7; }
.text-secondary { color: var(--color-secondary); }
.text-primary { color: var(--color-primary); }
.text-earth { color: var(--color-earth); }
.text-leaf { color: var(--color-leaf); }
.rounded-lg { border-radius: 28px; }

/* === ORGANIC/NATURE VISUALS === */
.card, .feature-item, .testimonial-card, .faq-list > div,
.resources-list ul li, .team-bios > div, .blog-list article {
  border-radius: 18px 40px 24px 22px/24px 22px 18px 40px; /* Organic, asymmetric shapes */
  border-bottom: 3.8px solid #e2d6c6;
  border-right: 2.5px solid #d3cebf;
}

section, .section {
  box-shadow: 0 2px 24px var(--color-shadow1);
  background-image: url('../assets/leaf-pattern-light.png');
  background-size: 30vw auto;
  background-position: right bottom;
  background-repeat: no-repeat;
}

/* === ORNAMENTS / DETAILS (optional SVGs or subtle lines; can be replaced with images) === */
hr {
  border: 0;
  border-top: 1.5px dashed #ded8c6;
  margin: 24px 0;
}

/* === ANIMATIONS, TRANSITIONS === */
a, button, .card, .testimonial-card, .cta-button, .cookie-banner, .cookie-btn {
  transition: all 0.17s cubic-bezier(.85,0,.16,1);
}

/* === FOCUS STATES FOR ACCESSIBILITY === */
a:focus, button:focus, .cta-button:focus, .cookie-btn:focus {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #b4d8b9;
}

/* === FORMS: Minimal styling for accessibility (should customize further if forms exist) === */
input, select, textarea {
  border: 1.5px solid #d3dbd2;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #f7f9f5;
  color: var(--color-primary);
  transition: border 0.14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  outline: none;
}

/* === MISC ORGANIC ELEMENTS === */
.feature-grid > div, .feature-item {
  box-shadow: 0 5px 22px var(--color-shadow1); 
  border-left: 5px solid #96cc85;
  padding: 22px 18px
}
.feature-grid img, .feature-item img {
  width: 42px; height: 42px; margin-bottom: 10px;
}

.next-steps ul, .unique-points ul, .resources-list ul {
  margin-left: 18px;
  list-style: disc inside;
}

/* === OVERFLOW & Z-INDEX FIXES === */
body, html {
  overflow-x: hidden;
}
.mobile-menu, .cookie-modal-overlay, .cookie-banner { z-index: 10010; }

/* === RESPONSIVE SPACING & TYPOGRAPHY === */
@media (max-width:500px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.1rem; }
  .section, section { padding: 14px 2px; }
  .card, .card-container, .testimonial-card { min-width: 85vw; }
}
