/* 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  background: #F7F4EE;
  color: #254040;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #255436;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #68804A;
  text-decoration: underline;
}
ul, ol {
  margin-left: 2em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
li {
  margin-bottom: 0.4em;
}

/* BRAND COLORS as CSS Variables */
:root {
  --primary: #255436;
  --secondary: #68804A;
  --accent: #F7F4EE;
  --neutral-gray: #E6E8EB;
  --dark: #222E2B;
  --card-bg: #fff;
  --shadow: 0 4px 16px rgba(37, 84, 54, 0.10);
  --border-radius: 12px;
  --transition-main: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* TYPOGRAPHY SCALE AND HIERARCHY */
h1, .h1 {
  font-family: 'Montserrat', 'Arial', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.8em;
  line-height: 1.16;
}
h2, .h2 {
  font-family: 'Montserrat', 'Arial', Helvetica, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.6em;
  line-height: 1.18;
}
h3, .h3 {
  font-family: 'Montserrat', 'Arial', Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 0.4em;
}
h4, .h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5em;
}
p {
  margin-bottom: 1em;
  font-size: 1rem;
  color: var(--dark);
}
strong {
  font-weight: 600;
  color: var(--primary);
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1172px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/******************** GENERIC FLEX LAYOUTS **********************/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--border-radius);
  padding: 2rem;
  position: relative;
  transition: box-shadow var(--transition-main);
}
.card:hover {
  box-shadow: 0 8px 24px rgba(37, 84, 54, 0.18);
}
.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;
  margin-bottom: 40px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fafdff;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(37, 84, 54, 0.07);
  margin-bottom: 20px;
  color: #254040;
  transition: box-shadow var(--transition-main), border var(--transition-main);
}
.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(37, 84, 54, 0.16);
  border: 1px solid var(--secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 1px 6px rgba(37, 84, 54, 0.07);
  padding: 1.5rem 1.2rem;
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1 1 250px;
  transition: box-shadow var(--transition-main);
}
.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.feature-item:hover {
  box-shadow: 0 4px 18px rgba(37, 84, 54, 0.18);
}

/******************** HEADER & NAVIGATION **********************/
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(37,84,54,0.07);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: 20px;
}
.main-nav a {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 0;
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--transition-main);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--secondary);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 22px;
  outline: none;
  padding: 12px 28px;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 84, 54, 0.09);
  transition: background var(--transition-main), box-shadow var(--transition-main), color var(--transition-main);
  display: inline-block;
  text-align: center;
  position: relative;
  z-index: 1;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 84, 54, 0.14);
}

/********* MOBILE BURGER MENU *********/
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  margin-left: 14px;
  z-index: 120;
  padding: 4px 10px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
  border-radius: 8px;
}
.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.5, .01, .2, 1);
  box-shadow: -4px 0 18px rgba(37, 84, 54, 0.13);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 1.95rem;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  align-self: flex-end;
  margin: 18px 18px 0 0;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--neutral-gray);
}
.mobile-nav {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 0 34px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 500;
  padding: 12px 0;
  width: 100%;
  transition: color var(--transition-main), background 0.16s;
  border-radius: 6px;
}
.mobile-nav a:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* Responsive nav visibility */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/************ HERO SECTION ************/
.hero {
  padding-top: 52px;
  padding-bottom: 48px;
  background: linear-gradient(90deg, #F7F4EE 58%, #e6f0e8 135%);
  border-bottom: 1.5px solid var(--neutral-gray);
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto;
  gap: 20px;
  max-width: 700px;
}
.hero .tagline {
  font-size: 1.22rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1em;
}

/**************** FEATURES & CARDS ***************/
.features {
  background: #fafdff;
}
.features .content-wrapper {
  width: 100%;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
}
.feature-item h3 {
  margin-top: 0.5em;
  color: var(--primary);
  font-size: 1.12rem;
  font-weight: 700;
}

/**************** CTA SECTION **************/
.cta {
  background: var(--primary);
  color: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 16px rgba(37, 84, 54, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}
.cta .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: #fff;
}
.cta h2 {
  color: #fff;
}
.cta p {
  color: #edeeea;
  margin-top: 12px;
}
.cta .btn-primary {
  margin-top: 14px;
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cta .btn-primary:hover {
  background: var(--secondary);
  color: #fff;
}

/*********************** ABOUT, CONTACT, LEGAL, THANK YOU ********************/
.about .content-wrapper,
.contact .content-wrapper,
.legal .content-wrapper,
.thank-you .content-wrapper {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 0 auto 40px auto;
  max-width: 870px;
}
.about ul, .contact ul, .legal ul {
  list-style: disc inside;
  margin: 14px 0 12px 12px;
}

/******************** TESTIMONIALS **********************/
.testimonials {
  background: #fafdff;
}
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #2a3331;
  font-style: italic;
  flex: 1;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: var(--secondary);
  font-weight: 600;
}

/**************** FOOTER *******************/
footer {
  background: #222E2B;
  color: #fff;
  padding: 38px 0 16px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #eaf6ee;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  opacity: 0.93;
  transition: color var(--transition-main), opacity var(--transition-main);
}
.footer-nav a:hover {
  color: var(--secondary);
  opacity: 1;
}
footer address {
  font-style: normal;
  color: #eaf6ee;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
footer address img {
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 4px;
}
.footer-copy {
  color: #b1b5b2;
  font-size: 0.97rem;
  margin-top: 18px;
}

/**************** FORM & BUTTON SHARED *************/
input[type="text"],
input[type="email"],
textarea,
select {
  padding: 10px 14px;
  border: 1px solid #b3beae;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  background: #fafdff;
  box-sizing: border-box;
  margin-bottom: 1.2em;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  outline: none;
}
button, .btn-primary, .btn-secondary {
  cursor: pointer;
  outline: none;
  font-family: 'Montserrat', Arial, sans-serif;
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 500;
  border-radius: 22px;
  padding: 10px 26px;
  margin-left: 10px;
  margin-right: 8px;
  transition: background var(--transition-main), color var(--transition-main), border-color var(--transition-main);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/**************** COOKIE CONSENT BANNER *************/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #254040;
  border-top: 1.5px solid var(--neutral-gray);
  box-shadow: 0 -2px 18px rgba(37, 84, 54, 0.10);
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  z-index: 7000;
  transition: transform 0.4s cubic-bezier(.44,.07,.43,.98);
  transform: translateY(100%);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}
.cookie-banner button, .cookie-banner .btn-secondary {
  padding: 8px 20px;
  font-size: 1rem;
}

/******** COOKIE MODAL ********/
.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(24,32,27,0.30);
  justify-content: center;
  align-items: center;
  transition: background 0.25s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(37,84,54,0.15);
  padding: 2.1rem 2.3rem 1.5rem 2.3rem;
  max-width: 420px;
  min-width: 270px;
  color: #254040;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-in 0.33s cubic-bezier(.32,1.13,.31,1.12);
}
@keyframes modal-in {
  0% {transform: scale(0.85) translateY(20px); opacity: 0.4;}
  100%{transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.cookie-modal .cookie-cat label {
  font-size: 1.05rem;
  color: var(--secondary);
}
.cookie-modal .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.cookie-modal .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  width: 40px;
  height: 22px;
  background-color: #e5ede7;
  border-radius: 11px;
  transition: background var(--transition-main);
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform var(--transition-main);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.cookie-modal .switch input:checked + .slider {
  background-color: var(--secondary);
}
.cookie-modal .switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary {
  min-width: 90px;
  margin: 0;
  font-size: 1rem;
  padding: 7px 20px;
}

/******************** MEDIA QUERIES RESPONSIVE **********************/
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  header img {
    height: 40px;
  }
  .main-nav a {
    font-size: 0.97rem;
  }
}
@media (max-width: 768px) {
  h1, .h1 {font-size: 1.85rem;}
  h2, .h2 {font-size: 1.38rem;}
  h3, .h3 {font-size: 1.11rem;}
  .section {padding: 26px 8px; margin-bottom: 36px;}
  .container {padding-left: 0.85rem; padding-right: 0.85rem;}
  .card, .about .content-wrapper, .legal .content-wrapper, .thank-you .content-wrapper {
    padding: 1.1rem 0.8rem;
    max-width: 100%;
  }
  .feature-grid {
    gap: 16px;
  }
  .content-grid {
    gap: 12px;
  }
  .content-wrapper {gap: 10px;}
  .hero .content-wrapper {gap: 10px;}
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .feature-item {
    min-width: 150px;
    padding: 0.9rem;
  }
  .footer-nav {
    gap: 8px;
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
  .cta {
    margin-bottom: 32px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 500px) {
  .hero {
    padding-top: 26px;
    padding-bottom: 24px;
  }
  .card, .cta .content-wrapper, .about .content-wrapper {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }
  .feature-item {padding: 0.6rem;}
}

/******************** UTILITIES *********************/
.mt-32 {margin-top: 32px !important;}
.mb-32 {margin-bottom: 32px !important;}
.gap-20 {gap: 20px !important;}
.text-center {text-align: center !important;}
.flex-row {display: flex; flex-direction: row;}
.flex-col {display: flex; flex-direction: column;}

/******************* ACCESSIBILITY & FOCUS ********************/
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/**************** OVERRIDES FOR Z-INDEX LAYERING ********************/
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 1001;
}

/*************** MISC (EXTRA) **********/
::-webkit-input-placeholder { color: #abafa6; }
::-moz-placeholder { color: #abafa6; }
:-ms-input-placeholder { color: #abafa6; }
::placeholder { color: #abafa6; }

/* Hide scroll on body when modal/menu is open (to be toggled by JS/class) */
body.menu-open, body.modal-open {
  overflow: hidden;
}
