/* =========================================================
   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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F9F6EE;
  color: #28301F;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #446153;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #527C6A;
  outline: none;
}
ul, ol {
  padding-left: 1.3em;
}

/* =========================================================
   VARIABLES (with fallbacks in case custom properties unsupported)
   ========================================================= */
:root {
  --color-primary: #252A34;
  --color-secondary: #446153;
  --color-accent: #C5B991;
  --color-green: #527C6A;
  --color-earth: #C2B28F;
  --color-forest: #3B5441;
  --color-bg: #F9F6EE;
  --color-section: #E6E2D3;
  --color-card: #FAF9F6;
  --color-shadow: rgba(40, 60, 40, 0.08);
  --color-header: #FFFFFF;
  --color-footer: #E6E2D3;
  --color-cta: #A2A65C;
  --color-cta-hover: #80934F;
  --color-contrast-bg: #fffde6;
  --color-text: #28301F;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 2px 12px var(--color-shadow);
}

/* Fallback for font-family; colors fallback with hardcoded codes below where appropriate */


/* =========================================================
   TYPOGRAPHY & HIERARCHY
   ========================================================= */
h1, .h1 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-forest, #3B5441);
  margin-bottom: 20px;
  letter-spacing: -1px;
  line-height: 1.17;
}
h2, .h2 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-green, #527C6A);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: var(--font-display), Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-secondary, #446153);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-secondary, #446153);
  margin-bottom: 6px;
}
p, ul, ol, blockquote, pre, li {
  font-family: var(--font-body), Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text, #28301F);
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  color: var(--color-green, #527C6A);
  background: var(--color-section, #E6E2D3);
  border-left: 4px solid var(--color-accent, #C5B991);
  padding: 20px 24px 20px 24px;
  margin: 0 0 12px 0;
  border-radius: var(--radius, 16px);
}
strong, b {
  font-weight: 700;
  color: var(--color-green, #527C6A);
}
small {
  font-size: 0.9rem;
  color: #817F6E;
}

/* Typography scale for larger devices */
@media (min-width: 650px) {
  h1, .h1 {
    font-size: 2.8rem;
  }
  h2, .h2 {
    font-size: 2rem;
  }
  h3, .h3 {
    font-size: 1.25rem;
  }
}

/* =========================================================
   BASIC LAYOUT & CONTAINERS
   ========================================================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}
.content-wrapper {
  background: transparent;
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 0;
  width: 100%;
}
.text-section {
  background: var(--color-section, #E6E2D3);
  border-radius: var(--radius, 16px);
  padding: 30px 18px 24px 18px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.map-placeholder {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-card, #FAF9F6);
  padding: 18px;
  border-radius: var(--radius);
  margin-top: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.map-placeholder img {
  width: 40px;
  height: 40px;
}

/* =========================================================
   NAVIGATION & HEADER
   ========================================================= */
header {
  background: var(--color-header, #FFFFFF);
  box-shadow: 0 2px 12px rgba(56,72,44, 0.07);
  position: relative;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 42px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 12px;
  flex-wrap: wrap;
}
nav.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-forest, #3B5441);
  padding: 8px 12px;
  border-radius: 8px;
  background: none;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
  font-weight: 500;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: var(--color-section, #E6E2D3);
  color: var(--color-green, #527C6A);
}
.mobile-menu-toggle {
  background: var(--color-green, #527C6A);
  color: #FFFFFF;
  border: none;
  font-size: 2rem;
  padding: 7px 13px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: 14px;
  transition: background 0.16s, box-shadow 0.2s;
  box-shadow: 0 1px 5px rgba(56,72,44,0.07);
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
}

@media (min-width: 900px) {
  .mobile-menu-toggle {
    display: none;
  }
}
@media (max-width: 899px) {
  nav.main-nav, .cta.primary {
    display: none;
  }
}

/***** MOBILE MENU OVERLAY *****/
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(40, 48, 31, 0.96);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.77,0,.18,1);
  /* Will be .open when visible */
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.3rem;
  align-self: flex-end;
  border: none;
  margin-right: 26px;
  margin-top: 26px;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 1;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5em;
  margin-top: 40px;
  margin-left: 38px;
  width: 80vw;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.26rem;
  font-weight: 600;
  padding: 15px 22px;
  border-radius: 10px;
  transition: background 0.12s, color 0.14s;
  margin-bottom: 7px;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-green, #527C6A);
  color: var(--color-accent, #C5B991);
  outline: none;
}

/***** DESKTOP CTA BUTTON *****/
.cta.primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-green, #527C6A);
  border: none;
  border-radius: var(--radius);
  padding: 11px 23px;
  transition: background 0.18s, box-shadow 0.22s, transform 0.13s;
  box-shadow: 0 2px 10px rgba(81,124,106,0.09);
  margin-left: 16px;
  margin-right: 0;
  cursor: pointer;
  text-decoration: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-cta-hover, #80934F);
  color: var(--color-accent, #E8D28A);
  transform: translateY(-1px) scale(1.04);
  outline: none;
}
.cta.secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-green, #527C6A);
  background: var(--color-bg, #F9F6EE);
  border: 2px solid var(--color-green, #527C6A);
  border-radius: var(--radius);
  padding: 11px 23px;
  transition: background 0.18s, color 0.22s, border-color 0.11s;
  box-shadow: 0 1px 4px rgba(60,64,40,0.04);
  margin: 28px 0 4px 0;
  cursor: pointer;
  text-decoration: none;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-green, #527C6A);
  color: #fff;
  border-color: var(--color-accent, #C5B991);
  outline: none;
}

/* =========================================================
   MAIN SECTIONING & SPACING
   ========================================================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 0;
  width: 100%;
}
@media (min-width: 800px) {
  section {
    padding: 50px 0;
    margin-bottom: 80px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card, #FAF9F6);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  min-width: 240px;
  flex: 1 1 280px;
  transition: box-shadow 0.20s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 28px rgba(81,124,106,0.14);
  transform: translateY(-3px) scale(1.017);
}

.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;
}

.feature-grid, .service-list, .events-overview, .program-list, .workshop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 38px 0 4px 0;
  justify-content: flex-start;
}
.feature-item, .service-item, .event-item, .program-item, .workshop-item {
  background: var(--color-card, #FAF9F6);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow);
  padding: 28px 20px 20px 20px;
  min-width: 250px;
  flex: 1 1 295px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.17s, transform 0.11s;
  margin-bottom: 20px;
}
.feature-item:hover, .service-item:hover, .event-item:hover, .program-item:hover, .workshop-item:hover {
  box-shadow: 0 7px 28px rgba(60,80,46,0.17);
  transform: translateY(-4px) scale(1.025);
}
.feature-item img, .service-item img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}
.service-item span {
  font-size: 0.94rem;
  color: var(--color-green, #527C6A);
  margin-top: 7px;
  font-weight: 600;
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 24px;
  border-radius: var(--radius, 16px);
  background: var(--color-contrast-bg, #fffde6);
  box-shadow: 0 2px 14px rgba(80, 110, 80, 0.10);
  max-width: 700px;
  color: var(--color-text, #28301F);
}
.testimonial-card blockquote {
  background: none;
  border: none;
  color: var(--color-text, #28301F);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 6px;
  padding: 0;
}
.testimonial-card p {
  margin: 0;
}

/* Footer */
footer {
  background: var(--color-footer, #E6E2D3);
  box-shadow: 0 -2px 12px rgba(196, 200, 180, 0.06);
}
footer section {
  padding: 34px 0 20px 0;
  margin-bottom: 0;
  background: transparent;
  border-radius: 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-forest, #3B5441);
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: underline;
  transition: color 0.18s;
  font-weight: 500;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-green, #527C6A);
  outline: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  text-align: center;
}
.footer-contact p {
  font-size: 1rem;
  color: #665b3f;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
.footer-socials {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
}
.footer-socials a img {
  width: 28px;
  height: 28px;
  display: block;
}
footer small {
  font-size: 0.92rem;
  color: #817F6E;
  margin-top: 12px;
}

/* =========================
   RESPONSIVE: FLEX DIRECTION
   ========================= */
@media (max-width: 768px) {
  .text-image-section,
  .content-grid,
  .card-container,
  .feature-grid, .service-list, .events-overview, .program-list, .workshop-list {
    flex-direction: column;
    gap: 22px;
  }
}
@media (min-width: 769px) {
  .text-image-section,
  .content-grid,
  .card-container,
  .feature-grid, .service-list, .events-overview, .program-list, .workshop-list {
    flex-direction: row;
    gap: 24px;
  }
}

/* =========================
   WHITE SPACE: SECTION + CARD SPACING (CRITICAL)
   ========================= */
section > .container, section > .container > .content-wrapper {
  margin-bottom: 0;
}
.card,
.feature-item,
.service-item,
.event-item,
.program-item,
.workshop-item,
.testimonial-card {
  margin-bottom: 20px;
}

/* =========================
   BUTTONS & INTERACTIVE
   ========================= */
button, .cta.primary, .cta.secondary {
  cursor: pointer;
  outline: none;
}
button:active, .cta:active {
  transform: scale(0.98);
}

/* =========================
   COOKIE CONSENT BANNER & MODAL
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: var(--color-forest, #3B5441);
  color: #fff;
  width: 100vw;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  padding: 30px 18px 24px 18px;
  box-shadow: 0 -4px 32px rgba(80, 110, 80, 0.12);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  animation: cookieBannerEntrance 0.7s cubic-bezier(0.54, 0.01, 0.4, 1.4);
}
@keyframes cookieBannerEntrance {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius);
  margin: 0 5px 0 0;
  border: none;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(245, 211, 110, 0.06);
  transition: background 0.13s, color 0.16s, box-shadow 0.15s;
}
.cookie-banner .accept {
  background: var(--color-accent, #C5B991);
  color: var(--color-forest, #3B5441);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-cta, #A2A65C);
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-green, #527C6A);
  border: 1px solid var(--color-green, #527C6A);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #e8e7da;
  color: #252A34;
}
.cookie-banner .settings {
  background: transparent;
  color: #fff;
  border: 1px solid var(--color-accent, #C5B991);
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-accent, #C5B991);
  color: var(--color-forest, #3B5441);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    padding: 18px 8px 14px 8px;
  }
}

.cookie-modal-backdrop {
  position: fixed;
  z-index: 4000;
  inset: 0;
  background: rgba(40, 48, 31, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieBackdropFadeIn 0.3s;
}
@keyframes cookieBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-card, #FAF9F6);
  border-radius: var(--radius-lg, 28px);
  box-shadow: 0 7px 32px rgba(81, 124, 106, 0.24);
  padding: 42px 34px 34px 34px;
  min-width: 340px;
  max-width: 98vw;
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalShow 0.7s cubic-bezier(.6,0,.42,1.32);
  position: relative;
}
@keyframes cookieModalShow {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.25rem;
  font-family: var(--font-display);
  color: var(--color-green, #527C6A);
  margin-bottom: 5px;
  margin-top: 0;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 10px;
  margin-top: 7px;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--color-green, #527C6A);
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-category {
  margin-bottom: 16px;
  background: #F2EFE6;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
}
.cookie-modal .essential {
  color: #817F6E;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 15px;
  background: none;
  color: var(--color-green,#527C6A);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .cookie-modal-close:hover {
  color: var(--color-cta, #A2A65C);
}
/* =========================
   UTILITY CLASSES FOR ORGANIC LOOK
   ========================= */
.rounded-organic {
  border-radius: 38% 62% 47% 53% / 40% 48% 52% 60%;
  box-shadow: 0 2px 15px rgba(95,110,82,0.05);
}
.organic-shadow {
  box-shadow: 0 7px 24px rgba(152, 160, 78, 0.12);
  border-radius: 22px;
}
.organic-bg {
  background: var(--color-section, #E6E2D3);
  border-radius: 32% 68% 64% 36% / 52% 42% 58% 48%;
}
/* =========================
   MISC & MARGIN UTILITY
   ========================= */
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-24 { margin-top: 24px; }
.gap-24 { gap: 24px; }
.gap-16 { gap: 16px; }
.gap-30 { gap: 30px; }

/* =========================
   MEDIA QUERIES
   ========================= */
@media (max-width: 600px) {
  h1, .h1 { font-size: 1.4rem; }
  h2, .h2 { font-size: 1.12rem; }
  .container { padding-left: 8px; padding-right: 8px; }
  .card, .feature-item, .service-item, .event-item, .program-item, .workshop-item {
    padding: 18px 10px 16px 10px;
  }
}

/* =========================
   PRINT STYLES
   ========================= */
@media print {
  header, nav, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, footer {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #111 !important;
  }
}

/* =========================
   ACCESSIBILITY
   ========================= */
:focus {
  outline: 2px solid var(--color-accent, #C5B991);
  outline-offset: 2px;
}

/* END OF STYLE.CSS FOR RetroCircu Kunstfonds */
