/* ---------------------------
  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,
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;
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  background: #F7F9FA;
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: #222D32;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: #225C39; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #184728; }

img { max-width: 100%; display: block; border: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
button { cursor: pointer; }

ul, ol { margin-left: 24px; }

/* ----------------------
  BRAND COLOR SYSTEM
------------------------ */
:root {
  --primary: #225C39;
  --secondary: #E8E3DC;
  --accent: #557D4E;
  --primary-dark: #184728;
  --secondary-bg: #F7F9FA;
  --gray-700: #384043;
  --gray-500: #7A868B;
  --gray-300: #D4DADE;
  --gray-200: #F0F2F4;
  --white: #fff;
}

/* ---------------------------
   TYPOGRAPHY
----------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Source+Sans+Pro:wght@400;600;700&display=swap');
body {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  color: var(--gray-700);
  background: var(--secondary-bg);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.18;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; }
p { font-size: 1rem; color: var(--gray-700); margin-bottom: 14px; }
strong { font-weight: 700; color: var(--primary); }
em { color: var(--accent); }

ul, ol {
  color: var(--gray-700);
  margin-bottom: 16px;
  font-size: 1rem;
}
li { margin-bottom: 8px; }

/* Legal sections */
.legal h2 { margin-top: 32px; }
.legal p, .legal li { color: var(--gray-700); }

/* ---------------------------
  CONTAINER & LAYOUT
----------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
}

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

.content-wrapper, .content-grid, .features-grid, .service-listing, .testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.content-wrapper { gap: 32px; }
.features-grid, .service-listing { gap: 24px; }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(34, 92, 57, 0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  transition: box-shadow 0.18s;
}
.card:hover { box-shadow: 0 4px 20px rgba(34,92,57,0.12); }
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(34, 92, 57, 0.08);
  min-width: 240px;
  max-width: 380px;
  margin-bottom: 20px;
  color: var(--primary);
  border-left: 5px solid var(--accent);
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px rgba(34,92,57,0.14);
  transform: translateY(-3px) scale(1.03);
}
.testimonial-card p {
  color: var(--gray-700);
  margin-bottom: 10px;
}
.testimonial-card span {
  color: var(--gray-500);
  font-size: 0.97em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ----------------------------
   HEADER & NAVIGATION
----------------------------- */
header {
  width: 100%;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(34, 92, 57, 0.15);
  position: relative;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.logo img { height: 38px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.3px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--white);
}

.btn.primary {
  background: var(--accent);
  color: var(--white);
  padding: 11px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.8px;
  box-shadow: 0 1px 3px rgba(34,92,57,0.08);
  transition: background 0.13s, transform 0.13s;
  border: none;
  display: inline-block;
  margin-left: 12px;
}
.btn.primary:hover, .btn.primary:focus {
  background: var(--primary);
  transform: translateY(-2px);
}

.btn.secondary {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 11px 24px;
  border-radius: 6px;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 10px;
  transition: background 0.13s, color 0.13s, border 0.13s, transform 0.13s;
}
.btn.secondary:hover, .btn.secondary:focus {
  background: var(--gray-200);
  color: var(--primary-dark);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--white);
  font-size: 2.1rem;
  border-radius: 7px;
  width: 46px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  margin-left: 8px;
  transition: background 0.15s, box-shadow 0.18s;
  z-index: 1002;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 0 3px var(--gray-300);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--white);
  transform: translateX(-110vw);
  transition: transform 0.33s cubic-bezier(.68,-0.55,.27,1.55);
  z-index: 1003;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 2px 0 16px rgba(34,92,57,0.15);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--primary);
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 28px 34px 12px 0;
  border: none;
  cursor: pointer;
  z-index: 1004;
  line-height: 1;
  width: 41px;
  height: 41px;
  border-radius: 5px;
  transition: background 0.11s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--gray-200);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  padding: 0 36px 48px 36px;
}
.mobile-nav a {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 16px 0 8px 0;
  width: 100%;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: var(--gray-200);
}


/* -----------------------------
    HERO SECTIONS
-------------------------------*/
.hero {
  background: linear-gradient(95deg, var(--secondary) 60%, var(--gray-200) 100%);
  padding: 50px 0 32px 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: stretch;
  min-height: 220px;
}
.main-hero {
  background: linear-gradient(110deg, var(--secondary) 62%, var(--gray-200) 100%);
}
.hero .container { display: flex; flex-direction: column; }

.hero .content-wrapper {
  max-width: 680px;
  padding: 0 0 12px 0;
}
.hero h1 { color: var(--primary); margin-bottom: 18px; }
.hero p {
  font-size: 1.18rem;
  color: var(--gray-700);
  margin-bottom: 22px;
}
.hero .btn {
  margin-top: 8px;
}

/* ------------------------
   FEATURES, SERVICES, CARDS
-------------------------- */
.features-grid, .service-listing {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature {
  background: var(--white);
  padding: 22px 20px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(85,125,78,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 230px;
  flex: 1 1 240px;
  max-width: 330px;
  transition: box-shadow 0.16s, border 0.13s;
  border-left: 4px solid var(--primary);
  margin-bottom: 20px;
}
.feature img {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  background: var(--secondary);
  padding: 4px;
  border-radius: 6px;
}
.feature h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-family: 'Merriweather', serif;
}
.feature p {
  color: var(--gray-700);
  font-size: 1rem;
  margin-bottom: 0;
}
.feature:hover, .feature:focus {
  box-shadow: 0 3px 14px rgba(85,125,78,0.11);
  border-left: 4px solid var(--accent);
}

.service {
  background: var(--white);
  border-radius: 9px;
  box-shadow: 0 1px 6px rgba(34,92,57,0.10);
  padding: 22px 22px 16px 22px;
  min-width: 220px;
  flex: 1 1 230px;
  max-width: 340px;
  margin-bottom: 20px;
  position: relative;
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
}
.service h3 {
  font-size: 1.13rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.service span {
  color: var(--gray-500);
  background: var(--gray-200);
  padding: 2px 9px;
  border-radius: 5px;
  font-size: 0.97rem;
  margin-bottom: 9px;
  margin-top: 2px;
  display: inline-block;
}
.service p {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 0;
}
.service ul {
  margin-bottom: 0;
  margin-top: 8px;
  font-size: 0.97rem;
}
.service a.btn {
  align-self: flex-start;
  margin-top: 12px;
}

.text-section {
  background: transparent;
  border-radius: 8px;
  padding: 0 0 0 0;
  margin-bottom: 12px;
  color: var(--gray-700);
  max-width: 530px;
  flex: 1 1 285px;
}
.text-section strong, .text-section h3 {
  color: var(--primary-dark);
}
.text-section ul, .text-section ol {
  font-size: 1.01em;
  margin-bottom: 6px;
}
.text-section ul.contact-infos {
  list-style: none;
  margin-left: 0;
  margin-bottom: 8px;
}
.text-section ul.contact-infos li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.text-section ul.contact-infos img {
  width: 22px;
  height: 22px;
}

/* -----------------------------
  TESTIMONIALS
-------------------------------*/
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}

/* ------------------------------
  FOOTER
--------------------------------*/
footer {
  background: var(--primary);
  color: var(--white);
  padding: 34px 0 25px 0;
  font-size: 0.98rem;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 54px;
  justify-content: flex-start;
  align-items: flex-start;
}
.footer-brand img { height: 32px; margin-bottom: 20px; }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-right: 24px;
}
.footer-nav a {
  color: var(--secondary);
  opacity: 0.93;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-contact {
  color: var(--secondary);
  max-width: 320px;
}
.footer-contact a {
  color: var(--accent);
  text-decoration: underline dotted;
  transition: color 0.12s;
}
.footer-contact p {
  color: var(--secondary);
}
.footer-contact a:hover {
  color: var(--white);
}
.footer-social {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 12px;
}
.footer-social img {
  height: 28px;
  width: 28px;
  filter: grayscale(50%) brightness(1.05);
  transition: filter 0.17s;
  cursor: pointer;
}
.footer-social img:hover {
  filter: grayscale(0%) brightness(1.2);
}

/* -------------
  LEGAL PAGES
--------------*/
.legal {
  background: var(--white);
  border-radius: 9px;
  box-shadow: 0 1px 7px rgba(34,92,57,0.05);
  margin-bottom: 40px;
  padding: 28px 24px 20px 24px;
}
.legal h1, .legal h2, .legal h3 { margin-top: 18px; }
.legal ul, .legal ol { margin-bottom: 9px; }

/* ---------------
   UTILITY CLASSES
-------------------*/
.hide { display: none!important; }
.text-center { text-align: center; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }

/* -----------------------------
   RESPONSIVE DESIGN
-------------------------------*/
@media (max-width: 1024px) {
  .container { max-width: 100%; }
  .footer-nav, .footer-contact { font-size: 0.97rem; }
  .features-grid, .service-listing, .testimonials { gap: 16px; }
}

@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
    gap: 8px;
  }
  .main-nav { gap: 12px; }
  .features-grid, .service-listing, .testimonials, .content-wrapper {
    gap: 16px !important;
  }
  .footer-brand img { margin-bottom: 10px; }
  .footer-social {
    margin-top: 5px;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 12px; }
  header .container { flex-direction: row; gap: 6px; }
  main, .section { padding: 38px 0 0 0 !important; }
  .hero { padding: 34px 0 19px 0; }
  h1 { font-size: 2rem; margin-bottom: 16px; }
  h2 { font-size: 1.35rem; margin-bottom: 16px; }
  .main-nav, .btn.primary { display: none; }
  .mobile-menu-toggle { display: flex; }
  .mobile-menu { /* covers whole screen as per requirement */ width: 100vw; }
  .features-grid, .service-listing, .testimonials, .content-wrapper, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 13px !important;
    align-items: stretch !important;
  }
  .feature, .service, .testimonial-card {
    min-width: 0;
    max-width: 100%;
    padding: 16px 12px 14px 12px;
  }
  .content-wrapper {
    gap: 16px !important;
  }
  .text-image-section { flex-direction: column !important; gap: 17px !important; }
  .footer-social img { height: 22px; width: 22px; }
  footer .container {
    gap: 19px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1em;
  }
  .footer-nav a { font-size: 1em; }
  .footer-brand img { margin-bottom: 6px; }
  .testimonial-card { max-width: 100%; }
  .hero .content-wrapper { padding: 0; }
  .section { margin-bottom: 34px; padding: 20px 2px 30px 2px; }
}

@media (max-width: 480px) {
  .hero { min-height: 110px; padding: 18px 0 8px 0; }
  h1 { font-size: 1.23rem; }
  h2 { font-size: 1.1rem; }
  .feature img, .footer-social img { height: 18px; width: 18px; }
  .section { margin-bottom: 25px; padding: 12px 1px 20px 1px; }
  .service, .feature, .testimonial-card { padding: 10px 5px 7px 5px; }
}

/* ----------------------------
  FOCUS & ACCESSIBILITY
------------------------------ */
a, .btn, button, .mobile-nav a, .main-nav a {
  outline: none;
}
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

/* ------------------------------
   TRANSITIONS & MICRO-ACTIONS
-------------------------------*/
.btn, .card, .feature, .service, .testimonial-card, .main-nav a, .mobile-nav a {
  transition: background 0.16s, color 0.16s, box-shadow 0.17s, border 0.18s, transform 0.18s;
}

/* ------------------------------
  COOKIE CONSENT BANNER
-------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 9999;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -2px 24px rgba(34,92,57,0.18);
  border-top: 2px solid var(--accent);
  padding: 22px 12px 22px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  font-size: 1rem;
  color: var(--gray-700);
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
  transition: opacity 0.26s, transform 0.26s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner p {
  color: var(--gray-700);
  margin-bottom: 0;
  max-width: 400px;
  font-size: 1rem;
  flex: 2 0 auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn, .cookie-settings-btn {
  padding: 8px 22px;
  border-radius: 5px;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  border: none;
  margin-right: 3px;
  box-shadow: 0 1px 2px rgba(34, 92, 57, 0.09);
  cursor: pointer;
  transition: background 0.16s, color 0.14s, box-shadow 0.16s;
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--accent);
}
.cookie-btn.reject {
  background: var(--gray-200);
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--secondary);
  color: var(--primary-dark);
}
.cookie-settings-btn {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--gray-200);
  color: var(--primary-dark);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 4px 14px 4px;
    font-size: 0.97rem;
  }
  .cookie-banner p { max-width: unset; margin-bottom: 7px; }
  .cookie-banner .cookie-actions { gap: 7px; }
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(56, 64, 67, 0.43);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.17s;
}
.cookie-modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(34,92,57,0.15);
  z-index: 10002;
  width: 98%;
  max-width: 460px;
  padding: 28px 22px 18px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.62,.15,.39,.97), transform 0.18s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--gray-700);
  cursor: pointer;
  line-height: 1;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--primary);
  font-family: 'Merriweather', serif;
}
.cookie-modal p { color: var(--gray-700); margin-bottom: 11px; }
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 0;
}
.cookie-option label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}
.cookie-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 21px;
  height: 21px;
  margin-right: 4px;
}
.cookie-option[data-essential] label {
  color: var(--gray-500);
  font-weight: 800;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 22px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 99px;
  padding-left: 17px;
  padding-right: 17px;
}

/* ----------------------------------
   MISC/OVERRIDES
----------------------------------- */
::-webkit-input-placeholder { color: var(--gray-500); }
::-moz-placeholder { color: var(--gray-500); }
:-ms-input-placeholder { color: var(--gray-500); }
::placeholder { color: var(--gray-500); }

/* Main CTA styles */
.cta-section .btn { margin-top: 9px; margin-bottom: 6px; }

/* Error messages, etc. (Accessory for future use) */
.error-message {
  color: #c52c36;
  background: #fdeced;
  border: 1px solid #f7bfc2;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 1em;
  margin-top: 6px;
  margin-bottom: 13px;
}

/* Special thank-you page tweaks */
.thankyou-hero h1 { color: var(--accent); }

/* Success message */
.success-message {
  color: #225C39;
  background: #eaf5e8;
  border: 1px solid #b8dfc0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 1em;
  margin-top: 6px;
  margin-bottom: 13px;
}
