/* --- CSS RESET & BASE STYLES --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
}
body {
  min-height: 100vh;
  font-family: 'Lato', Arial, sans-serif;
  color: #295B32;
  background-color: #F7F6F2;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #295B32;
  text-decoration: none;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #448F51;
  text-decoration: underline;
}
strong {
  font-weight: 700;
}
button {
  font-family: inherit;
  background: none;
  cursor: pointer;
  border: none;
  outline: none;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* --- CUSTOM PROPERTIES (FALLBACKS) --- */
:root {
  --color-primary: #295B32;
  --color-secondary: #8ACB88;
  --color-accent: #F7F6F2;
  --color-text-dark: #295B32;
  --color-text-light: #fff;
  --color-card-bg: #fff;
  --color-footer-bg: #295B32;
  --color-nav-hover: #448F51;
  --transition: 0.25s cubic-bezier(.47,1.64,.41,.8);
  --shadow-card: 0 2px 16px rgba(41,91,50,0.08), 0 1.5px 4px rgba(41,91,50,0.04);
  --shadow-hover: 0 2px 24px rgba(41,91,50,0.12);
  --radius: 18px;
}

/* --- TYPOGRAPHY --- */
body, p, ul, ol, li {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
}

/* --- BASE CONTAINER AND SPACING PATTERNS --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 230px;
  flex: 1 1 300px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.026);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F1FAF2;
  border-radius: var(--radius);
  box-shadow: 0 1.5px 5px rgba(41,91,50,0.05);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #14341B;
  font-size: 1.05rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: #295B32;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- MODERN GRADIENT/ELEVATION EFFECTS --- */
.section {
  background: linear-gradient(120deg, #F7F6F2 60%, #E8F9ED 100%);
}
header,
footer {
  background: linear-gradient(90deg, #295B32 75%, #74BC5B 125%);
  color: var(--color-accent);
  box-shadow: 0 2px 9px rgba(22,44,27,0.10);
}

footer {
  margin-top: 50px;
  color: var(--color-accent);
  padding: 38px 0 32px 0;
}

footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
footer nav, footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--color-accent);
  opacity: 0.85;
  transition: color var(--transition), opacity var(--transition);
  font-size: 1rem;
}
footer nav a:hover { opacity:1; color: #8ACB88; }
footer .contact-info p, footer .contact-info a {
  color: var(--color-accent);
  opacity: .90;
  font-size: .98rem;
}
footer .contact-info img {
  width: 22px; height: 22px; margin-right: 7px; vertical-align: middle; display: inline;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 28px;
  background: linear-gradient(100deg, #295B32 90%, #8ACB88 150%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .025em;
  border: none;
  cursor: pointer;
  box-shadow: 0 1.5px 7px rgba(41,91,50,0.08);
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(95deg, #295B32 70%, #74BC5B 140%);
  box-shadow: 0 2px 14px rgba(41,91,50,0.13);
  transform: translateY(-2px) scale(1.04);
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 18px 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.95;
  transition: color var(--transition), opacity var(--transition);
  position: relative;
  padding: 2px 4px;
}
header nav a:hover, header nav a:focus {
  color: #8ACB88;
  opacity: 1;
}
header img {
  height: 48px;
  width: auto;
}
header .btn-primary {
  font-size: 1.1rem;
  padding: 10px 22px;
}

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-toggle {
  display: none;
  background: #8ACB88;
  color: #295B32;
  border-radius: 50%;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 1202;
  border: 2px solid #e5efea;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #295B32;
  color: #fff;
  border-color: #8ACB88;
}

/* --- MOBILE NAV DRAWER --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(115deg, #295B32 83%, #8ACB88 185%);
  z-index: 1201;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(.75,.04,.34,1.15);
  width: 100vw;
  height: 100vh;
  box-shadow: 4px 0 24px rgba(41,91,50,0.19);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 4px 0 32px rgba(41,91,50,0.22);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 26px 0 0;
  background: #fff;
  color: #295B32;
  font-size: 2.5rem;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(41,91,50,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #8ACB88;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  padding: 32px 38px 18px 38px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 7px 0;
  transition: color var(--transition), background var(--transition);
  border-radius: 6px;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: #295B32;
  background: #8ACB88;
}

/* Hide header nav and show menu button on mobile */
@media (max-width: 900px) {
  header nav,
  header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- MAIN LAYOUT/SECTION SPACING --- */
main .section {
  margin-bottom: 60px;
  border-radius: var(--radius);
  box-shadow: 0 1.5px 9px rgba(41,91,50,0.08);
}
main section:not(.no-style) {
  min-width: 0;
}

/* --- HOME, SERVICES & CARDS --- */
.service-category-list, .team-bio-list, .project-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.service-card, .team-bio-list > div, .project-summary-list > div {
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 28px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 230px;
  flex: 1 1 270px;
  margin-bottom: 20px;
}
.service-card h2, .project-summary-list h2 {
  font-size: 1.22rem;
  margin-bottom: 9px;
}
.service-card:hover, .team-bio-list > div:hover, .project-summary-list > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.021);
  transition: box-shadow var(--transition), transform var(--transition);
}

/* --- ICONS IN LISTS, FEATURES --- */
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
ul li img, ol li img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- BOTANIQUE SOLUTIONS/FAQ --- */
.botanical-solutions, .faq {
  background: #F7F6F2;
  border-radius: var(--radius);
  box-shadow: 0 1.5px 5px rgba(41,91,50,0.07);
  padding: 22px 17px 18px 17px;
  margin-top: 16px;
}
.botanical-solutions h3, .faq h3 {
  font-size: 1.13rem;
  color: #295B32;
  margin-bottom: 12px;
}

/* --- MAP SNIPPET --- */
.map-snippet {
  background: #E8F9ED;
  border-radius: var(--radius);
  padding: 16px 16px;
  margin-top: 17px;
  box-shadow: 0 1px 4px rgba(41,91,50,0.05);
  color: #295B32;
}

/* --- RESPONSIVE FLEX DIRECTION ADJUSTMENTS --- */
@media (max-width: 768px) {
  .content-grid, .card-container, .service-category-list, .team-bio-list, .project-summary-list{
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .container {
    padding: 0 9px;
  }
  .section {
    padding: 28px 9px;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
    padding: 12px 9px;
  }
  footer {
    padding: 22px 0 18px 0;
  }
}

/* --- TESTIMONIALS - ENSURE CONTRAST & STYLE --- */
.testimonial-card {
  background: #fff;
  border-left: 6px solid #8ACB88;
  box-shadow: 0 3px 18px rgba(41,91,50,0.08);
  color: #14341B;
  font-size: 1.11rem;
  align-items: flex-start;
  transition: box-shadow var(--transition);
}
.testimonial-card p {
  color: #142e1A;
  font-size: 1.11rem;
}
.testimonial-card strong {
  color: #295B32;
}

/* --- MISC COMPONENTS --- */
.botanical-solutions ul li,
.faq ul li {
  gap: 10px;
  margin-bottom: 14px;
  background: none;
  align-items: flex-start;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  z-index: 1300;
  background: linear-gradient(90deg, #295B32 65%, #8ACB88 100%);
  color: #fff;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  padding: 20px 16px;
  box-shadow: 0 -2px 30px rgba(41,91,50,0.13);
  font-size: 1rem;
  animation: fadein-cookie 0.65s cubic-bezier(.58,1.6,.46,.85);
}
@keyframes fadein-cookie {
  from { opacity:0; transform: translateY(64px); }
  to { opacity:1; transform: translateY(0); }
}
.cookie-banner span {
  flex: 1 1 120px;
}
.cookie-banner .cookie-btn {
  padding: 9px 22px;
  border-radius: 20px;
  margin-left: 10px;
  background: #fff;
  color: #295B32;
  font-family: 'Montserrat', sans-serif;
  font-size: .97rem;
  font-weight: 700;
  border: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 5px rgba(41,91,50,0.06);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #8ACB88;
  color: #fff;
}
.cookie-banner .cookie-btn-settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-banner .cookie-btn-settings:hover {
  background: #8ACB88;
  border-color: #8ACB88;
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    font-size: .96rem;
    text-align: left;
    padding: 13px 6px 16px 6px;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1401;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(41,91,50,0.24);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: opacity .35s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px 18px 0 0;
  max-width: 420px;
  width: 96vw;
  box-shadow: 0 -5px 28px rgba(41,91,50,0.18);
  padding: 28px 22px 18px 22px;
  animation: modalIn 0.38s cubic-bezier(.6,1.5,.4,.9);
  margin-bottom: 0;
  position: relative;
}
@keyframes modalIn {
  from { transform: translateY(70px); opacity:0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 13px;
  background: transparent;
  color: #295B32;
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
}
.cookie-modal h3 {
  color: #295B32;
  font-size: 1.09rem;
  margin-bottom: 13px;
}
.cookie-modal-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #F7F6F2;
}
.cookie-category:last-child { border-bottom: 0; }
.cookie-category label {
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
  color: #295B32;
}
.cookie-category input[type="checkbox"] {
  accent-color: #8ACB88;
  width: 20px;
  height: 20px;
  margin: 0 0 0 10px;
}
.cookie-category input[disabled] {
  accent-color: #295B32;
  background: #295B32;
  opacity: .8;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  padding: 8px 20px;
  border-radius: 18px;
  background: #8ACB88;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: .96rem;
  border: none;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-actions button.accept {
  background: #295B32;
}
.cookie-modal-actions button.reject {
  background: #D84428;
}
.cookie-modal-actions button:hover {
  opacity: 0.9;
}
@media (max-width: 640px) {
  .cookie-modal {
    border-radius: 14px 14px 0 0;
    padding: 19px 7px 13px 12px;
    font-size: .97rem;
  }
}

/* --- UTILITIES & MISC --- */
.mt-20 { margin-top:20px; }
.mt-40 { margin-top:40px; }
.mb-16 { margin-bottom:16px; }
.mb-20 { margin-bottom:20px; }
.mb-28 { margin-bottom:28px; }

/* --- CUSTOM SECTIONS: CARDS, CATEGORIES, LISTS --- */
.team-bio-list > div, .project-summary-list > div {
  min-width: 220px;
  flex: 1 1 260px;
}
@media (max-width: 900px) {
  .team-bio-list, .project-summary-list, .service-category-list {
    flex-direction: column;
    gap: 14px;
  }
}

/* --- FORMS (if needed) --- */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 1rem;
  background: #F7F6F2;
  border: 1.3px solid #DDEEE4;
  border-radius: 12px;
  margin-bottom: 14px;
  color: #295B32;
  box-shadow: 0 1px 3px rgba(41,91,50,0.04);
  transition: border var(--transition);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #8ACB88;
}

/* --- ACCESSIBILITY: FOCUS OUTLINE --- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px dotted #8ACB88;
  outline-offset: 4px;
}

/* --- MEDIA QUERIES FOR LAYOUT --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .testimonial-card { font-size: 1rem; }
  .card {
    padding: 22px 12px;
    min-width: 170px;
    flex: 1 1 88vw;
  }
}
@media (max-width: 500px) {
  header img, footer img { height: 30px; }
  .card, .team-bio-list > div, .project-summary-list > div {
    padding: 13px 6px;
    min-width: 98vw;
    border-radius: 9px;
  }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.card, .testimonial-card, .service-card {
  transition: box-shadow 0.21s cubic-bezier(.67,1.25,.27,.99), transform 0.22s cubic-bezier(.63,1.2,.16,1);
}
.card:active, .service-card:active {
  transform: scale(0.99);
}

/* --- PRINT STYLES (basic) --- */
@media print {
  header,.mobile-menu,.cookie-banner,.cookie-modal,.cookie-modal-backdrop,footer {display:none!important;}
  main {padding:0 !important;}
}
