/* CSS RESET AND BASE STYLES */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #22313c;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #265D7F;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #3F784C;
  outline: none;
}
ul { list-style: none; }
strong { font-weight: 700; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHY SCALE */
h1 {
  font-family: 'Roboto Slab', serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: #22313c;
}
h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: #22313c;
}
h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #22313c;
}
h4 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #22313c;
}
p, li {
  font-size: 1rem;
  color: #38434f;
}
.subheadline {
  font-size: 1.2rem;
  color: #265D7F;
  margin-bottom: 25px;
  font-weight: 400;
}


/* HEADER & NAV */
header {
  background: #fff;
  border-bottom: 1px solid #EBF4F8;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo img {
  height: 48px;
  transition: filter .18s;
}
.logo:hover img {
  filter: brightness(.9) drop-shadow(0 2px 8px rgba(38,93,127,0.07));
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  padding: 5px 8px;
  font-size: 1rem;
  font-weight: 400;
  color: #22313c;
  border-radius: 6px;
  transition: background .18s, color .18s;
}
.main-nav a.cta, .main-nav a.cta.primary {
  background: #265D7F;
  color: #fff;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 32px;
  font-size: 1rem;
  box-shadow: 0 1px 6px rgba(38,93,127,0.07);
  transition: background .19s, box-shadow .19s;
}
.main-nav a.cta:hover, .main-nav a.cta.primary:hover {
  background: #3F784C;
  color: #fff;
  box-shadow: 0 2px 10px rgba(63, 120, 76, 0.14);
}
.main-nav a:hover {
  background: #EBF4F8;
  color: #265D7F;
}

/* Hide hamburger on desktop */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #265D7F;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 24px;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background .15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #EBF4F8;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(34,49,60,0.18);
  z-index: 120;
  display: none;
  transition: background .18s;
  flex-direction: column;
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu > nav,
.mobile-menu .mobile-nav {
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 8px 32px rgba(38,93,127,0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 30px 40px 30px;
  margin-top: 90px;
  max-width: 350px;
  margin-left: auto;
  min-height: calc(100vh - 90px);
}
.mobile-menu-close {
  position: absolute;
  top: 26px;
  right: 28px;
  background: #EBF4F8;
  border: none;
  color: #265D7F;
  font-size: 2.1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  z-index: 5;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #d5ebf7;
  color: #3F784C;
}
.mobile-nav a {
  color: #22313c;
  font-size: 1.1rem;
  padding: 12px 0 12px 10px;
  border-radius: 7px;
  transition: background .16s, color .16s;
  font-weight: 400;
  min-width: 180px;
  display: block;
}
.mobile-nav a.cta {
  margin-top: 8px;
  background: #265D7F;
  color: #fff;
  font-weight: 600;
  padding: 10px 0 10px 0;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(38,93,127,0.07);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EBF4F8;
  color: #265D7F;
}
.mobile-nav a.cta:hover {
  background: #3F784C;
  color: #fff;
}


/* MAIN SECTIONS & FLEXBOX LAYOUTS */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero-section {
  background: #EBF4F8;
  box-shadow: 0 3px 20px rgba(38,93,127,0.04);
  border-radius: 0 0 36px 36px;
  min-height: 320px;
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-section .container, .hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 240px;
}
.features-section {
  background: #fff;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.grid-4, .features-section .content-wrapper.grid-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(38,93,127,0.04);
  padding: 30px 24px 28px 24px;
  min-width: 250px;
  flex: 1 1 230px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow .18s, transform .14s;
}
.feature:hover {
  box-shadow: 0 8px 30px rgba(63,120,76,0.12);
  transform: translateY(-2px) scale(1.03);
}
.feature .icon {
  font-size: 2rem;
  margin-bottom: 0;
}
.feature h3 a {
  color: #265D7F;
  font-weight: 500;
}
.feature h3 a:hover {
  color: #3F784C;
  text-decoration: underline;
}

.about-short-section, .cta-section {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(38,93,127,0.05);
  margin-bottom: 60px;
}
.cta-section .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 16px;
}
.cta {
  background: #3F784C;
  color: #fff!important;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 32px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(63,120,76,0.09);
  transition: background .2s, transform .13s, box-shadow .18s;
}
.cta.primary {
  background: #265D7F;
}
.cta:hover, .cta:focus {
  background: #265D7F;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 2px 18px rgba(38,93,127,0.15);
  outline: none;
}

/* FLEXBOX PATTERNS FOR LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(38,93,127,0.05);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  transition: box-shadow .16s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(63,120,76,0.14);
}
.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;
}
/* Testimonials and reviews */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(38,93,127,0.07);
  margin-bottom: 20px;
  color: #22313c;
}
.testimonial-card .testimonial-text {
  font-size: 1.1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ALERTS/MESSAGES */
.alert {
  padding: 14px 23px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 1rem;
  background: #EBF4F8;
  color: #22313c;
  border-left: 4px solid #265D7F;
}
.alert-info {
  background: #EBF4F8;
  border-left: 4px solid #3F784C;
  color: #265D7F;
}

/******** FOOTER ******/
footer {
  background: #fafdfe;
  border-top: 1px solid #EBF4F8;
  padding: 60px 0 40px 0;
  margin-top: 60px;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 180px;
  max-width: 260px;
}
.footer-branding img {
  width: 46px;
  height: 46px;
}
.tagline {
  color: #265D7F;
  font-size: 1rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 170px;
}
.footer-menu a {
  color: #38434f;
  padding: 2px 0;
  margin-right: 0;
  transition: color .13s;
}
.footer-menu a:hover {
  color: #265D7F;
}
.footer-contact {
  line-height: 1.7;
  min-width: 200px;
  max-width: 320px;
}
.footer-contact a {
  color: #265D7F;
  font-weight: 500;
  margin-bottom: 2px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.footer-contact img { height: 18px; width: 18px; display: inline; margin-right: 4px; }
.footer-social {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 90px;
}
.footer-social a img { height: 26px; width: 26px; }
.footer-social a:hover img { filter: brightness(.8); }
.newsletter-signup {
  min-width: 230px;
  max-width: 280px;
}
.newsletter-signup h4 {
  margin-bottom: 7px;
  font-size: 1.05rem;
  color: #265D7F;
}
.newsletter-signup p {
  font-size: 0.99rem;
  color: #38434f;
}

/* FAQ SECTION */
.faq-simple h3 {
  margin-top: 14px;
  font-size: 1.15rem;
  color: #265D7F;
}
.faq-simple p {
  margin-bottom: 10px;
}

/* CONTACT */
.contact-info {
  margin-bottom: 16px;
  line-height: 1.8;
}
.contact-info a { color: #265D7F; font-weight: 500; }

/* COOKIES BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 24px rgba(34,49,60,0.10);
  border-top: 2px solid #EBF4F8;
  z-index: 2000;
  padding: 30px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 110px;
  animation: cookies-slidein .5s cubic-bezier(.22,.68,.45,1.38);
  font-size: 1rem;
}
@keyframes cookies-slidein {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  color: #22313c;
  text-align: center;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
}
.cookie-banner__btn {
  padding: 9px 24px;
  border-radius: 24px;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background .18s, color .18s;
}
.cookie-banner__btn.accept {
  background: #3F784C;
  color: #fff;
}
.cookie-banner__btn.accept:hover, .cookie-banner__btn.accept:focus {
  background: #265D7F;
}
.cookie-banner__btn.reject {
  background: #EBF4F8;
  color: #22313c;
}
.cookie-banner__btn.reject:hover, .cookie-banner__btn.reject:focus {
  background: #dcebea;
  color: #3F784C;
}
.cookie-banner__btn.settings {
  background: transparent;
  color: #265D7F;
  text-decoration: underline;
}
.cookie-banner__btn.settings:hover, .cookie-banner__btn.settings:focus {
  color: #3F784C;
}

/* COOKIES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,49,60,.22);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 44px rgba(38,93,127,0.15);
  padding: 32px 30px 24px 30px;
  max-width: 400px;
  width: 96%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-pop .4s cubic-bezier(.6,0,.66,1.46);
}
@keyframes modal-pop {
  from { transform: scale(.87); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  color: #265D7F;
  margin-bottom: 5px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.cookie-modal .cookie-category input[type=checkbox]:disabled {
  accent-color: #d2d9e3;
  cursor: not-allowed;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: #22313c;
}
.cookie-modal .cookie-category span {
  color: #265D7F;
  font-size: 1.02rem;
  margin-left: 5px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 15px;
}
.cookie-modal__btn {
  padding: 9px 23px;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.cookie-modal__btn.save {
  background: #265D7F;
  color: #fff;
}
.cookie-modal__btn.save:hover {
  background: #3F784C;
}
.cookie-modal__btn.cancel {
  background: #EBF4F8;
  color: #22313c;
}
.cookie-modal__btn.cancel:hover {
  background: #dcebea;
  color: #3F784C;
}


/* SPACING & LAYOUT RESPONSIVENESS */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.grid-4,
.features-section .content-wrapper.grid-4,
.content-grid {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.testimonial-card {
  margin-bottom: 20px;
}
.feature-item {
  gap: 15px;
  margin-bottom: 15px;
}
.text-image-section {
  gap: 30px;
}

/* GENERIC BUTTONS AND INTERACTIONS */
button {
  font-family: inherit;
  font-size: inherit;
}
button:focus { outline: 2px solid #265D7F; outline-offset: 1px; }

/* MICRO-INTERACTIONS */
.cta, .btn, .main-nav a.cta, .mobile-nav a.cta, .cookie-banner__btn, .cookie-modal__btn {
  transition: background .17s, color .17s, transform .13s, box-shadow .13s;
}

/* SELECTION */
::selection {
  background: #265D7F;
  color: #fff;
}

/****** RESPONSIVE *******/
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
  }
  .footer-menu, .footer-contact, .newsletter-signup {
    min-width: 150px;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .footer-branding, .footer-menu, .footer-contact, .newsletter-signup, .footer-social {
    min-width: 90px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
    max-width: 100vw;
  }
  header .container {
    padding: 0 9px;
    height: 66px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .hero-section {
    padding: 32px 0 34px 0;
    min-height: 180px;
    border-radius: 0 0 18px 18px;
  }
  .section, section {
    padding: 32px 8px;
    margin-bottom: 45px;
    border-radius: 0;
  }
  .features-section .content-wrapper.grid-4, .grid-4 {
    flex-direction: column;
    gap: 18px;
  }
  .footer-branding img {
    width: 38px; height: 38px;
  }
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .content-wrapper, .card-container, .content-grid {
    flex-direction: column !important;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 16px;
    align-items: flex-start;
  }
  .card, .feature {
    min-width: 0;
    max-width: 100%;
    padding: 20px 15px;
    font-size: 0.98rem;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px 10px;
  }
  .newsletter-signup {
    min-width: 0;
    max-width: 100%;
  }
  .footer-menu,
  .footer-contact {
    min-width: unset;
    font-size: 0.99rem;
  }
}
@media (max-width: 430px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .hero-section {
    padding-top: 17px;
    padding-bottom: 24px;
  }
}
