/* ===================================================
   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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8F7F3;
  color: #253E53;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ===================================================
   FONT IMPORTS
=================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* ===================================================
   ROOT VARIABLES AND BRAND COLORS
=================================================== */
:root {
  --earth-brown: #8B5C2C;
  --earth-light-brown: #D2B48C;
  --leaf-green: #348A36;
  --organic-green: #7BB661;
  --mute-beige: #EFE9DD;
  --primary: #253E53; /* brand */
  --secondary: #F7B429; /* gold accent */
  --accent: #FFFFFF;
  --body-bg: #F8F7F3;
  --box-bg: #FFFFFF;
  --card-shadow: 0 4px 20px 0 rgba(53, 89, 69, 0.07);
  --border-radius: 24px;
  --border-radius-small: 12px;
  --gap-large: 32px;
  --gap: 24px;
  --gap-small: 16px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ===================================================
   BODY & CONTAINER
=================================================== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--body-bg);
  color: var(--primary);
  min-height: 100vh;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1, .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 20px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  color: var(--leaf-green);
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--earth-brown);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
}
p, .intro-text {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.subheadline, .brand-tagline {
  font-size: 1.2rem;
  color: var(--earth-brown);
  margin-bottom: 22px;
  font-weight: 500;
  font-family: var(--font-display);
}
strong {
  font-weight: 700;
  color: var(--leaf-green);
}

/* Visual Hierarchy for Links */
a {
  transition: color 0.18s;
  color: var(--leaf-green);
}
a:hover, a:focus {
  color: var(--secondary);
}

/* Lists */
ul, ol {
  margin-left: 25px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  line-height: 1.5;
}
.values-list li::before, .philosophy-points li::before, .feature-grid li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--organic-green);
  margin-right: 10px;
  vertical-align: middle;
}
.feature-grid li::before {
  background: var(--secondary);
}

/* ===================================================
   SPACING & ALIGNMENT PATTERNS (FLEXBOX)
=================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container, .services-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative; /* for decorative abs. elements */
  background: var(--box-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Grid for features (as rows, flex-only) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid li {
  flex: 1 1 240px;
  background: var(--box-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 26px 18px 18px 18px;
  margin-bottom: 0;
  min-width: 190px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  transition: box-shadow 0.22s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 32px 0 rgba(53, 89, 69, 0.10);
  transform: translateY(-2px);
}
.feature-grid img {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

/* Services Cards */
.services-list {
  gap: 24px;
  align-items: stretch;
  margin-bottom: 30px;
}
.service-card {
  background: var(--box-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 30px 20px 24px 20px;
  margin-bottom: 20px;
  min-width: 250px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.22s, transform 0.18s;
}
.service-card img {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
}
.service-card h3 {
  margin-bottom: 8px;
}
.service-card span {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  background: var(--organic-green);
  color: #fff;
  border-radius: 18px;
  padding: 4px 18px;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}
.service-card:hover {
  box-shadow: 0 8px 32px 0 rgba(69, 122, 85, 0.16);
  transform: translateY(-4px) scale(1.025);
}

/* Testimonials */
.testimonial-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  background: var(--mute-beige);
  border-radius: var(--border-radius-small);
  box-shadow: 0 2px 16px 0 rgba(60, 85, 66, 0.08);
  padding: 24px 22px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  color: #1e2718;
  font-size: 1.03rem;
  transition: box-shadow 0.22s;
}
.testimonial-card strong {
  color: var(--earth-brown);
  font-size: 1rem;
}
.testimonial-card p {
  color: #1e2718;
  font-size: 1.1rem;
  font-style: italic;
}

/* Sections */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  background: var(--mute-beige);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px 0 rgba(80, 126, 59, 0.06);
  padding: 28px 22px;
  margin-bottom: 18px;
}

/* Schedule Overview / Cards inside section */
.schedule-overview {
  background: var(--earth-light-brown);
  border-radius: var(--border-radius-small);
  padding: 18px 20px;
  margin-top: 24px;
}
.schedule-overview h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.12rem;
}

/* Google Map Placeholder */
.google_map_embed {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  background: var(--leaf-green);
  color: #fff;
  border-radius: var(--border-radius-small);
  padding: 10px 16px;
}
.google_map_embed img {
  width: 22px;
  height: 22px;
}

/* Brand Name in Footer */
.brand-name {
  font-family: var(--font-display);
  color: var(--earth-brown);
  font-size: 1rem;
  margin-top: 22px;
}

/* ===================================================
   BUTTONS
=================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--leaf-green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 15px 38px;
  font-size: 1.08rem;
  border-radius: 32px;
  box-shadow: 0 2px 16px 0 rgba(53, 89, 69, 0.10);
  margin-top: 14px;
  margin-bottom: 7px;
  border: none;
  transition: background 0.17s, box-shadow 0.22s, transform 0.15s;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 4px 24px 0 rgba(196, 143, 14, 0.18);
  transform: scale(1.04);
}

/* Cookie buttons */
.btn-secondary {
  background: var(--accent);
  color: var(--leaf-green);
  font-weight: 700;
  border-radius: 32px;
  padding: 10px 28px;
  font-size: 1rem;
  border: 2px solid var(--leaf-green);
  margin-right: 16px;
  margin-bottom: 7px;
  transition: background 0.19s, color 0.17s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--leaf-green);
  color: var(--accent);
  border-color: var(--secondary);
}
.btn-tertiary {
  background: none;
  color: var(--earth-brown);
  border: 0;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 14px;
  text-decoration: underline;
  border-radius: 18px;
  margin-left: 10px;
  margin-bottom: 7px;
  transition: background 0.15s, color 0.15s;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: var(--earth-light-brown);
  color: var(--primary);
}

/* ===================================================
   HEADER & NAVIGATION
=================================================== */
header {
  background: var(--accent);
  border-bottom: 1.5px solid #e2e6e1;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 16px;
  max-width: 1200px;
}
header a img {
  height: 48px;
  width: auto;
}
nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: 24px;
}
nav a {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--primary);
  font-size: 1.04rem;
  border-radius: 24px;
  padding: 7px 18px;
  transition: background 0.16s, color 0.18s;
}
nav a:hover, nav a:focus {
  background: var(--earth-light-brown);
  color: var(--leaf-green);
}
header .btn-primary {
  margin-left: 16px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--leaf-green);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 16px;
  padding: 7px 18px;
  margin-left: auto;
  cursor: pointer;
  z-index: 99;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(48,62,53,0.94);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.42s cubic-bezier(.69,.03,.59,.98);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-size: 2rem;
  padding: 18px 22px 8px 22px;
  border: none;
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.mobile-menu-close:hover,.mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--primary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  padding: 12px 30px 30px 30px;
  gap: 6px;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: #fff;
  padding: 16px 0;
  width: 100%;
  border-radius: 18px;
  margin-bottom: 6px;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* ===================================================
   FOOTER
=================================================== */
footer {
  background: var(--earth-light-brown);
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 16px;
}
.footer-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.footer-links a {
  font-size: 1rem;
  color: var(--earth-brown);
  padding: 4px 10px;
  border-radius: 14px;
  transition: background 0.13s;
}
.footer-links a:hover, .footer-links a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.social-media-links {
  display: flex;
  gap: 10px;
  align-items: center;
}
.social-media-links img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--body-bg);
  padding: 2px;
  box-shadow: 0 2px 8px 0 rgba(53, 89, 69, 0.09);
  transition: box-shadow 0.13s, background 0.14s;
}
.social-media-links img:hover {
  box-shadow: 0 4px 16px 0 rgba(69, 122, 85, 0.16);
  background: var(--leaf-green);
}

/* ===================================================
   COOKIE CONSENT BANNER + MODAL
=================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  background: var(--box-bg);
  box-shadow: 0 -4px 18px 0 rgba(80, 126, 59, 0.13);
  padding: 22px 8vw 20px 8vw;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transition: transform 0.6s cubic-bezier(.69,.03,.59,.98), opacity 0.4s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
}
.cookie-banner-text {
  flex: 2 1 340px;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex: 1 1 180px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(60,72,56,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--box-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 40px 0 rgba(69, 122, 85, 0.20);
  max-width: 92vw;
  width: 410px;
  padding: 32px 28px 20px 28px;
  font-size: 1.08rem;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--leaf-green);
  margin-bottom: 12px;
}
.cookie-modal-close {
  position: absolute;
  right: 32px;
  top: 22px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--leaf-green);
  cursor: pointer;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0 11px 0;
  border-bottom: 1px solid #f3e8da;
}
.cookie-toggle {
  width: 45px;
  height: 23px;
  background: var(--earth-light-brown);
  border-radius: 16px;
  position: relative;
  margin-left: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-toggle.on {
  background: var(--leaf-green);
}
.cookie-toggle-ball {
  width: 21px;
  height: 21px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  transition: left 0.17s;
}
.cookie-toggle.on .cookie-toggle-ball {
  left: 22px;
}
.cookie-category .always-on {
  font-size: 0.88rem;
  color: var(--secondary);
  margin-left: 8px;
}

/* ===================================================
   RESPONSIVENESS
=================================================== */
@media (max-width: 1050px) {
  .container {
    max-width: 95vw;
  }
  .feature-grid li, .service-card, .testimonial-card {
    flex-basis: 48%;
  }
}
@media (max-width: 800px) {
  .content-wrapper, .card-container, .content-grid, .services-list, .feature-grid, .footer .container {
    flex-direction: column;
    gap: 19px;
    align-items: stretch;
    justify-content: flex-start;
  }
  .section, section {
    padding: 24px 5vw;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header .btn-primary {
    display: none;
  }
}
@media (max-width: 540px) {
  .feature-grid li, .service-card, .testimonial-card {
    flex-basis: 100%;
    min-width: unset;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 8px;
    padding: 16px 4vw;
    font-size: 0.93rem;
  }
}

/* text-image-section responsiveness */
@media (max-width: 900px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

/* extra mobile adjustments for hamburger navigation and modals */
@media (max-width: 500px) {
  .cookie-modal {
    width: 98vw;
    padding: 24px 6vw 14px 6vw;
  }
}

/* ===================================================
   ORGANIC NATURE EFFECTS (SHAPES & BACKGROUND TEXTURES)
=================================================== */
.section, section, .feature-grid li, .service-card, .testimonial-card {
  position: relative;
  overflow: hidden;
}
.section::before, section::before {
  content: '';
  position: absolute;
  left: -80px;
  top: -50px;
  width: 230px;
  height: 130px;
  background: rgba(123,182,97,0.07);
  border-radius: 80% 90% 70% 80%;
  z-index: 0;
  pointer-events: none;
}
.feature-grid li::after, .service-card::after, .testimonial-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -36px;
  width: 80px;
  height: 40px;
  background: rgba(247,180,41,0.10);
  border-radius: 60% 60% 59% 68%;
  z-index: 1;
}

/* Card hover embellishments */
.feature-grid li:hover::after, .service-card:hover::after, .testimonial-card:hover::after {
  background: rgba(247,180,41,0.17);
}

/* Decorative wavy edge for hero on index */
main > section:first-of-type {
  border-bottom-left-radius: 70px 53px;
  border-bottom-right-radius: 140px 44px;
  background: linear-gradient(101deg, #F8F7F3 85%, #EFE9DD 100%);
}

/* Subtle background texture for .mute-beige (optional in future) */

/* ===================================================
   MISC: TRANSITIONS & MICRO-INTERACTIONS
=================================================== */
.section, section, .card, .feature-grid li, .service-card,
.testimonial-card, .text-section, .btn-primary {
  transition: box-shadow 0.22s, background 0.18s, transform 0.19s;
}

/* Ensure animation disables on prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
