/* ==================
   CSS RESET & NORMALIZE
   ==================== */
html { box-sizing: border-box; } *, *::before, *::after { box-sizing: inherit; }
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;
  background: none;
}
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; border: 0; }
button { background: none; border: none; cursor: pointer; font: inherit; }
:focus { outline: 2px solid #205072; outline-offset: 2px; }

/* ===============
   BRAND VARIABLES & FONTS
   =============== */
:root {
  --color-primary: #1C4360;
  --color-primary-hover: #205072;
  --color-bg: #FFFFFF;
  --color-bg-alt: #EFF2F6;
  --color-accent: #F2A950;
  --color-accent-hover: #dc9000;
  --color-body: #2B3540;
  --color-light-gray: #E6E9EF;
  --color-border: #E2E2E2;
  --shadow-subtle: 0 2px 8px rgba(32, 80, 114, 0.06);
  --radius: 12px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===================
   TYPOGRAPHY
   =================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--color-primary);
}
h1 { font-size: 2.25rem; margin-bottom: 24px; line-height: 1.15; }
h2 { font-size: 1.6rem; margin-bottom: 18px; line-height: 1.15; }
h3 { font-size: 1.2rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1rem; margin-bottom: 10px; font-weight: 500; }
p, ul, ol { margin-bottom: 18px; font-size: 1rem; line-height: 1.7; }
strong { font-weight: 600; color: var(--color-body); }
em { font-style: italic; color: var(--color-primary); }

ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1em;
}

.text-section {
  max-width: 730px;
}

/* ================
   MAIN PAGE CONTAINERS
   ================ */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  background: var(--color-bg);
}

/* ===============
   SECTIONS
   =============== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ===============
   HEADER
   =============== */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 12px rgba(32, 80, 114, 0.06);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
header a img {
  height: 38px;
  width: auto;
  margin-right: 18px;
}

header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--color-primary);
  transition: background 0.18s;
  position: relative;
}
header nav a.cta-primary {
  background: var(--color-primary);
  color: #FFF !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(32, 80, 114, 0.10);
  transition: background 0.17s, box-shadow 0.17s;
}
header nav a.cta-primary:hover,
header nav a.cta-primary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 4px 20px 0 rgba(32,80,114,.11);
}
header nav a:hover,
header nav a:focus:not(.cta-primary) {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

header .mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--color-primary);
  background: none;
  border: none;
  line-height: 1;
  margin-left: 18px;
  border-radius: 6px;
  padding: 7px 13px;
  transition: background 0.13s;
}
header .mobile-menu-toggle:hover,
header .mobile-menu-toggle:focus {
  background: var(--color-bg-alt);
}

/* ===============
   MOBILE MENU
   =============== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 4px 28px rgba(32, 80, 114, 0.13);
  z-index: 999;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.5,.04,.29,1.11);
  display: flex;
  flex-direction: column;
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
  /* smooth fadeIn-onOpen */
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  padding: 24px 28px 0 0;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 2002;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-left: 28px;
}
.mobile-nav a {
  padding: 10px 6px 10px 0;
  font-size: 1.17rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  border-radius: 7px;
  min-width: 52vw;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

/* Hide navigation and show burger on mobile */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===============
   HERO / PAGE HEADERS
   =============== */
.content-wrapper h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.content-wrapper > p {
  margin-bottom: 28px;
}

/* ===============
   BUTTONS & LINKS
   =============== */
.cta-primary,
button.cta-primary,
button.primary {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(32, 80, 114, 0.08);
  cursor: pointer;
  transition: background 0.23s, color 0.15s, box-shadow 0.15s;
  margin-top: 14px;
  display: inline-block;
}
.cta-primary:hover,
.cta-primary:focus,
button.cta-primary:hover,
button.cta-primary:focus,
button.primary:hover,
button.primary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 5px 22px 0 rgba(32,80,114,0.13);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: var(--color-accent);
}

/* ===============
   FLEXBOX PATTERNS (MANDATORY)
   =============== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg);
  box-shadow: var(--shadow-subtle);
  border-radius: var(--radius);
  margin-bottom: 20px;
  position: relative;
  padding: 20px;
  flex: 1 1 230px;
  min-width: 240px;
  max-width: 360px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 6px 26px 0 rgba(32,80,114,0.15);
  z-index: 2;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-bg-alt);
  color: var(--color-body);
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  max-width: 680px;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  flex: 1;
  font-size: 1.05rem;
  font-style: italic;
  color: #25344d;
}
.testimonial-card span {
  min-width: 125px;
  font-size: 0.99em;
  color: var(--color-primary);
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px 0 rgba(32,80,114,0.19);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive feature grid for index & other pages */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 340px;
  background: var(--color-bg-alt);
  padding: 24px 18px 20px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.feature-grid > div img {
  height: 42px; width: 42px; margin-bottom: 10px; }
.feature-grid > div:hover,
.feature-grid > div:focus-within {
  box-shadow: 0 6px 24px 0 rgba(32,80,114,0.10);
  transform: translateY(-2px) scale(1.018);
}

/* ===============
   CONTACT / ICON LIST
   =============== */
.content-wrapper ul li img {
  height: 22px;
  width: 22px;
  margin-right: 7px;
  margin-bottom: -5px;
  vertical-align: middle;
}

/* ===============
   FOOTER
   =============== */
footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 28px 0 22px 0;
  color: #6a737e;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 0.97rem;
  font-family: var(--font-display);
  opacity: 0.94;
  padding: 4px 8px;
  transition: color 0.13s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-accent);
}
footer p {
  font-size: 0.97rem;
  color: #6a737e;
}

/* ===============
   COOKIE CONSENT BANNER
   =============== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--color-bg);
  box-shadow: 0 -2px 18px 0 rgba(32,80,114,0.11);
  border-top: 1px solid var(--color-border);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.21s, transform 0.23s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner p {
  margin: 0;
  color: var(--color-primary);
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.99rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 8px;
  border: none;
  transition: background 0.18s, color 0.13s, box-shadow 0.12s;
  margin: 0 0;
  min-width: 48px;
  cursor: pointer;
}
.cookie-btn:hover,
.cookie-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}
.cookie-btn.settings:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  z-index: 3000;
  background: rgba(32,80,114, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.2s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 38px 0 rgba(32,80,114,0.14);
  padding: 40px 34px 32px 34px;
  max-width: 400px;
  width: 95%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.cookie-modal-content h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.cookie-modal-content .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-modal-content label {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-primary);
}
.cookie-modal-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  margin-right: 6px;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal-content .cookie-btn {
  min-width: 100px;
}

/* ===============
   MEDIA QUERIES - MOBILE FIRST RESP.
   =============== */
@media (max-width: 1024px) {
  .container { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 900px) {
  .content-grid,
  .feature-grid {
    gap: 18px;
  }
  .feature-grid > div { min-width: 180px; max-width: 320px; }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }
  h2 {
    font-size: 1.18rem;
    margin-bottom: 12px;
  }
  .section, section { padding: 28px 0; }
  .testimonial-card { padding: 17px; font-size: 0.97em; }
  .feature-grid { gap: 14px; }
  .feature-grid > div { min-width: 65vw; max-width: 100vw; }
  .card-container, .content-grid {
    flex-direction: column !important;
    gap: 18px;
  }
  footer .container {
    gap: 5px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 10px 18px 12px;
    font-size: 0.99rem;
  }
  .cookie-modal-content {
    padding: 22px 10px 16px 10px;
    max-width: 94vw;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  .container { padding-left: 7px; padding-right: 7px; }
  .feature-grid > div,
  .card,
  .testimonial-card {
    min-width: 95vw;
    max-width: 95vw;
  }
}

/* ===============
   MICRO-INTERACTIONS
   =============== */
.card, .feature-grid > div, .testimonial-card, .cookie-modal-content {
  transition: box-shadow 0.17s, transform 0.16s;
}
.card:hover, .feature-grid > div:hover, .testimonial-card:hover {
  box-shadow: 0 10px 36px 0 rgba(32,80,114,0.15);
  transform: translateY(-2px) scale(1.012);
}

/* ===============
   UTILITY CLASSES
   =============== */
.mb-20 { margin-bottom: 20px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mt-40 { margin-top: 40px !important; }

/* Allow custom card styles for testimonials, etc. */

/* ===============
   A11Y IMPROVEMENTS
   =============== */
@media (prefers-reduced-motion: reduce) {
  .card, .feature-grid > div, .testimonial-card, .cookie-modal-content, .mobile-menu {
    transition: none !important;
  }
}

/* ===============
   COLORS & ACCENTS (MINIMAL)
   =============== */
.bg-primary { background: var(--color-primary) !important; color: #fff !important; }
.bg-accent { background: var(--color-accent) !important; color: var(--color-primary) !important; }
.bg-alt { background: var(--color-bg-alt) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-muted { color: #8693a5 !important; }

/******************
  SCROLLBAR STYLING
*******************/
html::-webkit-scrollbar { width: 8px; background: var(--color-bg-alt); }
html::-webkit-scrollbar-thumb { background: #dde3eb; border-radius: 8px; }

/******************
   CUSTOM CHECKBOX/STYLES
*******************/
input[type="checkbox"]:not(:disabled) {
  accent-color: var(--color-accent);
}
input[type="checkbox"][disabled] {
  accent-color: #c5ccda;
}

/******************
   HELPERS
*******************/
.flex-row { display: flex; flex-direction: row; gap: 20px; }
.flex-col { display: flex; flex-direction: column; gap: 20px; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.space-between { justify-content: space-between; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/****************
FEATURE: ENSURE ADEQUATE SPACING FOR ALL CARDS, SECTIONS, CONTENT
*****************/
.card, .feature-grid > div, .testimonial-card, section, .section {
  margin-bottom: 20px;
}

/****************
   END CSS
*****************/