/* ------------------------------------------------- */
/* 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 {
  box-sizing: border-box;
  font-size: 16px; /* Mobile-first base */
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #f7fafd;
  color: #22304a;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #19355E;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover, a:focus {
  color: #F5BA27;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 8px;
}

/* ------------------------------------------------- */
/* TYPOGRAPHY SCALE & BRAND FONTS                    */
/* ------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #19355E;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 16px; }
h4 { font-size: 1.125rem; }
p, ul, ol, blockquote {
  font-size: 1rem;
  color: #334057;
}
.subheadline {
  font-size: 1.2rem;
  color: #42506d;
  font-weight: 500;
  margin-bottom: 20px;
}

strong {
  font-weight: 700;
}
blockquote {
  border-left: 4px solid #19355E;
  margin: 0 0 1em 0;
  padding-left: 16px;
  font-style: italic;
  color: #334057;
  background: #eaf0f7;
  border-radius: 4px;
}

/* ------------------------------------------------- */
/* CONTAINER, SECTIONS, CARDS                        */
/* ------------------------------------------------- */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(25, 53, 94, 0.07);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(25, 53, 94, 0.13);
  transform: translateY(-4px) scale(1.03);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* Feature Grid Example for Home */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(25,53,94,0.06);
  padding: 32px 20px;
  flex: 1 1 260px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 20px 0 rgba(25,53,94,0.15);
  transform: translateY(-3px) scale(1.025);
}
.feature-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}

/* Feature Item */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonial Card */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(25,53,94,0.05);
  margin-bottom: 20px;
  flex-wrap: wrap;
  color: #1a2336;
  transition: box-shadow 0.15s;
}
.testimonial-card blockquote {
  flex: 1 1 180px;
  background: transparent;
  border-left: 4px solid #F5BA27;
  color: #274168;
  padding: 0 16px;
  margin: 0;
  font-size: 1.08rem;
}
.testimonial-card div {
  min-width: 150px;
  font-weight: 600;
  color: #19355E;
}

/* Tables (eg. Pricing page) */
table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  margin-bottom: 28px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px 0 rgba(25, 53, 94, 0.06);
}
thead {
  background: #E5EEF5;
}
th, td {
  padding: 18px 16px;
  text-align: left;
}
th {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  color: #19355E;
}
tbody tr:not(:last-child) {
  border-bottom: 1px solid #E5EEF5;
}
tr {
  transition: background 0.16s;
}
tbody tr:hover {
  background: #E5EEF5;
}

/* Contact Info List */
.text-section ul li img {
  margin-right: 8px;
  vertical-align: middle;
  width: 18px;
  height: 18px;
}

/* Content Grid */
.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;
}

/* Footer */
footer {
  background: #19355E;
  color: #fff;
  padding: 40px 0 20px 0;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 1rem;
}
.footer-nav a {
  color: #E5EEF5;
  transition: color 0.15s;
  margin-bottom: 8px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #F5BA27;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  align-items: center;
}
.footer-contact img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: sub;
}
footer small {
  color: #bfc7d6;
}

/* ------------------------------------------------- */
/* BUTTONS & CTA                                     */
/* ------------------------------------------------- */
.cta, .button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  background: #19355E;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-align: center;
  font-size: 1.08rem;
  border-radius: 6px;
  border: none;
  padding: 13px 32px;
  outline: none;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(25,53,94,0.07);
  transition: background 0.15s, box-shadow 0.15s, transform 0.13s;
  position: relative;
}
.cta:hover, .cta:focus,
.button:hover, .button:focus,
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: #142848;
  color: #F5BA27;
  box-shadow: 0 4px 12px rgba(25,53,94,0.1);
  text-decoration: none;
  transform: translateY(-1px) scale(1.03);
}

/* Primary, Secondary Buttons for Cookie Banner */
.button-secondary {
  background: #f5f7fa;
  color: #19355E;
  border: 1px solid #19355E;
  font-weight: 600;
}
.button-secondary:hover, .button-secondary:focus {
  background: #E5EEF5;
  color: #19355E;
  border-color: #F5BA27;
}


/* ------------------------------------------------- */
/* HEADER & NAVIGATION                               */
/* ------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 1px 9px rgba(25,53,94,0.08);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 38px;
  vertical-align: middle;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
nav a {
  color: #19355E;
  padding: 6px 4px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: color 0.13s, background 0.13s, border-radius 0.13s;
  border-radius: 3px;
}
nav a.cta {
  background: #F5BA27;
  color: #19355E;
  padding: 10px 28px;
  margin-left: 14px;
  border-radius: 5px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(25,53,94,0.04);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
nav a.cta:hover, nav a.cta:focus {
  background: #19355E;
  color: #fff;
  box-shadow: 0 4px 16px #F5BA27;
  text-decoration: none;
}
nav a:hover, nav a:focus {
  background: #E5EEF5;
  color: #F5BA27;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #19355E;
  cursor: pointer;
  margin-left: 20px;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #eafeff;
}

/* Mobile Navigation Overlay */
.mobile-menu {
  position: fixed;
  z-index: 1200;
  background: #fff;
  height: 100vh;
  width: 100vw;
  top: 0;
  left: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.66,0,0.34,1);
  box-shadow: 0 9px 32px rgba(25,53,94,0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 16px;
  padding-bottom: 32px;
  overflow-y: auto;
  will-change: transform;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #19355E;
  font-size: 2.2rem;
  padding: 10px 18px;
  align-self: flex-end;
  cursor: pointer;
  margin-right: 14px;
  transition: color 0.2s, background 0.1s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #F5BA27;
  background: #e5eef5;
  border-radius: 50%;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  margin-top: 28px;
}
.mobile-nav a {
  color: #19355E;
  font-size: 1.21rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 16px 28px;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.12s, color 0.12s;
  text-align: left;
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E5EEF5;
  color: #F5BA27;
  text-decoration: none;
}

/* Hide Mobile Menu and Toggle on Desktop */
@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  nav {
    display: flex;
  }
}

@media (max-width: 1023px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* Ensures container stacking maintains z-index hierarchy for sticky/fixed elements */
header .container { position: relative; z-index: 3; }
footer .container { position: relative; z-index: 1; }


/* ------------------------------------------------- */
/* COOKIE CONSENT BANNER + MODAL                     */
/* ------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #19355E;
  color: #fff;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
  box-shadow: 0 0 32px 0 rgba(25,53,94,0.14);
  animation: slideUp 0.32s cubic-bezier(0.66,0,0.34,1);
  gap: 16px;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cookie-banner .button-secondary {
  background: #fff;
  color: #19355E;
  border: 1px solid #F5BA27;
}
.cookie-banner .button-secondary:hover { background: #F5BA27; color: #19355E; }
.cookie-banner .button-settings {
  background: none;
  color: #F5BA27;
  border: none;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-banner .button-settings:hover { text-decoration: none; color: #fff; }

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(30,40,60,0.44);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.24s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #19355E;
  border-radius: 14px;
  padding: 40px 24px 30px 24px;
  width: 94vw; max-width: 440px;
  box-shadow: 0 8px 32px 0 rgba(25,53,94,0.13);
  animation: popIn 0.19s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #19355E;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: #F5BA27;
}
.cookie-category {
  margin-bottom: 14px;
}
.cookie-category strong { color: #19355E; }
.toggle-switch {
  margin-left: 8px;
}
input[type='checkbox'].toggle-switch {
  width: 42px; height: 22px; appearance: none;
  background: #E5EEF5;
  outline: none;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  vertical-align: middle;
}
input[type='checkbox'].toggle-switch:checked {
  background: #F5BA27;
}
input[type='checkbox'].toggle-switch:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.15s;
  box-shadow: 0 1px 3px rgba(25,53,94,0.08);
}
input[type='checkbox'].toggle-switch:checked:before {
  left: 21px;
}

/* ------------------------------------------------- */
/* RESPONSIVE & MOBILE-ONLY ADJUSTMENTS              */
/* ------------------------------------------------- */
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
    padding: 0 10px;
  }
  .feature-grid, .card-container {
    gap: 16px;
  }
  .feature-grid > div, .card {
    padding: 22px 12px;
    min-width: 170px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .content-wrapper, .content-grid {
    gap: 14px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 6px;
  }
  .feature-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .card {
    width: 100%;
    min-width: unset;
    max-width: 100%;
    box-sizing: border-box;
  }
  .testimonial-card {
    padding: 16px 10px;
    width: 100%;
    font-size: 0.97rem;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-nav, .footer-contact {
    gap: 14px;
    font-size: 0.98rem;
    flex-direction: column;
    align-items: flex-start;
  }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.07rem; }
}

@media (max-width: 480px) {
  .section {
    padding: 14px 2px;
  }
  .testimonial-card {
    font-size: 0.95rem;
  }
  .card {
    padding: 13px 4px;
  }
  .feature-grid > div {
    padding: 13px 2px;
  }
  .cookie-modal {
    padding: 16px 2px;
  }
}

/* ------------------------------------------------- */
/* MISCELLANEOUS                                     */
/* ------------------------------------------------- */
::-webkit-scrollbar {
  width: 9px;
  background: #e5eef5;
}
::-webkit-scrollbar-thumb {
  background: #bfc7d6;
  border-radius: 8px;
}

hr {
  border: none;
  border-top: 1.5px solid #E5EEF5;
  margin: 32px 0;
}

/* Remove outline on mouse but keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #F5BA27;
  outline-offset: 2px;
}

/* Utility Panel Spaces */
.mb-24 { margin-bottom: 24px !important; }
.mt-24 { margin-top: 24px !important; }

/* ------------------------------------------------- */
/* PRINT OPTIMIZATION                                */
/* ------------------------------------------------- */
@media print {
  header, nav, .cookie-banner, .mobile-menu, .mobile-menu-toggle, footer {
    display: none !important;
  }
  body, .container, .content-wrapper, main, .section {
    background: #fff !important;
    color: #19355E !important;
  }
}
