/* 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 {
  scroll-behavior: smooth;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7FAFC;
  color: #1A365D;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
a {
  color: #22543D;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #1A365D;
  text-decoration: underline;
}
ul, ol {
  margin-left: 24px;
}

/* Typography: Geometric & Structured */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1A365D;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.section h2, .section h3 { font-family: 'Montserrat', 'Roboto', Arial, sans-serif; }

p, li, ul, ol {
  font-size: 1rem;
  color: #253F4A;
  line-height: 1.7;
}
strong, b { font-weight: 700; }

/* Container, Section, and Layout Spacing */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 16px rgba(34,84,61,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  margin-bottom: 20px;
  color: #1A365D;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Hero section */
.hero {
  background: linear-gradient(120deg, #EAF8F1 70%, #fff 100%);
  border-bottom: 6px solid #22543D;
  border-radius: 0 0 38px 38px;
  padding: 60px 0 40px 0;
  margin-bottom: 48px;
}
.hero .container {
  align-items: stretch;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  gap: 24px;
}
.hero h1 {
  color: #22543D;
  font-size: 2.25rem;
  letter-spacing: 0.03em;
}
.hero p {
  font-size: 1.25rem;
  color: #1A365D;
  margin-bottom: 8px;
}
.hero .button { margin-top: 20px; }

/* --- Flexbox Utility Patterns --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(34,84,61,0.05);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 260px;
  flex: 1 1 330px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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: #EAF8F1;
  color: #1A365D;
  border-radius: 18px;
  margin: 24px 0 0 0;
  padding: 22px 28px;
  box-shadow: 0 2px 18px rgba(26,54,93,0.07);
  font-style: italic;
  transition: box-shadow .2s;
}
.testimonial-card:hover {
  box-shadow: 0 5px 30px rgba(34,84,61,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid styles */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 8px;
}
.feature-grid > div {
  background: #fff;
  border: 2px solid #EAF8F1;
  border-radius: 18px;
  box-shadow: 0 1px 8px rgba(34,84,61,0.04);
  padding: 22px 16px;
  flex: 1 1 220px;
  max-width: 280px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
  gap: 12px;
}
.feature-grid > div:hover {
  transform: translateY(-6px) scale(1.025) rotate(-1deg);
  box-shadow: 0 5px 24px rgba(26, 54, 93, 0.14);
}'
.feature-grid img, .team-grid img {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
}

/* Team grid (about page) */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.team-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 10px rgba(34,84,61,0.07);
  padding: 22px 18px;
  flex: 1 1 240px;
  min-width: 190px;
}

/* Post/article list */
.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.post-list article {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 10px rgba(34,84,61,0.06);
  padding: 20px 18px;
  min-width: 215px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow .19s, transform .19s;
}
.post-list article:hover {
  box-shadow: 0 4px 18px rgba(34,84,61,0.13);
  transform: scale(1.02) skew(-1deg, 1deg);
}
.post-list article h3 {
  margin-bottom: 8px;
  font-size: 1.17rem;
  color: #22543D;
}
.post-list article p {
  color: #1A365D;
}
.post-list article a {
  align-self: flex-start;
  background: #1A365D;
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  margin-top: 10px;
  transition: background .18s, color .18s;
}
.post-list article a:hover {
  background: #22543D;
  color: #EAF8F1;
}

/******************** HEADER AND NAVIGATION **********************/
header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(34,84,61,.06);
  z-index: 100;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.main-nav a {
  padding: 11px 12px 10px 12px;
  border-radius: 8px;
  transition: background .16s, color .16s;
  color: #1A365D;
  line-height: 1.1;
  position: relative;
}
.main-nav a.button { padding: 9px 20px; }
.main-nav a:hover, .main-nav a:focus {
  background: #EAF8F1;
  color: #22543D;
}
.main-nav .button-primary {
  background: #22543D;
  color: #EAF8F1;
  border: none;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 5px rgba(34,84,61,0.09);
  transition: background .18s, color .17s, transform .16s;
}
.main-nav .button-primary:hover, .main-nav .button-primary:focus {
  background: #1A365D;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 3px 15px rgba(34,84,61,0.14);
}
.main-nav img {
  height: 43px;
  width: auto;
  margin-right: 18px;
  border-radius: 12px;
}

/******************** MOBILE MENU **********************/
.mobile-menu-toggle {
  display: none;
  background: #22543D;
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  margin-left: auto;
  transition: background .14s;
  z-index: 5002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #1A365D;
  color: #EAF8F1;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,54,93,0.91);
  z-index: 5001;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-105%);
  transition: transform .36s cubic-bezier(0.86, 0, 0.07, 1);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  background: none;
  color: #EAF8F1;
  font-size: 2.1rem;
  border: none;
  padding: 18px 22px 8px 16px;
  align-self: flex-end;
  cursor: pointer;
  transition: color .19s;
  z-index: 5004;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #87AC90; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 1px;
  padding: 0 22px;
}
.mobile-nav a {
  color: #EAF8F1;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.19rem;
  letter-spacing: 0.035em;
  padding: 18px 0 16px 6px;
  margin-bottom: 1px;
  text-align: left;
  border-bottom: 1px solid rgba(234,248,241,0.08);
  border-radius: 0;
  background: none;
  transition: background .17s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EAF8F1;
  color: #22543D;
}

/***************** BUTTONS and CTA *****************/
.button, .button-primary {
  display: inline-block;
  background: #22543D;
  color: #fff;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  padding: 13px 28px;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(34,84,61,.08);
  transition: background .18s, color .16s, transform .12s;
}
.button-primary {
  background: #22543D;
  color: #EAF8F1;
}
.button:hover, .button:focus, .button-primary:hover, .button-primary:focus {
  background: #1A365D;
  color: #fff;
  transform: translateY(-2px) scale(1.045);
}

/***************** FOOTER *****************/
footer {
  background: #1A365D;
  color: #EAF8F1;
  padding: 26px 0 8px 0;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 30px rgba(26,54,93,0.08);
}
footer .container {
  gap: 14px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
  font-size: .97rem;
}
.footer-nav a {
  color: #EAF8F1;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #EAF8F1;
  color: #1A365D;
}
.footer-nav a:last-child {
  margin-right: 0;
}
footer .text-section {
  margin-top: 0;
  color: #EAF8F1;
  font-size: 1rem;
}

/**************** COOKIE CONSENT BANNER ****************/
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(120%);
  width: 98%;
  max-width: 480px;
  background: #1A365D;
  color: #EAF8F1;
  font-family: 'Roboto', Arial, sans-serif;
  box-shadow: 0 -4px 24px rgba(26,54,93,0.21);
  border-radius: 18px 18px 6px 6px;
  padding: 24px 18px 18px 18px;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: transform .36s cubic-bezier(0.86, 0, 0.07, 1), opacity .25s;
}
.cookie-banner.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p { color: #EAF8F1; margin-bottom: 6px; }
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 7px;
  border: none;
  margin: 0;
  cursor: pointer;
  box-shadow: 0 1px 7px rgba(234,248,241,.09);
  transition: background .15s, color .14s, transform .14s;
  font-size: .97rem;
  letter-spacing: 0.04em;
}
.cookie-banner .accept {
  background: #22543D;
  color: #EAF8F1;
  font-weight: 600;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #15935A;
  color: #fff;
  transform: scale(1.06);
}
.cookie-banner .reject {
  background: #fff;
  color: #22543D;
  border: 1.5px solid #EAF8F1;
  font-weight: 500;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #EAF8F1;
  color: #22543D;
  transform: scale(1.03);
}
.cookie-banner .settings {
  background: transparent;
  color: #EAF8F1;
  border: 1.5px solid #EAF8F1;
  font-weight: 500;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #EAF8F1;
  color: #22543D;
  transform: scale(1.03);
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 6010;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,54,93,.41);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active { display: flex; }
.cookie-modal {
  background: #fff;
  color: #1A365D;
  max-width: 420px;
  width: 96%;
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(26,54,93,0.17);
  padding: 32px 24px 22px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  margin-bottom: 8px;
  color: #22543D;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-cat label {
  font-weight: 500;
}
.cookie-cat input[type="checkbox"] { accent-color: #22543D; margin-right: 5px; }
.cookie-cat input[disabled] { cursor: not-allowed; filter: grayscale(.7); }
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal button {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: .97rem;
  padding: 8px 16px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background .14s, color .14s, transform .13s;
}
.cookie-modal .modal-close {
  background: #EAF8F1;
  color: #22543D;
  font-weight: 600;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #22543D;
  color: #fff;
  transform: scale(1.08);
}
.cookie-modal .modal-save {
  background: #22543D;
  color: #EAF8F1;
  font-weight: 600;
}
.cookie-modal .modal-save:hover, .cookie-modal .modal-save:focus {
  background: #1A365D;
  color: #fff;
  transform: scale(1.08);
}

/***************** MISCELLANEOUS & STRUCTURED SHAPES *****************/
.cta-area {
  display: flex;
  gap: 18px;
  margin-top: 22px;
}
hr {
  border: none;
  border-top: 2.5px solid #EAF8F1;
  margin: 28px 0;
}
blockquote {
  background: #EAF8F1;
  color: #1A365D;
  border-left: 4px solid #22543D;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  font-style: italic;
}
pre, code {
  background: #f5f9f7;
  padding: 7px 12px;
  border-radius: 6px;
  color: #22543D;
  font-size: .97rem;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', monospace;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  border: 1px solid #EAF8F1;
  padding: 9px 12px;
  text-align: left;
  font-size: 1rem;
}
th {
  background: #EAF8F1;
  color: #1A365D;
}

/********** GEOMETRIC DECORATIVE SHAPES **********/
.section:before {
  content: "";
  display: block;
  position: absolute;
  top: -19px; right: 20px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg,#EAF8F1 60%, transparent);
  border-radius: 13px 28px 16px 23px;
  z-index: 0;
  opacity: .41;
  pointer-events: none;
}
.section:after {
  content: "";
  display: block;
  position: absolute;
  left: 13px; bottom: -13px;
  width: 32px; height: 32px;
  background: #EAF8F1;
  border-radius: 40% 48% 36% 40%;
  opacity: .23;
  pointer-events: none;
  z-index: 0;
}
.section > * { position: relative; z-index: 1; }

/****************** MEDIA QUERIES: RESPONSIVE ******************/
@media (max-width: 1200px) {
  .container { max-width: 980px; }
  .feature-grid > div, .post-list article, .team-grid > div { max-width: 47%; }
}
@media (max-width: 900px) {
  .container { max-width: 95%; }
  .feature-grid > div, .post-list article, .team-grid > div {
    max-width: 100%;
    flex: 1 1 100%;
  }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .container { padding-left: 12px; padding-right: 12px; }
  .hero { padding: 38px 0 22px 0; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1.02rem; }
  .section {
    margin-bottom: 32px;
    padding: 28px 6px;
    border-radius: 14px;
  }
  .feature-grid, .card-container, .content-grid, .team-grid, .post-list {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .card, .team-grid > div, .post-list article {
    min-width: 0;
    max-width: 100%;
  }
  .testimonial-card {
    padding: 16px 12px;
    font-size: 0.98rem;
    border-radius: 12px;
  }
  .cta-area { flex-direction: column; gap: 12px; }
  .footer-nav { flex-direction: column; gap: 7px; }
  .text-image-section { flex-direction: column; gap: 16px; }
}
@media (max-width: 520px) {
  .section { padding: 17px 2px; border-radius: 7px; }
  .hero { border-radius: 0 0 20px 20px; }
  footer { border-radius: 15px 15px 0 0; }
  .cookie-banner { padding: 10px 5px 8px 8px; font-size: .97rem; }
  .cookie-modal { padding: 16px 8px 7px 8px; }
}

/********** FOCUS STATES FOR ACCESSIBILITY **********/
a:focus-visible, .button:focus-visible, .button-primary:focus-visible {
  outline: 2.5px solid #22543D;
  outline-offset: 2px;
}

/************** AUTOFILL & SELECTION **************/
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #EAF8F1;
  padding: 8px 12px;
  margin-bottom: 15px;
  max-width: 100%;
  background: #fff;
  color: #1A365D;
  box-shadow: 0 1px 5px rgba(26,54,93,0.037);
  transition: border .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #22543D;
}
::selection {
  background: #EAF8F1;
  color: #1A365D;
}

/* Hide scrollbars for menu overlay on iOS/Safari */
.mobile-menu { -webkit-overflow-scrolling: touch; overflow-y: auto; }

/********* PREVENT OVERLAPPING, FLEX GAPS *********/
.section, .feature-grid, .content-grid, .card-container, .team-grid, .post-list {
  gap: 20px;
}
.card-container, .team-grid, .feature-grid, .post-list {
  margin-bottom: 0;
}

/***************** END *****************/
