/* ------- 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,
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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
body {
  line-height: 1.5;
  background: #f5f4ef;
  color: #20416a;
  min-height: 100vh;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
  border: 0;
}
html {
  scroll-behavior: smooth;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: #f5f4ef;
}

/* --------- Font Imports --------- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

:root {
  --color-primary: #20416a;
  --color-secondary: #b8c3d6;
  --color-accent: #FFB000;
  --color-green: #617366;
  --color-earth: #bdb493;
  --color-bark: #66553B;
  --color-cream: #f5f4ef;
  --color-leaf: #2d6a4f;
  --color-white: #fff;
  --color-black: #181c1a;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* -------------- Layout Containers -------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(57,68,52,0.08);
  border: 1.5px solid #eaebe1;
  display: flex;
  flex-direction: column;
}

@media (max-width:768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 32px;
  }
}

/* -------------------- Typography -------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #184236;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.2;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--color-leaf);
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, span {
  font-family: var(--font-body);
  color: var(--color-black);
  font-size: 1rem;
  line-height: 1.7;
}
strong {
  font-weight: 700;
}
.hero h1, .hero h2 {
  color: var(--color-leaf);
}

/* ----------- Spacing and Utilities ----------- */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.text-center { text-align: center; }
.text-left   { text-align: left; }


/* --------- Navigation and Header ---------- */
header {
  background: var(--color-white);
  border-bottom: 2px solid #e0e5dd;
  padding: 0;
  box-shadow: 0 4px 16px rgba(46, 60, 36, 0.04);
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 18px;
}
header img {
  height: 44px;
  width: auto;
  border-radius: 10px;
}
header nav {
  display: flex;
  gap: 20px;
}
header nav a {
  font-family: var(--font-body);
  padding: 7px 0;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  transition: color 0.14s, background 0.2s;
}
header nav a:hover, header nav a.active {
  color: var(--color-leaf);
  background: rgba(44, 102, 79, 0.08);
}
.cta-btn {
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 14px 22px 14px 22px;
  padding: 12px 32px;
  margin-left: 14px;
  box-shadow: 0 2px 8px rgba(255,176,0,0.07);
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.16s;
  outline: none;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}
.cta-btn.secondary {
  background: var(--color-leaf);
}
.cta-btn:hover,
.cta-btn:focus {
  background: #e68a00;
  color: var(--color-white);
  transform: translateY(-1px) scale(1.04) rotate(-1deg);
}
.cta-btn.secondary:hover,
.cta-btn.secondary:focus {
  background: #37593b;
  color: var(--color-white);
}
header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-leaf);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 14;
}
header .mobile-menu-toggle:hover {
  background: #e7f5e6;
}

@media (max-width: 991px) {
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}

/* ------ Mobile Navigation Overlay ------ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(77,101,88, 0.97);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  transition: transform 0.34s cubic-bezier(.45,.11,.08,1.14), opacity 0.24s;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.2rem;
  position: absolute;
  top: 26px;
  right: 32px;
  z-index: 111;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover {
  color: #cf8200;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--color-white);
  border-radius: 0 0 26px 0;
  padding: 64px 40px 36px 36px;
  min-width: 260px;
  margin: 0;
  margin-top: 0;
  box-shadow: 0 8px 42px rgba(52,85,65,0.17);
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-leaf);
  letter-spacing: 0.2px;
  transition: color 0.12s;
  padding: 9px 0;
  border-radius: 12px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #e7f8ea;
  color: var(--color-primary);
}
@media (max-width: 520px) {
  .mobile-nav { padding: 44px 18px 28px 10px; }
  .mobile-menu-close { top: 16px; right: 16px; }
}

/* -------- Main & Section Styling --------- */
main {
  margin-top: 0px;
  padding-bottom: 30px;
}
.hero {
  background: linear-gradient(160deg, #f5f4ef 80%, #eaf3e7 100%);
  border-radius: 0 0 54px 54px/0 0 16px 16px;
  box-shadow: 0 14px 48px -24px rgba(24,66,54,0.09);
  margin-bottom: 48px;
  display: flex;
}
.hero .container {
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.hero .content-wrapper {
  align-items: center;
  gap: 18px;
  text-align: center;
}

/* ---------- Section Wrappers ---------- */
.features .content-wrapper > h2,
.features .content-wrapper > h3 {
  color: var(--color-leaf);
}
.features ul, .features ol {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  margin-bottom: 6px;
}
.features ul li, .features ol li {
  background: #f4f8f4;
  border-radius: 18px 38px 18px 38px;
  padding: 18px 34px 18px 14px;
  color: var(--color-bark);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 18px -12px #e4e7e0;
  min-width: 220px;
  flex: 1 1 180px;
  font-size: 1rem;
  font-family: var(--font-body);
}
.features ul li img, .features ol li img {
  width: 34px;
  height: 34px;
  margin-right: 10px;
}

@media (max-width: 991px) {
  .features ul, .features ol {
    gap: 16px;
  }
  .features ul li, .features ol li {
    padding: 14px 24px 14px 10px;
    min-width: 120px;
    font-size: 0.95rem;
  }
}
@media (max-width: 600px) {
  .features ul, .features ol {
    flex-direction: column;
    gap: 10px;
  }
  .features ul li, .features ol li {
    box-shadow: none;
    min-width: 0;
    width: 100%;
  }
}

.services .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-card {
  background: #f6f8f3;
  border-radius: 18px 38px 18px 38px;
  padding: 32px 28px;
  box-shadow: 0 4px 16px -8px #dfeae2;
  font-family: var(--font-body);
  color: var(--color-bark);
  min-width: 220px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.14s, transform 0.13s;
}
.service-card:hover {
  box-shadow: 0 10px 32px -6px #bfdcb6;
  transform: scale(1.025) translateY(-4px);
}

@media (max-width: 820px) {
  .services .service-cards {
    flex-direction: column;
    gap: 12px;
  }
}

.about-summary, .about, .gdpr, .privacy-policy, .cookie-policy, .terms-of-service, .thank-you, .contact {
  background: #f9fbe8;
  border-radius: 24px 24px 16px 16px;
  box-shadow: 0 2px 34px -12px #dde8df;
  margin-bottom: 60px;
  padding: 40px 24px;
}
@media (max-width:600px) {
  .about-summary, .about, .gdpr, .privacy-policy, .cookie-policy, .terms-of-service, .thank-you, .contact {
    padding: 20px 6px;
    margin-bottom: 32px;
  }
}

/******* Cards Layout Utility (if listing cards present in future) *******/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #f8fcfa;
  border-radius: 18px 18px 28px 14px;
  box-shadow: 0 2px 16px rgba(82,102,73,0.08);
  overflow: hidden;
  border: 1px solid #e5eddf;
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/********* Contact Details ********/
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.07rem;
  color: #2e5232;
}
.contact-details img {
  width: 28px;
  height: 28px;
  align-self: flex-start;
}
.map-placeholder {
  margin-top: 18px;
  background: #eaf3ea;
  padding: 20px 10px;
  border-radius: 14px;
  text-align: center;
  color: #50775a;
  font-style: italic;
  font-size: 0.98rem;
}

/********* Testimonials *********/
.testimonials .content-wrapper {
  align-items: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #fffdf7;
  border-radius: 18px 32px 18px 32px;
  padding: 20px 34px;
  margin-bottom: 20px;
  box-shadow: 0 4px 32px -12px rgba(146,188,136,0.11);
  border-left: 5px solid var(--color-leaf);
  max-width: 600px;
  min-width: 220px;
  position: relative;
  transition: box-shadow 0.13s, border-color 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 48px -4px #bddebb;
  border-left: 5px solid var(--color-accent);
}
.testimonial-card p {
  color: var(--color-black);
  font-style: italic;
  font-size: 1.09rem;
  line-height: 1.6;
}
.testimonial-card span {
  color: #617366;
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.07em;
}
@media (max-width:600px) {
  .testimonial-card {
    padding: 14px 11px;
  }
}

/***** Footer *****/
footer {
  background: #f2f6f2;
  padding: 32px 0 14px 0;
  border-top: 2px solid #e0e5dd;
  box-shadow: 0 -2px 22px -14px #d2dbc5;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--color-leaf);
  font-weight: 600;
  font-size: 1rem;
  padding: 7px 0;
  border-radius: 9px;
  transition: background 0.15s, color 0.14s;
}
.footer-nav a:hover {
  background: #e7f8ea;
  color: var(--color-primary);
}
footer p {
  color: #617366;
  font-size: 0.97rem;
}

/***** Cookie Consent Banner *****/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #374632;
  color: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 30px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 64px -8px #bdb493cc;
  animation: slideInUp 0.36s ease;
}
.cookie-banner p {
  max-width: 640px;
  color: #fffefd;
  font-size: 1.03rem;
  margin-right: 40px;
  line-height: 1.6;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.19s, color 0.17s;
  margin-right: 0;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
}
.cookie-btn.accept:hover { background: #ff9400; }
.cookie-btn.reject {
  background: #e3eacd;
  color: #37593b;
}
.cookie-btn.reject:hover {
  background: #d5e7b8;
  color: #2d6a4f; 
}
.cookie-btn.settings {
  background: transparent;
  border: 1.5px solid var(--color-leaf);
  color: var(--color-leaf);
  padding: 10px 17px;
}
.cookie-btn.settings:hover {
  background: #121b1a;
  color: var(--color-accent);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 14px 8px 18px 8px;
  }
  .cookie-banner p {
    margin-right: 0;
    font-size: 0.99rem;
  }
  .cookie-banner-buttons {
    gap: 12px;
  }
}
@keyframes slideInUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* -------- Cookie Consent Modal --------- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1300;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45, 60, 34, 0.48);
  animation: fadeIn 0.26s;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -56%);
  background: #fff;
  z-index: 1310;
  box-shadow: 0 16px 72px -14px #bdb493ba;
  border-radius: 32px;
  max-width: 420px;
  width: 95vw;
  padding: 42px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  transition: opacity 0.19s;
  animation: slideInModal 0.32s cubic-bezier(.55,1.09,.46,.94);
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--color-leaf);
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 5px 0;
  font-size: 1.08rem;
  font-family: var(--font-body);
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-leaf);
  width: 22px;
  height: 22px;
  margin-left: 12px;
}
.cookie-essential-label {
  color: var(--color-bark);
  font-size: 1.01rem;
  font-style: italic;
  opacity: .74;
  margin-left: 7px;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
@media (max-width: 490px) {
  .cookie-modal { padding: 15px 6vw 17px 6vw; }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideInModal {
  0% { opacity: 0; transform: translate(-50%,-150%) scale(.97); }
  100%{ opacity:1; transform:translate(-50%,-56%) scale(1) }
}

/******** Other Utility Elements **********/
ol {
  padding-left: 28px;
  margin-bottom: 15px;
}
li {
  margin-bottom: 8px;
}
a:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-toggle:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/******* Micro-interactions & Transitions *******/
button, .cta-btn, .cookie-btn, .mobile-menu-toggle {
  transition: box-shadow 0.14s, background 0.16s, color 0.18s, transform 0.13s;
}
section, .section, .about, .about-summary, .gdpr, .privacy-policy, .thank-you {
  transition: box-shadow 0.16s, border-color 0.19s;
}

/********* Responsive Typography *********/
@media (max-width:480px){
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.18rem; }
}

/********* Feature & Item Utilities *********/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

/***** Accessibility: make sure all reviews and testimonials use dark text *****/
.testimonial-card,
.testimonial-card p,
.testimonial-card span {
  color: #20416a !important;
}

div[hidden], .js-only { display: none !important; }

/****** Hide cookie banner initially when JS not loaded ******/
.cookie-banner:not(.active), .cookie-modal-backdrop:not(.active), .cookie-modal:not(.active) {
  display: none !important;
}

/* Prevent overlapping */
.card, .service-card, .testimonial-card, .feature-item, .about, .about-summary, .section {
  margin-bottom: 24px;
}

/* Prevent absolute position for cards/text, only allow for decoration, respecting requirements */
