/* --- CSS RESET & BASE STYLES --- */
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 { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #28334A;
  background: #F9F6F0;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #F9F6F0;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #8FB870;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #28334A;
}
ul, ol {
  margin: 16px 0 16px 24px;
}
li {
  margin-bottom: 8px;
}

/* Typography hierarchy */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 20px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 14px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
p, .subheadline {
  margin-bottom: 16px;
}
.subheadline {
  color: #8FB870;
  font-size: 1.25rem;
  font-weight: 500;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}

/* --- CONTAINERS & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffbea;
  border-radius: 22px;
  box-shadow: 0 6px 24px 0 rgba(139, 136, 120, 0.10), 0 1px 3px rgba(43, 46, 72, 0.13);
  transition: box-shadow 0.25s;
}
.section:last-child { margin-bottom: 0; }
.section:hover {
  box-shadow: 0 8px 32px 0 rgba(139, 136, 120, 0.12), 0 2px 8px rgba(43, 46, 72, 0.12);
}

/* Predefined flex layouts per spec */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(139,136,120,0.10);
  padding: 24px;
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(139,136,120,0.16);
  transform: translateY(-4px) scale(1.01);
}
.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;
  background: #F9F6F0;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(139,136,120,0.08);
  padding: 20px;
  margin-bottom: 20px;
  color: #25304a;
  max-width: 520px;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 4px;
  color: #28334A;
}
.testimonial-card span {
  font-weight: 600;
  color: #8FB870;
  font-size: 1rem;
  margin-left: 20px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 28px rgba(139,136,120,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fefaf3;
  border-radius: 16px;
  flex: 1 1 230px;
  min-width: 220px;
  max-width: 260px;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 2px 8px rgba(139,136,120,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px rgba(139,136,120,0.15);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img {
  width: 40px; height: 40px; margin-bottom: 8px;
}

.contact-brief ul, .contact-details ul {
  list-style: none;
  padding: 0;
  margin-left: 0;
}
.contact-brief li, .contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #28334A;
}
.contact-brief img, .contact-details img {
  width: 22px;
  height: 22px;
  margin-right: 6px;
}
.mini-map {
  background: #fffbea;
  padding: 14px;
  border-radius: 12px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-map img { width: 26px; height: 26px; }

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: #fffbea;
  box-shadow: 0 2px 8px rgba(139,136,120,0.09);
  z-index: 21;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  height: 76px;
}
header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
header nav a {
  color: #28334A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 16px;
  padding: 10px 12px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: #8FB870;
  color: #fffbea;
}
header img {
  height: 48px;
  border-radius: 10px;
  margin-right: 20px;
}
.button-primary {
  background: #8FB870;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: 26px;
  font-size: 1.13rem;
  letter-spacing: 0.5px;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
  box-shadow: 0 3px 16px rgba(143,184,112,0.09);
  cursor: pointer;
  text-align: center;
  outline: none;
  margin-left: 18px;
  text-decoration: none;
  position: relative;
  z-index: 17;
}
.button-primary:hover, .button-primary:focus {
  background: #28334A;
  color: #fffbea;
  box-shadow: 0 8px 32px rgba(143,184,112,0.19);
}

.mobile-menu-toggle {
  background: #8FB870;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 6px 16px;
  border-radius: 40px;
  display: none;
  margin-left: 18px;
  position: relative;
  z-index: 50;
  transition: background 0.2s;
  box-shadow: 0 2px 10px rgba(143,184,112,0.13);
  cursor: pointer;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #28334A;
  color: #fffbea;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(41,44,73,0.78);
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.83,0,.17,1), opacity 0.23s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: #fffbea;
  color: #28334A;
  border: none;
  font-size: 2.1rem;
  border-radius: 50%;
  padding: 6px 16px;
  margin: 30px 30px 8px 0;
  box-shadow: 0 2px 8px rgba(139,136,120,0.10);
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #8FB870;
  color: #fff;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 45px;
}
.mobile-nav a {
  width: 100%;
  text-align: right;
  margin: 0 0 18px 0;
  font-size: 1.25rem;
  color: #fff;
  padding: 16px 0;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8FB870;
  color: #fffbea;
}

/* --- MAIN & CONTENT --- */
main {
  min-height: 60vh;
  padding-bottom: 40px;
  margin-top: 24px;
}

.text-section {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: #313652;
}

/* --- FOOTER --- */
footer {
  background: #fffbea;
  padding: 36px 0 20px 0;
  box-shadow: 0 -2px 16px rgba(139,136,120,0.08);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 46px;
  width: 100%;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
}
footer nav a {
  color: #28334A;
  font-size: 1rem;
  border-radius: 12px;
  padding: 3px 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover {
  background: #8FB870;
  color: #fff;
}
.footer-brand img {
  height: 38px;
  border-radius: 8px;
}
.social-media {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.social-media a img {
  height: 24px;
  width: 24px;
  opacity: 0.88;
  transition: opacity 0.13s, transform 0.12s;
}
.social-media a:hover img {
  opacity: 1;
  transform: scale(1.1);
}
.footer-contact {
  color: #6F797D;
  font-size: 0.97rem;
  margin-top: 8px;
}

/* --- BUTTONS & INTERACTIONS --- */
.button-secondary, .cookie-banner .button-secondary {
  background: #fffbea;
  color: #8FB870;
  border: 1.5px solid #8FB870;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  border-radius: 26px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background 0.18s, color 0.15s, border 0.14s;
}
.button-secondary:hover, .button-secondary:focus, .cookie-banner .button-secondary:hover, .cookie-banner .button-secondary:focus {
  background: #8FB870;
  color: #fff;
  border: 1.5px solid #8FB870;
}
.button-tertiary {
  color: #28334A;
  background: none;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
}
.button-tertiary:hover, .button-tertiary:focus {
  background: #F9F6F0;
  color: #8FB870;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #fffbea;
  color: #28334A;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 10px rgba(143,184,112,0.08), 0 2px 16px rgba(41,44,73,0.06);
  padding: 24px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.27s cubic-bezier(.88,.21,.37,.98);
}
.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cookie-banner p { max-width: 680px; text-align: center; font-size: 1rem; line-height: 1.7; }
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2px;
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal {
  position: fixed;
  z-index: 10010;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(41,44,73,0.30);
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fffbea;
  color: #28334A;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(139,136,120,0.18);
  width: 95%;
  max-width: 430px;
  padding: 36px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 7px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: #8FB870;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1.55rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.14s;
}
.cookie-modal-close:hover { background: #28334A; color: #fffbea; }
.cookie-modal-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  padding: 9px 0;
}
.cookie-toggle {
  appearance: none;
  background: #f3efe2;
  border: 1.5px solid #8FB870;
  border-radius: 18px;
  width: 42px;
  height: 24px;
  position: relative;
  outline: none;
  cursor: pointer;
  margin: 0 7px 0 0;
  transition: background 0.15s, border 0.13s;
}
.cookie-toggle:checked {
  background: #8FB870;
}
.cookie-toggle::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2.3px; left: 3px;
  box-shadow: 0 1px 4px rgba(143,184,112,0.08);
  transition: left 0.15s;
}
.cookie-toggle:checked::before {
  left: 19px;
}
.cookie-category[data-essential] .cookie-toggle {
  background: #8FB870;
  border: 1.5px solid #8FB870;
}
.cookie-category[data-essential] .cookie-toggle::before {
  left: 19px !important;
}
.cookie-category[data-essential] .cookie-toggle {
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 14px;
  justify-content: flex-end;
}

/* --- RESPONSIVE DESIGN (Mobile First) --- */
@media (max-width: 1200px) {
  .container {
    max-width: 970px;
  }
}
@media (max-width: 920px) {
  .container { max-width: 780px; }
  .feature-grid > div { min-width: 180px; max-width: 220px; padding: 17px; }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 6vw;
  }
  .section {
    padding: 28px 7px;
    margin-bottom: 38px;
  }
  header .container, footer .container {
    flex-direction: column;
    gap: 11px;
    padding: 0 6vw;
    height: auto;
  }
  header nav {
    display: none;
  }
  .button-primary {
    margin-left: 0;
    padding: 10px 18px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: block;
  }
  main {
    margin-top: 12px;
    padding-bottom: 18px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    max-width: 99vw;
    min-width: 0;
    width: 100%;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    max-width: 99vw;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  .container { padding: 0 2vw; }
  .footer-brand img { height: 30px; }
  .section { padding: 14px 2vw; }
  h1, .h1 { font-size: 1.55rem; }
  h2, .h2 { font-size: 1.18rem; }
}

/* --- Micro-interactions & Animations --- */
.button-primary, .button-secondary, .button-tertiary {
  transition: background 0.19s, color 0.15s, box-shadow 0.14s, border-color 0.14s, transform 0.16s;
}
.button-primary:active, .button-secondary:active {
  transform: scale(0.98);
}

/* --- Utility classes & fixes --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 16px !important; }

/* --- Accessibility fixes --- */
a, button, .button-primary, .button-secondary, .mobile-menu-toggle, .mobile-menu-close {
  outline-offset: 3px;
}
a:focus, button:focus, .button-primary:focus, .button-secondary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2.5px solid #8FB870;
  outline-style: solid;
}

/* Hide visually but remain in accessibility tree (for e.g. essential categories) */
.visually-hidden {
  position: absolute;
  left: -6000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Prevent overlapping & ensure spacing --- */
.section + .section, .feature-grid > div + div, .testimonial-card + .testimonial-card, .card + .card,
.card-container > * + *, .content-grid > * + * {
  margin-top: 0 !important;
}
ul, ol {
  margin-block-end: 20px;
}

/* --- End of CSS --- */
