/* --------------------------- 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, menu, 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,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #F7F5F2;
  color: #23613D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
  transition: background 0.3s;
}

*, *::before, *::after {
  box-sizing: inherit;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  background: transparent;
  color: #23613D;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #669075;
  outline: none;
}

button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

ul, ol {
  margin: 0 0 0 20px;
  padding: 0;
}

strong {
  font-weight: 700;
}

/* ------------------------ SOFT PASTEL PALETTE ------------------------ */
:root {
  --primary: #23613D;
  --secondary: #BFC8AD;
  --accent: #F7F5F2;
  --pastel-rose: #f9e6e1;
  --pastel-green: #e3f5ec;
  --pastel-blue: #e6f0fa;
  --pastel-yellow: #fff8e3;
  --pastel-lavender: #ebdefa;
  --gray-light: #ececec;
  --gray-medium: #cfcfcf;
  --shadow: 0 2px 10px 0 rgba(76,98,76,0.10);
  --shadow-card: 0 6px 20px 0 rgba(100,128,100,0.13);
  --radius: 18px;
  --radius-btn: 27px;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  body {
    font-size: 15px;
  }
}

/* -------------------------- TYPOGRAPHY -------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 600;
  color: #23613D;
  letter-spacing: 0.01em;
  margin-bottom: 0.8em;
}
h1 { font-size: 2.5rem; line-height: 1.13; font-weight: 700; margin-bottom: 1.1em; }
h2 { font-size: 2rem; line-height: 1.2;  margin-bottom: 0.8em; }
h3 { font-size: 1.3rem; margin-bottom: 0.5em; }
h4 { font-size: 1.08rem; font-weight: 500; margin-bottom: 0.4em; }

.subheadline {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1.17rem;
  color: #398756;
  font-weight: 400;
  margin-bottom: 1.5em;
}

blockquote {
  font-family: 'Lora', serif;
  font-size: 1.13rem;
  font-style: italic;
  color: #295c3d;
  background: var(--pastel-green);
  border-left: 5px solid var(--primary);
  padding: 18px 25px 18px 30px;
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.customer-name {
  font-size: 1.01rem;
  font-style: italic;
  color: #298a66;
  margin-top: 4px;
}

p, ul, ol {
  margin-bottom: 1.2em;
}

ul li, ol li {
  margin-bottom: 0.7em;
}

/* CARD HEADINGS */
.card h3, .feature-grid h3, .service-list h3, .project-stories h3 {
  font-size: 1.17rem;
  color: #296245;
  margin-bottom: 0.4em;
  font-weight: 600;
}

/* -------------------------- CONTAINERS & LAYOUT -------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

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

main {
  padding-bottom: 70px;
}

/* FLEXBOX SPACING CONTAINERS */
.feature-grid,
.benefits-grid,
.service-list,
.tip-list,
.project-stories,
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 34px 0 rgba(36,97,61,0.13);
  transform: translateY(-3px) scale(1.02);
}

.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: 14px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--pastel-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.testimonial-card blockquote {
  border-left: 5px solid #BFC8AD;
  background: transparent;
  box-shadow: none;
  padding: 0 0 0 18px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--pastel-yellow);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}

.about, .cta, .features, .services, .contact, .tip-categories, .history-timeline, .mission-vision, .team-intro {
  margin-bottom: 60px;
}

@media (max-width: 990px) {
  .feature-grid, .benefits-grid, .service-list, .contact-details {
    flex-direction: column;
    gap: 18px;
  }
  .project-stories {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .container { padding-left: 7px; padding-right: 7px; }
  .section,
  .about, .cta, .features, .services, .contact, .tip-categories {
    padding: 30px 8px;
    margin-bottom: 36px !important;
  }
  .testimonial-card { padding: 14px; }
  .feature-item { padding: 18px 11px; }
  .content-grid,.feature-grid,.service-list,.project-stories {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

/* ------------------------------ HEADER & NAV ------------------------------ */
header {
  background: var(--pastel-green);
  box-shadow: 0 2px 10px 0 rgba(160, 187, 139, 0.07);
  padding-top: 11px;
  padding-bottom: 11px;
  margin-bottom: 2px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  height: 51px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: 'Lora', serif;
}
.main-nav a {
  color: #23613D;
  font-size: 1.06rem;
  letter-spacing: 0.03em;
  padding: 7px 6px 5px 6px;
  border-radius: 9px;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-blue);
  color: #398756;
}

.cta-button {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.7em 2.1em;
  margin-left: 18px;
  border-radius: var(--radius-btn);
  box-shadow: 0 1px 7px 0 rgba(36,97,61,0.07);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  border: 2px solid transparent;
}
.cta-button:hover, .cta-button:focus {
  background: #e3f5ec;
  color: #23613D;
  border-color: #b4dac7;
  box-shadow: 0 2px 14px 0 rgba(36,97,61,0.14);
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 900px) {
  .main-nav {
    gap: 19px;
    font-size: 1rem;
  }
  .cta-button { font-size: 0.97rem; padding: 0.7em 1.1em; margin-left: 10px; }
  .logo img { height: 38px; }
}

/* ---------------------- HERO BANNER / HEADLINE SECTION ------------------- */
.hero {
  background: linear-gradient(98deg, var(--pastel-rose) 0%, var(--accent) 60%, var(--pastel-blue) 100%);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 44px;
  padding: 60px 0 40px 0;
}
.hero h1 {
  margin-bottom: 0.4em;
  letter-spacing: 0.01em;
  color: #23613D;
  font-size: 2.35rem;
}
.hero .subheadline {
  font-size: 1.14rem;
  color: #316e48;
}

@media (max-width: 700px) {
  .hero {
    padding: 32px 0 24px 0;
    margin-bottom: 30px;
  }
  .hero h1 { font-size: 1.41rem; }
}

/* ----------------- SERVICE & FEATURE CARDS (STATIC + FLEX) ----------------- */
.feature-grid > div, .service-list > div, .benefits-grid > div, .tip-list > div, .project-stories > div, .contact-details > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--pastel-yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px 22px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
  min-width: 0;
}
.feature-grid > div:hover, .service-list > div:hover, .benefits-grid > div:hover, .tip-list > div:hover, .project-stories > div:hover {
  box-shadow: 0 4px 20px 0 rgba(187,162,71,0.14);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img, .service-list img, .benefits-grid img, .project-stories img {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
}
.service-price {
  font-size: 1rem;
  font-family: 'Lora', serif;
  color: #547a4e;
  font-weight: 600;
  margin-top: 0.9em;
}

.tip-categories {
  background: var(--pastel-green);
  border-radius: var(--radius);
  padding: 20px 18px;
}

/* -------------------- TABLES, LISTS, etc. (For GDPR etc.) ----------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
th, td {
  font-family: 'Lora',serif;
  padding: 14px 10px;
  border-bottom: 1px solid #dde7d7;
  text-align: left;
}
tr:nth-child(even) {
  background: #f2f5ec;
}

hr {
  border: 0;
  border-top: 1.5px solid #dde7d7;
  margin: 34px 0 28px 0;
}

/* ------------------------------- FOOTER ------------------------------- */
footer {
  background: var(--pastel-lavender);
  color: #23613D;
  padding: 50px 0 24px 0;
  box-shadow: 0 -2px 12px 0 rgba(94,115,77,0.07);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 34px;
}
.footer-navigation {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 2;
}
.footer-navigation a {
  color: #2e7246;
  font-size: 1rem;
  opacity: 0.85;
  padding: 2px 0;
  transition: color 0.2s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: #69925a;
  text-decoration: underline;
}
.footer-contact {
  flex: 3;
  font-size: 0.99rem;
}
.footer-contact address {
  font-style: normal;
  color: #23613D;
}
.footer-social {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-social span {
  margin-bottom: 7px;
  color: #23613D;
  font-size: 1rem;
}
.footer-social a img {
  width: 30px;
  height: 30px;
  filter: grayscale(40%);
  opacity: 0.76;
  transition: filter 0.18s, opacity 0.18s;
}
.footer-social a:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
@media (max-width: 920px) {
  footer .container {
    flex-direction: column;
    gap: 19px;
  }
  .footer-navigation { flex-direction: row; flex-wrap: wrap; gap: 11px 18px; }
  .footer-contact, .footer-social { margin-top: 11px; }
}

/* --------------------------------- MOBILE NAV --------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #23613D;
  padding: 10px;
  border-radius: 14px;
  font-size: 2.1rem;
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 1102;
  box-shadow: var(--shadow);
  border: 2px solid #e0e6d8;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition); 
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--pastel-rose);
  box-shadow: 0 2px 16px 0 rgba(70,88,70,0.16);
  color: #398756;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1300;
  width: 100vw;
  height: 100vh;
  background: rgba(247,245,242,0.96);
  box-shadow: 0 2px 24px 0 rgba(36,97,61,0.15);
  transform: translateX(-102vw);
  transition: transform 0.45s cubic-bezier(.63, .04, .29, 1.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 32px 24px 32px;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 41px;
  height: 41px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 32px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  color: #23613D;
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  font-weight: 600;
  background: var(--pastel-yellow);
  border-radius: 14px;
  margin-right: 8px;
  padding: 10px 12px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--pastel-blue);
  color: #398756;
}

@media (max-width: 900px) {
  .main-nav, .cta-button { display: none !important; }
  .mobile-menu-toggle { display: block; }
  header .container { justify-content: flex-start; }
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* Prevent scroll when menu open */
body.mobile-menu-open {
  overflow: hidden;
}

/* ----------------------- COOKIE CONSENT BANNER & MODAL ----------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 1600;
  background: var(--pastel-green);
  box-shadow: 0 -2px 24px 0 rgba(57,135,86,0.12);
  padding: 30px 22px 26px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 1rem;
  transition: transform 0.44s cubic-bezier(.52,.11,.27,1.09); 
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner p {
  flex: 4 1 220px;
  color: #23613D;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.cookie-btn {
  background: #b4dac7;
  color: #23613D;
  font-size: 1.02rem;
  font-family: 'Lora', serif;
  font-weight: 500;
  border-radius: 14px;
  padding: 8px 22px;
  border: 2px solid #aad2b7;
  margin: 1px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #d7f2ea;
  border-color: #98c9ab;
  color: #17572e;
}
.cookie-btn.reject {
  background: #f9e6e1;
  color: #a9463b;
  border-color: #e3b8ad;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #fddfd1;
  color: #83322c;
  border-color: #dfa39d;
}
.cookie-btn.settings {
  background: #e6f0fa;
  border-color: #c8d8ee;
  color: #295c3d;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #d5e3f7;
  color: #18627f;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
    justify-content: flex-start;
    padding: 20px 6px 16px 6px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-actions {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 2000;
  background: rgba(197,208,181,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s linear;
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 8px 48px 0 rgba(36,97,61,0.16);
  max-width: 420px;
  width: 90vw;
  padding: 44px 34px 28px 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: #e3f5ec;
  color: #23613D;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  font-size: 1.38rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  border: 1.5px solid #bfc8ad;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #bfc8ad;
  color: #23613D;
}
.cookie-modal h2 {
  font-size: 1.24rem;
  margin-bottom: 5px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #315c44;
}
.cookie-category input[type=checkbox] {
  accent-color: #23613D;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  margin-top: 1px;
}
.cookie-modal .cookie-essential label {
  color: #444;
  font-style: italic;
}
.cookie-modal .save-cookie-btn {
  margin-top: 12px;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'Lora',serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 10px 0;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 rgba(36,97,61,0.07);
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .save-cookie-btn:hover, .cookie-modal .save-cookie-btn:focus {
  background: #398756;
  color: #eafffb;
}

@media (max-width: 480px) {
  .cookie-modal-dialog {
    max-width: 98vw;
    padding: 18px 4vw 16px 4vw;
  }
}

/* -------------------------- MISC. UTILITY & MICRO-ANIMATIONS -------------------------- */
::-webkit-input-placeholder { color: #54865c; }
::-moz-placeholder { color: #54865c; }
:-ms-input-placeholder { color: #54865c; }
::placeholder { color: #54865c; opacity: 1; }

.fade-in {
  animation: fadein 0.94s cubic-bezier(.31,0,.26,1.01) ease forwards;
}
@keyframes fadein {
  0% { opacity:0; transform: translateY(38px) scale(.98); }
  100% { opacity:1; transform: translateY(0) scale(1); }
}

/* ------------- FORMS (Contact page, GDPR) ------------- */
input[type=text], input[type=email], textarea, select {
  background: var(--pastel-rose);
  border: 1.3px solid #BFC8AD;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 1rem;
  margin-bottom: 18px;
  color: #23613D;
  transition: border 0.2s;
}
input:focus, textarea:focus, select:focus {
  border: 1.7px solid #23613D;
  background: #e3f5ec;
}

/* -------------- ERROR, ALERT, INFO -------------- */
.alert, .info {
  background: #f9e6e1;
  color: #83412d;
  border-left: 4px solid #e3b8ad;
  padding: 17px;
  border-radius: 11px;
  margin-bottom: 22px;
  font-size: 1.02rem;
}

/* -------------- Miscellaneous Cards/Lists -------------- */
.history-timeline, .mission-vision, .team-intro {
  background: var(--pastel-lavender);
  border-radius: var(--radius);
  padding: 22px 18px 13px 22px;
  box-shadow: var(--shadow);
}

.tip-list > div, .tip-categories, .about > .container > .content-wrapper > ul, .about > .container > .content-wrapper > ol {
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  h1 { font-size: 1.22rem; }
  h2 { font-size: 1.09rem; }
  .cookie-modal-dialog { padding: 6vw 2vw; }
}

/* ----------- SCROLLBAR ------------ */
::-webkit-scrollbar {
  width: 8px;
  background: #f4f3ef;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb {
  background: #b4dac7;
  border-radius: 4px;
}

/* ----------- Accessibility: Focus states ------------ */
a, button, .cta-button, .cookie-btn, .mobile-menu-close, .cookie-modal-close, .save-cookie-btn {
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline 0.15s;
}
a:focus-visible, button:focus-visible, .cta-button:focus-visible, .cookie-btn:focus-visible, .mobile-menu-close:focus-visible, .cookie-modal-close:focus-visible, .save-cookie-btn:focus-visible {
  outline: 2.5px solid #6affc2;
  outline-offset: 2.5px;
}

/*---- z-index layering ---*/
.mobile-menu { z-index: 1300; }
.cookie-modal { z-index: 2000; }
.cookie-banner { z-index: 1600; }
header, footer { z-index: 10; position: relative; }
