/* --- CSS RESET & NORMALIZATION --- */
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;
  scroll-behavior: smooth;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F3F6F4;
  color: #2C2E23;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, button:focus {
  outline: 2px solid #7CB342;
  outline-offset: 2px;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 150px;
  display: block;
}
button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* --- BRAND COLOR VARIABLES (with fallbacks) --- */
:root {
  --sg-primary: #20425C;
  --sg-secondary: #7CB342;
  --sg-accent: #F3F6F4;
  --sg-earth: #BBB491;
  --sg-brown: #8B7151;
  --sg-darkgreen: #536942;
  --sg-lightgreen: #E9F5DF;
  --sg-shadow: rgba(32,66,92,0.10);
  --sg-shadow-strong: rgba(32,66,92,0.16);
}

/* --- TYPOGRAPHY SCALE --- */
h1, .h1 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sg-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}
h2, .h2 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--sg-darkgreen);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sg-primary);
  margin-bottom: 10px;
}
h4, .h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--sg-darkgreen);
}
p, ul li, ol li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #2C2E23;
  margin-bottom: 12px;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}
.text-section p,
.text-section ul, .text-section li {
  color: var(--sg-darkgreen);
}

/* --- GENERAL CONTAINER STYLES --- */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 32px var(--sg-shadow);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 36px;
    border-radius: 18px;
  }
  .container {
    padding: 0 8px;
  }
}

/* --- FLEXBOX LAYOUTS & CONTENT BLOCKS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--sg-shadow-strong);
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 280px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 6px 24px var(--sg-shadow-strong);
}
.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;
}
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  background: #F3F6F4;
  border-radius: 20px;
  box-shadow: 0 2px 12px var(--sg-shadow);
  border-left: 7px solid var(--sg-secondary);
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 20px var(--sg-shadow-strong);
}
.testimonial-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1.11rem;
  color: var(--sg-primary);
  font-weight: 500;
}
.testimonial-card p {
  color: #263226;
  font-size: 1.1rem;
}

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

/* --- HERO & CTA --- */
.hero {
  padding: 64px 0 32px 0;
  background: linear-gradient(90deg, #F3F6F4 65%, #E9F5DF 100%);
  border-radius: 0 0 32px 32px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  color: var(--sg-primary);
  font-size: 2.8rem;
}
.hero p {
  font-size: 1.25rem;
  color: var(--sg-darkgreen);
}
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 18px 0;
    border-radius: 0 0 20px 20px;
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1.06rem;
  }
}

.cta {
  background: var(--sg-lightgreen);
  padding: 38px 0;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 0;
}
.cta .primary-cta {
  font-size: 1.22rem;
  padding: 16px 38px;
}

/* --- PRIMARY CTA BUTTONS --- */
.primary-cta {
  display: inline-block;
  background: var(--sg-secondary);
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 13px 34px;
  letter-spacing: 0.04em;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px var(--sg-shadow-strong);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.22s, transform 0.15s;
}
.primary-cta:hover, .primary-cta:focus {
  background: #5E9732;
  box-shadow: 0 6px 24px var(--sg-shadow-strong);
  transform: translateY(-2px) scale(1.03);
  color: #fff;
}

/* --- MAIN NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 10px var(--sg-shadow);
  position: relative;
  z-index: 40;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 0 24px;
  height: 72px;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--sg-primary);
  padding: 8px 18px;
  border-radius: 32px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--sg-lightgreen);
  color: var(--sg-secondary);
}
.main-nav a.active, .main-nav a[aria-current="page"] {
  background: var(--sg-secondary);
  color: #fff;
}
.main-nav .primary-cta {
  margin-left: 12px;
  padding: 10px 24px;
  font-size: 1rem;
  background: var(--sg-primary);
  color: #fff;
}
.main-nav .primary-cta:hover {
  background: var(--sg-secondary);
  color: #fff;
}
.main-nav img {
  height: 44px;
  width: auto;
  margin-right: 16px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 28px;
  top: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  background: var(--sg-lightgreen);
  color: var(--sg-primary);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  z-index: 110;
  border: 2px solid var(--sg-secondary);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--sg-secondary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(243,246,244, .95);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.75,0,.24,1);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 36px;
  padding-left: 0;
  box-shadow: 0 8px 24px var(--sg-shadow-strong);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 2.2rem;
  background: var(--sg-secondary);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  border: none;
  z-index: 1205;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--sg-darkgreen);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 56px 0 0 24px;
  width: 90vw;
}
.mobile-nav a {
  font-size: 1.21rem;
  font-weight: 600;
  color: var(--sg-primary);
  padding: 12px 10px;
  border-radius: 12px;
  background: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a.active, .mobile-nav a[aria-current="page"] {
  background: var(--sg-secondary);
  color: #fff;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--sg-lightgreen);
  color: var(--sg-secondary);
}
@media (max-width: 996px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 997px) {
  .mobile-menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* --- FEATURES & LISTS --- */
.features ul,
.services ul,
.about ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.features ul li,
.services ul li,
.about ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--sg-accent);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 1px 4px var(--sg-shadow);
  font-size: 1rem;
  color: var(--sg-primary);
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 50px;
  transition: background 0.14s, box-shadow 0.18s;
}
.features ul li:hover,
.services ul li:hover,
.about ul li:hover {
  background: var(--sg-lightgreen);
  box-shadow: 0 3px 14px var(--sg-shadow-strong);
  color: var(--sg-secondary);
}
.features ul li img,
.services ul li img,
.about ul li img {
  width: 26px;
  height: 26px;
  margin-right: 10px;
}

/* --- TEXT SECTION --- */
.text-section {
  margin-bottom: 20px;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul {
  margin-bottom: 8px;
}
.text-section li {
  margin-bottom: 4px;
}

/* --- FOOTER --- */
footer {
  margin-top: 40px;
  background: #fff;
  box-shadow: 0 -2px 12px var(--sg-shadow);
  border-radius: 24px 24px 0 0;
  padding-top: 34px;
  padding-bottom: 22px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-wrapper > a img {
  height: 48px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  font-size: 0.99rem;
  color: var(--sg-primary);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-radius: 8px;
  padding: 6px 8px;
  transition: color 0.15s, background 0.14s;
}
.footer-nav a:hover,
.footer-nav a.active {
  background: var(--sg-lightgreen);
  color: var(--sg-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.96rem;
  color: var(--sg-darkgreen);
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  filter: grayscale(30%);
  opacity: 0.8;
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  footer {
    padding-top: 20px;
  }
}

/* --- FAQ ACCORDION STYLE --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-accordion > div {
  background: var(--sg-accent);
  border-radius: 10px;
  box-shadow: 0 1px 6px var(--sg-shadow);
  padding: 12px 18px;
  transition: box-shadow 0.15s, background 0.16s;
}
.faq-accordion > div:hover {
  box-shadow: 0 3px 12px var(--sg-shadow-strong);
  background: #E9F5DF;
}
.faq-accordion h3 {
  font-size: 1.13rem;
  color: var(--sg-secondary);
  margin-bottom: 8px;
  font-weight: 600;
}
.faq-accordion p {
  font-size: 1rem;
  color: var(--sg-primary);
}

/* --- UTILITY CLASSES & EFFECTS --- */
.shadow {
  box-shadow: 0 4px 24px var(--sg-shadow);
}
.rounded {
  border-radius: 20px;
}
.gap-20 {
  gap: 20px;
}
.gap-24 {
  gap: 24px;
}
.flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.flex-center {
  align-items: center;
  justify-content: center;
}
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* --- ANIMATIONS & INTERACTIONS --- */
.card, .features ul li, .testimonial-card, .faq-accordion > div {
  transition: box-shadow 0.16s, background 0.13s, color 0.14s, transform 0.15s;
}
button, .primary-cta {
  transition: background 0.18s, color 0.14s, box-shadow 0.22s, transform 0.16s;
}

/* --- FORM ELEMENTS (for contact/potential forms) --- */
input, textarea, select {
  border: 1.5px solid var(--sg-primary);
  border-radius: 11px;
  font-size: 1rem;
  padding: 13px 12px;
  background: #fff;
  color: #3a4423;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 16px;
  width: 100%;
  resize: vertical;
  transition: border-color 0.14s, box-shadow 0.13s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--sg-secondary);
  box-shadow: 0 0 5px var(--sg-lightgreen);
}
label {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
  color: var(--sg-darkgreen);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: var(--sg-primary);
  box-shadow: 0 -3px 22px var(--sg-shadow-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px;
  z-index: 9999;
  font-size: 1rem;
  border-top: 2px solid var(--sg-lightgreen);
  animation: slideUp .45s ease;
}
.cookie-banner p {
  color: var(--sg-darkgreen);
  flex: 1 1 260px;
  margin-right: 16px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  padding: 10px 20px;
  margin: 0 4px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  border-radius: 8px;
  border: none;
  min-width: 120px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-banner .accept {
  background: var(--sg-secondary);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--sg-darkgreen);
}
.cookie-banner .reject {
  background: #F3F6F4;
  color: var(--sg-secondary);
  border: 1.5px solid var(--sg-secondary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--sg-lightgreen);
  color: var(--sg-darkgreen);
}
.cookie-banner .settings {
  background: var(--sg-primary);
  color: #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--sg-secondary);
  color: #fff;
}

@keyframes slideUp {
  0% {transform: translateY(100%); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  background: #fff;
  box-shadow: 0 6px 48px var(--sg-shadow-strong);
  border-radius: 32px 32px 0 0;
  width: 98vw;
  max-width: 410px;
  z-index: 10010;
  padding: 32px 26px 26px 26px;
  transition: transform 0.38s cubic-bezier(.62,.01,.26,1);
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal h2 {
  font-size: 1.22rem;
  color: var(--sg-primary);
  margin-bottom: 14px;
}
.cookie-modal .modal-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-darkgreen);
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--sg-secondary);
  width: 18px;
  height: 18px;
  margin-right: 5px;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.cookie-modal button {
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
}
.cookie-modal .save {
  background: var(--sg-secondary);
  color: #fff;
}
.cookie-modal .close {
  background: #F3F6F4;
  color: var(--sg-secondary);
}
.cookie-modal .close:hover, .cookie-modal .save:hover {
  background: var(--sg-lightgreen);
  color: var(--sg-darkgreen);
}

/* --- RESPONSIVE COOKIE BANNER --- */
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 6px 12px 10px;
    gap: 12px;
    font-size: 0.98rem;
  }
  .cookie-banner p {
    margin-right: 0;
  }
  .cookie-modal {
    max-width: 96vw;
    padding: 20px 8px 20px 8px;
  }
}

/* --- SPECIAL ORGANIC/NATURE ORGANIC STYLE ACCENTS --- */
.hero, .cta, .section {
  position: relative;
  overflow: hidden;
}
.hero:before, .section:before, .cta:before {
  content: "";
  position: absolute;
  top: -60px;
  right: -80px;
  width: 210px;
  height: 210px;
  background: var(--sg-lightgreen);
  border-radius: 54% 46% 43% 57% / 54% 40% 60% 46%;
  z-index: 0;
  opacity: 0.36;
  pointer-events: none;
  filter: blur(4px);
}
.section:after, .cta:after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -100px;
  width: 188px;
  height: 130px;
  background: var(--sg-secondary);
  opacity: 0.13;
  border-radius: 62% 38% 49% 51% / 60% 38% 62% 40%;
  pointer-events: none;
  filter: blur(7px);
  z-index: 0;
}
.hero .container, .section .container, .cta .container {
  position: relative;
  z-index: 2;
}

/* --- ORGANIC SHADOWS & TEXTURES --- */
.section, .testimonial-card, .features ul li, .faq-accordion > div, .card {
  box-shadow: 0 4px 24px var(--sg-shadow);
}

/* --- OVERRIDES AND EDGE SPACING --- */
main > section {
  margin-bottom: 60px;
}
main > section:last-child {
  margin-bottom: 0;
}

/* Ensure minimum 20px spacing for cards and sections */
.card:not(:last-child), .testimonial-card:not(:last-child), .features ul li:not(:last-child) {
  margin-bottom: 20px;
}

/* Prevent content overlap on mobile and desktop */
.card-container, .content-grid, .section > .container > .content-wrapper {
  gap: 24px;
}
@media (max-width: 768px) {
  .card-container, .content-grid,
  .section > .container > .content-wrapper {
    gap: 18px;
  }
}

/* --- MISC: HIDE/SHOW UTILITY FOR MOBILE MENU JS --- */
.hide {
  display: none !important;
}

/* --- END OF CORE STYLES --- */
