/* --- CSS RESET & BASE TYPOGRAPHY --- */
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;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: #F1F6FB;
  color: #223A5E;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: #C05E27;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #223A5E;
}
ul, ol {
  padding-left: 24px;
}
strong {
  font-weight: 700;
}


/* --- VARIABLES for COLOR PALETTE --- */
:root {
  --color-primary: #223A5E;
  --color-secondary: #F1F6FB;
  --color-accent: #C05E27;
  --color-green: #8DA16B; /* for nature accent */
  --color-brown: #B8A685; /* natural earthy feel */
  --color-bg: #F6F5F0;
  --color-bg-dark: #223A5E;
  --color-text: #223A5E;
  --color-muted: #6B7C6A;
  --color-white: #FFFFFF;
  --color-action: #E17A47;
}


/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

p, li {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.section > h2, .section > h1 {
  margin-bottom: 24px;
}


/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: 32px;
  box-shadow: 0 4px 16px rgba(34,58,94,0.07);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- CARDS, FEATURES, TESTIMONIALS --- */
.feature-grid, .features, .card-container, .group-benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-card, .card {
  flex: 1 1 260px;
  background: var(--color-white);
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(141,161,107,0.13);
  padding: 32px 20px 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.2s;
  border: 1.5px solid #E7EFE1;
}
.feature-card:hover, .card:hover {
  box-shadow: 0 8px 32px rgba(192,94,39,0.17);
  transform: translateY(-4px) scale(1.02);
}
.card-container > .card { margin-bottom: 20px; }

.testimonials-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 4px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  background: #FFF;
  color: #223A5E;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(34, 58, 94, 0.07);
  border-left: 5px solid var(--color-green);
  flex: 1 1 320px;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-style: italic;
  color: #223A5E;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--color-muted);
  font-size: 0.99rem;
  font-style: normal;
}


/* --- SECTIONS WITH FLEXBOX LAYOUT PATTERNS --- */
.content-grid, .about-preview, .cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Service/Benefits Lists */
.service-list, .benefits-list, .techniques-overview ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-list li, .benefits-list li {
  background: #E7EFE1;
  padding: 18px 20px;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1.5px 7px rgba(141,161,107,0.07);
  color: #223A5E;
}
.course-highlights {
  margin-top: 16px;
  background: #FFF;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(192,94,39,0.07);
  color: #223A5E;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(133deg, #F6F5F0 66%, #E7EFE1 100%);
  padding: 60px 0 60px 0;
  border-radius: 0 0 48px 48px / 0 0 40px 40px;
  box-shadow: 0 7px 32px rgba(34, 58, 94, 0.04);
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 650px;
}
.hero h1 {
  color: var(--color-primary);
}


/* --- CTA BUTTONS --- */
.cta-btn {
  display: inline-block;
  background: var(--color-green);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 28px 22px 28px 22px;
  box-shadow: 0 3px 18px rgba(34,58,94,0.08);
  border: none;
  cursor: pointer;
  margin: 6px 0;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.12s, box-shadow 0.17s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-accent);
  color: #FFF;
  box-shadow: 0 6px 24px rgba(192,94,39,0.13);
  transform: translateY(-2px) scale(1.025);
}
.cta-btn.accent {
  background: var(--color-accent);
  color: #fff;
}
.cta-btn.accent:hover, .cta-btn.accent:focus {
  background: var(--color-green);
}


/* --- HEADER & MAIN NAV --- */
header {
  background: var(--color-secondary);
  box-shadow: 0 1px 20px rgba(34,58,94,0.04);
  width: 100%;
  z-index: 100;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E7EFE1;
  color: var(--color-accent);
}
header img {
  height: 44px;
  width: auto;
}


/* --- FOOTER --- */
footer {
  background: #E7EFE1;
  color: var(--color-primary);
  padding: 40px 0 0 0;
  margin-top: 70px;
  border-radius: 40px 40px 0 0 / 36px 36px 0 0;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 22px;
}
.footer-brand img {
  height: 48px;
  width: auto;
  margin-right: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 2px 0;
  transition: color 0.15s;
}
.footer-nav a:hover{
  color: var(--color-accent);
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--color-text);
  max-width: 260px;
}
.footer-contact a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color .14s;
}
.footer-contact a:hover {
  color: var(--color-green);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 10px;
  padding: 6px 10px;
  z-index: 306;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(216,226,206,0.98);
  box-shadow: 0 0 32px rgba(34,58,94,0.13);
  z-index: 305;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.8,.2,.4,1.11);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--color-accent);
  background: none;
  border: none;
  margin: 18px 0 0 20px;
  cursor: pointer;
  align-self: flex-start;
  z-index: 307;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 46px 0 0 34px;
}
.mobile-nav a {
  font-size: 1.28rem;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: 12px;
  transition: background 0.16s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E17A47;
  color: #fff;
}

/* Hide/show nav on mobile */
@media (max-width: 1000px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 13px;
    padding-right: 13px;
  }
  .hero {
    padding: 36px 0 32px 0;
    border-radius: 0 0 34px 34px / 0 0 20px 20px;
  }
}

/* Responsive layout for stacked columns */
@media (max-width: 900px) {
  .feature-grid, .testimonials-wrapper, .footer .container, .group-benefits-grid {
    flex-direction: column;
    gap: 16px;
  }
  footer .container {
    gap: 16px;
  }
}

/* Responsive adjustments for text-image-sections & grid structures */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  h1, .hero h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .feature-card, .card {
    padding: 20px 10px;
  }
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 -4px 18px rgba(34,58,94,0.11);
  z-index: 1009;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 18px;
  border-radius: 21px 21px 0 0 / 17px 17px 0 0;
  font-size: 1rem;
  transition: transform 0.22s cubic-bezier(.9,.07,.37,1.28), opacity 0.14s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
}
.cookie-banner-show {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  background: var(--color-green);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.secondary {
  background: #E7EFE1;
  color: var(--color-primary);
  border: 1.5px solid var(--color-green);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--color-green);
  color: #fff;
}

.cookie-modal {
  display: none;
  position: fixed;
  z-index: 1013;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,58,94,0.21);
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.32s;
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal-box {
  background: #fff;
  padding: 36px 24px 28px 24px;
  border-radius: 28px;
  max-width: 370px;
  box-shadow: 0 8px 42px rgba(34,58,94,0.14);
  color: #223A5E;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal-box h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-category label {
  flex: 1 1 auto;
  color: var(--color-text);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-green);
  width: 20px; height: 20px;
}
.cookie-close-btn {
  position: absolute;
  top: 13px; right: 14px;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 17px 6px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-buttons {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-modal-box {
    max-width: 98vw;
    padding: 20px 7px 16px 10px;
  }
}


/* --- ORGANIC VISUALS & SHAPE TOUCHES --- */
.section, .feature-card, .testimonial-card, .cookie-modal-box, .hero, .cta-btn {
  border-radius: 21px 42px 34px 24px / 19px 39px 27px 28px;
}
.card, .about-preview, .course-highlights {
  border-radius: 37px 22px 28px 17px / 13px 36px 21px 19px;
}

/* --- ORGANIC SHADOWS --- */
.section, .feature-card, .testimonial-card, .cookie-modal-box, .hero {
  box-shadow: 0 3.5px 17px rgba(141,161,107,0.09);
}

.feature-card img {
  margin-bottom: 22px;
  height: 46px; width: auto;
  background: #F6F5F0;
  border-radius: 13px 11px 17px 11px / 11px 13px 11px 17px ;
  box-shadow: 0 2px 7px rgba(192,94,39,0.08);
}

/* --- ABOUT / PREVIEWS --- */
.about-preview {
  background: #FFF;
  border: 1.5px solid #E7EFE1;
  margin-bottom: 28px;
  border-radius: 28px 20px 32px 18px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}


/* --- FORMATTING HELPERS --- */
.muted, .text-muted {
  color: var(--color-muted);
  font-size: 0.98rem;
}
.emph {
  color: var(--color-accent);
  font-weight: 700;
}

/* --- TABLES AND LISTS --- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0 28px 0;
}
th, td {
  border: 1px solid #E7EFE1;
  padding: 10px 8px;
  text-align: left;
}
th {
  background: #E7EFE1;
}
b, strong {
  font-weight: 700;
}

/* --- UTILITY CLASSES --- */
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.bg-white { background: #fff; }
.bg-green { background: #E7EFE1; }
.text-accent { color: var(--color-accent); }


/* --- FOCUS OUTLINE FOR ACCESSIBILITY --- */
a:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-close:focus, .cookie-close-btn:focus {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
}

/* HIDE focus if not keyboard-used - this requires JS for production but is ok for now */
:focus:not(:focus-visible) {
  outline: none;
}

/* --- SMALL HELPER FOR JS TOGGLE --- */
.mobile-menu {
  will-change: transform;
}

/* --- ORGANIC SCROLLBAR --- */
body, .mobile-menu, textarea {
  scrollbar-width: thin;
  scrollbar-color: var(--color-green) #E1EEDF;
}
body::-webkit-scrollbar {
  width: 9px;
  background-color: #E1EEDF;
}
body::-webkit-scrollbar-thumb {
  background: var(--color-green);
  border-radius: 22px;
}

/* --- END OF CSS --- */
