/* =======================================================
   CSS RESET & NORMALIZE FOR CROSS-BROWSER CONSISTENCY
   ======================================================= */
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, menu, 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, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background-color: #F8F5F2;
  color: #2C3326;
  font-family: 'Lato', Arial, Verdana, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

/* =========================================
   TYPOGRAPHY & BRAND FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #195B84;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4, h5, h6 { font-size: 1.125rem; margin-bottom: 12px; }
p, ul li {
  font-size: 1rem;
  font-family: 'Lato', Arial, Verdana, sans-serif;
  color: #2C3326;
  margin-bottom: 14px;
}
strong, b {
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }
}

/* =========================================
   COLORS: Brand + Nature Organic Extension
   ========================================= */
:root {
  --primary: #195B84;       /* Deep blue (brand) */
  --secondary: #D9E5EC;    /* Soft blue-grey (brand) */
  --accent: #21784f;       /* Vibrant green (organic accent) */
  --neutral-bg: #F8F5F2;   /* Off-white, nature-inspired */
  --earth-brown: #ADA17F;  /* Earthy brown */
  --leaf-green: #53BA83;   /* Secondary accent green */
  --dark-text: #2C3326;
  --light-bg: #FFF;
  --shadow-color: rgba(53,75,63,0.12);
  --card-border: #E1DFD7; 
}

/* ===============================
   GENERAL LAYOUT & CONTAINERS
   =============================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  background: var(--light-bg);
  border-radius: 20px;
  box-shadow: 0 6px 24px var(--shadow-color);
  padding: 40px 24px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 768px) {
  .content-wrapper {
    padding: 24px 10px;
    border-radius: 14px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section { padding: 28px 4px; margin-bottom: 36px; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--light-bg);
  border-radius: 16px;
  box-shadow: 0 3px 12px var(--shadow-color);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 265px;
  flex: 1 1 280px;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px 18px;
}

.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) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: 14px;
  background: var(--secondary);
  padding: 18px 16px;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px var(--shadow-color);
  margin-bottom: 24px;
  min-width: 0;
  flex: 1 1 290px;
  border-left: 5px solid var(--accent);
}
.testimonial-card blockquote {
  color: var(--dark-text);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.7;
}
.testimonial-card cite {
  display: inline-block;
  color: var(--primary);
  font-family: 'Lato', Arial, Verdana, sans-serif;
  font-size: 0.99rem;
  margin-left: 12px;
}

/* ====================================
   HEADER & NAVIGATION (Desktop)
   ==================================== */
header {
  background: linear-gradient(90deg,#E7ECE1 20%, #E7EDE6 60%, var(--secondary) 100%);
  box-shadow: 0 6px 18px rgba(53,75,63,0.09);
  padding: 0;
  position: relative;
  z-index: 103;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
}
header nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-right: 8px;
  transition: color 0.18s;
  padding: 8px 12px;
  border-radius: 22px;
}
header nav a.cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 10px var(--shadow-color);
  margin-left: 16px;
  font-weight: 700;
  transition: background 0.25s;
}
header nav a.cta:hover, header nav a:hover {
  background: var(--leaf-green);
  color: #fff;
}
header nav a img {
  height: 42px;
  width: auto;
  vertical-align: middle;
  margin-right: 16px;
  border-radius: 50%;
  background: #eaf0e8;
  padding: 2px;
  box-shadow: 0px 0px 6px #e1eced;
}

/* Hide mobile nav and burger by default */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: #E7ECE1;
  border-top: 1px solid #d5dccf;
  padding: 32px 0 16px 0;
  margin-top: 70px;
  font-size: 1rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
}
footer nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: none;
  padding: 3px 10px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover {
  background: var(--accent);
  color: #fff;
}
footer .text-section {
  font-size: 0.98rem;
  color: #2C3326;
  line-height: 1.4;
  margin: 20px;
}
footer .text-section p {
  margin-bottom: 8px;
  color: #50624b;
}

/* =====================
   BUTTONS & CTA
   ===================== */
.cta, a.cta, button.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 32px;
  box-shadow: 0 4px 18px var(--shadow-color);
  transition: background 0.22s, color 0.18s, transform 0.2s;
  letter-spacing: 0.01em;
  margin-top: 14px;
  margin-bottom: 10px;
  border: none;
  outline: none;
}
.cta:hover, a.cta:hover, button.cta:hover {
  background: var(--leaf-green);
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px var(--shadow-color);
}

/* ================================
   ICONS within ul/li (features)
   ================================ */
ul li img, .feature-item img {
  height: 30px;
  width: 30px;
  margin-right: 14px;
  vertical-align: middle;
  border-radius: 50%;
  background: #e6ede3;
  padding: 2px;
}
ul li {
  display: flex;
  align-items: center;
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 1rem;
  color: #445233;
}
@media (max-width: 600px) {
  ul li { font-size: 0.97rem; }
}

/* ===================
   ORGANIC DECORATIONS
   =================== */
/* (Organic style with natural shapes and earthy highlights) */
.content-wrapper, .card, .testimonial-card, .feature-item {
  border-radius: 18px 34px 18px 34px / 34px 18px 34px 18px;
}
.section {
  background: linear-gradient(110deg, #F5EFE2 60%, #e7f4ea 110%);
  border-radius: 40px 8px 40px 8px;
}

/* Decorative accent line for sections/titles */
h2 {
  position: relative;
  padding-left: 13px;
}
h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 28px;
  border-radius: 20px;
  background: var(--accent);
  position: absolute;
  left: 0; top: 7px;
}

/* ================================
   RESPONSIVE FLEXBOX ADJUSTMENTS
   ================================ */
@media (max-width: 1100px) {
  .container {
    max-width: 97vw;
  }
}
@media (max-width: 900px) {
  .card-container, .content-grid {
    gap: 18px;
  }
  .card { min-width: 210px; }
}
@media (max-width: 768px) {
  .container { padding: 0 2vw; }
  .section { padding: 18px 2px; margin-bottom: 28px; }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* ===================
   MOBILE NAVIGATION
   =================== */
/* Burger icon shown */
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    align-items: center;
    justify-content: center;
    z-index: 1056;
    border: none;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: background 0.18s;
  }
  .mobile-menu-toggle:hover {
    background: var(--leaf-green);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(122deg, #D9E5EC 70%, #eaf6e5 100%);
    z-index: 9999;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(.86,0,.07,1), opacity 0.27s;
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    box-shadow: 4px 0 22px #b7cbbd;
  }
  .mobile-menu-close {
    position: absolute;
    top: 17px;
    right: 18px;
    background: var(--primary);
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    z-index: 10100;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
  }
  .mobile-menu-close:hover {
    background: var(--accent);
  }
  .mobile-nav {
    margin-top: 72px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-left: 34px;
    padding-right: 24px;
    font-family: 'Montserrat', Arial, sans-serif;
  }
  .mobile-nav a {
    font-size: 1.23rem;
    padding: 10px 0;
    color: var(--dark-text);
    border-radius: 12px;
    min-width: 140px;
    font-weight: 600;
    margin-bottom: 0;
    background: none;
    transition: color 0.16s, background 0.19s;
  }
  .mobile-nav a.cta {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    margin-top: 18px;
    transition: background 0.18s;
    box-shadow: 0 4px 14px var(--shadow-color);
  }
  .mobile-nav a:hover, .mobile-nav a.cta:hover {
    background: var(--leaf-green);
    color: #fff;
  }
}

/* Hide burger and mobile menu on desktop */
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* ===================
   COOKIE CONSENT BANNER
   =================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe6;
  color: #274603;
  box-shadow: 0 -2px 28px rgba(62,82,73,0.13);
  border-top: 2px solid #d4dab2;
  z-index: 20001;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px 28px;
  animation: cookie-banner-slidein 0.7s cubic-bezier(.5,.98,.43,1);
}
@keyframes cookie-banner-slidein {
  from { transform: translateY(70px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.05rem;
  color: #58452c;
  margin: 2px 0 0 0;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  font-size: 1rem;
  margin: 0 8px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.13s;
  box-shadow: 0 1px 6px var(--shadow-color);
  border: none;
}
.cookie-banner .cookie-reject {
  background: #dbe9c3;
  color: #29602c;
}
.cookie-banner button:hover, .cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-reject:hover {
  background: var(--leaf-green);
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 16px 8px;
    font-size: 97%;
  }
}

/* ===============
   COOKIE MODAL
   =============== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(44,51,38,0.27);
  z-index: 22280;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #F4F7EE;
  border-radius: 18px 42px 18px 34px;
  box-shadow: 0 12px 42px rgba(44,51,38,0.23);
  padding: 40px 28px 22px 28px;
  min-width: 340px;
  max-width: 96vw;
  max-height: 90vh;
  overflow-y: auto;
  color: #2C3326;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.25s cubic-bezier(.5,.98,.43,1);
}
@keyframes cookie-modal-in {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 11px;
  padding-left: 0;
  color: var(--primary);
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.19s;
}
.cookie-modal .close-modal-btn:hover {
  background: var(--accent);
}
.cookie-categories {
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  padding: 8px 0;
  gap: 20px;
  border-radius: 9px;
  font-size: 1.04rem;
}
.cookie-category label {
  font-weight: 600;
  color: var(--dark-text);
}
.cookie-toggle {
  margin-left: auto;
  margin-right: 12px;
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0; bottom: 0;
  background: #d0e6d2;
  border-radius: 20px;
  transition: background 0.18s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: var(--accent);
}
.cookie-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.21s;
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(18px);
}
/* Essential cookies always enabled case */
.cookie-category.essential .cookie-toggle {
  pointer-events: none;
  opacity: 0.7;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 23px;
}
.cookie-modal .cookie-modal-actions button {
  padding: 10px 28px;
  font-size: 1rem;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 18px 3vw 13px 4vw;
    min-width: 0;
    border-radius: 12px 22px 12px 20px;
  }
  .cookie-modal h2 { font-size: 1.06rem; }
}

/* ====================
   MICRO-INTERACTIONS
   ==================== */
div.content-wrapper, .card, .feature-item, .testimonial-card {
  transition: box-shadow 0.20s, transform 0.20s, background 0.18s;
}
div.content-wrapper:hover, .card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: 0 9px 36px var(--shadow-color);
  transform: translateY(-4px) scale(1.015);
  background: #F7FBF7;
}

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==================================
   ACCESSIBILITY: COLOR CONTRAST FIXES
   ================================== */
.testimonial-card {
  background: #fff;
  color: #1f261a;
}
.testimonial-card blockquote, .testimonial-card cite {
  color: #1f261a;
}

/* ==================
   Misc Layout Spacing
   ================== */
main {
  min-height: 72vh;
}
section + section {
  margin-top: 8px;
}

/* ===============
   UTILITIES
   =============== */
.text-section {
  padding-top: 8px;
}
.text-section a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}
.text-section a:hover {
  color: var(--leaf-green);
}

/* ===============
   Print styles
   =============== */
@media print {
  header, nav, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body, html { background: #fff !important; color: #000 !important; }
  main, section, .container { box-shadow: none !important; background: #fff !important; }
}
