/* --- 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 { font-size: 100%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
  background: #FFF;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* --- Global Variables (fallbacks included) --- */
:root {
  --brand-primary: #125D3C;
  --brand-secondary: #FFEBC6;
  --brand-accent: #24538B;
  --text-heading: #181f1a;
  --text-body: #222;
  --background-main: #FFFFFF;
  --background-alt: #F7F7F6;
  --shadow: 0 4px 12px rgba(18,93,60,0.05);
}

/* --- Typography --- */
h1, .h1 {
  font-family: 'Nunito', 'Open Sans', Arial, sans-serif;
  font-size: 2.5rem;
  color: var(--text-heading, #181f1a);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}
h2, .h2 {
  font-family: 'Nunito', 'Open Sans', Arial, sans-serif;
  font-size: 2rem;
  color: var(--text-heading, #181f1a);
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: 'Nunito', 'Open Sans', Arial, sans-serif;
  font-size: 1.25rem;
  color: var(--brand-primary, #125D3C);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.25;
}
h4, .h4 { font-size: 1.125rem; font-weight: 600; margin-bottom: 6px; }
.subheadline {
  color: var(--brand-accent, #24538B);
  font-size: 1.2rem;
  font-family: 'Open Sans', Arial, sans-serif;
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.5;
}
p, li {
  color: var(--text-body, #222);
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.7;
  margin-bottom: 12px;
}
strong { font-weight: 700; }

/* --- Container Utility --- */
.container {
  width: 100%;
  padding: 0 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Header & Navigation --- */
header {
  background: var(--background-main, #FFF);
  box-shadow: 0 2px 8px rgba(18,93,60,0.06);
  width: 100%;
  padding: 0;
  z-index: 100;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 32px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  padding: 7px 0;
  color: var(--brand-primary, #125D3C);
  font-size: 1rem;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
  font-family: 'Open Sans', Arial, sans-serif;
}
.main-nav a:not(.cta-primary):hover {
  background: var(--brand-secondary, #FFEBC6);
  color: var(--brand-accent, #24538B);
}
.cta-primary {
  background: var(--brand-primary, #125D3C);
  color: #fff !important;
  font-weight: 600;
  border-radius: 25px;
  padding: 10px 24px;
  margin-left: 12px;
  box-shadow: 0 2px 8px rgba(18,93,60,0.13);
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brand-accent, #24538B);
  box-shadow: 0 4px 14px rgba(36,83,139,0.12);
}
.cta-secondary {
  background: transparent;
  color: var(--brand-primary, #125D3C);
  border: 1.5px solid var(--brand-primary, #125D3C);
  border-radius: 23px;
  padding: 8px 20px;
  font-weight: 500;
  font-size: 1rem;
  margin-top: 18px;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--brand-secondary, #FFEBC6);
  color: var(--brand-accent, #24538B);
  border-color: var(--brand-accent, #24538B);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--brand-primary, #125D3C);
  background: transparent;
  border: none;
  padding: 8px;
  margin-left: 20px;
  border-radius: 6px;
  transition: background 0.2s;
  z-index: 200;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-secondary, #FFEBC6);
}

/* --- Mobile Burger Menu --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 4000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.5,0,0.2,1);
  display: flex;
  flex-direction: column;
  padding: 0 24px 0 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 16px 0 0;
  font-size: 2.25rem;
  color: var(--brand-primary, #125D3C);
  background: transparent;
  border: none;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-secondary, #FFEBC6);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 40px;
}
.mobile-nav a {
  font-size: 1.1rem;
  color: var(--brand-primary, #125D3C);
  background: transparent;
  border-radius: 10px;
  padding: 16px 24px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-secondary, #FFEBC6);
  color: var(--brand-accent, #24538B);
}
.mobile-nav a.cta-primary {
  margin-top: 32px;
  background: var(--brand-primary, #125D3C);
  color: #ffffff;
  border-radius: 25px;
  font-weight: 600;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a.cta-primary:hover { background: var(--brand-accent, #24538B); color: #fff; }

/* --- Hero Section --- */
.hero {
  background: var(--brand-secondary, #FFEBC6);
  box-shadow: 0 1px 6px rgba(18,93,60,0.05);
  margin-bottom: 60px;
  padding: 40px 0;
}
.hero .container {
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 0;
}
.hero h1 { margin-bottom: 10px; }
.hero .cta-primary { margin-top: 18px; }

/* --- Section Patterns --- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.features, .topics {
  background: var(--background-alt, #F7F7F6);
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.features .container,
.topics .container {
  align-items: flex-start;
  padding-top: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 26px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 240px;
  flex: 1 1 260px;
  transition: box-shadow 0.19s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(18,93,60,0.07);
}
.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: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 480px;
  flex: 1 1 320px;
  flex-direction: column;
  transition: box-shadow 0.16s;
}
.testimonial-card blockquote {
  color: var(--brand-accent, #24538B);
  font-size: 1.1rem;
  font-style: italic;
  margin: 0 0 12px 0;
  line-height: 1.5;
}
.testimonial-meta {
  color: var(--text-body, #222);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.testimonial-card:hover {
  box-shadow: 0 7px 24px rgba(36,83,139,0.10);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 24px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 20px;
  flex: 1 1 240px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.18s;
}
.feature-grid > div:hover {
  box-shadow: 0 9px 32px rgba(18,93,60,0.09);
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

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

.services ul,
.features ul,
.about ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}
.services ul li,
.features ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-body, #222);
  line-height: 1.5;
  background: #fff;
  border-radius: 13px;
  padding: 11px 17px;
  box-shadow: var(--shadow);
}
.services ul img,
.features ul img {
  width: 33px;
  height: 33px;
}

.contact-teaser p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.contact-teaser img { width: 24px; height: 24px; margin: 0 8px 0 0; }

.map .google-map-placeholder {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 24px 18px;
  color: var(--brand-accent, #24538B);
  margin-top: 15px;
  min-height: 80px;
  font-size: 1rem;
}

.legal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.legal-content h1 {
  font-size: 2.1rem;
}
.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 30px;
}
.legal-content ul {
  margin-left: 0;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Footer Styling --- */
footer {
  background: var(--background-alt, #F7F7F6);
  border-top: 1.5px solid #eee;
  padding: 40px 0 0 0;
  font-size: 1rem;
  letter-spacing: 0.005em;
  color: var(--text-body, #222);
}
footer .container {
  flex-direction: column;
  gap: 20px;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}
.footer-brand img {
  width: 48px;
  min-width: 48px;
  height: 48px;
  margin-right: 0;
}
.footer-brand strong {
  color: var(--brand-primary, #125D3C);
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 3px;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 8px;
}
.footer-links a {
  color: var(--brand-accent, #24538B);
  font-size: 0.98rem;
  padding: 6px 0;
  transition: color 0.18s;
  opacity: 0.85;
}
.footer-links a:hover { color: var(--brand-primary, #125D3C); opacity: 1; }
.footer-social {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
}
.footer-social img {
  width: 26px;
  height: 26px;
  margin-right: 6px;
}
.footer-rights {
  font-size: 0.92rem;
  color: #65726B;
  background: transparent;
  text-align: right;
  margin-top: 18px;
  letter-spacing: 0.01em;
  opacity: 0.8;
}


/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9000;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(18,93,60,0.11);
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 22px 16px 22px 22px;
  font-size: 1rem;
  color: var(--brand-primary, #125D3C);
  justify-content: space-between;
  transition: transform 0.32s cubic-bezier(0.6,0,0.2,1);
}
.cookie-banner.hide {
  transform: translateY(110%);
}
.cookie-banner__text {
  flex: 1 1 auto;
  margin-right: 24px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: center;
}
.cookie-btn {
  padding: 8px 22px;
  border-radius: 21px;
  font-size: 1rem;
  border: 1.5px solid var(--brand-primary, #125D3C);
  background: #fff;
  color: var(--brand-primary, #125D3C);
  font-weight: 500;
  transition: background 0.15s, border 0.18s, color 0.15s, box-shadow 0.2s;
  box-shadow: none;
}
.cookie-btn.accept {
  background: var(--brand-primary, #125D3C);
  color: #fff;
  border: 1.5px solid var(--brand-primary, #125D3C);
}
.cookie-btn.accept:hover {
  background: var(--brand-accent, #24538B);
  border-color: var(--brand-accent, #24538B);
}
.cookie-btn.reject {
  color: var(--brand-primary, #125D3C);
  background: #fff;
  border-color: var(--brand-primary, #125D3C);
}
.cookie-btn.reject:hover {
  background: var(--brand-secondary, #FFEBC6);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--brand-accent, #24538B);
  border: 1.5px solid var(--brand-accent, #24538B);
}
.cookie-btn.settings:hover {
  color: var(--brand-primary, #125D3C);
  border-color: var(--brand-primary, #125D3C);
  background: #FAFAF5;
}

.cookie-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(18,93,60,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.55,0,0.1,1);
}
.cookie-modal.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal__dialog {
  background: #fff;
  border-radius: 18px;
  min-width: 320px;
  max-width: 90vw;
  padding: 36px 28px 24px 28px;
  box-shadow: 0 18px 38px rgba(18,93,60,0.13);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
.cookie-modal__close {
  position: absolute;
  top: 15px; right: 13px;
  font-size: 1.4rem;
  background: transparent;
  color: var(--brand-primary, #125D3C);
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.19s;
}
.cookie-modal__close:hover {
  background: var(--brand-secondary, #FFEBC6);
}
.cookie-modal__title { font-size: 1.32rem; font-family: 'Nunito',sans-serif; font-weight:600; }
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 7px 0 22px 0;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
.cookie-modal__category-label {
  font-size: 1.08rem;
  flex: 1;
}
.cookie-modal__category-switch {
  min-width: 36px;
  height: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
}
.cookie-switch {
  appearance: none;
  width: 36px;
  height: 20px;
  background: #eee;
  outline: none;
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: var(--brand-accent, #24538B);
}
.cookie-switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-switch:after {
  content: '';
  display: block;
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 15px;
  transition: left 0.18s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.09);
}
.cookie-switch:checked:after {
  left: 18.5px;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* --- Micro-interactions --- */
a, button, .cta-primary, .cta-secondary, .cookie-btn {
  transition: background 0.16s, color 0.16s, box-shadow 0.19s, border 0.15s;
}

/* --- Responsive Design --- */
@media (max-width: 1080px) {
  .container { max-width: 97vw; }
  .feature-grid > div, .card, .testimonial-card { min-width: 200px; }
}
@media (max-width: 900px) {
  .feature-grid > div, .card, .testimonial-card {
    flex: 1 1 180px;
  }
}
@media (max-width: 768px) {
  header .container {
    height: 64px;
    padding: 0 12px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding: 0 10px;
  }
  .footer-brand,
  .footer-links {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .footer-social { justify-content: start; }
  .feature-grid {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .feature-grid > div,
  .testimonial-card,
  .card {
    min-width: 120px;
    flex: 1 1 100%;
    width: 100%;
  }
  .testimonial-list {
    flex-direction: column;
    gap: 18px;
  }
  .services ul, .features ul, .about ul {
    gap: 9px;
    font-size: 0.97rem;
  }
  section, .section {
    margin-bottom: 36px;
    padding: 26px 6px;
  }
}
@media (max-width: 600px) {
  h1, .h1 { font-size: 1.85rem; }
  h2, .h2 { font-size: 1.20rem; }
  .footer-brand img { width: 38px; height: 38px; }
  .footer-links { gap: 10px; }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    font-size: 0.97rem;
    padding: 16px 9px 16px 9px;
  }
}
@media (max-width: 480px) {
  .cookie-modal__dialog {
    min-width: unset;
    padding: 21px 7vw 15px 7vw;
  }
}

/* --- Flexbox layouts for structural classes (MANDATORY patterns) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- Custom Scrollbar for modern feel --- */
body {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-secondary, #FFEBC6) #fff;
}
body::-webkit-scrollbar {
  width: 10px;
  background: #fff;
}
body::-webkit-scrollbar-thumb {
  background: var(--brand-secondary, #FFEBC6);
  border-radius: 8px;
}

/* --- Hide visually but keep accessible --- */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* --- Helper: Hide Open Mobile Menu scroll --- */
body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}
