/* ========================================================
   RESET & BASE STYLES
======================================================== */
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;
}
html { font-size: 100%; scroll-behavior: smooth; }
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #F9F7F3;
  color: #2D3E34;
  font-family: 'Montserrat', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; vertical-align: middle; display: inline-block; }
button { font: inherit; }

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600&family=Montserrat:wght@400;600;700&display=swap');

/* ========================================================
   COLOR VARIABLES & PASTEL PALETTE
======================================================== */
:root {
  --color-primary: #2D3E34;
  --color-secondary: #A8B7AE;
  --color-accent: #F9F7F3;
  --color-pastel-green: #D8EFE6;
  --color-pastel-mint: #E8F7EF;
  --color-pastel-lavender: #F0EEF9;
  --color-pastel-rose: #F8ECEB;
  --color-pastel-yellow: #FAF7E6;
  --color-pastel-blue: #E6F1FA;
  --color-button: #B6D7C8;
  --color-button-hover: #A8B7AE;
  --color-border: #E2DED9;
  --color-shadow: rgba(60,96,86,0.08);
  --color-shadow-strong: rgba(60, 96, 86, 0.16);
}

/* ========================================================
   TYPOGRAPHY
======================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  color: var(--color-primary);
  font-weight: 600;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1.125rem;
}
p, li, ul, ol, blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
}
p.subtitle {
  font-size: 1.18rem;
  color: var(--color-secondary);
  margin-bottom: 18px;
}

/* Typography scale for text block spacing */
.text-section h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}
.text-section ul, .text-section ol { padding-left: 20px; margin-bottom: 18px; }
.text-section li { margin-bottom: 9px; }

/* ========================================================
   LAYOUT: FLEXBOX SYSTEM (CRITICAL RULE)
======================================================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.section {
  background: var(--color-accent);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
  box-shadow: 0 6px 24px var(--color-shadow);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
    margin-bottom: 38px;
  }
  .container {
    padding-left: 9px; padding-right: 9px;
  }
}

/* Card container system */
.card-container,
.card-grid,
.articles-grid,
.feature-grid,
.team-bio-list,
.testimonial-grid,
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  background: var(--color-accent);
  border-radius: 22px;
  box-shadow: 0 3px 16px var(--color-shadow);
  margin-bottom: 20px;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .22s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 7px 28px var(--color-shadow-strong);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.card-grid > *,
.articles-grid > article,
.team-bio-list > .team-member {
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive orientation for feature & team grids */
@media (max-width: 900px) {
  .card-grid,
  .articles-grid,
  .feature-grid,
  .team-bio-list,
  .testimonial-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}
@media (max-width: 600px) {
  .container {
    padding-left: 3vw; padding-right: 3vw;
  }
}

/* Feature items, testimonial-cards, etc. */
.feature-grid > div,
.feature-list > li,
.team-member {
  background: var(--color-pastel-green);
  border-radius: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
}
.feature-grid > div img,
.feature-list > li img,
.team-member img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
@media (max-width: 767px) {
  .feature-list { flex-direction: column; gap: 15px; }
}

/* Text-image section (for possible future use) */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* Testimonial Cards */
.testimonial-card {
  background: var(--color-pastel-blue);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 1px 4px var(--color-shadow);
  margin-bottom: 20px;
  flex: 1 1 250px;
  color: #203020;
  min-width: 220px;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #233321;
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #497360;
  font-style: italic;
  margin-left: 8px;
}
@media (max-width: 800px) {
  .testimonial-grid {
    flex-direction: column; gap: 18px;
  }
  .testimonial-card { min-width: 0; }
}

/* Feature item (additional utility if needed) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Article Previews & Filters */
.articles-grid article {
  background: var(--color-pastel-lavender);
  border-radius: 20px;
  box-shadow: 0 1px 8px var(--color-shadow);
  padding: 26px 18px 20px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, transform .18s;
}
.articles-grid article:hover {
  box-shadow: 0 4px 16px var(--color-shadow-strong);
  transform: translateY(-3px);
}
.articles-grid article h2 a { color: var(--color-primary); text-decoration: underline; }
.articles-grid article a {
  font-weight: 600;
  color: var(--color-primary);
  display: inline-block;
  margin-top: 3px;
  transition: color .18s;
}
.articles-grid article a:hover {
  color: #6D8778;
}
.article-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 2px;
  font-size: .98rem;
}
.article-filters a {
  color: #779E95;
  padding: 2px 8px;
  border-radius: 7px;
  transition: background .18s, color .18s;
}
.article-filters a:hover, .article-filters a:focus {
  background: #e8f7ef;
  color: #2D3E34;
}

/* Cards, Lists & Utilities */
.category-list, .daily-practices-list, .before-after-list, .tips-list, .recommended-books, .guide-list, .action-steps, .wellness_tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 15px;
  padding-left: 15px;
}
.category-list li:first-child { margin-top: 7px; }

/* MAP placeholder */
.map {
  background: var(--color-pastel-mint);
  border-radius: 13px;
  padding: 20px;
  margin-top: 14px;
  color: #3d596d;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .98rem;
  box-shadow: 0 1px 6px var(--color-shadow);
  text-align: left;
}

/* ========================================================
   BUTTONS & CTA
======================================================== */
.primary-cta, .nav-cta {
  background: linear-gradient(90deg, #E8F7EF 0%, #D8EFE6 100%);
  color: var(--color-primary);
  border: none;
  border-radius: 30px;
  padding: 12px 36px;
  font-size: 1.08rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--color-shadow);
  cursor: pointer;
  margin-top: 16px;
  transition: background .2s, color .16s, box-shadow .2s;
  outline: none;
  display: inline-block;
  text-align: center;
}
.primary-cta:hover, .primary-cta:focus,
.nav-cta:hover, .nav-cta:focus {
  background: #B6D7C8;
  color: #173226;
  box-shadow: 0 4px 16px var(--color-shadow-strong);
}
.read-more {
  padding: 7px 22px;
  background: #f8eceb;
  color: #895d5d;
  font-size: 1rem;
  border-radius: 18px;
  font-weight: 600;
  transition: background .14s;
  margin-top: 8px;
  display: inline-block;
}
.read-more:hover, .read-more:focus { background: #fae1dd; }

/* Secondary & Iconic Buttons */
button, .button, .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  background: #E6F1FA;
  color: #265346;
  border-radius: 22px;
  padding: 10px 26px;
  cursor: pointer;
  transition: background .18s, color .16s, box-shadow .2s;
  box-shadow: 0 1px 8px var(--color-shadow);
  margin-right: 9px;
}
button:hover, .button:hover, .cookie-btn:hover {
  background: #D8EFE6;
  color: #16432b;
}
button:focus, .button:focus, .cookie-btn:focus {
  outline: 2px solid #2D3E34;
  background: #f0eef9;
}

/* Links in navigation, footer, and flyout */
nav ul li a, .mobile-nav a, .footer-menu a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  padding: 7px 13px;
  border-radius: 9px;
  transition: color .15s, background .18s;
}
nav ul li a:hover, nav ul li a:focus, .mobile-nav a:hover, .mobile-nav a:focus, .footer-menu a:hover {
  background: #E8F7EF;
  color: #224a33;
}

/* ========================================================
   HEADER & NAVIGATION
======================================================== */
header {
  background: var(--color-accent);
  box-shadow: 0 1px 10px var(--color-shadow);
}
nav {
  width: 100%;
  max-width: 1180px;
  margin: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 18px 22px;
}
nav > a img {
  height: 38px;
  margin-right: 18px;
}
nav ul {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}
@media (max-width: 1020px) {
  nav ul { gap: 3px; }
}

.nav-cta {
  margin-left: 18px;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 100;
  transition: color .15s;
}
.mobile-menu-toggle:hover {
  color: #8db6a6;
}

@media (max-width: 900px) {
  nav ul, .nav-cta { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(248,236,235, .98);
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.7,.09,.6,1.19);
  z-index: 1001;
  box-shadow: 0 6px 32px rgba(60,80,86,.23);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: none;
  border: none;
  margin: 20px 22px 0 0;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 1002;
  padding: 0 4px;
  transition: color .14s;
}
.mobile-menu-close:hover { color: #9fc8b9; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin: 46px 0 0 38px;
}
.mobile-nav a {
  font-size: 1.18rem;
  padding: 9px 0 9px 0;
  letter-spacing: .001rem;
}

@media (max-width: 480px) {
  .mobile-nav {
    margin-left: 18px;
    font-size: 1.08rem;
  }
}

/* Ensure overlay is above everything */
.mobile-menu, .mobile-menu.open { z-index: 1200; }

/* ========================================================
   FOOTER
======================================================== */
footer {
  background: #fcfbfb;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
  padding-top: 36px;
  margin-top: 50px;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 64px;
  justify-content: flex-start;
  margin-bottom: 22px;
  margin-top: 11px;
}
.footer-menu ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-menu a {
  color: #477e6a;
  font-size: .98rem;
  padding: 3px 6px;
  border-radius: 9px;
}
.footer-menu a:hover { background: #e8f7ef; color: #2D3E34; }

.footer-contact {
  display: flex;
  flex-direction: column;
  margin-top: 7px;
  gap: 8px;
  font-size: .99rem;
}
.footer-contact img {
  width: 20px;
  vertical-align: middle;
  margin-right: 7px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.footer-social a img {
  width: 30px;
  filter: grayscale(.16) saturate(.94) brightness(1.17);
  transition: filter .15s;
}
.footer-social a:hover img { filter: none; }
.footer-note {
  text-align: center;
  font-size: .95rem;
  color: #b5baa6;
  margin-top: 22px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  footer { padding-top: 25px; }
  .footer-menu { flex-direction: column; gap: 17px; }
}

/* ========================================================
   COOKIE CONSENT BANNER & MODAL
======================================================== */
.cookie-banner {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 15px;
  z-index: 2022;
  background: #f8eceb;
  border: 1.5px solid #dacbc4;
  box-shadow: 0 3px 12px rgba(130, 70, 84, 0.09);
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px;
  gap: 18px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #734242;
  animation: fadein-bounce .62s cubic-bezier(.56,.12,.63,1.37);
}
.cookie-banner p {
  flex: 1 1 220px;
  margin-right: 12px;
  margin-bottom: 0;
  color: #734242;
  font-size: 1rem;
}
.cookie-banner .cookie-btn{
  margin-bottom: 0;
  min-width: 126px;
  margin-right: 7px;
}

@media (max-width:600px) {
  .cookie-banner { flex-direction: column; padding: 15px 12px; gap: 13px; left: 4px; right: 4px; }
  .cookie-banner .cookie-btn{ min-width: 98px; }
}

@keyframes fadein-bounce {
  0% { opacity: 0; transform: translateY(60px) scale(.89); }
  60%{ opacity: .65; }
  80%{ transform: translateY(-5px) scale(1.025); }
  100%{ opacity:1; transform: none; }
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(36,50,53,0.21);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-bounce .45s cubic-bezier(.46,.06,.76,1.23);
}
.cookie-modal {
  background: #fcfbfb;
  border-radius: 23px;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 8px 38px var(--color-shadow-strong);
  padding: 32px 23px 28px 23px;
  position: relative;
  z-index: 2110;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: #2D3E34;
}
.cookie-modal ul {
  margin-bottom: 18px;
}
.cookie-modal li {
  margin-bottom: 12px;
  font-size: .97rem;
  color: #3D4E41;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f0eef9;
}
.cookie-modal .cookie-toggle {
  width: 36px; height: 20px;
  background: #dceed3;
  border-radius: 12px;
  position: relative;
  transition: background .17s;
  cursor: pointer;
}
.cookie-modal .cookie-toggle[aria-checked="true"] {
  background: #B6D7C8;
}
.cookie-modal .cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(59,70,60,0.12);
  transition: left .14s;
}
.cookie-modal .cookie-toggle[aria-checked="true"]::after {
  left: 18px;
}
.cookie-modal .cookie-btn {
  width: 44%;
  margin-right: 8px;
  margin-bottom: 0;
}
.cookie-modal .cookie-btn:last-child{ margin-right: 0; }
.cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #A8B7AE;
  cursor: pointer;
  transition: color .15s;
}
.cookie-modal .modal-close:hover {
  color: #2D3E34;
}
@media (max-width:480px) {
  .cookie-modal { padding: 18px 9px 18px 13px; min-width: 0; }
  .cookie-modal .cookie-btn { width: 98%; margin-bottom: 9px; }

}

/* ========================================================
   UTILITY, MICRO-EFFECTS & MISC
======================================================== */
::-webkit-scrollbar { width: 9px; background: #f1f3ed; }
::-webkit-scrollbar-thumb { background: #e6f1fa; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #dacfc4; }

hr { border: none; border-top: 1px solid var(--color-border); margin: 36px 0; }

/* List icons utility (if needed) */
ul li::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: 6px;
  border-radius: 10px;
  background: linear-gradient(120deg, #B6D7C8 60%, #f0eef9 100%);
  vertical-align: middle;
  opacity: 0.76;
}
ul.category-list li::before, ul.before-after-list li::before, ul.daily-practices-list li::before, ul.tips-list li::before, ul.recommended-books li::before, ul.guide-list li::before, ul.action-steps li::before, ul.wellness_tips li::before {
  content: "";
  width: 7px; height: 7px; margin-right: 5px;
  background: #B6D7C8;
  border-radius: 6px;
  vertical-align: middle;
}

/* Section title separation */
.section > .container > .content-wrapper > h1, 
.section > .container > .content-wrapper > h2 {
  margin-bottom: 16px;
  margin-top: 0;
}

/* Subtle hover for all cards */
.card, .feature-grid > div, .team-member, .feature-list > li, .testimonial-card {
  transition: box-shadow .16s, transform .16s;
}
.card:hover, .feature-grid > div:hover, .team-member:hover, .feature-list > li:hover {
  box-shadow: 0 8px 30px var(--color-shadow-strong);
  transform: translateY(-2px) scale(1.012);
  z-index: 1;
}

/* General spacing between main sections */
main > section { margin-bottom: 60px; margin-top: 0; }
@media (max-width: 700px) {
  main > section { margin-bottom: 36px; }
}

/* Ensure minimum vertical space */
main > section, .text-section, .content-wrapper { min-width: 0; min-height: 1px; }

/* Focus states for accessibility */
a:focus, button:focus, .primary-cta:focus, .nav-cta:focus {
  outline: 2px solid #A8B7AE;
  outline-offset: 2px;
}

/* Selection effect */
::selection {
  background: #B6D7C8;
  color: #2D3E34;
}

/* SUCCESS/THANKS PAGE STYLE */
.text-section .primary-cta { margin-top: 18px; display: inline-block; }

/* ===========================
   END OF STYLE.CSS
=========================== */
