/* RESET & BASELINE ------------------ */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #23423E;
  background-color: #FAFAF7;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  background-image: url('../assets/textures/leaves-bg.svg'); /* Subtle nature texture, fallback: none if unavailable */
  background-repeat: repeat;
  background-size: 400px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: #168240; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px solid #168240; }
a:hover { color: #23577C; }
button, .btn-primary, .btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  border: none;
  background: none;
}
ul, ol { padding-left: 1.2em; margin-bottom: 1em; }
li { margin-bottom: 0.6em; }

/* BRAND VARIABLES (using fallbacks) */
:root {
  --color-primary: #23577C;
  --color-secondary: #168240;
  --color-accent: #F3F5F7;
  --color-earth: #C9BC9C;
  --color-earth-dark: #8E846A;
  --color-green-muted: #E5F4E9;
  --color-shadow: rgba(60,65,50,0.1);
  --color-section-bg: #F3F5F7;
  --border-radius-lg: 22px;
  --border-radius-md: 14px;
}

/* TYPOGRAPHY --------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #235332;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.13;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h4 { font-size: 1rem; font-weight: 600; }
p, ul, ol { margin-bottom: 16px; }
strong { color: #168240; font-weight: 700; }

/* CONTAINER SYSTEM ----------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.section {
  background: var(--color-section-bg);
  border-radius: var(--border-radius-lg);
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* LAYOUT & FLEXBOX (NO GRID) ------------------ */
.card-container, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .service-card {
  background: #fff;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  box-shadow: 0 4px 24px var(--color-shadow);
  padding: 24px 20px 20px 20px;
  flex: 1 1 258px;
  min-width: 220px;
  max-width: 340px;
  position: relative;
  transition: box-shadow 0.24s, transform 0.22s;
}
.card:hover, .service-card:hover {
  box-shadow: 0 8px 36px rgba(40,70,48,0.15);
  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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features ul,
.service-list,
.contact-details,
.blog-list {
  list-style: none;
  padding: 0;
}
.features ul li,
.service-list li,
.contact-details li,
.blog-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 1rem;
  background: var(--color-green-muted);
  border-radius: 17px;
  padding: 14px 20px 14px 15px;
}
.features ul li img,
.service-list li img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background: #D9EEE3;
  padding: 6px;
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 0 0px 8px #c7dbc7;
}

/* TESTIMONIALS CARDS -------------------------- */
.testimonials,
.testimonial-card {
  width: 100%;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--border-radius-md);
  box-shadow: 0 2px 18px rgba(40,70,48,0.09);
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: #23423E;
  position: relative;
  overflow: hidden;
}
.testimonial-card p {
  font-style: italic;
  flex: 1;
  margin-bottom: 6px;
}
.testimonial-card strong {
  min-width: 160px;
  font-size: 0.96em;
  color: #23577C;
  display: block;
  text-align: right;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    text-align: left;
  }
  .testimonial-card strong {
    text-align: left;
    font-size: 0.98em;
    margin-top: 3px;
  }
}

/* BUTTONS ------------------------------------- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  letter-spacing: 0.02em;
  padding: 12px 28px;
  border-radius: 24px;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.22s, transform 0.16s;
  box-shadow: 0 2px 8px var(--color-shadow);
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(90deg, var(--color-secondary) 60%, #6FBF7C 100%);
  color: white;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #117b36 70%, #2b663e 100%);
  color: #fff;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(22,130,64,0.21);
}
.btn-secondary {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #16415b;
  color: #fff;
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(35,87,124,0.14);
}

/* HEADER & NAVIGATION ------------------------------ */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(35,87,124,0.03);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 60;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}
.logo img {
  height: 45px;
  width: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  color: #23577C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 6px;
  border-radius: 12px;
  transition: color 0.18s, background 0.16s;
}
nav a:hover, nav a:focus {
  background: var(--color-green-muted);
  color: var(--color-secondary);
}
nav a.btn-primary {
  margin-left: 14px;
  padding: 10px 20px;
}

/* Hamburger Mobile Menu -------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 47px;
  height: 47px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  margin-left: 18px;
  box-shadow: 0 2px 9px rgba(34,94,60,0.085);
  transition: background 0.17s, color 0.14s;
  position: relative;
  z-index: 120;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-primary);
}
/* MOBILE MENU OVERLAY -------------------------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(33,56,39,0.11);
  backdrop-filter: blur(3px);
  transition: transform 0.35s cubic-bezier(.77,.24,.39,1.07), opacity 0.32s;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  display: flex; align-items: flex-start; justify-content: flex-end;
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.mobile-nav {
  background: #fff;
  box-shadow: -5px 0 24px rgba(35,87,124,0.13);
  height: 100vh;
  width: 88vw;
  max-width: 350px;
  display: flex; flex-direction: column;
  gap: 0;
  padding: 32px 20px 22px 30px;
  position: relative;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,.24,.39,1.07);
}
.mobile-menu.active .mobile-nav {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px; right: 24px;
  background: var(--color-primary);
  color: #fff;
  font-size: 2.2rem;
  border: none;
  border-radius: 50%;
  width: 48px; height: 48px;
  z-index: 1012;
  transition: background 0.14s;
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-close:hover {
  background: #1c4764;
}
.mobile-nav a {
  display: block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  color: #23577C;
  font-weight: 600;
  border-radius: 14px;
  padding: 11px 10px;
  margin-bottom: 8px;
  transition: background 0.16s, color 0.14s;
}
.mobile-nav a:hover {
  background: var(--color-green-muted);
  color: var(--color-secondary);
}
.mobile-nav a.btn-primary {
  background: var(--color-secondary);
  color: #fff;
  font-size: 1.17rem;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 5px;
  padding: 13px 14px;
}

@media (max-width: 1023px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu.active { display: none !important; }
  .mobile-menu-toggle { display: none; }
}


/* HERO ------------------------------------ */
.hero {
  background: linear-gradient(96deg, #F3F5F7 75%, #E5F4E9 100%);
  border-radius: var(--border-radius-lg);
  min-height: 330px;
  margin-top: 22px;
  margin-bottom: 54px;
  box-shadow: 0 8px 40px var(--color-shadow);
  display: flex; align-items: center; justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 38px 0 36px 0;
}
.hero h1 {
  color: #195c2b;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.19rem;
  color: #23423E;
  margin-bottom: 23px;
  max-width: 510px;
}
.hero .btn-primary {
  min-width: 210px;
}

/* SECTIONS, ORGANIC SHAPES & CARDS ---------------------- */
.services-highlight {
  background: #E5F4E9;
  border-radius: 34px;
  box-shadow: 0 4px 32px #c7dbc7;
  margin-bottom: 68px;
}
.service-cards {
  margin-bottom: 22px;
  gap: 24px 24px;
}
.service-card {
  min-height: 224px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  background: #fff;
  border-left: 6px solid var(--color-secondary);
  border-radius: var(--border-radius-md) 38px 20px 25px / 15px 28px 14px 30px;
  transition: box-shadow 0.22s, border-color 0.19s;
}
.service-card img {
  width: 39px; height: 39px; margin-bottom: 16px;
}
.service-card h3 { color: #1b5d2f; margin-bottom: 7px; }
.service-card span {
  margin-top: auto; color: #117b36; font-weight: 700; font-size: 1.07rem;
}
/* Organically shaped section and content corners */
.section, .services-highlight, .card, .service-card, .testimonial-card {
  border-radius: 30px 25px 14px 38px / 19px 39px 29px 30px;
}


/* TABLES (PRICING) --------------------------- */
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 14px rgba(35,87,124,0.075);
  overflow: hidden;
  margin-bottom: 22px;
  font-size: 1rem;
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid #b7ccba29;
}
.pricing-table th {
  background: #168240;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td {
  color: #1d3c29;
  font-family: 'Roboto', Arial, sans-serif;
}

/* BLOG --------------------------------------- */
.blog-list li {
  padding: 14px 11px 14px 14px;
  background: #f8fbf7;
  border-radius: 16px;
  border-left: 4px solid #C9BC9C;
}
.blog-list a {
  color: #23577C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.blog-categories {
  margin-top: 12px;
  font-size: 0.96em;
  color: #195c2b;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* CTA SECTION -------------------------------- */
.cta {
  background: linear-gradient(95deg, #E5F4E9 60%, #FAFAF7 100%);
  text-align: center;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 30px #c7dbc7;
  margin-bottom: 40px;
}
.cta .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.cta h2 {
  color: #168240;
  margin-bottom: 12px;
}
.cta p {
  color: #23577C;
  margin-bottom: 20px;
}

/* FOOTER ------------------------------------- */
footer {
  background: #23423E;
  color: #fff;
  padding: 42px 0 19px 0;
  margin-top: 70px;
  box-shadow: 0 -2px 22px rgba(35,87,124,0.09);
}
footer .container { display: flex; flex-direction: column; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 36px;
  justify-content: space-between;
}
.footer-logo {
  height: 40px;
  margin-bottom: 10px;
}
footer nav { display: flex; flex-direction: column; gap: 9px; }
footer nav a {
  color: #D5E5D5;
  font-size: 1rem;
  transition: color 0.16s;
  border-radius: 7px;
  padding: 5px 4px 5px 0;
}
footer nav a:hover {
  color: #e6ffec;
  background: rgba(16,100,40,0.17);
}
.footer-contact {
  font-size: 0.99em;
  color: #e8eee8;
  margin-top: 10px;
}
.footer-socials { display: flex; align-items: center; gap: 15px; }


/* COOKIE CONSENT BANNER ---------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fffbe6;
  color: #23423E;
  box-shadow: 0 -4px 40px rgba(183,178,120,0.22);
  border-top: 4px solid #C9BC9C;
  padding: 22px 14px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  z-index: 1300;
  font-size: 1rem;
  animation: cookieAppear 0.66s cubic-bezier(.22,.8,.32,1.08);
}
@keyframes cookieAppear {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 7px;
}
.cookie-banner .btn-cookie {
  background: #168240;
  color: #fff;
  padding: 8px 19px;
  border-radius: 22px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 4px;
  transition: background 0.17s, color 0.16s;
}
.cookie-banner .btn-cookie.btn-reject {
  background: #C9BC9C;
  color: #23577C;
}
.cookie-banner .btn-cookie.btn-settings {
  background: #23577C;
  color: #fff;
}
.cookie-banner .btn-cookie:hover,
.cookie-banner .btn-cookie:focus {
  filter: brightness(1.13);
  box-shadow: 0 2px 15px #c9bc9c44;
}
.cookie-banner .btn-cookie:active {
  filter: brightness(0.93);
}


/* COOKIE PREFERENCES MODAL -------------------- */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: #fff;
  color: #23423E;
  border-radius: 19px 32px 22px 28px;
  box-shadow: 0 12px 46px rgba(40,70,48,0.19);
  max-width: 370px; width: 92vw;
  z-index: 1400;
  padding: 30px 24px 22px 26px;
  transition: opacity .28s, transform .31s;
  opacity: 1;
  animation: cookieModalAppear 0.29s cubic-bezier(.18,0,.39,0.98);
}
@keyframes cookieModalAppear {
  0% { opacity:0; transform:translate(-50%, -40%) scale(0.94); }
  100% { opacity:1; transform:translate(-50%, -50%) scale(1); }
}
.cookie-modal h3 {
  font-size: 1.2rem;
  color: #168240;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 5px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: #23577C;
}
.cookie-modal .cookie-toggle {
  accent-color: #168240;
  margin-right: 7px;
}
.cookie-modal .modal-actions {
  display: flex; gap: 16px; margin-top: 20px;
}
.cookie-modal .btn-cookie {
  font-size: 1rem;
  min-width: 86px;
}
.cookie-modal .cookie-close {
  position: absolute; top: 10px; right: 18px;
  background: none; border: none; color: #168240; font-size: 1.6rem; border-radius: 50%; width: 36px; height: 36px;
  transition: background 0.15s;
}
.cookie-modal .cookie-close:hover {
  background: #F3F5F7;
}

/* Hide modal/banner by default */
.cookie-banner.hide, .cookie-modal.hide { display: none !important; }


/* FORMS, CONTACT DETAILS, MAPS, MISC ---------- */
.contact-details li {
  background: #f8fbf7;
  color: #23577C;
  border-radius: 16px;
  padding: 11px 14px 11px 12px;
  border-left: 4px solid #168240;
}
.text-section {
  margin-top: 19px; margin-bottom: 14px;
  background: #E5F4E9;
  color: #23423E;
  font-size: 1.1rem;
  border-radius: 15px;
  padding: 14px 19px;
}

/* UTILITY: ORGANIC EDGES AND TEXTURES --------- */
.card, .service-card, .testimonial-card {
  /* Simulate a shadow of a falling leaf */
  box-shadow: 0 4px 24px var(--color-shadow), 0 3px 0 #E5F4E9 inset;
}
.section {
  box-shadow: 0 6px 34px #c9bc9c1a;
}


/* RESPONSIVE MEDIA QUERIES (MOBILE-FIRST) ----- */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .service-cards, .card-container, .content-grid {
    flex-wrap: wrap;
    gap: 15px;
  }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .container, .content-wrapper { max-width: 99vw; }
  .section, .services-highlight, .hero, .cta {
    padding: 27px 7vw;
    border-radius: 13vw 9vw 9vw 13vw / 7vw 9vw 6vw 8vw;
  }
  .content-wrapper { padding: 0 4vw; }
  h1 { font-size: 1.36rem; }
  h2 { font-size: 1.17rem; }
  .hero { min-height: 212px; margin-top: 10px; }
  .service-cards, .card-container , .content-grid { flex-direction: column; gap: 11px; align-items: stretch; }
  .card, .service-card { max-width: 99vw; min-width: 0; padding: 18px 11px; }
  .testimonial-card { border-radius: 9vw !important; padding: 18px 10px; }
  nav { flex-direction: column; gap: 13px; }
}
@media (max-width: 600px) {
  .footer-logo { height: 31px; }
  footer .content-wrapper { flex-direction: column; gap: 18px; }
  header .container { gap: 7px; padding-top:11px; padding-bottom:11px; }
}

/* Small utility classes */
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-32 { margin-top: 32px !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.rounded { border-radius: var(--border-radius-md); }


/* FOCUS STYLES (ACCESSIBILITY) ---------------- */
a:focus, .btn-primary:focus, .btn-secondary:focus, .btn-cookie:focus, button:focus {
  outline: 2px solid #168240;
  outline-offset: 2px;
  z-index: 20;
}
::-webkit-input-placeholder { color: #8E846A; opacity:0.88; }
::-moz-placeholder          { color: #8E846A; opacity:0.88; }
:-ms-input-placeholder      { color: #8E846A; opacity:0.88; }
::placeholder              { color: #8E846A; opacity:0.88; }


/* TRANSITIONS & MICRO-INTERACTIONS ------------ */
div, a, button, .card, .service-card, .btn-primary, .btn-secondary, .cookie-banner, .cookie-modal, .mobile-menu, .mobile-nav, .testimonial-card {
  transition: box-shadow 0.17s, background 0.17s, color 0.13s, transform 0.19s;
}

/* PRINT SAFE ---------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}
