/* --- 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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F9F7F3;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #28475E;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 1em;
}
blockquote {
  margin: 0.7em 0 0.7em 1em;
  padding-left: 1em;
  border-left: 4px solid #90BF82;
  background: rgba(144, 191, 130, 0.03);
  font-style: italic;
}
a {
  text-decoration: underline;
  transition: color 0.2s;
   color: #90BF82;
}
a:hover,
a:focus {
  color: #90BF82;
  text-decoration: none;
  outline: none;
}

/* --- FONT FACES (Google Fonts Fallback) --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Open+Sans:400,600,700&display=swap');

/* --- TYPOGRAPHY SCALE --- */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #28475E;
}
@media (min-width: 640px) {
  h1, .h1 {
    font-size: 3rem;
  }
}
h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #28475E;
  line-height: 1.15;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #28475E;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #28475E;
}
.lead {
  font-size: 1.18rem;
  color: #28475E;
  margin-bottom: 20px;
  font-weight: 400;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
}
strong { font-weight: 700; }

/* --- LAYOUT CONTAINERS & GENERAL SPACING --- */
.container {
  width: 100%;
  max-width: 1172px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    gap: 32px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(40,71,94,0.06);
}
section:not(.cookie-consent-banner):not(.cookie-modal) {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* --- FLEXBOX PATTERNS (MANDATORY CLASSES) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(40,71,94,0.05);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.27s, transform 0.27s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(40,71,94,0.12);
  transform: translateY(-2px) scale(1.015);
}
.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; }
  .content-grid { flex-direction: column; }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F9F7F3;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(40,71,94,0.02);
  margin-bottom: 20px;
  flex: 1 1 250px;
  min-width: 0;
  color: #28475E;
}
.testimonial-card blockquote {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font-size: 1.08rem;
  color: #28475E;
}
.testimonial-card cite {
  font-style: normal;
  color: #90BF82;
  margin-left: 1em;
  font-size: 0.98rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid, .benefit-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: stretch;
}
.feature-grid li, .benefit-cards > div {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(40,71,94,0.07);
  padding: 26px 20px;
  min-width: 235px;
  flex: 1 1 240px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.27s, transform 0.24s;
}
.feature-grid li:hover, .benefit-cards > div:hover {
  box-shadow: 0 6px 28px 0 rgba(40,71,94,0.12);
  transform: translateY(-2px) scale(1.012);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: linear-gradient(90deg, #E2EFDD 0%, #F9F7F3 100%);
  padding: 0;
  position: relative;
  box-shadow: 0 2px 6px 0 rgba(40,71,94,0.06);
  z-index: 30;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 12px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 12px;
  border-radius: 8px;
  background: none;
  color: #28475E;
  transition: background 0.17s, color 0.16s;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active {
  background: #90BF82;
  color: #fff;
}
.button-primary {
  background: linear-gradient(90deg, #90BF82 0%, #70af7f 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 4px 16px 0 rgba(40,71,94,0.07);
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.22s, transform 0.19s;
  text-decoration: none;
  outline: none;
  margin-left: 11px;
}
.button-primary:hover,
.button-primary:focus {
  background: linear-gradient(90deg, #70af7f 60%, #28475E 100%);
  color: #fff;
  box-shadow: 0 8px 20px 0 rgba(40,71,94,0.16);
  transform: scale(1.03);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: #90BF82;
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  margin-left: 15px;
  cursor: pointer;
  transition: background 0.19s, color 0.14s;
  z-index: 50;
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #28475E;
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(.77,.2,.2,1);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 24px 24px 24px;
  gap: 34px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  margin-right: 0;
  padding: 8px 8px 12px 8px;
  cursor: pointer;
  z-index: 150;
  transition: color 0.17s;
}
.mobile-menu-close:hover {
  color: #90BF82;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 15px 0;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.20s, color 0.16s;
  text-align: left;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #90BF82;
  color: #fff;
}
.mobile-nav a.button-primary {
  background: #90BF82;
  color: #fff;
  text-align: center;
  margin-top: 16px;
  padding-left: 0;
  padding-right: 0;
}

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

/* --- HERO SECTION --- */
section:first-of-type {
  background: linear-gradient(100deg, #E2EFDD 0%, #F9F7F3 100%);
  min-height: 290px;
  display: flex;
  align-items: center;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 2px 10px rgba(144,191,130,0.1);
  margin-bottom: 40px;
}
section:first-of-type .container {
  padding-top: 44px;
  padding-bottom: 44px;
}

/* --- ABOUT & FEATURE STYLES --- */
.text-section ul {
  margin-top: 10px;
  margin-bottom: 14px;
  padding-left: 18px;
  list-style: disc inside;
}
.text-section li {
  margin-bottom: 7px;
  font-size: 1rem;
}
.text-section a:not(.button-primary) {
  font-weight: 500;
  text-decoration: underline;
}
.text-section a:not(.button-primary):hover {
  text-decoration: none;
  color: #90BF82;
}

/* --- BLOG / ARTICLE PREVIEW STYLES --- */
article {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(40,71,94,0.03);
  padding: 24px 20px;
  margin-bottom: 18px;
  transition: box-shadow 0.2s, transform 0.18s;
}
article:hover {
  box-shadow: 0 8px 20px 0 rgba(40,71,94,0.13);
  transform: translateY(-3px) scale(1.014);
}

/* --- SERVICE CARDS ETC --- */
.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(40,71,94,0.06);
  padding: 32px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card h3 {
  margin-bottom: 12px;
}

/* --- CTA / BANNER --- */
.cta-banner, .call-to-action, section:last-of-type {
  background: linear-gradient(86deg, #90BF82 0%, #28475E 110%);
  color: #fff;
  border-radius: 24px;
  padding: 36px 0;
}
section:last-of-type h2, section:last-of-type p {
  color: #fff;
}
section:last-of-type a.button-primary {
  background: #fff;
  color: #28475E;
}
section:last-of-type a.button-primary:hover {
  background: #f9f7f3;
  color: #70af7f;
}

/* --- TABLE STYLES --- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 26px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
thead, th {
  background: #90BF82;
  color: #fff;
  font-weight: 600;
}
th, td {
  padding: 13px 12px;
}
tr:nth-child(even) {
  background: #F0F8F0;
}
caption {
  font-size: 1.08rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* --- FOOTER STYLE --- */
footer {
  background: #28475E;
  color: #fff;
  padding: 42px 0 26px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  justify-content: center;
}
footer img {
  height: 38px;
  margin-bottom: 12px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 10px;
}
footer nav a {
  color: #fff;
  opacity: 0.92;
  font-size: 0.95rem;
  text-decoration: underline;
  transition: color 0.18s;
}
footer nav a:hover {
  color: #90BF82;
}
footer .text-section {
  font-size: 0.98rem;
  color: #cfd8de;
  text-align: center;
}
footer .text-section a {
  color: #90BF82;
  text-decoration: underline;
}

@media (min-width: 700px) {
  footer .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
    text-align: left;
  }
  footer .text-section {
    text-align: left;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 700px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .section, section { padding: 32px 4px; }
  .feature-grid, .benefit-cards { flex-direction: column; gap: 16px; }
  .card { padding: 20px 11px; }
}
@media (max-width: 375px) {
  h1, .h1 { font-size: 1.55rem; }
  h2, .h2 { font-size: 1.16rem; }
}
@media (max-width: 500px) {
  header .container { padding: 10px 6px; }
  .testimonial-card { padding: 13px; }
}

/* --- MICRO-INTERACTIONS --- */
.button-primary,
.main-nav a,
.feature-grid li,
.benefit-cards > div,
.card,
.service-card,
article {
  transition: box-shadow 0.22s, background 0.19s, color 0.14s, transform 0.18s;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 3px solid #90BF82;
  box-shadow: 0 -4px 21px 0 rgba(40,71,94,0.07);
  padding: 22px 16px 16px 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  transition: transform 0.36s cubic-bezier(.57,.12,.38,.95), opacity 0.19s;
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent-banner p {
  color: #28475E;
  font-size: 1rem;
  margin: 0 0 4px 0;
  text-align: center;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 2px;
}
.cookie-consent-banner button {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.12s, box-shadow 0.18s;
  margin: 0;
}
.cookie-btn-accept {
  background: #90BF82;
  color: #fff;
}
.cookie-btn-accept:hover {
  background: #70af7f;
}
.cookie-btn-reject {
  background: #28475E;
  color: #fff;
}
.cookie-btn-reject:hover {
  background: #3B5972;
}
.cookie-btn-settings {
  background: #F9F7F3;
  color: #28475E;
  border: 1px solid #90BF82;
}
.cookie-btn-settings:hover {
  background: #ededed;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  left:0;top:0;right:0;bottom:0;
  z-index: 280;
  background: rgba(40,71,94,0.48);
  transition: opacity 0.26s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #fff;
  border-radius: 19px 19px 0 0;
  max-width: 410px;
  width: 93vw;
  z-index: 300;
  box-shadow: 0 -4px 22px 0 rgba(40,71,94,0.19);
  padding: 36px 26px 26px 26px;
  transition: transform 0.36s cubic-bezier(.65,.09,.39,.98);
}
.cookie-modal.open {
  transform: translateX(-50%) translateY(0);
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 16px;
  color: #28475E;
}
.cookie-modal .cookie-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.cookie-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #28475E;
}
.cookie-option input[type="checkbox"] {
  accent-color: #90BF82;
  width: 20px;
  height: 20px;
}
.cookie-option .cookie-descr {
  font-size: 0.95rem;
  color: #54657a;
}
.cookie-option .locked {
  color: #90BF82;
  font-size: 1rem;
  margin-left: 7px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 7px 14px;
  border-radius: 7px;
  outline: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 701px) {
  .cookie-modal {
    left: 50%;
    bottom: 36px;
    border-radius: 19px;
    transform: translateX(-50%) translateY(120%);
    max-width: 450px;
    padding: 44px 40px 36px 40px;
  }
}

/* --- ACCENT LINES, DECOR, ETC. (MODERN FLAT) --- */
h2::after {
  content: "";
  display: block;
  height: 3px;
  width: 40px;
  background: #90BF82;
  border-radius: 6px;
  margin-top: 11px;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 10px;
  background: #F9F7F3;
}
::-webkit-scrollbar-thumb {
  background: #90BF82;
  border-radius: 5px;
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.max-w-600 { max-width: 600px; margin: 0 auto; }

/* --- OVERRIDES: SPACING & GAPS --- */
section .container, section .content-wrapper, .card-container, .feature-grid, .benefit-cards, .content-grid {
  gap: 20px;
}
.card, .testimonial-card, .service-card {
  margin-bottom: 20px;
}

/* --- ACCESSIBILITY & FOCUS STATES --- */
a:focus, .button-primary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-consent-banner button:focus, .cookie-modal button:focus {
  box-shadow: 0 0 0 3px #90BF82;
  outline: none;
}

/* --- END OF CSS --- */
