/* == CSS RESET & BASE == */
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,main,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 {
  font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif;
  color: #222;
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #22543D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #668c6e;
  outline: none;
}
ul,ol {
  margin-left: 20px;
  padding-left: 10px;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
button {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background: none;
}
:focus {
  outline: 2px solid #8FC53D;
  outline-offset: 2px;
}

/* == TYPOGRAPHY == */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #22543D;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.15rem;
}
p, li {
  color: #333;
}

/* == LAYOUT & CONTAINER == */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* == SECTION SPACING (CRITICAL) == */
section, .section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
@media (max-width: 600px) {
  section, .section {
    padding-top: 24px;
    margin-bottom: 40px;
  }
}

/* == BRAND COLOR PALETTE == */
:root {
  --primary: #22543D;
  --secondary: #8FC53D;
  --accent: #F2F2F2;
  --surface: #fff;
  --neutral: #F9FAF9;
  --shadow: rgba(34, 84, 61, 0.07);
}

/* == HEADER & NAVIGATION == */
header {
  background: var(--surface);
  border-bottom: 1px solid #eee;
  padding: 0;
  position: relative;
  z-index: 1010;
}
header .container {
  padding-top: 0;
  padding-bottom: 0;
}
.content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  color: #22543D;
  position: relative;
}
.main-nav a::after { /* underline on hover */
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: var(--secondary);
  transition: width 0.25s;
  position: absolute;
  left: 0; bottom: -2px;
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}

/* Brand Button (CTA) */
.cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.07rem;
  letter-spacing: .03em;
  font-weight: 700;
  border-radius: 32px;
  padding: 10px 28px;
  box-shadow: 0 4px 14px var(--shadow);
  margin-left: 12px;
  transition: background 0.22s, box-shadow 0.18s, transform 0.17s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 16px var(--shadow);
}

/* == HERO == */
.hero {
  background: linear-gradient(120deg, var(--accent) 80%, #fff 100%);
  padding: 44px 0 0 0;
  margin-bottom: 0;
}
.hero .content-wrapper {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  max-width: 720px;
}
.hero h1, .hero p {
  color: var(--primary);
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* == FEATURES, CARDS, FLEX CONTAINERS (CRITICAL RULES) == */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 20px;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--accent);
  border-radius: 16px;
  box-shadow: 0 2px 8px var(--shadow);
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 340px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-4px) scale(1.018);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

/* Card container for future blog/cards use */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 1px 8px var(--shadow);
  margin-bottom: 20px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* == TESTIMONIALS == */
.testimonial-card {
  background: #fff;
  border-left: 5px solid var(--secondary);
  box-shadow: 0 1px 12px var(--shadow);
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 200px;
  max-width: 640px;
  color: #222;
}
.testimonial-card p {
  color: #22543D;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.09rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-weight: 700;
  color: #22543D;
}

/* == FAQ LIST == */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-list > div {
  background: var(--accent);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  margin-bottom: 10px;
}
.faq-list strong {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
  color: #22543D;
}

/* == BLOG POST LIST == */
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.blog-post-list > div {
  background: var(--accent);
  border-radius: 14px;
  box-shadow: 0 1px 4px var(--shadow);
  padding: 24px 20px 18px 20px;
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  margin-bottom: 20px;
}
.category-tag {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 0.85rem;
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  border-radius: 12px;
  padding: 3px 12px;
  margin-top: 6px;
  letter-spacing: .02em;
}

.newsletter-signup {
  background: var(--accent);
  padding: 24px 28px;
  border-radius: 16px;
  box-shadow: 0 1px 8px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 32px;
}

/* == Legal & Text Sections == */
.text-section, .legal {
  background: var(--neutral);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 16px;
  color: #333;
  font-size: 1.05rem;
  box-shadow: 0 0px 6px var(--shadow);
}
.legal h2 {
  font-size: 1.3rem;
  margin-top: 16px;
  margin-bottom: 10px;
  color: #22543D;
}
.legal ul {
  margin-bottom: 12px;
}

/* == BUTTONS (GENERIC + COOKIE) == */
button, .button, .btn {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 28px;
  padding: 8px 20px;
  transition: background .2s, box-shadow .18s, color .19s;
  background: var(--primary);
  color: #fff;
  border: none;
  margin-right: 10px;
}
button:hover, .btn:hover, .button:hover {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 3px 9px var(--shadow);
}

/* == FLEXBOX SECTION EXTRAS (MANDATORY CLASSES) == */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* == CONTACT INFO & MAP == */
.contact-info {
  background: var(--accent);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 5px var(--shadow);
}
.map {
  background: #fff;
  border-radius: 12px;
  padding: 12px 22px 16px 22px;
  box-shadow: 0 1px 7px var(--shadow);
}

/* == FOOTER == */
footer {
  background: #ececec;
  margin-top: 60px;
  border-top: 1px solid #dbe8e0;
  padding: 0;
}
footer .container {
  padding-top: 34px;
  padding-bottom: 30px;
}
footer .content-wrapper {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-brand img {
  width: 54px;
  height: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #22543D;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  padding: 2px 0;
}
.footer-contact h3 {
  font-size: 1.09rem;
  margin-bottom: 8px;
  color: #22543D;
  font-weight: 600;
}
.footer-contact p, .footer-contact img {
  font-size: 0.98rem;
  vertical-align: middle;
  color: #333;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.footer-legal a {
  color: #5b6a60;
  font-size: 0.93rem;
  text-decoration: underline dotted;
}

/* == CTA BUTTONS BLOCK == */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  align-items: center;
}

/* == MOBILE MENU == */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1050;
  background: var(--primary);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 8px var(--shadow);
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  transition: background 0.2s, box-shadow .18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  max-width: 390px;
  background: #fff;
  box-shadow: -8px 0 32px rgba(34,84,61,0.15);
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(.39,.78,.22,1.01);
  z-index: 1100;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.9rem;
  align-self: flex-end;
  margin: 22px 22px 0 0;
  cursor: pointer;
  border-radius: 50%;
  width: 38px; height: 38px;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #f3f9f3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 32px 26px 0 32px;
  gap: 16px;
}
.mobile-nav a {
  font-size: 1.13rem;
  color: var(--primary);
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #eaeaea;
  transition: color 0.13s, background .15s;
  border-radius: 7px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
/* Overlay for behind the mobile menu */
.mobile-menu.open::before {
  content: '';
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,84,61,.15);
  z-index: -1;
  pointer-events: none;
}

/* == COOKIE BANNER & MODAL == */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #222;
  border-top: 2px solid var(--secondary);
  box-shadow: 0 -4px 16px var(--shadow);
  z-index: 9999;
  padding: 22px 20px 16px 20px;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  justify-content: center;
  animation: banner-slide-up 0.42s;
}
@keyframes banner-slide-up {
  from {transform: translateY(120%);}
  to {transform: translateY(0);}
}
.cookie-banner p {
  font-size: 1rem;
  color: #222;
  margin: 0 10px 0 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
}
.cookie-banner button {
  padding: 7px 20px;
  min-width: 120px;
  border-radius: 21px;
  background: var(--secondary);
  color: #fff;
  border: none;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 6px;
  transition: background .15s, color .12s, box-shadow 0.17s;
}
.cookie-banner button.accept {
  background: var(--primary);
}
.cookie-banner button.reject {
  background: #B71C1C;
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--neutral);
  color: var(--primary);
  border: 1px solid #d5e8d1;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  filter: brightness(0.95);
  box-shadow: 0 2px 8px var(--shadow);
}
/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(1);
  z-index: 10050;
  width: 95vw;
  max-width: 400px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(34,84,61,0.20);
  padding: 40px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: modal-fade-in 0.35s;
}
@keyframes modal-fade-in {
  from { opacity: 0; transform: translate(-50%,-60%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 7px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  margin-bottom: 11px;
}
.cookie-modal .cookie-toggle {
  width: 38px;
  height: 22px;
  background: #ccc;
  border-radius: 14px;
  position: relative;
  transition: background .18s;
  margin-left: 12px;
  cursor: pointer;
}
.cookie-modal .cookie-toggle input[type=checkbox] {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-modal .cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(34,84,61,0.12);
  transition: left .19s;
}
.cookie-modal .cookie-toggle input:checked + .cookie-toggle {
  background: var(--secondary);
}
.cookie-modal .cookie-toggle input:checked + .cookie-toggle::after {
  left: 19px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 9px;
}
.cookie-modal .close-modal {
  background: #f4f4f4;
  color: #22543D;
  padding: 5px 16px;
  border-radius: 16px;
  font-size: 0.98rem;
}
/* Overlay for cookie modal */
.cookie-overlay {
  position: fixed;
  z-index: 10000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(44,52,47,0.28);
}

/* == MEDIA QUERIES & RESPONSIVE == */
@media (max-width: 1050px) {
  .feature-grid, .blog-post-list {
    gap: 18px;
  }
}
@media (max-width: 990px) {
  .content-wrapper {
    gap: 14px;
  }
  .footer .content-wrapper {
    gap: 22px;
  }
  .footer-brand img {width:42px;}
}
@media (max-width: 850px) {
  .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
   }
}
@media (max-width: 768px) {
  header .content-wrapper {
    flex-direction: row;
    gap: 12px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding: 0 8px;
  }
  .feature-grid, .blog-post-list, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .blog-post-list > div {
    max-width: 100%;
  }
  .cta-buttons { gap: 9px; }
  .hero {
    padding: 25px 0 0 0;
  }
  .newsletter-signup { padding: 15px 12px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.17rem; }
  .footer .content-wrapper { gap: 10px; }
  .footer-nav, .footer-contact, .footer-legal {
    font-size: 0.85rem;
  }
  .contact-info, .map {
    padding: 8px 6px 10px 10px;
  }
  .testimonial-card { padding: 11px 10px; gap: 10px; max-width: 100%; }
  .faq-list > div { padding: 10px 8px; }
  .section, section { padding: 13px 0 0 0; }
  .cookie-banner { flex-direction: column; gap: 14px; padding: 16px 5px 12px 5px; }
  .cookie-banner .cookie-actions { flex-direction: column; gap: 7px; }
  .cookie-modal { padding: 20px 7px; }
}

/* == TRANSITIONS/MICROINTERACTIONS == */
.cta-btn, .button, .btn, .feature-grid>div, .testimonial-card, .card, nav a, .cookie-banner button, .mobile-menu, .mobile-menu-close {
  transition: all .19s cubic-bezier(.47,.13,.51,.98);
}
.testimonial-card:hover {
  box-shadow: 0 3px 18px var(--shadow);
  transform: scale(1.012);
}
/* == Hide scroll behind modal == */
body.modal-open {
  overflow: hidden;
}

/* == CLASSES UTILITY FOR TIGHT/ELEGANT SPACING == */
.mt-0 { margin-top: 0!important; }
.pt-0 { padding-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.pb-0 { padding-bottom: 0!important; }
.mt-16 { margin-top: 16px!important; }
.mb-16 { margin-bottom: 16px!important; }
.mt-24 { margin-top: 24px!important; }
.mb-24 { margin-bottom: 24px!important; }
.mt-32 { margin-top: 32px!important; }
.mb-32 { margin-bottom: 32px!important; }

/* == MISC == */
::-webkit-scrollbar {
  width: 8px;
  background: #e9ecec;
}
::-webkit-scrollbar-thumb {
  background: #cbe2d1;
  border-radius: 8px;
}

/* == END OF STYLE.CSS == */
