/* --------------------- CSS RESET & NORMALIZE -------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button, input, textarea, select {
  font: inherit;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}


/* --------------------- FONT IMPORTS ----------------------------- */
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700&display=swap');


/* ----------------- CSS CUSTOM PROPERTIES ------------------------ */
:root {
  --primary: #205b36;
  --secondary: #f4faf0;
  --accent: #db9600;
  --dark: #182820;
  --white: #fff;
  --grey: #f7f8fa;
  --text: #212529;
  --neutral: #e2e6e9;
  --shadow: 0 4px 24px rgba(32,91,54,0.12), 0 1.5px 6px rgba(32,91,54,0.08);
  --shadow-soft: 0 2px 8px rgba(32,91,54,0.08);
  --radius: 20px;
  --radius-sm: 10px;
  --header-height: 76px;
  --transition: all 0.25s cubic-bezier(0.5,0,0,1);
  --font-display: 'Merriweather', serif;
  --font-body: 'Source Sans Pro', Arial, sans-serif;
}


body {
  font-family: var(--font-body);
  background: var(--secondary);
  color: var(--text);
  min-height: 100vh;
  letter-spacing: 0.01em;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}


/* ----------------- TYPOGRAPHY ---------------------- */
h1, .hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.7rem;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
  line-height: 1.12;
  text-shadow: 0 2px 0 var(--accent), 0 2.5px 16px rgba(32,91,54,0.03);
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
}
p, li {
  color: var(--dark);
  font-size: 1.08rem;
  margin-bottom: 14px;
  line-height: 1.7;
}
ul, ol {
  padding-left: 0;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  padding-left: 30px;
  position: relative;
}
ul > li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}
strong {
  font-weight: 700;
  color: var(--accent);
}

.text-section {
  margin-bottom: 18px;
}

.hero p,
p.hero,
main > section .container > .content-wrapper > p:first-of-type {
  font-size: 1.25rem;
  margin-bottom: 26px;
  max-width: 720px;
  color: var(--primary);
}

blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary);
  margin: 0 0 8px 0;
}

footer p {
  font-size: 0.98rem;
  color: var(--primary);
}

/* MOBILE FONT SIZES */
@media (max-width: 768px) {
  h1, .hero h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
}


/* -------------------- HEADER -------------------- */
header {
  background: var(--white);
  box-shadow: 0 3px 12px rgba(32,91,54,0.04);
  min-height: var(--header-height);
  z-index: 40;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: var(--header-height);
}
header a img {
  max-height: 52px;
  margin-right: 32px;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}
header .cta.primary {
  margin-left: 18px;
  font-size: 1.1rem;
}


/* -------------------- CTAS & BUTTONS -------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.08rem;
  padding: 12px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-shadow: none;
  min-width: 175px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 18px;
  margin-bottom: 10px;
  border: none;
  outline: none;
  letter-spacing: 0.01em;
}
.cta.primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 24px rgba(32,91,54,0.13);
}
.cta.secondary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--white);
  color: var(--primary);
  border-color: var(--accent);
  transform: scale(1.04) translateY(-2px);
}
button, .cta {
  cursor: pointer;
  transition: var(--transition);
}

/* ------------------ SECTIONS ------------------ */
section {
  width: 100%;
  background: none;
}
main > section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.hero {
  background: var(--secondary);
  padding: 42px 0 38px 0;
  box-shadow: 0 8px 40px rgba(32,91,54,0.07);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  position: relative;
  z-index: 1;
}
.hero:after {
  content: '';
  position: absolute;
  right: -100px;
  bottom: -50px;
  width: 260px;
  height: 260px;
  background: var(--accent);
  opacity: 0.14;
  border-radius: 50%;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

/* ------------- FLEXBOX CONTAINERS ----------------- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  align-items: stretch;
  margin-top: 18px;
}
.card-container, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  padding: 28px 25px 23px 25px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: var(--transition);
  position: relative;
  min-width: 260px;
}
.card:hover, .card:focus {
  box-shadow: 0 10px 40px rgba(32,91,54,0.19);
  transform: translateY(-5px) scale(1.02);
}
.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;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px 26px 25px 26px;
  min-width: 225px;
  max-width: 390px;
  transition: var(--transition);
  position: relative;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  filter: drop-shadow(0 4px 0 var(--accent));
}
.feature-item h3 {
  margin-bottom: 5px;
}
.feature-item:hover {
  box-shadow: 0 12px 36px rgba(32,91,54,0.22);
  transform: translateY(-5px) scale(1.035);
}
.text-section {
  margin-bottom: 15px;
}


/* ------------------- TESTIMONIALS ---------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(32,91,54,0.08);
  padding: 20px 28px;
  margin-bottom: 22px;
  margin-top: 8px;
  max-width: 670px;
  border-left: 6px solid var(--accent);
  transition: var(--transition);
}
.testimonial-card:hover, .testimonial-card:focus {
  background: var(--accent);
  color: var(--white) !important;
  box-shadow: 0 20px 48px rgba(219,150,0,0.1);
}
.testimonial-card blockquote {
  color: var(--primary);
  font-size: 1.07rem;
  margin-bottom: 4px;
}
.testimonial-card footer {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--dark);
  opacity: 0.9;
}
.testimonial-card:hover blockquote,
.testimonial-card:hover footer {
  color: var(--white);
}


/* ---------------------- FOOTER ------------------------ */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 34px 0 20px 0;
  width: 100%;
  margin-top: 32px;
  box-shadow: 0 -4px 24px rgba(32,91,54,0.04);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}
footer .container {
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
footer nav a {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.01rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.17s;
}
footer nav a:hover {
  background: var(--secondary);
  color: var(--primary);
}
footer p {
  color: var(--secondary);
  max-width: 720px;
  text-align: center;
  opacity: 0.9;
}


/* ----------------------- MAP PLACEHOLDER ------------- */
.map-placeholder {
  background: var(--neutral);
  border: 2.5px dashed var(--accent);
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 38px 10px;
  margin-top: 15px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 1.07rem;
  font-family: var(--font-display);
}

/* ---------------- ICONS next to text ---------------- */
.text-section ul li img, ul li img {
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  display: inline-block;
}


/* -------------------- MOBILE BURGER MENU -------------------- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 24px;
  right: 23px;
  z-index: 120;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  border: none;
  font-size: 2.2rem;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 22px rgba(32,91,54,0.08);
  transition: var(--transition);
  cursor: pointer;
}
.mobile-menu-toggle:focus {
  outline: 3px solid var(--accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 86vw;
  max-width: 470px;
  background: var(--white);
  box-shadow: -6px 0 40px rgba(32,91,54,0.16);
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(0.5,0,0,1);
  z-index: 200;
  padding: 32px 28px 0 38px;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0%);
  transition: transform 0.38s cubic-bezier(0.5,0,0,1);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  font-size: 2rem;
  box-shadow: 0 2px 10px rgba(32,91,54,0.09);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 12px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.18rem;
  padding: 12px 0;
  transition: color 0.17s, background 0.17s;
  border-radius: var(--radius-sm);
  padding-left: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

body.menu-open {
  overflow: hidden;
}

/* Overlay (optional gradient) */
.mobile-menu::after {
  content: '';
  display: none;
}

/* Hide desktop navigation on mobile */
@media (max-width: 900px) {
  header nav, header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

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

/* Ensure mobile menu is always on top */
@media (max-width: 900px) {
  .mobile-menu {
    box-shadow: -8px 0 60px rgba(32,91,54,0.18);
  }
}


/* ---------------- COOKIE CONSENT BANNER -------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -4px 38px rgba(32,91,54,0.11);
  padding: 25px 18px;
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: cookieSlideIn 0.45s cubic-bezier(0.75,0,0,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner__text {
  max-width: 640px;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-consent-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-consent-btn, .cookie-settings-btn {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.08rem;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
}
.cookie-consent-btn.reject {
  background: var(--primary);
  color: var(--white);
}
.cookie-consent-btn:hover, .cookie-settings-btn:hover {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--accent);
}

.cookie-settings-btn {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--accent);
  font-size: 1.02rem;
}
.cookie-settings-btn.selected {
  background: var(--accent);
  color: var(--white);
}

/* -------- COOKIE SETTINGS MODAL ------------ */
.cookie-modal-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,91,54,0.25);
  z-index: 2100;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: fadeIn 0.38s cubic-bezier(0.54,0,0,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  width: 95vw;
  max-width: 410px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 12px 44px rgba(32,91,54, 0.17);
  padding: 36px 32px 28px 32px;
  margin-bottom: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.41s cubic-bezier(0.65,0,0,1);
}
@keyframes modalSlideIn {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 1.35rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(32,91,54,0.09);
  z-index: 2;
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--neutral);
}
.cookie-modal .cookie-category:last-child {
  border-bottom: none;
}
.cookie-modal .cookie-category label {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
}
.cookie-toggle-switch {
  width: 44px;
  height: 25px;
  background: var(--neutral);
  border-radius: 18px;
  position: relative;
  transition: background 0.17s;
}
.cookie-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle-slider {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent);
  transition: left 0.19s, background 0.15s;
}
.cookie-toggle-switch input:checked + .cookie-toggle-slider {
  left: 22px;
  background: var(--primary);
}
.cookie-toggle-switch input:disabled + .cookie-toggle-slider {
  background: var(--neutral);
  opacity: 0.64;
}

.cookie-modal .cookie-category-desc {
  font-size: 0.98rem;
  color: #444;
  opacity: 0.82;
  margin-top: 3px;
  margin-bottom: 0;
}
.cookie-modal .cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 34px;
}

/* ----------- RESPONSIVE LAYOUTS -------------- */
@media (max-width: 1160px) {
  .container {
    padding: 0 13px;
  }
  .features-grid, .content-grid, .card-container, .features {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .features-grid, .content-grid, .card-container, .features {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature-item, .card, .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
  .testimonial-card {
    padding: 18px 13px;
  }
}
@media (max-width: 768px) {
  header .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  section, .section {
    padding: 28px 8px !important;
    margin-bottom: 40px !important;
  }
  .hero {
    padding: 22px 0 14px 0;
    min-height: unset;
  }
  .features-grid, .content-grid, .card-container, .features {
    flex-direction: column!important;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card, .card {
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 15px 10px;
  }
  .feature-item {
    max-width: 100%;
    padding: 20px 13px 16px 13px;
  }
  footer {
    padding: 30px 0 16px 0;
  }
  .map-placeholder {
    padding: 23px 4px;
  }
  .content-wrapper {
    padding: 0;
  }
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 16px;
  }
}


/* -------------- VISUAL HIERARCHY & EFFECTS ----------- */
.section, section, .content-wrapper {
  margin-bottom: 0;
}
section:not(:last-child) {
  margin-bottom: 60px;
}
.features-grid > *:not(:last-child), .content-grid > *:not(:last-child),
.card-container > *:not(:last-child),
.features > *:not(:last-child),
.testimonial-card:not(:last-child),
.feature-item:not(:last-child),
.card:not(:last-child) {
  margin-bottom: 20px;
}

/* For extra spacing for testimonials section */
section .testimonial-card:last-child {
  margin-bottom: 0;
}

/* Explicit gap for flex containers */
.features-grid, .content-grid, .card-container, .features {
  gap: 24px;
}


/* ------------- VISUALS: SHAPES, SHADOWS, BOLD -------- */
.feature-item, .card, .testimonial-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--neutral);
}

.feature-item:hover, .card:hover, .testimonial-card:hover {
  box-shadow: 0 14px 30px rgba(32,91,54,0.19);
  border-color: var(--accent);
}

/* ------------- FORMS & INPUTS (for future) ------------- */
input, textarea, select {
  background: var(--secondary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-size: 1.03rem;
  margin-bottom: 16px;
  color: var(--dark);
  transition: border 0.18s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: var(--white);
}

label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.07rem;
  margin-bottom: 8px;
  display: inline-block;
}

/* --------------- UTILITY CLASSES ------------- */
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }


/* ------------------- ACCESSIBILITY ------------------- */
a, button, .cta, .cta.primary, .cta.secondary {
  outline: none;
}
a:focus, button:focus, .cta:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* --------------- SCROLLBAR STYLING --------------- */
::-webkit-scrollbar {
  width: 9px;
  background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 50px;
}

/* Hide focus on mouse only */
body:not(.user-is-tabbing) :focus {
  outline: none;
}

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