/* =============================================================
   RESET & BASELINE NORMALIZATION
   ============================================================= */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  background: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  background: none;
  border: none;
  color: inherit;
}
:focus {
  outline: 2px solid #89A559;
  outline-offset: 2px;
}

/* =============================================================
   CSS ROOT VARIABLES (WITH FALLBACKS)
   ============================================================= */
:root {
  --color-primary: #204060;
  --color-secondary: #89A559;
  --color-accent: #F4F3EE;
  --color-bg: #faf8f4;
  --color-text: #232020;
  --color-muted: #B9B18B;
  --color-success: #4ab676;
  --color-error: #d95d39;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 8px;
  --shadow-md: 0 4px 16px 0 rgba(33, 40, 23, 0.10);
  --shadow-sm: 0 2px 8px rgba(33, 40, 23, 0.07);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* =============================================================
   GENERAL BODY, TYPOGRAPHY
   ============================================================= */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  min-height: 100vh;
  /* organic background effect */
  background-image: url('../assets/textures/nature-paper.jpg');
  background-repeat: repeat;
  letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}
h1 { font-size: 2.4rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
p, ul, ol { margin-bottom: 14px; }
strong { font-weight: 700; }

a {
  color: var(--color-secondary);
  transition: color 0.3s;
}
a:hover, a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Remove margin from last child elements in text */
.text-section > *:last-child, .content-wrapper > *:last-child { margin-bottom: 0; }

/* =============================================================
   LAYOUT CONTAINERS & SECTIONS
   ============================================================= */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: transparent;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-section {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.map-embed {
  background: var(--color-accent);
  padding: 18px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  color: var(--color-primary);
  margin-top: 18px;
}

/* -------------------------------------------------------------
   PAGE STRUCTURE - CARD AND FEATURE CONTAINERS
   ------------------------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  padding: 28px 22px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.3s;
}
.card:hover, .card:focus-within {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 8px 32px 0 rgba(33,40,23,0.16);
}

.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;
  background: #f8faf5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 250px;
  max-width: 500px;
  color: #2a361b;
  border: 1px solid #d4e2cb;
  /* subtle nature textures: could add background-image/svg/leaf decorative element with absolute if desired */
}
.testimonial-card p {
  color: #2a361b;
  font-size: 1rem;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.95rem;
  margin-left: 10px;
  color: #4b6652;
  font-family: var(--font-body);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 18px;
  border-radius: var(--radius-md);
  background: #e8f1e6;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

ul li img {
  width: 28px;
  height: 28px;
  margin-right: 9px;
  vertical-align: middle;
}
ul li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 12px;
  color: #35371e;
}

/* Last item margin reset */
ul li:last-child { margin-bottom: 0; }

/* =============================================================
   HEADER / NAVIGATION
   ============================================================= */
header {
  width: 100%;
  background: linear-gradient(90deg, #f6f8f3 60%, #e9f5e0 100%);
  border-bottom: 2px solid #d4e2cb;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 46px;
  border-radius: 0 0 16px 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.09rem;
  padding: 7px 12px;
  border-radius: 18px;
  transition: background .21s, color .21s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 999px;
  padding: 13px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.07rem;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  transition: background .21s, color .18s, box-shadow .19s, transform .11s;
  letter-spacing: 0.02em;
  margin-left: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 7px 24px 0 rgba(33,40,23,0.16);
  transform: translateY(-2px) scale(1.025);
}

/* -------------------------------------------------------------
   MOBILE NAVIGATION
   ------------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 140;
  margin-left: 14px;
  transition: background 0.15s;
  box-shadow: 0 2px 10px rgba(72,112,41,0.12);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #f7fef6;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
  transform: translateX(100vw);
  transition: transform 0.37s cubic-bezier(.55,.01,.18,.99);
  box-shadow: 0 8px 32px 0 rgba(33,40,23,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-primary);
  color: #fff;
  font-size: 2.1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 20px 0 0 18px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(50,80,31,0.16);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 18px;
  margin-left: 28px;
  width: 95vw;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.27rem;
  font-family: var(--font-display);
  padding: 18px 0 6px 4px;
  border-radius: 6px;
  transition: background .19s, color .19s;
  min-width: 88px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e8f3d6;
  color: var(--color-secondary);
}

@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =============================================================
   HERO / PAGE SECTIONS
   ============================================================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 600px) {
  section {
    padding: 32px 6px 32px 6px;
  }
}
section > .container > h1, section > .container > h2 {
  margin-bottom: 26px;
}

/* =============================================================
   BUTTONS
   ============================================================= */
button, .cta-btn {
  font-family: var(--font-display);
  outline: none;
}
button:not(.cta-btn):not(.mobile-menu-toggle):not(.mobile-menu-close) {
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  margin-right: 12px;
  margin-bottom: 12px;
  transition: background 0.19s, box-shadow .19s;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
button:not(.cta-btn):not(.mobile-menu-toggle):not(.mobile-menu-close):hover,
button:not(.cta-btn):not(.mobile-menu-toggle):not(.mobile-menu-close):focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(33,40,23,0.12);
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: #e9efe3;
  color: #344d34;
  padding: 0 0 0 0;
  border-top: 1.5px solid #d7e9c6;
}
footer .container {
  padding-top: 32px;
  padding-bottom: 18px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 16px;
}
footer .footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
footer .footer-nav a {
  color: #326b2e;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  transition: color .13s;
}
footer .footer-nav a:hover, footer .footer-nav a:focus {
  color: var(--color-secondary);
}
footer small {
  color: #7a9153;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

/* =============================================================
   RESPONSIVE FLEX ADJUSTMENTS
   ============================================================= */
@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .feature-item, .testimonial-card {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 26px 4px;
    margin-bottom: 34px;
  }
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
  }
}

@media (max-width:520px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.16rem; }
  .cta-btn { padding: 11px 14px; font-size:1rem; }
  .feature-item, .card, .testimonial-card, .map-embed { padding:12px !important; }
}

/* =============================================================
   COOKIE BANNER & CONSENT MODAL
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: rgba(248, 255, 237, 0.98);
  color: var(--color-primary);
  border-top: 2px solid #c4dab0;
  box-shadow: 0 -2px 22px rgba(40,56,23,0.06);
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px;
  gap: 10px;
  animation: slideUp .32s cubic-bezier(.54,.01,.18,.85);
}
@keyframes slideUp {
  0% { transform: translateY(90px); opacity: 0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  font-size: 0.99rem;
  color: #283918;
  margin-bottom: 6px;
}
.cookie-banner .cookie-btn {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 36px;
  font-size: 1.01rem;
  font-weight: 600;
  border: none;
  padding: 9px 22px;
  margin-right: 9px;
  margin-bottom: 0;
  transition: background 0.17s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--color-primary);
}
.cookie-banner .cookie-btn.reject {
  background: #c7aa55;
  color: var(--color-text);
}
.cookie-banner .cookie-btn.reject:hover {
  background: #a49c76;
  color: #f9f8f7;
}
.cookie-banner .cookie-btn.settings {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid #a1b467;
  box-shadow: none;
}
.cookie-banner .cookie-btn.settings:hover {
  background: #f1f9ed;
}

/* Cookie modal overlay & dialog */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(48,60,34,0.53);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s;
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #f8fff1;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 36px 0 rgba(33,40,23,0.18);
  padding: 36px 28px 26px 28px;
  min-width: 390px;
  min-height: 200px;
  max-width: 95vw;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-size: 1.24rem;
  margin-bottom: 10px;
}
.cookie-modal label {
  font-size: 1.03rem;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.cookie-modal input[type="checkbox"]:disabled {
  accent-color: var(--color-muted);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .close-modal {
  background: var(--color-primary);
  color: #fff;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-self: flex-end;
  margin-bottom: 8px;
}

@media (max-width: 570px) {
  .cookie-modal {
    min-width: unset;
    padding: 22px 9px 16px 9px;
    font-size: 1.01rem;
  }
}

/* =============================================================
   MICRO-INTERACTIONS & HOVER EFFECTS
   ============================================================= */
.card, .testimonial-card, .feature-item, .cta-btn, .main-nav a, .footer-nav a, .mobile-nav a, button {
  transition: 
    background 0.2s,
    box-shadow 0.29s,
    color 0.19s,
    transform 0.11s;
}
.card:active,
.testimonial-card:active,
.feature-item:active,
.cta-btn:active,
.main-nav a:active,
.footer-nav a:active,
.mobile-nav a:active,
button:active {
  transform: scale(0.98);
}

/* Organic shape/deco example */
.card::before, .testimonial-card::before, .feature-item::before {
  content: '';
  display: block;
  position: absolute;
  top: -20px;
  right: -26px;
  width: 54px; height: 42px;
  background: url('../assets/textures/leaf-deco.svg') no-repeat center center/contain;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}
.card {
  z-index: 1;
}

/* Remove deco on small screens for space */
@media (max-width: 600px) {
  .card::before, .testimonial-card::before, .feature-item::before {
    display: none;
  }
}

/* =============================================================
   UTILS & SPACING HELPERS
   ============================================================= */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.white-bg { background: #fff !important; }

/* =============================================================
   SELECTIONS & FOCUS for accessibility
   ============================================================= */
::selection {
  background: #c7dec3;
  color: var(--color-primary);
}

:focus-visible {
  outline: 2.3px solid #89A559 !important;
}

/* =============================================================
   SCROLLBAR STYLING (optional for organic modern look)
   ============================================================= */
::-webkit-scrollbar {
  width: 10px;
  background: #e9efe3;
}
::-webkit-scrollbar-thumb {
  background: #b4c89b;
  border-radius: 8px;
}

/******* END OF NATURE ORGANIC STYLE CSS ******/
