/* ---------------------------
   BONAPSATIN MINIMALIST CSS
   Applies to all pages
-----------------------------*/

/* --- Normalize and Reset --- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
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, menu, 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, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FAFAF8;
  color: #284D63;
  font-family: 'Lato', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.14s;
}
img {
  border-style: none;
  max-width: 100%;
  vertical-align: middle;
}
button {
  appearance: none;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #284D63;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 8px; }
h4 { font-size: 1.1rem; margin-bottom: 4px; }
p, ul, ol, li, .btn-primary, .btn-secondary {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 400;
}
p { font-size: 1.06rem; margin-bottom: 16px; color: #2A3B47; }
strong { font-weight: 700; color: #284D63; }
em { color: #6BA38D; }

@media (max-width: 600px) {
h1 { font-size: 1.65rem; }
h2 { font-size: 1.32rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 0.98rem; }
p { font-size: 0.98rem; }
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 700px;
  margin: 0 auto;
}

/* --- Sections & White Space --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(40,77,99,0.04);
}
section.hero {
  background: #F3E6C1 !important;
  padding-top: 56px;
  padding-bottom: 56px;
  box-shadow: 0 2px 36px 0 rgba(40,77,99,0.08);
}
section.cta {
  background: #6CA38D;
  color: #fff;
  box-shadow: 0 2px 16px 0 rgba(40,77,99,0.07);
}
section.cta .btn-primary {
  background: #fff;
  color: #284D63;
}
@media (max-width: 768px) {
  section, section.hero, section.cta {
    margin-bottom: 36px;
    padding: 24px 8px;
    border-radius: 10px;
  }
}

/* --- Header --- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #F3E6C1;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 950;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: #284D63;
  font-size: 1.02rem;
  padding: 7px 13px;
  border-radius: 7px;
  transition: background 0.18s;
}
header nav a:hover,
header nav a:focus {
  background: #F3E6C1;
}
.btn-primary {
  background: #284D63;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 26px;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(40,77,99,0.10);
  border: none;
  transition: background 0.18s, box-shadow 0.20s, color 0.14s;
  display: inline-block;
  margin-left: 10px;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #6CA38D;
  color: #284D63;
  box-shadow: 0 4px 18px 0 rgba(40,77,99,0.16);
}
.btn-secondary {
  background: #F3E6C1;
  color: #284D63;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  margin: 10px 0;
  transition: background 0.16s, color 0.14s;
  box-shadow: 0 2px 8px 0 rgba(40,77,99,0.07);
  cursor: pointer;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #6CA38D;
  color: #fff;
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  background: #F3E6C1;
  font-size: 2rem;
  border-radius: 10px;
  padding: 4px 16px 3px 16px;
  margin-left: 12px;
  color: #284D63;
  transition: background 0.16s;
  z-index: 1003;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #6CA38D;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: #fff;
  box-shadow: 0 2px 24px rgba(40,77,99,0.13);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 0 0 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.55,.13,.34,.92);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  margin: 0 26px 13px 0;
  background: #F3E6C1;
  border-radius: 100px;
  padding: 2px 12px;
  color: #284D63;
  transition: background 0.16s, color 0.14s;
  z-index: 1103;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #6CA38D;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-left: 32px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #284D63;
  padding: 12px 0;
  border-radius: 6px;
  transition: background 0.16s, color 0.14s;
  width: fit-content;
  min-width: 138px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F3E6C1;
  color: #6CA38D;
}
@media (max-width: 1024px) {
  header nav, header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .mobile-nav {
    margin-left: 18px;
    gap: 14px;
  }
}

/* --- Footer --- */
footer {
  background: #fff;
  border-top: 1px solid #F3E6C1;
  padding: 32px 0 18px 0;
}
footer .container {
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
footer nav {
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-bottom: 6px;
}
footer nav a {
  font-size: 0.97rem;
  color: #274454;
  padding: 4px 9px;
  border-radius: 5px;
  transition: background 0.14s;
}
footer nav a:hover {
  background: #F3E6C1;
}
footer p {
  font-size: 0.96rem;
  color: #aaa;
  margin-top: 3px;
}

/* --- Card & Flex Patterns --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(40,77,99,0.03);
  padding: 32px 26px;
  margin-bottom: 20px;
  position: relative;
}
.card:last-child {
  margin-bottom: 0;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- Feature/Grid Lists --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 16px;
}
.feature-grid li {
  background: #FAFAF8;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(108,163,141,0.04);
  flex: 1 1 230px;
  min-width: 220px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 0;
}
.feature-grid img {
  width: 38px; height: 38px;
  margin-bottom: 2px;
  opacity: 0.90;
}
@media (max-width: 860px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
}

.service-list, .course-grid, .tool-grid, .story-cards, .blog-snippets, .tip-list-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 8px;
  margin-bottom: 6px;
  align-items: stretch;
}
.service-list > div, .course-grid > div, .tool-grid > div, .story-cards > div, .blog-snippets > article, .tip-list-grid > li {
  flex: 1 1 230px;
  min-width: 220px;
  background: #fafaf8;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(108,163,141,0.04);
  padding: 24px 22px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.16s;
}
.course-grid > div:hover, .tool-grid > div:hover, .service-list > div:hover, .tip-list-grid > li:hover, .blog-snippets > article:hover {
  box-shadow: 0 6px 24px 0 rgba(40,77,99,0.08);
}
.course-grid strong, .service-list span {
  color: #284D63;
  font-weight: 700;
  font-size: 1.03em;
  margin-left: 2px;
}
.featured-tip, .blog-snippets .featured-tip {
  border: 2px solid #6CA38D;
  box-shadow: 0 2px 16px 0 rgba(108,163,141,0.07);
  background: #fff;
}
@media (max-width: 900px) {
  .service-list, .course-grid, .tool-grid, .story-cards, .blog-snippets, .tip-list-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/* --- FAQ, Planner, Other Snippets --- */
.faq-snippets, .planner-downloads, .challenge-highlights {
  margin: 30px 0 8px 0;
  background: #F3E6C1;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(40,77,99,0.06);
  padding: 18px 18px;
}
.faq-snippets h3, .planner-downloads h3, .challenge-highlights h4 {
  margin-bottom: 8px;
}

/* --- Testimonials & Story Cards --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F9FBFC;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(40,77,99,0.08);
  margin-bottom: 20px;
  border: 1px solid #E6E6E6;
  min-width: 0;
}
.testimonial-card strong {
  color: #284D63;
  font-weight: 700;
}
.testimonial-card span {
  color: #FFD700;
  font-size: 1.2rem;
  margin-left: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card p {
  color: #2A3B47;
  margin-bottom: 3px;
  font-size: 1.02rem;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
@media (max-width: 800px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 15px;
  }
}

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

/* --- Contact & Map --- */
.contact-details, .map-embed {
  background: #F3E6C1;
  border-radius: 9px;
  padding: 20px 18px;
  box-shadow: 0 2px 12px rgba(40,77,99,0.03);
  margin: 12px 0 0 0;
}
.map-embed em {
  color: #6CA38D;
}

/* --- Lists & Content Styling --- */
ul, ol {
  margin: 0 0 16px 20px;
  padding-left: 14px;
  list-style: disc inside;
}
.text-section ul, .content-wrapper > ul {
  margin-left: 10px;
  gap: 6px;
}
.text-section li, .content-wrapper li {
  margin-bottom: 7px;
  font-size: 1.02rem;
}
.text-section li:last-child, .content-wrapper li:last-child {
  margin-bottom: 0;
}

/* --- Animation Helper Classes --- */
.fade-in {
  animation: fadeIn 0.66s cubic-bezier(.56,.17,.32,1.04);
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --- Micro-interactions --- */
.btn-primary, .btn-secondary, header nav a, footer nav a, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a {
  transition: background 0.18s, color 0.14s, box-shadow 0.18s, border 0.15s;
}
.card,
.story-cards > .testimonial-card,
.service-list > div,
.tool-grid > div,
.course-grid > div {
  transition: box-shadow 0.16s, transform 0.14s;
}
.card:hover,
.story-cards > .testimonial-card:hover,
.service-list > div:hover,
.tool-grid > div:hover,
.course-grid > div:hover {
  box-shadow: 0 8px 28px 0 rgba(108,163,141,0.11);
  transform: translateY(-4px);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  color: #284D63;
  box-shadow: 0 -2px 18px rgba(40,77,99,0.13);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  border-radius: 18px 18px 0 0;
  gap: 20px;
  width: 97%;
  margin: 0 1.5%;
  font-size: 1.01rem;
  animation: cookie-slide-up 0.5s;
}
@keyframes cookie-slide-up {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button {
  padding: 7px 19px;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #F3E6C1;
  color: #284D63;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  margin-left: 0;
  margin-right: 0;
  transition: background 0.15s, color 0.14s;
  cursor: pointer;
}
.cookie-banner button.accept {
  background: #6CA38D;
  color: #fff;
  font-weight: 600;
}
.cookie-banner button.accept:hover {
  background: #284D63;
  color: #fff;
}
.cookie-banner button.reject {
  background: #fff;
  border: 1.7px solid #6CA38D;
  color: #284D63;
}
.cookie-banner button.reject:hover {
  background: #F3E6C1;
  color: #6CA38D;
  border-color: #284D63;
}
.cookie-banner button.settings {
  background: #F3E6C1;
  color: #284D63;
}
.cookie-banner button.settings:hover {
  background: #6CA38D;
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    width: 99%;
    margin: 0 0.5%;
    padding: 18px 7px;
    font-size: 0.98rem;
    gap: 12px;
  }
}

/* --- Cookie Modal --- */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(40,77,99,0.27);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1250;
  animation: fadeIn 0.3s;
}
.cookie-modal__box {
  background: #fff;
  border-radius: 14px;
  padding: 36px 24px 24px 24px;
  min-width: 310px;
  box-shadow: 0 4px 32px rgba(40,77,99,0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  max-width: 98vw;
}
.cookie-modal__close {
  position: absolute;
  right: 18px;
  top: 13px;
  background: #F3E6C1;
  color: #284D63;
  font-size: 1.5rem;
  border-radius: 100px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.15s;
  z-index: 2200;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #6CA38D;
  color: #fff;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid #F3E6C1;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.07rem;
  color: #284D63;
}
.cookie-category input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: #6CA38D;
  margin-right: 5px;
}
.cookie-category.disabled label, .cookie-category.disabled {
  color: #aaa;
  opacity: 0.80;
  cursor: not-allowed;
}
.cookie-modal__actions {
  margin-top: 7px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
@media (max-width: 520px) {
  .cookie-modal__box {
    min-width: 90vw;
    padding: 17px 7px 17px 9px;
  }
}

/* ---------------------------
   Accessibility & Utilities
-----------------------------*/
:focus {
  outline: 2px dashed #6CA38D;
  outline-offset: 2px;
}
@media (max-width: 450px) {
  h1, h2, h3, h4 {
    word-break: break-word;
  }
}

/* ------ Utility Helper Class ------ */
.mb-0 { margin-bottom: 0 !important; }
.gap-8 { gap: 8px !important; }
.gap-24 { gap: 24px !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }

/* --------------------------
   Print Styles
----------------------------*/
@media print {
  body, html { background: #fff !important; }
  header, footer, .btn-primary, .btn-secondary, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section { box-shadow: none !important; background: #fff !important; }
}
