/* RESET & BASE ============================ */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7F7F2;
  color: #17485E;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #2D9378;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #17485E;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #17485E;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol, dl {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: #254E63;
}
ul, ol { padding-left: 22px; }
ul li, ol li { margin-bottom: 10px; }
strong { font-weight: bold; }

/* LAYOUT & CONTAINERS ============================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(23, 72, 94, 0.06);
}

@media (max-width: 900px) {
  .container { max-width: 98vw; }
}
@media (max-width: 768px) {
  .container, .section { padding-left: 12px; padding-right: 12px; }
  .section { padding: 24px 12px; margin-bottom: 36px; }
}

/* ========== FLEXBOX PATTERNS AS REQUIRED ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px 0 rgba(45, 147, 120, 0.07);
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(45, 147, 120, 0.15);
  transform: translateY(-3px) scale(1.03);
  z-index: 2;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F7F7F2;
  border-left: 7px solid #2D9378;
  border-radius: 16px;
  box-shadow: 0 1.5px 8px 0 rgba(23,72,94,0.10);
  margin-bottom: 20px;
  min-width: 220px;
  color: #17485E;
}
.testimonial-card p { color: #17485E; font-size: 1.15rem; }
.testimonial-card span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1rem;
  color: #2D9378;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURE GRID Demo for home: (since class is feature-grid)
   wrap with flex, structured, geometric look. */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 16px;
}
.feature-grid > div {
  background: #FFF;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 rgba(45, 147, 120, 0.09);
  padding: 28px 22px 22px 22px;
  min-width: 240px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.16s, transform 0.16s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 7px 34px 0 rgba(45, 147, 120, 0.17);
  transform: translateY(-3px) scale(1.035);
  z-index: 2;
}
.feature-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}
.feature-grid h3 {
  font-size: 1.2rem;
  color: #17485E;
  margin-bottom: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  font-weight: 700;
}
.feature-grid p {
  color: #254E63;
  font-size: 1.05rem;
}

/* ========== MAIN HEADER & NAV ========== */
header {
  background: #17485E;
  box-shadow: 0 2px 16px 0 rgba(23,72,94,0.06);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding-top: 4px;
  padding-bottom: 4px;
}
header img {
  height: 52px;
  width: auto;
  margin-right: 22px;
  border-radius: 11px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #FFF;
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a.active {
  color: #2D9378;
  background: #F7F7F2;
}
.cta-btn {
  background: #2D9378;
  color: #FFF !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.10rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border: none;
  border-radius: 11px;
  box-shadow: 0 2px 12px 0 rgba(45,147,120,0.10);
  cursor: pointer;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.17s;
  margin-left: 16px;
  text-decoration: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #17485E;
  color: #FFF;
  transform: translateY(-1.5px) scale(1.035);
  box-shadow: 0 6px 24px 0 rgba(23,72,94,0.11);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: #FFF;
  font-size: 2.4rem;
  margin-left: 18px;
  cursor: pointer;
  display: none;
  z-index: 30;
  outline: none;
  padding: 6px 15px 8px 8px;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus { color: #2D9378; }

@media (max-width: 1100px) {
  header nav a { font-size: 0.98rem; }
  .cta-btn { font-size: 1rem; padding: 10px 20px; }
  header img { height: 42px; }
}
@media (max-width: 900px) {
  header nav { gap: 2.7vw; }
  header .container { min-height: 64px; }
}
@media (max-width: 768px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #17485E;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-105%);
  transition: transform 0.34s cubic-bezier(.4,.8,.5,1);
  box-shadow: 6px 0 32px 0 rgba(23,72,94,0.18);
}
.mobile-menu.open {
  transform: translateX(0%);
}

.mobile-menu-close {
  background: none;
  border: none;
  position: absolute;
  top: 24px;
  right: 26px;
  color: #FFF;
  font-size: 2.25rem;
  cursor: pointer;
  z-index: 220;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #2D9378; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  margin-top: 70px;
  gap: 14px;
  padding-left: 34px;
}
.mobile-nav a {
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  padding: 14px 0 10px 0;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: color 0.2s, background 0.17s;
  display: inline-block;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #2D9378;
  color: #F7F7F2;
}

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

/* ========== MAIN ========== */
main {
  width: 100%;
  padding-top: 36px;
  padding-bottom: 36px;
}

@media (max-width: 768px) {
  .feature-grid { gap: 14px; }
  .feature-grid > div { min-width: 150px; padding: 20px 9px; }
  .content-wrapper { gap: 14px; }
}

/* .text-image-section, responsive switch */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* TABLES (pricing) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFF;
  margin-bottom: 24px;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(45,147,120,0.07);
  overflow: hidden;
}
thead tr {
  background: #2D9378;
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif; }
td, th {
  padding: 16px 10px;
  border-bottom: 1px solid #F7F7F2;
  font-size: 1.02rem;
}
tbody tr:nth-child(even) {
  background: #F7F7F2;
}
th {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* DL FAQ */
dl {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 24px;
}
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #17485E;
  font-size: 1.08rem;
  margin-bottom: 3px;
}
dd {
  margin-left: 0;
  color: #254E63;
  margin-bottom: 6px;
}

/* ARTICLES AND BLOG */
article {
  background: #FFF;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(23,72,94,0.07);
  padding: 16px 20px 13px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.15s, transform 0.15s;
}
article:hover {
  box-shadow: 0 7px 24px 0 rgba(23,72,94,0.12);
  transform: translateY(-2px) scale(1.015);
}
article h3 { margin-bottom: 7px; font-size: 1.13rem; color: #2D9378; }
article a {
  color: #17485E;
  border-bottom: 2px dotted #2D9378;
  padding-bottom: 1.5px;
  transition: color 0.15s, border-bottom-color 0.13s;
}
article a:hover, article a:focus {
  color: #2D9378;
  border-bottom-color: #17485E;
}

/* ========== FORMS (contact forms, etc.) ========== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 7px;
  border: 1.5px solid #2D9378;
  padding: 12px;
  outline: none;
  background: #FAFBFA;
  color: #17485E;
  margin-bottom: 18px;
  width: 100%;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #17485E;
}
button, .button {
  background: #2D9378;
  color: #FFF;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 30px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 1.5px 8px 0 rgba(45,147,120,0.06);
  transition: background 0.17s, box-shadow 0.13s, transform 0.16s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: #17485E;
  color: #FFF;
  transform: translateY(-1.5px) scale(1.025);
  box-shadow: 0 5px 20px 0 rgba(23,72,94,0.11);
}

/* ========== FOOTER ========== */
footer {
  background: #17485E;
  color: #FFF;
  padding: 0 0 0 0;
  box-shadow: 0 -2px 16px 0 rgba(23,72,94,0.08);
  font-size: 1.05rem;
}
footer .container { padding-top: 26px; padding-bottom: 18px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid #254E63;
  padding-bottom: 10px;
}
.footer-top a img {
  height: 41px;
  margin-right: 12px;
}
.footer-top nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.footer-top nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #FFF;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 6px 9px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.footer-top nav a:hover, .footer-top nav a:focus {
  color: #2D9378;
  background: #F7F7F2;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}
.footer-bottom span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
  color: #c4e4d7;
}
.footer-bottom address {
  font-style: normal;
  color: #FFF;
  font-size: 1.01rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.7;
}
.footer-bottom img[alt] {
  height: 18px;
  width: 18px;
  vertical-align: middle;
  margin-right: 5px;
  opacity: 0.7;
}
@media (max-width: 768px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  background: #FFF;
  color: #17485E;
  border-radius: 14px;
  box-shadow: 0 4px 32px 0 rgba(23,72,94,0.16);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 22px 14px 22px;
  max-width: 430px;
  margin: 0 auto;
  animation: cookie-banner-in 0.7s cubic-bezier(.6,.8,.5,1);
}
@keyframes cookie-banner-in {
  0% {transform: translateY(40px);opacity:0;}
  100% {transform: translateY(0);opacity:1;}
}
.cookie-banner p {
  color: #17485E;
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}
.cookie-banner button, .cookie-banner .button {
  padding: 9px 22px;
  font-size: 1.07rem;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(45,147,120,0.08);
}
.cookie-btn-accept {background: #2D9378; color: #FFF;}
.cookie-btn-reject {background: #17485E; color: #FFF;}
.cookie-btn-settings {background: #F7F7F2; color: #17485E; border: 1px solid #2D9378;}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {background: #17485E;}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {background: #2D9378;}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {background: #2D9378; color: #FFF;}

/* COOKIE MODAL OVERLAY */
.cookie-modal-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(23,72,94,0.62);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-bg-in 0.3s cubic-bezier(.5,.9,.4,1);
}
@keyframes cookie-modal-bg-in { from {opacity:0;} to {opacity:1;} }
.cookie-modal {
  background: #FFF;
  border-radius: 18px;
  padding: 34px 28px 22px 28px;
  min-width: 320px;
  max-width: 98vw;
  color: #17485E;
  box-shadow: 0 9px 44px 0 rgba(23,72,94,0.23);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: cookie-modal-in 0.5s cubic-bezier(.6,.8,.5,1);
}
@keyframes cookie-modal-in {
  0% {transform: scale(0.88);opacity:0;}
  100% {transform: scale(1);opacity:1;}
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.35rem;
  color: #2D9378;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-close {
  position: absolute;
  top: 19px;
  right: 19px;
  background: none;
  border: none;
  color: #17485E;
  font-size: 1.7rem;
  cursor: pointer;
  padding: 2px 5px;
  transition: color 0.16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: #2D9378; }
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 15px 0;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
}
.cookie-category label {
  color: #17485E;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-right: 7px;
  font-size: 1.06rem;
}
.cookie-category input[type=checkbox] {
  accent-color: #2D9378;
  width: 21px; height: 21px; border-radius: 4px;
  margin-right: 7px;
}
.cookie-category .always-on {
  margin-left: 7px;
  color: #2D9378;
  background: #E8F6EE;
  font-size: 0.99rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 3px 8px;
}
.cookie-modal-action-row {
  display: flex;
  gap: 15px;
  margin-top: 12px;
}
.cookie-modal button, .cookie-modal .button {
  padding: 10px 24px;
  font-size: 1.04rem;
}
@media (max-width: 480px) {
  .cookie-banner { max-width: 95vw; padding: 18px 9px; }
  .cookie-modal { padding: 14px 4vw 12px 4vw; min-width: 90vw; }
}


/* ========== TYPOGRAPHY, HEADERS, GEOMETRIC ACCENTS ========== */
h1, h2, h3 {
  text-transform: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 18px;
  line-height: 1.17;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
  line-height: 1.18;
  border-left: 7px solid #2D9378;
  padding-left: 14px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
@media (max-width: 480px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.17rem; }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 1.06rem;
}

/* ========== GEOMETRIC STRUCTURED VISUALS ========== */
section {
  border-radius: 32px 8px 32px 8px;
  border-top: 4.5px solid #2D9378;
  border-bottom: 4.5px solid #17485E;
  margin-bottom: 60px;
  box-shadow: 0 6px 40px 0 rgba(23,72,94,0.06);
  background: #FFF;
}
@media (max-width: 768px) {
  section { border-radius: 20px 6px 20px 6px; }
}

ul, ol {
  padding-left: 26px;
  list-style-type: square;
  color: #2D9378;
}
li {
  color: #17485E;
  margin-bottom: 7px;
  font-size: 1.09rem;
}
/* Highlighted lists for geometric structure */
.text-section ul li {
  position: relative;
  padding-left: 15px;
}
.text-section ul li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: #2D9378;
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ========== MICRO-ANIMATIONS & EFFECTS ========== */
a, button, .cta-btn, .card, .feature-grid > div, article {
  transition: color 0.16s, background 0.18s, box-shadow 0.18s, transform 0.15s;
}

/* ========== ACCESSIBILITY ========== */
:focus-visible {
  outline: 2.5px dashed #2D9378;
  outline-offset: 2px;
  z-index: 50;
}
::-webkit-input-placeholder { color: #A3C6B5; }
::-moz-placeholder { color: #A3C6B5; }
:-ms-input-placeholder { color: #A3C6B5; }
::placeholder { color: #A3C6B5; }

/* ========== HIERARCHY ============================ */
.section > .container > .content-wrapper > h1,
.section > .container > .content-wrapper > h2 {
  margin-top: 0;
  margin-bottom: 17px;
}

/* ========== SUCCESS & STATUS (thank you) ========== */
.status-success h1, .status-success .cta-btn {
  color: #2D9378;
}

/* ========== RESPONSIVE RULES ========== */
@media (max-width: 1100px) {
  .feature-grid, .card-container, .content-grid {
    gap: 14px;
  }
  .feature-grid > div, .card {
    min-width: 160px;
  }
}
@media (max-width: 768px) {
  main { padding-top: 21px; padding-bottom: 24px; }
  section {
    margin-bottom: 32px;
    padding: 18px 2vw;
  }
  .testimonial-card { padding: 13px 10px; }
}

/* ========== PRINT AND MISC ========== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #FFF !important; color: #000 !important; }
}
