/* =====================
  CSS RESET & NORMALIZATION
======================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1d3d26;
  background: #F8FAF5;
  min-height: 100vh;
  line-height: 1.6;
}
a {
  color: #245032;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #b89a48;
  outline: none;
}
ul, ol {
  margin-left: 24px;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}
:focus {
  outline: 2px solid #b89a48;
  outline-offset: 2px;
}

/* =====================
  BRAND & VARS
======================== */
:root {
  --primary: #245032;
  --primary-dark: #1d3d26;
  --secondary: #ffffff;
  --secondary-light: #F8FAF5;
  --accent: #b89a48;
  --accent2: #B19A5B;
  --error: #EF476F;
  --shadow: 0 4px 24px rgba(36,80,50,0.08);
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', 'Comic Sans MS', Arial, sans-serif;
}

/* =====================
  TYPOGRAPHY
======================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.4rem;
}
h4 {
  font-size: 1.1rem;
}
.subheadline {
  font-size: 1.2rem;
  color: var(--accent2);
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
p, li {
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: #293C2B;
}
strong {
  font-weight: 700;
  color: #245032;
}
.text-section {
  margin-top: 0;
  margin-bottom: 24px;
}

/* =====================
  LAYOUT CONTAINERS (Flexbox Only)
======================== */
.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 18px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--secondary);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 18px;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 260px;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px rgba(36,80,50,0.13);
  transform: translateY(-6px) scale(1.03) rotate(-1deg);
}
.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;
}

/* Feature grid for index & program */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fffbe6;
  border: 2.5px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(184,154,72,0.12);
  padding: 28px 20px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  position: relative;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.22s;
}
.feature-grid > div:hover {
  box-shadow: 0 10px 28px rgba(36,80,50,0.14);
  border-color: var(--primary);
  transform: scale(1.045) rotate(0.5deg);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =====================
  TESTIMONIAL CARDS
======================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 6px 28px rgba(36,80,50,0.07);
  border: 2px solid #F5ECD5;
  min-width: 220px;
  max-width: 530px;
  color: #232323;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 36px rgba(36,80,50,0.15);
  border-color: var(--accent2);
  transform: scale(1.03) rotate(-0.5deg);
}
.testimonial-card strong {
  display: block;
  font-size: 1.08rem;
  color: var(--primary-dark);
  margin-top: 6px;
}
.star-rating {
  font-size: 1.4em;
  color: var(--accent);
  letter-spacing: 2px;
  font-family: var(--font-display);
  margin-top: 4px;
}

/* =====================
  BUTTONS
======================== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 42px;
  padding: 14px 36px;
  margin-top: 7px;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  box-shadow: 0 3px 20px rgba(184, 154, 72, 0.09);
  text-shadow: 1px 1px 0 rgba(255,255,255,0.07);
  position: relative;
  letter-spacing: 0.03em;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 8px 24px rgba(36,80,50,0.14);
  transform: translateY(-2px) scale(1.06);
}
.btn-secondary {
  background: var(--primary);
  color: var(--secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(36,80,50,0.11);
  transform: translateY(-2px) scale(1.04);
}

/* =====================
  HEADER, NAV & MOBILE MENU
======================== */
header {
  width: 100%;
  background: var(--secondary);
  padding: 20px 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  position: relative;
}
header > a img {
  height: 43px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 4px 11px;
  border-radius: 12px;
  transition: background 0.15s, color 0.18s;
}
header nav a:hover, header nav a.active {
  background: var(--accent2);
  color: #fff;
}
header .btn-primary {
  margin-left: 28px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 700;
}

/* HAMBURGER MENU (mobile-menu-toggle) */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 15px;
  top: 18px;
  width: 49px;
  height: 49px;
  background: var(--accent2);
  color: var(--primary-dark);
  font-size: 2.2rem;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(36,80,50,0.11);
  z-index: 140;
  align-items: center;
  justify-content: center;
  transition: background 0.17s, color 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
  color: #fff;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: var(--secondary);
  z-index: 200;
  transform: translateX(-120vw);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.5,0.85,0.55,1.1), opacity 0.27s;
  box-shadow: 0 4px 50px rgba(36,80,50,0.24);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--accent2);
  width: 42px;
  height: 42px;
  font-size: 2rem;
  color: var(--primary-dark);
  border-radius: 50%;
  margin: 24px 20px 0 0;
  box-shadow: 0 1px 6px rgba(184,154,72,0.13);
  transition: background 0.15s, color 0.13s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 60px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary-dark);
  padding: 6px 28px;
  border-radius: 18px;
  transition: background 0.17s, color 0.13s;
  width: 80vw;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent2);
  color: #fff;
}

/* =====================
  MAIN LAYOUT & SECTIONS
======================== */
main {
  margin-top: 28px;
  margin-bottom: 70px;
  min-height: 62vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 28px;
  box-sizing: border-box;
}
section:nth-child(even) {
  background: #f2f8e9;
}
section .container {
  width: 100%;
  max-width: 1120px;
}

/* Cards for feature or info (generic) */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  align-items: start;
}

/* =====================
  TABLES (Membership)
======================== */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(36,80,50,0.08);
  margin: 24px 0 24px 0;
  overflow: hidden;
  font-family: var(--font-body);
}
thead {
  background: #eaf6da;
}
th, td {
  padding: 18px 10px;
  text-align: left;
  font-size: 1.06rem;
}
th {
  font-family: var(--font-display);
  font-weight: bold;
  color: var(--primary-dark);
}
tbody tr {
  border-bottom: 1.5px solid #f1ebdd;
}
tr:last-child {
  border-bottom: none;
}

/* =====================
  FOOTER
======================== */
footer {
  width: 100%;
  background: var(--primary-dark);
  color: var(--secondary);
  padding: 42px 0 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-left: 24px;
  flex: 1 1 220px;
}
.footer-info img {
  height: 39px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  margin-right: 24px;
  flex: 1 1 160px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 3px 8px;
  border-radius: 9px;
  transition: background 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: var(--primary-dark);
}

/* =====================
 COOKIE CONSENT BANNER
======================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 26px 34px 20px 24px;
  gap: 18px;
  z-index: 400;
  box-shadow: 0 -2px 16px rgba(36,80,50,0.15);
  font-size: 1.08rem;
  animation: cookieFadeIn 0.9s cubic-bezier(.32,.72,.36,1);
}
@keyframes cookieFadeIn {
  from {opacity: 0; transform: translateY(40px);}
  to {opacity: 1; transform: none;}
}
.cookie-banner p {
  margin-right: auto;
  max-width: 410px;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-banner .cookie-btn, .cookie-banner .cookie-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 19px;
  border: none;
  margin-left: 2px;
  margin-bottom: 2px;
  background: var(--accent2);
  color: var(--primary-dark);
  transition: background 0.16s, color 0.15s, box-shadow 0.19s;
  box-shadow: 0 1px 6px rgba(184,154,72,0.13);
  cursor: pointer;
}
.cookie-banner .cookie-btn.reject {
  background: #fff;
  color: var(--accent2);
  border: 2px solid var(--accent2);
}
.cookie-banner .cookie-btn.accept:hover, .cookie-banner .cookie-btn.accept:focus {
  background: #fff;
  color: var(--primary);
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: var(--accent2);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: var(--accent2);
  border: 2px solid var(--accent2);
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--primary-dark);
  color: #fff;
}
/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 401;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(29,61,38,0.37);
  align-items: center;
  justify-content: center;
  animation: cookieModalBgIn 0.2s;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookieModalBgIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--primary-dark);
  border-radius: 18px;
  box-shadow: 0 8px 38px rgba(36,80,50,0.23);
  padding: 38px 28px 27px 28px;
  max-width: 390px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieModalIn 0.17s cubic-bezier(.64,.7,.36,1.2);
}
@keyframes cookieModalIn {
  from { transform: scale(0.93); opacity: 0;} to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 9px;
  color: var(--primary);
}
.cookie-modal label {
  font-family: var(--font-body);
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  cursor: pointer;
}
.cookie-modal input[type="checkbox"]:not(:disabled) {
  accent-color: var(--accent2);
}
.cookie-modal input[type="checkbox"]:disabled {
  accent-color: var(--primary-dark);
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 13px;
}
.cookie-modal .modal-btn, .cookie-modal .modal-btn-close {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  padding: 9px 22px;
  background: var(--accent);
  color: var(--primary-dark);
  cursor: pointer;
  transition: background 0.17s, color 0.12s;
}
.cookie-modal .modal-btn:hover, .cookie-modal .modal-btn:focus {
  background: var(--primary-dark);
  color: #fff;
}
.cookie-modal .modal-btn-close {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent2);
}
.cookie-modal .modal-btn-close:hover {
  background: var(--accent2);
  color: #fff;
}

/* =====================
  INTERACTIVE EFFECTS & PLAYFUL TOUCHES
======================== */
/* Animate SVG Icons slightly on hover */
.feature-grid img, .text-section img {
  filter: drop-shadow(0 3px 6px rgba(184,154,72,0.16));
  transition: transform 0.15s;
}
.feature-grid > div:hover img, .text-section img:hover {
  transform: rotate(-8deg) scale(1.12);
}

/* Random playful background bubbles for main header */
@media (min-width: 680px) {
  section:first-of-type .container {
    position: relative;
    overflow: visible;
  }
  section:first-of-type .container:before, section:first-of-type .container:after {
    content: '';
    position: absolute;
    border-radius: 999px;
    z-index: 0;
    opacity: 0.19;
    pointer-events: none;
  }
  section:first-of-type .container:before {
    top: -55px; left: -55px; width: 140px; height: 140px;
    background: var(--accent);
    filter: blur(14px);
  }
  section:first-of-type .container:after {
    bottom: -84px; right: -38px; width: 120px; height: 120px;
    background: var(--primary);
    filter: blur(12px);
  }
}

/* Fun micro-interactions for section headings */
h2, .feature-grid h3, .content-wrapper h3 {
  position: relative;
}
h2:after, .feature-grid h3:after, .content-wrapper h3:after {
  content: '';
  display: block;
  width: 36px;
  height: 6px;
  background: var(--accent2);
  border-radius: 4px;
  position: absolute;
  left: 0;
  bottom: -8px;
  opacity: 0.39;
}

/* =====================
  RESPONSIVE STYLES
======================== */
@media (max-width: 1030px) {
  .feature-grid {
    gap: 18px;
  }
  .footer-info, .footer-nav {
    margin-left: 12px;
    margin-right: 12px;
  }
}
@media (max-width: 920px) {
  .content-grid, .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid > div {
    max-width: 99%;
  }
  .footer-info, .footer-nav {
    align-items: flex-start;
    margin-left: 0; margin-right: 0;
  }
  footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 26px;
  }
}
@media (max-width: 840px) {
  .container {
    padding: 0 6px;
  }
  section {
    padding: 30px 3px;
    margin-bottom: 45px;
  }
  header nav {
    gap: 14px;
  }
  header .btn-primary {
    margin-left: 8px;
    padding: 10px 16px;
  }
}
@media (max-width: 768px) {
  header nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header {
    justify-content: flex-start;
    gap: 2vw;
    padding-bottom: 8px;
  }
  main {
    margin-top: 10px;
    margin-bottom: 35px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section {
    margin-bottom: 36px;
    padding: 22px 5px;
  }
  .feature-grid, .content-grid {
    gap: 13px;
    flex-direction: column;
    align-items: stretch;
  }
  .card, .feature-grid > div, .testimonial-card {
    min-width: unset;
    max-width: 100%;
    padding: 17px 8px;
  }
  .card-container {
    gap: 14px;
  }
  .footer-nav, .footer-info {
    align-items: flex-start;
    margin-left: 0; margin-right: 0;
    min-width: 0;
  }
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.64rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  h3 {
    font-size: 1.05rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 1rem;
    padding: 9px 16px;
  }
  .testimonial-card, .card {
    padding: 14px 3px;
    font-size: 1rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    font-size: 1rem;
    padding: 11px 6vw 11px 4vw;
  }
  .cookie-banner-buttons {
    gap: 7px;
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-modal {
    padding: 16px 5vw 12px 5vw;
    max-width: 95vw;
  }
}

/* =====================
  PLAYFUL/DYNAMIC SCROLL & MICRO-ANIMATIONS
======================== */
section, .testimonial-card, .feature-grid > div, .card {
  will-change: transform, opacity;
  /* animate on scroll via intersection observer in JS */
}

/* =====================
  OTHER
======================== */
::-webkit-scrollbar {
  width: 9px;
  background: #F8FAF5;
}
::-webkit-scrollbar-thumb {
  background: var(--accent2);
  border-radius: 6px;
}

/* =====================
  PRINT
======================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .container { box-shadow: none !important; }
  body { background: #fff !important; }
}
