/* ---------- 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, menu, 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;
  background: transparent;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  font-family: 'Nunito', Arial, sans-serif;
  color: #1C2923;
  background: #F5F3ED;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section {
  display: block;
}
ol, ul, menu {
  list-style: none;
}
a {
  background: none;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
}

/* ------------------ BRAND VARIABLES & FONT LOAD ------------------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&family=Quicksand:wght@700&display=swap');
:root {
  --clr-primary: #2E5E4E;
  --clr-secondary: #BCD9C8;
  --clr-accent: #F5F3ED;
  --clr-heading: #222633;
  --clr-bg-light: #fff;
  --clr-bg-alt: #F5F3ED;
  --clr-grey: #ECECEC;
  --clr-link: #236950;
  --clr-link-hover: #1c3f34;

  --font-display: 'Quicksand', Arial, sans-serif;
  --font-body: 'Nunito', Arial, sans-serif;
}

/* ---------- LAYOUT CONTAINERS & SPACING ---------- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 24px;
  box-shadow: 0 2px 18px 0 rgba(46,94,78,0.09);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  flex: 1 1 265px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 4px 24px 0 rgba(46,94,78,0.19);
  cursor: pointer;
}
.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 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 18px 0 rgba(46,94,78,0.13);
  border-left: 8px solid var(--clr-secondary);
  max-width: 500px;
  transition: box-shadow .21s cubic-bezier(.4,0,1,1);
}
.testimonial-card blockquote {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1.7;
  margin: 0 0 6px 0;
  font-family: var(--font-body);
}
.testimonial-card > div {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  letter-spacing: 0.01em;
}
.testimonial-card span {
  color: #F4B841;
  font-size: 20px;
  margin-left: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid, .service-grid, .blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div, .service-grid > div, .blog-grid > div {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(46,94,78,0.10);
  padding: 28px 24px 20px 24px;
  min-width: 240px;
  flex: 1 1 260px;
  margin-bottom: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-grid img, .service-grid img, .blog-grid img {
  width: 44px;
  height: 44px;
}
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.faq-list > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 9px 0 rgba(46,94,78,0.09);
  padding: 24px 20px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-categories {
  margin-top: 16px;
}
.map-embed {
  width: 100%;
  height: 180px;
  background: #ecf0ed;
  border-radius: 10px;
  margin-top: 10px;
}

/* Mobile/Tablet layout adjustments with flex only! */
@media (max-width: 950px) {
  .feature-grid > div, .service-grid > div, .blog-grid > div {
    flex: 1 1 40%;
    min-width: 180px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .feature-grid, .service-grid, .card-container, .blog-grid, .faq-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .service-grid > div, .blog-grid > div, .faq-list > div {
    min-width: 0;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonials {
    flex-direction: column;
    gap: 14px;
  }
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--clr-heading);
  font-family: var(--font-display);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1.125rem;
  font-weight: 700;
}
@media (max-width: 768px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.55rem;}
  h3 {font-size: 1.15rem;}
}
p, ul, li, blockquote {
  font-size: 1rem;
  color: #23282b;
  margin-bottom: 8px;
  line-height: 1.6;
}
ul {
  padding-left: 0;
}
ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
ul li img {
  width: 23px;
  height: 23px;
  border-radius: 8px;
}
strong {
  font-weight: 900;
  color: var(--clr-primary);
}


/* ---------- BUTTONS & CTA ---------- */
.cta-button,
button, input[type="submit"] {
  background: var(--clr-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  padding: 12px 34px;
  border-radius: 22px;
  box-shadow: 0 2px 16px 0 rgba(46,94,78,0.09);
  border: none;
  cursor: pointer;
  transition: background 0.15s cubic-bezier(.4,0,1,1), box-shadow 0.16s cubic-bezier(.5,0,1,1), transform 0.14s;
  margin-top: 16px;
  margin-bottom: 8px;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus,
button:hover, button:focus,
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #19533a;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 23px 0 rgba(46,94,78,0.19);
}

/* ---------- HEADER & NAVIGATION ---------- */
header {
  background: #fff;
  padding: 0;
  box-shadow: 0 1px 12px 0 rgba(46,94,78,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
header img {
  height: 46px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  color: var(--clr-primary);
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: 0.006em;
  padding: 8px 6px;
  border-radius: 11px;
  transition: background 0.15s cubic-bezier(.4,0,1,1), color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--clr-secondary);
  color: #1c3f34;
}

header .cta-button {
  margin-left: 18px;
  margin-right: 0;
}
.mobile-menu-toggle {
  background: var(--clr-primary);
  color: #fff;
  font-size: 2em;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .17s, transform 0.18s;
  z-index: 201;
  border: none;
  margin-left: 10px;
}
@media (max-width: 950px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .cta-button {
    display: none;
  }
}

/* ---------- MOBILE MENU ------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(46,94,78,0.95);
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.76,0,.24,1);
  z-index: 202;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  box-shadow: 0 0 44px 0 rgba(51,76,69,0.19);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.3em;
  margin: 22px 0 16px 23px;
  border-radius: 50%;
  transition: background .15s, color .16s;
  align-self: flex-start;
  z-index: 204;
  border: none;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(255,255,255,0.12);
  color: #F5F3ED;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-left: 28px;
  margin-top: 22px;
  width: 80vw;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 7px 8px 7px 0;
  border-radius: 9px;
  transition: background .15s, color .16s;
  display: inline-block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}
@media (max-width: 500px) {
  .mobile-nav {
    width: 95vw;
    margin-left: 8vw;
  }
}

/* Overlay for mobile menu effect */
.mobile-menu.open {
  box-shadow: 0 0 44px 0 rgba(46,94,78,0.19);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--clr-primary);
  color: #fff;
  padding: 28px 0 14px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 12px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 9px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
footer nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-right: 8px;
  transition: color .18s, text-decoration .15s;
  text-decoration: underline dotted transparent 2px;
}
footer nav a:hover, footer nav a:focus {
  color: #F5F3ED;
  text-decoration-color: #fff;
}
.footer-contact {
  font-size: 0.98rem;
  color: #EFFFFD;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 650px) {
  footer nav {
    flex-direction: column;
    gap: 10px;
  }
  .footer-contact{
    font-size: 0.93rem;
  }
}

/* ---------- BLOG CATEGORIES & MISC ---------- */
.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 9px;
}
.blog-categories a {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.98rem;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background .14s, color .14s;
}
.blog-categories a:hover {
  background: var(--clr-primary);
  color: #fff;
}

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #252525;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -3px 18px 0 rgba(46,94,78,0.13);
  padding: 18px 21px 18px 21px;
  z-index: 903;
  gap: 14px;
  animation: slideBannerUp .46s cubic-bezier(.7,0,.15,1);
}
@keyframes slideBannerUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner__text {
  font-size: 1.1rem;
  max-width: 520px;
  line-height: 1.5;
  margin-right: 18px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-left: auto;
}
.cookie-btn {
  background: var(--clr-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
  border-radius: 15px;
  padding: 9px 19px;
  margin-right: 0;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color .13s, transform 0.12s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #19533a;
  color: #fff;
  transform: scale(1.06);
}
.cookie-btn.secondary {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}
.cookie-btn.secondary:hover,
.cookie-btn.secondary:focus {
  background: #eaf6ef;
  color: var(--clr-primary);
}
.cookie-btn.settings {
  background: #fff;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
  padding: 8px 13px;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--clr-secondary);
  color: var(--clr-primary);
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 7px 22px 7px;
  }
  .cookie-banner__actions {
    margin-left: 0;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top:0; bottom:0;
  background: rgba(46,94,78,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1002;
  pointer-events: auto;
  animation: fadeModalBg .4s;
}
@keyframes fadeModalBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(46,94,78,0.22);
  padding: 32px 28px 28px 28px;
  width: 95vw;
  max-width: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: popCookieModal .41s cubic-bezier(.42,0,.55,1);
}
@keyframes popCookieModal {
  from {
    transform: scale(0.89) translateY(60px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: var(--clr-primary);
  font-family: var(--font-display);
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 12px 0;
  font-family: var(--font-body);
  font-size: 1.04rem;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--clr-primary);
  width: 21px;
  height: 21px;
}
.cookie-category .always-on {
  color: var(--clr-secondary);
  font-weight: 700;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.cookie-modal .cookie-btn {
  min-width: 0;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 14px;
  background: none;
  color: var(--clr-primary);
  font-weight: bold;
  font-size: 1.5rem;
  padding: 2px 9px;
  border-radius: 50%;
  border: none;
  transition: background .18s, color .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--clr-secondary);
  color: #19533a;
}

/* ---------- FORM ELEMENTS ---------- */
input, textarea {
  background: #fff;
  border: 1.5px solid #CAE4D1;
  border-radius: 11px;
  padding: 11px 14px;
  margin-bottom: 13px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .13s, box-shadow .15s;
}
input:focus, textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 2px var(--clr-secondary);
}

label {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--clr-primary);
  display: block;
  font-size: 1.05rem;
}

/* ---------- ANIMATIONS FOR MICRO-INTERACTIONS ---------- */
.card, .feature-grid > div, .service-grid > div, .blog-grid > div, .faq-list > div {
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .feature-grid > div:hover,.service-grid > div:hover, .blog-grid > div:hover, .faq-list > div:hover {
  box-shadow: 0 4px 21px 0 rgba(46,94,78,0.21);
  transform: translateY(-6px) scale(1.01);
}

/* ---------- PAGE SPECIFIC FINE-TUNING ---------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}
.text-section ul {
  margin-bottom: 9px;
}

@media (max-width: 480px) {
  h1{font-size:1.45rem;}
  h2{font-size:1.19rem;}
  .section{padding:22px 4px;margin-bottom:34px;}
  .cookie-modal{padding:16px 5px 14px 17px;}
}

/* ---------- UTILITY CLASSES & DEBUG ---------- */
.mt0 { margin-top: 0 !important; }
.mb0 { margin-bottom: 0 !important; }

/* This ensures no grid/columns based selectors used, all layout handled by flex and gap. */
