/* MajsterBox | style.css | Warm Friendly Theme | Mobile-First | Flexbox Only */

/* ========================== */
/* 0. CSS RESET & BASE        */
/* ========================== */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #F6F6F0;
  color: #2D2D2D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  width: 100%;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #20426A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #46B06A;
}
ul, ol {
  padding-left: 1.4em;
}
strong, b {
  font-weight: 600;
}

/* ========================== */
/* 1. TYPOGRAPHY SCALE        */
/* ========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #20426A;
  line-height: 1.15;
  margin-bottom: 12px;
}
h1 { font-size: 2.5rem; margin-bottom: 22px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 1rem; }
p, ul, ol, table, .author { margin-bottom: 16px; }
.author { font-size: 1rem; font-style: italic; color: #20426A; }

@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}
@media (min-width: 992px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

/* ========================== */
/* 2. LAYOUT CONTAINERS       */
/* ========================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(70, 176, 106, 0.07);
  margin-bottom: 32px;
  padding: 28px 18px;
}
@media (min-width: 768px) {
  .content-wrapper {
    padding: 38px 36px;
    margin-bottom: 44px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ============================= */
/* 3. HEADER, NAV & LOGO         */
/* ============================= */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(32,66,106,0.04);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
.logo img {
  height: 38px;
  width: auto;
}
.main-nav {
  display: none;
}
.btn-primary {
  background: #46B06A;
  color: #fff; /* always white text */
  padding: 10px 32px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(70,176,106,0.10);
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.15s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #20426A;
  color: #fff;
  box-shadow: 0 4px 18px rgba(70,176,106,0.18);
  transform: translateY(-1px) scale(1.05);
}
/* Hamburger button */
.mobile-menu-toggle {
  background: #FFF;
  color: #20426A;
  font-size: 2.1rem;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  box-shadow: 0 1px 8px rgba(32,66,106,0.06);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F6F6F0;
  color: #46B06A;
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
    font-size: 1.1rem;
  }
  .main-nav a {
    color: #20426A;
    padding: 8px 10px;
    border-radius: 18px;
    transition: background 0.20s, color 0.18s;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .main-nav a:hover, .main-nav a:focus {
    background: #F6F6F0;
    color: #46B06A;
  }
  .mobile-menu-toggle { display: none; }
}

/* ============================= */
/* 4. MOBILE MENU                */
/* ============================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100vw;
  background: rgba(70,176,106,0.94);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,.2,.05,1.0);
}
.mobile-menu.open {
  transform: translateX(0%);
  box-shadow: 0 0 40px 0 rgba(32,66,106,0.12);
}
.mobile-menu-close {
  background: #fff;
  color: #20426A;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 44px; height: 44px;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  box-shadow: 0 1px 10px rgba(32,66,106,0.07);
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #20426A;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  padding: 40px 38px 0 38px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 0;
  border-radius: 8px;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus  {
  background: #f8fbf7;
  color: #46B06A;
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* ============================ */
/* 5. HERO & CTA                */
/* ============================ */
.hero {
  background: linear-gradient(94deg, #F6F6F0 70%, #F6E5D0 100%);
  border-radius: 28px;
  padding: 36px 18px 36px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: 0 6px 36px rgba(70,176,106,0.07);
  margin-bottom: 32px;
}
.hero h1 {
  color: #20426A;
  margin-bottom: 10px;
  font-size: 2.2rem;
}
.hero p {
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 18px auto;
}
.hero .btn-primary {
  margin-top: 8px;
}
.cta {
  background: #FFF8E9;
  border-radius: 26px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(32,66,106,0.06);
  padding: 34px 14px;
  margin-bottom: 0;
}
.cta h2 {
  color: #20426A;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero { padding: 60px 50px; }
  .cta { padding: 48px 24px; }
  .hero h1 { font-size: 2.8rem; }
}

/* ============================== */
/* 6. FLEXBOX COMPONENTS           */
/* ============================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 18px rgba(32,66,106,0.09);
  padding: 18px 18px 18px 18px;
  transition: box-shadow 0.22s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 36px rgba(70,176,106,0.12);
  transform: translateY(-4px) scale(1.01);
}
.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: center;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 22px;
  background: #fff8e8;
  color: #20426A;
  box-shadow: 0 3px 24px rgba(32,66,106,0.09);
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px rgba(70,176,106,0.15);
  transform: scale(1.025);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 10px rgba(32,66,106,0.06);
  margin-bottom: 20px;
}

/* ============================ */
/* 7. LANDING/FLEX FEATURES     */
/* ============================ */
.features, .feature-grid, .service-list, .service-grid, .features-list, .workshop-topics-grid, .upcoming-workshops-calendar, .featured-posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature, .service, .workshop-topic, .workshop-details, .callout-box, .community-focus, .category-description, .blog-tags, .blog-categories-list, .category-list {
  flex: 1 1 240px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 10px rgba(32,66,106,0.06);
  padding: 20px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.12s;
}
.features-list,
.features .feature,
.services .service,
.workshop-topics-grid .workshop-topic {
  background: #fff8e9;
}
.feature img, .features-list .feature img {
  height: 38px; width: 38px; margin-bottom: 10px;
}

/* ------------------------- */
/* BLOG SPECIFIC             */
/* ------------------------- */
.featured-posts-grid {
  gap: 24px;
  margin-bottom: 20px;
}
.featured-posts-grid article {
  padding: 18px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(70,176,106,0.06);
  flex: 1 1 220px;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.blog-tags span {
  background: #fff8e8;
  color: #20426A;
  border-radius: 9px;
  font-size: 1rem;
  padding: 3px 15px;
  margin-bottom: 6px;
  font-weight: 500;
}

/* =========================== */
/* 8. TABLE & LISTS            */
/* =========================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(70,176,106,0.06);
}
thead {
  background: #FFECD0;
}
th, td {
  padding: 14px 10px;
  text-align: left;
  font-size: 1rem;
}
th {
  color: #20426A;
  font-weight: 700;
  border-bottom: 2px solid #e5e5e5;
}
tbody tr:not(:last-child) {
  border-bottom: 1px solid #f5e6c2;
}

ul, ol {
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 10px;
}

/* ============================== */
/* 9. TESTIMONIALS & SLIDERS      */
/* ============================== */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin: 10px 0 0 0;
}
.client-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin: 18px 0 14px 0;
}
.client-logos-row img {
  background: #fff;
  padding: 10px 16px;
  border-radius: 15px;
  box-shadow: 0 1px 8px rgba(70,176,106,0.11);
  height: 46px;
}

/* ============================== */
/* 10. FOOTER                     */
/* ============================== */
footer {
  margin-top: 44px;
  background: #20426A;
  color: #fff;
  padding: 32px 0 16px 0;
  border-radius: 28px 28px 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.84;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 12px;
  padding: 5px 9px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #46B06A;
  color: #fff;
  opacity: 1;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 1rem;
  opacity: 0.92;
}
.footer-brand img {
  height: 28px;
  width: auto;
}

/* ============================== */
/* 11. COOKIE BANNER + MODAL      */
/* ============================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: #fff8e8;
  color: #20426A;
  box-shadow: 0 -2px 24px rgba(32,66,106,0.16);
  border-radius: 22px 22px 0 0;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(.77,.2,.05,1.0), opacity 0.24s;
  opacity: 1; visibility: visible;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner button {
  border-radius: 26px;
  border: none;
  padding: 7px 24px;
  font-size: 1.08rem;
  font-weight: 600;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s;
}
.cookie-banner .accept {
  background: #46B06A;
  color: #fff;
  box-shadow: 0 2px 8px rgba(70,176,106,0.10);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #20426A;
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: #46B06A;
  border: 1.5px solid #46B06A;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #F6F6F0;
}
.cookie-banner .settings {
  background: #fff8e8;
  color: #20426A;
  border: 1.5px solid #20426A;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #FFECD0;
}

/* Cookie modal (hidden by default) */
.cookie-modal {
  position: fixed;
  z-index: 2100;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(32,66,106,0.30);
  transition: opacity 0.32s;
  padding: 32px 0;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff8e8;
  color: #20426A;
  padding: 32px 18px;
  border-radius: 26px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 4px 40px rgba(70,176,106,0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-content h2 {
  font-size: 1.5rem;
  color: #20426A;
  margin-bottom: 10px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  flex: 1;
  font-weight: 500;
}
.cookie-category input[type="checkbox"] {
  accent-color: #46B06A;
  width: 20px; height: 20px;
  margin-right: 4px;
  border-radius: 6px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 12px; right: 16px;
  background: #46B06A;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.cookie-modal .close-cookie-modal:hover {
  background: #20426A;
}

/* ============================== */
/* 12. RESPONSIVE LAYOUT          */
/* ============================== */
@media (max-width: 991px) {
  .main-nav { display: none; }
  .btn-primary { font-size: 1rem; padding: 10px 22px; }
}
@media (max-width: 768px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .content-wrapper, .section {
    padding: 20px 7px;
    margin-bottom: 22px;
  }
  .hero h1, .hero h2 { font-size: 1.35rem; }
  .features, .feature-grid, .service-list, .service-grid, .features-list,
  .workshop-topics-grid, .upcoming-workshops-calendar, .featured-posts-grid {
    flex-direction: column;
    gap: 12px;
  }
  .features .feature, .service, .feature-item, .workshop-topic, .workshop-details, .category-description {
    padding: 14px 9px;
  }
  .text-image-section { flex-direction: column; gap: 14px; }
  .testimonial-slider { gap: 12px; flex-direction: column; }
}
@media (min-width: 769px) {
  .features, .feature-grid, .service-list, .service-grid, .features-list, .workshop-topics-grid, .upcoming-workshops-calendar, .featured-posts-grid {
    flex-direction: row;
  }
}

/* ===================== */
/* 13. GENERAL STYLES    */
/* ===================== */
input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
::-webkit-input-placeholder { color: #20426A; opacity: 0.67; }
::-moz-placeholder       { color: #20426A; opacity: 0.67; }
:-ms-input-placeholder   { color: #20426A; opacity: 0.67; }
::placeholder           { color: #20426A; opacity: 0.67; }

hr {
  border: none;
  border-top: 1.5px solid #e8e8e3;
  margin: 24px 0;
}

/* ===================== */
/* 14. MISC UTILITIES    */
/* ===================== */
.text-section {
  padding: 10px 0 0 0;
}
.address-block, .email-block, .hours-block {
  margin-bottom: 14px;
  padding: 12px 8px;
  background: #f6f6f0;
  border-radius: 13px;
  font-size: 1.01rem; color: #525252;
}
.faq-short ul, .support-options, .recent-posts-list, .workshop-details-list {
  margin-left: 0;
  padding-left: 1.1em;
  margin-bottom: 20px;
}
.faq-short h3 {
  color: #46B06A;
  font-size: 1.18rem;
  margin-bottom: 10px;
}
/* Responsive text alignment for tables and lists */
@media (max-width: 600px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  thead { display: none; }
  td {
    padding: 12px 9px;
    border-bottom: 1px solid #faecce;
    position: relative;
  }
}

/* ==================== */
/* 15. MICRO-ANIMATION  */
/* ==================== */
.btn-primary,
.mobile-menu-toggle,
.mobile-menu-close,
.cookie-banner button,
.cookie-modal .close-cookie-modal {
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
}
.feature, .service, .workshop-topic, .workshop-details, .card {
  transition: box-shadow 0.15s, transform 0.17s;
}
.feature:hover, .service:hover, .workshop-topic:hover, .callout-box:hover {
  box-shadow: 0 8px 32px rgba(32,66,106,0.08),0 2px 18px rgba(70,176,106,0.10);
  transform: scale(1.018);
}

/* ==================== */
/* 16. DARK MODE (future)*/
/* ==================== */
/* Skipped for now (no body class). */

/* ==================== */
/* 17. PRINT            */
/* ==================== */
@media print {
  *, *:before, *:after { background: none !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; }
  a, a:visited { color: #20426A !important; text-decoration: underline; }
  .btn-primary, .cookie-banner, .cookie-modal { display: none !important; }
}

/* ======================== */
/* END OF WARM FRIENDLY CSS */
/* ======================== */