/* ----------- CSS RESET & BASE ----------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  background-color: #F4F8FA;
  color: #222E38;
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
a {
  color: #23487B;
  text-decoration: none;
  transition: color 0.28s cubic-bezier(.4,0,.2,1);
}
a:hover,
a:focus {
  color: #86B040;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.7em;
  margin-bottom: 1.2em;
}
ul li, ol li {
  margin-bottom: 0.5em;
}
strong, b {
  font-weight: 700;
}

/* ------------- CONTAINERS & LAYOUTS ------------- */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(34, 46, 56, 0.06);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(34, 46, 56, 0.06);
  margin-bottom: 20px;
  padding: 32px 26px 28px 26px;
  position: relative;
  transition: box-shadow 0.2s;
  min-width: 260px;
  flex: 1 1 260px;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(34, 46, 56, 0.13);
}
.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;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
}
.features-grid > div {
  background: #fafbfc;
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(34, 46, 56, 0.04);
  padding: 26px 20px 18px 20px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  transition: box-shadow .18s;
}
.features-grid > div:hover {
  box-shadow: 0 3px 16px 0 rgba(34, 46, 56, 0.11);
}

/* ------------- TYPOGRAPHY ------------- */
h1, .hero h1 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #23487B;
  margin-bottom: 0.3em;
  line-height: 1.12;
}
h2 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 2rem;
  font-weight: 600;
  color: #23487B;
  margin-bottom: 0.2em;
  line-height: 1.18;
}
h3 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.175rem;
  font-weight: 600;
  color: #23487B;
  margin-bottom: 0.1em;
  line-height: 1.25;
}
h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #23487B;
  margin-bottom: 0.09em;
}
p, li, ul, ol {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #222E38;
}

.hero p, .hero .content-wrapper > p {
  font-size: 1.22rem;
  color: #384250;
  margin-bottom: 12px;
}

strong, b {
  color: #23487B;
  font-weight: 700;
}

/* ------------- HEADER NAVIGATION ------------- */
header {
  background: #fff;
  border-bottom: 1px solid #e7e7eb;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px 14px 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
header nav a {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #23487B;
  font-weight: 500;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  padding: 4px 0 2px 0;
  border-bottom: 2.5px solid transparent;
  transition: color .18s, border-color .16s;
}
header nav a:hover,
header nav a:focus {
  color: #86B040;
  border-bottom: 2.5px solid #86B040;
}
.cta-button {
  padding: 12px 34px;
  background: #23487B;
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  border-radius: 24px;
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px 0 rgba(34, 46, 56, 0.09);
  border: none;
  outline: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow .18s;
}
.cta-button:hover,
.cta-button:focus {
  background: #86B040;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(34, 46, 56, 0.14);
}

/* ------------- MOBILE NAV ------------ */
.mobile-menu-toggle {
  display: none;
}
.mobile-menu {
  display: none;
}
@media (max-width: 980px) {
  header .container nav,
  header .container .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #23487B;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1202;
    position: absolute;
    right: 34px;
    top: 16px;
    padding: 0 6px;
    transition: color 0.2s;
  }
  .mobile-menu-toggle:focus,
  .mobile-menu-toggle:hover {
    color: #86B040;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1201;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(.4,0,.2,1);
    box-shadow: 2px 0 44px 0 rgba(34,46,56,0.14);
    padding: 42px 28px 24px 32px;
    overflow-y: auto;
  }
  .mobile-menu.open {
    transform: translateX(0);
  }
  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #23487B;
    align-self: flex-end;
    margin-bottom: 18px;
    cursor: pointer;
    padding: 8px;
    transition: color .2s;
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus {
    color: #86B040;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  .mobile-nav a {
    color: #23487B;
    font-family: 'Georgia', serif;
    font-size: 1.35rem;
    font-weight: 500;
    border-bottom: 1px solid #E7E7EB;
    padding: 8px 0 8px 0;
    transition: color .18s, text-indent .18s;
    text-indent: 0;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    color: #86B040;
    text-indent: 4px;
  }
}

/* ------------- HERO SECTION ------------- */
.hero {
  padding: 0 0 30px 0;
  background: #f5f8f9;
  border-bottom: 1px solid #e7e7eb;
  margin-bottom: 44px;
}
.hero .container {
  padding: 50px 14px 46px 14px;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
}
.hero h1, .hero h2 {
  text-align: center;
}
.hero .cta-button {
  margin-top: 10px;
}

/* ------------- TESTIMONIALS ------------- */
.testimonials {
  background: #fff;
  border-top: 1px solid #e7e7eb;
  padding: 0px 0px 15px 0px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 30px 18px 30px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: #f7faf8;
  box-shadow: 0 1px 10px rgba(34,46,56,0.07);
  border-left: 4px solid #23487B;
  max-width: 600px;
  transition: box-shadow 0.16s, border-color 0.16s;
}
.testimonial-card p {
  color: #23487B;
  font-size: 1.07rem;
  font-family: 'Georgia', serif;
}
.testimonial-card strong {
  color: #86B040;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-top: 2px;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-left: 4px solid #86B040;
  box-shadow: 0 2px 20px 0 rgba(34, 46, 56, .15);
}

/* ------------- FOOTER ------------- */
footer {
  background: #23487B;
  color: #fff;
  padding: 32px 0 0 0;
  border-radius: 20px 20px 0 0;
  margin-top: 46px;
}
footer .container {
  gap: 20px;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
footer nav a {
  color: #fff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color .16s;
}
footer nav a:hover,
footer nav a:focus {
  color: #86B040;
}
.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 28px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-contact img {
  width: 22px;
  margin-right: 7px;
  opacity: 0.8;
  vertical-align: middle;
}
footer p {
  color: #99b9d8;
  font-size: 1em;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-top: 18px;
}

@media (max-width: 600px) {
  footer .container, .footer-contact, footer nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-contact {
    gap: 7px;
    font-size: 0.98rem;
  }
}

/* ------------- BUTTONS & INTERACTIVE ------------- */
button,
input[type="button"],
input[type="submit"] {
  font-family: inherit;
  font-size: inherit;
  border: none;
  border-radius: 8px;
  background: #23487B;
  color: #fff;
  padding: 10px 32px;
  font-weight: 600;
  box-shadow: 0 1px 6px 0 rgba(34,46,56,0.10);
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.19s;
}
button:hover, button:focus {
  background: #86B040;
  color: #fff;
  box-shadow: 0 3px 12px 0 rgba(34,46,56,0.15);
}

/* ------------- RESPONSIVE ------------ */
@media (max-width: 1080px) {
  .features-grid {
    gap: 18px;
  }
  .features-grid > div {
    min-width: 140px;
    flex: 1 1 180px;
  }
}
@media (max-width: 900px) {
  .features-grid {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
    max-width: 100vw;
  }
  .content-wrapper {
    gap: 20px;
  }
  .section {
    margin-bottom: 40px;
    padding: 22px 8px;
  }
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div {
    min-width: 1px;
    width: 100%;
  }
  .testimonials {
    padding: 10px 0px 0 0px;
  }
  .testimonial-card {
    padding: 18px 10px 14px 20px;
  }
  .card-container, .content-grid {
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width:480px) {
  .hero h1, h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .cta-button {
    font-size: 1.01rem;
    padding: 10px 20px;
  }
}

/* ------------- SPACING ----------- */
main > section, .section {
  margin-bottom: 60px;
}
main > section:last-child, .section:last-child {
  margin-bottom: 0;
}

.card-container > .card,
.content-grid > *,
.features-grid > *,
.testimonial-card + .testimonial-card {
  margin-bottom: 20px;
}

.section + .section {
  margin-top: 30px;
}

/* ------------- MISC UTILITIES ----------- */
.nowrap {
  white-space: nowrap;
}
.text-center { text-align: center; }

/* ------------- COOKIE BANNER ------------ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) scale(1);
  background: #fff;
  box-shadow: 0 2px 24px 0 rgba(34,46,56,0.23);
  border-radius: 15px;
  padding: 22px 34px 18px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  z-index: 1300;
  min-width: 280px;
  max-width: 96vw;
  opacity: 1;
  pointer-events: auto;
  transition: transform .32s cubic-bezier(.44, .17, .21, 1.05), opacity .24s;
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(.99) translateY(22px);
}
.cookie-banner p {
  color: #23487B;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  width: 100%;
}
.cookie-banner button,
.cookie-banner .cookie-settings-btn {
  background: #23487B;
  color: #fff;
  border-radius: 8px;
  padding: 9px 26px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  margin: 0;
  transition: background .18s;
}
.cookie-banner button:hover,
.cookie-banner button:focus,
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #86B040;
}
.cookie-banner .cookie-settings-btn {
  background: #fafbfc;
  color: #23487B;
  border: 1px solid #b2c0cc;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #f2ffed;
  color: #86B040;
  border-color: #86B040;
}

@media (max-width:580px) {
  .cookie-banner {
    left: 0;
    bottom: 0;
    border-radius: 0;
    padding: 10px 8px 8px 16px;
    width: 100vw;
    max-width: 100vw;
  }
}

/* ----------- COOKIE MODAL ----------- */
.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 92vw;
  max-width: 460px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 40px 0 rgba(34,46,56,.17);
  padding: 34px 30px 22px 38px;
  z-index: 1400;
  transform: translate(-50%,-50%) scale(1);
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity .23s, transform .35s cubic-bezier(.4,0,.2,1);
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,-44%) scale(.87);
}
.cookie-modal .modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal h2 {
  font-size: 1.34rem;
  color: #23487B;
  font-family: 'Georgia', serif;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  color: #23487B;
  font-size: 1.7rem;
  cursor: pointer;
  padding: 0 9px;
  margin-left: 8px;
  border-radius: 3px;
  transition: color .18s, background .14s;
}
.cookie-modal .modal-close:hover,
.cookie-modal .modal-close:focus {
  color: #86B040;
  background: #f1f5ef;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  color: #23487B;
}
.cookie-modal .cookie-category input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: #23487B;
}
.cookie-modal .cookie-category .essential {
  font-style: italic;
  color: #b2b2b2;
  font-size: .98em;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  width: 100%;
}
.cookie-modal button {
  border-radius: 8px;
  padding: 8px 23px;
  font-size: 1rem;
}
.cookie-modal button.reject {
  background: #fafbfc;
  color: #23487B;
  border: 1px solid #b2c0cc;
}
.cookie-modal button.reject:hover,
.cookie-modal button.reject:focus {
  background: #ffedeb;
  color: #c14033;
  border-color: #c14033;
}
.cookie-modal button.accept {
  background: #86B040;
  color: #fff;
}
.cookie-modal button.accept:hover,
.cookie-modal button.accept:focus {
  background: #23487B;
  color: #fff;
}

@media (max-width: 480px) {
  .cookie-modal {
    padding: 12px 7px 15px 12px;
    max-width: 98vw;
  }
}

/* -------------- FORMATTING ---------------- */
input, select, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
input, textarea {
  border-radius: 5px;
  border: 1.3px solid #d7e1ef;
  padding: 8px 14px;
  background: #fcfcfd;
  transition: border-color 0.17s;
}
input:focus, textarea:focus {
  outline: 0;
  border-color: #23487B;
}

/* -------- Decorative image styles ---------- */
.features-grid img, .features-grid svg {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  opacity: .92;
  transition: opacity .14s;
}
.features-grid > div:hover img, .features-grid > div:hover svg {
  opacity: 1;
}

/* ------ End of CSS ------ */
