/* =========================
   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,
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;
}
/* Modern box sizing reset */
*, *:before, *:after { box-sizing: inherit; }
html { box-sizing: border-box; }

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: #f9fbfd;
  color: #2d3748;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
a {
  color: #25603A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #204e30;
  text-decoration: underline;
}

/* =========================
   Typography
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #20426D;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-top: 32px;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 16px;
  font-size: 1rem;
}
strong, b {
  font-weight: 700;
}

/* =========================
   Layout Core & Containers
   ========================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.text-section {
  background: #fff;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(25, 40, 62, 0.07);
  margin-bottom: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(32, 66, 109, 0.08);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 24px 0 rgba(32, 66, 109, 0.14);
  transform: translateY(-2px) scale(1.02);
  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;
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(32, 66, 109, 0.07);
}
.testimonial-card p {
  font-size: 1.09rem;
  color: #253046;
  margin-bottom: 8px;
}
.testimonial-card div {
  font-size: 1rem;
  color: #32557f;
  opacity: .92;
}

/* =========================
   Header & Navigation
   ========================= */
header {
  background: #20426D;
  color: #fff;
  position: relative;
  z-index: 10;
  box-shadow: 0 1.5px 12px rgba(32,66,109,.05);
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  max-height: 44px;
  margin-right: 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 5px;
  transition: background .15s;
}
header nav a:hover, header nav a:focus {
  background: rgba(37, 96, 58, 0.08);
  color: #FFD758;
}
header .btn.btn-primary {
  background: #FFD758;
  color: #20426D !important;
  margin-left: 12px;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 700;
}
header .btn.btn-primary:hover, header .btn.btn-primary:focus {
  background: #F6F4F0;
  color: #25603A!important;
}

/* =========================
   Hamburger Mobile Menu
   ========================= */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  line-height: 1;
  color: #FFD758;
  cursor: pointer;
  margin-left: 22px;
  padding: 7px 16px;
  border-radius: 8px;
  transition: background .15s;
  z-index: 1000;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(37, 96, 58, 0.15);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #20426D;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .33s cubic-bezier(.79,.19,.16,.82);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 30px;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FFD758;
  font-size: 2.5rem;
  position: absolute;
  right: 32px;
  top: 22px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 10px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(255, 215, 88, .12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 55px;
  width: 100%;
  padding-left: 32px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 11px 0;
  transition: color .13s, background .16s;
  border-radius: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255, 215, 88, 0.09);
  color: #FFD758;
}

/* Show burger menu on mobile */
@media (max-width: 1024px) {
  header .container {
    flex-direction: row;
    gap: 0;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =========================
   Button Styles
   ========================= */
.btn {
  display: inline-block;
  border: none;
  outline: none;
  padding: 12px 32px;
  background: #25603A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 14px 0 rgba(37, 96, 58, .07);
  letter-spacing: 0.03em;
  margin: 10px 8px 10px 0;
  transition: background .18s, color .16s, box-shadow .17s;
}
.btn:hover, .btn:focus {
  background: #204e30;
  color: #FFD758;
  box-shadow: 0 6px 24px rgba(37, 96, 58, 0.13);
}
.btn.btn-primary {
  background: #FFD758;
  color: #20426D;
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
  background: #F6F4F0;
  color: #25603A;
}

/* =========================
   Section Spacing Overrides
   ========================= */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
section:last-child {
  margin-bottom: 0;
}

/* =========================
   List Styles
   ========================= */
ul {
  list-style: disc inside;
  margin-bottom: 16px;
}
ul li {
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #3a4762;
}
ul li img {
  width: 26px; height: 26px;
  flex-shrink: 0;
}
ol {
  margin-bottom: 16px;
  margin-left: 22px;
}
ol li {
  margin-bottom: 7px;
  color: #3a4762;
}

/* =========================
   Cards & Info Blocks
   ========================= */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* CTA Join & Callout */
.content-wrapper > .btn, .content-wrapper > a.btn {
  margin-top: 10px;
}

/* =========================
   Footer Styles
   ========================= */
footer {
  background: #1d2431;
  color: #fff;
  padding-top: 40px;
  padding-bottom: 22px;
  box-shadow: 0 -1px 14px rgba(32,66,109,.07);
}
footer .container {
  padding-left: 20px;
  padding-right: 20px;
}
footer .content-wrapper {
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer img {
  max-height: 46px;
  margin-bottom: 8px;
}
footer address, footer address a {
  font-style: normal;
  color: #FFD758;
  font-size: 15px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
footer nav strong {
  color: #FFD758;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
footer nav a {
  color: #f8fafc;
  font-size: 1rem;
  margin-bottom: 4px;
}
footer nav a:hover, footer nav a:focus {
  color: #FFD758;
  background: none;
}
footer span {
  font-size: 14px;
  color: #f9faed;
}

/* =========================
   Responsive Design
   ========================= */
@media (max-width: 900px) {
  .content-wrapper {
    gap: 18px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
  .section, section {
    margin-bottom: 36px;
    padding: 28px 0;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card-container {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item {
    gap: 9px;
  }
  .testimonial-card {
    padding: 15px;
    gap: 11px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  .btn, .btn.btn-primary { font-size: .99rem; padding: 12px 18px; }
  .card, .text-section {
    padding: 12px 8px;
    border-radius: 8px;
  }
}

/* =========================
   Cookie Consent Banner
   ========================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: #20426D;
  color: #fff;
  box-shadow: 0 -1px 18px rgba(32, 66, 109, 0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 18px 20px;
  gap: 32px;
  font-size: 1rem;
  min-height: 80px;
  animation: cookie-fadein 0.88s cubic-bezier(.6,.07,.45,1) 1;
}
@keyframes cookie-fadein {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner button {
  margin: 0 6px;
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  outline: none;
  color: #20426D;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #FFD758;
  transition: background .18s, filter .15s;
  cursor: pointer;
}
.cookie-consent-banner button:hover, .cookie-consent-banner button:focus {
  background: #F6F4F0;
  color: #25603A;
}
.cookie-consent-banner .btn-cookie-settings {
  background: #365E86;
  color: #fff;
  border: none;
  margin-left: 10px;
  transition: background .19s, color .16s;
}
.cookie-consent-banner .btn-cookie-settings:hover, .cookie-consent-banner .btn-cookie-settings:focus {
  background: #FFD758;
  color: #20426D;
}

@media (max-width:600px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 14px;
    font-size: .95rem;
    padding: 9px 6px;
    align-items: flex-start;
    min-height: 0;
  }
}

/* =========================
   Cookie Modal
   ========================= */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(45, 55, 72, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .24s;
}
.cookie-modal.active {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  color: #2d3748;
  border-radius: 16px;
  max-width: 380px;
  width: 98%;
  box-shadow: 0 8px 40px rgba(32, 66, 109, 0.19);
  padding: 34px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modal-pop-in .42s cubic-bezier(.32,1.35,.7,1) 1;
  position: relative;
}
@keyframes modal-pop-in {
  from { transform: scale(.78); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal-content h3 {
  color: #20426D;
  font-size: 1.32rem;
  margin-bottom: 16px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 11px;
  gap: 10px;
  cursor: pointer;
}
.cookie-modal-content input[type='checkbox'] {
  width: 19px; height: 19px;
  accent-color: #25603A;
  cursor: pointer;
}
.cookie-modal-content .cookie-modal-close {
  position: absolute;
  right: 16px; top: 14px;
  background: none;
  border: none;
  color: #20426D;
  font-size: 1.7rem;
  cursor: pointer;
  z-index: 10;
}
.cookie-modal-content .cookie-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}
.cookie-modal-content button {
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #20426D;
  background: #FFD758;
  cursor: pointer;
  transition: background .17s;
}
.cookie-modal-content button:hover, .cookie-modal-content button:focus {
  background: #25603A;
  color: #fff;
}


/* =========================
   Micro-interactions, Links, Misc
   ========================= */
::-webkit-input-placeholder { color: #b8bcc5; opacity:1; }
::-moz-placeholder { color: #b8bcc5; opacity:1; }
:-ms-input-placeholder { color: #b8bcc5; opacity:1; }
::placeholder       { color: #b8bcc5; opacity:1; }

hr {
  border: none;
  border-top: 1px solid #e0e3ea;
  margin: 32px 0;
}

/* Focus outlines for accessibility */
a:focus, button:focus, input:focus, .btn:focus {
  outline: 2px solid #FFD758;
  outline-offset: 3px;
}

/* =========================
   Print Style Minimal
   ========================= */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  body, html { background: #fff !important; color: #222; }
}
