/* ===============================
   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, 
main, 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.6;
  background: #fbfaf5;
  color: #393c31; /* dark-olive-earth */
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
*, *::before, *::after {
  box-sizing: inherit;
}
img, picture, video {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus { outline: 2px solid #67b282; outline-offset:2px; }

/* ============
   COLOR PALETTE
   ============ */
:root {
  --color-primary: #23293c; /* deep blue as base anchor */
  --color-secondary: #fbfaf5;
  --color-accent: #ffc439;
  --color-green: #67b282; /* organic accent green */
  --color-earth: #b2a178; /* muted earth */
  --color-brown: #826e5b; /* natural brown */
  --color-muted: #e8e5d1; /* light earth bg */
  --color-body: #393c31;
  --color-footer: #403f38;
  --color-card: #fffefc;
}

/* =======================
   TYPOGRAPHY & HIERARCHY
   ======================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.18;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; color: var(--color-green); }
h4, h5, h6 { font-size: 1.1rem; color: var(--color-earth); }
p, li, ul, ol, table, label, input, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-body);
}
p { margin-bottom: 1em; }
strong, b { color: var(--color-primary); }
ul, ol { margin-left: 1.35em; }
li { margin-bottom: 0.5em; }

/* ================
   GENERAL STRUCTURE
   ================ */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 20px; padding-right: 20px;
}
.content-wrapper {
  background: var(--color-card);
  border-radius: 24px;
  box-shadow: 0 2px 18px rgba(140,112,62, 0.08);
  padding: 40px 28px;
  margin-bottom: 40px;
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
}

/* ===============
   HEADER & NAVBAR
   =============== */
header {
  background: linear-gradient(90deg, #ecede5 80%, #dfe4dc 100%);
  border-bottom: 2px solid #ece7cc;
  padding: 0 0 10px 0;
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-top: 18px; padding-bottom: 12px;
}
header nav {
  display: flex; align-items: center; gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 20px;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-green);
  color: #fff;
}
.btn-primary,
header nav .btn-primary,
main .btn-primary,
.section .btn-primary {
  background: var(--color-green);
  color: #fff;
  border: none;
  padding: 10px 26px;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(103,178,130, 0.09);
  transition: background 0.16s, transform 0.14s, box-shadow 0.14s;
  margin-left: 12px;
  outline: none;
  display: inline-block;
  letter-spacing: 0.04em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #498d5f;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 18px rgba(103,178,130,0.16);
  color: #fff;
}

/* ============
   MAIN SPACING
   ============ */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
main .section:last-child { margin-bottom: 0; }

/* ===============
   FLEX CONTAINERS
   =============== */
.card-container, .feature-grid, .service-list, .content-grid, .card-grid, .features, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.card-container { gap: 24px; }
.card {
  min-width: 240px;
  background: var(--color-card);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(140, 112, 62, 0.07);
  padding: 26px 22px 22px 22px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.card:hover {
  box-shadow: 0 4px 22px rgba(103,178,130,0.17);
  transform: translateY(-2px) scale(1.01);
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/*****************************
  FEATURES & ORGANIC ELEMENTS
******************************/
.feature-grid, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.feature-grid > div, .service-list > div {
  background: var(--color-muted);
  border-radius: 26px 20px 30px 24px / 22px 28px 22px 34px;
  flex: 1 1 260px;
  min-width: 220px;
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(103,178,130,0.09);
  border-left: 5px solid var(--color-green);
  transition: box-shadow .18s, transform .18s;
  margin-bottom: 20px;
  position: relative;
}
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 5px 22px rgba(140,178,62,0.17);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img, .service-list img {
  height: 38px; width: 38px;
  margin-bottom: 6px;
  filter: drop-shadow(0 1px 1px #b2a17822);
}

/**************************
   TESTIMONIALS
***************************/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 1px 12px rgba(140, 178, 62, 0.06);
  margin-bottom: 20px;
  flex-direction: column;
  border-left: 4px solid var(--color-green);
  position: relative;
  color: #272917;
}
.testimonial-card p {
  font-size: 1.07rem;
  font-style: italic;
  color: #26291c;
}
.testimonial-card strong {
  color: var(--color-brown);
  margin-top: 4px;
}
.testimonial-card .stars {
  color: var(--color-accent);
  font-size: 1.13rem;
  margin-top: 4px;
  letter-spacing: .08em;
}

/********************************
   TABLES (PRICES, LISTS)
*********************************/
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 1px 8px rgba(140,112,62,0.06);
}
thead {
  background: var(--color-green);
}
thead th {
  color: #fff;
  font-size: 1.02rem;
  padding: 10px 14px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
tbody td { padding: 10px 14px; border-bottom: 1px solid #ece7cc; }
tbody tr:last-child td { border-bottom: none; }
tbody td, tbody th { color: #383b28; }

/**************************
   FAQ SECTION
***************************/
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item {
  background: var(--color-muted);
  border-radius: 22px 16px 28px 24px / 22px 24px 20px 32px;
  padding: 22px 24px;
  box-shadow: 0 2px 8px rgba(140,178,62,0.07);
  border-left: 4px solid var(--color-green);
}
.faq-item h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
}
.faq-contact-prompt {
  margin-top: 18px;
  padding: 15px 20px;
  border-radius: 18px;
  background: var(--color-green);
  color: #fff;
  font-size: 1.09rem;
  box-shadow: 0 2px 8px rgba(103,178,130,0.07);
}
.faq-contact-prompt a {
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: underline;
}

/********************************
   CONTACT SECTION
*********************************/
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  font-size: 1.08rem;
}
.contact-details img {
  height: 20px; width: 20px;
  vertical-align: middle;
  margin-right: 4px;
  display: inline-block;
}

/********************************
   FOOTER
*********************************/
footer {
  background: var(--color-footer);
  color: #fff;
  padding: 50px 0 28px 0;
  border-top: 4px solid var(--color-green);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-menu {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px;
}
.footer-menu a {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  opacity: .92;
  transition: color .14s, text-decoration .14s;
  margin-bottom: 6px;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-green);
  text-decoration: underline;
}
.footer-contact {
  font-size: .97rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact img { height: 16px; width: 16px; vertical-align: middle; margin-right: 5px; }
.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-social a img { height: 28px; width: 28px; }
footer p {
  font-size: .97rem;
  opacity: .7;
  margin-top: 24px;
  width: 100%;
}

/***********************
   MOBILE NAVIGATION
***********************/
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999;
  background: var(--color-green);
  color: #fff;
  font-size: 2rem;
  padding: 7px 13px;
  border-radius: 38px;
  border: none;
  box-shadow: 0 2px 12px rgba(103, 178, 130, 0.07);
  cursor: pointer;
  display: none;
  transition: background 0.14s, box-shadow 0.14s, transform .14s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(47, 48, 40, 0.93);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.39s cubic-bezier(.77,0,.175,1), opacity 0.25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.1rem;
  padding: 20px 22px 0 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color .18s, transform .14s;
}
.mobile-menu-close:hover { color: #fff85a; transform: scale(1.1); }
.mobile-nav {
  display: flex !important;
  flex-direction: column;
  gap: 32px;
  margin-top: 50px;
  width: 100%;
  align-items: flex-start;
  padding-left: 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.24rem;
  color: #fffbe9;
  background: none;
  padding: 5px 14px 3px 0;
  border-radius: 22px;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: #fff2;
}

/*******************
   COOKIE BANNER
********************/
.cookie-consent-banner {
  position: fixed;
  left: 0; right:0; bottom: 0;
  width: 100vw;
  background: #f2efe3;
  color: #23240e;
  box-shadow: 0 -2px 18px rgba(103,178,130,0.11);
  border-top: 2px solid var(--color-green);
  padding: 20px 10px 18px 10px;
  z-index: 2000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  transition: transform .34s, opacity .24s;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-consent-banner .cookie-text {
  flex: 1 1 220px;
  color: #23240e;
}
.cookie-consent-banner .cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  background: var(--color-green);
  color: #fff;
  padding: 8px 22px;
  border-radius: 20px;
  font-family: 'Montserrat';
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 8px;
  transition: background 0.13s, color 0.13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #3c8550;
  color: #fff;
}
.cookie-btn.cookie-settings {
  background: var(--color-accent);
  color: #23240e;
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: #fad442;
  color: #393c31;
}

/* COOKIE PREFERENCE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(50,55,34,0.80);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .34s;
}
.cookie-modal.visible {
  opacity: 1;
  visibility: visible;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 24px 18px 28px 18px / 22px 30px 26px 24px;
  min-width: 320px;
  max-width: 99vw;
  padding: 38px 30px 30px 30px;
  box-shadow: 0 6px 42px #409e6822;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  font-size: 1.07rem;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--color-green);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal-close:hover { color: var(--color-accent); }
.cookie-modal-title { font-weight: 700; font-size: 1.22rem; color: var(--color-primary); margin-bottom:6px; }
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 14px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-modal-category input[type=checkbox]:not(:disabled) {
  accent-color: var(--color-green);
  border-radius: 50%;
}
.cookie-modal-category label {
  font-size: 1.05rem;
  color: #383b28;
  font-weight: 500;
}
.cookie-modal-category input[type=checkbox]:disabled+label {
  color: #b2a178cb;
  opacity: .7;
}

/*****************************************
   ORGANIC SHAPES & TEXTURE DECORATION
******************************************/
section, .content-wrapper, .feature-grid>div, .service-list>div, .testimonial-card, .faq-item, .cookie-modal-dialog {
  /* Subtle hand-drawn/organic look via border-radius mutation */
  /* Already applied in selectors! */
  position: relative;
  background-clip: padding-box;
}

/*******************
   MISC UI ELEMENTS
********************/
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px;
  padding: 8px 13px;
  border: 1.5px solid #b2a17855;
  background: #fff;
  outline: none;
  margin-bottom: 12px;
  transition: border-color .14s, box-shadow .14s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-green);
  box-shadow: 0 1px 6px #67b28224;
}

/*********************
   SPACING PATTERNS
**********************/
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/**********************
    RESPONSIVENESS
***********************/
@media (max-width: 1050px) {
  .container { max-width: 980px; }
  .feature-grid > div, .service-list > div {
    flex: 1 1 260px;
    min-width: 180px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 700px; }
  .footer-social a img { height: 24px; width: 24px; }
}
@media (max-width: 768px) {
  /* MOBILE MAIN LAYOUTS */
  header .container, footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .feature-grid, .service-list, .content-grid, .card-container { flex-direction: column; gap: 20px; }
  .section, .content-wrapper { padding: 24px 8px; }
  .feature-grid > div, .service-list > div { min-width: 90vw; width: 100%; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .testimonial-card { flex-direction: column; gap: 14px; }
  nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  main { margin-top: 12px; }
  footer .container { gap: 20px; align-items: stretch; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.27rem; }
  h3 { font-size: 1.07rem; }
  .container { padding: 0 5px; }
  .feature-grid > div, .service-list > div, .card, .content-wrapper {
    padding: 16px 8px 14px 8px;
  }
  .cookie-modal-dialog { padding: 14px 7px 12px 7px; min-width: 90vw; }
}

/********************
    UTILITIES
*********************/
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }

/********************
   ANIMATIONS
*********************/
.card, .feature-grid > div, .service-list > div, .testimonial-card, .faq-item {
  transition: box-shadow .18s, transform .18s, background .16s;
}
.btn-primary, .cookie-btn {
  transition: background .13s, color .13s, transform .13s, box-shadow .13s;
}
.cookie-consent-banner, .cookie-modal {
  transition: transform .34s, opacity .24s;
}
.mobile-menu, .mobile-menu.open {
  transition: transform .39s cubic-bezier(.77,0,.175,1), opacity 0.25s;
}

/********************
   Z-INDEX LAYERS
*********************/
.mobile-menu { z-index: 1000; }
.cookie-consent-banner { z-index: 2000; }
.cookie-modal { z-index: 3000; position: fixed; }
.mobile-menu-toggle { z-index: 999; }

/********************
 ORGANIC BUTTON SHAPES
*********************/
.btn-primary, .cookie-btn {
  border-radius: 30px 28px 32px 26px/26px 34px 22px 28px;
  outline: none;
}
.mobile-menu-toggle {
  border-radius: 40px 32px 30px 30px/35px 32px 40px 25px;
}

/*********************
 MISC IMPROVEMENTS
*********************/
::-webkit-scrollbar {
  width: 9px; background: #efe7d2;
}
::-webkit-scrollbar-thumb { background: #b2a178; border-radius: 9px; }

/* Hide visually but keep accessible for screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
