/* CSS RESET & NORMALIZATION */
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,
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 {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #1D2B23;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}
a {
  color: #225E37;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1D2B23;
  outline: none;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
strong, b {
  font-weight: 700;
}
hr {
  border: 0;
  border-top: 1px solid #EAEEE8;
  margin: 32px 0;
}


/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #15271c;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-top: 16px; }
h2 { font-size: 2rem; margin-top: 24px; }
h3 { font-size: 1.3rem; margin-top: 8px; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
p, blockquote, li, dl, dd {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #263B2C;
}
blockquote {
  font-style: italic;
  color: #194d2e;
  border-left: 3px solid #82B084;
  padding-left: 16px;
  margin-bottom: 12px;
}

label {
  font-size: 0.95rem;
  color: #194d2e;
  font-weight: 500;
}

/* LAYOUT UTILITIES */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container,
.card-grid,
.feature-grid,
.project-list,
.post-list,
.guide-list,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .service-card, .case-study, .guide-card, .post-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(34, 94, 55, 0.08);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow 0.25s, transform 0.15s;
}
.card:hover, .service-card:hover, .case-study:hover, .guide-card:hover, .post-item:hover {
  box-shadow: 0 6px 24px 0 rgba(34, 94, 55, 0.12);
  transform: translateY(-3px);
}
.text-section, .text-image-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.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: #F6FBF4;
  border-radius: 10px;
  box-shadow: 0 1px 8px 0 rgba(34,94,55,.07);
  margin-bottom: 20px;
  color: #263B2C;
}
.testimonial-card blockquote {
  font-size: 1rem;
  color: #225E37;
  border: none;
  background: none;
  font-style: normal;
  margin-bottom: 0;
}
.testimonial-card > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  flex-shrink: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F6FBF4;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 8px 0 rgba(34,94,55,.06);
  min-width: 220px;
  flex: 1 1 220px;
}


/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #EAEEE8;
  position: relative;
  z-index: 100;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #225E37;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F6FBF4;
  color: #15271c;
}
.main-nav a.cta-primary {
  background: #225E37;
  color: #fff;
  font-weight: 700;
  border-radius: 18px;
  padding: 7px 22px;
  box-shadow: 0 2px 10px 0 rgba(34, 94, 55, 0.09);
  transition: background 0.2s, box-shadow 0.2s;
}
.main-nav a.cta-primary:hover, .main-nav a.cta-primary:focus {
  background: #17432a;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(34, 94, 55, 0.12);
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #225E37;
  padding: 8px 12px;
  margin-left: auto;
  z-index: 500;
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F6FBF4;
  border-radius: 5px;
}

/* MOBILE MENU STYLES */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(246,251,244,0.99);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.6,0,.28,1);
  flex-direction: column;
  padding-top: 40px;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #225E37;
  font-size: 2rem;
  align-self: flex-end;
  margin: 0 20px 24px 0;
  cursor: pointer;
  transition: background 0.18s;
  border-radius: 5px;
  padding: 4px 10px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #D9E6DE;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  padding: 12px 8px;
  color: #225E37;
  border-radius: 7px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EAEEE8;
  color: #17432a;
}

@media (max-width: 900px) {
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .main-nav a {
    font-size: 0.98rem;
    padding: 6px 9px;
  }
  .main-nav {
    gap: 8px;
    height: 54px;
    padding: 0 8px;
  }
}
@media (max-width: 680px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}


/* BUTTONS */
button, .cta-primary {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 18px;
  padding: 10px 28px;
  color: #fff;
  background: #225E37;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 2px 10px 0 rgba(34, 94, 55, 0.07);
  display: inline-block;
  margin-top: 10px;
  text-align: center;
}
button:hover, button:focus, .cta-primary:hover, .cta-primary:focus {
  background: #17432a;
  color: #fff;
  box-shadow: 0 6px 20px 0 rgba(34,94,55,0.10);
  outline: none;
}

/* Forms */
input, textarea, select {
  width: 100%;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  border: 1px solid #bcc9c1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: #fff;
  transition: border 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #225E37;
  box-shadow: 0 0 0 2px #EAEEE8;
  outline: none;
}
input[type="search"] {
  padding-right: 44px;
}

.search-bar {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 24px;
  background: #F6FBF4;
  border-radius: 8px;
  padding: 8px;
}
.search-bar input[type="search"] {
  flex: 1 1 160px;
  border-radius: 6px;
  border: 1px solid #dee8e0;
  background: #fff;
}
.search-bar button {
  flex: none;
  padding: 9px 18px;
  background: #82B084;
  border-radius: 7px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.18s;
  box-shadow: none;
}
.search-bar button:hover, .search-bar button:focus {
  background: #225E37;
  color: #fff;
}

/* HERO */
.hero {
  background: #F6FBF4;
  padding: 56px 0 24px 0;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  font-size: 2.2rem;
  color: #225E37;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 22px;
}
.hero .cta-primary {
  margin-top: 12px;
}

/* GUIDE FILTERS */
.guide-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 0.98rem;
  color: #194d2e;
}
.guide-filters a {
  color: #225E37;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.17s;
}
.guide-filters a:hover, .guide-filters a:focus {
  background: #EAEEE8;
  color: #17432a;
}

/* LISTS & FEATURES */
.feature-grid {
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.service-grid {
  gap: 24px;
}
.service-card img,
.feature-item img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
}
.project-list {
  gap: 24px;
}
.case-study {
  background: #F6FBF4;
  border-radius: 11px;
  box-shadow: 0 1px 8px 0 rgba(34,94,55,.08);
}
.guide-list {
  gap: 24px;
}
.guide-card {
  padding: 20px 16px;
  background: #fff;
}

/* NEWSLETTER/BLOG */
.text-section form {
  margin: 8px 0 18px 0;
}
.text-section ul {
  margin-bottom: 0;
}

/* FOOTER */
footer {
  padding: 40px 0 24px 0;
  background: #F6FBF4;
  border-top: 1px solid #EAEEE8;
  margin-top: 56px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #225E37;
  font-weight: 500;
  transition: color 0.17s;
  padding: 3px 12px;
  border-radius: 5px;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #EAEEE8;
  color: #17432a;
}
.contact-info ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 42px;
  justify-content: center;
  color: #194d2e;
  font-size: 0.97rem;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-info img {
  width: 19px;
  height: 20px;
}


/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid #EAEEE8;
  box-shadow: 0 -3px 24px 0 rgba(34, 94, 55, 0.13);
  z-index: 20000;
  padding: 28px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  animation: fadeInUpBanner 0.5s;
}
@keyframes fadeInUpBanner {
  from { opacity: 0; transform: translateY(60px);} to { opacity: 1; transform: none;}
}
.cookie-banner__text {
  max-width: 700px;
  color: #263B2C;
  text-align: center;
  margin-bottom: 8px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner__btn {
  background: #225E37;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 13px;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 0;
  transition: background 0.17s;
  font-weight: 600;
  min-width: 120px;
}
.cookie-banner__btn--accept {
  background: #225E37;
  color: #fff;
}
.cookie-banner__btn--reject {
  background: #bcc9c1;
  color: #17432a;
}
.cookie-banner__btn--settings {
  background: #82B084;
  color: #17432a;
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  filter: brightness(0.92);
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(38,59,44,0.13);
  z-index: 23000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s;
}
@keyframes fadeInModal {
  from { opacity: 0;} to { opacity: 1; }
}
.cookie-modal__window {
  background: #fff;
  padding: 36px 28px;
  border-radius: 15px;
  box-shadow: 0 8px 40px -5px rgba(34,94,55,0.17);
  width: 92vw;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal__close {
  background: none;
  border: none;
  color: #225E37;
  font-size: 1.6rem;
  position: absolute;
  top: 12px; right: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.18s;
  padding: 2px 9px;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #EAEEE8;
}
.cookie-modal__sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-modal__category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F6FBF4;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 1rem;
}
.cookie-modal__category .cookie-toggle {
  margin-left: 16px;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  appearance: none;
  background: #bcc9c1;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: background 0.16s;
}
.cookie-toggle:checked {
  background: #82B084;
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 4px;
  box-shadow: 0 1px 4px 0 rgba(34,94,55,0.10);
  transition: left 0.17s;
}
.cookie-toggle:checked::before {
  left: 22px;
}
.cookie-modal__btns {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ----- RESPONSIVE DESIGN ----- */
@media (max-width: 1240px) {
  .container { max-width: 96vw; }
}
@media (max-width: 1024px) {
  .section { padding: 32px 5vw; }
  .container { padding: 0 12px; }
}
@media (max-width: 900px) {
  .content-wrapper {
    gap: 16px;
  }
  .feature-grid,
  .service-grid,
  .project-list,
  .card-grid,
  .guide-list,
  .post-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 26px 4vw;
    margin-bottom: 38px;
  }
  .card,
  .service-card,
  .case-study,
  .guide-card,
  .post-item {
    min-width: 95vw;
    padding: 18px 8px;
  }
  .feature-item {
    min-width: 160px;
    padding: 16px 8px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px 8px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 11px;
    margin-bottom: 16px;
  }
  .contact-info ul {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 530px) {
  .hero h1 {
    font-size: 1.3rem;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .cookie-modal__window {
    padding: 20px 4vw;
    min-width: 0;
    max-width: 96vw;
  }
}

/* ----- Z-INDEX MANAGEMENT ----- */
.mobile-menu,
.cookie-modal,
.cookie-banner {
  box-sizing: border-box;
}

/* ----- UTILITY ----- */
.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ----- ANIMATION FOR MICROINTERACTIONS ----- */
a, button, .cta-primary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner__btn, .cookie-modal__close {
  transition: all 0.18s cubic-bezier(.6,0,.28,1);
}
input, textarea, select {
  transition: border 0.15s, box-shadow 0.15s;
}

/* ----- MICROINTERACTION: Card lift on hover ----- */
.card:hover, .service-card:hover, .case-study:hover, .guide-card:hover, .post-item:hover {
  box-shadow: 0 8px 24px 0 rgba(34,94,55,0.17);
  transform: translateY(-4px) scale(1.02);
}

/* ----- VISUAL HIERRARCHY: Spacing Patterns ----- */
.card, .service-card, .case-study, .guide-card, .post-item {
  margin-bottom: 20px;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}

/* ----- PREVENT OVERLAPPING: Spacing/Gaps ----- */
.card-container, .card-grid, .project-list, .feature-grid, .service-grid, .guide-list, .post-list {
  gap: 24px;
}
.content-grid {
  gap: 20px;
}
.text-image-section {
  gap: 30px;
}
.testimonial-card {
  gap: 20px;
  margin-bottom: 20px;
}
.feature-item {
  gap: 15px;
}

/* ----- ACCESSIBILITY: Focus ----- */
a:focus, button:focus, .cta-primary:focus, input:focus, .cookie-banner__btn:focus, .cookie-modal__close:focus {
  outline: 2px solid #82B084;
  outline-offset: 2px;
}

/* ----- MISC: Hide scroll on modal/menu open ----- */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}
