/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F6F8F6;
  color: #23352A;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: #345C42;
  line-height: 1.2;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, li, ul, ol {
  font-size: 1rem;
  color: #23352A;
}
ul, ol { padding-left: 20px; }
strong, b { font-weight: 700; }
.lead {
  font-size: 1.175rem;
  margin-bottom: 24px;
  color: #345C42;
  font-family: 'Roboto', Arial, sans-serif;
}
hr {
  border: none;
  border-top: 1px solid #E1E8E3;
  margin: 32px 0;
}

/* FLEX LAYOUTS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}
.text-section {
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
  padding: 0;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(52, 92, 66, 0.07);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(52,92,66,0.16);
}
.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;
  background: #F1F6F2;
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(52, 92, 66, 0.04);
  margin-bottom: 20px;
  max-width: 520px;
  font-size: 1.02rem;
}
.testimonial-detail {
  color: #345C42;
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 8px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 10px 0 rgba(52,92,66,0.05);
  padding: 18px 20px;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 320px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover, .service-item:hover {
  box-shadow: 0 4px 24px 0 rgba(105, 150, 123, 0.17);
  transform: translateY(-2px) scale(1.02);
}

/* NAVIGATION */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #E1E8E3;
  margin-bottom: 0;
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img {
  height: 36px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: #345C42;
  text-decoration: none;
  font-size: 1rem;
  padding: 3px 0;
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0.94;
  transition: color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #69967B;
  opacity: 1;
}
.button.button-primary {
  background: #345C42;
  color: #fff;
}
.button.button-primary:hover, .button.button-primary:focus {
  background: #69967B;
  color: #fff;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F1F6F2;
  color: #345C42;
  border-radius: 5px;
  border: none;
  padding: 11px 28px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 1px 5px 0 rgba(52,92,66,0.06);
  transition: background 0.18s, color 0.18s, box-shadow 0.17s, transform 0.15s;
}
.button:hover, .button:focus {
  background: #D6E6DA;
  color: #23352A;
  box-shadow: 0 3px 12px 0 rgba(52,92,66,0.13);
  transform: translateY(-1px) scale(1.012);
}

/* HERO SECTION */
.hero {
  background: #F1F6F2 url('../assets/hero-bg.svg') top right no-repeat;
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero .container {
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 600px;
  gap: 20px;
}

/* SERVICE / FEATURE GRIDS */
.service-list, .project-overview, .blog-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}
.service-item, .project-teaser, .featured-article {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 10px 0 rgba(52,92,66,0.06);
  padding: 22px 22px 18px 22px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  transition: box-shadow 0.23s, transform 0.19s;
}
.service-item strong, .project-teaser strong {
  color: #345C42;
}
/* Blog/Featured Article styles */
.featured-article h3 { font-size: 1.15rem; margin-bottom: 7px; }
.featured-article a {
  color: #345C42;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: underline dotted;
  transition: color 0.18s;
}
.featured-article a:hover, .featured-article a:focus {
  color: #69967B;
}

/* BENEFITS, CALLOUTS */
.service-benefits ul, .project-benefits ul {
  margin-top: 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.callout {
  background: #F1F6F2;
  border-radius: 12px;
  padding: 32px 26px;
  box-shadow: 0 1px 6px 0 rgba(52,92,66,0.07);
  text-align: center;
  margin-top: 18px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* CONTACT /*
.contact-preview ul, .text-section ul {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-preview ul li, .text-section ul li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #23352A;
  gap: 8px;
}
.contact-preview ul li img, .text-section ul li img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.map-placeholder {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  padding: 14px 20px;
  border-radius: 9px;
  box-shadow: 0 1px 6px 0 rgba(52,92,66,0.05);
}

/* FOOTER */
footer {
  background: #F6F8F6;
  border-top: 1px solid #E1E8E3;
  margin-top: 60px;
  font-size: 0.96rem;
}
footer section {
  padding: 28px 0 18px 0;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #345C42;
  text-decoration: none;
  opacity: 0.9;
  transition: color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #69967B;
  opacity: 1;
}
footer .button.button-primary {
  margin-left: auto;
  margin-right: 0;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #345C42;
  cursor: pointer;
  display: none;
  position: absolute;
  right: 24px;
  top: 19px;
  z-index: 101;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #69967B;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 2px 60px rgba(52,92,66,0.13);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.77,.23,.3,.96);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #345C42;
  cursor: pointer;
  margin: 14px 0 0 24px;
  align-self: flex-start;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #69967B;
}
.mobile-nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-left: 36px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #345C42;
  padding: 10px 0;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F1F6F2;
  color: #69967B;
}

/* CTA BUTTONS GROUP */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 24px rgba(52,92,66,0.11);
  z-index: 3500;
  padding: 22px 12px 18px 12px;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.35s;
}
.cookie-banner p { text-align: center; margin-bottom: 8px; }
.cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.button-cookie {
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 5px 0 rgba(52,92,66,0.06);
  transition: background 0.18s, color 0.17s, box-shadow 0.17s;
}
.button-cookie.accept {
  background: #345C42;
  color: #fff;
}
.button-cookie.reject {
  background: #E8E9EC;
  color: #345C42;
}
.button-cookie.settings {
  background: #F1F6F2;
  color: #345C42;
}
.button-cookie.accept:hover, .button-cookie.accept:focus {
  background: #69967B;
  color: #fff;
}
.button-cookie.reject:hover, .button-cookie.reject:focus {
  background: #E3EEE6;
  color: #23352A;
}
.button-cookie.settings:hover, .button-cookie.settings:focus {
  background: #D6E6DA;
  color: #345C42;
}
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(52, 92, 66, 0.18);
  backdrop-filter: blur(2px);
  z-index: 3600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.cookie-modal {
  background: #fff;
  padding: 38px 24px 28px 24px;
  border-radius: 16px;
  box-shadow: 0 6px 48px 0 rgba(52,92,66,0.16);
  max-width: 420px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #E1E8E3;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-toggle {
  appearance: none;
  width: 36px; height: 20px;
  border-radius: 20px;
  background: #D9E3DB;
  position: relative;
  outline: none;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #69967B;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba( 52,92,66,0.06 );
  transition: left 0.18s;
}
.cookie-toggle:checked:before {
  left: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 18px;
  background: none;
  border: none;
  color: #23352A;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #69967B;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .feature-grid, .service-list, .project-overview, .blog-overview {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .feature-grid, .service-list, .project-overview, .blog-overview {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  header .container {
    gap: 0;
  }
  .main-nav, header .button.button-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    min-height: 180px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .hero h1 {
    font-size: 1.55rem;
  }
  .hero .content-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }
  .feature-grid, .service-list, .project-overview, .blog-overview {
    flex-direction: column;
    gap: 14px;
  }
  .feature-item, .service-item, .project-teaser, .featured-article {
    max-width: 100%;
    min-width: 0;
    padding: 17px 10px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 16px;
  }
  .section {
    margin-bottom: 38px;
    padding: 27px 4px;
  }
  .cta-buttons { gap: 13px; }
  .cookie-modal { min-width: 0; width: 96vw; box-sizing: border-box; }
  .callout { padding: 22px 8px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.23rem; }
  h2 { font-size: 1.05rem; }
  .container { padding-left: 4px; padding-right: 4px; }
}

/* ACCESSIBILITY & MICRO-INTERACTIONS */
a:focus, button:focus, input:focus, .cookie-toggle:focus {
  outline: 2px solid #69967B;
  outline-offset: 1px;
}
::-webkit-input-placeholder { color: #99AA9D; font-style: italic; }
::-moz-placeholder          { color: #99AA9D; font-style: italic; }
:-ms-input-placeholder      { color: #99AA9D; font-style: italic; }
::placeholder              { color: #99AA9D; font-style: italic; }

/* Utility classes for spacing/alignment (Scandinavian clean style) */
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-18 { margin-top: 18px !important; }

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

/* Print logo colour version on white card backgrounds only */
.logo img {
  filter: none;
}

/* Decorative accent (Scandi style) */
::selection {
  background: #D6E6DA;
  color: #23352A;
}

/* Miscellaneous */
blockquote, cite { font-style: italic; color: #345C42; }

/* Ensure min spacing between ALL content/card sections */
.section + .section, .section + *, * + .section, .content-wrapper + .content-wrapper, .feature-item + .feature-item, .testimonial-card + .testimonial-card {
  margin-top: 20px !important;
}
.content-wrapper {
  margin-bottom: 20px;
}

/* Prevent overlapping modal/banner */
body {
  position: relative;
}
