/* --- 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, main, 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;
}
/* Set box-sizing border-box everywhere */
*, *:before, *:after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  line-height: 1.7;
  background: #F3F7F9;
  color: #232323;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a {
  color: #24517B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F1A944;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  padding-left: 1.7em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
strong {
  font-weight: bold;
}
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: #24517B;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.18;
}
h1 {
  font-size: 2.75rem;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.125rem;
}
p, ul, ol, li {
  font-family: 'Open Sans', 'Arial', sans-serif;
  color: #232323;
  font-size: 1rem;
}
@media (max-width: 580px) {
  .content-wrapper, .container {
    padding: 0 12px;
  }
  h1 {
    font-size: 1.7rem;
  }
  h2 {
    font-size: 1.25rem;
  }
}

/* --- Header and Nav --- */
header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 14px 0 rgba(36,81,123,0.05);
  border-bottom: 1px solid #F3F7F9;
}
header .container {
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-right: auto;
  margin-left: 40px;
}
.main-nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: #24517B;
  padding: 5px 0 6px 0;
  transition: color 0.18s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: #F1A944; 
  border-bottom: 2px solid #F1A944;
}
header img {
  height: 48px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.1rem;
  font-weight: 700;
  background: #24517B;
  color: #fff;
  border-radius: 24px;
  padding: 12px 32px;
  border: none;
  box-shadow: 0 4px 14px 0 rgba(36,81,123,.07);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.12s;
  cursor: pointer;
  margin-left: 32px;
  letter-spacing: 0.5px;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #F1A944;
  color: #24517B;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px 0 rgba(241,169,68,0.17);
}
button.mobile-menu-toggle {
  font-size: 2rem;
  background: transparent;
  border: none;
  color: #24517B;
  display: none;
  cursor: pointer;
  margin-left: 20px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 7px;
  transition: background 0.15s;
}
button.mobile-menu-toggle:focus {
  background: #F3F7F9;
}
@media (max-width: 980px) {
  .main-nav {
    gap: 14px;
    margin-left: 24px;
  }
  .cta-btn {
    margin-left: 16px;
    padding: 10px 18px;
  }
}
@media (max-width: 780px) {
  .main-nav, .cta-btn {
    display: none;
  }
  button.mobile-menu-toggle {
    display: block;
  }
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 6px 24px rgba(36,81,123,0.13);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.39,.58,.57,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 24px 32px 32px 24px;
  gap: 24px;
  overscroll-behavior: contain;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: #24517B;
  padding: 4px 10px;
  cursor: pointer;
  line-height: 1;
  border-radius: 7px;
  transition: background 0.15s;
}
.mobile-menu-close:focus {
  background: #F3F7F9;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 8px;
}
.mobile-nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.2rem;
  color: #24517B;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #F3F7F9;
  transition: color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F1A944;
}

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

/* --- Section Patterns --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(36,81,123,0.06);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  margin-bottom: 20px;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(36,81,123,0.10);
  transition: box-shadow 0.2s, transform 0.13s;
  min-width: 260px;
  max-width: 360px;
  flex: 1 1 320px;
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 22px 0 rgba(36,81,123,0.16);
  transform: translateY(-2px) scale(1.011);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F3F7F9;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(36,81,123,0.08);
  margin-bottom: 20px;
  min-width: 260px;
  color: #232323;
  font-family: 'Open Sans', 'Arial', sans-serif;
  flex-wrap: wrap;
}
.testimonial-card strong {
  color: #24517B;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 900px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    min-width: 220px;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .section {
    padding: 24px 8px;
    margin-bottom: 40px;
    border-radius: 12px;
  }
  .card-container {
    gap: 12px;
  }
}

/* --- Lists with Icons --- */
ul li img, ol li img {
  height: 24px;
  width: 24px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
ul li:not(:last-child), ol li:not(:last-child) {
  margin-bottom: 10px;
}

/* --- Footer --- */
footer {
  background: #232323;
  color: #fff;
  padding: 40px 0 0 0;
  margin-top: 60px;
}
footer .container {
  padding-bottom: 24px;
}
footer .content-wrapper {
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #F3F7F9;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.03rem;
  opacity: .93;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F1A944;
  border-bottom: 2px solid #F1A944;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  font-size: 0.97rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  filter: grayscale(.2);
  transition: filter 0.17s, box-shadow 0.17s;
  box-shadow: 0 2px 8px 0 rgba(36,81,123,0.13);
  background: #fff;
  padding: 2px;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: grayscale(0) drop-shadow(0 1px 3px #F1A94488);
  box-shadow: 0 4px 12px 0 rgba(241,169,68,0.20);
}
@media (max-width: 768px) {
  footer {
    padding: 28px 0 0 0;
  }
  .footer-nav {
    gap: 10px;
  }
  .footer-contact {
    gap: 13px;
    flex-direction: column;
    font-size: .97rem;
  }
}

/* --- Micro-interactions & Visual Details --- */
.card, .testimonial-card, .section {
  transition: box-shadow 0.2s, transform 0.13s;
}
.card:hover, .section:hover {
  box-shadow: 0 8px 32px 0 rgba(36,81,123,0.14);
  transform: scale(1.011);
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px 0 rgba(36,81,123,0.13);
  transform: scale(1.006);
}
.testimonial-card img[alt="*"] {
  width: 20px;
  height: 20px;
  margin-right: 1px;
  display: inline-block;
}

/* --- Cookie Consent Banner --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  color: #232323;
  padding: 24px 20px 20px 20px;
  box-shadow: 0 -2px 20px 0 rgba(36,81,123,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 10000;
  font-family: 'Open Sans', 'Arial', sans-serif;
  font-size: 1rem;
  transition: transform 0.38s cubic-bezier(.42,.57,.55,1), opacity 0.23s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(60px);
}
.cookie-consent-banner.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cookie-consent-banner .cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-btn, .cookie-btn-accept, .cookie-btn-reject, .cookie-btn-settings {
  padding: 10px 26px;
  border-radius: 20px;
  border: none;
  font-family: 'Montserrat', 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #24517B;
  color: #fff;
  margin: 0 4px;
  transition: background 0.16s, color 0.18s, box-shadow 0.15s, transform 0.10s;
  box-shadow: 0 2px 12px rgba(36,81,123,0.07);
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: #F1A944;
  color: #24517B;
  transform: translateY(-2px) scale(1.02);
}
.cookie-btn-reject {
  background: #eaeaea;
  color: #24517B;
  border: 1px solid #24517B;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #F1A944;
  color: #24517B;
}
.cookie-btn-settings {
  background: transparent;
  color: #24517B;
  border: 1px solid #24517B;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #24517B;
  color: #fff;
}
@media (max-width: 580px) {
  .cookie-consent-banner {
    padding: 18px 6px 18px 6px;
    font-size: .97rem;
  }
  .cookie-btn-group {
    flex-direction: column;
    gap: 8px !important;
  }
}
/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 81, 123, 0.27);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px 0 rgba(36,81,123,0.19);
  max-width: 400px;
  width: 95vw;
  padding: 32px 28px 18px 28px;
  font-family: 'Open Sans', 'Arial', sans-serif;
  color: #232323;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category input[type='checkbox'][disabled] {
  accent-color: #24517B;
  opacity: 0.60;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid #F1A944 !important;
  outline-offset: 1px;
}

/* --- Extra Utilities --- */
.hidden {
  display: none !important;
}

/* --- Ensures min spacing between all cards/sections --- */
.card, .testimonial-card, .section, .content-wrapper > * {
  margin-bottom: 20px;
}
/* Remove last margin in .content-wrapper */
.content-wrapper > *:last-child {
  margin-bottom: 0 !important;
}

/* Prevent unwanted overlap in all flex layouts */
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item, .footer-nav, .footer-contact {
  gap: 20px;
}

@media (max-width: 580px) {
  .content-wrapper {
    gap: 12px!important;
  }
}

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