/* ============================
   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, 
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 {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #191919;
  background-color: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
input, textarea, button, select {
  font-family: inherit;
  font-size: 100%;
  border-radius: 0;
}
button:focus, input:focus, textarea:focus {
  outline: 2px solid #191919;
  outline-offset: 2px;
}

/* =====================
   COLOR VARIABLES
===================== */
:root {
  --brand-primary: #191919;
  --brand-secondary: #444;
  --brand-accent: #fff;
  --brand-accent-muted: #f6f6f1;
  --brand-highlight: #2a2c2b;
  --brand-grey: #e5e5e5;
  --brand-border: #dedede;
  --brand-shadow: rgba(20,20,20,0.10);
}

/* ==========================
   TYPOGRAPHY (Hierarchy)
========================== */
h1, .h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 16px;
}
h2, .h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
h3, .h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 7px;
}
h4, .h4 {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: 6px;
}
p, ul, ol, li, label, input, textarea, select, small {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--brand-secondary);
  font-size: 1rem;
}
p {
  margin-bottom: 18px;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 20px;
}
strong, b {
  font-weight: 700;
  color: var(--brand-primary);
}
small {
  font-size: 0.87em;
  opacity: .87;
}

/* ========================
   LAYOUT AND SPACING PATTERNS
======================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--brand-accent);
  box-shadow: 0 4px 16px var(--brand-shadow);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow .2s cubic-bezier(.42,0,.58,1);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(20,20,20,0.19);
}
.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;
  background: var(--brand-accent);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--brand-shadow);
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--brand-primary);
  flex-direction: column;
}
.testimonial-card p {
  color: var(--brand-primary);
  font-style: italic;
  margin-bottom: 10px;
}
.testimonial-card strong {
  font-weight: 700;
  font-size: 1em;
  color: var(--brand-secondary);
  margin-top: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FLAT LISTS FOR ICON-FEATURES, SERVICES ETC. */
.features ul, .services ul, .about ul, .workshop-list ul, .benefits ul, .newsletter-details ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.features li, .services ul li, .about ul li, .workshop-list ul li, .benefits ul li, .newsletter-details ul li {
  flex: 1 1 220px;
  min-width: 200px;
  background: var(--brand-accent-muted);
  border-radius: 10px;
  box-shadow: 0 1px 7px var(--brand-shadow);
  padding: 18px 16px;
  margin-bottom: 14px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  transition: box-shadow .18s;
}
.features li:hover,.services ul li:hover,.workshop-list ul li:hover {
  box-shadow: 0 3px 18px rgba(0,0,0,0.15);
}
.features li img {
  margin-bottom: 8px;
  width: 28px;
  height: 28px;
}
.services ul span {
  color: var(--brand-secondary);
  font-style: italic;
  font-size: 1em;
  margin: 7px 0 6px 0;
}

/* =====================
   HEADER/NAVIGATION
===================== */
header {
  background: var(--brand-accent);
  border-bottom: 1px solid var(--brand-grey);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 120;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 14px 0;
}
nav > a > img {
  width: 156px;
  height: auto;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0 8px;
  padding: 0;
}
nav ul li a {
  color: var(--brand-primary);
  font-family: 'Merriweather', serif;
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  transition: color .14s;
  padding: 6px 10px;
  border-radius: 5px;
}
nav ul li a:hover, nav ul li a.active {
  color: var(--brand-secondary);
  background: var(--brand-accent-muted);
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  background: var(--brand-primary);
  color: var(--brand-accent);
  font-family: 'Merriweather', serif;
  font-size: 1.12rem;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  box-shadow: 0 2px 10px var(--brand-shadow);
  cursor: pointer;
  margin-left: 14px;
  transition: background .16s, color .16s, transform .16s;
  letter-spacing: 0.01em;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  transform: translateY(-1px) scale(1.02);
}
.cta-secondary {
  display: inline-flex;
  align-items: center;
  background: none;
  color: var(--brand-primary);
  font-family: 'Merriweather', serif;
  border: 1px solid var(--brand-primary);
  border-radius: 28px;
  padding: 8px 22px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .16s, color .16s;
  margin-top: 12px;
  margin-bottom: 12px;
}
.cta-secondary:hover {
  background: var(--brand-accent-muted);
}

/* ===================
  MOBILE NAVIGATION
=================== */
.mobile-menu-toggle {
  display: none;
  background: var(--brand-primary);
  color: var(--brand-accent);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2.2rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1101;
  transition: background .15s;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: rgba(24,24,24,.97);
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  z-index: 1200;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(0.68,-0.55,0.27,1.55);
  padding: 40px 24px 24px 24px;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2.2rem;
  margin-left: auto;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--brand-shadow);
  transition: background .14s;
  z-index: 1202;
  display: flex;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-secondary);
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  color: var(--brand-accent);
  font-size: 1.24rem;
  border-radius: 8px;
  padding: 13px 10px;
  background: rgba(255,255,255,0.02);
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: var(--brand-primary);
}

/* Hide desktop nav on mobile, show burger menu */
@media (max-width: 1024px) {
  nav ul,
  nav .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =============
   HERO SECTION
================ */
.hero {
  background: linear-gradient(124deg, var(--brand-accent) 82%, var(--brand-grey) 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--brand-grey);
}
.hero .container {
  padding-top: 32px; padding-bottom: 32px;
}
.hero h1 {
  font-size: 2.2rem;
}
.hero p {
  font-size: 1.18rem;
  color: var(--brand-secondary);
  margin-bottom: 20px;
}
.hero .cta-primary {
  margin-top: 8px;
}

/* ================
   SPECIAL SECTIONS
================== */
.newsletter-teaser, .contact-teaser, .newsletter-details, .signup-form, .contact-form {
  background: var(--brand-accent-muted);
  border-radius: 18px;
  box-shadow: 0 2px 14px var(--brand-shadow);
  margin-bottom: 62px;
  padding: 36px 26px;
}

.articles-list .articles-grid, .articles-teaser ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  margin: 18px 0;
}
.articles-list .articles-grid > div, .articles-teaser ul li {
  background: var(--brand-accent);
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--brand-shadow);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 240px;
}
.articles-teaser ul {
  list-style: none;
  padding: 0;
}
.articles-teaser ul li a {
  color: var(--brand-primary);
  border-bottom: 1px dotted var(--brand-secondary);
  font-weight: 500;
  transition: color .15s, border .18s;
}
.articles-teaser ul li a:hover {
  color: var(--brand-secondary);
  border-bottom: 2px solid var(--brand-primary);
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.filter-section label {
  font-weight: 700;
  color: var(--brand-primary);
}
.filter-section select, .filter-section input[type='search'] {
  padding: 8px 12px;
  border: 1px solid var(--brand-border);
  border-radius: 7px;
  font-size: .98rem;
  background: var(--brand-accent);
  color: var(--brand-secondary);
  transition: border .13s;
}
.filter-section input[type='search']:focus {
  border-color: var(--brand-secondary);
}

/* ================
   FORMS & INPUTS
================== */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 6px;
}
input[type=email], input[type=text], input[type=search], textarea {
  background: var(--brand-accent);
  border: 1px solid var(--brand-border);
  border-radius: 6px;
  font-size: 1rem;
  padding: 11px 15px;
  color: var(--brand-primary);
  transition: border .16s;
}
textarea {
  min-height: 110px;
}
input[type=email]:focus,
input[type=text]:focus,
input[type=search]:focus,
textarea:focus {
  border: 1.5px solid var(--brand-primary);
  background: #f9f9f9;
}
button[type=submit], .newsletter-teaser button, form button {
  background: var(--brand-primary);
  color: var(--brand-accent);
  font-family: 'Merriweather', serif;
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  border-radius: 28px;
  padding: 9px 34px;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 2px 9px var(--brand-shadow);
  transition: background .17s, color .17s, transform .14s;
}
button[type=submit]:hover, .newsletter-teaser button:hover, form button:hover {
  background: var(--brand-secondary);
  color: var(--brand-primary);
  transform: translateY(-0.5px) scale(1.012);
}
input[type=checkbox] {
  margin-right: 7px;
}

/* Contact block icons alignment */
.address-block, .phone-block, .email-block, .opening-hours {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.address-block img, .phone-block img, .email-block img, .opening-hours img {
  width: 26px;
}

/* ====================
   FOOTER
==================== */
footer {
  background: var(--brand-highlight);
  color: var(--brand-accent);
  padding: 34px 0 0 0;
  border-top: 1px solid var(--brand-grey);
}
footer .container {
  padding-bottom: 18px;
}
.footer-contact, .footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-contact img {
  width: 60px; height: auto;
  margin-bottom: 12px;
}
.footer-links {
  gap: 10px;
  margin-top: 7px;
}
.footer-links a {
  color: var(--brand-accent);
  text-decoration: underline;
  font-size: .99rem;
  opacity: 0.82;
  transition: color .13s, opacity .13s;
}
.footer-links a:hover {
  color: var(--brand-secondary);
  opacity: 1;
}
.footer-social {
  gap: 8px;
  margin-top: 8px;
}
.footer-social a img {
  width: 26px;
  opacity: .82;
  filter: grayscale(0.18);
  transition: filter .13s, opacity .13s;
}
.footer-social a:hover img {
  opacity: 1;
  filter: grayscale(0);
}
.footer-links, .footer-social {
  margin-bottom: 14px;
}
.footer-contact p {
  color: var(--brand-accent);
  opacity: .85;
  font-size: 1rem;
}

/* ===============
  COOKIE CONSENT
================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1400;
  background: #fff;
  border-top: 1px solid var(--brand-grey);
  box-shadow: 0 -2px 24px rgba(0,0,0,0.10);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  font-size: 1.02rem;
  color: var(--brand-secondary);
  animation: slideUp .42s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp {
  0%{transform: translateY(100%); opacity:0;}
  100%{transform: translateY(0); opacity:1;}
}
.cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.cookie-banner button {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 26px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 8px 22px;
  margin-left: 0px;
  cursor: pointer;
  box-shadow: 0 1px 6px var(--brand-shadow);
  transition: background .14s, color .14s;
}
.cookie-banner button.cookie-settings {
  background: #eee;
  color: var(--brand-primary);
  border: 1px solid var(--brand-grey);
  margin-left: 6px;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--brand-secondary);
  color: var(--brand-primary);
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: var(--brand-accent-muted);
  color: var(--brand-primary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top:0; bottom:0;
  background: rgba(20,20,20,.52);
  z-index: 1401;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .18s;
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn .24s;
}
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
.cookie-modal-content {
  background: #fff;
  color: #191919;
  border-radius: 15px;
  max-width: 460px;
  width: 95%;
  padding: 32px 24px 26px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: scaleIn .19s;
}
@keyframes scaleIn {
  0%{transform: scale(.92); opacity:0;}
  100%{transform: scale(1); opacity:1;}
}
.cookie-modal-content h2 {
  font-size: 1.22rem;
  font-family: 'Merriweather', serif;
  color: var(--brand-primary);
  margin-bottom: 4px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 7px;
  gap: 7px;
}
.cookie-modal-content input[type='checkbox'] {
  accent-color: var(--brand-primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 7px;
  align-items: center;
}
.cookie-modal-close {
  background: #eee;
  color: var(--brand-primary);
  border: none;
  border-radius: 22px;
  padding: 7px 17px;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: -16px;
  margin-top: -18px;
  font-weight: 500;
}
.cookie-modal-close:hover {
  background: var(--brand-accent-muted);
  color: var(--brand-primary);
}

/* ====================
   MONOCHROME EFFECTS
==================== */
.card, .features li, .services ul li, .about ul li, .workshop-list ul li, .benefits ul li, .articles-list .articles-grid > div, .articles-teaser ul li {
  filter: grayscale(.12) contrast(1.07);
}
img, svg, .footer-social img, .features li img {
  filter: grayscale(.13);
}

/* =============================
   RESPONSIVE BREAKPOINTS
============================= */
@media (max-width: 991px) {
  .container {
    max-width: 96vw;
    padding: 0 4vw;
  }
  nav > a > img {
    width: 128px;
  }
  .footer-contact img {
    width: 46px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.4rem; }
  .hero { min-height: 180px; padding: 28px 0; }
  .section, section { padding: 28px 8px; margin-bottom: 36px; }
  .newsletter-teaser, .contact-teaser, .newsletter-details, .signup-form, .contact-form {
    padding: 20px 8px;
  }
  .content-wrapper,
  .features ul, .services ul, .about ul, .workshop-list ul, .benefits ul, .newsletter-details ul, .articles-list .articles-grid {
    gap: 13px;
  }
  .features ul, .services ul, .articles-list .articles-grid, .about ul,
  .workshop-list ul, .benefits ul, .newsletter-details ul {
    flex-direction: column;
  }
  .card-container { gap: 14px; }
  .filter-section {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
  .testimonial-card {
    padding: 13px 7px;
    font-size: 1rem;
  }
}
@media (max-width: 600px) {
  form { gap: 13px; }
  .container { padding: 0 8px; }
}

/* ===============================
   HIGH CONTRAST FOR TESTIMONIALS
================================ */
.testimonials, .testimonial-card {
  background: var(--brand-accent-muted);
}
.testimonial-card {
  color: #191919;
  background: #fff;
  border-left: 4px solid #191919;
  box-shadow: 0 1px 15px rgba(0,0,0,.09);
  margin-bottom: 18px;
}
.testimonial-card strong {
  color: #444;
}

/* ===============
   THANK YOU PAGE
=============== */
.thank-you {
  background: var(--brand-accent-muted);
  border-radius: 15px;
  box-shadow: 0 2px 14px var(--brand-shadow);
  text-align: center;
  padding-bottom: 60px;
  margin-bottom: 64px;
}
.thank-you h1 {
  margin-bottom: 7px;
}

/* ===============
   LEGAL NOTICES
=============== */
.legal {
  background: #fff;
  color: var(--brand-primary);
  border-radius: 16px;
  box-shadow: 0 2px 14px var(--brand-shadow);
  margin-bottom: 64px;
  padding: 28px 22px;
}
.legal h1, .legal h2, .legal h3 {
  color: var(--brand-primary);
}
.legal a {
  color: var(--brand-primary);
  text-decoration: underline dotted;
  transition: color .15s;
}
.legal a:hover { color: var(--brand-secondary); }

/* ===============
   UTILS & EFFECTS
=============== */
::-webkit-input-placeholder { color: #888; opacity: 1; }
::-moz-placeholder { color: #888; opacity: 1; }
:-ms-input-placeholder { color: #888; opacity: 1; }
::placeholder { color: #888; opacity: 1; }
a:focus, button:focus {
  outline: 2px dashed var(--brand-primary);
  outline-offset: 3px;
}

/* Subtle transitions */
a, button, input, select, textarea { transition: color .14s, background .14s, border .12s; }

/* =============================
   SCROLLBAR FOR DARK MODE
============================= */
body {
  scrollbar-width: thin;
  scrollbar-color: #d4d4d4 #fff;
}
body::-webkit-scrollbar {
  width: 10px; background: #fff;
}
body::-webkit-scrollbar-thumb {
  background: #d4d4d4; border-radius: 14px;
}

/* Fix for modal open body scroll */
body.modal-open {
  overflow: hidden;
}
