/* --- CSS RESET & BASE SETTINGS --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #143348;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #4C8C6A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #143348;
}
ol, ul {
  list-style-type: disc;
  margin-left: 1.5em;
  margin-bottom: 20px;
}
address {
  font-style: normal;
  color: #143348;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
address img {
  width: 50px;
}
strong {
  font-weight: 600;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #143348;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 28px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
p, li {
  font-size: 1rem;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
}

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

/* Mandatory Section Pattern */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px 0 rgba(20, 51, 72, 0.04);
}
@media (max-width: 768px) {
  .section {
    padding: 24px 10px;
    margin-bottom: 36px;
  }
}

/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(20, 51, 72, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 20px;
}
header nav {
  display: flex;
  gap: 32px;
}
header nav a {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #143348;
  letter-spacing: 0.01em;
  height: 36px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #F0EFE7;
  color: #4C8C6A;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4C8C6A;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 2px 10px 0 rgba(76, 140, 106, 0.10);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  cursor: pointer;
  margin-left: 24px;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #143348;
  color: #fff;
  box-shadow: 0 4px 20px 0 rgba(20, 51, 72, 0.10);
}
/* Responsive Header */
@media (max-width: 992px) {
  header nav {
    gap: 16px;
  }
  .cta-btn {
    margin-left: 10px;
    padding: 8px 18px;
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  header .container {
    justify-content: space-between;
    gap: 14px;
    padding: 14px 8px;
  }
  header nav, .cta-btn {
    display: none;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  background: #fff;
  border: none;
  font-size: 2rem;
  color: #143348;
  width: 46px;
  height: 46px;
  z-index: 2001;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(20,51,72,0.10);
  cursor: pointer;
  transition: box-shadow 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #4C8C6A;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.7,0,.3,1);
  box-shadow: 0 8px 32px 0 rgba(20,51,72,0.13);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 0 100vmax rgba(20, 51, 72, 0.10);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  left: 18px;
  background: transparent;
  color: #143348;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2200;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 78px;
  margin-left: 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.13rem;
  color: #143348;
  font-weight: 600;
  padding: 14px 5px 14px 0;
  border-radius: 8px;
  transition: color 0.18s, background 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #F0EFE7;
  color: #4C8C6A;
}

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

/* --- MAIN CONTENT --- */
main {
  margin: 56px 0 64px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 768px) {
  main {
    margin-top: 16px;
    margin-bottom: 32px;
  }
  section {
    margin-bottom: 36px;
    padding: 20px 0;
  }
}

/* --- FLEXBOX LAYOUTS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  min-width: 260px;
  flex: 1 1 300px;
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(20, 51, 72, 0.05);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.23s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px 0 rgba(76, 140, 106, 0.11);
  transform: translateY(-2px) 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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FEATURE GRID (start page) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 24px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(20, 51, 72, 0.05);
  padding: 28px 18px;
  flex: 1 1 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px;
  transition: box-shadow 0.22s, transform 0.17s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(76, 140, 106, 0.12);
  transform: translateY(-2px) scale(1.015);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 16px;
  }
  .feature-grid > div {
    flex: 1 1 100%;
    min-width: 0;
    padding: 20px 10px;
  }
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F0EFE7;
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px 0 rgba(20, 51, 72, 0.06);
  color: #143348;
  font-size: 1.05rem;
  line-height: 1.6;
}
.testimonial-card p {
  color: #143348;
  font-size: 1.05rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-weight: 700;
  color: #143348;
}
@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px 10px;
    font-size: 0.98rem;
  }
}

/* --- BUTTONS & CTA ELEMENTS --- */
button, .cta-btn {
  font-family: 'Montserrat', "Roboto", Arial, sans-serif;
  outline: none;
  border: none;
}
button:focus, .cta-btn:focus {
  outline: 2px solid #4C8C6A;
  outline-offset: 2px;
}

/* --- LISTS --- */
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 20px;
}
ul li, ol li {
  margin-bottom: 8px;
}
ul li::marker, ol li::marker {
  color: #4C8C6A;
  font-size: 1.1em;
}

/* --- FORMS & INPUTS (for contact page extensions) --- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #e1e3e8;
  background: #fff;
  padding: 12px 16px;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #4C8C6A;
  outline: none;
}

/* --- FOOTER --- */
footer {
  background: #f9f9f6;
  border-top: 1px solid #e1e3e8;
  padding: 36px 0 13px 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: #4C8C6A;
  font-size: 1rem;
  padding-bottom: 2px;
  transition: color 0.17s, border-bottom 0.13s;
  border-radius: 6px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #143348;
  text-decoration: underline;
  background: #F0EFE7;
}
.branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.branding img {
  width: 48px;
  margin-bottom: 6px;
  filter: grayscale(18%) contrast(1.2);
}
.branding span {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.06rem;
  color: #143348;
  font-weight: 700;
}
.branding p {
  font-size: 0.96rem;
  color: #516077;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 14px;
  }
  .footer-nav {
    gap: 14px;
    margin-bottom: 10px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #143348;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 24px;
  box-shadow: 0 -2px 20px rgba(20, 51, 72, 0.13);
  z-index: 3000;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s cubic-bezier(.7,0,.3,1), transform 0.3s cubic-bezier(.7,0,.3,1);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(80%);
}
.cookie-banner__text {
  font-size: 1rem;
  line-height: 1.45;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-left: 20px;
}
.cookie-banner button {
  padding: 8px 22px;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  outline: none;
}
.cookie-accept {
  background: #4C8C6A;
  color: #fff;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #2A5947;
}
.cookie-reject {
  background: #fff;
  color: #143348;
  border: 1px solid #DEE1E8;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #F0EFE7;
  color: #143348;
}
.cookie-settings {
  background: #fff;
  color: #4C8C6A;
  border: 1px solid #DEE1E8;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #F0EFE7;
  color: #2A5947;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 8px;
    gap: 16px;
  }
  .cookie-banner__buttons {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* --- COOKIE SETTINGS MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(20, 51, 72, 0.37);
  z-index: 3200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px 32px;
  box-shadow: 0 8px 40px 0 rgba(20,51,72, 0.15);
  min-width: 320px;
  max-width: 96vw;
  color: #143348;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalFadeIn 0.4s cubic-bezier(.7,0,.3,1);
}
@media (max-width: 500px) {
  .cookie-modal {
    padding: 16px 4px 18px 10px;
    min-width: 0;
  }
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #143348;
  cursor: pointer;
}
.cookie-modal h2 {
  font-size: 1.3rem; margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #4C8C6A;
  width: 18px; height: 18px;
}
.cookie-category label {
  font-size: 1rem;
  color: #143348;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* --- SPACING & FLEX CONSISTENCY --- */
section, .section, .content-wrapper, .feature-grid, .testimonial-card, .card-container, .content-grid {
  margin-bottom: 0;
}
section + section, .section + .section {
  margin-top: 28px;
}
.content-wrapper > *:not(:last-child) {
  margin-bottom: 16px;
}

/* --- VISUAL HIERARCHY -- */
hr {
  border: none;
  border-top: 1px solid #DEE1E8;
  margin: 36px 0;
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
a, button, .cta-btn, .card, .feature-grid > div {
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.15s;
}

/* --- PRINT SUPPORT --- */
@media print {
  header, footer, .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
}

/* --- ACCESSIBILITY UTILITY CLASSES --- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --- SCROLLBAR MINIMAL --- */
::-webkit-scrollbar {
  width: 8px; background: #F0EFE7;
}
::-webkit-scrollbar-thumb {
  background: #E1E3E8; border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
  background: #C3C7D1;
}

/* --- END OF MAIN STYLE --- */