/* ------------------------ 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,
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background-color: #f6f4ef; /* light natural background */
  color: #222;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #236045;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #4BB2C4;
  outline: none;
}
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1em;
  padding-left: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
button, .btn-primary {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}
/* ------------------------ BRAND VARIABLES ------------------------- */
:root {
  --primary: #236045;
  --secondary: #E2E4C3;
  --accent: #4BB2C4;
  --earth-brown: #83694A;
  --earth-green: #54715A;
  --earth-cream: #F6F4EF;
  --earth-dark: #364A36;
  --radius-sm: 12px;
  --radius-md: 24px;
  --shadow-dark: 0 4px 26px rgba(35, 96, 69, 0.07);
  --shadow-light: 0 2px 8px rgba(131, 105, 74, 0.10);
}

/* ------------------------ TYPOGRAPHY ------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem; /* 36px */
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
p, ul, ol, li {
  font-family: 'Roboto', Arial, sans-serif;
  color: #252a2e;
  font-size: 1rem;
  line-height: 1.7;
}
strong, b {
  color: var(--earth-brown);
  font-weight: 700;
}
em, i {
  color: var(--primary);
}
.text-section h3 {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--earth-green);
}

/* ------------------- CONTAINER & LAYOUT ---------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--earth-cream);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FLEXBOX PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  padding: 24px 20px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 320px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-dark);
  transform: translateY(-4px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-light);
  color: #252a2e;
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card p {
  flex: 1 1 auto;
  margin-bottom: 0;
  color: #236045;
  font-size: 1.05rem;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--earth-brown);
  font-style: normal;
  font-size: 0.97rem;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  padding: 24px 20px;
  min-width: 240px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-dark);
  transform: translateY(-2px) scale(1.02);
}
.feature-grid img, .feature-item img, .text-section ul img {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--secondary);
  padding: 3px;
}
.text-section {
  padding: 24px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section ul {
  margin-left: 0;
  list-style: none;
  padding-left: 0;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.location-map {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  margin-top: 15px;
}

/* -------------- BUTTONS & INTERACTIVE ELEMENTS --------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: var(--earth-cream);
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 30px 30px 20px 20px / 24px 24px 30px 30px;
  /* organic pill with subtle curves */
  box-shadow: var(--shadow-light);
  padding: 0.65em 1.55em;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.25s, transform 0.15s;
}
.btn-primary:focus, .btn-primary:hover {
  background: var(--accent);
  color: var(--earth-cream);
  box-shadow: 0 6px 30px rgba(35,96,69,0.12);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

/* -------------- HEADER & NAVIGATION --------------- */
header {
  background: linear-gradient(90deg, #E2E4C3 40%, #F6F4EF 100%);
  border-bottom-left-radius: 92px 46px;
  border-bottom-right-radius: 52px 24px;
  box-shadow: var(--shadow-light);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
  justify-content: space-between;
}
header img {
  height: 54px;
  width: auto;
  border-radius: 0 18px 0 18px;
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
nav a {
  color: var(--earth-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  transition: background 0.13s, color 0.13s;
}
nav a:hover, nav a:focus {
  background: var(--primary);
  color: var(--earth-cream);
}

/* ----------- MOBILE NAVIGATION/HAMBURGER MENU ----------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  right: 22px;
  top: 18px;
  z-index: 2100;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--earth-cream);
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  box-shadow: var(--shadow-dark);
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 94vw;
  height: 100vh;
  background: #F6F4EF;
  box-shadow: -8px 0 38px rgba(35,96,69,0.09);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  transform: translateX(110vw);
  transition: transform 0.38s cubic-bezier(.74,.12,.19,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 0 0;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 2.1rem;
  padding: 3px 11px 5px 11px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px #4BB2C455;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 35px 0 35px;
  margin-top: 38px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  background: none;
  border-radius: var(--radius-sm);
  display: block;
  padding: 14px 0 14px 0;
  border-bottom: 1.5px dashed #B2B59333;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: var(--secondary);
}

/* Hamburger only on mobile */
@media (max-width: 992px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -------------- MAIN & SECTIONS --------------- */
main {
  margin-bottom: 32px;
  margin-top: 18px;
  min-height: 60vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-light);
  background: var(--earth-cream);
}
section:last-child {
  margin-bottom: 0;
}

/* -------------- FOOTER --------------- */
footer {
  margin-top: 28px;
  background: #e2e4c3;
  border-top-right-radius: 60px 28px;
  border-top-left-radius: 100px 52px;
  box-shadow: var(--shadow-light);
  padding: 28px 0 12px 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-branding img {
  width: 46px;
  height: auto;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #475330;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: color 0.18s;
}
footer nav a:hover {
  color: var(--primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.96rem;
  color: #54715A;
}
.footer-contact img {
  width: 22px;
  vertical-align: baseline;
  margin-right: 8px;
}

/* ------------------ COOKIE CONSENT BANNER ---------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #E2E4C3;
  box-shadow: 0 -4px 24px #364A3628;
  color: #1b231c;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3900;
  padding: 26px 18px 16px 18px;
  border-top-left-radius: 32px 24px;
  border-top-right-radius: 92px 28px;
  gap: 18px;
  animation: cookie-slide-up 0.55s cubic-bezier(.7,.01,.2,1);
}
@keyframes cookie-slide-up {
  0% { transform: translateY(120%); opacity: 0; }
  76% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 0;
  line-height: 1.5;
  text-align: center;
  color: #314537;
}

.cookie-banner .button-group {
  display: flex;
  gap: 18px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  font-size: 0.98rem;
  padding: 0.55em 1.55em;
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 22px;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: #fff;
}
.btn-tertiary {
  background: none;
  color: var(--primary);
  border: none;
  text-decoration: underline wavy;
  font-size: 0.98rem;
  border-radius: 12px;
  padding: 6px 12px;
  transition: background 0.12s, color 0.12s;
  margin-left: 6px;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: #eceedd;
  color: var(--accent);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 52%;
  transform: translate(-50%,-50%) scale(1);
  background: #FFFFFF;
  color: #29372c;
  border-radius: 28px 60px 38px 20px / 18px 60px 30px 34px;
  box-shadow: 0 12px 48px #4bb2c485, 0 1.5px 14px #364A3622;
  min-width: 320px;
  max-width: 90vw;
  z-index: 4200;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 34px 32px 24px 32px;
  animation: cookie-modal-in 0.3s cubic-bezier(.65,0,.25,1);
}
@keyframes cookie-modal-in {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(0.7); }
  95% { opacity:1; }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal h3 {
  color: var(--primary);
  font-size: 1.15rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--secondary);
  border-radius: 14px;
  padding: 12px 18px;
  margin: 10px 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 22px;
  height: 22px;
  margin-left: 4px;
}
.cookie-category input[type="checkbox"]:disabled {
  opacity: 0.7;
}
.cookie-modal .button-group {
  gap: 14px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 26px;
  background: #ededed;
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.4rem;
  border: none;
  padding: 3px 12px 3px 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px #ebd9cd50;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #eceedd;
  color: var(--accent);
}


/* ------------------ RESPONSIVE DESIGN ----------------------- */
@media (max-width: 992px) {
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .footer-contact, .footer-branding, footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  header .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-top: 8px;
  }
  .section, section {
    padding: 26px 8px 28px 8px;
    margin-bottom: 44px;
    border-radius: 18px;
  }
  .text-image-section, .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.17rem; }
  h3 { font-size: 1.04rem; }
  .feature-grid > div,
  .card {
    min-width: 90%;
    padding: 15px 12px;
  }
  .footer-branding img { width: 40px; }
}
@media (max-width: 540px) {
  .footer-contact span { font-size: 0.95rem; }
  .cookie-modal {
    padding: 22px 14px 18px 14px;
    border-radius: 18px 24px 22px 18px/8px 24px 20px 24px;
    min-width: 170px;
  }
}

/* ------------------ ORGANIC/NATURE VISUALS ------------------ */
/* Earthy organic shapes for sections */
section {
  border-radius: 60px 22px 38px 60px/40px 24px 52px 34px;
  background: #f6f4ef;
  box-shadow: var(--shadow-light);
}
.feature-grid > div, .card {
  border-radius: 34px 18px 18px 22px / 18px 38px 30px 30px;
  box-shadow: var(--shadow-light);
}
.testimonial-card {
  border-radius: 24px 20px 18px 22px / 16px 24px 18px 30px;
}

/* Section pattern (leaf shadow) - decorative, absolutely placed */
@media (min-width: 900px) {
  .section {
    position: relative;
  }
  .section::before {
    content: '';
    display: block;
    position: absolute;
    left: -44px;
    top: -28px;
    width: 110px;
    height: 60px;
    background: url("../assets/textures/leaf-shadow.svg") no-repeat center center;
    background-size: contain;
    opacity: 0.10;
    z-index: 0;
  }
}

/* Slight organic outline effect for cards on hover */
.card, .feature-grid > div {
  outline: 2px solid #00000005;
  transition: outline 0.13s, box-shadow 0.18s, transform 0.14s;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 7px 24px #4BB2C425;
  outline: 2.5px solid var(--accent);
}


/* ------------------- MISC GENERAL STYLES -------------------- */
::-webkit-scrollbar {
  width: 12px;
  background-color: #eceedd;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d1d39b;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 2px var(--primary), 0 1.5px 7px #23604533;
}

/* Make sure no elements overlap */
section, .card, .feature-grid > div, .testimonial-card, .cookie-banner {
  margin-bottom: 20px;
}

@media (max-width: 540px) {
  section, .section, footer, header {
    border-radius: 10px;
  }
}

/* Hide cookie modal when not open (should be handled by JS with .open class) */
.cookie-modal {
  display: none;
}
.cookie-modal.open {
  display: flex;
}

/* Hide cookie banner when not shown (handled via JS: add .hide to banner) */
.cookie-banner.hide {
  display: none;
}

/* ---- Accessibility: Focus ring --- */
a:focus, .btn-primary:focus, .btn-secondary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .btn-tertiary:focus {
  outline: 2.5px dotted var(--accent);
  outline-offset: 2px;
}

/* ORGANIC ACCENTS HERE */
hr {
  border: none;
  height: 2px;
  width: 80px;
  background: var(--accent);
  border-radius: 1.5px;
  margin: 22px auto;
}

/* Micro-interactions */
.card, .feature-grid > div, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close {
  will-change: transform, box-shadow;
}

/* VISUALS: subtle organic "hand-crafted" touch */
.card, section, .feature-grid > div {
  transition: border-radius 0.12s, background 0.18s, box-shadow 0.22s;
}

/* ENFORCE FLEXBOX ONLY, RESET ANY GRID OR COLUMN PROPS */
[class*="grid"], [class*="column"] {
  display: flex !important;
  flex-wrap: wrap;
  gap: 20px !important;
}

/* -------------------- END OF STYLES -------------------------- */
