/* =======================================================
   CSS RESET + BASELINE NORMALIZATION (Mobile-First)
   ======================================================= */
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 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
html {
  line-height: 1.15; /* Correct line height in all browsers */
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape on mobile */
  scroll-behavior: smooth;
  background: #F9F7F3;
}
body {
  font-family: 'Lato', Arial, sans-serif;
  background: #F9F7F3;
  color: #2d4236;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #385647;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #6eac93;
  outline: none;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}

/* -----------------------------------
   TYPOGRAPHY (Elegant Classic Style)
   ----------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  color: #2d4236;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }
h4 { font-size: 1.25rem; margin-bottom: 14px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
  h4 { font-size: 1rem; }
}

p, li, table, span, label {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #385647;
}
strong, b {
  font-weight: 700;
  color: #2d4236;
}

blockquote {
  font-style: italic;
  color: #385647;
  border-left: 4px solid #8DC6AF;
  padding-left: 20px;
  margin: 24px 0;
  font-size: 1.125rem;
}

/* ------------------------------------------
   GENERAL LAYOUT & SPACING (Flexbox Only)
   ------------------------------------------ */
.container {
  width: 100%;
  max-width: 1080px;
  padding: 0 20px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(56,86,71, 0.03);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 540px) {
  .section { padding: 24px 8px; }
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

/* Card & Grid Layouts (Flexbox Patterns) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(56,86,71, 0.05);
  padding: 32px 24px;
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 260px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(56,86,71, 0.07);
  transform: translateY(-3px) scale(1.015);
  z-index: 2;
}
.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;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #E4DFD6;
  color: #2d4236;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(56,86,71, 0.08);
  font-size: 1.13rem;
  transition: box-shadow 0.2s, transform 0.15s;
}
.testimonial-card span {
  color: #385647;
  font-weight: 500;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 20px rgba(56,86,71,0.13);
  transform: translateY(-2px) scale(1.012);
  outline: none;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ----------------------
   HEADER & NAVIGATION  
   ---------------------- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e9e6e1;
  box-shadow: 0 2px 8px rgba(56,86,71,0.03);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  z-index: 100;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
header nav a {
  font-family: 'Merriweather', serif;
  color: #385647;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 6px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
header nav a:hover, header nav a:focus {
  background: #E4DFD6;
  color: #2d4236;
  outline: none;
}
header img {
  height: 42px;
  min-width: 42px;
}
.btn-primary {
  background: #385647;
  color: #fff;
  padding: 11px 28px;
  border-radius: 32px;
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .03em;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(56,86,71,0.07);
  margin-left: 14px;
  margin-right: 3px;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #6eac93;
  color: #fff;
  outline: none;
  box-shadow: 0 8px 28px rgba(56,86,71,0.13);
}

/* Hide nav/show hamburger on mobile */
.mobile-menu-toggle {
  background: #fff;
  color: #385647;
  border: 1px solid #8DC6AF;
  font-size: 2rem;
  border-radius: 8px;
  padding: 2px 10px 2px 10px;
  display: none;
  align-items: center;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.18s, border-color 0.18s;
  z-index: 300;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E4DFD6;
  border-color: #385647;
  outline: none;
}
@media (max-width: 998px) {
  header nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
/* --------------------------------------
   MOBILE MENU OVERLAY (Side Drawer)
   -------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(56,86,71, 0.16);
  z-index: 999;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  transition: opacity 0.23s, background 0.23s;
}
.mobile-menu.open {
  display: flex;
  animation: mobilemenu-in 0.28s cubic-bezier(.5,.6,.3,1) forwards;
}
@keyframes mobilemenu-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.mobile-menu .mobile-menu-close {
  color: #385647;
  background: #fff;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 22px 22px 12px 0;
  border-radius: 7px;
  width: 48px;
  height: 48px;
  border: 1px solid #8DC6AF;
  transition: background .15s, color .15s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(56,86,71,0.04);
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: #E4DFD6;
  color: #2d4236;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 42px 36px 0 36px;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  color: #385647;
  padding: 12px 0;
  border-radius: 4px;
  width: 100%;
  transition: background .15s, color .15s;
  font-weight: 600;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #6eac93 !important;
  background: #E4DFD6;
  outline: none;
}
/* Animate slide-in panel on mobile */
.mobile-menu.open .mobile-nav {
  animation: mobiledrawer-in .32s cubic-bezier(.4,.7,.2,1) forwards;
}
@keyframes mobiledrawer-in {
  0% { transform: translateX(-20vw); opacity: 0; }
 100% { transform: translateX(0); opacity: 1; }
}

/* Overlay closing animations when triggered (managed via classes in JS) */
.mobile-menu.closing {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s cubic-bezier(.5, .2, .8, 1);
}

/* --------------------------------------
   FOOTER
   -------------------------------------- */
footer {
  margin-top: 50px;
  background: #fff;
  border-top: 1px solid #e9e6e1;
  box-shadow: 0 -2px 12px rgba(56,86,71,0.05);
  padding: 38px 0 22px 0;
}
.footer-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-wrapper img {
  height: 44px; width: auto;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  font-family: 'Merriweather', serif;
  color: #385647;
  font-size: 1rem;
  opacity: 0.93;
  transition: color 0.2s;
  margin: 0 0 0 2px;
}
footer nav a:hover, footer nav a:focus {
  color: #8DC6AF;
  opacity: 1;
  outline: none;
}
footer p {
  color: #385647;
  font-size: 0.98rem;
  font-family: 'Lato', Arial, sans-serif;
  margin-top: 8px;
  opacity: 0.87;
}
@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ------------------------------
   TABLES (Responsive, Classic)
   ------------------------------ */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  background: #fff;
  margin: 18px 0 24px 0;
  box-shadow: 0 2px 8px rgba(56,86,71,0.03);
}
th, td {
  padding: 13px 11px;
  border-bottom: 1px solid #E4DFD6;
  text-align: left;
}
th {
  background: #e9e6e1;
  color: #385647;
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
}
tr:last-child td {
  border-bottom: none;
}
/* Table horizontal scroll on mobile */
@media (max-width: 540px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  th, td {padding: 10px 6px;}
  th {background: #E4DFD6;}
  tbody tr {margin-bottom: 16px;}
}

/* --------------------------------------
   CONTENT SECTIONS: USP, ICONS, TEXT
   -------------------------------------- */
.features-icons {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin: 12px 0 0 0;
}
.features-icons img {
  background: #E4DFD6;
  border-radius: 100%;
  padding: 10px;
  max-width: 68px;
  box-shadow: 0 1px 8px rgba(56,86,71, 0.07);
  transition: background 0.22s, box-shadow 0.18s;
}
.features-icons img:hover,
.features-icons img:focus {
  background: #8DC6AF;
  box-shadow: 0 3px 18px rgba(56,86,71, 0.14);
}

ul {
  margin-bottom: 10px;
  padding-left: 0;
}
ul li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 26px;
  font-size: 1rem;
  color: #2d4236;
}
ul li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #8DC6AF;
  font-size: 1.18em;
  font-family: 'Merriweather', serif;
  top: 2px;
}
ul li strong { color: #2d4236; }
ul li b { color: #385647; }

/* For benefit/USP sections (using ✓ in source) */
ul li:has(> b), ul li:has(> strong), ul li:has(> span) {
  padding-left: 0;
}
ul li:has(> b):before, ul li:has(> strong):before, ul li:has(> span):before {
  display: none;
}
ul li:has(> b):first-child:before, ul li:has(> strong):first-child:before {
  display: none;
}

/* FAQ Accordion Style  */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-accordion h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  cursor: pointer;
}
.faq-accordion p {
  color: #385647;
  font-size: 0.99rem;
  margin-bottom: 0;
}

/* ----------------------
   ADDRESS-LIKE BLOCKS
   ---------------------- */
.address-block {
  background: #E4DFD6;
  padding: 16px 24px;
  border-radius: 10px;
  margin: 12px 0 18px;
  color: #2d4236;
  font-size: 1rem;
  line-height: 1.55;
}

/* -------------
   MISC BUTTONS
   ------------- */
button {
  cursor: pointer;
  border-radius: 6px;
  color: #385647;
  background: #E4DFD6;
  border: 1px solid #8DC6AF;
  padding: 9px 22px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: background .18s, border-color .18s, color .18s;
}
button:hover, button:focus {
  background: #8DC6AF;
  border-color: #385647;
  color: #fff;
  outline: none;
}

/* =============
   COOKIE BANNER
   ============= */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: #ffffff;
  color: #2d4236;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -2px 20px rgba(56,86,71,.09);
  border-top: 1px solid #eaded2;
  padding: 20px 16px 16px 16px;
  animation: cookie-fadein 0.48s cubic-bezier(.5,.7,.2,1);
}
@keyframes cookie-fadein { from {opacity: 0;} to {opacity: 1;} }
.cookie-consent-banner p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #2d4236;
  font-family: 'Lato', Arial, sans-serif;
}
.cookie-consent-banner .cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.cookie-consent-banner button,
.cookie-consent-banner .cookie-preferences-btn {
  border: none;
  font-family: 'Merriweather', serif;
  padding: 9px 26px;
  border-radius: 32px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  margin: 0;
  transition: background .2s, color .2s, box-shadow .18s;
}
.cookie-consent-banner .accept-all {
  background: #385647;
  color: #fff;
}
.cookie-consent-banner .accept-all:hover {background: #6eac93;}
.cookie-consent-banner .reject-all {
  background: #E4DFD6;
  color: #2d4236;
  border: 1px solid #8DC6AF;
}
.cookie-consent-banner .reject-all:hover {background:#8DC6AF;color:#fff;}
.cookie-consent-banner .cookie-preferences-btn {
  background: #fff;
  color: #385647;
  border: 1px solid #8DC6AF;
}
.cookie-consent-banner .cookie-preferences-btn:hover {background: #8DC6AF; color: #fff;}

@media (max-width: 540px) {
  .cookie-consent-banner {
    align-items: flex-start;
    padding: 15px 6px;
  }
  .cookie-consent-banner .cookie-btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cookie-consent-banner button,
  .cookie-consent-banner .cookie-preferences-btn {
    width: 100%;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  z-index: 1600;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(56,86,71,0.16);
  display: none;
  justify-content: center;
  align-items: center;
  animation: cookieoverlay-in 0.33s cubic-bezier(.4,.7,.2,1);
}
@keyframes cookieoverlay-in {
  from { opacity: 0 } to { opacity: 1 }
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(56,86,71, 0.16);
  padding: 38px 26px 26px 26px;
  max-width: 410px;
  min-width: 260px;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
}
.cookie-modal h2 {
  font-size: 1.33rem;
  font-family: 'Merriweather', serif;
  margin-bottom: 8px;
  color: #385647;
}
.cookie-category-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
}
.cookie-category-row label {
  font-size: 1rem;
  color: #2d4236;
}
.cookie-category-row input[type="checkbox"]:not(:disabled) {
  accent-color: #8DC6AF;
  margin-left: 8px;
}
.cookie-category-row input[type="checkbox"]:disabled {
  accent-color: #eaded2;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 30px;
  top: 28px;
  background: transparent;
  color: #385647;
  font-size: 1.7rem;
  border-radius: 6px;
  border: none;
  padding: 2px 12px;
  cursor: pointer;
}
.cookie-modal .modal-close:hover {background: #E4DFD6;}

@media (max-width: 540px) {
  .cookie-modal .cookie-modal-content {padding: 18px 6px 22px 8px;}
  .cookie-modal .modal-close {right:10px;top:10px;}
}

/* ========== Animations ============= */
.card, .testimonial-card, .btn-primary, .features-icons img,
.cookie-consent-banner, .cookie-modal-content, .mobile-menu, .mobile-nav a {
  transition: box-shadow .16s, background .16s, color .14s, transform .16s;
}

/* Subtle fade for content-on-appear (optionally add .fade-in to elements in JS) */
.fade-in {
  opacity: 0;
  animation: fadeinShow 1.0s ease-in forwards;
}
@keyframes fadeinShow { to {opacity: 1;} }

/* ============== RESPONSIVE ============= */
@media (max-width: 998px) {
  .section, .content-wrapper {
    padding: 20px 6px;
    gap: 14px;
  }
  .card-container, .content-grid {
    gap: 13px;
  }
}
@media (max-width: 640px) {
  .container {padding: 0 8px;}
  .section {padding: 18px 2px;}
}

/* ========== UTILITY CLASSES =========== */
.text-section {
  margin-bottom: 8px;
}
.mt-0 {margin-top: 0 !important;}
.mb-0 {margin-bottom: 0 !important;}
.mt-16 {margin-top: 16px;}
.mb-16 {margin-bottom: 16px;}
.gap-8 {gap: 8px;}
.gap-16 {gap: 16px;}

/* Accessibility focus style */
:focus-visible {
  outline: 2px solid #8DC6AF;
  outline-offset: 2px;
}

/* Hide visually only (for accessibility) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Hide unnecessary list bullets for main navigation, etc */
nav ul, .mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============ END MAIN CSS ============ */
