/* --- CSS RESET & 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,
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;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #243821;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
ul, ol {
  list-style: none;
}
a {
  color: #215732;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #8c7900;
  outline: none;
  text-decoration: underline;
}

strong {
  font-weight: 700;
}

/* ------ BRAND COLORS AS CUSTOM PROPERTIES ------ */
:root {
  --brand-primary: #215732;
  --brand-secondary: #E1EDE2;
  --brand-accent: #B29E4A;
  --brand-accent-alt: #8c7900;
  --brand-bg: #fff;
  --brand-dark: #243821;
  --brand-neutral: #f7f4ec;
  --brand-shadow: 0 4px 16px rgba(33,87,50,0.07), 0 1.5px 6px rgba(178,158,74,0.08);
  --brand-radius: 18px;
}

/* ------------ TYPOGRAPHY ------------ */
body, html {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--brand-dark);
}
h1, .h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--brand-primary);
  line-height: 1.1;
}
h2, .h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.75rem;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--brand-accent-alt);
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 10px;
}
p, li, blockquote {
  font-size: 1rem;
  color: #2e4323;
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.15rem;
  color: #3f5436;
  margin-bottom: 18px;
  font-weight: 400;
  letter-spacing: 0.03em;
}
blockquote {
  margin: 20px 0 12px 0;
  font-size: 1.1rem;
  padding: 18px 24px;
  background: var(--brand-secondary);
  border-left: 6px solid var(--brand-primary);
  border-radius: var(--brand-radius);
  font-family: 'Merriweather', serif;
  color: #544c25;
}

/* Typography scaling on larger screens */
@media (min-width: 640px) {
  h1, .h1 { font-size: 2.8rem; }
  h2, .h2 { font-size: 2.1rem; }
  h3, .h3 { font-size: 1.4rem; }
  p, li, blockquote { font-size: 1.07rem; }
}
@media (min-width: 1024px) {
  h1, .h1 { font-size: 3.125rem; }
  h2, .h2 { font-size: 2.3rem; }
  p, li, blockquote { font-size: 1.14rem; }
}

/* ------------- LAYOUT HELPERS ------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------- HEADER & NAVIGATION --------- */
header {
  background: var(--brand-secondary);
  box-shadow: 0 2px 10px rgba(33,87,50,.08);
  border-bottom-left-radius: var(--brand-radius);
  border-bottom-right-radius: var(--brand-radius);
  margin-bottom: 24px;
  position: sticky;
  z-index: 100;
  top: 0;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px 0;
}
nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-left: 24px;
}
nav > ul li {
  list-style: none;
}
nav > ul li a {
  font-size: 1rem;
  color: var(--brand-primary);
  padding: 8px 16px;
  border-radius: 32px;
  transition: background .16s, color .16s;
  font-weight: 500;
}
nav > ul li a:hover, nav > ul li a:focus, nav > ul li a.active {
  background: var(--brand-accent);
  color: #fff;
}
nav > a.cta-button {
  margin-left: 30px;
  background: var(--brand-accent-alt);
  color: #fff;
  padding: 10px 28px;
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 36px;
  box-shadow: 0 2px 10px rgba(178,158,74,0.08);
  transition: background .2s, box-shadow .2s, color .2s;
  border: none;
  display: inline-block;
  cursor: pointer;
  letter-spacing: .01em;
}
nav > a.cta-button:hover, nav > a.cta-button:focus {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(33,87,50,0.14); 
}
nav > a.cta-button:active {
  background: #786900;
}

header img {
  height: 44px;
  width: auto;
  border-radius: 0; 
}

/* ------------- MOBILE NAV -------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-primary);
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 16px;
  font-size: 1.6rem;
  box-shadow: 0 2.5px 12px rgba(33,87,50,0.13);
  margin-left: auto;
  cursor: pointer;
  z-index: 102;
  transition: background .2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-accent-alt);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.6,.2,.25,1);
  display: flex;
  flex-direction: column;
  padding: 26px 22px 30px 22px;
  box-shadow: 0 7px 32px rgba(33,87,50,0.16);
  border-top-left-radius: var(--brand-radius);
  border-bottom-left-radius: var(--brand-radius);
  min-width: 60vw;
  max-width: 96vw;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  padding: 8px 14px;
  background: #f4edd9;
  color: var(--brand-primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 18px;
  transition: background .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}
.mobile-nav a {
  padding: 13px 0 13px 5px;
  font-size: 1.17rem;
  border-radius: 17px;
  color: var(--brand-primary);
  letter-spacing: .02em;
  font-weight: 600;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: #fff;
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 900px) {
  nav > ul, nav > a.cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  nav {
    flex: 1 1 100%;
  }
  header img {
    max-height: 40px;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ----------- HERO SECTION ----------- */
.hero {
  background: linear-gradient(90deg, #FFEAC3 0%, #E1EDE2 90%);
  min-height: 260px;
  padding: 46px 0 26px 0;
  border-bottom-left-radius: var(--brand-radius);
  border-bottom-right-radius: var(--brand-radius);
  box-shadow: 0 6px 38px rgba(178,158,74,0.12);
  margin-bottom: 36px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--brand-primary);
}

/* ---------- FEATURE GRID & CARDS ---------- */
.features, .feature-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.feature-grid {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}
.feature {
  background: var(--brand-secondary);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow);
  flex: 1 1 220px;
  min-width: 215px;
  max-width: 310px;
  padding: 26px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: transform .15s, box-shadow .18s;
}
.feature img {
  height: 38px;
  margin-bottom: 16px;
  border-radius: 0; /* icon style */
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 9px 24px rgba(33,87,50,0.16);
  transform: translateY(-3px) scale(1.03);
}

/* ---------- ABOUT / VALUES PREVIEW ---------- */
.about-preview .text-section,
.about .text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-preview ul, .about ul {
  padding-left: 18px;
  margin-bottom: 12px;
}
.about-preview ul li, .about ul li {
  margin-bottom: 6px;
  list-style: disc outside;
}
.about-preview a,
.about-preview a:visited {
  background: var(--brand-accent-alt);
  color: #fff;
  padding: 8px 22px;
  font-weight: 600;
  border-radius: 30px;
  transition: background .15s, color .15s;
  box-shadow: 0 2px 8px rgba(178,158,74,0.06);
  display: inline-block;
}
.about-preview a:hover, .about-preview a:focus {
  background: var(--brand-primary);
  color: #fff;
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 26px;
}
.values-grid > div {
  background: var(--brand-neutral);
  border-radius: var(--brand-radius);
  padding: 22px 18px;
  box-shadow: 0 3px 12px rgba(33,87,50,0.06);
  flex: 1 1 210px;
  min-width: 178px;
  max-width: 305px;
  margin-bottom: 6px;
}
.values-grid .quotes {
  flex: 1 1 100%;
  max-width: 100%;
  background: var(--brand-accent);
  color: #fff;
  font-weight: 500;
  font-style: italic;
  border-left: 6px solid var(--brand-primary);
  margin-top: 6px;
}
.values-grid .quotes blockquote {
  background: none;
  color: #fff;
  border-radius: 0;
  border-left: none;
  padding: 8px 0;
}
.team-highlight {
  background: var(--brand-secondary);
  border-radius: var(--brand-radius);
  box-shadow: 0 2px 10px rgba(178,158,74,0.05);
  padding: 16px 14px;
}

/* ---------- SERVICES SECTION ---------- */
.services-list, .service-snippets {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
}
.service {
  background: var(--brand-secondary);
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow);
  padding: 24px 16px 18px 16px;
  flex: 1 1 215px;
  min-width: 205px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow .16s, transform .14s;
}
.service img {
  height: 38px;
  margin-bottom: 14px;
  border-radius: 0; /* icon style */
}
.service:hover, .service:focus-within {
  box-shadow: 0 13px 32px rgba(138,120,30,0.21);
  transform: translateY(-2px) scale(1.03);
}

/**** CTA SECTION ****/
.cta {
  background: var(--brand-primary);
  color: #fff;
  border-radius: var(--brand-radius);
  padding: 48px 16px 42px 16px;
  box-shadow: 0 6px 22px rgba(33,87,50,0.16);
  margin-bottom: 0;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: #f8f7ec;
  margin-bottom: 14px;
}
.cta-button {
  background: var(--brand-accent-alt);
  color: #fff;
  padding: 12px 32px;
  border-radius: 38px;
  font-family: 'Merriweather', serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: none;
  margin-top: 16px;
  box-shadow: 0 3px 16px rgba(33,87,50,0.09);
  cursor: pointer;
  transition: background .17s, transform .17s, box-shadow .19s;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  transform: scale(1.08);
}
.cta-link {
  font-weight: 600;
  color: var(--brand-accent-alt);
  margin-top: 14px;
  transition: color .16s;
  display: inline-block;
}
.cta-link:hover, .cta-link:focus {
  color: var(--brand-primary);
}

/* ----------- TESTIMONIALS / SLIDER ----------- */
.testimonials-preview .testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 16px 0;
}
.testimonial-card {
  background: #fffbe7;
  border-radius: var(--brand-radius);
  box-shadow: 0 5px 22px rgba(178,158,74,0.09);
  padding: 26px 22px;
  max-width: 390px;
  min-width: 240px;
  flex: 1 1 280px;
  color: #322b1a;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1.5px solid var(--brand-secondary);
  transition: box-shadow .12s, transform .11s;
}
.testimonial-card p {
  color: #3f3621;
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-size: 1.05rem;
}
.testimonial-card div {
  color: #75631C;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 4px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 14px 44px rgba(138,120,30,0.13);
  transform: scale(1.03) translateY(-2px);
}

/* ----------- POLICY / TEXT CONTENT ---------- */
.policy .text-section ,
.policy ul, .policy p,
.policy h2 {
  margin-bottom: 18px;
  color: #255032;
}
.policy ul {
  padding-left: 20px;
  list-style: disc outside;
  margin-bottom: 24px;
}
.policy li {
  margin-bottom: 8px;
  color: #243821;
}
.policy h2 {
  color: var(--brand-accent-alt);
}

/* ----------- NEWS SECTION ----------- */
.news-list ul {
  padding-left: 16px;
  margin-bottom: 8px;
  list-style: disc;
}
.news-list li {
  margin-bottom: 8px;
  color: #243821;
}
.event-teaser, .articles-preview {
  margin: 16px 0 0 0;
  background: var(--brand-neutral);
  border-radius: 13px;
  padding: 14px 14px 14px 18px;
}
.event-teaser h3, .articles-preview h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--brand-primary);
}
.event-teaser ul {
  margin-bottom: 0;
}

/* --------- REGION/PARTNERSHIP/COMMUNITY --------- */
.region ul, .partnerships ul {
  padding-left: 18px;
  margin-bottom: 16px;
}
.region ul li, .partnerships ul li {
  list-style: circle;
  margin-bottom: 8px;
}
.community-involvement, .project-examples {
  background: var(--brand-neutral);
  border-radius: var(--brand-radius);
  padding: 15px 14px 20px 18px;
  box-shadow: 0 2px 10px rgba(33,87,50,0.09);
}

/* ----------- CONTACT & THANK YOU ----------- */
.contact .address-block, .contact .opening-hours {
  background: var(--brand-neutral);
  border-radius: 9px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 1.04rem;
  font-weight: 500;
}
.phone-email-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
}
.phone-email-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-secondary);
  border-radius: 7px;
  padding: 8px 14px;
  font-weight: 600;
}
.phone-email-list img {
  height: 24px;
  border-radius: 0;
}
.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: var(--brand-secondary);
  border-radius: var(--brand-radius);
  box-shadow: 0 5px 20px rgba(33,87,50,0.10);
  margin: 50px auto 0 auto;
  padding: 50px 10px 50px 10px;
  max-width: 600px;
}
.confirmation-message {
  background: var(--brand-neutral);
  border-radius: 8px;
  padding: 18px 16px;
  font-size: 1.1rem;
  margin-bottom: 17px;
  color: #322b1a;
}
.next-steps ul {
  padding-left: 16px;
  list-style: disc outside;
}
.next-steps li {
  margin-bottom: 6px;
}

/* ----------- FOOTER ----------- */
footer {
  background: var(--brand-secondary);
  border-top-left-radius: var(--brand-radius);
  border-top-right-radius: var(--brand-radius);
  box-shadow: 0 -3px 12px rgba(178,158,74,0.04);
  margin-top: 42px;
  padding-top: 24px;
  padding-bottom: 22px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
}
footer img {
  height: 48px;
  width: auto;
  border-radius: 0;
}
footer nav {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 0;
}
footer nav a {
  color: var(--brand-primary);
  font-size: 1rem;
  border-radius: 22px;
  padding: 6px 14px;
  transition: background .16s, color .17s;
  font-weight: 500;
}
footer nav a:hover, footer nav a:focus {
  background: var(--brand-accent);
  color: #fff;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.social-links img {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: #fff5d0;
  box-shadow: 0 2px 8px rgba(178,158,74,0.07);
  transition: box-shadow .14s, background .18s;
}
.social-links img:hover, .social-links img:focus {
  background: var(--brand-accent);
  box-shadow: 0 6px 18px rgba(178,158,74,0.18);
}
.footer-contact {
  font-size: 1.01rem;
  color: #2e4323;
  background: var(--brand-neutral);
  border-radius: 9px;
  padding: 13px 16px;
  margin-top: 9px;
}

/* -------------- RESPONSIVE DESIGN -------------- */
@media (max-width: 1000px) {
  .container { max-width: 92vw; }
}
@media (max-width: 850px) {
  .footer .content-wrapper, .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 780px) {
  .feature-grid, .values-grid, .content-grid, .services-list, .service-snippets {
    flex-direction: column;
    gap: 18px;
  }
  .feature, .service, .values-grid > div {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card-container, .content-grid, .testimonials-slider {
    flex-direction: column;
    gap: 18px;
  }
  .hero, .cta {
    padding-left: 0;
    padding-right: 0;
  }
  header, footer {
    border-radius: 0 0 var(--brand-radius) var(--brand-radius);
  }
  .confirmation {
    margin-top: 22px;
    padding: 30px 6px;
  }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  h1, .h1 { font-size: 1.62rem; }
  h2, .h2 { font-size: 1.32rem; }
  h3, .h3 { font-size: 1.09rem; }
  .hero { min-height: 120px; padding: 26px 0 17px 0; }
  .section { padding: 22px 7px; margin-bottom: 32px; }
  .cta { padding: 26px 8px 26px 8px; }
}

/* ------------- ANIMATIONS & MICRO-INTERACTIONS -------------- */
.card, .feature, .service, .testimonial-card, .values-grid > div, .cta, .confirmation {
  transition: box-shadow 0.16s, transform 0.13s;
}
.card:hover, .feature:hover, .service:hover, .testimonial-card:hover, .values-grid > div:hover {
  box-shadow: 0 11px 28px rgba(33,87,50,0.12), 0 2px 8px rgba(178,158,74,0.09);
  transform: translateY(-3px) scale(1.03);
}
.card:focus-within, .feature:focus-within, .service:focus-within, .testimonial-card:focus-within, .values-grid > div:focus-within {
  outline: 2px solid var(--brand-accent);
}
a, button, .cta-button {
  transition: background .15s, color .13s, box-shadow .14s, transform .17s;
}

/* -------------- COOKIE CONSENT BANNER -------------- */
.cookie-consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 18px;
  background: #fffbe7;
  color: #553F14;
  box-shadow: 0 5px 22px rgba(178,158,74,0.19), 0 2px 8px rgba(33,87,50,0.07);
  border-radius: 17px;
  padding: 22px 19px 22px 26px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeinBanner .6s;
}
@keyframes fadeinBanner {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-message {
  flex: 1 1 250px;
  font-size: 1.06rem;
  color: #77670a;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex: 0 0 auto;
}
.cookie-actions button {
  padding: 8px 22px;
  border-radius: 20px;
  font-family: 'Merriweather', serif;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .14s;
}
.cookie-accept {
  background: var(--brand-accent-alt);
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: var(--brand-primary);
  color: #fff;
}
.cookie-reject {
  background: #efe7c1;
  color: var(--brand-accent-alt);
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #ccb973;
  color: #fff;
}
.cookie-settings {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-settings:hover, .cookie-settings:focus {
  background: var(--brand-accent);
  color: #fff;
}

@media (max-width: 720px) {
  .cookie-consent {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    left: 6px; right: 6px;
    font-size: 0.98rem;
  }
  .cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ---- Cookie Preference Modal ---- */
#cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45,62,41,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalfade .5s;
}
@keyframes modalfade {
  from { opacity: 0; }
  to { opacity: 1; }
}
#cookie-modal {
  background: #fffbe7;
  border-radius: 21px;
  box-shadow: 0 16px 48px rgba(178,158,74,0.19), 0 4px 20px rgba(33,87,50,0.11);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 34px 28px 24px 28px;
  min-width: 320px;
  max-width: 94vw;
  animation: modaldrop .53s;
}
@keyframes modaldrop {
  from {transform: translateY(-45px); opacity: 0;}
  to {transform: none; opacity: 1;}
}
#cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--brand-primary);
}
#cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: var(--brand-secondary);
  border-radius: 13px;
  padding: 13px 12px;
}
.cookie-category input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-accent-alt);
  margin-right: 8px;
}
.cookie-category label {
  flex: 1 1 auto;
  font-size: 1.04rem;
  color: #3d3d25;
  font-weight: 500;
}
.cookie-category .category-desc {
  font-size: .94rem;
  color: #7b7535;
  margin-left: 10px;
  max-width: 360px;
  font-weight: 400;
}
.cookie-actions-modal {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-actions-modal button {
  padding: 9px 24px;
  border-radius: 18px;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  border: none;
  font-size: 1.02rem;
  cursor: pointer;
}
.cookie-actions-modal .cookie-save {
  background: var(--brand-accent-alt);
  color: #fff;
}
.cookie-actions-modal .cookie-cancel {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-actions-modal .cookie-save:hover, .cookie-actions-modal .cookie-save:focus {
  background: var(--brand-primary);
}
.cookie-actions-modal .cookie-cancel:hover, .cookie-actions-modal .cookie-cancel:focus {
  background: var(--brand-accent);
  color: #fff;
}

@media (max-width: 520px) {
  #cookie-modal {
    min-width: 0;
    padding: 16px 6px 12px 10px;
  }
}

/* --------- UTILITY CLASSES & ACCESSIBILITY --------- */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
::selection {
  background: #fae7b5;
  color: var(--brand-primary);
}

/* ------------ ENSURE FLEXBOX EVERYWHERE ------------ */
.section,
.card-container,
.card,
.content-grid,
.text-image-section,
.testimonial-card,
.feature-item,
.content-wrapper,
.features,
.feature-grid,
.values-grid,
.services-list,
.service-snippets,
.testimonials-slider,
footer .content-wrapper,
.phone-email-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.section,
.card,
.content-wrapper,
.text-image-section,
.card-content,
.testimonial-card,
.feature-item {
  flex-direction: column;
}

@media (max-width: 768px) {
  .section,
  .card-container,
  .card,
  .content-grid,
  .text-image-section,
  .testimonial-card,
  .feature-item,
  .content-wrapper,
  .features,
  .feature-grid,
  .values-grid,
  .services-list,
  .service-snippets,
  .testimonials-slider,
  footer .content-wrapper,
  .phone-email-list {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/****** ENSURE MINIMUM 20px SPACING BETWEEN ALL CARDS/SECTIONS ******/
.section + .section,
.card + .card,
.feature + .feature,
.service + .service,
.testimonial-card + .testimonial-card,
.values-grid > div + div,
.footer-contact,
.content-wrapper > * + * {
  margin-top: 20px;
}

/****** PREVENT OVERLAPPING: Adequate margin/padding ********/
.section, .card, .feature, .service, .testimonial-card, .values-grid > div, .team-highlight, .community-involvement, .project-examples, .event-teaser, .articles-preview, .footer-contact, .about-preview .text-section, .about .text-section {
  margin-bottom: 20px;
}

/* Remove outline from content cards (decorative only) but keep for buttons/links */
.card, .feature, .service, .testimonial-card, .values-grid > div {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--brand-accent-alt);
  outline-offset: 2px;
}

/**** HIDE JS-UNENHANCED MODALS/OVERLAYS INITIALLY BY DEFAULT ****/
.mobile-menu,
#cookie-modal-overlay {
  display: none;
}

