/* ========= 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, 
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 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  background: linear-gradient(120deg, #e4e9f7 0%, #f0f4f8 100%);
  color: #223A5E;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #223A5E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #A2B0B7;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
ul, ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.15;
  font-weight: 800;
  color: #223A5E;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.05rem;
}
p, dl, dt, dd, cite {
  color: #223A5E;
  font-size: 1rem;
  margin-bottom: 10px;
}
strong, b {
  font-weight: 700;
  color: #223A5E;
}

/* ====== LAYOUT CONTAINERS & FLEX SPACING ====== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(34,58,94,0.07);
  padding: 32px 24px;
  transition: box-shadow 0.25s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 28px rgba(34,58,94,0.16);
}
.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;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F0F4F8;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(34,58,94,0.07);
  transition: box-shadow 0.22s background 0.2s;
}
.testimonial-card:hover {
  background: #e4e9f7;
  box-shadow: 0 6px 16px rgba(34,58,94,0.14);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ====== HEADER & NAVIGATION ====== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(34,58,94,0.05);
  position: sticky;
  z-index: 110;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 74px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #223A5E;
  opacity: 0.94;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background 0.21s, color 0.21s;
}
header nav a:hover, header nav a.active {
  background: #e4e9f7;
  color: #0a1d36;
}

.cta-button {
  background: linear-gradient(90deg,#223A5E 0%, #4D6895 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  margin-left: 24px;
  cursor: pointer;
  transition: background 0.22s, transform 0.18s, box-shadow 0.19s;
  box-shadow: 0 2px 8px rgba(34,58,94,0.07);
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg,#1a3a63 0%, #375378 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(34,58,94,0.15);
}

/* MOBILE MENU BEGIN */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  font-size: 2rem;
  color: #223A5E;
  border: none;
  margin-left: 22px;
  cursor: pointer;
  transition: color 0.14s;
  z-index: 202;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #A2B0B7;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  max-width: 420px;
  background: #fff;
  box-shadow: -4px 0 24px rgba(34,58,94,0.19);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.52,2,.24,1), box-shadow 0.25s;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #223A5E;
  font-size: 2.0rem;
  align-self: flex-end;
  margin: 16px 24px 8px 0;
  cursor: pointer;
  transition: color 0.17s;
  z-index: 210;
}
.mobile-menu-close:focus {
  outline: 2px solid #4D6895;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  padding: 16px 24px 24px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #223A5E;
  font-weight: 600;
  padding: 10px 4px;
  margin-bottom: 4px;
  border-radius: 7px;
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover {
  background: #e4e9f7;
  color: #1a2a42;
}
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Overlay effect for mobile menu */
@media (max-width: 980px) {
  body.mobile-menu-active:after {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 195;
    width: 100vw;
    height: 100vh;
    background: rgba(33, 42, 71, 0.35);
    pointer-events: all;
  }
}

/* ===== HERO & SECTIONS ===== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(162,176,183,0.04);
}
section:nth-child(odd) {
  background: linear-gradient(90deg,#F0F4F8 0%, #e4e9f7 100%);
}
/* Remove double padding on hero */
section:first-of-type {
  margin-top: 14px;
  padding-top: 64px;
  background: linear-gradient(120deg, #d9e2ef 0%, #F0F4F8 90%);
  box-shadow: 0 4px 24px rgba(34,58,94,0.03);
}

/* CTA link if not button */
.text-section a:not(.cta-button) {
  color: #223A5E;
  font-weight: 600;
  border-bottom: 2px solid #A2B0B7;
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.text-section a:not(.cta-button):hover {
  border-color: #223A5E;
  color: #4D6895;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==== FEATURE GRID CARDS ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid > div {
  background: #fff;
  box-shadow: 0 2px 14px rgba(34,58,94,0.07);
  border-radius: 14px;
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 320px;
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  transition: box-shadow 0.17s, transform 0.16s;
  margin-bottom: 0;
}
.feature-grid > div:hover {
  transform: translateY(-4px) scale(1.023);
  box-shadow: 0 8px 22px rgba(34,58,94,0.12);
}
.feature-grid img {
  width: 40px; height: 40px; margin-bottom: 10px;
}

/* ====== TESTIMONIALS ====== */
.testimonial-card p {
  font-size: 1.15rem;
  color: #223A5E;
}
.testimonial-card cite {
  display: block;
  font-style: normal;
  font-size: 1rem;
  color: #223A5E;
  opacity: 0.76;
  margin-top: 6px;
}

/* ====== FOOTER ======= */
footer {
  background: #223A5E;
  color: #fff;
  padding: 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 14px 12px 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.94;
  transition: color 0.2s, opacity 0.14s;
  padding: 4px;
  border-radius: 3px;
}
footer nav a:hover {
  color: #A2B0B7;
  background: rgba(240,244,248,0.13);
  opacity: 1;
}
footer img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
}
footer p {
  color: #fff;
  opacity: 0.93;
  font-size: 0.99rem;
  margin-bottom: 8px;
}
footer a {
  color: #F0F4F8;
  text-decoration: underline;
  opacity: 0.88;
  transition: color 0.2s;
}
footer a:hover {
  color: #A2B0B7;
}

@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  .content-wrapper, .text-section {
    gap: 18px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    padding: 30px 8px 9px 8px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  section {
    margin-bottom: 38px;
    padding: 22px 5vw;
  }
  h1 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }
  h3 {
    font-size: 1.1rem;
    margin-bottom: 7px;
  }
}
/* == Responsive spacing/cards == */
@media (max-width: 570px) {
  section {
    border-radius: 0;
    padding: 12px 0;
    margin-bottom: 26px;
  }
  .feature-grid > div {
    padding: 16px 11px 12px 11px;
  }
}

/* ====== MODAL/BANNER: COOKIE CONSENT STYLES ====== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: #223A5E;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 16px 18px 16px 18px;
  z-index: 502;
  box-shadow: 0 -2px 24px rgba(34,58,94,0.09);
  animation: fadeup-in 0.5s cubic-bezier(.6,2,.24,1);
}
@keyframes fadeup-in {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: none; }
}
.cookie-banner p {
  color: #fff;
  font-size: 1rem;
  margin: 0;
  flex: 2;
}
.cookie-banner .cookie-btn {
  background: #fff;
  color: #223A5E;
  border: none;
  border-radius: 6px;
  padding: 7px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin: 0 6px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(162,176,183,0.08);
  transition: background 0.17s, color 0.17s;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: transparent;
  color: #fff;
  border: 2px solid #A2B0B7;
  font-weight: 600;
  padding: 7px 17px;
  margin-left: 0;
  transition: border-color 0.18s, color 0.16s;
}
.cookie-banner .cookie-btn:hover {
  background: #A2B0B7;
  color: #223A5E;
}
.cookie-banner .cookie-btn.cookie-settings:hover {
  border-color: #fff;
  color: #fff;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 10px 16px 10px;
  }
  .cookie-banner p {
    margin-bottom: 7px;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,58,94,0.42);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.45s cubic-bezier(.4,2,.24,1);
}
.cookie-modal.active {
  display: flex;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  color: #223A5E;
  min-width: 300px;
  max-width: 96vw;
  border-radius: 20px;
  box-shadow: 0 6px 34px rgba(34,58,94,0.16);
  padding: 38px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: popin 0.44s cubic-bezier(.6,2,.18,1);
}
@keyframes popin {
  from { transform: translateY(80px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.35rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #223A5E;
  width: 18px;
  height: 18px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal .cookie-close-btn {
  background: none;
  color: #A2B0B7;
  border: none;
  font-size: 1.4rem;
  position: absolute;
  top: 12px; right: 18px;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal .cookie-close-btn:hover {
  color: #223A5E;
}

/* ========= FORMS & INTERACTIVE ======= */
input, select, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  border: 1.5px solid #A2B0B7;
  border-radius: 7px;
  padding: 10px 14px;
  background: #fff;
  transition: border 0.17s, box-shadow 0.13s;
  box-shadow: 0 1px 5px rgba(34,58,94,0.03);
}
input:focus, textarea:focus, select:focus {
  border-color: #223A5E;
  outline: none;
  box-shadow: 0 2px 10px rgba(34,58,94,0.07);
}
button {
  font-family: inherit;
  font-size: 1rem;
}

/* ====== LISTS IN SECTIONS ===== */
.text-section ul, .text-section ol, .text-section dl {
  margin-bottom: 18px;
  margin-top: 8px;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 6px;
  margin-left: 4px;
}
.text-section ul li strong, .text-section ol li strong {
  color: #223A5E;
  font-weight: 700;
}
.text-section dt {
  font-weight: 600;
  margin-top: 8px;
}
.text-section dd {
  margin-left: 20px;
  margin-bottom: 6px;
}

/* ========= TYPOGRAPHY HIERARCHY ========= */
@media (min-width: 1000px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  h3 {
    font-size: 1.45rem;
  }
  p, li, cite, dt, dd {
    font-size: 1.1rem;
  }
}

/* ========== UTILITIES: FLEX & SPACING CLASS ========== */
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-col { display: flex; flex-direction: column; }

/* ========== Z-INDEX SAFETY ========== */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 100; }

/* ========== MISC ========== */
::-webkit-scrollbar {
  width: 11px;
  background: #F0F4F8;
}
::-webkit-scrollbar-thumb {
  background: #A2B0B7;
  border-radius: 6px;
}

::selection {
  background: #e4e9f7;
}

/* ========== PRINT Styles ========== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body, section, .container {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    color: #000 !important;
  }
}
