/* ==== 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 { scroll-behavior: smooth; }
body {
  line-height: 1.5;
  background: #F3EFE6;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1a2a13;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
b, strong { font-weight: bold; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #175932;
  font-weight: 600;
}

/* ==== TYPOGRAPHY SCALE ==== */
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, li, td, th { font-size: 1rem; line-height: 1.7; }

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

/* ===== GLOBAL CONTAINER & LAYOUTS ===== */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
@media (max-width: 600px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 32px;
  }
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #FAFAF7;
  border-bottom: 1px solid #e4e8de;
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #175932;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #A3B09233;
  color: #124a27;
}

.cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #175932;
  color: #fff;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px 0 rgba(23,89,50,0.08);
  border: none;
  cursor: pointer;
  outline: none;
  letter-spacing: 0.5px;
  margin-left: 18px;
  text-align: center;
  transition: background 0.18s, box-shadow 0.2s, color 0.14s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #A3B092;
  color: #175932;
  box-shadow: 0 4px 14px 0 rgba(23,89,50,0.15);
}

@media (max-width: 900px) {
  header nav {
    gap: 12px;
  }
  .cta-btn {
    margin-left: 8px;
    padding: 10px 20px;
    font-size: 1rem;
  }
}

/* ==== MOBILE MENU BURGER ==== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  background: #F3EFE6;
  border: 1px solid #A3B092;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1.9rem;
  color: #175932;
  z-index: 2101;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(23,89,50,0.09);
  transition: background 0.18s, box-shadow 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #A3B092; 
  background: #A3B09222;
}

/* ==== MOBILE MENU OVERLAY ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #F3EFE6;
  transform: translateX(102vw);
  transition: transform .36s cubic-bezier(.5,.85,.42,1.01);
  z-index: 2102;
  box-shadow: 0 0 24px 0 #A3B09233;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  border: none;
  background: none;
  color: #175932;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 18px 24px 12px 0;
  cursor: pointer;
  padding: 0;
  transition: color .16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #A3B092;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 18px;
  margin-left: 32px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #175932;
  padding: 10px 2px;
  width: 100%;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  font-family: 'Montserrat', Arial, sans-serif;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #A3B09242;
  color: #124a27;
}

@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Always show mobile menu overlay on top */
.mobile-menu {
  box-shadow: 0 0 32px 4px #A3B09222;
}

/* ==== HERO SECTION ==== */
.hero {
  background: #F3EFE6 url('../assets/hero-bg.jpg') center/cover no-repeat;
  padding: 70px 0 40px 0;
  min-height: 350px;
}
.hero .container {
  align-items: flex-start;
}
.hero .content-wrapper {
  background: #FAFAF7E6;
  border-radius: 24px;
  box-shadow: 0 2px 18px 0 #A3B09212;
  padding: 40px 34px;
  max-width: 540px;
  gap: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: #175932;
  font-size: 2.5rem;
  margin-bottom: 8px;
  margin-top: 0;
}
.hero p {
  color: #254424;
  margin-bottom: 18px;
}
.hero .cta-btn {
  margin-left: 0;
}
@media (max-width: 900px) {
  .hero {
    padding: 40px 0 20px 0;
    min-height: unset;
  }
  .hero .content-wrapper {
    padding: 28px 12px;
    max-width: 100%;
    border-radius: 18px;
  }
  .hero h1 { font-size: 2rem; }
}

/* ==== FLEX LAYOUT PATTERNS ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 200px;
  min-width: 210px;
  max-width: 290px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 10px 0 #A3B09218;
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border: 1px solid #E4E8DE;
  transition: transform 0.17s, box-shadow 0.18s;
}
.feature-grid > div:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 8px 20px 0 #A3B09229;
}
.feature-grid img {
  width: 44px; height: 44px;
}

@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
    justify-content: flex-start;
  }
  .feature-grid > div {
    min-width: 160px;
    max-width: 100%;
    padding: 20px 14px 15px 14px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div {
    min-width: unset;
    margin-bottom: 16px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 1px 10px #A3B09217;
  background: #fff;
  border-radius: 15px;
  padding: 28px 22px;
  border: 1px solid #E4E8DE;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 800px) {
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px 20px 22px;
  background: #fff;
  margin-bottom: 20px;
  border-radius: 15px;
  box-shadow: 0 2px 10px 0 #A3B09217;
  border-left: 6px solid #A3B092;
  color: #254424;
  font-size: 1.07rem;
  min-width: 200px;
  max-width: 580px;
  transition: box-shadow 0.17s;
}
.testimonial-card p {
  color: #254424;
  margin-bottom: 0;
  font-size: 1.08rem;
}
.testimonial-card strong { color: #175932; }
.testimonial-card span {
  color: #6B7667;
  font-size: .98rem;
}
.testimonial-card:hover { box-shadow: 0 4px 18px 0 #A3B0922C; }

@media (max-width: 700px) {
  .testimonial-card {
    max-width: 100%;
    padding: 14px 11px 14px 13px;
  }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 600px) {
  .card-container, .feature-item {
    flex-direction: column;
    gap: 16px;
  }
}

/* ==== TABLE STYLES ==== */
table {
  border-collapse: collapse;
  background: #fff;
  margin: 30px 0;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 10px #A3B09207;
}
thead {
  background: #A3B09233;
}
td, th {
  padding: 13px 10px;
  border-bottom: 1px solid #E4E8DE;
}
th {
  color: #175932;
  font-weight: 600;
}

/* ==== SEARCH BAR and CATEGORIES ==== */
.search-bar {
  margin-bottom: 18px;
}
.search-bar input[type="search"] {
  width: 100%;
  padding: 10px 18px;
  font-size: 1.05rem;
  border-radius: 12px;
  border: 1px solid #A3B09255;
  background: #fff;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.16s, box-shadow 0.18s;
}
.search-bar input[type="search"]:focus {
  border-color: #175932;
  box-shadow: 0 2px 10px #A3B09222;
}

.categories {
  color: #254424;
  margin-bottom: 18px;
  font-size: .99rem;
}
.categories span {
  border-radius: 5px;
  background: #A3B09222;
  color: #175932;
  padding: 2px 10px;
  font-weight: 500;
}

/* ==== BLOG POST LIST ==== */
.post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.blog-post {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px #A3B09219;
  padding: 24px 20px;
  flex: 1 1 250px;
  max-width: 350px;
  min-width: 220px;
  margin-bottom: 12px;
  border: 1px solid #E4E8DE;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.blog-post h2 {
  margin-bottom: 7px;
  font-size: 1.22rem;
}
.blog-post a {
  color: #175932;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: color .13s; 
}
.blog-post a:hover, .blog-post a:focus {
  color: #A3B092;
}

@media (max-width: 800px) {
  .post-grid { flex-direction: column; gap: 14px; }
  .blog-post { max-width: 100%; min-width: 0; }
}

/* ==== CTA SECTION ==== */
.cta {
  background: #A3B09222;
  border-radius: 24px;
  box-shadow: 0 2px 12px #A3B09211;
  text-align: center;
  padding: 50px 0;
  margin-bottom: 60px;
}
.cta h2, .cta h1 {
  color: #175932;
  font-size: 2rem;
  margin-bottom: 1.2rem;
}
.cta .cta-btn {
  margin-left: 0;
}
@media (max-width: 600px) {
  .cta {
    padding: 32px 0;
    border-radius: 13px;
  }
}

/* ==== FOOTER ==== */
footer {
  background: #FAFAF7;
  border-top: 1px solid #e4e8de;
  margin-top: 60px;
  padding: 32px 0 22px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #5a7a55;
  font-size: .99rem;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #175932;
}
footer .contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .98rem;
  color: #254424;
}
footer .contact img {
  width: 17px;
  vertical-align: middle;
  margin-right: 7px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ==== UTILITY CLASSES ==== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul, .text-section ol {
  margin-left: 22px;
  margin-top: 6px;
  margin-bottom: 8px;
}
.text-section li {
  margin-bottom: 6px;
  padding-left: 7px;
  color: #254424;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.timeline {
  margin-top: 18px;
}
.timeline ul {
  margin-left: 19px;
}

.contact-details p {
  margin-bottom: 8px;
  color: #254424;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-details img { width: 20px; height: 20px; }

/* ==== BUTTONS ==== */
button, input[type="button"], input[type="submit"] {
  appearance: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

/* ==== SPACING BETWEEN CARDS/SECTIONS ==== */
.section, section, .card, .card-container > *, .feature-grid > *, .testimonial-card, .blog-post, .post-grid > *, .content-grid > * {
  margin-bottom: 20px;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1.5px solid #A3B092;
  box-shadow: 0 -2px 24px #A3B09211;
  padding: 20px 10px 17px 10px;
  z-index: 2200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fadeInUp .44s cubic-bezier(.31,.98,.48,.93);
  font-size: 1rem;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 8px 12px 8px;
  }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 15px;
}
.cookie-banner button {
  border-radius: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 25px;
  font-size: .97rem;
  margin: 0;
  background: #A3B092;
  color: #fff;
  border: none;
  transition: background .16s, color .14s, box-shadow .14s;
  box-shadow: 0 1px 10px #A3B09213;
}
.cookie-banner button.accept {
  background: #175932;
}
.cookie-banner button:focus, .cookie-banner button:hover {
  background: #254424;
  color: #fff;
}
.cookie-banner button.settings {
  background: #fff;
  color: #175932;
  border: 1px solid #A3B092;
}

/* Modal Cookie Settings */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,41,24,0.28);
  z-index: 2210;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay .45s cubic-bezier(.31,.98,.48,.93);
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px #A3B09236;
  padding: 36px 26px 30px 26px;
  max-width: 380px;
  width: 94vw;
  color: #175932;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  animation: fadeInModal .34s cubic-bezier(.31,.98,.48,.93);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.01rem;
}
.cookie-category label {
  cursor: pointer;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6B7667;
  transition: color .12s;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #175932;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.cookie-modal input[type="checkbox"]:disabled {
  accent-color: #d2d7cd;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ==== RESPONSIVE ===== */
@media (max-width: 900px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.25rem; }
  .cta-btn { font-size: 1rem; padding: 9px 21px; }
}
@media (max-width: 600px) {
  html { font-size: 15px; }
}

/* ==== FOCUS STATE ==== */
a:focus, button:focus, input:focus {
  outline: 2px solid #A3B092;
  outline-offset: 2px;
}

/* ==== CUSTOM SCROLLBAR ==== */
body {
  scrollbar-color: #A3B092 #F3EFE6;
  scrollbar-width: thin;
}
body::-webkit-scrollbar {
  width: 9px;
  background: #F3EFE6;
}
body::-webkit-scrollbar-thumb {
  background: #A3B09266;
  border-radius: 6px;
}

/* ===== Z-INDEX SAFEGUARDS ===== */
.mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
  z-index: 2200 !important;
}

/* ===== HIDE ON DESKTOP ===== */
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle { display: none!important; }
}

/* ==== ACCENTS & MICROINTERACTIONS ==== */
.card, .feature-grid > div, .testimonial-card, .blog-post, .cta {
  transition: box-shadow .17s, transform .13s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover, .blog-post:hover {
  box-shadow: 0 6px 22px #17593215;
  transform: translateY(-4px) scale(1.01);
}

/* ==== NATURAL MATERIALS ACCENT ==== */
.card, .feature-grid > div, .testimonial-card, .cta, .blog-post {
  border: 1px solid #E4E8DE;
  background: #fff url('../assets/texture-paper-light.png') repeat;
}

/* ==== FORM ELEMENTS ==== */
input, textarea, select {
  border: 1px solid #A3B09266;
  background: #FAFAF5;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 1rem;
  margin-bottom: 10px;
  font-family: 'Roboto', Arial, sans-serif;
  transition: border 0.15s, background 0.12s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #175932;
  background: #fff;
}

/* ==== DISABLED STATES ==== */
button:disabled, input:disabled {
  background: #dde0d7;
  color: #6B7667;
  cursor: not-allowed;
  opacity: .65;
}

/* ===== A11Y COLOR CONTRAST FIXES ===== */
.testimonial-card, .testimonial-card p, .testimonial-card span {
  color: #1a2a13;
  background: #fff;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px 8px 16px 11px;
  }
}

/* ===== MISC ELEMENTS ===== */
h1, h2, h3, h4, h5, h6 { letter-spacing: 0.01em; }
blockquote {
  padding: 14px 22px;
  background: #A3B09222;
  border-left: 5px solid #175932;
  font-size: 1.08em;
  color: #2c4c1a;
  border-radius: 10px;
  margin-bottom: 17px;
}

/* ==== PRINT OPTIMIZE ==== */
@media print {
  header, .mobile-menu, .mobile-menu-toggle, footer, .cta, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #fff; }
  .container, .section, .card, .feature-grid > div, .content-wrapper { box-shadow: none !important; }
}
