/* ====================================================== */
/* CSS RESET & BASELINE NORMALIZE                        */
/* ====================================================== */
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,
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;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #FAF8F3;
  color: #34495E;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: disc inside;
}
a {
  color: #27AE60;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #F1C40F;
  outline: none;
}

/* ====================================================== */
/* VARS (Fallbacks provided below if custom props fail)   */
/* ====================================================== */
:root {
  --primary: #34495E;
  --secondary: #27AE60;
  --accent: #F1C40F;
  --bg: #FAF8F3;
  --surface: #F5EEE3;
  --organic-brown: #8D6748;
  --organic-green: #2E7D32;
  --organic-cream: #F6F1E7;
  --success: #27AE60;
  --shadow: 0 2px 10px rgba(52, 73, 94, 0.08);
}

/* ====================================================== */
/* TYPOGRAPHY                                             */
/* ====================================================== */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #2E7D32;
  letter-spacing: -1px;
  line-height: 1.2;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #34495E;
}
strong, b {
  font-weight: 700;
}
small {
  font-size: 0.875rem;
  color: #8D6748;
}

.text-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* ====================================================== */
/* CONTAINER & LAYOUT                                     */
/* ====================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--organic-cream, #F6F1E7);
  border-radius: 30px 60px 40px 0/40px 50px 0 60px;
  box-shadow: var(--shadow);
  position: relative;
  /* subtle organic border effect */
}
main > section {
  margin-bottom: 60px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 32px 22px;
  position: relative;
  flex: 1 1 320px;
  min-width: 290px;
}
.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;
  padding: 20px;
  background: #fff;
  border-left: 6px solid var(--secondary, #27AE60);
  border-radius: 18px 34px 16px 8px/24px 32px 8px 32px;
  box-shadow: 0 2px 16px 0 rgba(46, 125, 50, 0.08);
  margin-bottom: 24px;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 2px 18px 0 rgba(39, 174, 96, 0.22);
}
.testimonial-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-left: 10px;
  font-size: 0.96rem;
  color: #34495E;
  font-family: 'Montserrat', sans-serif;
}
.testimonial-info span:last-child {
  color: var(--accent, #F1C40F);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 22px 32px 16px 8px;
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover {
  box-shadow: 0 6px 18px 0 rgba(46, 125, 50, 0.13);
  transform: translateY(-2px) scale(1.025);
}

/* Custom feature grid for .feature-grid and .category-list-grid */
.feature-grid, .category-list-grid, .advice-articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: space-between;
}
.category-item, .advice-article {
  background: #FFF;
  padding: 22px 16px;
  border-radius: 18px 24px 8px 22px/24px 16px 24px 8px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex: 1 1 220px;
  min-width: 180px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.category-item:hover, .advice-article:hover {
  box-shadow: 0 6px 17px 0 rgba(139, 102, 68, 0.14);
  transform: scale(1.017);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ====================================================== */
/* HEADER & NAVIGATION                                    */
/* ====================================================== */
header {
  background: #FFF;
  box-shadow: 0 2px 16px rgba(52, 73, 94, 0.07);
  padding: 0;
  margin-bottom: 2px;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-direction: row;
  padding: 12px 20px 12px 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 4px 10px 4px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: var(--organic-cream, #F6F1E7);
  color: var(--secondary);
}
.button-primary {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  background: linear-gradient(90deg, #27AE60, #2E7D32);
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 32px 12px 32px 16px;
  cursor: pointer;
  box-shadow: 0 1px 5px 0 rgba(52, 73, 94, 0.10);
  transition: background 0.22s, box-shadow 0.16s, transform 0.18s;
  display: inline-block;
  margin-left: 18px;
}
.button-primary:hover, .button-primary:focus {
  background: linear-gradient(90deg, #2E7D32, #27AE60);
  color: #F1C40F;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 22px 0 rgba(46, 125, 50, 0.15);
}

/* Hamburger / Mobile menu button */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--secondary);
  cursor: pointer;
  padding: 10px;
  margin-left: 18px;
  z-index: 9991;
  border-radius: 50%;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #DEF0E7;
}

/* ====================================================== */
/* MOBILE NAVIGATION OVERLAY                              */
/* ====================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,46,28,0.96);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,.07,.37,1.01);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  width: 100vw;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin: 24px 32px 0 0;
  z-index: 10001;
  transition: color 0.18s, transform 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
  transform: scale(1.11) rotate(8deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 90vw;
  max-width: 380px;
  background: #F5EEE3;
  border-radius: 0 0 34px 8px/0 0 38px 18px;
  margin-top: 16px;
  box-shadow: 0 8px 32px rgba(36,46,28,0.12);
  padding: 36px 24px;
  gap: 14px;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.18rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--organic-brown, #8D6748);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.16s, border-color 0.14s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--accent);
}

/* Hide nav & show burger on mobile */
@media (max-width: 990px) {
  header nav, .button-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 990px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ====================================================== */
/* SEARCH BAR, FORMS                                      */
/* ====================================================== */
.search-bar {
  display: flex;
  flex-direction: row;
  gap: 6px;
  margin: 30px 0;
  justify-content: center;
}
.search-bar input[type='text'] {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.04rem;
  padding: 11px 16px;
  border: 1.5px solid #D3C2A6;
  border-radius: 22px 8px 22px 14px;
  background: #FCFBF7;
  min-width: 0;
  width: 200px;
  margin-right: 8px;
  outline: none;
  transition: border 0.17s;
}
.search-bar input[type='text']:focus {
  border: 1.5px solid var(--secondary);
  background: #F3F7F6;
}
.search-bar button[type='submit'] {
  font-family: 'Montserrat', sans-serif;
  background: var(--secondary);
  color: #fff;
  padding: 10px 26px;
  border-radius: 20px 14px 20px 8px;
  border: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.16s, color 0.15s;
}
.search-bar button[type='submit']:hover,
.search-bar button[type='submit']:focus {
  background: var(--accent);
  color: var(--primary);
}

/* ====================================================== */
/* FOOTER                                                 */
/* ====================================================== */
footer {
  background: #384437;
  color: #fff;
  padding: 54px 0 26px 0;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  gap: 34px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer p, footer small {
  color: #EDE7DF;
  margin-bottom: 6px;
}
.social-media-links {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin: 8px 0 8px 0;
  align-items: center;
}
.social-media-links img {
  width: 30px;
  height: 30px;
  border-radius: 20px;
  box-shadow: 0 0 3px #34495e35;
  background: #F6F1E7;
  padding: 5px;
  transition: box-shadow 0.18s;
}
.social-media-links img:hover {
  box-shadow: 0 4px 12px #27AE6019;
  background: #fff;
}

/* ====================================================== */
/* ORGANIC SHAPES, TEXTURES (visual class accents)        */
/* ====================================================== */
.section {
  /* already includes border-radius for visual organic shape */
  /* use brush/leaf background texture only as ::before if desired */
}
.card::before, .feature-item::before {
  content: "";
  display: block;
  position: absolute;
  left: -20px; top: -16px;
  width: 60px; height: 50px;
  background: radial-gradient(ellipse at left bottom, #DEF0E7 80%, transparent 100%);
  z-index: 0;
  border-radius: 80% 60% 60% 100%;
  pointer-events: none;
}
.card, .feature-item {
  z-index: 1;
  position: relative;
}
.feature-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 0;
}

/* Highlighted categories and filters */
.category-highlight, .filter-options, .tip-highlights {
  background: #E3F7EA;
  border-radius: 22px 12px 18px 24px;
  padding: 22px 18px;
  margin: 22px 0 0 0;
  box-shadow: 0 1px 7px rgba(39,174,96,0.09);
}
.category-highlight ul, .filter-options ul, .tip-highlights ul {
  margin-top: 8px;
  padding-left: 18px;
}
.category-highlight li, .filter-options li, .tip-highlights li {
  margin-bottom: 8px;
}

/* Subtle background for map-embed */
.map-embed {
  background: #F1EBDC;
  padding: 20px 14px;
  border-radius: 16px 26px 8px 24px/18px 14px 24px 8px;
  margin: 22px 0;
  font-size: 1.04rem;
  color: #34495E;
  box-shadow: 0 0 8px #8D674812;
}

/* ====================================================== */
/* BUTTONS                                                */
/* ====================================================== */
.button-primary, .search-bar button, .cookie-banner .button, .cookie-modal .button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  background: linear-gradient(90deg, #27AE60, #2E7D32);
  color: #fff;
  border: none;
  border-radius: 32px 12px 32px 16px;
  padding: 12px 32px;
  margin: 0 6px 0 0;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 8px #2E7D3212;
  transition: background 0.2s, color 0.15s, transform 0.17s;
}
.button-primary:hover, .cookie-banner .button:hover, .cookie-modal .button:hover {
  background: linear-gradient(90deg, #2E7D32, #27AE60);
  color: var(--accent);
  transform: translateY(-1.5px) scale(1.025);
}
.button-secondary {
  background: #fff;
  color: var(--secondary);
  border: 2px solid #27AE60;
  padding: 11px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 22px 8px 22px 14px;
  transition: background 0.17s, color 0.11s, border-color 0.14s;
}
.button-secondary:hover,
.button-secondary:focus {
  background: #E3F7EA;
  border-color: #2E7D32;
  color: #2E7D32;
}

/* Inline SVG icon buttons (example for info, map, etc) */
p img[alt], .footer-nav img[alt] {
  width: 1.1em;
  height: 1.1em;
  vertical-align: middle;
  margin-right: 4px;
}

/* ====================================================== */
/* COOKIE CONSENT BANNER & MODAL                          */
/* ====================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffbea;
  color: #384437;
  border-top: 2px solid #27AE60;
  box-shadow: 0 -4px 32px #8D674810;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 22px 18px;
  z-index: 9998;
  transition: transform 0.38s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
}
.cookie-banner .button {
  font-size: 1rem;
  margin-right: 14px;
  box-shadow: 0 2px 7px #27AE6012;
}
.cookie-banner .button:last-child {
  margin-right: 0;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(52, 73, 94, 0.45);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  padding: 42px 34px 24px 34px;
  border-radius: 22px 32px 12px 30px;
  box-shadow: 0 8px 38px #34495e19;
  width: 94vw;
  max-width: 410px;
  color: #34495e;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  z-index: 1000;
  animation: modal-in 0.32s cubic-bezier(.7,1.35,.4,.87);
}
@keyframes modal-in {
  from {transform: translateY(60px) scale(0.95); opacity:0;}
  to   {transform: none; opacity:1;}
}
.cookie-modal h2 {
  margin-bottom: 10px;
  font-size: 1.38rem;
  color: #2E7D32;
}
.cookie-modal label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1.06rem;
  margin-bottom: 8px;
}
.cookie-modal .button-row {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 13px; right: 24px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #8D6748;
  cursor: pointer;
  z-index: 1100;
  transition: color 0.15s, transform 0.16s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #2E7D32;
  transform: rotate(9deg) scale(1.08);
}
.cookie-modal .cookie-category {
  background: #F5EEE3;
  padding: 14px 12px;
  border-radius: 10px;
  margin-bottom: 7px;
  font-size: 0.98rem;
  color: #34495e;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: #27AE60;
  width: 16px; height: 16px;
  margin-right: 6px;
}
.cookie-modal .cookie-category.required label {
  color: #8D6748;
  font-weight: bold;
}

/* ====================================================== */
/* RESPONSIVE DESIGN                                      */
/* ====================================================== */
@media (max-width: 1180px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; }
  .feature-grid, .category-list-grid, .advice-articles-grid {
    flex-direction: column;
  }
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.34rem; }
  
  .container { padding-left: 12px; padding-right: 12px; }
  .section { padding: 18px 8px; margin-bottom: 36px; }
  .text-section { padding: 0 2vw; }
  .feature-item, .category-item, .advice-article {
    min-width: unset;
    padding: 20px 11px;
  }
  .category-list-grid, .feature-grid, .advice-articles-grid {
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    padding: 17px 10px;
    margin-bottom: 12px;
  }
  .testimonial-info { margin-left: 0; align-items: flex-start; }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .footer-nav { flex-direction: row; gap: 10px; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.34rem; }
  h2 { font-size: 1.06rem; }
  .container { padding-left: 4px; padding-right: 4px; }
  footer {
    padding: 24px 0 12px 0;
  }
}

/* ====================================================== */
/* MISCELLANEOUS / UTILS                                  */
/* ====================================================== */
::-webkit-selection        { background:#E3F7EA; color:#34495E; }
::selection               { background:#E3F7EA; color:#34495E; }
::-webkit-scrollbar       { width:6px; background:#F6F1E7; }
::-webkit-scrollbar-thumb { background:#B3C9B5; border-radius: 4px; }

[tabindex]:focus,
input:focus,
select:focus,
button:focus,
textarea:focus {
  outline: 2px solid #27AE60;
  outline-offset: 1px;
}

/* Card fix: never use absolute for layout, only for visual decoration */
.card, .feature-item, .category-item, .advice-article {
  position: relative;
  z-index: 1;
}

/* For headers on top of hero backgrounds */
main > section:first-child {
  background: #DEF0E7;
  border-radius: 0 0 48px 22px / 0 0 44px 40px;
  box-shadow: 0 2px 18px rgba(46,125,50,0.10);
}

/* Prevent overlap */
.card + .card, .testimonial-card + .testimonial-card, .feature-item + .feature-item {
  margin-left: 0;
  margin-top: 20px;
}

/* Fix min height for full page sections */
main > section {
  min-height: 180px;
}

/* =================== END OF CSS ======================= */
