/* --- 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; }
*, *:before, *:after { box-sizing: inherit; }
body { min-height: 100vh; font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif; background: #F4F6F7; color: #112922; line-height: 1.6; }

img { max-width: 100%; height: auto; display: block; }
a { 
  color: #174A5A;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus { color: #387562; text-decoration: underline; }
ul, ol { margin-left: 24px; }

/* ROOT COLORS & FONTS (with fallbacks) */
:root {
  --color-primary: #174A5A;
  --color-secondary: #FFB448;
  --color-accent: #F4F6F7;
  --color-organic-green: #387562;
  --color-earth-brown: #b08f61;
  --color-earth-grey: #E2E5DD;
  --color-bg: #F4F6F7;
  --color-text: #112922;
  --color-card-bg: #fff;
  --color-shadow: rgba(30,44,35,0.10);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Source Sans Pro', Arial, Helvetica, sans-serif;
}

/* --- TYPOGRAPHY --- */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-organic-green);
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-organic-green);
  margin-bottom: 8px;
}
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 8px;
}
strong { font-weight: 700; color: var(--color-primary); }

/* TYPOGRAPHY SCALE ADJUSTMENTS FOR DESKTOP */
@media (min-width: 601px) {
  h1, .h1 { font-size: 3rem; }
  h2, .h2 { font-size: 2.4rem; }
  h3, .h3 { font-size: 1.5rem; }
  p, li   { font-size: 1.1rem; }
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
/* --- SECTION SPACING --- */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 40px 80px 30px 90px/80px 30px 90px 30px;
  box-shadow: 0 1px 8px var(--color-shadow);
  /* Organic blob shape styling */
  /* Light organic texture using bg-color variations */
  position: relative; /* For organic bg ::before if wanted */
}
section:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .section, section {
    padding: 28px 8px;
    margin-bottom: 40px;
    border-radius: 24px 48px 16px 48px/40px 16px 48px 16px;
  }
}

/* --- FLEXBOX LAYOUTS (Mandatory patterns) --- */
/* Cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-card-bg);
  border-radius: 20px 48px 16px 40px;
  box-shadow: 0 2px 14px var(--color-shadow);
  position: relative;
  transition: box-shadow .25s, background .25s, transform .18s;
  min-width: 240px;
  max-width: 370px;
  padding: 28px 22px;
  flex: 1 1 300px;
  border: 2px solid var(--color-earth-grey);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.card:hover {
  background: #f7fdee;
  box-shadow: 0 8px 32px 0 rgba(56,117,98,0.08);
  transform: translateY(-2px) scale(1.018);
  border-color: var(--color-earth-brown);
}

/* Content grid */
.content-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid > div {
  background: #fff;
  border-radius: 24px 48px 24px 48px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 30px 22px 24px 22px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 355px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .2s, background .23s;
  border: 2px solid var(--color-earth-grey);
  gap: 10px;
}
.feature-grid > div:hover {
  background: #f2f7ea;
  box-shadow: 0 6px 22px 0 rgba(56,117,98,0.10);
  border-color: var(--color-organic-green);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 32px 16px 44px 18px;
  box-shadow: 0 4px 18px var(--color-shadow);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 0;
  flex: 1 1 300px;
  border-left: 7px solid var(--color-organic-green);
  transition: box-shadow .22s, border-color .23s;
}
.testimonial-card p {
  color: #174A5A;
  font-size: 1.18rem;
  font-style: italic;
}
.testimonial-card span {
  margin-left: auto;
  font-size: 0.98rem;
  color: #4E4A2C;
  font-weight: 600;
  font-family: var(--font-display);
}
.testimonial-card:hover {
  background: #f1f6ef;
  border-color: #b08f61;
  box-shadow: 0px 6px 24px 0px rgba(56,117,98,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- BUTTONS & CTA STYLE --- */
.cta-btn, button, .button {
  display: inline-block;
  appearance: none;
  border: none;
  padding: 13px 34px;
  border-radius: 28px 60px 28px 40px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-organic-green);
  box-shadow: 0 2px 10px var(--color-shadow);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background .18s, box-shadow .22s, transform .13s;
  margin-top: 10px;
}
.cta-btn:hover, .cta-btn:focus, button:hover, .button:hover, button:focus, .button:focus {
  background: #174A5A;
  box-shadow: 0 7px 24px 0 rgba(23,74,90,0.13);
  color: #FFB448;
  outline: none;
  transform: scale(1.03) translateY(-1px);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 5px 16px 0 rgba(56,117,98,0.05);
  border-radius: 0 0 60px 0/0 0 92px 0;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 32;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
header a img {
  height: 55px;
  width: auto;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #174A5A;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background .16s, color .16s;
}
.main-nav a.active, .main-nav a:focus, .main-nav a:hover {
  background: var(--color-secondary);
  color: #174A5A;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-organic-green);
  color: #fff;
  border: none;
  border-radius: 40px;
  font-size: 2.2rem;
  width: 46px;
  height: 46px;
  justify-content: center;
  align-items: center;
  transition: background .21s, color .18s;
  z-index: 201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:active {
  background: #174A5A;
  color: #FFB448;
}
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(0.81,0.05,0.07,0.93);
  box-shadow: -2px 0 44px 0 rgba(30,44,35,0.18);
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform .38s cubic-bezier(0.81,0.05,0.07,0.93), opacity .15s;
}
.mobile-menu-close {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 18px 0 auto;
  background: var(--color-organic-green);
  color: #fff;
  border: none;
  border-radius: 36px;
  font-size: 2.1rem;
  width: 40px; height: 40px;
  cursor: pointer;
  transition: background .19s;
}
.mobile-menu-close:hover { background: var(--color-primary); color: #FFB448; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 36px 0 0 36px;
  gap: 20px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #387562;
  padding: 8px 0;
  transition: color .2s, background .16s;
  border-radius: 14px;
  width: 100%;
  font-weight: 600;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-earth-grey);
  color: var(--color-primary);
}

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

/* --- COVER ORGANIC SHAPES (Decorative, not content) --- */
.section::before, section::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: -32px;
  bottom: -20px;
  width: 200px;
  height: 90px;
  background: rgba(56,117,98,0.05);
  border-radius: 100px 40px 100px 40px;
  pointer-events: none;
  display: block;
}

/* --- LISTS WITH ICONS --- */
ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
ul li img {
  position: absolute;
  left: 0; top: 3px;
  width: 22px;
  height: 22px;
  margin-right: 8px;
}

/* --- FOOTER --- */
footer {
  background: #fff;
  border-radius: 52px 0 0 0/0 0 60px 0;
  box-shadow: 0 -3px 14px 0 rgba(56,117,98,0.04);
  margin-top: 60px;
  padding: 0 0 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 38px;
  padding: 34px 16px 12px 16px;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-family: var(--font-body);
  color: var(--color-organic-green);
  font-size: 1.05rem;
  font-weight: 600;
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--color-secondary); }
.contact-info p {
  color: #174A5A;
  font-size: 1rem;
}
.footer-logo img {
  width: 70px;
  height: auto;
  margin-top: 10px;
}

@media (max-width: 768px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav { gap: 14px; }
}

/* --- RESPONSIVE: FLEX DIRECTION ADJUST --- */
@media (max-width: 768px) {
  .content-wrapper, .section, section {
    padding: 22px 3vw;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-grid, .content-grid {
    gap: 18px;
  }
}

/* --- SPACING BETWEEN CARDS/SECTIONS (extra safety) --- */
.card, .feature-grid > div, .testimonial-card {
  margin-bottom: 20px;
}
.content-wrapper > *, .footer-nav > *, .mobile-nav > * {
  margin-bottom: 14px;
}
.content-wrapper > *:last-child, .footer-nav > *:last-child, .mobile-nav > *:last-child {
  margin-bottom: 0;
}

/* --- INTERACTIVE STATES & ANIMATIONS --- */
.card, .feature-grid > div, .testimonial-card, .cta-btn, button, .button {
  will-change: transform, box-shadow;
}
.card:active, .feature-grid > div:active, .testimonial-card:active {
  transform: scale(.992) translateY(1px);
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fffceb;
  color: #112922;
  box-shadow: 0 -2px 14px 0 rgba(56,117,98,0.13);
  z-index: 401;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 22px 16px;
  gap: 28px;
  font-family: var(--font-body);
  transition: transform .38s cubic-bezier(.58,.12,.13,.81), opacity .18s;
  border-radius: 22px 22px 0 0/32px 60px 0 0;
  opacity: 1;
  transform: translateY(0%);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(150%);
  transition: transform .4s, opacity .18s;
}
.cookie-banner .cookie-message {
  flex: 1 1 320px;
  font-size: 1rem;
  color: #112922;
  min-width: 120px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
}
.cookie-banner button {
  padding: 9px 18px;
  font-size: 1rem;
  border-radius: 18px 36px 18px 36px;
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  background: var(--color-organic-green);
  color: #fff;
  cursor: pointer;
  transition: background .14s, box-shadow .13s;
}
.cookie-banner button.cookie-settings {
  background: var(--color-secondary);
  color: #174A5A;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #174A5A;
  color: #FFB448;
}
.cookie-banner button.cookie-reject {
  background: none;
  color: #b08f61;
  border: 2px solid #b08f61;
}
.cookie-banner button.cookie-reject:hover { background: #f9ecd6; }

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px 18px 8px;
    gap: 10px;
    font-size: 0.98rem;
    border-radius: 12px 12px 0 0/28px 44px 0 0;
  }
  .cookie-banner .cookie-actions {
    flex-direction: row;
    gap: 8px;
    margin-top: 8px;
  }
}

/* ----- Cookie Modal ----- */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23,74,90,0.25);
  z-index: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity .2s;
  opacity: 1;
}
.cookie-modal-backdrop.hide { opacity: 0; pointer-events: none; }

.cookie-modal {
  background: #fff;
  border-radius: 32px 52px 24px 44px;
  box-shadow: 0 8px 44px 0 rgba(23,74,90,0.14);
  padding: 38px 32px;
  max-width: 400px;
  min-width: 270px;
  font-family: var(--font-body);
  color: #112922;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #174A5A;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal .category {
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-modal .category label {
  font-weight: 600;
  color: #387562;
  font-size: 1.05rem;
}
.cookie-modal .category input[type="checkbox"] {
  width: 20px; height: 20px;
  border-radius: 6px;
  accent-color: #387562;
}
.cookie-modal .category input[disabled] {
  accent-color: #b08f61;
  opacity: 0.6;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
}
.cookie-modal button {
  padding: 10px 19px;
  font-size: 1rem;
  border-radius: 20px 44px 20px 30px;
  border: none;
  background: var(--color-organic-green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: background .17s;
}
.cookie-modal button.cancel {
  background: #fff;
  color: #b08f61;
  border: 2px solid #b08f61;
}
.cookie-modal button.cancel:hover {
  background: #ffeecc;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #174A5A;
  color: #FFB448;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  top: 19px;
  right: 18px;
  font-size: 1.33rem;
  color: var(--color-organic-green);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal .close-modal-btn:hover, .cookie-modal .close-modal-btn:focus {
  color: #b08f61;
}
@media (max-width: 480px) {
  .cookie-modal {
    padding: 18px 7vw;
    min-width: 0;
    max-width: 96vw;
  }
}

/* --- GENERAL RESPONSIVE --- */
@media (max-width: 600px) {
  h1, .h1 {
    font-size: 1.6rem;
    margin-bottom: 11px;
  }
  h2, .h2 {
    font-size: 1.28rem;
    margin-bottom: 8px;
  }
  h3, .h3 {
    font-size: 1.08rem;
    margin-bottom: 7px;
  }
  p, li { font-size: 0.98rem; }
  .card, .feature-grid > div, .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
}
/* --- Selection --- */
::selection {
  background: #dbfae2;
  color: #15563d;
}

/* --- Miscellaneous --- */
::-webkit-scrollbar { width: 7px; background: #ededed; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #dbe6e1; border-radius: 4px; }

hr {
  border-top: 1px solid #b08f61;
  margin: 30px 0;
}

/* --- FORMS --- */
input[type="text"], input[type="email"], textarea {
  background: #fff;
  border-radius: 17px;
  border: 2px solid #d0e3dd;
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .16s;
  font-family: var(--font-body);
  color: #112922;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus {
  border-color: #387562;
  box-shadow: 0 2px 14px 0 rgba(56,117,98,0.09);
  outline: none;
}
textarea {
  min-height: 105px;
}
label {
  margin-bottom: 9px;
  color: var(--color-primary);
  font-family: var(--font-display);
}

/* --- ORGANIC THEME UTILITIES (optional for backgrounds) --- */
.bg-organic {
  background: linear-gradient(120deg, #f5f4ef 85%, #e7f3e2 100%);
}

/* --- SPECIAL: ACCESSIBILITY FOCUS VISIBLE --- */
:focus-visible {
  outline: 2px dashed #ffb448;
  outline-offset: 2px;
}

/* --- END OF FILE --- */
