/* 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #F5F4ED;
  color: #39594A;
  font-family: 'Montserrat', Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
}

*, *:before, *:after { box-sizing: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px dotted #7DB18E; outline-offset: 2px; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #2C4539;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1rem; }
p, li { font-size: 1rem; line-height: 1.7; color: #39594A; }
strong { color: #39594A; font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

/* CONTAINERS & SECTIONS */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 28px 6px;
  }
  .container {
    padding: 0 6px;
  }
  .content-wrapper { gap: 14px; }
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #39594A;
  color: #F5F4ED;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 13px 32px;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  box-shadow: 0 3px 14px rgba(31, 62, 48, 0.10);
  cursor: pointer;
  transition: background 0.25s, color 0.18s, box-shadow 0.25s, transform 0.16s;
  margin-top: 12px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #7DB18E;
  color: #2C4539;
  box-shadow: 0 6px 20px rgba(31,62,48,0.15);
  transform: translateY(-2px) scale(1.03);
}
.btn-primary:active { background: #527B65; color: #fff; }

/* NAVIGATION */
header {
  background: #F5F4ED;
  box-shadow: 0 2px 10px rgba(57, 89, 74, 0.05);
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img { height: 48px; width: auto; }
@media (max-width: 540px) { .logo img { height: 38px; } }

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #39594A;
  padding: 6px 12px;
  border-radius: 16px;
  transition: color 0.2s, background 0.2s;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #E7E6E1;
  color: #2C4539;
}
.main-nav .btn-primary {
  margin: 0 0 0 18px;
  padding: 10px 22px;
  font-size: .95rem;
  color: white;
}

@media (max-width: 992px) {
  .main-nav { gap: 10px; }
  .main-nav .btn-primary { margin-left: 9px; }
}
@media (max-width: 820px) {
  header .container { gap: 12px; }
  .main-nav { gap: 7px; }
  .main-nav .btn-primary { padding: 8px 12px; }
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #39594A;
  cursor: pointer;
  z-index: 1003;
  transition: color .22s;
}
.mobile-menu-toggle:focus { color: #527B65; }
@media (max-width: 880px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 3001;
  background: rgba(45,56,50, 0.85);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.65,0,.33,1);
  will-change: transform;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
  background: #F5F4ED;
  color: #39594A;
  font-size: 2.2rem;
  font-weight: 400;
  border: none;
  margin: 22px 20px 8px 0;
  border-radius: 100%;
  padding: 3px 17px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(32,74,50,0.05);
  transition: background 0.17s, color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #39594A; color: #F5F4ED;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 92vw;
  max-width: 390px;
  background: #FCFDF8;
  border-radius: 32px 0 0 32px;
  padding: 30px 32px 24px 28px;
  margin-top: 10px;
  min-height: 82vh;
  box-shadow: 0 0 32px 4px rgba(55,70,57,0.14);
  gap: 17px;
  z-index: 3050;
}
.mobile-nav a {
  font-size: 1.12rem;
  color: #39594A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 10px 8px;
  border-radius: 12px;
  transition: color 0.20s, background 0.21s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #7DB18E; color: #fff;
}

/* Hide mobile menu by default */
.mobile-menu,
.mobile-menu .mobile-nav {
  pointer-events: none;
}
.mobile-menu.open,
.mobile-menu.open .mobile-nav {
  pointer-events: auto;
}

/* HERO SECTIONS */
.hero {
  background: linear-gradient(150deg, #EEF2EA 70%, #F5F4ED 100%);
  border-radius: 0 0 64px 64px/0 0 24px 24px;
  box-shadow: 0 7px 48px rgba(57, 89, 74,0.15);
  margin-bottom: 48px;
  padding: 60px 0 48px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 { color: #39594A; }
.hero p {
  margin-bottom: 18px;
  color: #39594A;
  font-size: 1.13rem;
}
@media (max-width: 768px) {
  .hero { margin-bottom: 30px; padding: 38px 0 20px 0; border-radius: 0 0 40px 40px/0 0 14px 14px; }
}

/* FLEXBOX PATTERNS */
.features, .services, .about, .contact-details, .about-short, .contact-cta, .testimonials, .cookie-policy, .privacy-policy, .gdpr-info, .terms {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FCFDF8;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(57,89,74,0.07);
  padding: 28px 22px;
}
.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: center;
  gap: 20px;
  background: #F5F4ED;
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(80,110,97,0.07);
  border: 2px solid #E8EBE1;
  max-width: 620px;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #2C4539;
  font-style: italic;
}
.testimonial-card span {
  color: #527B65;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.95rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .content-grid, .text-image-section { flex-direction: column; gap: 20px; }
  .card-container { flex-direction: column; gap: 18px; }
}

/* FEATURE & SERVICE GRIDS (UL/OL Listing) */
ul.feature-grid, ul.service-list, ul.article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-bottom: 20px;
}
ul.feature-grid li, ul.service-list li, ul.article-list li {
  background: #FCFDF8;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(73, 100, 84, 0.07);
  flex: 1 1 220px;
  min-width: 220px; max-width: 350px;
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: transform .13s, box-shadow .15s;
}
ul.feature-grid li:hover,
ul.service-list li:hover,
ul.article-list li:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 4px 28px rgba(57,89,74,0.11);
}
ul.feature-grid img,
ul.article-list img {
  height: 44px;
  width: auto;
  margin-bottom: 9px;
}
.category-tag {
  font-size: 0.97rem;
  font-weight: 600;
  color: #7DB18E;
  background: #E7F3E8;
  padding: 3px 13px;
  border-radius: 17px;
  align-self: flex-start;
  margin-top: 6px;
}

ol.process-steps,
ol.project-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #F5F4ED;
  border-radius: 18px;
  padding: 22px 26px;
  list-style-position: inside;
  color: #4B614C;
  font-size: 1.08rem;
  margin-bottom: 10px;
  box-shadow: 0 2px 7px 1px rgba(90,130,105,0.08);
}

@media (max-width: 714px) {
  ul.feature-grid,
  ul.service-list,
  ul.article-list { flex-direction: column; gap: 16px; }
  ol.process-steps, ol.project-steps { padding: 20px 12px; }
}

/* FOOTPERS */
footer {
  background: #39594A;
  color: #F5F4ED;
  padding: 40px 0 25px 0;
  font-size: 0.97rem;
  box-shadow: 0 -2px 18px rgba(50,90,70,0.11);
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
  justify-content: space-between;
}
footer .container > div { flex: 1 1 220px; }
footer a { color: #F5F4ED; border-radius: 4px; transition: color 0.17s, background 0.2s; }
footer a:hover { color: #7DB18E; background: #2C4539; }
footer .footer-nav {
  display: flex; flex-direction: column; gap: 10px; margin-top: 0;
}
footer span { margin-top: 26px; display: block; color: #b6cabf; font-size: 0.95rem; }
footer img { height: 30px; }
@media (max-width: 740px) {
  footer .container { flex-direction: column; gap: 20px; }
}

/* LISTS AND TEXT-SECTIONS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.text-section ul {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 8px;
  color: #39594A;
}
.text-section ul li {
  margin-bottom: 7px;
  font-size: 1rem;
}
.text-section img { height: 22px; margin-right: 8px; margin-bottom: -5px; }

/* FORMS (for Contact Pages if included later) */
input, textarea, select {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #F5F4ED;
  border: 1.5px solid #CED1C9;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 13px;
  color: #39594A;
  outline: none;
  margin-bottom: 20px;
  width: 100%;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #7DB18E;
}

/* SPECIAL EFFECTS, ORGANIC SHAPES, SPACING */
.section,
.card,
ul.feature-grid li,
ul.service-list li,
ul.article-list li,
.testimonial-card {
  border-radius: 24px 42px 18px 38px/32px 26px 40px 24px;
}
.hero,
.contact-cta, .contact-details {
  border-radius: 42px 24px 52px 18px/35px 68px 35px 43px;
}

/* Subtle background textures using SVG noise (optional if asset is present) */
/* body {
  background-image: url('assets/textures/noise.svg');
  background-size: 400px 400px;
  background-blend-mode: multiply;
  background-repeat: repeat;
} */

/* ACCENTS, COLORS, AND SHADOWS */
.bg-primary { background: #39594A; color: #F5F4ED; }
.bg-secondary { background: #7DB18E; color: #fff; }
.bg-accent { background: #F5F4ED; color: #39594A; }

.shadow-sm { box-shadow: 0 2px 6px 0 rgba(57,89,74,0.1); }
.shadow-lg { box-shadow: 0 12px 46px 0 rgba(57,89,74,0.15); }

/* HOVER EFFECTS AND MICRO-INTERACTIONS */
.card, ul.feature-grid li, ul.service-list li, ul.article-list li, .testimonial-card {
  transition: box-shadow .23s, transform .16s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 7px 24px rgba(57,89,74,0.13);
  transform: translateY(-2px) scale(1.015);
}

/* ACCESSIBILITY */
:focus-visible { outline: 2px dashed #527B65; outline-offset: 2px; }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px;
  bottom: 18px;
  background: #39594A;
  color: #F5F4ED;
  box-shadow: 0 2px 14px rgba(24,47,30,0.17);
  border-radius: 20px;
  z-index: 3500;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  gap: 16px;
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  animation: fade-in-banner .47s cubic-bezier(.42,0,.63,1);
}
@keyframes fade-in-banner { from { opacity: 0; transform: translateY(24px);} to { opacity: 1; transform: translateY(0); } }
.cookie-banner p { color: #F5F4ED; flex: 1 1 auto; }
.cookie-banner .cookie-btn {
  padding: 7px 18px;
  font-size: .96rem;
  border-radius: 20px;
  border: none;
  margin-left: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s, color .15s;
}
.cookie-banner .cookie-btn.accept {
  background: #7DB18E;
  color: #39594A;
}
.cookie-banner .cookie-btn.reject {
  background: #EECBC0;
  color: #39594A;
}
.cookie-banner .cookie-btn.settings {
  background: #F5F4ED;
  color: #39594A;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #527B65;
  color: #fff;
}
@media (max-width: 610px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 10px;
    max-width: 96vw;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28,38,28,0.57);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-banner .35s cubic-bezier(.42,0,.63,1);
}
.cookie-modal {
  background: #F5F4ED;
  color: #39594A;
  border-radius: 28px;
  max-width: 430px;
  padding: 38px 34px 26px 34px;
  box-shadow: 0 12px 48px 0px rgba(57,89,74,0.21);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 4011;
  animation: fade-in-banner .38s cubic-bezier(.42,0,.63,1);
}
.cookie-modal h2 {
  margin-top: 0; color: #39594A; margin-bottom: 7px;
}
.cookie-modal label {
  font-size: 1rem; display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; color: #39594A;
}
.cookie-modal input[type=checkbox] {
  width: 20px; height: 20px; accent-color: #7DB18E;
}
.cookie-modal .cookie-modal-btns {
  display: flex; gap: 15px; justify-content: flex-end; margin-top: 18px;
}
.cookie-modal .cookie-btn {
  font-size: .97rem; padding: 7px 18px; border-radius: 16px;
}

.cookie-modal .close-modal {
  position: absolute; top: 13px; right: 18px; background: transparent; border: none; font-size: 1.7rem; color: #39594A; cursor: pointer;
}
.close-modal:hover, .close-modal:focus {
  color: #7DB18E;
}
@media (max-width: 520px) {
  .cookie-modal {
    padding: 17px 6vw 20px 6vw;
    border-radius: 15px;
  }
}

/* UTILITIES */
.hide { display: none !important; }
.visible { display: block !important; }
.italic { font-style: italic; }

/* ORGANIC DETAILS/ROUND INDENTS FOR ORGANIC FEELING */
ul.feature-grid li, .card, .testimonial-card, .section, .about-short, .contact-cta, .contact-details, .about, .services, .features {
  border-radius: 31px 16px 38px 23px/26px 34px 27px 33px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1140px) {
  .container { max-width: 98vw; }
}
@media (max-width: 980px) {
  h1 { font-size: 2rem; }
}
@media (max-width: 680px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  .btn-primary { font-size: .97rem; padding: 8px 12px; }
  .testimonial-card { max-width: 98vw; padding: 12px; }
  ul.feature-grid li, ul.service-list li, ul.article-list li { min-width: 90vw; max-width: 92vw; padding: 14px 6px; }
}

/* MISC. */
::-webkit-scrollbar { width: 11px; background: #EEF2EA; }
::-webkit-scrollbar-thumb { background: #7DB18E; border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: #39594A; }

/* PRINT */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  main { margin: 28px 0; }
}

/* BRAND FONTS - fallback included only in CSS spec */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');
