/* === 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F5F7FA;
  color: #171A1D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  min-height: 100vh;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: #004B87;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFB300;
  outline: none;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  background: none;
  border: none;
  cursor: pointer;
}
input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: #004B87;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #FFB300;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #004B87;
}
p {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: #23272B;
  line-height: 1.7;
}
strong, b {
  font-weight: 700;
  color: #004B87;
}
.text-section {
  font-size: 1.07rem;
  color: #23272B;
  margin-bottom: 18px;
}

/* --- General Layout --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(0,75,135,0.07);
}

@media (max-width: 768px) {
  .section, section {
    margin-bottom: 40px;
    padding: 24px 8px;
    border-radius: 18px;
  }
  .content-wrapper {
    gap: 16px;
  }
}

/* --- Header & Navigation --- */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,75,135,0.06);
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
header > a img {
  display: block;
  height: 44px;
  margin: 14px 0;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: #004B87;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
header nav a:hover, header nav a.active {
  background: #FFB300;
  color: #004B87;
}
.cta-primary {
  background: #FFB300;
  color: #004B87 !important;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.07rem;
  letter-spacing: 0.04em;
  border-radius: 12px;
  padding: 12px 32px;
  margin-left: 28px;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(255,179,0,0.10);
  transition: background 0.20s, box-shadow 0.20s, transform 0.10s;
  border: none;
  outline: none;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #004B87;
  color: #FFB300 !important;
  box-shadow: 0 6px 16px rgba(0,75,135,0.16);
  transform: translateY(-1px) scale(1.04);
}

/* Burger Menu for mobile */
.mobile-menu-toggle {
  background: #004B87;
  color: #FFB300;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 2rem;
  line-height: 1;
  margin-left: 22px;
  display: none;
  z-index: 70;
  border: 2px solid #004B87;
  transition: background 0.15s, color 0.15s, border 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #FFB300;
  color: #004B87;
  border-color: #FFB300;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,75,135,0.98);
  color: #fff;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.63,.01,.66,.92);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 32px;
  gap: 26px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #FFB300;
  background: transparent;
  font-size: 2.4rem;
  align-self: flex-end;
  margin-right: 32px;
  margin-bottom: 20px;
  padding: 6px 16px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: background 0.12s, color 0.12s, border 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #FFB300;
  color: #004B87;
  border-color: #FFB300;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  padding-left: 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  padding: 12px 0;
  text-transform: uppercase;
  border-radius: 8px;
  transition: color 0.18s, background 0.14s;
}
.mobile-nav a:hover {
  background: #FFB300;
  color: #004B87;
}
@media (max-width: 1050px) {
  header nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  header {
    padding: 0 10px;
    min-height: 54px;
  }
  header > a img {
    height: 33px;
    margin: 7px 0;
  }
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(90deg,#F5F7FA 60%,#FFB30011 100%);
  margin-bottom: 0;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 6px 32px rgba(0,75,135,0.06);
}
.hero .container {
  padding-top: 32px;
  padding-bottom: 32px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #004B87;
}
.hero p {
  font-size: 1.25rem;
  color: #23272B;
  margin-bottom: 20px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .hero .container { padding: 16px 2px; }
  .hero h1 { font-size: 1.3rem; }
  .hero { border-radius: 0 0 20px 20px; }
}

/* --- CARD CONTAINERS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(0,75,135,0.08);
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  padding: 32px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.11s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(0,75,135,0.17);
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 768px) {
  .card {
    padding: 20px 8px 16px 8px;
    min-width: 160px;
  }
}

/* --- FLEX SPACING SECTIONS --- */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 16px;
  background: #F5F7FA;
  box-shadow: 0 3px 14px rgba(0,75,135,0.06);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 650px;
  border-left: 6px solid #FFB300;
  transition: box-shadow 0.16s;
}
.testimonial-card p {
  color: #23272B;
  font-size: 1.09rem;
  font-style: italic;
}
.testimonial-card span {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #004B87;
}
.testimonial-card strong {
  color: #004B87;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(255,179,0,0.13);
}

/* --- Feature Grid / Cards --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 16px;
}
.feature-grid li {
  flex: 1 1 210px;
  min-width: 220px;
  background: #f6fbff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,75,135,0.08);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.16s, transform 0.09s;
  border-left: 5px solid #004B87;
}
.feature-grid li img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  background: #fff;
  border-radius: 9px;
  padding: 5px;
  box-shadow: 0 1px 4px rgba(0,75,135,0.09);
}
.feature-grid li h3 {
  margin-bottom: 7px;
  margin-top: 0;
}
.feature-grid li:hover {
  box-shadow: 0 10px 32px rgba(0,75,135,0.13);
  transform: translateY(-2px) scale(1.01);
  border-left: 5px solid #FFB300;
}
@media (max-width: 1020px) {
  .feature-grid { gap: 18px; }
}
@media (max-width: 800px) {
  .feature-grid li {
    min-width: 160px;
    padding: 17px 9px;
  }
}
@media (max-width: 600px) {
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid li {
    min-width: 120px;
    flex: none;
    width: 100%;
  }
}

/* --- Lists & Text --- */
ul, ol {
  margin-bottom: 20px;
  padding-left: 22px;
}
ul li, ol li {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #23272B;
}
.text-section ul li {
  margin-bottom: 8px;
  font-size: 1.01rem;
}
section ul a, .text-section a {
  color: #004B87;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.14s;
}
section ul a:hover {
  color: #FFB300;
}
ol {
  list-style: decimal inside;
}

/* --- Buttons General --- */
button, .btn, .cta-primary {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  transition: all 0.15s;
}
.btn {
  padding: 9px 24px;
  background: #004B87;
  color: #fff;
  border-radius: 9px;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: 1rem;
  margin-right: 16px;
  letter-spacing: 0.06em;
}
.btn:hover, .btn:focus {
  background: #FFB300;
  color: #004B87;
}

/* --- Footer --- */
footer {
  background: #004B87;
  width: 100%;
  margin-top: 68px;
  padding: 32px 0 24px 0;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -2px 16px rgba(0,75,135,0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 16px;
}
footer nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #FFB300;
  background: #fff;
  border-radius: 6px;
  padding: 6px 18px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  transition: background 0.13s, color 0.13s;
}
footer nav a:hover {
  background: #FFB300;
  color: #004B87;
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
}
.brand-footer img {
  height: 32px;
}
@media (max-width: 600px) {
  .brand-footer { flex-direction: column; gap: 4px; }
  footer {
    border-radius: 18px 18px 0 0;
    padding: 18px 0 12px 0;
  }
  footer nav a { font-size: 0.99rem; padding: 5px 10px; }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  width: 100%;
  background: #fff;
  color: #23272B;
  box-shadow: 0 -2px 18px rgba(0,75,135,0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  gap: 22px;
  z-index: 200;
  font-size: 1rem;
  transition: transform 0.4s, opacity 0.3s;
  border-radius: 20px 20px 0 0;
  animation: cookiePopupIn 0.7s cubic-bezier(.49,1.23,.44,1) 1;
}
@keyframes cookiePopupIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__text {
  flex: 2 0 210px;
  color: #23272B;
}
.cookie-banner__actions {
  flex: none;
  display: flex;
  gap: 16px;
}
.cookie-banner__btn {
  border-radius: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 19px;
  border: 2px solid #004B87;
  background: #F5F7FA;
  color: #004B87;
  transition: background 0.17s, color 0.17s, border 0.14s;
}
.cookie-banner__btn.accept {
  background: #FFB300;
  color: #004B87;
  border-color: #FFB300;
}
.cookie-banner__btn.accept:hover, .cookie-banner__btn.accept:focus {
  background: #004B87;
  color: #FFB300;
  border-color: #004B87;
}
.cookie-banner__btn.reject {
  border-color: #004B87;
  background: #fff;
  color: #004B87;
}
.cookie-banner__btn.reject:hover, .cookie-banner__btn.reject:focus {
  background: #FFB300;
  color: #004B87;
}
.cookie-banner__btn.settings {
  background: #fff;
  color: #004B87;
  border-color: #FFB300;
}
.cookie-banner__btn.settings:hover, .cookie-banner__btn.settings:focus {
  background: #FFB300;
  color: #004B87;
  border-color: #004B87;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    padding: 13px 8px 13px 8px;
    border-radius: 12px 12px 0 0;
    font-size: 0.98rem;
  }
  .cookie-banner__actions { gap: 7px; }
}

/* --- Cookie Preferences Modal --- */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.95);
  background: #fff;
  color: #23272B;
  border-radius: 20px;
  box-shadow: 0 6px 42px rgba(0,75,135,0.17);
  padding: 36px 34px 30px 34px;
  z-index: 300;
  max-width: 430px;
  width: 92vw;
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.37s, transform 0.29s;
  transition-delay: .1s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cookie-modal__close {
  font-size: 1.7rem;
  color: #FFB300;
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #FFB300;
  color: #004B87;
}
.cookie-modal__categories {
  margin: 16px 0 6px 0;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #EFEFEF;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category__label {
  font-weight: 600;
  color: #004B87;
}
.cookie-category__desc {
  color: #444;
  font-size: 0.98rem;
}
.cookie-switch {
  margin-left: 12px;
  position: relative;
  flex-shrink: 0;
}
.cookie-switch input {
  display: none;
}
.cookie-switch label {
  display: inline-block;
  width: 48px;
  height: 24px;
  background: #EFEFEF;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
}
.cookie-switch label:after {
  content: '';
  display: block;
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: #FFB300;
  border-radius: 50%;
  transition: left 0.16s, background 0.19s;
}
.cookie-switch input:checked + label {
  background: #004B87;
}
.cookie-switch input:checked + label:after {
  left: 26px;
  background: #004B87;
}
.cookie-switch input[disabled] + label {
  background: #FFDDAA;
  cursor: not-allowed;
}
.cookie-modal__footer {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
@media (max-width: 475px) {
  .cookie-modal { padding: 16px 5vw 20px 5vw; min-width: unset; }
  .cookie-modal__header { flex-direction: column; gap: 2px; }
}

/* --- Animations & Micro-interactions --- */
a, button, .cta-primary, .card, .feature-grid li, .testimonial-card {
  transition: background 0.16s, color 0.13s, box-shadow 0.13s, transform 0.11s;
}

/* --- Visual Details, Shadows, Geometry --- */
.section, .card, .testimonial-card, .feature-grid li, .cookie-modal, .cookie-banner {
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(0,75,135,0.08);
}

/* --- Utilities --- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 12px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 12px !important; }
.text-center { text-align: center; }
.w-100 { width: 100%; }

/* --- Accessibility --- */
*:focus-visible {
  outline: 2px solid #FFB300;
  outline-offset: 2px;
}

/* --- Spacing Fix: Always 20px gap between cards/sections --- */
.section + .section,
section + section,
.content-wrapper > * + * {
  margin-top: 20px !important;
}

/* Flex layout mandatory classes per requirements */
.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; }

@media (max-width: 768px) {
  .content-grid, .feature-item, .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
}
