/* -------------------------------------------------------------
   CSS Reset & Normalize for cross-browser consistency
---------------------------------------------------------------*/
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
:focus {
  outline: 2px solid #567350;
  outline-offset: 2px;
}

body {
  font-family: 'Nunito', Arial, sans-serif;
  background-color: #F3ECE2;
  color: #4D3A23;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------------
   Brand Typography & Heading Styles
---------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: #4D3A23;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, li, address, blockquote {
  font-family: 'Nunito', Arial, sans-serif;
}
.subtitle {
  font-size: 1.1875rem;
  color: #5E4222;
  margin-bottom: 18px;
  font-weight: 400;
}
strong {
  font-weight: bold;
  color: #4D3A23;
}
em {
  font-style: italic;
  color: #887059;
}

/* -------------------------------------------------------------
   Containers, Layout, and Spacing (Flexbox only!)
---------------------------------------------------------------*/
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  background: none;
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #FFFFFFBB;
  border-radius: 32px;
  box-shadow: 0 2px 24px 0 rgba(77,58,35,0.04);
  transition: box-shadow .2s;
}

@media (max-width: 900px) {
  .section {
    padding: 24px 8px;
    border-radius: 20px;
  }
}

/* FLEX Containers */
.card-container, .features-list, .usp-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-list, .usp-list {
  flex-direction: column;
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FBF7F1;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(77,58,35,0.08);
  margin-bottom: 20px;
  padding: 24px 18px;
  transition: box-shadow .18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 18px 0 rgba(77,58,35,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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 22px 0 rgba(77,58,35,0.09);
  margin-bottom: 24px;
  border: 2px solid #F3ECE2;
  transition: box-shadow .18s, border .2s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px 0 rgba(77,58,35,0.17);
  border-color: #B5C0B1;
}
.testimonial-card blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #35614B;
  quotes: "\201C" "\201D" "\2018" "\2019";
  font-style: italic;
  margin-right: 10px;
}
.testimonial-card strong {
  color: #4D3A23;
}

/* Minimum margin between cards/sections */
.card, .testimonial-card, .section {
  margin-bottom: 24px;
}

/* -------------------------------------------------------------
   Header, Nav, Footer (Mobile-first, Flex only)
---------------------------------------------------------------*/
header {
  width: 100%;
  background: #F3ECE2;
  box-shadow: 0 2px 32px 0 rgba(77,58,35,0.05);
  z-index: 20;
  position: relative;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
header nav a img {
  height: 50px;
  width: auto;
}
header nav ul {
  display: none;
  align-items: center;
  gap: 20px;
}
header nav ul li a {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  color: #4D3A23;
  padding: 7px 13px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: #E8E1D2;
  color: #35614B;
}
header nav ul li .cta {
  color: #fff;
  background: #567350;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  padding: 8px 18px;
  border-radius: 16px;
  font-weight: 600;
  box-shadow: 0 2px 10px 0 rgba(86, 115, 80, 0.1);
  transition: background .18s, box-shadow .18s;
}
header nav ul li .cta:hover, header nav ul li .cta:focus {
  background: #35614B;
  box-shadow: 0 4px 14px 0 rgba(86, 115, 80, 0.21);
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #4D3A23;
  background: none;
  border: none;
  padding: 12px;
  margin-left: 8px;
  border-radius: 11px;
  cursor: pointer;
  transition: background .16s;
  z-index: 25;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E8E1D2;
}
/* Hide desktop nav on mobile, show burger */
@media (min-width: 1000px) {
  .mobile-menu-toggle {
    display: none;
  }
  header nav ul {
    display: flex;
    gap: 20px;
  }
}

/* -------------------------------------------------------------
   Mobile menu overlay
---------------------------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 90vw;
  max-width: 375px;
  background: #F3ECE2;
  box-shadow: -8px 0 36px rgba(77,58,35,0.17);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.66,.12,.33,1);
  display: flex;
  flex-direction: column;
  padding: 32px 20px 18px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: transparent;
  border: none;
  color: #4D3A23;
  cursor: pointer;
  margin-bottom: 14px;
  border-radius: 7px;
  padding: 6px 10px 3px 10px;
  transition: background .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E8E1D2;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
}
.mobile-nav a {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1.2rem;
  color: #4D3A23;
  padding: 12px 8px 12px 3px;
  border-radius: 9px;
  transition: background .16s, color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E8E1D2;
  color: #35614B;
}

/* Mobile nav overlay (fade) */
.mobile-menu::before {
  content: '';
  display: block;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(30,32,23,0.07);
  z-index: -1;
  pointer-events: none;
}

/* -------------------------------------------------------------
   Footer
---------------------------------------------------------------*/
footer {
  width: 100%;
  background: #F3ECE2;
  padding: 38px 0 18px 0;
}
footer .container {
  align-items: flex-start;
  gap: 12px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.97rem;
  color: #7C6A58;
  margin: 8px 0;
}
footer nav a {
  color: #4D3A23;
  opacity: .86;
  transition: color .14s;
  padding: 0 4px;
  border-radius: 6px;
}
footer nav a:hover, footer nav a:focus {
  color: #35614B;
  background: #E8E1D2;
  opacity: 1;
}
footer img {
  height: 48px;
  margin-bottom: 10px;
}
footer address {
  font-style: normal;
  color: #816449;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
  margin-bottom: 8px;
}
footer address div {
  display: flex;
  align-items: center;
  gap: 7px;
}
footer address img {
  width: 18px; height: 18px;
  margin: 0 2px 0 0;
  filter: grayscale(0.17) brightness(0.90);
}
footer p {
  color: #A3907B;
  font-size: 0.98rem;
  margin-top: 9px;
}

/* -------------------------------------------------------------
   Buttons, Links, Interactive Elements
---------------------------------------------------------------*/
.cta, .btn, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  color: #fff;
  background: #567350;
  padding: 12px 34px;
  border-radius: 20px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(86, 115, 80, 0.10);
  transition: background .22s, box-shadow .22s, transform .12s;
  margin: 6px 0 0 0;
  min-width: 150px;
  min-height: 48px;
  gap: 10px;
}
.cta:hover, .cta:focus, .btn:hover, button:hover, input[type="submit"]:hover, .btn:focus, button:focus, input[type="submit"]:focus {
  background: #35614B;
  box-shadow: 0 6px 24px rgba(86,115,80,0.18);
  transform: translateY(-1px) scale(1.017);
}
.btn.secondary {
  background: #4D3A23;
  color: #fff;
}
.btn.secondary:hover, .btn.secondary:focus {
  background: #6C5937;
}

/* Link style */
a {
  color: #567350;
  transition: color .15s;
}
a:hover, a:focus {
  color: #3a4f37;
}

/* -------------------------------------------------------------
   Organic & Nature-Inspired Visuals
---------------------------------------------------------------*/
/* Curvy background for hero (optional with pseudo) */
section {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.section {
  background: #fff;
  border-radius: 32px 42px 28px 44px / 31px 32px 31px 38px;
  box-shadow: 0 8px 40px 0 rgba(56,44,22,0.03);
}
/* Organic section curves (mobile refined) */
@media (max-width: 600px) {
  .section {
    border-radius: 18px 24px 18px 20px / 18px 14px 22px 22px;
    padding: 20px 4vw;
  }
}

/* Background accent curves (as a subtle touch with before/after) */
.section::before {
  content: '';
  position: absolute;
  left: -25px; top: -40px;
  width: 170px; height: 70px;
  background: #B5C0B150;
  border-radius: 80px 90px 60px 30px / 35px 60px 80px 60px;
  z-index: 0;
  filter: blur(18px);
  opacity: 0.07;
  pointer-events: none;
}
.section::after {
  content: '';
  position: absolute;
  right: -55px; bottom: -36px;
  width: 120px; height: 60px;
  background: #56735070;
  border-radius: 60px 40px 30px 90px / 90px 60px 40px 39px;
  z-index: 0;
  filter: blur(16px);
  opacity: 0.10;
  pointer-events: none;
}

/* Organic cards and testimonials */
.card, .testimonial-card {
  border-radius: 20px 13px 28px 18px / 24px 18px 12px 20px;
}

/* Accent icons */
address img,
li img {
  filter: grayscale(0.2) brightness(0.81) sepia(0.17) hue-rotate(50deg) saturate(0.9);
}

/* -------------------------------------------------------------
   Tables
---------------------------------------------------------------*/
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  margin: 26px 0 18px 0;
}
thead tr {
  background: #E8E1D2;
}
th, td {
  padding: 13px 10px;
  border-bottom: 1px solid #D9CFC2;
  font-size: 1rem;
  color: #4D3A23;
  text-align: left;
}
th {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.04rem;
}
tbody tr:last-child td {
  border-bottom: none;
}

/* -------------------------------------------------------------
   Lists and Blockquotes
---------------------------------------------------------------*/
ul, ol {
  margin: 0 0 8px 20px;
  padding: 0;
}
ul li,
ol li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #4D3A23;
  position: relative;
  padding-left: 1.2em;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  background: #B5C0B1;
  border-radius: 50%;
  position: absolute;
  left: 0.1em; top: 0.65em;
}
ol li::before {
  /* No custom marker for ordered */
  display: none;
}
blockquote {
  font-style: italic;
  color: #35614B;
  font-size: 1.11rem;
  padding-left: 16px;
  border-left: 4px solid #B5C0B1;
  margin-bottom: 6px;
  background: transparent;
}

/* -------------------------------------------------------------
   Responsive design (mobile-first)
---------------------------------------------------------------*/
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding: 0 6px;
  }
}
@media (max-width: 768px) {
  .card-container, .content-grid, .features-list, .usp-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }
  header nav ul {
    display: none !important;
  }
  .section {
    margin-bottom: 38px;
    padding: 20px 3vw;
  }
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .cta, .btn, button {
    min-width: unset;
    min-height: 44px;
    width: 100%;
    max-width: 370px;
    font-size: 1rem;
    padding: 10px 13px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 2px;
  }
  .section {
    padding: 11px 3vw;
    margin-bottom: 18px;
  }
}

/* -------------------------------------------------------------
   Cookie Consent Banner & Modal
---------------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100vw;
  background: #567350;
  color: #fff;
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 32px 21px 22px;
  box-shadow: 0 -4px 40px 2px rgba(74,51,23,0.12);
  border-radius: 18px 18px 0 0 / 11px 14px 0 0;
  transition: transform .32s cubic-bezier(.66,.12,.33,1), opacity .3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-msg {
  flex: 1 1 70%;
  font-size: 1rem;
  line-height: 1.3;
  color: #fff;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner .btn-cookie {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 18px;
  padding: 9px 18px;
  border: none;
  cursor: pointer;
  background: #F3ECE2;
  color: #4D3A23;
  transition: background .18s, color .18s;
}
.cookie-banner .btn-cookie.accept {
  background: #35614B;
  color: #fff;
}
.cookie-banner .btn-cookie.accept:hover, .cookie-banner .btn-cookie.accept:focus {
  background: #21442E;
}
.cookie-banner .btn-cookie.reject {
  background: #B5C0B1;
  color: #3D2714;
}
.cookie-banner .btn-cookie.reject:hover, .cookie-banner .btn-cookie.reject:focus {
  background: #9dad99;
}
.cookie-banner .btn-cookie.settings {
  border: 1px solid #B5C0B1;
  background: #F3ECE2;
  color: #4D3A23;
}
.cookie-banner .btn-cookie.settings:hover, .cookie-banner .btn-cookie.settings:focus {
  background: #D9CFC2;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px 18px 7px;
    gap: 8px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-msg {
    margin-bottom: 7px;
    flex: none;
  }
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(56,47,21,0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 1;
  visibility: visible;
  transition: opacity .28s cubic-bezier(.66,.12,.33,1);
}
.cookie-modal.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 26px;
  padding: 32px 22px 22px 22px;
  box-shadow: 0 8px 48px 0 rgba(56,44,22,0.13);
  max-width: 98vw;
  width: 420px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 17px; right: 13px;
  background: none;
  border: none;
  color: #4D3A23;
  font-size: 1.75rem;
  padding: 3px 7px 2px 7px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 50;
  transition: background .15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #E8E1D2;
}
.cookie-modal h2, .cookie-modal h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  color: #35614B;
}
.cookie-modal label {
  font-size: 1rem;
  color: #5E4730;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}
.cookie-modal .switch {
  position: relative;
  display: inline-flex;
  width: 41px;
  height: 22px;
  background: #B5C0B1;
  border-radius: 13px;
  align-items: center;
  margin-left: 9px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  left: 1.5px;
  top: 1.5px;
  bottom: 1.5px;
  width: 38px;
  height: 19px;
  background: #B5C0B1;
  border-radius: 12px;
  transition: background .17s;
}
.cookie-modal .switch input:checked + .slider {
  background: #35614B;
}
.cookie-modal .slider::before {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 3.2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s cubic-bezier(.5,.25,.6,1.1);
}
.cookie-modal .switch input:checked + .slider::before {
  transform: translateX(16px);
}

.cookie-modal .cookie-cat {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}
.cookie-modal .cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-modal .btn-cookie {
  border-radius: 14px;
  padding: 8px 18px;
  font-size: 1rem;
  background: #35614B;
  color: #fff;
  font-family: 'Nunito', Arial, sans-serif;
  border: none;
  cursor: pointer;
  transition: background .18s;
}
.cookie-modal .btn-cookie.secondary {
  background: #B5C0B1;
  color: #3D2714;
}
.cookie-modal .btn-cookie:hover, .cookie-modal .btn-cookie:focus {
  background: #567350;
}
.cookie-modal .btn-cookie.secondary:hover, .cookie-modal .btn-cookie.secondary:focus {
  background: #929683;
}

/* -------------------------------------------------------------
   Miscellaneous Utilities
---------------------------------------------------------------*/
.gap-8 { gap: 8px!important; }
.gap-16 { gap: 16px!important; }
.gap-24 { gap: 24px!important; }
.gap-32 { gap: 32px!important; }
.mb-20 { margin-bottom: 20px!important; }

/* Hide visually but keep accessible for screen readers */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------------
   Animations & Micro-interactions
---------------------------------------------------------------*/
.cta, .btn, button {
  transition: background .22s, box-shadow .1s, transform .13s;
}
.card {
  transition: box-shadow .17s, background .18s;
}
.card:hover {
  background: #F1F8F2;
}

/* Slide-in for mobile menu */
.mobile-menu {
  transition: transform .34s cubic-bezier(.66,.12,.33,1);
}
.cookie-banner, .cookie-modal {
  transition: opacity .3s, transform .32s;
}

/* Fade in fade out (utility class, can be toggled via JS) */
.fade-in {
  opacity: 1;
  pointer-events: all;
  transition: opacity .3s;
}
.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* -------------------------------------------------------------
   Accessibility
---------------------------------------------------------------*/
:focus-visible {
  outline: 2px dotted #567350;
  outline-offset: 3px;
}

/* -------------------------------------------------------------
   Print Styles
---------------------------------------------------------------*/
@media print {
  *, *:before, *:after {
    background: transparent !important;
    color: #111 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .mobile-menu, .cookie-banner, .cookie-modal, .btn, .cta {
    display: none !important;
  }
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  section, .section {
    page-break-inside: avoid;
  }
}
