/* ============================================================
   RESET & BASE
   ============================================================ */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1e2832;
  background: #f9f6ee;
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #23734a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1e2832;
  outline: none;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 16px;
  padding: 0;
}
ul ul, ul ol, ol ul, ol ol {
  margin-bottom: 0;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  color: #1e2832;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 16px;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
}
p, .text-section {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
blockquote {
  border-left: 4px solid #23734a;
  padding-left: 16px;
  font-style: italic;
  color: #1e2832;
  margin-bottom: 12px;
}
cite {
  display: block;
  margin-top: 4px;
  color: #23734a;
  font-style: normal;
  font-size: 0.95em;
}

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(30,40,50,0.07);
  display: flex;
  flex-direction: column;
}
/* Spacing pattern for flexbox containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(30,40,50,0.07);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(35,115,74,0.12);
}
.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;
  background: #f9f6ee;
  box-shadow: 0 2px 7px rgba(35,115,74,0.06);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  flex: 1 1 320px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  margin-bottom: 20px;
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(30,40,50,0.05);
  z-index: 20;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 18px 20px;
  gap: 22px;
}
header a img {
  height: 48px;
  width: auto;
  margin-right: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-right: 16px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #1e2832;
  padding: 8px 0;
  font-weight: 500;
  transition: color 0.16s;
  border-bottom: 2px solid transparent;
}
header nav a:hover,
header nav a:focus {
  color: #23734a;
  border-bottom: 2px solid #23734a;
}
.cta-primary {
  background: #23734a;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 10px 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(35,115,74,0.07);
  margin-left: 16px;
  cursor: pointer;
  border: none;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #1e2832;
  color: #fff;
  box-shadow: 0 4px 16px rgba(35,115,74,0.12);
  outline: none;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #23734a;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 101;
  margin-left: auto;
  padding: 4px 12px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #23734a;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 310px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 16px rgba(30,40,50,0.12);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.68,-0.55,.27,1.55);
  padding: 28px 24px 24px 32px;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 18px;
  background: none;
  color: #1e2832;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 1200;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #23734a;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 54px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  color: #1e2832;
  padding: 10px 2px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.17s, color 0.17s;
  min-width: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #f9f6ee;
  color: #23734a;
  outline: none;
}
/* Overlay when mobile menu is active */
body.mobile-menu-open::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(30,40,50,0.45);
  z-index: 1098;
  pointer-events: auto;
  transition: opacity 0.18s;
}

/* ============================================================
   MAIN CONTENT STYLES
   ============================================================ */
main {
  padding: 48px 0 0 0;
  min-height: 60vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:last-child {
  margin-bottom: 24px;
}

/* Inline icon styling in lists */
ul li img {
  height: 1.4em;
  width: 1.4em;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

/* Feature list visual style */
ul {
  list-style: none;
}
ul > li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  margin-bottom: 12px;
}
ol > li {
  margin-bottom: 12px;
  font-size: 1rem;
}

/* CTAs inside content */
.content-wrapper a.cta-primary {
  margin-top: 16px;
  align-self: flex-start;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card blockquote {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #1e2832;
  border-left: 4px solid #23734a;
  margin: 0;
  background: none;
  padding: 0 0 0 12px;
}
.testimonial-card cite {
  font-size: 1rem;
  color: #23734a;
  margin-top: 5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #1e2832;
  color: #fff;
  padding: 44px 0 28px 0;
  font-size: 0.98rem;
  margin-top: 50px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-bottom: 12px;
  color: #fff;
}
footer nav a {
  color: #96aec1;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
}
footer .address-block {
  color: #f9f6ee;
  font-size: 0.97rem;
  margin-top: 10px;
  line-height: 1.6;
}
footer .address-block strong {
  font-family: 'Montserrat', Arial, sans-serif;
}
footer .address-block img {
  height: 1.25em;
  vertical-align: middle;
  margin-right: 5px;
  margin-left: 14px;
  filter: brightness(0) invert(1);
}

/* ============================================================
   COOKIE BANNER AND MODAL
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #1e2832;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
  padding: 28px 16px 18px 16px;
  box-shadow: 0 -2px 12px rgba(30,40,50,0.15);
  gap: 18px;
  animation: fadeInCookie 0.5s;
}
@keyframes fadeInCookie {
  0% { opacity: 0; transform: translateY(100px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  max-width: 800px;
  text-align: center;
  font-size: 1.06rem;
  color: #f9f6ee;
  margin-bottom: 6px;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-btn {
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 26px;
  border: none;
  cursor: pointer;
  margin: 0;
  background: #23734a;
  color: #fff;
  box-shadow: 0 1px 5px rgba(30,40,50,0.04);
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #165734;
  color: #fff;
  outline: none;
}
.cookie-btn--secondary {
  background: #fff;
  color: #23734a;
  border: 1.5px solid #23734a;
}
.cookie-btn--secondary:hover,
.cookie-btn--secondary:focus {
  background: #f9f6ee;
  color: #165734;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(31, 39, 49, 0.64);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookie 0.25s;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 32px rgba(0,16,32,0.12);
  max-width: 430px;
  width: 95vw;
  padding: 34px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: #1e2832;
  animation: popInCookie 0.3s;
}
@keyframes popInCookie {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: #23734a;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #1e2832;
}
.switch {
  position: relative;
  width: 38px;
  height: 22px;
  display: inline-block;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e7ebee;
  border-radius: 22px;
  transition: background 0.2s;
}
.switch input:checked + .slider {
  background: #23734a;
}
.slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 14px;
}

/* ============================================================
   MEDIA QUERIES: RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1020px) {
  .container { max-width: 92vw; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  header .container { gap: 10px; }
  .section { padding: 32px 10px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  body { font-size: 1rem; }
  .container { padding: 0 8px; }
  .section, section { padding: 28px 5px; }
  .card, .testimonial-card { padding: 14px 10px; }
  header nav, header .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 10px 14px 10px;
  }
  .content-wrapper { max-width: 98vw; }
  .testimonial-card, .card {
    flex: 1 1 100%;
    margin-bottom: 14px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  main { gap: 28px; padding: 28px 0 0 0; }
  footer .container {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  .cookie-banner__buttons {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 450px) {
  html { font-size: 14px; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .mobile-menu {
    width: 100vw;
    min-width: 0;
    padding: 28px 10px 20px 18px;
  }
}

/* ============================================================
   FORMS AND INPUTS (utility)
   ============================================================ */
input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid #96aec1;
  border-radius: 6px;
  background: #f9f6ee;
  padding: 8px 12px;
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.16s, box-shadow 0.17s;
}
input:focus, select:focus, textarea:focus {
  border-color: #23734a;
  outline: none;
  box-shadow: 0 0 0 2px #23734a22;
}
button {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* ============================================================
   SHADOWS AND CARDS
   ============================================================ */
.card, .testimonial-card {
  box-shadow: 0 2px 10px rgba(30,40,50,0.06);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(35,115,74,0.11);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: #23734a, #1e2832; }

/* ============================================================
   VISUAL MICRO-INTERACTIONS
   ============================================================ */
.cta-primary, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.13s;
}
.cta-primary:active, .cookie-btn:active {
  transform: scale(0.96);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid #23734a;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    transition: none !important;
    animation-duration: 0ms !important;
  }
}
