/* RESET & BASE ---------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
:root {
  --color-primary: #194974;
  --color-secondary: #ffffff;
  --color-accent: #FFB236;
  --color-green: #477c5b;
  --color-leaf: #578f72;
  --color-earth: #F6F4EF;
  --color-sand: #E6D9C7;
  --color-bark: #8C5D3E;
  --shadow: 0 2px 8px rgba(40,70,50,0.08);
  --radius-main: 18px;
  --radius-sm: 8px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}
body {
  font-family: var(--font-body);
  background: var(--color-earth);
  color: #23332b;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
}
img, svg {
  max-width: 100%;
  display: block;
  vertical-align: middle;
}
a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color .2s;
}
a:hover, a:focus {
  color: var(--color-leaf);
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 20px;
}
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 16px;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.22rem; color: var(--color-bark);}
.lead {
  font-size: 1.2rem;
  color: var(--color-leaf);
  margin-bottom: 20px;
}
strong { font-weight: 600; color: var(--color-green); }
em { color: var(--color-bark); }

/* LAYOUT CONTAINERS ------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 14px;
}
.content-wrapper {
  background: var(--color-secondary);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-earth);
  border-radius: var(--radius-main);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-secondary);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow);
  padding: 28px 20px 20px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(40,65,50,0.08);
  padding: 24px 24px 16px 24px;
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid var(--color-green);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-post-preview {
  background: var(--color-sand);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 20px;
  flex: 1 1 260px;
  min-width: 260px;
  margin-bottom: 20px;
  transition: box-shadow .25s, background .18s;
}
.blog-post-preview:hover {
  background: var(--color-earth);
  box-shadow: 0 4px 16px rgba(40,70,50,0.11);
}
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0 6px 0;
}
.blog-categories a {
  background: var(--color-earth);
  color: var(--color-green);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 1rem;
  transition: background .18s, color .18s;
  font-weight: 600;
  text-decoration: none;
}
.blog-categories a:hover {
  background: var(--color-green);
  color: #fff;
}

.quick-facts {
  background: var(--color-leaf);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 1rem;
  margin: 20px 0 0 0;
  box-shadow: 0 1px 7px rgba(40,70,50,0.07);
}

.text-section {
  margin-bottom: 24px;
  color: #2e4535;
  font-size: 1.06rem;
}

.faq-preview {
  background: var(--color-sand);
  border-radius: var(--radius-main);
  padding: 18px 22px;
  margin-bottom: 20px;
  color: var(--color-bark);
  box-shadow: 0 1px 7px rgba(60,110,70,0.09);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 10px;
}

/* NAVIGATION ----------------------------------------------------------- */
header {
  background: var(--color-earth);
  box-shadow: 0 2px 16px rgba(40,65,50,0.04);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0 10px 0;
  width: 100%;
}
.main-nav img {
  height: 42px;
  margin-right: 20px;
}
.main-nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  list-style: none;
}
.main-nav ul li {
  margin: 0;
}
.main-nav ul li a {
  color: var(--color-bark);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
  transition: background .18s, color .17s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: var(--color-leaf);
  color: #fff;
}
.btn-primary {
  padding: 11px 28px;
  background: var(--color-green);
  color: #fff;
  border: none;
  border-radius: 24px 18px 26px 15px;
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  box-shadow: 0 3px 15px rgba(87,143,114,0.11);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  letter-spacing: .04em;
  transition: background .2s, box-shadow .22s, transform .15s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-leaf);
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 6px 15px rgba(71,124,91,0.14);
}

/* MOBILE NAVIGATION ------------------------------------------------------ */
.mobile-menu-toggle {
  background: var(--color-leaf);
  color: #fff;
  border: none;
  border-radius: 12px;
  height: 42px;
  width: 46px;
  font-size: 2.1rem;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  cursor: pointer;
  z-index: 120;
  transition: background .18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-green);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(37, 47, 36, 0.80);
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s cubic-bezier(.44,1,.34,1);
}
.mobile-menu.active {
  pointer-events: auto;
  opacity: 1;
}
.mobile-nav {
  background: var(--color-earth);
  min-width: 250px;
  min-height: 100vh;
  padding: 40px 30px;
  box-shadow: -2px 0 18px rgba(64,78,61,0.095);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform .33s cubic-bezier(.44,1,.34,1);
}
.mobile-menu.active .mobile-nav {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: var(--color-green);
  border: none;
  font-size: 2.3rem;
  position: absolute;
  right: 28px;
  top: 18px;
  cursor: pointer;
  z-index: 130;
  transition: color .18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-primary);
}
.mobile-nav a {
  font-size: 1.13rem;
  color: var(--color-primary);
  text-decoration: none;
  padding: 12px 0;
  border-radius: 10px;
  transition: background .17s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-leaf);
  color: #fff;
}
@media (max-width: 992px) {
  .main-nav ul { gap: 10px; }
}
@media (max-width: 850px) {
  .main-nav ul { display: none !important; }
  .btn-primary { display: none !important; }
  .mobile-menu-toggle { display: flex; }
}

/* HERO ------------------------------------------------------------- */
section .container:first-child .content-wrapper {
  border-radius: 48px 18px 38px 18px;
  background: linear-gradient(86deg, var(--color-sand) 70%, var(--color-leaf) 100%);
  box-shadow: 0 8px 30px rgba(71,124,91,0.08);
  min-height: 260px;
  align-items: center;
  text-align: center;
  margin-top: 26px;
  margin-bottom: 60px;
}
section .container:first-child .content-wrapper h1 {
  color: var(--color-green);
  font-size: 2.6rem;
  margin-bottom: 15px;
  line-height: 1.08;
}
section .container:first-child .content-wrapper .lead {
  color: var(--color-bark);
  font-size: 1.22rem;
  margin-bottom: 18px;
}

/* TESTIMONIALS -------------------------------------------------------- */
.testimonial-card {
  background: var(--color-earth);
  color: #223415;
  border-left: 7px solid var(--color-accent);
  font-size: 1.10rem;
  font-style: italic;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(180,180,100,0.07);
  transition: box-shadow .18s;
}
.testimonial-card:hover {
  box-shadow: 0 5px 24px rgba(44,88,32,0.15);
}
.testimonial-card span {
  font-style: normal;
  font-weight: 600;
  color: var(--color-green);
  font-size: .99rem;
}

/* FOOTER ------------------------------------------------------------ */
footer {
  background: var(--color-bark);
  color: #ffeede;
  border-radius: 32px 32px 0 0;
  padding: 42px 0 18px 0;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-nav a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 14px;
  font-weight: 500;
  transition: background .18s, color .13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-green);
  color: #fff;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.96rem;
  margin-bottom: 10px;
}
.legal-links a {
  text-decoration: underline;
}
footer .text-section {
  text-align: left;
  font-size: 0.99rem;
  margin: 0;
}

/* COOKIE CONSENT BANNER --------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 18px;
  z-index: 2002;
  background: var(--color-earth);
  color: #232c18;
  box-shadow: 0 2px 14px rgba(71,124,91,0.15);
  border-radius: 18px;
  padding: 27px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: start;
  opacity: 1;
  transition: opacity .27s, transform .28s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(48px);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 7px;
}
.cookie-btn {
  background: var(--color-green);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  padding: 8px 21px;
  border-radius: 16px 14px 16px 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 6px;
  transition: background .16s, transform .14s;
}
.cookie-btn:hover, .cookie-btn:focus { background: var(--color-leaf); transform: translateY(-1px); }
.cookie-btn.cookie-settings {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: #ffd87c;
  color: var(--color-bark);
}

/* COOKIE MODAL -------------------------------------------- */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(48,50,26,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .20s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-sand);
  border-radius: 18px;
  min-width: 330px;
  max-width: 93vw;
  padding: 34px 28px 22px 28px;
  box-shadow: 0 6px 34px rgba(70,102,85,0.12);
  color: #232c18;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
.cookie-modal h4 {
  font-size: 1.17rem;
  color: var(--color-green);
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-weight: 500;
  margin-left: 6px;
}
.cookie-toggle {
  accent-color: var(--color-green);
  width: 22px;
  height: 22px;
}
.cookie-modal-close {
  position: absolute;
  top: 11px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--color-bark);
  font-size: 2rem;
  cursor: pointer;
  transition: color .18s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: var(--color-primary);
}

/* RESPONSIVE ----------------------------------------------------- */
@media (max-width: 992px) {
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.39rem; }
  .content-wrapper { padding: 24px 8px; }
  .section {
    padding: 30px 8px;
    margin-bottom: 34px;
  }
}
@media (max-width: 768px) {
  .container { max-width: 100%; padding: 0 6px; }
  .content-wrapper { padding: 17px 4px; gap: 13px; }
  section .container:first-child .content-wrapper {
    min-height: unset;
    padding: 18px 4px;
    border-radius: 30px 14px 23px 12px;
  }
  .card-container, .blog-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    min-width: 0;
    padding: 16px 7px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .feature-item { gap: 7px; }
  .testimonial-card { padding: 18px 8px 13px 12px; }
  .faq-preview { padding: 11px 7px; }
  .quick-facts { padding: 10px 10px; }
  .cookie-banner { padding: 21px 10px 12px 10px; font-size: 0.95rem; }
  .cookie-modal { min-width: 75vw; padding: 23px 8px 15px 8px; }
  .main-nav img { height: 34px; }
  .footer-nav { gap: 10px; }
  footer { padding: 29px 0 12px 0; }
}
@media (max-width: 400px) {
  .cookie-modal { min-width: 97vw; }
}

/* MICROINTERACTIONS ---------------------------------------------- */
.btn-primary, .cookie-btn {
  transition: background .16s, color .16s, transform .12s, box-shadow .18s;
}
.blog-post-preview {
  transition: background .2s, box-shadow .16s, transform .12s;
}
.blog-post-preview:active {
  background: var(--color-leaf);
  color: #fff;
  transform: scale(.99);
}
ul li { margin-bottom: 10px; }

/* NATURAL ACCENTS -------------------------------------------------- */
.section, .content-wrapper, .card, .testimonial-card {
  border-radius: 32px 22px 33px 15px / 22px 32px 20px 25px; /* organic shapes */
}
.card::after, .testimonial-card::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 54px;
  height: 28px;
  background: rgba(87,143,114,0.08);
  border-radius: 20px 42px 60px 26px;
  pointer-events: none;
  z-index: 0;
  display: block;
}

/* SCROLLBAR ---------------------------------------------------------- */
::-webkit-scrollbar {
  width: 9px;
  background: var(--color-earth);
}
::-webkit-scrollbar-thumb {
  background: var(--color-leaf);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-green);
}

/* FORM ELEMENTS (for contact/faq) -------------------------------------- */
input, textarea, select {
  font-family: var(--font-body);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--color-sand);
  margin-bottom: 14px;
  font-size: 1rem;
  background: #fff;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-leaf);
  box-shadow: 0 2px 7px rgba(87,143,114,0.07);
}

/* UTILITIES ------------------------------------------------------------- */
.text-center { text-align: center!important; }
.align-center { display: flex; align-items: center; justify-content: center; }
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mb-20 { margin-bottom: 20px!important; }
.gap-20 { gap: 20px!important; }

/* HIDE ALL GRID & COLUMN CSS - FLEXBOX ONLY (Enforced above) */