/* CSS RESET & BASE --------------------------------------------------- */
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;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #182337;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #133872;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F3C543;
  outline: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  color: inherit;
}
strong {
  font-weight: 600;
}

/* BRAND FONTS ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #133872;
  line-height: 1.2;
}
h1 { font-size: 2.8rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.125rem; }
p, ul, ol, li { font-size: 1rem; }
.text-section h3 { color: #133872; font-size: 1.1rem; margin: 16px 0 8px; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

/* LAYOUT CONTAINER ----------------------------------------------------- */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SECTIONS, SPACING AND FLEX PATTERNS ---------------------------------- */
section {
  background: #fff;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(19, 56, 114, 0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 24px;
  min-width: 240px;
  flex: 1 1 220px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(19,56,114,0.09);
}
.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: 24px 28px;
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 1.5px 12px rgba(19,56,114,0.09);
  margin-bottom: 20px;
  max-width: 450px;
  flex: 1 1 260px;
  font-size: 1.08rem;
}
.testimonial-card span {
  color: #133872;
  font-size: 1.3rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SPECIFIC COMPONENT GRIDS --------------------------------------------- */
.feature-grid, .service-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .service-list > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.5px 8px rgba(19,56,114,0.05);
  padding: 28px 20px 22px 20px;
  min-width: 220px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-grid > div:hover, .service-list > div:hover {
  box-shadow: 0 6px 20px rgba(19,56,114,0.12);
  transform: translateY(-2px) scale(1.018);
}
.feature-grid img, .service-list img {
  margin-bottom: 16px;
  width: 40px;
  height: 40px;
}

.blog-list {
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.blog-list article {
  background: #f7f9fb;
  padding: 24px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(19,56,114,0.05);
  transition: box-shadow 0.16s;
  margin-bottom: 12px;
}
.blog-list article:hover {
  box-shadow: 0 6px 22px rgba(19,56,114,0.08);
}

.blog-categories {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.98rem;
}
.blog-categories a {
  background: #fff;
  border: 1px solid #CED5E0;
  border-radius: 6px;
  padding: 4px 10px;
  color: #133872;
  margin-right: 5px;
  margin-bottom: 4px;
  transition: background 0.14s, color 0.14s;
}
.blog-categories a:hover {
  background: #F3C543;
  color: #133872;
}

/* TEXT SECTION -------------------------------------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #182337;
}
.text-section ul {
  padding-left: 18px;
  margin-bottom: 4px;
  list-style: disc outside;
}
.text-section li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #133872;
}
.text-section a {
  color: #F3C543;
  border-bottom: 1px dashed #13387222;
  transition: border-color 0.14s;
}
.text-section a:hover {
  border-color: #F3C543;
}

/* CTA BUTTONS --------------------------------------------------------- */
.cta-primary {
  background: #133872;
  color: #fff;
  padding: 14px 34px;
  border: none;
  border-radius: 44px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 22px rgba(19,56,114,0.09);
  margin-top: 10px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.18s, color 0.16s;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:active, .cta-primary:focus {
  background: #0E2853;
  color: #F3C543;
  box-shadow: 0 6px 32px rgba(19,56,114,0.12);
}

/* HEADER & NAVIGATION ------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(19,56,114,0.06);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1001;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  padding: 16px 0;
  position: relative;
}
header nav a img {
  width: 130px;
  height: auto;
  margin-right: 8px;
}
header nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav ul li {
  display: flex;
}
header nav ul li a {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #133872;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.14s, color 0.14s;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: #F3C543;
  color: #133872;
}
header nav .cta-primary {
  margin-left: 28px;
}

/* HAMBURGER MENU BUTTON ----------------------------------------------- */
.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 10px rgba(19,56,114,0.07);
  color: #133872;
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1102;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-toggle:focus {
  background: #CED5E0;
}

/* MOBILE MENU OVERLAY ------------------------------------------------- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 1103;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 40px rgba(19,56,114,0.18);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.76,.01,.31,1.04);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #133872;
  background: none;
  border-radius: 28px;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #CED5E0;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  gap: 28px;
  margin-top: 10px;
}
.mobile-nav a {
  color: #133872;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.13rem;
  padding: 16px 10px;
  border-radius: 8px;
  background: none;
  transition: background 0.13s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F3C543;
  color: #133872;
}

/* RESPONSIVE MENU BEHAVIOUR ------------------------------------------- */
@media (max-width: 1024px) {
  header nav ul,
  header nav .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  h1, h2 {
    white-space: normal;
    word-break: break-word;
  }
  .feature-grid, .service-list, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 18px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .content-wrapper, .text-section {
    gap: 14px;
  }
}

/* FOOTER STYLES ------------------------------------------------------- */
footer {
  background: #f8fafc;
  border-top: 1px solid #CED5E0;
  padding: 38px 0 16px 0;
  color: #133872;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.12rem;
  font-family: 'Montserrat', sans-serif;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #133872;
  font-size: 1rem;
  margin-bottom: 4px;
}
.footer-nav a {
  color: #133872;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: #F3C543;
}
.footer-contact {
  color: #133872bb;
  font-size: 0.95rem;
}
.footer-contact a {
  color: #133872;
  border-bottom: 1px dotted #13387233;
}

/* COOKIE BANNER & MODAL ------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1.5px solid #CED5E0;
  box-shadow: 0 -4px 34px rgba(19, 56, 114, 0.09);
  padding: 18px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 16px;
  z-index: 3000;
  font-size: 1.05rem;
  animation: fadeInCookie 0.44s;
}
@keyframes fadeInCookie {
  0% { opacity: 0; transform: translateY(45px); }
  60% { opacity: 1; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-btn {
  background: #133872;
  color: #fff;
  border-radius: 36px;
  padding: 10px 22px;
  font-size: 1rem;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-right: 6px;
  margin-top: 4px;
  transition: background 0.14s, color 0.12s;
}
.cookie-banner .cookie-btn.secondary {
  background: #CED5E0;
  color: #133872;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #133872;
  border: 1px solid #CED5E0;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #F3C543;
  color: #133872;
}
/* COOKIE PREFERENCES MODAL -------------------------------------------- */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 4000;
  background: rgba(19,56,114,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.cookie-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 36px rgba(19,56,114,0.13);
  padding: 38px 32px 28px 32px;
  min-width: 330px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal 0.32s;
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: translateY(45px); }
  60% { opacity: 1; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
}
.cookie-category input[type=checkbox]:not(:disabled) {
  accent-color: #133872;
  width: 18px;
  height: 18px;
}
.cookie-category input[disabled] {
  accent-color: #133872;
  opacity: 0.7;
}
.cookie-category label {
  font-weight: 600;
  color: #133872;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-content .cookie-btn {
  padding: 9px 20px;
  border-radius: 30px;
  background: #133872;
  color: #fff;
  border: none;
  transition: background 0.13s, color 0.12s;
}
.cookie-modal-content .cookie-btn.secondary {
  background: #CED5E0;
  color: #133872;
}
.cookie-modal-content .cookie-btn:hover, .cookie-modal-content .cookie-btn:focus {
  background: #F3C543;
  color: #133872;
}
.cookie-modal-content .cookie-close {
  position: absolute;
  right: 20px;
  top: 14px;
  background: none;
  font-size: 1.7rem;
  color: #133872;
  border: none;
  z-index: 4011;
  transition: background 0.11s;
  border-radius: 32px;
}
.cookie-modal-content .cookie-close:hover {
  background: #CED5E0;
}

@media (max-width: 480px) {
  .cookie-modal-content {
    min-width: 220px;
    padding: 22px 8px 16px 8px;
  }
}

/* CUSTOM SCROLLBAR (optional, minimalist) ----------------------------- */
::-webkit-scrollbar { width: 8px; background: #fff; }
::-webkit-scrollbar-thumb { background: #CED5E0; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #B7BCC7; }

/* MICRO-INTERACTIONS -------------------------------------------------- */
.card, .feature-grid > div, .service-list > div, .testimonial-card, .blog-list article, .cta-primary, .footer-nav a, .cookie-btn, .mobile-nav a, .mobile-menu-toggle {
  transition-property: box-shadow, background, color, transform, opacity;
  transition-duration: 0.15s, 0.13s, 0.18s, 0.21s, 0.25s; 
  transition-timing-function: cubic-bezier(.72,.01,.30,.99);
}

/* GENERAL RESPONSIVE FLEX ALIGNMENT ----------------------------------- */
@media (max-width: 600px) {
  .container, .content-wrapper {
    padding-left: 5px;
    padding-right: 5px;
  }
  .feature-grid > div, .service-list > div {
    padding: 20px 8px 14px 8px;
  }
  .card{
    padding: 18px 6px;
  }
}

/* SPACINGS / FLEX PATTERNS EXPLICIT ----------------------------------- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* PRINT ---------------------------------------------------------------- */
@media print {
  * { color: #000 !important; background: none !important; box-shadow: none !important; }
  nav, .mobile-menu, .cookie-banner, footer { display: none !important; }
}
