/* ===================
   CSS RESET & BASE
   =================== */
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background-color: #F2F0EB;
  color: #2B2B2B;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}
a {
  color: #3D5A40;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C17C38;
}

/* ==============================
   BRAND FONTS (FALLBACK SUPPORT)
   ============================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #3D5A40;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p, li, address, blockquote {
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
p + p {
  margin-top: 12px;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}

/* =========================
   FLEXBOX LAYOUT
   ========================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0; /* no gap for most, but child .content-wrapper will have section spacing */
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(61,90,64,0.06);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  padding: 28px 24px;
  background: #F6F3EE;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(61,90,64,0.07);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 20px rgba(193,124,56,0.18);
}

.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;
  padding: 20px;
  background: #F2F0EB;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(61,90,64,0.09);
  border: 1px solid #E5E2D9;
}
.testimonial-card blockquote {
  color: #3D5A40;
  font-size: 1.125rem;
  font-weight: 500;
  font-style: italic;
  margin: 0 0 4px 0;
}
.testimonial-name {
  font-weight: 700;
  color: #816B47;
}
.testimonial-stars {
  color: #C17C38;
  font-weight: bold;
  font-size: 1.1em;
  letter-spacing: 0.1em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid li {
  flex: 1 1 270px;
  background: #F6F3EE;
  border-radius: 18px;
  padding: 24px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(61,90,64,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .18s, transform .18s;
  position: relative;
}
.feature-grid li:hover {
  box-shadow: 0 6px 22px rgba(61,90,64,0.18);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ===============================
   HERO SECTIONS
   =============================== */
.hero {
  background: linear-gradient(160deg, #F2F0EB 0%, #E1E7E2 100%);
  padding: 50px 0 32px 0;
  border-radius: 0 0 48px 48px;
  margin-bottom: 40px;
  min-height: 260px;
  display: flex;
  align-items: center;
}
.hero .container {
  align-items: flex-start;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #3D5A40;
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.hero p {
  color: #816B47;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
/* ========================
   HEADER & NAVIGATION
   ======================== */
header {
  background: #F2F0EB;
  box-shadow: 0 2px 14px rgba(61,90,64,0.04);
  padding: 0;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}
header a img {
  height: 44px;
  width: auto;
  margin-right: 24px;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #3D5A40;
  font-size: 1rem;
  border-radius: 8px;
  padding: 8px 13px;
  transition: background 0.18s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E1E3CF;
  color: #C17C38;
}

.cta-btn-primary {
  padding: 12px 28px;
  background: #3D5A40;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.07rem;
  border: none;
  border-radius: 24px 48px 32px 38px/28px 44px 34px 30px;
  box-shadow: 0 4px 18px rgba(61,90,64,0.13);
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.23s, box-shadow 0.2s;
  outline: none;
}
.cta-btn-primary:hover, .cta-btn-primary:focus {
  background: #C17C38;
  color: #fff;
  box-shadow: 0 8px 28px rgba(193,124,56,0.23);
}

/* ==========================
   MOBILE NAVIGATION
   ==========================*/
.mobile-menu-toggle {
  display: none;
  position: relative;
  background: #3D5A40;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 1.9rem;
  padding: 6px 14px 4px 14px;
  cursor: pointer;
  z-index: 1300;
  transition: background .21s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #C17C38;
  color: #fff;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(50, 60, 50, 0.86);
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform .31s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 0 0 100vw rgba(61,90,64,0.07);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  font-family: 'Montserrat', Arial, sans-serif;
  align-self: flex-end;
  margin: 18px 22px 6px 0;
  cursor: pointer;
  z-index: 9002;
  transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #C17C38;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 38px 0 0 32px;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 1.25rem;
  background: transparent;
  padding: 10px 10px 10px 0;
  border-radius: 10px;
  transition: background 0.17s, color 0.2s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(193,124,56,.14);
  color: #C17C38;
}

@media (max-width: 900px) {
  header .container {
    gap: 8px;
  }
  .main-nav a {
    font-size: .97rem;
    padding: 7px 8px;
  }
  .hero {
    padding: 38px 0 20px 0;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: 14px;
  }
  .cta-btn-primary {
    margin-left: 8px;
    font-size: 1rem;
    padding: 11px 18px;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ======================
   PAGE SECTIONS & SPACING
   ======================*/
section {
  margin-bottom: 60px;
}
.address, address {
  font-size: .97rem;
  color: #5A563D;
  font-style: normal;
  margin-top: 16px;
}

/* Custom content cards, map placeholder etc. */
.map-placeholder {
  background: #E1E7E2;
  padding: 25px 18px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 16px;
}
.map-placeholder img {
  width: 48px;
  height: 48px;
}

.location .container {
  justify-content: center;
  align-items: center;
}

/* Other structure helpers */
.filter-section {
  background: #F9F7F1;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(193,124,56,0.07);
  margin-top: 22px;
  margin-bottom: 18px;
  padding: 16px 18px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.filters li {
  background: #F2F0EB;
  border-radius: 8px;
  padding: 8px 13px;
  color: #3D5A40;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.course-list li {
  background: #F9F7F1;
  border-radius: 12px;
  padding: 12px 15px;
  color: #3D5A40;
  box-shadow: 0 1px 6px rgba(61,90,64,0.07);
}

.services-preview ul, .services ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.services-preview li, .services li {
  background: #F6F3EE;
  border-radius: 10px;
  padding: 10px 14px 10px 20px;
}

.about-preview, .about, .contact {
  background: #E1E7E2;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(61,90,64,0.06);
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ======================
   FOOTER
   ======================*/
footer {
  background: #3D5A40;
  color: #fff;
  padding: 30px 0 22px 0;
}
footer .container {
  flex-direction: column;
  gap: 22px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 2px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.14s, color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #C17C38;
  color: #fff;
}
footer address {
  color: #F2F0EB;
  font-style: normal;
}
footer address a {
  color: #C17C38;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 2px;
}
footer address a:hover {
  color: #fff;
}

/* ================
   MICRO-INTERACTIONS
   ================ */
button, .cta-btn-primary {
  transition: background .2s, box-shadow .18s, color .15s, transform .16s;
}
.feature-grid li,
.card,
.card-container > * {
  transition: box-shadow .18s, transform .15s;
}
.feature-grid li:active, .card:active {
  transform: scale(0.995);
}

/* Add 'organic' squiggle effect to cards */
.card,
.feature-grid li,
.testimonial-card,
.about-preview,
.about,
.contact,
.location {
  border-radius: 36px 19px 32px 28px/28px 44px 38px 30px;
}

/* Subtle shadow and shadow on hover */
.card,
.feature-grid li {
  box-shadow: 0 1px 6px rgba(61,90,64,0.07);
}
.card:hover,
.feature-grid li:hover {
  box-shadow: 0 7px 20px rgba(193,124,56,0.15);
}

/* ====================
   COOKIE CONSENT BANNER
   ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffbea;
  color: #3D5A40;
  box-shadow: 0 -3px 19px rgba(61,90,64,0.08);
  padding: 22px 14px 23px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  z-index: 9999;
  gap: 16px;
  justify-content: space-between;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: cookieIn .7s cubic-bezier(.47,.18,.72,1.38);
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(90px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner p {
  flex: 1 1 180px;
  margin: 0;
  color: #3D5A40;
}
.cookie-banner .cookie-btn {
  background: #3D5A40;
  color: #fff;
  border: none;
  border-radius: 16px 28px 22px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  margin-right: 10px;
  transition: background 0.2s, color 0.18s;
  box-shadow: 0 1px 6px rgba(61,90,64,0.11);
}
.cookie-banner .cookie-btn:last-child {
  margin-right: 0;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #C17C38;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: #fff;
  color: #3D5A40;
  border: 2px solid #3D5A40;
  padding: 10px 14px;
  border-radius: 16px;
  margin-left: 10px;
  font-weight: 500;
  transition: background 0.2s, color 0.18s, border .18s;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: #E1E7E2;
  color: #3D5A40;
  border-color: #C17C38;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 20000;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(61,90,64,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #FAF8F2;
  color: #3D5A40;
  padding: 38px 28px 28px 28px;
  border-radius: 32px 24px 23px 36px;
  box-shadow: 0 5px 32px rgba(61,90,64,0.13);
  width: 95vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: fadeModalIn .39s cubic-bezier(.41,.28,.56,1.16);
}
@keyframes fadeModalIn {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: #3D5A40;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}
.cookie-category span {
  font-size: 1rem;
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  background: #E1E7E2;
  border-radius: 18px;
  position: relative;
  border: none;
  cursor: pointer;
  transition: background .18s;
}
.cookie-toggle.enabled {
  background: #3D5A40;
}
.cookie-toggle.disabled {
  background: #EEE9E2;
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left .18s, background .18s;
  box-shadow: 0 1px 4px rgba(61,90,64,0.13);
}
.cookie-toggle.enabled::after {
  left: 21px;
}
.cookie-modal-close {
  border: none;
  background: transparent;
  font-size: 2rem;
  color: #3D5A40;
  font-family: 'Montserrat', Arial, sans-serif;
  position: absolute;
  right: 16px;
  top: 14px;
  cursor: pointer;
  transition: color .18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #C17C38;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  flex: 1 1 auto;
  min-width: 90px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1020px) {
  .container { max-width: 95vw; }
  .feature-grid li, .card { min-width: 220px; }
}
@media (max-width: 900px) {
  .content-grid, .feature-grid, .card-container {
    gap: 16px;
  }
}
@media (max-width: 830px) {
  .container { max-width: 99vw; }
}
@media (max-width: 768px) {
  body { font-size: .96rem; }
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.1rem; }
  .section, .about-preview, .about, .contact, .location {
    padding: 32px 8px;
    margin-bottom: 36px;
    border-radius: 19px 10px 23px 13px/13px 29px 17px 16px;
  }
  .hero {
    border-radius: 0 0 24px 24px;
    padding: 18px 0 14px 0;
    min-height: 150px;
    margin-bottom: 18px;
  }
  .content-wrapper {
    gap: 17px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .filter-section, .card, .feature-grid li, .testimonial-card {
    padding: 14px 9px;
    border-radius: 13px;
  }
  .card-container {
    flex-direction: column;
    gap: 8px;
  }
  .testimonial-card {
    font-size: .97rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .map-placeholder { padding: 13px 7px; }
  .course-list { gap: 9px; }
  .filters {
    gap: 7px;
  }
  .footer-nav { gap: 10px; }
}

@media (max-width: 520px) {
  h1 { font-size: 1.35rem; margin-bottom: 8px; }
  h2 { font-size: 1.07rem; margin-bottom: 6px; }
  .container { padding: 0 7px; }
  .section, .about-preview, .about, .contact, .location {
    padding: 13px 3px;
    margin-bottom: 18px;
  }
  .cookie-banner{
    padding: 14px 4px 14px 7px;
    font-size: 0.86rem;
    gap: 8px;
  }
  .cookie-banner .cookie-btn, .cookie-banner .cookie-settings {
    font-size: 0.97rem;
    padding: 7px 10px;
    margin-right: 4px;
  }
  .cookie-modal {
    padding: 18px 7px 18px 7px;
    width: 99vw;
    max-width: 99vw;
  }
}

/* ===========================
   ORGANIC & NATURE-INSPIRED DECOR
   =========================== */
.section, .hero, .feature-grid li, .testimonial-card, .about-preview, .about, .contact, .location, .card {
  /* subtle wood-fiber texture as data:uri png background as fallback */
  background-blend-mode: multiply;
  /* can add more visual texture overlays if desired; here solid colors and organic shapes suffice */
}
.feature-grid li {
  border-left: 6px solid #3D5A40;
  border-bottom: 4px solid #C17C38;
}
.card {
  border-left: 4px solid #C17C38;
  border-bottom: 2px solid #3D5A40;
}
.testimonial-card {
  border-left: 4px solid #C17C38;
}

/* Add decorative organic squiggle for strong visual identity */
.section::before, .hero::before {
  content: '';
  display: block;
  position: absolute;
  left: -32px; top: -32px;
  width: 90px; height: 90px;
  background: #E1E7E2;
  opacity: 0.38;
  border-radius: 60% 40% 55% 45% / 52% 48% 57% 43%;
  z-index: 0;
}
.section { position: relative; overflow: hidden; }
.hero { position: relative; overflow: hidden; }

/* Accessibility: High contrast for testimonials & reviews */
.testimonial-card {
  background: #F2F0EB;
  color: #2B2B2B;
}
.testimonial-card blockquote,
.testimonial-card .testimonial-name { color: #2B2B2B; }

/* For screen readers */
a:focus {
  outline: 3px solid #C17C38;
  outline-offset: 2px;
}

/* Hide visually when not needed */
[hidden], .hidden { display: none !important; }
