/* ======== 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, menu, 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, 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #fff;
  color: #1A1A1A;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* ======= CSS CUSTOM PROPERTIES ======= */
:root {
  --primary: #20653A;
  --secondary: #4D90A6;
  --accent: #E1F3E7;
  --black: #181818;
  --light: #FFF;
  --gray: #F5F7FA;
  --card-shadow: 0 6px 32px rgba(44,61,49,0.08);
  --radius: 18px;
  --radius-sm: 10px;
  --border: 2px solid var(--primary);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: 'Montserrat'; font-weight: 700; font-style: normal;
  font-display: swap;
  src: local('Montserrat Bold'), local('Montserrat-Bold'),
    url('https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm459Wxhyi8y.ttf') format('truetype');
}
@font-face {
  font-family: 'Montserrat'; font-weight: 900; font-style: normal;
  font-display: swap;
  src: local('Montserrat Black'), local('Montserrat-Black'),
    url('https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm459WxhyyTh89Y.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans'; font-weight: 400; font-style: normal;
  font-display: swap;
  src: local('Open Sans Regular'), local('OpenSans-Regular'),
    url('https://fonts.gstatic.com/s/opensans/v34/mem8YaGs126MiZpBA-UFVZ0e.ttf') format('truetype');
}
@font-face {
  font-family: 'Open Sans'; font-weight: 700; font-style: normal;
  font-display: swap;
  src: local('Open Sans Bold'), local('OpenSans-Bold'),
    url('https://fonts.gstatic.com/s/opensans/v34/mem5YaGs126MiZpBA-UN_r8OX-hpOqc.ttf') format('truetype');
}

/* ========= TYPOGRAPHY ========= */
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  background: var(--gray);
  color: var(--black);
  letter-spacing: 0.03em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.7rem;
  line-height: 1.2;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
h4 {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 10px;
}
p, ul, ol, dl {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: 18px;
  color: var(--black);
}
strong {
  font-weight: 700;
  color: var(--primary);
}
.subheadline {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 24px;
  font-weight: 600;
}

/* ========== LAYOUT CONTAINERS & SECTIONS ========== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

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

/* ==== FLEXBOX GRIDS & PATTERNS ==== */
.card-container, .card-grid, .features, .features-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  width: 100%;
}
.features-grid > div {
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(32,101,58,0.07);
  padding: 28px 18px 20px 18px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 305px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.22s;
}
.features-grid > div:hover {
  box-shadow: 0 10px 32px rgba(32,101,58,0.18);
  transform: translateY(-3px) scale(1.03);
}

.card {
  background: var(--light);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 18px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(32,101,58,0.14);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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) {
  .content-wrapper, .features-grid, .card-container, .card-grid, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 18px rgba(77,144,166,0.10);
  border-left: 5px solid var(--secondary);
  max-width: 650px;
  transition: box-shadow 0.3s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 36px rgba(77,144,166,0.17);
}
.testimonial-card blockquote {
  font-size: 1.12rem;
  font-style: italic;
  color: #111;
  margin-bottom: 10px;
}
.testimonial-card footer {
  color: var(--secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.service-highlights ul, .services-list, main ul, .content-wrapper ul {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-highlights ul li {
  border-left: 4px solid var(--primary);
  padding-left: 14px;
  background: var(--accent);
  border-radius: 6px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

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

/* ===== BUTTONS & LINKS ===== */
.btn-primary {
  background: var(--primary);
  color: var(--light);
  padding: 16px 34px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.06rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  box-shadow: 0 3px 14px rgba(32,101,58,0.10);
  transition: background 0.2s, box-shadow 0.18s, transform 0.11s;
  margin-bottom: 6px;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--light);
  box-shadow: 0 6px 28px rgba(77,144,166,0.18);
  transform: translateY(-2px) scale(1.04);
}
nav a, .mobile-nav a {
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 8px 0 0;
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  border-radius: 7px;
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a:focus, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--secondary);
}
footer nav a {
  font-size: 0.97rem;
}

/* ========== HEADER ========== */
header {
  background: var(--light);
  box-shadow: 0 2px 16px rgba(32,101,58,0.06);
  border-bottom: 2px solid var(--accent);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 23px;
  padding-bottom: 23px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  padding: 10px 14px;
  font-size: 2rem;
  background: var(--primary);
  color: var(--light);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.18s;
  z-index: 1900;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
}

@media (max-width: 1100px) {
  header .container {
    flex-wrap: wrap;
    gap: 8px;
  }
}
@media (max-width: 900px) {
  header nav, .header-actions .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: rgba(32, 101,58, 0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  transition: left 0.45s cubic-bezier(.82,-0.01,.38,.98);
}
.mobile-menu.open {
  left: 0;
  transition: left 0.33s cubic-bezier(.82,-0.01,.38,.98);
}
.mobile-menu-close {
  margin: 24px 30px 10px 0;
  font-size: 2.4rem;
  background: var(--secondary);
  color: var(--light);
  border-radius: 50%;
  border: none;
  width: 52px;
  height: 52px;
  box-shadow: 0 2px 15px rgba(77,144,166,0.15);
  cursor: pointer;
  transition: background 0.19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #17442A;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
  align-items: flex-start;
  margin-top: 18px;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: var(--accent);
  background: none;
  padding: 20px 32px;
  width: 100%;
  border-radius: 0;
  border-bottom: 1px solid rgba(225,243,231,0.17);
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover {
  background: var(--secondary);
  color: var(--light);
}

/* === Main padding on mobile === */
@media (max-width: 900px) {
  main {
    padding-top: 12px;
  }
}

/* ======= MAIN SECTIONS & UTILITY ======= */
main > section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
}
@media (max-width: 768px) {
  main > section {
    padding-top: 18px;
    padding-bottom: 18px;
    margin-bottom: 38px;
  }
}

/* ===== LISTS & DL/DT ===== */
ul, ol {
  padding-left: 0;
  gap: 14px;
}
dt {
  font-weight: 700;
  color: var(--primary);
  margin-top: 8px;
}
dd {
  margin-bottom: 10px;
  margin-left: 20px;
  color: #222;
}

/* ======== FOOTER ======== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 48px 0 24px 0;
  margin-top: 60px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
footer .content-wrapper > div {
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 400px;
}
footer nav {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
footer nav a {
  color: var(--accent);
  margin-right: 7px;
  transition: color 0.15s;
}
footer nav a:hover,footer nav a:focus {
  color: var(--secondary);
}
footer p {
  margin: 6px 0 0 0;
  color: var(--accent);
  font-size: 0.96rem;
}
footer img {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-right: 8px;
}
footer a {
  color: var(--accent);
}
@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  footer {
    font-size: 0.97rem;
    padding: 32px 0 14px 0;
  }
}

/* ====== MISCELLANEOUS ========= */
::-webkit-input-placeholder { color: #999; }
::-moz-placeholder { color: #999; }
:-ms-input-placeholder { color: #999; }
::placeholder { color: #999; }

/* ===== MICRO-INTERACTIONS ===== */
a, .btn-primary, button, .mobile-menu-toggle, .mobile-menu-close {
  transition: color 0.17s, background 0.17s, box-shadow 0.17s, transform 0.13s;
}

hr {
  border: 0;
  border-top: 1.5px solid var(--accent);
  margin: 30px 0;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 2100;
  background: var(--light);
  color: var(--primary);
  box-shadow: 0 -4px 50px 2px rgba(32,101,58,0.07);
  border-radius: 16px 16px 0 0;
  padding: 22px 26px 22px 24px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  animation: cookie-fade-in 0.35s cubic-bezier(.78,.13,.36,.90) 1;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 10px 18px 11px;
    font-size: 0.95rem;
  }
}
.cookie-banner .cookie-text {
  flex: 2 1 220px;
  margin-right: 12px;
  margin-bottom: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 6px;
  border: none;
  padding: 12px 18px;
  font-size: 1rem;
  cursor: pointer;
  margin: 0 3px 0 0;
  transition: background 0.2s, color 0.16s;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.reject {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  opacity: 0.85;
}
@keyframes cookie-fade-in {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===== COOKIE MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,101,58,0.85);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-fade-in 0.38s cubic-bezier(.78,.13,.36,.90) 1;
}
.cookie-modal {
  background: #fff;
  color: #111;
  border-radius: 24px;
  box-shadow: 0 12px 64px 4px rgba(77,144,166,0.17);
  max-width: 460px;
  width: 94vw;
  padding: 38px 34px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookie-modal-slide 0.39s cubic-bezier(.85,.14,.43,.92) 1;
}
@keyframes cookie-modal-slide {
  0% { opacity: 0; transform: translateY(80px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.28rem;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 6px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 1.4rem;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px 0;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: var(--accent);
  position: relative;
  outline: none;
  transition: background 0.16s;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle:disabled {
  background: #e9ecef;
  cursor: not-allowed;
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(32,101,58,0.05);
  transition: left 0.16s, background 0.16s;
}
.cookie-toggle:checked::before {
  left: 20px;
  background: #fff;
}
.cookie-toggle:disabled::before {
  background: #eee;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}
.cookie-category .desc {
  font-size: 0.93rem;
  color: #555;
}

/* ========== GEOMETRIC ACCENTS ========== */
.features-grid > div::before,
.card::before {
  content: '';
  display: block;
  width: 28px;
  height: 6px;
  background: var(--secondary);
  border-radius: 3px 18px 18px 3px;
  margin-bottom: 13px;
}
.features-grid > div img, .card img {
  margin-bottom: 8px;
}

/* ========== ACCESSIBILITY HIGHLIGHTING ========== */
a:focus,
.btn-primary:focus,
button:focus,
.mobile-menu-close:focus,
.mobile-menu-toggle:focus,
.cookie-btn:focus, .modal-close:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2.5px;
}

/* ========== RESPONSIVE FINE-TUNING ========== */
@media (max-width: 600px) {
  html { font-size: 95%; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.18rem; }
  .btn-primary { padding: 14px 8px; font-size: 1rem; }
  .testimonial-card { padding: 14px 10px; max-width: 100vw; }
  .features-grid > div { min-width: 140px; max-width: 100vw; }
}

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