/* ==========================================================
   NATURE ORGANIC THEME – FIRELIGHT ELM ACADEMY
   Modern, natural, organic, earth-toned design for all pages
   Responsive, mobile-flexbox-only. No CSS grid or column props!
==============================================================*/

/* ------------------- CSS RESET & NORMALIZE ------------------ */
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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  height: 100%;
  scroll-behavior: smooth;
  background: #f6f7fb;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2D3927;
  background: #F6F7FB;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
a {
  color: #216d3c;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1a2533;
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #27411A;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 {
  font-size: 2.6rem;
  letter-spacing: -1.5px;
}
h2 {
  font-size: 2rem;
  margin-top: 0.5em;
}
h3 {
  font-size: 1.3rem;
}
strong {
  color: #1A2533;
}

/* =============== SPACING & CONTAINER =================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 36px 36px 32px 32px / 24px 36px 32px 36px;
  box-shadow: 0 3px 18px 0 rgba(64,82,34,0.06), 0 1px 2px 0 rgba(70,85,44,0.03);
  box-sizing: border-box;
}

/* =========== FLEXBOX LAYOUT RULES ============ */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}
.footer-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 40px 0 20px 0;
  border-top: 1px solid #D6E3D8;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 16px;
}
.feature-grid > div {
  flex: 1 1 240px;
  min-width: 240px;
  background: #F6F9F5;
  border-radius: 28px 18px 32px 12px/40px 28px 18px 36px;
  box-shadow: 0 1px 7px rgba(71, 84, 48, 0.06);
  padding: 28px 22px 22px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.23s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 32px 0 rgba(51,68,34,0.19);
  background: #EEF5EE;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 24px 32px 32px 24px / 26px 24px 38px 24px;
  box-shadow: 0 1px 8px 0 rgba(60,84,58,0.10);
  transition: box-shadow 0.19s, background 0.22s;
}
.card:hover {
  background: #F4F7F3;
  box-shadow: 0 4px 32px 0 rgba(71, 84, 48, 0.14);
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F0F5F1;
  border-radius: 28px 22px 20px 34px / 18px 34px 22px 32px;
  box-shadow: 0 2px 16px 0 rgba(60,86,46,0.07);
  margin-bottom: 20px;
  color: #1A2533;
  font-size: 1.09rem;
  transition: box-shadow 0.20s;
}
.testimonial-card strong {
  margin-left: 18px;
  letter-spacing: 0.2px;
  color: #207741;
  font-size: 1.06em;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(44,66,40,0.16);
  background: #E7F2EB;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  font-size: 1.1rem;
  color: #2D3927;
  background: none;
}
.text-section ul {
  margin-bottom: 0.5em;
}

/* ----------- NAVIGATION ----------- */
header {
  width: 100%;
  background: #f7f6f3;
  border-radius: 0 0 28px 28px / 0 0 24px 32px;
  box-shadow: 0 3px 16px rgba(80,98,67,0.06);
  margin-bottom: 18px;
  z-index: 10;
}
.site-logo {
  height: 46px;
  width: auto;
  border-radius: 18px;
  background: #DDE6DA;
  padding: 4px 10px;
}
.site-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #315C26;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 16px;
  transition: background 0.17s, color 0.17s;
}
.site-nav a:hover,
.site-nav a:focus {
  background: #D7ECD6;
  color: #193721;
  outline: none;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #207741;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  border-radius: 22px 28px 22px 28px/28px 22px 26px 18px;
  padding: 12px 32px;
  box-shadow: 0 2px 12px 0 rgba(44,65,35,0.11);
  border: none;
  transition: background 0.18s, transform 0.13s, box-shadow 0.17s;
  margin-left: 18px;
}
.cta-button:hover,
.cta-button:focus {
  background: #174c28;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 34px 0 rgba(44,66,33,0.18);
}

/* ------------- MOBILE MENU ------------ */
.mobile-menu-toggle {
  display: none;
  background: #E9F5E4;
  color: #207741;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.15s;
  margin-left: 16px;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #C7E4BE;
  outline: none;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  background: #F7F9F4;
  z-index: 1003;
  box-shadow: -2px 0 16px 0 rgba(31,52,15,0.11);
  padding: 42px 32px 10px 32px;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(.83,-0.01,.3,1.11);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #207741;
  border: none;
  font-size: 2.2rem;
  position: absolute;
  top: 18px;
  right: 26px;
  cursor: pointer;
  z-index: 1002;
  padding: 0 8px;
  transition: color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #193721;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 56px;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: #246739;
  padding: 12px 0;
  border-radius: 20px;
  width: 100%;
  transition: background 0.19s;
}
.mobile-nav a:hover {
  background: #E0F1DC;
}

/* Hide desktop nav on mobile */
@media (max-width: 1000px) {
  .site-nav { display: none; }
  .cta-button { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1001px) {
  .mobile-menu { display: none !important; }
}

/* ------------- HERO, HEADINGS & SUBHEADINGS ------------- */
.subheadline {
  font-size: 1.25rem;
  color: #406743;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

/* --------- CARD, TESTIMONIAL, FAQ & MISC ------------ */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
}
.faq-accordion > div {
  background: #e9f7ea;
  border-radius: 18px 11px 16px 22px / 12px 12px 18px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 6px rgba(80,110,84,0.06);
  padding: 20px 20px 10px 20px;
  transition: box-shadow 0.17s;
}
.faq-accordion > div:hover {
  box-shadow: 0 6px 24px 0 rgba(60,86,56,0.10);
}
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0 8px 0;
}
.category-filter li {
  list-style: none;
}
.category-filter a {
  background: #EBF5EC;
  color: #267144;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 13px;
  transition: background 0.17s, color 0.17s;
}
.category-filter a:hover {
  background: #d6e6d9;
  color: #206737;
}

/* --------------- FOOTER ----------------- */
footer {
  background: #F4F8F2;
  color: #203421;
  border-radius: 36px 36px 0 0/32px 32px 0 0;
  box-shadow: 0 -2px 16px 0 rgba(60,84,58,0.06);
  margin-top: 70px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #306132;
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 2px 0;
  transition: background 0.13s;
}
footer nav a:hover {
  color: #174c28;
  background: #D7ECD6;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.99rem;
  color: #355728;
  line-height: 1.5;
}
.footer-contact img {
  height: 16px;
  width: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  display: inline;
  background: #DFE9DD;
  border-radius: 4px;
  padding: 1px 1.5px;
}

/* ----------- COOKIE BANNER & MODAL ------------ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e1eddc;
  color: #21431f;
  box-shadow: 0 -4px 18px 0 rgba(48,68,34,0.17);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 22px 28px 18px 28px;
  z-index: 2000;
  font-size: 1.04rem;
  animation: cookie-slide-in 0.5s cubic-bezier(.7,-0.01,.41,1.2) 1;
}
@keyframes cookie-slide-in {
  from { transform: translateY(90px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: 18px;
}
.cookie-btn {
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 22px;
  padding: 8px 20px;
  margin: 0 2px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.18s, color 0.15s;
}
.cookie-btn.accept {
  background: #207741;
  color: #fff;
}
.cookie-btn.accept:hover { background: #15552c; color: #fff; }
.cookie-btn.reject {
  background: #F5B041;
  color: #5C3600;
}
.cookie-btn.reject:hover { background: #e79d23; color: #fff; }
.cookie-btn.settings {
  background: #F4F8F2;
  color: #207741;
  border: 1px solid #C5DFB3;
}
.cookie-btn.settings:hover { background: #e5ebd8; }

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32,68,22,0.28);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #ffffff;
  border-radius: 24px 32px 26px 22px;
  padding: 36px 28px 24px;
  max-width: 420px;
  min-width: 260px;
  box-shadow: 0 12px 52px 0 rgba(46,65,22,0.13);
  animation: cookie-modal-pop 0.43s cubic-bezier(.75,-0.01,.22,1.21) 1;
  z-index: 2110;
}
@keyframes cookie-modal-pop {
  from { transform: scale(0.92) translateY(60px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}
.cookie-modal .modal-section {
  margin-bottom: 18px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.cookie-toggle input[type="checkbox"] {
  appearance: none;
  width: 28px;
  height: 18px;
  background: #d7ecd6;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background 0.16s;
}
.cookie-toggle input[type="checkbox"]:checked {
  background: #207741;
}
.cookie-toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 13px;
  height: 13px;
  background: #fff;
  border-radius: 60px;
  box-shadow: 0 1px 3px rgba(60,100,80,0.11);
  transition: left 0.13s;
}
.cookie-toggle input[type="checkbox"]:checked::before {
  left: 12px;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  justify-content: flex-end;
}

/* ------------ BUTTONS, CONTROLS & INTERACTIVE ---------- */
button, .button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 22px;
  padding: 10px 26px;
  border: none;
  background: #207741;
  color: #fff;
  cursor: pointer;
  transition: background 0.18s, color 0.15s, transform 0.10s;
  box-shadow: 0 2px 14px 0 rgba(46,65,30,0.09);
}
button:hover, .button:hover, input[type="submit"]:hover, 
button:focus, .button:focus, input[type="submit"]:focus {
  background: #15552c;
  color: #fff;
  outline: none;
  transform: translateY(-2px) scale(1.04);
}

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

/* ========== MOBILE/TABLET RESPONSIVITY ========== */
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .feature-grid {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.37rem; }
  .content-wrapper, .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .section {
    padding: 26px 10px;
    margin-bottom: 40px;
    border-radius: 24px 24px 22px 24px/18px 24px 20px 22px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1rem;
    gap: 10px;
    padding: 14px;
  }
}
@media (max-width: 530px) {
  .header-flex {
    gap: 6px;
    padding: 12px 0;
  }
  .site-logo { height: 35px; padding: 2px 4px; }
  .mobile-menu {
    padding: 34px 12px 4px 12px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    padding: 15px 10px 10px 10px;
    font-size: 1rem;
  }
}

/* ========== ORGANIC/NATURAL SHAPE DECOR ========== */
.section, .feature-grid > div, .card, .testimonial-card, .faq-accordion > div, .cookie-modal {
  /* soft organic corners as above */
}

/* ========== SELECTION, FOCUS & SCROLLBAR STYLES ========== */
::selection {
  background: #B9DCA4;
  color: #1A2533;
}
:focus {
  outline: 2.5px solid #F5B041;
  outline-offset: 2px;
}
::-webkit-scrollbar {
  width: 9px;
  background: #EBF6E8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #CCE0C1;
  border-radius: 5px;
}

/* -------------- MISC (FOR PAGE-SPECIFIC USES) -------------- */
ol {
  padding-left: 24px;
  margin-bottom: 18px;
}
em {
  color: #5C6A4F;
  font-style: italic;
}
p {
  margin-bottom: 10px;
}
li {
  margin-bottom: 7px;
}

/* ============= END ============= */
