/* --- CSS Reset & Normalize (simple for cross-browser) --- */
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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F5F2EE;
  color: #222d38;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #21436E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #163059;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #21436E;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
h1 { font-size: 2.3rem; line-height: 1.18; margin-bottom: 22px; }
h2 { font-size: 1.7rem; line-height: 1.22; margin-bottom: 20px; }
h3 { font-size: 1.22rem; margin-bottom: 8px; }
p, .text-section p, .contact-info p {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #314252;
}

strong, b {
  font-weight: 600;
}

.text-section ul {
  list-style: disc inside;
  margin-bottom: 18px;
  color: #23425E;
}
.text-section li {
  margin-left: 20px;
  margin-bottom: 8px;
}

/* --- General Layout --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 22px;
  background: #fff;
}

/* --- Header & Navigation --- */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(33,67,110,0.05);
  position: sticky;
  top:0; left:0; right:0;
  z-index: 1002;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
header nav > a > img {
  height: 44px;
  margin-right: 28px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
header nav ul li {
  list-style: none;
}
header nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #21436E;
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px 6px 10px;
  position: relative;
  border-radius: 5px;
  transition: background 0.13s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: #B6C8DE;
  color: #163059;
}
.button.primary {
  background: #21436E;
  color: #fff;
  padding: 11px 28px;
  border-radius: 28px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 24px;
  letter-spacing: 0.4px;
  transition: background 0.17s, box-shadow 0.17s;
  box-shadow: 0 2px 12px 0 rgba(33,67,110,0.08);
}
.button.primary:hover, .button.primary:focus {
  background: #163059;
  box-shadow: 0 4px 18px 0 rgba(33,67,110,0.18);
}
.button.secondary {
  background: #B6C8DE;
  color: #21436E;
  padding: 11px 26px;
  border-radius: 28px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
  box-shadow: 0 2px 12px 0 rgba(182,200,222,0.12);
}
.button.secondary:hover, .button.secondary:focus {
  background: #21436E;
  color: #fff;
  box-shadow: 0 4px 15px 0 rgba(33,67,110,0.18);
}

.button {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  outline: none;
}

/* --- Hamburger / Mobile Navigation --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #21436E;
  font-size: 2.2rem;
  padding: 8px 12px;
  margin-left: 12px;
  border-radius: 6px;
  transition: background 0.2s;
  cursor: pointer;
  z-index: 1101;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #B6C8DE;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  background: rgba(33,67,110,0.93);
  transition: transform 0.38s cubic-bezier(.4,1,.3,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  transform: translateX(100%);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  margin: 24px 24px 12px 0;
  cursor: pointer;
  align-self: flex-end;
  z-index: 1102;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #B6C8DE;
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-top: 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 500;
  padding: 20px 32px;
  width: 100%;
  border-bottom: 1px solid rgba(182,200,222,0.13);
  transition: background 0.18s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #B6C8DE;
  color: #21436E;
}
@media (max-width: 1024px) {
  header nav ul {
    gap: 12px;
  }
  .button.primary {
    margin-left: 10px;
  }
}
@media (max-width: 860px) {
  header nav ul, header nav .button.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* --- Main Sections --- */
.hero {
  background: #B6C8DE;
  padding: 76px 0 48px 0;
  margin-bottom: 0;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 4px 32px 0 rgba(33,67,110,0.09);
}
.hero .container { max-width: 900px; }
.hero h1, .hero h2, .hero p {
  color: #21436E;
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 16px;
}
.hero p {
  color: #28425E;
  font-size: 1.20rem;
  margin-bottom: 22px;
}

.features, .services, .testimonials, .cta, .about, .contact, .legal {
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .container, .testimonials .container, .services .container, .cta .container, .about .container, .contact .container, .legal .container {
  max-width: 900px;
}
.content-wrapper {
  padding: 0;
}

/* --- Feature / Service Lists --- */
.features ul, .services ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}
.features ul li, .services ul li {
  display: flex;
  align-items: center;
  font-size: 1.07rem;
  color: #23425E;
  background: #F5F2EE;
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 7px;
}
.features ul li img, .services ul li img {
  width: 28px;
  height: 28px;
  margin-right: 14px;
}

.services ul span {
  color: #21436E;
  font-weight: 600;
  margin-left: 9px;
}

/* --- Testimonial Section --- */
.testimonials {
  background: #F5F2EE;
  padding-top: 40px;
  padding-bottom: 40px;
  border-radius: 22px;
}
.testimonials h2 {
  color: #21436E;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  padding: 20px 32px 18px 28px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px 0 rgba(33,67,110,0.11);
  gap: 10px;
  transition: box-shadow 0.16s, transform 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(33,67,110,0.17);
  transform: translateY(-2px) scale(1.018);
}
.testimonial-card p {
  color: #28425E;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 5px;
  line-height: 1.34;
}
.testimonial-card span {
  color: #21436E;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

/* --- Call to Action Section --- */
.cta {
  background: #21436E;
  color: #fff;
  padding: 48px 0;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 2px 9px 0 rgba(33,67,110,0.10);
}
.cta .content-wrapper {
  align-items: center;
}
.cta h2, .cta p {
  color: #fff;
}
.cta a.button.primary, .cta a.button.secondary {
  margin-top: 24px;
  margin-bottom: 0;
}
.cta a.button.secondary {
  background: #B6C8DE;
  color: #21436E;
}
.cta a.button.secondary:hover {
  background: #fff;
  color: #21436E;
}
/* --- Table Styling --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(182,200,222,0.12);
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
thead {
  background: #B6C8DE;
  color: #21436E;
}
th, td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid #e1e7ee;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  background: #B6C8DE;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:nth-child(even) {
  background: #F5F2EE;
}
td:last-child {
  font-weight: 600;
  color: #21436E;
}

/* --- Footer --- */
footer {
  background: #21436E;
  color: #fff;
  padding: 40px 0 20px 0;
  margin-top: 2rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}
.footer-content nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-content nav a {
  color: #B6C8DE;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: color 0.18s;
}
.footer-content nav a:hover, .footer-content nav a:focus {
  color: #fff;
}
.footer-content img {
  height: 38px;
}
.contact-info {
  color: #E9E8E7;
  font-size: 0.96rem;
  font-family: 'Open Sans', Arial, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 0;
}
.contact-info a {
  color: #B6C8DE;
  text-decoration: underline;
  transition: color 0.16s;
}
.contact-info a:hover, .contact-info a:focus {
  color: #fff;
}

/* --- Legal/Policy Page Styling --- */
.legal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(33,67,110,0.08);
  padding: 40px 15px 40px 15px;
  margin-bottom: 60px;
}
.legal h1, .legal h2, .legal h3 { color: #21436E; }

/* --- Cookie Consent Banner --- */
.cookie-consent {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #21436E;
  color: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  padding: 28px 12px 18px 12px;
  box-shadow: 0 -4px 18px 0 rgba(33,67,110,0.17);
  transition: transform 0.35s, opacity 0.35s;
}
.cookie-consent.hide {
  transform: translateY(180%);
  opacity: 0;
  pointer-events: none;
}
.cookie-consent__text {
  max-width: 680px;
  font-size: 1.02rem;
  color: #fff;
  margin-bottom: 0;
}
.cookie-consent__actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.cookie-consent__button {
  padding: 9px 24px;
  border-radius: 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-left: 0;
  transition: background 0.16s, color .16s, box-shadow 0.17s;
  outline: none;
}
.cookie-consent__button.accept {
  background: #B6C8DE;
  color: #21436E;
}
.cookie-consent__button.accept:hover, .cookie-consent__button.accept:focus {
  background: #fff;
  color: #21436E;
  box-shadow: 0 2px 9px 0 rgba(33,67,110,0.06);
}
.cookie-consent__button.settings {
  background: #fff;
  color: #21436E;
  border: 1px solid #B6C8DE;
}
.cookie-consent__button.settings:hover, .cookie-consent__button.settings:focus {
  background: #B6C8DE;
  color: #21436E;
}
.cookie-consent__button.reject {
  background: #21436E;
  color: #fff;
  border: 1px solid #B6C8DE;
}
.cookie-consent__button.reject:hover, .cookie-consent__button.reject:focus {
  background: #B6C8DE;
  color: #21436E;
}

/* --- Cookie Preference Modal --- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  min-width: 325px;
  max-width: 98vw;
  width: 420px;
  padding: 38px 28px 28px 28px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 52px 0 rgba(33,67,110,0.20);
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 1250;
  transition: opacity .37s cubic-bezier(.4,1,.7,1), transform .37s cubic-bezier(.4,1,.7,1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.95);
}
.cookie-modal h2 {
  font-size: 1.28rem;
  color: #21436E;
  margin-bottom: 4px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 0;
  font-size: 1rem;
  color: #21436E;
}
.cookie-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.98rem;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #B6C8DE;
  border-radius: 13px;
  position: relative;
  outline: none;
  transition: background .15s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #21436E;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s;
}
.cookie-toggle:checked:before {
  left: 19px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #21436E;
  font-size: 1.8rem;
  position: absolute;
  top: 15px;
  right: 18px;
  cursor: pointer;
  z-index: 2;
}
.cookie-modal-close:hover {
  color: #B6C8DE;
}

/* --- Utilities & Flex Patterns --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(33,67,110,0.09);
  margin-bottom: 20px;
  padding: 30px 26px;
  position: relative;
  transition: box-shadow 0.17s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 34px 0 rgba(33,67,110,0.12);
  transform: translateY(-2px) scale(1.012);
}
.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;
}
/* For section spacing: use .section class logic where possible */

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .footer-content {
    gap: 18px;
  }
  .container, .footer-content {
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 97vw;
  }
  .footer-content {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .section, .features, .services, .testimonials, .cta, .about, .contact, .legal {
    padding: 24px 0;
    margin-bottom: 38px;
  }
  .hero {
    padding: 42px 0 23px 0;
    border-radius: 0 0 24px 24px;
  }
  .content-wrapper, .container {
    padding: 0 6px;
  }
  .testimonial-card {
    padding: 14px 12px;
  }
  .cookie-modal {
    min-width: unset;
    width: 97vw;
    max-width: 440px;
    padding: 24px 10px;
  }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.55rem; }
  .hero, .hero .container { padding: 18px 0 8px 0; }
  .features ul li, .services ul li {
    padding: 9px 8px;
    font-size: 0.98rem;
  }
  .footer-content img {
    height: 28px;
  }
  .footer-content {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
  .card {
    padding: 14px 9px;
  }
  .cookie-consent {
    flex-direction: column;
    padding: 19px 6px 11px 6px;
    align-items: flex-start;
    gap: 12px;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
}

/* --- Microinteractions/Transitions --- */
.button, .button.primary, .button.secondary, .mobile-menu-toggle, .mobile-nav a, .cookie-consent__button {
  transition: background 0.14s, color 0.15s, box-shadow 0.16s, border 0.20s, transform 0.16s;
}
.card, .testimonial-card {
  transition: box-shadow 0.16s, transform 0.16s;
}

::-webkit-selection { background: #B6C8DE; color: #21436E; }
::selection { background: #B6C8DE; color: #21436E; }

/* --- Misc minor adjustments for visual refinement --- */
.section:last-child, .features:last-child, .cta:last-child {
  margin-bottom: 0;
}
.content-wrapper h2 + ul { margin-top: 4px; }
.testimonials .testimonial-card:last-child { margin-bottom: 0; }

/* --- ACCESSIBILITY: Focus outlines for all interactive elements --- */
a:focus, button:focus, .button:focus, .cookie-consent__button:focus, .mobile-menu-close:focus {
  outline: 2px solid #B6C8DE;
  outline-offset: 1.5px;
}

/* --- Hide visually, not from screen readers --- */
.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 10px; background: #F5F2EE; }
::-webkit-scrollbar-thumb { background: #B6C8DE; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #21436E; }
