/* ------------------ RESET & NORMALIZE ------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #f7f6f3;
  color: #1d2b18;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #154273;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #388e3c;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  background: none;
  outline: none;
  box-shadow: none;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ------------------ BRAND COLORS & FONTS (CSS VARIABLES) ------------------ */
:root {
  --primary: #154273;
  --secondary: #f5f5f5;
  --accent: #f2b705;
  --earth-green: #388e3c;
  --earth-brown: #a9825a;
  --soft-white: #fafaf6;
  --text-dark: #223027;
  --text-medium: #384533;
  --shadow: rgba(37, 54, 12, 0.10);
  --shadow-strong: rgba(37, 54, 12, 0.18);
}

/* ------------------ TYPOGRAPHY ------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.75em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.6em;
}
h3 {
  font-size: 1.28rem;
  margin-bottom: 0.5em;
}
h4 {
  font-size: 1.15rem;
}
.subheadline {
  color: var(--earth-green);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 1.5em;
}
p, ul li, ol li {
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 1em;
  color: var(--text-dark);
  font-size: 1rem;
}
strong {
  color: var(--earth-brown);
}
ul.features-list li, ul.categories-filter li {
  font-size: 1.02rem;
}

/* ------------------ LAYOUT BASICS ------------------ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--soft-white);
  border-radius: 32px 32px 64px 24px / 24px 48px 32px 64px; /* organic shape */
  box-shadow: 0 4px 28px var(--shadow);
}
.text-section {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* ------------------ HEADER & NAV ------------------ */
header {
  width: 100%;
  background: var(--soft-white);
  box-shadow: 0 4px 16px var(--shadow);
  z-index: 20;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--primary);
  padding: 7px 12px;
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--earth-green);
  color: #fff;
}
header nav a.cta.primary {
  background: var(--earth-green);
  color: #fff !important;
  font-weight: 700;
  padding: 9px 22px;
  margin-left: 14px;
  border-radius: 24px;
  box-shadow: 0 2px 9px var(--shadow-strong);
  transition: background 0.2s, box-shadow 0.2s;
}
header nav a.cta.primary:hover, header nav a.cta.primary:focus {
  background: var(--accent);
  color: var(--primary) !important;
  box-shadow: 0 3px 18px var(--shadow-strong);
}
header .mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--primary);
  background: none;
  border: none;
  margin-left: 10px;
  z-index: 30;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s;
}
header .mobile-menu-toggle:active, header .mobile-menu-toggle:focus {
  background: var(--earth-green);
  color: #fff;
}

/* ------------------ MOBILE MENU OVERLAY ------------------ */
.mobile-menu {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,44,28,0.88);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.3s cubic-bezier(.65,.05,.36,1), opacity 0.3s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu .mobile-menu-close {
  font-size: 2.4rem;
  color: var(--accent);
  margin: 24px 0 0 22px;
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  z-index: 1010;
  padding: 8px 12px;
  border-radius: 12px;
  transition: background 0.2s;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: var(--earth-green);
  color: #fff;
}
.mobile-menu .mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 60px 0 0 34px;
}
.mobile-menu .mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  color: #fff;
  padding: 10px 0 10px 0;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
  border-radius: 14px;
}
.mobile-menu .mobile-nav a:hover, .mobile-menu .mobile-nav a:focus {
  color: var(--accent);
  background: rgba(255,255,255,0.08);
}

@media (max-width: 1020px) {
  header .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .container {
    max-width: 96vw;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}

/* ------------------ HERO SECTION ------------------ */
.hero {
  background: #e8ede7 url('../assets/shapes/organic-leaf@2x.png') no-repeat right 40px top 0px/240px, var(--soft-white);
  min-height: 320px;
  padding: 56px 0 34px 0;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  border-radius: 0 0 66px 66px / 0 0 40px 50px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  color: var(--earth-green);
  font-size: 2.5rem;
  text-shadow: 0 2px 8px #b9baa51a;
  margin-bottom: 8px;
}
.hero .subheadline {
  color: var(--primary);
  font-size: 1.14rem;
}

@media (max-width: 600px) {
  .hero {
    padding: 32px 0 18px 0;
    border-radius: 0 0 32px 32px / 0 0 24px 20px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* ------------------ FLEXBOX LAYOUTS (MANDATORY) ------------------ */
.features-list, .categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 1.2em;
}
.features-list li, .categories-filter li {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 24px 40px 30px 16px;
  box-shadow: 0 2px 12px var(--shadow);
  padding: 20px 28px;
  min-width: 230px;
  gap: 16px;
  margin-bottom: 20px;
}
.features-list img {
  width: 42px;
  height: 42px;
}

.course-list, .services-list, .blog-post-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.course-card, .service-card, .blog-post-card {
  flex: 1 1 240px;
  min-width: 220px;
  background: #fff;
  border-radius: 30px 18px 30px 40px;
  box-shadow: 0 2px 18px var(--shadow);
  padding: 26px 28px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.22s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.course-card:hover, .service-card:hover, .blog-post-card:hover {
  box-shadow: 0 4px 30px var(--shadow-strong);
  transform: translateY(-3px) scale(1.02);
}

.clients-logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  align-items: center;
  margin: 32px 0;
}
.clients-logo-grid img {
  height: 44px;
  object-fit: contain;
  filter: grayscale(0.6) contrast(1.2);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  min-height: 200px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 22px 36px 24px 44px;
  box-shadow: 0 2px 14px var(--shadow);
  padding: 24px;
  min-width: 190px;
  flex: 1 1 200px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 30px var(--shadow-strong);
  transform: scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.testimonials {
  background: var(--secondary);
  padding: 44px 0 32px 0;
  border-radius: 48px 24px 48px 96px / 40px 80px 60px 100px;
  box-shadow: 0 2px 18px var(--shadow);
  margin-bottom: 46px;
}
.testimonials .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonials h2 {
  color: var(--earth-green);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 12px var(--shadow);
  border-radius: 36px 16px 28px 44px;
  min-width: 200px;
  flex: 1 1 310px;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-dark);
  font-size: 1.10rem;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card p {
  margin: 0 0 0.35em 0;
  color: var(--text-dark);
  font-size: 1.07rem;
}
.testimonial-card span {
  color: var(--earth-brown);
  font-size: 0.99rem;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px var(--shadow-strong);
  transform: scale(1.016);
}

/* ------------------ CTA BUTTONS ------------------ */
.cta, .cta.primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 13px 28px;
  border-radius: 32px 24px 32px 38px;
  background: var(--earth-green);
  color: #fff;
  box-shadow: 0 2px 14px var(--shadow);
  transition: background 0.16s, color 0.16s, box-shadow 0.18s, transform 0.16s;
  border: none;
  cursor: pointer;
}
.cta.primary:hover, .cta.primary:focus, .cta:hover, .cta:focus {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 24px var(--shadow-strong);
}

/* ------------------ ORGANIC TEXTURES & DECORATIVES ------------------ */
.section {
  position: relative;
  overflow: hidden;
}
.section::before {
  content: '';
  display: block;
  position: absolute;
  top: -60px;
  left: -60px;
  width: 120px;
  height: 80px;
  background: url('../assets/shapes/leaf-sm.svg') no-repeat center/100%;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -60px;
  right: -34px;
  width: 140px;
  height: 90px;
  background: url('../assets/shapes/stroke-organic.svg') no-repeat center/100%;
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}

/* ------------------ BLOG FEED ------------------ */
.blog-post-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.blog-post-card {
  flex: 1 1 240px;
  background: #fff;
  border-radius: 24px 36px 32px 18px;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 22px 22px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: box-shadow 0.22s, transform 0.18s;
}
.blog-post-card:hover {
  box-shadow: 0 5px 30px var(--shadow-strong);
  transform: scale(1.019);
}
.categories-filter {
  margin-top: 22px;
  gap: 14px;
}
.categories-filter li {
  padding: 7px 18px;
  background: #e8ede7;
  border-radius: 13px 16px 20px 15px;
  color: var(--earth-green);
  font-weight: 600;
  font-size: 1rem;
}

.subscription-confirmation {
  padding: 22px;
  background: #f5fad7;
  color: var(--earth-green);
  border-radius: 20px;
  font-style: italic;
  box-shadow: 0 2px 8px var(--shadow);
  margin-top: 6px;
}

/* --------------- ADDRESS BLOCK ------------------- */
.address-block {
  margin-bottom: 22px;
}
.address-block p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--text-medium);
  font-size: 1rem;
}

/* --------------- FOOTER STYLES ------------------- */
footer {
  background: var(--earth-green);
  color: #fff;
  width: 100%;
  margin-top: 58px;
  padding: 44px 0 28px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  gap: 18px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
}
footer .content-wrapper>div span, footer .content-wrapper>div {
  color: #eafceb;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
footer a img, .address-block img {
  height: 20px;
  width: 20px;
  margin-right: 4px;
}

/* ------------------ COOKIE CONSENT BANNER ------------------ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #ffffff;
  color: var(--text-dark);
  z-index: 3000;
  box-shadow: 0 -2px 20px var(--shadow-strong);
  padding: 20px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-radius: 28px 28px 0 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.36s cubic-bezier(.63,0,.42,1), opacity 0.32s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  margin: 0;
  font-size: 1rem;
  color: #385331;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.99rem;
  padding: 8px 18px;
  border-radius: 26px;
  background: var(--earth-green);
  color: #fff;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.18s, color 0.18s;
  border: none;
  margin-right: 0;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner button.reject {
  background: #b94e43;
  color: #fff;
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: #f2b705;
  color: var(--primary);
}
.cookie-banner button.cookie-settings {
  background: transparent;
  color: var(--earth-green);
  border: 2px solid var(--earth-green);
  box-shadow: none;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: var(--earth-green);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 4000;
  background: rgba(22, 29, 21, 0.72);
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
.cookie-modal.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .cookie-modal-box {
  background: #fff;
  border-radius: 28px;
  max-width: 410px;
  min-width: 290px;
  width: 95vw;
  box-shadow: 0 8px 36px var(--shadow-strong);
  padding: 38px 28px 28px 28px;
  position: relative;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeIn 0.9s cubic-bezier(.59,.03,.45,1);
}
@keyframes fadeIn {
  from { transform: translateY(60px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .cookie-close:hover, .cookie-modal .cookie-close:focus {
  color: var(--earth-green);
}
.cookie-modal h3 {
  font-size: 1.14rem;
  color: var(--earth-green);
}
.cookie-modal .cookie-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cookie-modal .cookie-cat label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background: #dcedc8;
  border-radius: 32px;
  transition: background 0.2s;
}
.cookie-modal .switch input:checked + .slider {
  background: var(--earth-green);
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 5px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 9px var(--shadow);
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .explanation {
  color: #696452;
  font-size: 0.97rem;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ------------- RESPONSIVE ADAPTATIONS ------------- */
@media (max-width: 900px) {
  .features-list, .categories-filter, .clients-logo-grid, .course-list, .services-list, .blog-post-feed, .card-container, .content-wrapper {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
  }
  .features-list li, .categories-filter li, .course-card, .service-card, .blog-post-card, .testimonial-card, .card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-bottom: 18px;
  }
  .testimonials .container, .hero .container, .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
    border-radius: 24px 16px 32px 32px / 16px 24px 16px 40px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-wrapper {
    gap: 13px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.45rem;
  }
}
@media (max-width: 550px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 5px 15px 5px;
    gap: 13px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
  }
  .section {
    padding: 18px 4px;
    margin-bottom: 24px;
    border-radius: 17px 12px 18px 16px;
  }
  .hero {
    min-height: 160px;
    padding: 18px 0 8px 0;
  }
}

/* -------------- MICRO-INTERACTIONS -------------- */
a, button, .cta, .cta.primary, .card, .service-card, .course-card, .blog-post-card, .testimonial-card, .features-list li {
  transition: box-shadow 0.21s, background 0.19s, color 0.19s, transform 0.18s;
}
.features-list li:active {
  transform: scale(0.985);
}
.cta:active, .btn:active {
  transform: scale(0.992);
}

/* --------------- UTILITIES --------------- */
.hide {
  display: none!important;
}
.visible {
  display: block!important;
}

/* --------------- PRINT --------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  body, main {
    background: #fff !important;
  }
}
