/*===============================
  CSS RESET & BASE 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;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: #F8FAF8;
  color: #224A2D;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
}
a {
  color: #224A2D;
  text-decoration: underline;
  transition: color 0.2s;
  outline: none;
}
a:focus, a:hover {
  color: #E29B34;
  text-decoration: underline;
}

strong {
  font-weight: 700;
}

/*================================
         TYPOGRAPHY
================================*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #224A2D;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.text-section p,
.text-section ul,
.text-section ol {
  max-width: 700px;
}
.text-section a {
  text-decoration: underline;
}

/*===============================
   COLOR PALETTE (SOFT PASTEL)
===============================*/
:root {
  --brand-primary: #224A2D;
  --brand-primary-dark: #1a3a23;
  --brand-secondary: #F3F8F2;
  --brand-accent: #E29B34;
  --brand-accent-dark: #c47c13;
  --pastel-green: #bbdfc8;
  --pastel-blue: #c5dff8;
  --pastel-peach: #fff0e2;
  --pastel-yellow: #fff8dd;
  --pastel-lilac: #ead6fb;
  --pastel-mint: #defde0;
  --gray-100: #f7faf9;
  --gray-200: #e9f2ec;
  --gray-400: #d4dfdb;
  --gray-border: #cde7d1;
  --text-dark: #1a3a23;
  --text-light: #224A2D;
  --white: #ffffff;
  --shadow: 0 4px 16px 0 rgba(34,74,45,0.08), 0 1.5px 6px 0 rgba(226,155,52,0.05);
}

/*===============================
     SPACING: CONTAINERS & SECTIONS
===============================*/
.container {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 8px;
  }
}

.content-wrapper {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/*===============================
      FLEXBOX LAYOUTS
===============================*/
.feature-grid, .card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid {
  gap: 28px 24px;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 24px;
  background: var(--pastel-mint);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  transition: box-shadow 0.3s, transform 0.25s;
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  min-width: 280px;
  max-width: 360px;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px 0 rgba(34,74,45,0.13), 0 3px 10px 0 rgba(226,155,52,0.07);
}
@media (max-width: 1024px) {
  .feature-grid, .card-container, .card-grid, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 24px;
  background: var(--pastel-lilac);
  border-radius: 20px;
  box-shadow: 0 2px 14px 0 rgba(34,74,45,0.07);
  color: var(--text-dark);
  font-size: 1.13rem;
  min-width: 260px;
  max-width: 700px;
  transition: box-shadow 0.28s, background 0.28s;
}
.testimonial-card strong {
  color: var(--brand-accent-dark);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.testimonial-card p {
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card:hover {
  background: var(--pastel-blue);
  box-shadow: 0 8px 32px 0 rgba(34,74,45,0.09);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 1.5px 8px rgba(226,155,52,0.08);
  padding: 28px 20px 22px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.feature-item img {
  width: 38px;
  height: 38px;
}
.feature-item:hover {
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 6px 18px 0 rgba(226,155,52,0.13);
  background: var(--pastel-mint);
}

.category-shortcuts {
  margin: 14px 0 0 0;
  font-size: 1.02em;
  color: var(--brand-primary);
  text-align: left;
}
.category-shortcuts a {
  color: var(--brand-accent-dark);
  padding: 0 7px;
  transition: color 0.2s;
}
.category-shortcuts a:hover {
  color: var(--brand-primary);
}

/*===============================
          NAVIGATION
===============================*/
header {
  background: var(--pastel-green);
  box-shadow: 0 2px 8px 0 rgba(34,74,45,0.06);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 25;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  color: var(--brand-primary-dark);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
  background: transparent;
}
.main-nav a.cta-btn {
  background: linear-gradient(100deg, var(--brand-accent) 80%, var(--brand-accent-dark));
  color: #fff;
  padding: 8px 22px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 18px;
  margin-left: 14px;
  box-shadow: 0 2px 8px rgba(226,155,52,0.06);
}
.main-nav a.cta-btn:hover, .main-nav a.cta-btn:active {
  background: linear-gradient(100deg, var(--brand-accent-dark), var(--brand-accent));
  color: #fff;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--pastel-lilac);
  color: var(--brand-accent-dark);
}
.main-nav img {
  height: 44px;
  margin-right: 15px;
}
@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .main-nav img {
    margin-right: 10px;
  }
}
@media (max-width: 870px) {
  .main-nav a:not(:first-child):not(.cta-btn) {
    font-size: 1.01rem;
    padding: 6px 8px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none !important;
  }
}

/*===============================
    MOBILE MENU & BURGER BUTTON
===============================*/
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--brand-primary-dark);
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 38;
  cursor: pointer;
  transition: color 0.18s;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: -100vw;
  width: 86vw;
  height: 100vh;
  max-width: 380px;
  min-width: 220px;
  background: linear-gradient(125deg, var(--pastel-mint) 75%, var(--pastel-blue));
  box-shadow: 0 12px 36px 4px rgba(34,74,45,0.17), 0 1.5px 6px 0 rgba(226,155,52,0.11);
  z-index: 1001;
  padding: 28px 26px 18px 26px;
  transition: transform 0.33s cubic-bezier(.57,.21,0,.99);
  transform: translateX(105vw);
}
.mobile-menu.open {
  transform: translateX(0);
  right: 0;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--brand-primary-dark);
  margin-bottom: 32px;
  align-self: flex-end;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: var(--brand-primary-dark);
  text-decoration: none;
  padding: 12px 12px;
  border-radius: 12px;
  background: none;
  transition: background 0.19s, color 0.19s;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--pastel-green);
  color: var(--brand-accent-dark);
}
.mobile-nav a.cta-btn {
  background: var(--brand-accent);
  color: #fff;
  margin: 10px 0 0 0;
  font-size: 1.16rem;
  border-radius: 16px;
  font-weight: 700;
  text-align: center;
  padding: 10px 0;
  box-shadow: 0 3px 14px rgba(226,155,52,0.09);
}
.mobile-nav a.cta-btn:hover {
  background: var(--brand-accent-dark);
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/*===============================
        BUTTON STYLES
===============================*/
.cta-btn, .cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.08rem;
  color: #fff;
  background: linear-gradient(100deg, var(--brand-accent), var(--brand-accent-dark));
  padding: 11px 26px;
  border: none;
  border-radius: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px 0 rgba(34,74,45,0.08);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  outline: none;
  margin-top: 10px;
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover, .cookie-btn:hover, .cookie-settings-btn:hover {
  background: linear-gradient(100deg, var(--brand-accent-dark), var(--brand-accent));
  color: #fff;
  box-shadow: 0 7px 24px 0 rgba(226,155,52,0.16);
  transform: translateY(-2px) scale(1.01);
}
.cta-btn:focus {
  outline: 2px dashed var(--brand-accent-dark);
}

/*===============================
      SECTIONS, CARDS, HR
===============================*/
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 768px) {
  section {
    padding: 23px 0;
    margin-bottom: 32px;
  }
}
hr {
  border: none;
  border-top: 1.5px dashed var(--gray-border);
  margin: 28px 0;
}

/*===============================
        FOOTER
===============================*/
footer {
  background: var(--brand-secondary);
  border-top: 2px solid var(--pastel-peach);
  box-shadow: 0 -2px 8px 0 rgba(34,74,45,0.04);
  margin-top: 40px;
  font-size: 1rem;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}
.footer-menu a {
  color: var(--brand-primary-dark);
  text-decoration: none;
  font-weight: 600;
  background: var(--pastel-green);
  padding: 8px 14px;
  border-radius: 11px;
  transition: background 0.17s, color 0.18s;
}
.footer-menu a:hover {
  background: var(--brand-accent);
  color: #fff;
}
address {
  font-style: normal;
  color: var(--brand-primary-dark);
  margin-bottom: 10px;
  font-size: 0.97rem;
  margin-top: 14px;
}
address img {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  margin-right: 5px;
  margin-bottom: 3px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pastel-peach);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  transition: background 0.18s, box-shadow 0.18s;
}
.social-links a:hover {
  background: var(--pastel-yellow);
  box-shadow: 0 2px 8px rgba(226,155,52,0.10);
}
.social-links img {
  width: 20px;
  height: 20px;
}

/*===============================
        COOKIE CONSENT BANNER
===============================*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--pastel-peach) 75%, var(--pastel-green));
  color: var(--brand-primary-dark);
  box-shadow: 0 -4px 16px 0 rgba(34,74,45,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 24px 20px;
  z-index: 5004;
  font-size: 1.07rem;
  gap: 24px;
  opacity: 1;
  transition: transform 0.44s cubic-bezier(.57,.21,0,.99), opacity 0.4s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(130%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  background: var(--brand-accent);
  color: #fff;
  padding: 9px 19px;
  border: none;
  border-radius: 13px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.18s, color 0.16s;
}
.cookie-btn.accept {
  background: var(--brand-accent);
}
.cookie-btn.accept:hover {
  background: var(--brand-accent-dark);
}
.cookie-btn.reject {
  background: var(--pastel-lilac);
  color: var(--brand-primary-dark);
}
.cookie-btn.reject:hover {
  background: var(--brand-accent-dark);
  color: #fff;
}
.cookie-settings-btn {
  background: var(--pastel-blue);
  color: var(--brand-primary-dark);
  border: 1.5px solid var(--gray-border);
  font-weight: 500;
  padding: 8px 16px;
}
.cookie-settings-btn:hover {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent-dark);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 10px 18px 10px;
    font-size: 0.98rem;
    gap: 14px;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
  }
}

/*===============================
        COOKIE MODAL
===============================*/
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,74,45,0.34);
  z-index: 5009;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade-in 0.33s;
}
.cookie-modal.open {
  display: flex;
}
@keyframes cookie-modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: linear-gradient(120deg, var(--pastel-blue) 60%, var(--pastel-green));
  border-radius: 22px;
  box-shadow: 0 6px 28px 0 rgba(34,74,45,0.16);
  padding: 38px 28px 30px 28px;
  max-width: 410px;
  width: 94vw;
  color: var(--brand-primary-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-size: 1.07rem;
}
.cookie-modal-content h3 {
  margin-bottom: 9px;
  font-size: 1.2rem;
}
.cookie-modal-content ul {
  margin-bottom: 0;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.04rem;
  padding: 8px 0 8px 4px;
}
.cookie-toggle {
  appearance: none;
  width: 32px; height: 18px;
  background: var(--gray-200);
  border-radius: 16px;
  position: relative;
  outline: none;
  transition: background 0.14s;
}
.cookie-toggle:checked {
  background: var(--brand-accent);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0.5px 3px rgba(34,74,45,0.09);
  transition: left 0.18s;
}
.cookie-toggle:checked::before {
  left: 17px;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brand-primary-dark);
  cursor: pointer;
  padding: 0;
}
.cookie-modal-buttons {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}

/*===============================
      GENERAL INTERACTIVE
===============================*/
::-webkit-input-placeholder { color: #88988a; }
::-moz-placeholder { color: #88988a; }
:-ms-input-placeholder { color: #88988a; }
::placeholder { color: #88988a; }

input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 8px;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-accent) !important;
  box-shadow: 0 2px 8px 0 rgba(34,74,45,0.07);
}

/* Links in non-nav
----------------------*/
.text-section a:not(.cta-btn) {
  color: var(--brand-accent-dark);
  font-weight: 600;
  transition: color 0.19s;
}
.text-section a:not(.cta-btn):hover {
  color: var(--brand-primary);
}

/*===============================
        UTIL CLASSES
===============================*/
.d-flex {
  display: flex !important;
}
.flex-col {
  flex-direction: column !important;
}
.align-center {
  align-items: center !important;
}
.align-start {
  align-items: flex-start !important;
}
.justify-between {
  justify-content: space-between !important;
}
.gap-20 {
  gap: 20px !important;
}
.mt-24 { margin-top: 24px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }

/*===============================
        RESPONSIVE UPDATE
===============================*/
@media (max-width: 768px) {
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.42rem; }
  h3 { font-size: 1.13rem; }

  .main-nav {
    display: none !important;
  }
  .container {
    max-width: 99vw;
    padding: 0 7px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 9px;
    margin-bottom: 12px;
    align-items: flex-start;
  }
  .content-wrapper {
    gap: 19px;
  }
  .testimonial-card {
    padding: 17px 9px;
    min-width: 0;
    max-width: 98vw;
  }
  .feature-item,
  .card {
    max-width: 94vw;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.32rem; }
  h2 { font-size: 1.08rem; }
  .card, .feature-item {
    max-width: 99vw;
    padding: 14px 5px;
  }
  .content-wrapper {
    gap: 10px;
  }
}

/*===============================
       ANIMATIONS & MICRO-UX
===============================*/
.cta-btn, .cookie-btn, .cookie-settings-btn, .feature-item, .card, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.24s, background 0.19s, color 0.18s;
}

.cta-btn:active, .cookie-btn:active, .cookie-settings-btn:active {
  transform: scale(0.98);
}

/*===============================
         MISCELLANEOUS
===============================*/
/* Ensure all main content has vertical spacing from header/footer */
main {
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Hide outline when clicking but keep for keyboard users */
*:focus:not(:focus-visible) {
  outline: none;
}
*:focus-visible, .mobile-nav a:focus-visible, .main-nav a:focus-visible, .cta-btn:focus-visible {
  outline: 2px dashed var(--brand-accent);
  outline-offset: 1.5px;
}

/* Decorative image adjustments */
img[alt^="EcoGuard"] {
  border-radius: 12px;
}

/* Ensure minimum spacing between all elements/cards */
.card + .card,
.feature-item + .feature-item,
.text-section > * + * {
  margin-top: 20px;
}

/* Prevent overlap in testimonial sections */
.testimonial-card + .testimonial-card {
  margin-top: 24px;
}

/* Make sure content inside section never overlaps */
section > .container > .content-wrapper > * + * {
  margin-top: 20px;
}

/* Sticky footer for small content */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0;
}

/* =========== SUPPORT FOR UTILITY CLASSES =========== */
.hide { display: none !important; }

/* ========== PRINT ========== */
@media print {
  .main-nav, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}
