/* 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, 
main, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-size: 16px;
  background: #F4F3F0;
  color: #23241e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul {
  list-style: none;
}
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ""; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
a { color: inherit; text-decoration: none; transition: color 0.18s; }
img { max-width: 100%; display: block; border: 0; }

/* CUSTOM FONT LOADS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500&display=swap');

:root {
  --brand-primary: #20355B;       /* deep blue, for headlines and navigation */
  --brand-secondary: #2487CE;     /* blue accent, for highlights */
  --brand-accent: #E9F1FB;        /* pale accent, sections */
  --earth-brown: #886A47;
  --earth-beige: #F4F3F0;
  --natural-green: #3E7D4D;
  --leaf-green: #81C784;
  --gray: #4B4C46;
  --white: #fff;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --border-radius: 18px;
  --shadow-lg: 0 6px 32px rgba(60,62,38,0.09);
  --shadow-card: 0 3px 16px rgba(60,62,38,0.06);
  --transition: 0.25s cubic-bezier(.77,0,.175,1);
}

body {
  font-family: var(--font-body);
  background: var(--earth-beige);
  color: var(--gray);
}
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
/* Sections */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  position: relative;
}
@media (max-width: 768px) {
  section { padding: 24px 6px; margin-bottom: 32px; }
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.1;
}
h1 { font-size: 2.3rem; margin-bottom: 24px; }
h2 { font-size: 1.65rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }

p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 16px;
  max-width: 720px;
}

ul li, ol li { margin-bottom: 10px; line-height: 1.6; }
ol { padding-left: 22px; }
ul { padding-left: 18px; }

strong { color: var(--natural-green); font-weight: 500; }
a:hover { color: var(--natural-green); }

/* Primary CTA */
.cta.primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--natural-green);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 36px;
  border-radius: 40px;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 8px rgba(62, 125, 77, 0.1);
  margin: 16px 4px 0 0;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
  letter-spacing: .5px;
  outline: none;
}
.cta.primary:hover, .cta.primary:active,
.cta.primary:focus {
  background: var(--leaf-green);
  color: var(--white);
  box-shadow: 0 3px 24px rgba(62, 125, 77, 0.15);
  transform: translateY(-1px) scale(1.02);
}

/* FLEX SPACING LAYOUTS (MANDATORY SPECIFIC RULES) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 28px rgba(36, 135, 206, 0.10);
  transform: translateY(-3px) scale(1.012);
}
.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;
    gap: 18px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  color: var(--brand-primary);
  padding: 20px;
  border-radius: 22px;
  box-shadow: 0 2px 16px rgba(36, 135, 206, 0.09);
  margin-bottom: 20px;
  border-left: 6px solid var(--natural-green);
  min-width: 0;
  max-width: 540px;
  transition: box-shadow 0.15s;
}
.testimonial-card p {
  color: var(--brand-primary);
  font-size: 1.07rem;
  line-height: 1.7;
  margin: 0 0 6px 0;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--earth-brown);
  letter-spacing: .04em;
}
.testimonial-card:hover {
  box-shadow: 0 5px 30px rgba(36, 135, 206, 0.16);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
@media (max-width: 768px) {
  .feature-grid { flex-direction: column; gap: 20px; }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: 18px;
  padding: 24px 18px 22px 18px;
  box-shadow: 0 2px 8px rgba(36, 135, 206, 0.08);
  min-width: 220px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-item img {
  width: 40px; height: 40px;
  margin-bottom: 10px;
  background: var(--brand-accent);
  border-radius: 50%;
  padding: 7px;
}
.feature-item h3 {
  font-size: 1.13rem;
  color: var(--brand-primary);
}
.feature-item p {
  color: var(--gray);
  margin-bottom: 0;
  font-size: 1rem;
}
.feature-item:hover {
  box-shadow: 0 12px 32px rgba(62,125,77,0.15);
  transform: translateY(-2px) scale(1.012);
}

/* Content wrappers & groups */
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-highlight {
  background: var(--leaf-green);
  color: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(62,125,77,0.10);
  padding: 20px 16px;
  margin: 18px 0 18px 0;
}
.content-highlight h3 {
  color: var(--white);
  margin-bottom: 8px;
}
.category-overview {
  background: var(--brand-accent);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 18px 0 10px 0;
}
/* Lists inside category-overview */
.category-overview ul {  margin: 0; padding: 0; }
.category-overview li { font-size: 0.98rem; margin-bottom: 6px; color: var(--brand-primary); font-weight: 500; }

/* Footer */
footer {
  background: var(--earth-brown);
  color: var(--white);
  width: 100%;
  padding: 44px 0 20px 0;
  font-size: 1rem;
  margin-top: 60px;
  box-shadow: 0 -2px 12px rgba(136, 106, 71, 0.11);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}
.footer-logo img {
  height: 54px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: var(--accent);
  opacity: .93;
  font-size: 1rem;
  transition: color 0.15s, opacity 0.16s;
}
.footer-nav a:hover { color: var(--natural-green); opacity: 1; }
.footer-contact p, .footer-claim p {
  color: var(--accent);
  font-size: 0.98rem;
}
.footer-contact p a { color: var(--leaf-green); text-decoration: underline dotted; }
.footer-claim {
  margin-top: 16px; font-size: 1em;
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 24px; align-items: flex-start; }
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(36,135,206,0.03);
  padding: 0 0 0 0;
  position: relative;
  z-index: 50;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 18px 0;
  max-width: 1120px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size:1rem;
}
.main-nav a {
  color: var(--brand-primary);
  font-weight: 500;
  padding: 10px 10px;
  border-radius: 22px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.main-nav a.cta.primary { margin-left: 14px; }
.main-nav a:hover,
.main-nav a.active { background: var(--brand-accent); color: var(--natural-green); }
.main-nav img { height: 38px; margin-right: 9px; }

/* HIDE BURGER MENU BUTTON BY DEFAULT */
.mobile-menu-toggle { display: none; }

/* MOBILE NAVIGATION */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 14px;
    right: 20px;
    background: var(--natural-green);
    color: #fff;
    font-size: 2.1rem;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 7px rgba(62, 125, 77, 0.07);
    z-index: 205;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
  }
  .mobile-menu-toggle:focus,
  .mobile-menu-toggle:hover { background: var(--leaf-green); }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: var(--earth-beige);
  box-shadow: 2px 0 30px rgba(32,53,91,0.14);
  z-index: 210;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.77,0,.175,1);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--natural-green);
  cursor: pointer;
  z-index: 221;
  transition: color 0.13s;
}
.mobile-menu-close:hover { color: var(--brand-primary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 84px;
  padding-left: 34px;
}
.mobile-nav a {
  padding: 16px 0;
  font-size: 1.22rem;
  font-family: var(--font-display);
  color: var(--brand-primary);
  border-radius: 8px;
  transition: background 0.21s, color 0.15s;
  font-weight: 500;
  width: fit-content;
}
.mobile-nav a:hover,
.mobile-nav a.active { background: var(--brand-accent); color: var(--natural-green); }

/* Make sure mobile overlays properly */
.mobile-menu, .mobile-menu-close { z-index: 210 !important; }

@media (min-width: 901px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--brand-accent);
  color: var(--brand-primary);
  box-shadow: 0 -2px 18px rgba(36,135,206,0.09);
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding: 18px 8px 18px 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  animation: bannerSlideIn 0.44s cubic-bezier(.77,0,.175,1);
}
@keyframes bannerSlideIn {
    from { transform: translateY(100%); opacity: 0; }
    to {   transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p { max-width: 760px; margin: 0 10px 0 0; color: var(--gray); }
.cookie-consent-banner button {
  padding: 10px 22px;
  margin-left: 5px;
  margin-right: 0;
  border-radius: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: 0;
  outline: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 9px rgba(62,125,77,0.08);
}
.cookie-consent-banner .accept {
  background: var(--natural-green);
  color: var(--white);
}
.cookie-consent-banner .accept:hover, .cookie-consent-banner .accept:focus {
  background: var(--leaf-green);
}
.cookie-consent-banner .reject {
  background: #fff;
  color: var(--natural-green);
  border: 1px solid var(--natural-green);
}
.cookie-consent-banner .reject:hover, .cookie-consent-banner .reject:focus {
  background: var(--brand-accent);
}
.cookie-consent-banner .settings {
  background: var(--brand-secondary);
  color: #fff;
}
.cookie-consent-banner .settings:hover, .cookie-consent-banner .settings:focus {
  background: var(--brand-primary);
}

/* Cookie Popup Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(36,53,91,0.23);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active { display: flex; animation: fadeIn 0.22s cubic-bezier(.77,0,.175,1); }
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border-radius: 22px;
  max-width: 440px;
  width: 96vw;
  padding: 36px 22px 24px 22px;
  box-shadow: 0 10px 32px 0 rgba(36,135,206,0.15);
  font-family: var(--font-body);
  position: relative;
  animation: popupIn 0.21s cubic-bezier(.77,0,.175,1);
  display: flex; flex-direction: column; gap: 18px;
}
@keyframes popupIn {
  from { transform: translateY(45px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--brand-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 9px;
  font-size: 1rem;
}
.cookie-modal label {
  font-size: 1rem;
  font-family: var(--font-body);
  margin-right: 10px;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  width: 18px; height:18px;
  accent-color: var(--natural-green);
}
.cookie-modal .actions {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--natural-green);
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .close-modal:hover { color: var(--brand-primary); }

@media (max-width: 562px) {
  .cookie-modal { padding: 18px 3vw 14px 3vw; }
}

/* FORMS (if present in the future) */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid #bbb;
  margin-bottom: 18px;
  box-sizing: border-box;
  background: #fff;
  transition: border var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--natural-green);
  outline: none;
}
label { font-family: var(--font-display); font-size: 1rem; color: var(--brand-primary); }

/* IMG DECORATION, ORGANIC SHAPES */
img, .feature-item img, .footer-logo img {
  border-radius: 14px;
}

/* ORGANIC DECORATIVE TOUCHES */
section, .feature-item, .card, .testimonial-card {
  border-bottom-left-radius: 44px 32px;
  border-bottom-right-radius: 22px 24px;
}
/* Responsive adjustment for sections */
@media (max-width: 600px) {
  section, .feature-item, .card, .testimonial-card {
    border-bottom-left-radius: 24px 20px;
    border-bottom-right-radius: 14px 12px;
  }
}

/* BLOCKQUOTE FOR STORIES */
blockquote {
  border-left: 6px solid var(--natural-green);
  padding-left: 18px;
  margin: 28px 0;
  font-style: italic;
  color: var(--brand-primary);
  font-size: 1.15rem;
  background: var(--brand-accent);
  border-radius: 8px;
}

/* Small headings as accent */
h4, h5, h6 {
  color: var(--natural-green);
  font-family: var(--font-display);
}

/* Miscellaneous alignment */
.text-center { text-align: center; }
.align-right { text-align: right; }
.gap-20 { gap: 20px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }

/* Animations for micro-interactions */
.button-growing:hover, .button-growing:focus {
  box-shadow: 0 6px 24px 0 rgba(62,125,77,0.13);
  transform: scale(1.05);
}

/* Responsive typography & stacking */
@media (max-width: 520px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.11rem; }
  h3 { font-size: 1.03rem; }
  section { padding: 14px 2px; }
}

/* Ensure minimum spacing for all content cards/sections */
.card, .testimonial-card, .feature-item, section, .card-container > *, .content-grid > *, .content-wrapper > * {
  margin-bottom: 20px;
}

/* Remove extra spacing on last elements */
.card:last-child, .feature-item:last-child, .testimonial-card:last-child, section:last-child, .content-wrapper > *:last-child {margin-bottom: 0}

/* Responsive Fixes For Content Layouts */
@media (max-width: 900px) {
  .container { max-width: 98vw; }
}
@media (max-width:600px) {
  .footer-logo img { height: 38px; }
}

/* Utility - Hide on Desktop/Show on Mobile and vice versa */
.hide-mobile { display: none !important; }
@media (max-width:900px) { .hide-mobile { display: block !important; } }
.show-desktop { display: block !important; }
@media (max-width:900px) { .show-desktop { display: none !important; } }

/* Accessibility/Contrast for Testimonials */
.testimonial-card p, .testimonial-card span {
  color: #20355B !important;
  background: none;
  text-shadow: 0 1px 0 #fff, 0 -1px 6px rgba(36,135,206,0.03);
}

/* Spacing for lists in .text-section */
.text-section ul, .text-section ol { margin-bottom: 12px; padding-left: 18px; }

/* Touch target for mobile menu nav */
.mobile-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding-left: 11px;
  padding-right: 24px;
}

/* VISUAL FOCUS STATES */
:focus-visible {
  outline: 2px solid var(--natural-green);
  outline-offset: 2px;
}

::-webkit-scrollbar {width: 10px;background: #E5E6E1;}
::-webkit-scrollbar-thumb {background: var(--brand-accent); border-radius: 18px;}

/* Custom: organic shape background pseudo for hero */
section:first-of-type::before {
  content: '';
  display: block;
  position: absolute;
  top: -42px; left: -48px;
  width: 180px; height: 72px;
  background: var(--leaf-green);
  border-radius: 62% 82% 58% 84% / 75% 68% 49% 60%;
  opacity: .20;
  z-index: 1;
  pointer-events:none;
}

/* ORGANIC BUTTON EDGE DECORS */
.cta.primary {
  border-bottom-left-radius: 35px 26px;
  border-bottom-right-radius: 30px 21px;
}

/* Fix lists in features or text-section */
.feature-item ul, .text-section ul, .content-wrapper ul, .content-wrapper ol {
  padding-left: 22px;
}

/* Accessibility: Larger touch area for mobile cookie actions */
@media(max-width: 500px) {
  .cookie-consent-banner button {
    padding: 11px 9vw;
    font-size: 1.03rem;
    margin-bottom: 9px;
  }
}

/* --- END --- */