/* 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 {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  font-family: 'Nunito', Arial, Helvetica, sans-serif;
  background: #F2F2F2;
  color: #263238;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #356FA1;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8FB339;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 24px;
}
li {
  margin-bottom: 8px;
}

/* Brand Font Import (for browser usage add @import or <link> in HTML) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat'), local('Montserrat-Bold');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  src: local('Nunito'), local('Nunito-Regular');
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #263238;
  font-weight: 700;
}
h1 { font-size: 2.75rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.375rem; line-height: 1.25; margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 8px; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol { font-size: 1rem; margin-bottom: 16px; }
strong { font-weight: 600; }

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

/* Section Spacing */
section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.05);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 768px) {
  section {
    padding: 26px 8px;
    margin-bottom: 32px;
    border-radius: 0;
  }
}

/* Header & Navigation */
header {
  background: #263238;
  color: #fff;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}
header img {
  height: 48px;
  margin-right: 28px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #F2F2F2;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 2px;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #8FB339;
}
.cta-btn {
  background: #8FB339;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  margin-left: 28px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.06);
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #6d9228;
  box-shadow: 0 4px 20px rgba(44,62,80,0.10);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 24px;
  top: 24px;
  background: #8FB339;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  cursor: pointer;
  z-index: 30;
  outline: none;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #263238;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #263238dd;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.77,0,.175,1), opacity 0.25s;
  z-index: 1000;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2rem;
  margin: 28px 0 20px 22px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #8FB339;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  align-items: flex-start;
  margin-left: 32px;
  margin-top: 10px;
}
.mobile-nav a {
  color: #F2F2F2;
  font-size: 1.125rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 16px 0;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  width: 80vw;
  transition: color 0.16s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #8FB339;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}
@media (max-width: 1020px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 600px) {
  header .container {
    flex-direction: row;
    padding: 12px 8px;
  }
  header img { height: 38px; }
  .mobile-menu-close {
    margin-top: 18px;
    font-size: 1.5rem;
  }
}

/* Footer */
footer {
  background: #263238;
  color: #F2F2F2;
  padding: 34px 0 16px 0;
  border-top: 2px solid #8FB339;
  margin-top: 32px;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #8FB339;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.07em;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  color: #E6ECEF;
  font-size: 0.98rem;
  margin-bottom: 0;
}
.footer-contact a {
  color: #8FB339;
  text-decoration: underline;
  transition: color 0.2s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #fff;
}
footer small {
  color: #C8D8DF;
  margin-top: 6px;
}

/* Content features and patterns */
.feature-grid, .team-list, .blog-list, .faq-list, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.feature-grid > div, .team-list > div, .blog-list > div, .faq-list > div, .card {
  background: #F2F2F2;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(44,62,80,0.06);
  padding: 26px 22px 20px 22px;
  margin-bottom: 20px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.feature-grid > div:hover, .team-list > div:hover, .blog-list > div:hover, .faq-list > div:hover, .card:hover {
  box-shadow: 0 8px 28px rgba(44,62,80,0.14);
  transform: translateY(-2px) scale(1.015);
}
.feature-grid img, .team-list img, .blog-list img, .faq-list img {
  height: 44px;
  width: 44px;
  margin-bottom: 10px;
  object-fit: contain;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #E6ECEF;
  color: #263238;
  border-left: 5px solid #8FB339;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 20px;
  font-size: 1.08rem;
  box-shadow: 0 1px 6px rgba(44,62,80,0.06);
}
.testimonial-card p {
  color: #263238;
  margin-bottom: 6px;
  font-style: italic;
}
.testimonial-card span {
  color: #356FA1;
  font-size: 0.97rem;
  font-style: normal;
  font-weight: 500;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.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;
}

/* Custom Patterns*/
.contact-details {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-details img {
  width: 22px;
  height: 22px;
}

/* Blog Card Pattern */
.blog-list > div {
  border-left: 3px solid #8FB339;
  background: #F8FAFB;
  transition: box-shadow 0.15s;
}
.blog-list > div span {
  font-size: 0.92rem;
  color: #8FB339;
  margin-top: 10px;
}

/* FAQ Card Pattern */
.faq-list > div {
  background: #F8FAFB;
}

/* Custom Lists */
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .feature-grid, .team-list, .blog-list, .faq-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .team-list > div, .blog-list > div, .faq-list > div, .card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .contact-details {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Responsive for section text-image */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #263238;
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 12px 18px 12px;
  z-index: 1200;
  box-shadow: 0 -2px 14px rgba(44,62,80,0.09);
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-content {
  max-width: 640px;
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-banner-content p {
  color: #fff;
  font-size: 1rem;
}
.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.cookie-btn {
  border: none;
  border-radius: 24px;
  background: #8FB339;
  color: #fff;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 28px;
  cursor: pointer;
  margin-right: 4px;
  transition: background 0.2s, transform 0.13s;
}
.cookie-btn.reject {
  background: #9A223A;
}
.cookie-btn.settings {
  background: #34495E;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #6d9228;
  transform: scale(1.04);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #7A1B2F;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #263238;
}
@media (max-width: 600px) {
  .cookie-banner-content {
    max-width: 99vw;
  }
  .cookie-banner {
    padding: 14px 2px;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1300;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(38,50,56,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 480px;
  width: 96vw;
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
  padding: 24px 32px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.32s cubic-bezier(.77,0,.175,1);
}
@keyframes cookie-modal-in {
  0% { transform: translateY(80px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: #263238;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.42rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F2F2F2;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 1rem;
  gap: 16px;
}
.cookie-category .cookie-toggle {
  margin-right: 2px;
  width: 36px;
  height: 20px;
  background: #ccc;
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
  display: inline-block;
  flex-shrink: 0;
}
.cookie-category .cookie-toggle input {
  opacity: 0; width: 0; height: 0;
}
.cookie-category .cookie-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
.cookie-category .cookie-toggle input:checked + .cookie-slider {
  transform: translateX(16px);
  background: #8FB339;
}
.cookie-category .cookie-toggle input:checked ~ .cookie-toggle {
  background: #8FB339;
}
.cookie-category.essential .cookie-toggle {
  background: #8FB339;
  cursor: not-allowed;
  opacity: 0.7;
}
.cookie-category.essential .cookie-slider {
  background: #8FB339;
}
.cookie-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 13px 5vw 10px 5vw;
    max-width: 98vw;
  }
}

/* Utilities */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }

/* Miscellaneous */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section h2 {
  margin-top: 22px;
}
.text-section ul {
  margin-bottom: 18px;
}

/* Accessibility & Focus */
a, button, .cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  outline: none;
  box-shadow: none;
}
a:focus-visible, .cta-btn:focus-visible, .cookie-btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible {
  outline: 2px solid #8FB339;
  outline-offset: 2px;
}

/* Hide scrollbar for mobile menu for cleaner appearance */
.mobile-menu {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  overflow-y: auto;
}
.mobile-menu::-webkit-scrollbar {
  display: none;
}

/* Animations */
.cta-btn, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.18s, color 0.15s, box-shadow 0.2s, transform 0.13s;
}
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.16s;
}

/* Selection styling */
::selection {
  background: #8FB339;
  color: #fff;
}

/* Prevent overlapping */
main, header, footer, section, .container, .content-wrapper, .feature-grid, .section {
  position: relative;
  z-index: 1;
}

/* Ensure minimum spacing between all sections */
section + section {
  margin-top: 20px;
}
