/* ----------------------
   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, 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ----------------------
   Brand Colors & Fonts
---------------------- */
:root {
  --gs-primary: #29613F;
  --gs-secondary: #F7FAF4;
  --gs-accent: #74B872;
  --gs-accent-dark: #427A44;
  --gs-neutral-light: #FFFFFF;
  --gs-neutral-grey: #e6efe7;
  --gs-shadow: 0 2px 16px 0 rgba(40, 60, 40, 0.06);
  --gs-shadow-card: 0 4px 16px 0 rgba(30,55,35,0.09);
  --gs-radius: 12px;
  --gs-radius-small: 6px;
  --gs-border: 1px solid #d8e6dc;
  --gs-font-display: 'Montserrat', Arial, sans-serif;
  --gs-font-body: 'Roboto', Arial, system-ui, sans-serif;
  --gs-font-color: #29372A;
  --gs-font-color-light: #40554a;
  --gs-font-muted: #6E8C78;
  --gs-focus: 0 0 1px 2.5px #74B872;
}

body {
  background: var(--gs-secondary);
  color: var(--gs-font-color);
  font-family: var(--gs-font-body);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gs-font-display);
  font-weight: 700;
  color: var(--gs-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.325rem;
  font-weight: 600;
  color: var(--gs-accent-dark);
}
h4, h5, h6 {
  font-size: 1.1rem;
}

.subheadline {
  color: var(--gs-accent-dark);
  font-size: 1.25rem;
  margin-bottom: 20px;
  font-weight: 500;
}

p, li, address {
  color: var(--gs-font-color-light);
  font-size: 1rem;
  margin-bottom: 10px;
}
strong {
  color: var(--gs-primary);
  font-weight: 700;
}

/* ----------------------
   Layout Containers
---------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 740px;
  margin: 0 auto;
  text-align: left;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--gs-neutral-light);
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow-card);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: var(--gs-border);
  transition: box-shadow 0.2s;
}
.card:hover, .service-card:hover {
  box-shadow: 0 6px 22px 0 rgba(44,86,58,0.14);
}
.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;
  background: var(--gs-neutral-light);
  padding: 20px;
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow);
  border: var(--gs-border);
  margin-bottom: 20px;
  min-width: 0;
  color: var(--gs-font-color);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--gs-neutral-grey);
  padding: 22px 20px;
  border-radius: var(--gs-radius);
  border: var(--gs-border);
}

.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-card {
  background: var(--gs-neutral-light);
  border: var(--gs-border);
  border-radius: var(--gs-radius);
  box-shadow: var(--gs-shadow);
  padding: 32px 24px 28px 24px;
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px 0 rgba(44,86,58,0.15);
}

/* ----------------------
   Header & Navigation
---------------------- */
header {
  background: var(--gs-neutral-light);
  box-shadow: 0 2px 10px 0 rgba(18, 40, 22, 0.03);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 35;
}
header .container {
  flex-direction: row;
  align-items: center;
  height: 80px;
  gap: 26px;
  justify-content: space-between;
}
header a img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--gs-font-display);
  font-weight: 500;
  color: var(--gs-font-color);
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 6px 6px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--gs-secondary);
  color: var(--gs-accent-dark);
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--gs-font-display);
  font-size: 1.08rem;
  font-weight: 600;
  border-radius: var(--gs-radius-small);
  padding: 11px 28px;
  cursor: pointer;
  box-shadow: var(--gs-shadow);
  border: none;
  text-shadow: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s, transform 0.13s;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--gs-primary);
  color: var(--gs-neutral-light);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--gs-accent-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(54,98,59,0.15);
}
.btn-secondary {
  background: var(--gs-accent);
  color: var(--gs-primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--gs-accent-dark);
  color: #fff;
}

/* Hamburger button for mobile nav */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 24px;
  top: 18px;
  background: var(--gs-primary);
  color: #fff;
  border: none;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px 0 rgba(40,80,60,0.06);
  transition: background 0.18s;
}
.mobile-menu-toggle:focus {
  outline: var(--gs-focus);
  background: var(--gs-accent-dark);
}

/* Mobile nav overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(247, 250, 244, 0.98);
  z-index: 100;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.85,0,.34,1);
  box-shadow: 0 4px 48px 0 rgba(27,38,25,0.10);
  will-change: transform;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.5rem;
  margin: 24px 24px 12px 0;
  background: none;
  border: none;
  color: var(--gs-primary);
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:focus {
  color: var(--gs-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: center;
  margin-top: 36px;
}
.mobile-nav a {
  font-family: var(--gs-font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gs-primary);
  padding: 15px 28px;
  border-radius: var(--gs-radius-small);
  text-align: center;
  transition: background 0.13s, color 0.13s;
  width: 90%;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--gs-accent);
  color: #fff;
}

/* Hide desktop nav/show burger on mobile */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none!important;
  }
}

/* ----------------------
   Footer
---------------------- */
footer {
  background: #f9fcf8;
  border-top: 1px solid #e0eddc;
  padding: 38px 0 18px 0;
  font-size: 1rem;
  margin-top: 100px;
  width: 100%;
}
footer .container {
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 5px;
}
.footer-nav a {
  color: var(--gs-font-muted);
  font-size: 1rem;
  font-family: var(--gs-font-display);
  transition: color 0.1s;
}
.footer-nav a:hover {
  color: var(--gs-accent-dark);
}
.footer-brand {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  color: #6d8f76;
  font-size: 0.98rem;
  font-family: var(--gs-font-body);
}
.footer-brand img {
  height: 28px;
  width: 28px;
  margin-right: 2px;
  display:inline-block;
}

/* ----------------------
   Lists
---------------------- */
ul, ol {
  margin-bottom: 18px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ul li, ol li {
  position: relative;
  padding-left: 20px;
  color: var(--gs-font-color-light);
}
ul li:before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gs-accent);
  position: absolute;
  left: 0;
  top: 0.5em;
}

/* ----------------------
   Blockquotes & Testimonials
---------------------- */
blockquote {
  font-family: var(--gs-font-display);
  font-size: 1.25rem;
  color: var(--gs-font-color);
  border-left: 4px solid var(--gs-accent);
  padding-left: 16px;
  margin-bottom: 10px;
}

/* Ensuring color contrast for testimonials/review text */
.testimonial-card blockquote,
.testimonial-card p {
  color: var(--gs-font-color);
}
.testimonial-card strong {
  color: var(--gs-accent-dark);
}

/* Attribution in testimonials */
.testimonial-card p {
  font-size: 1rem;
  font-family: var(--gs-font-body);
  margin-bottom: 0;
  font-style: italic;
}

/* ----------------------
   Address
---------------------- */
address {
  font-style: normal;
  font-size: 1rem;
  color: var(--gs-font-color-light);
  margin-bottom: 12px;
  line-height: 1.6;
}
address a {
  color: var(--gs-primary);
  text-decoration: underline;
}

/* ----------------------
   CTA & Content Patterns
---------------------- */
.content-wrapper > a.btn-primary,
.content-wrapper > a.btn-secondary {
  margin-top: 12px;
  align-self: flex-start;
}

.content-wrapper {
  gap: 20px;
}

/* ----------------------
   Cookie Consent Banner
---------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  background: var(--gs-neutral-light);
  border-top: 1.5px solid #d4e5d3;
  box-shadow: 0 -2px 18px 0 rgba(34,65,34,0.08);
  padding: 20px 32px 20px 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  animation: fadeInUp 0.36s cubic-bezier(.7,0,.32,1);
  font-size: 1rem;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  flex: 1 1 auto;
  color: var(--gs-font-color-light);
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.cookie-banner button {
  font-family: var(--gs-font-display);
  padding: 9px 22px;
  border-radius: var(--gs-radius-small);
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.14s, box-shadow 0.14s;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-accept-btn {
  background: var(--gs-primary);
  color: #fff;
}
.cookie-accept-btn:hover, .cookie-accept-btn:focus {
  background: var(--gs-accent-dark);
}
.cookie-reject-btn {
  background: #e6efe7;
  color: var(--gs-primary);
  border: 1px solid #acc8aa;
}
.cookie-reject-btn:hover, .cookie-reject-btn:focus {
  background: #b4deb8;
  color: var(--gs-accent-dark);
}
.cookie-settings-btn {
  background: none;
  color: var(--gs-accent-dark);
  text-decoration: underline;
  border: none;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  color: var(--gs-primary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(39,97,63,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.22s linear;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__window {
  background: var(--gs-neutral-light);
  border-radius: var(--gs-radius);
  box-shadow: 0 12px 56px 0 rgba(42,94,61,0.17);
  max-width: 420px;
  width: 92vw;
  padding: 36px 32px 28px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.cookie-modal__title {
  font-size: 1.3rem;
  font-family: var(--gs-font-display);
  font-weight: 600;
  color: var(--gs-primary);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-toggle-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
}
.cookie-toggle-row input[type="checkbox"] {
  width: 32px;
  height: 18px;
  accent-color: var(--gs-accent);
}
.cookie-close-btn {
  position: absolute;
  right: 14px;
  top: 14px;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--gs-accent-dark);
  cursor: pointer;
}
.cookie-modal__actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 6px;
}

/* ----------------------
   Responsive Spacing/Patterns
---------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 992px) {
  h1 {font-size: 2rem;}
  h2 {font-size: 1.5rem;}
  .header .container {height: auto;}
  .service-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section {
    margin-bottom: 36px;
    padding: 26px 8px;
  }
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid {
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .service-list {
    gap: 12px;
  }
  .service-card, .card, .testimonial-card {
    padding: 18px 12px;
    min-width: 0;
    max-width: 100%;
  }
  .btn-primary, .btn-secondary {
    padding: 10px 16px;
    font-size: 1rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 12px 18px 12px;
    gap: 15px;
    font-size: 0.98rem;
  }
  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 9px;
  }
  footer .footer-brand span {
    display: block;
    font-size: 0.86rem;
  }
}
@media (max-width: 540px) {
  h1 {font-size: 1.35rem;}
  h2 {font-size: 1.13rem;}
  .btn-primary, .btn-secondary {
    font-size: 0.95rem;
    padding: 9px 12px;
  }
}

/* ----------------------
   Microinteractions: Focus/Transitions/Animations
---------------------- */
:focus {
  outline: var(--gs-focus);
}
.btn-primary:focus, .btn-secondary:focus,
.mobile-menu-toggle:focus,
.cookie-accept-btn:focus, .cookie-reject-btn:focus, .cookie-settings-btn:focus {
  outline: var(--gs-focus);
  box-shadow: 0 0 2px 3.5px var(--gs-accent);
}

a, .btn-primary, .btn-secondary, button {
  transition: background 0.14s, color 0.13s, box-shadow 0.14s, transform 0.13s;
}

/* ----------------------
   Misc Utilities
---------------------- */
.text-center {text-align: center;}
.text-right {text-align: right;}
.text-left {text-align: left;}
.d-flex {display: flex;}
.flex-column {flex-direction: column;}
.gap-12 {gap: 12px;}
.gap-20 {gap: 20px;}
.gap-24 {gap: 24px;}

/* Hide visually (for cookie modal etc.) */
.visually-hidden {
  position:absolute !important;
  height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap;
  border:0; padding:0; margin:-1px;
}

/* ----------------------
   End of CSS
---------------------- */
