/* =========================================================
   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;
}
/* Set HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
  line-height: 1.5;
  background: #F8F9FA;
  min-height: 100vh;
  color: #2F4858;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture {
  max-width: 100%;
  height: auto;
}
ul, ol {
  margin: 0 0 1.4em 1.3em;
  padding: 0;
}
li {
  margin-bottom: 8px;
}
a {
  color: #2F4858;
  text-decoration: none;
  transition: color .2s;
}
a:focus, a:hover {
  color: #208060;
  outline: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  border-radius: 0;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}
* {
  box-sizing: border-box;
}

/* ============================
    BRAND COLORS & TYPOGRAPHY
   ============================ */
:root {
  --color-primary: #2F4858; /* Deep blue earth */
  --color-secondary: #F6AE2D; /* Organic golden earth */
  --color-accent: #208060; /* Nature green accent */
  --color-bg: #F8F9FA; /* Off-white for light sections */
  --color-bg-card: #F2EEE3; /* nature inspired neutral for cards */
  --color-text: #2F4858;   /* The brand text color */
  --color-text-light: #F8F9FA;
  --color-card-shadow: rgba(50,70,60,0.07);
  --color-card-border: #DBD5BC;
  --color-footer-bg: #D6E5DF;

  --font-display: 'Montserrat', 'Open Sans', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}


/* ==================
   GENERAL LAYOUT
   ================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* text-image-section required flex classes */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* SPACING & GAPS */
.feature-grid,
.card-container,
.card-grid,.service-listings,.resource-list,.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: var(--color-bg-card);
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 3px 16px var(--color-card-shadow);
  border: 1px solid var(--color-card-border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(32,128,96,0.13);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card:last-child {
  margin-bottom: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-bg-card);
  border-radius: 18px;
  box-shadow: 0 2px 10px var(--color-card-shadow);
  border: 1px solid var(--color-card-border);
  padding: 28px 20px;
  min-width: 240px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  transition: box-shadow .18s;
}
.feature-item:hover {
  box-shadow: 0 4px 16px rgba(32,128,96,.10);
}

/****
   TESTIMONIALS
****/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px var(--color-card-shadow);
  border: 1px solid var(--color-card-border);
  margin-bottom: 24px;
  position: relative;
  transition: border-color .18s, box-shadow .18s;
}
.testimonial-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 28px rgba(32,128,96,0.10);
}
.testimonial-card blockquote {
  color: #24503e;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.10em;
  line-height: 1.7;
  margin-right: 8px;
  border-left: 4px solid var(--color-accent);
  padding-left: 16px;
  background: none;
}
.testimonial-meta {
  font-size: 1em;
  font-style: italic;
  color: var(--color-primary);
  font-weight: 600;
}
.testimonial-summary {
  color: #537f6d;
  font-size: 0.97em;
  font-weight: 400;
  margin-top: 3px;
}

/****
   BLOG & RESOURCES PREVIEWS
****/
.blog-list, .resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-post-preview, .resource-item {
  flex: 1 1 350px;
  background: var(--color-bg-card);
  border-radius: 18px;
  padding: 28px 18px;
  border: 1px solid var(--color-card-border);
  box-shadow: 0 2px 10px var(--color-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  transition: box-shadow .18s;
}
.blog-post-preview:hover, .resource-item:hover {
  box-shadow: 0 4px 16px rgba(47,72,88,0.13);
}

/****
 TEAM/BIOS
****/
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.team-member {
  background: var(--color-bg-card);
  border-radius: 18px;
  padding: 24px 20px;
  border: 1px solid var(--color-card-border);
  box-shadow: 0 2px 10px var(--color-card-shadow);
  flex: 1 1 290px;
}


/******************
 TYPOGRAPHY
*******************/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 700;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.19;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.35rem;
  color: var(--color-accent);
}
h4 {
  font-size: 1.15rem;
  color: var(--color-primary);
}

p, ul, ol {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2F4858;
}
ul, ol {
  padding-left: 18px;
}

.cta-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  transition: color .18s;
}
.cta-link:hover{
  color: var(--color-secondary);
}

strong, b {
  color: var(--color-accent);
  font-weight: 700;
}
.em {
  color: var(--color-secondary);
  font-style: italic;
}

/*********************
      BUTTONS
*********************/
.cta-btn {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 14px 37px;
  margin-top: 14px;
  border-radius: 32px;
  box-shadow: 0 4px 14px var(--color-card-shadow);
  font-size: 1.21rem;
  letter-spacing: 0.5px;
  border: none;
  transition: background .18s, color .18s, transform .14s;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.cta-btn:focus, .cta-btn:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
}

/*********************
   HEADER & NAVIGATION
*********************/
header {
  background: #fff;
  border-bottom: 2px solid var(--color-card-border);
  box-shadow: 0 2px 10px var(--color-card-shadow);
  position: sticky;
  top: 0;
  z-index: 70;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-primary);
  padding: 9px 13px;
  border-radius: 14px;
  transition: background .16s, color .18s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-bg-card);
  color: var(--color-accent);
}
header .cta-btn {
  margin-top: 0;
  margin-left: 18px;
}
header img {
  height: 44px;
  width: auto;
}

/*********************
   MOBILE MENU
*********************/
.mobile-menu-toggle {
  font-size: 2.1rem;
  color: var(--color-accent);
  background: none;
  border: none;
  border-radius: 10px;
  height: 44px;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(32,128,96,0.07);
  transition: background .14s, box-shadow .16s;
  z-index: 121;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-bg-card);
  box-shadow: 0 3px 14px rgba(32,128,96,0.14);
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #ecf4ee;
  z-index: 130;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.84, .02, .11, 1.02);
  display: flex;
  flex-direction: column;
  padding: 20px 26px 34px 26px;
  box-shadow: 4px 0 22px rgba(32,96,64,0.18);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--color-accent);
  background: none;
  margin-left: auto;
  border-radius: 9px;
  padding: 7px 13px;
  border: none;
  transition: background .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  font-size: 1.18em;
  padding: 13px 0;
  border-radius: 13px;
  color: var(--color-primary);
  font-weight: 700;
  transition: background .17s, color .14s;
  text-align: left;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: #fff;
  padding-left: 10px;
}

/**************************
        HERO AREA
***************************/
.hero {
  background: linear-gradient(120deg, #D6E5DF 0%, #F8F9FA 75%);
  padding-top: 54px;
  padding-bottom: 54px;
  border-radius: 0 0 50px 50px/0 0 60px 60px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 30px;
}
.hero h1 {
  font-size: 2.5rem; /* mobile */
}
.hero p {
  color: #335B43;
  font-size: 1.22rem;
  max-width: 600px;
}
.hero .cta-btn {
  margin-top: 22px;
}

/******************
 CTA SECTIONS
*******************/
.programs-cta, .cta, .confirmation {
  background: var(--color-accent);
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(32,128,96,0.10);
  padding-top: 38px;
  padding-bottom: 38px;
  margin-bottom: 48px;
}
.programs-cta h2, .cta h2, .confirmation h1 {
  color: #fff;
}
.programs-cta .cta-btn, .cta .cta-btn, .confirmation .cta-btn {
  background: #fff;
  color: var(--color-accent);
  box-shadow: 0 3px 12px rgba(47,72,88,0.11);
}
.programs-cta .cta-btn:hover, .cta .cta-btn:hover, .confirmation .cta-btn:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/*******************
    FOOTER
********************/
footer {
  background: var(--color-footer-bg);
  padding: 44px 0 30px 0;
  border-radius: 42px 42px 0 0 / 60px 60px 0 0 ;
  box-shadow: 0 -4px 16px var(--color-card-shadow);
  margin-top: 90px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-start;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: color .18s;
  padding: 2px 6px;
  border-radius: 8px;
}
footer nav a:hover {
  color: var(--color-accent);
  background: #f5f0d9;
}
footer img {
  height: 46px;
  margin-bottom: 14px;
}
.contact-details {
  color: #355347;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-details img {
  width: 20px;
  height: 20px;
  vertical-align: text-bottom;
  margin-right: 6px;
}

/*********************
   COOKIE CONSENT BANNER
**********************/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  color: var(--color-primary);
  z-index: 300;
  box-shadow: 0 -2px 12px var(--color-card-shadow);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 34px;
  padding: 26px 18px;
  border-top: 2px solid var(--color-card-border);
  transition: transform .28s;
}
.cookie-banner.closed {
  transform: translateY(140%);
  pointer-events: none;
}
.cookie-banner__text {
  max-width: 440px;
  font-size: 1rem;
  color: var(--color-primary);
  margin-right: 12px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 23px;
  border-radius: 24px;
  border: none;
  background: var(--color-accent);
  color: #fff;
  transition: background .14s, color .14s;
  font-weight: 700;
}
.cookie-btn:focus, .cookie-btn:hover, .cookie-btn.selected {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: none;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
.cookie-btn.settings:focus, .cookie-btn.settings:hover {
  border-color: var(--color-secondary);
  background: var(--color-bg-card);
  color: var(--color-primary);
}

/***** COOKIE MODAL *****/
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(47,72,88, 0.23);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal__inner {
  background: #fff;
  border-radius: 19px;
  max-width: 440px;
  width: 95%;
  box-shadow: 0 4px 26px rgba(32,128,96,0.13);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--color-card-border);
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.cookie-modal__header h3 {
  color: var(--color-accent);
  font-size: 1.27em;
  margin-bottom: 0;
}
.cookie-modal__close {
  font-size: 1.45rem;
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-category {
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-always-enabled {
  color: var(--color-accent);
  font-size: .97em;
  margin-left: 6px;
  font-style: italic;
}
.cookie-switch {
  position: relative;
  width: 41px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e0eadb;
  transition: background .13s;
  border-radius: 11px;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-accent);
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 17px; width: 17px;
  left: 3px; bottom: 2.5px;
  background: #fff;
  transition: transform .16s;
  border-radius: 50%;
  box-shadow: 0 2px 8px #ddd;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}
.cookie-modal__footer {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
}

/*****
  OTHER COMPONENTS: FAQ, OLDS, etc
*****/
.faq h3 {
  color: var(--color-primary);
  margin-bottom: 14px;
}
.faq ul {
  margin-bottom: 0;
}
.hours {
  background: #e0eadb;
  border-radius: 22px;
  padding: 24px 0 20px 0;
  margin-bottom: 38px;
}
/*****
  MISC STYLES
*****/
.program-highlight ul {
  margin-bottom: 20px;
  margin-top: 9px;
}
.confirmation {
  text-align: center;
  padding: 48px 0;
  margin-bottom: 0;
}

/*******************
 RESPONSIVE DESIGN
********************/
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
}
@media (max-width: 980px) {
  .container {
    max-width: 740px;
  }
  .team-bios, .feature-grid, .card-container, .content-grid, .blog-list, .resource-list {
    gap: 16px;
  }
  .feature-item, .team-member, .blog-post-preview, .resource-item {
    min-width: 180px;
    flex: 1 1 220px;
  }
  footer .container {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2,
  .hero h1 {
    font-size: 1.4rem;
  }
  .section, .hero, .programs-cta, .cta {
    padding: 28px 6px !important;
  }
  .container {
    max-width: 96vw;
    padding-left: 7px;
    padding-right: 7px;
  }
  .content-wrapper, .text-section {
    gap: 13px;
  }
  .team-bios,
  .feature-grid,
  .card-container,
  .content-grid, .blog-list, .resource-list {
    flex-direction: column;
    gap: 15px;
  }
  .feature-item, .team-member, .blog-post-preview, .resource-item, .card {
    min-width: 0;
    width: 100%;
    padding: 16px 12px;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .hero {
    border-radius: 0 0 28px 28px/0 0 30px 30px;
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hero .content-wrapper {
    padding-right: 0;
    gap: 14px;
    align-items: flex-start;
  }
  .mobile-menu {
    padding: 14px 8px 30px 10px;
  }
  .blog-list, .resource-list, .program-highlight {
    gap: 16px;
  }
  .contact-details {
    font-size: 0.97rem !important;
    gap: 3px;
  }
  .testimonials-preview .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 13px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .section {
    margin-bottom: 40px !important;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 11px;
  }
  .feature-item {
    padding: 14px 7px;
  }
  .testimonial-card {
    width: 97%;
    margin-left: auto;
    margin-right: auto;
  }
  .cookie-banner {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 7px;
  }
}
@media (max-width: 620px) {
  header .container {
    gap: 7px;
  }
  header nav, .header .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 621px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/**********************************************************
END OF CARISMAVIVA NATURE_ORGANIC FLEX-ONLY RESPONSIVE CSS
**********************************************************/