/* ------------ 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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: linear-gradient(135deg, #f6f8fb 0%, #e3eaf7 100%);
  color: #22304a;
  font-family: 'Arial', Montserrat, sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
  box-sizing: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #5c8dcc;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #22304a;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22304a;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 15px; font-weight: 600;}
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 12px;}

p, ul, li {
  font-size: 1rem;
}
strong { font-weight: bold; }

ul {
  list-style: none;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(34, 48, 74, 0.08);
}

/* ----------- HEADER & NAVBAR ----------- */
header {
  background: linear-gradient(90deg, #e3eaf7 0%, #f6f8fb 100%);
  box-shadow: 0 2px 18px rgba(34, 48, 74, 0.07);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  position: relative;
}
.main-nav img {
  max-height: 46px;
  margin-right: 12px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav ul li {
  display: flex;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #22304a;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav ul li a:after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: #5c8dcc;
  border-radius: 2px;
  transition: width 0.18s;
  margin-top: 4px;
}
.main-nav ul li a:hover:after, .main-nav ul li a:focus:after { width: 100%; }
.main-nav ul li a:hover, .main-nav ul li a:focus { color: #5c8dcc; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 28px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 7px rgba(92, 141, 204, 0.13);
  outline: none;
  border: none;
  transition: background 0.24s, color 0.18s, box-shadow 0.19s, scale 0.21s;
}
.cta.primary {
  background: linear-gradient(90deg, #5c8dcc 10%, #22304a 120%);
  color: #fff;
  border: none;
  box-shadow: 0 3px 12px rgba(92, 141, 204, 0.16);
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(90deg,#22304a 0%, #5c8dcc 100%);
  box-shadow: 0 6px 18px rgba(92, 141, 204, 0.17);
  scale: 1.05;
}
.cta.secondary {
  background: #fff;
  border: 2px solid #5c8dcc;
  color: #5c8dcc;
  box-shadow: 0 3px 12px rgba(92, 141, 204, 0.09);
  font-weight: 600;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #5c8dcc;
  color: #fff;
  border-color: #22304a;
  scale: 1.03;
}

/* ----------- MOBILE MENU ----------- */
.mobile-menu-toggle {
  display: none;
  background: #5c8dcc;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 12px;
  z-index: 60;
  cursor: pointer;
  transition: background 0.2s, color 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #22304a;
  color: #fff;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #f6f8fb 50%, #5c8dcc 140%);
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(.77,0,.18,1), opacity 0.24s;
  z-index: 100;
  box-shadow: 0 6px 60px rgba(34, 48, 74, 0.25);
  padding: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #22304a;
  font-size: 2.5rem;
  align-self: flex-end;
  margin: 26px 24px 12px 0;
  cursor: pointer;
  z-index: 110;
  transition: color 0.19s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #5c8dcc;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 auto;
  width: 85%;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 30px;
}
.mobile-nav a {
  color: #22304a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 13px 0;
  transition: color 0.21s, background 0.2s;
  border-radius: 6px;
  width: 100%;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #5c8dcc;
  color: #fff;
}

/* Hide desktop nav on mobile, only show hamburger */
@media (max-width: 1024px) {
  .main-nav ul { display: none; }
  .main-nav .cta { display: none; }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ----------- HERO SECTION ----------- */
.hero {
  background: linear-gradient(113deg, #5c8dcc 0%, #e3eaf7 100%);
  color: #22304a;
  padding: 60px 0 54px 0;
  margin-bottom: 68px;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 9px 24px rgba(34, 48, 74, 0.11);
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
  background: transparent;
}
.hero h1 {
  color: #22304a;
  font-size: 2.9rem;
  background: linear-gradient(92deg, #22304a 0%, #5c8dcc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.hero p {
  font-size: 1.18rem;
  color: #304061;
  margin-bottom: 18px;
  max-width: 650px;
}
.hero .cta {
  margin-top: 4px;
}

/* ----------- FEATURES + SERVICES + CARDS ----------- */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 22px rgba(92, 141, 204, 0.13);
}
.features .content-wrapper {
  justify-content: flex-start;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 15px;
  margin-top: 5px;
}
@media (min-width: 650px) {
  .features ul {
    flex-direction: row;
    gap: 22px;
   }
  .features ul li {
    min-width: 220px;
    max-width: 320px;
  }
}
.features ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  color: #22304a;
  background: #f6f8fb;
  border-left: 5px solid #5c8dcc;
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 1px 5px rgba(34,48,74,0.03);
}

.services {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #f6f8fb;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(34, 48, 74, 0.07);
}
.services .content-wrapper {
  gap: 30px;
}
.services ul {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.services ul li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(34,48,74,0.06);
  padding: 20px 22px;
}
.services ul li strong {
  color: #5c8dcc;
  font-weight: bold;
  margin-top: 4px;
}

.services .cta.secondary {
  align-self: flex-start;
  margin-top: 12px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 9px rgba(92, 141, 204, 0.12);
  transition: box-shadow 0.18s, scale 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  max-width: 370px;
}
.card:hover, .card:focus {
  box-shadow: 0 9px 26px rgba(92, 141, 204, 0.16);
  scale: 1.03;
}

.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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #f6f8fb;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(92,141,204,0.09);
  margin-bottom: 20px;
}

/* ----------- TESTIMONIALS ----------- */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 22px rgba(34, 48, 74, 0.08);
}
.testimonials .content-wrapper {
  gap: 32px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: #f6f8fb;
  border-radius: 14px;
  box-shadow: 0 2px 7px rgba(92, 141, 204, 0.10);
  margin-bottom: 20px;
  flex-direction: column;
  align-items: flex-start;
  max-width: 640px;
}
.testimonial-card p {
  font-size: 1.13rem;
  color: #22304a;
  margin-bottom: 6px;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #5c8dcc;
  border-left: 4px solid #5c8dcc;
  padding-left: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #fff;
  border-radius: 6px;
}

/* ----------- CONTACT & FOOTER ----------- */
.contact {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #e3eaf7;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(92, 141, 204, 0.12);
}
.contact .content-wrapper {
  gap: 18px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-info li strong {
  width: 120px;
  color: #22304a;
  font-weight: 600;
}

footer {
  background: #22304a;
  color: #fff;
  padding: 36px 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  border-radius: 36px 36px 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 6px;
}
.footer-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s, text-decoration 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  text-decoration: underline;
  color: #a0c5f6;
}
footer p {
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

/* ---------- TEXT / ABOUT / POLICY SECTIONS ---------- */
.about .content-wrapper, .about .text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.about {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(92, 141, 204, 0.06);
}
.text-section ul {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.text-section ul li {
  background: #f6f8fb;
  border-left: 5px solid #5c8dcc;
  border-radius: 8px;
  padding: 9px 15px;
  font-weight: 500;
  color: #22304a;
  margin-bottom: 10px;
}

/* ------------------- COOKIE CONSENT BANNER ------------------- */
.cookie-banner {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 18px;
  z-index: 9999;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 34px rgba(92, 141, 204,0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  padding: 28px 28px 18px 28px;
  border: 1px solid #e3eaf7;
  animation: fadeCookieBanner 0.6s cubic-bezier(.61,0,.18,1);
}
@keyframes fadeCookieBanner {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #22304a;
  font-size: 1.06rem;
  max-width: 500px;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.15s;
}
.cookie-banner .accept {
  background: #5c8dcc;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #22304a;
}
.cookie-banner .reject {
  background: #e3eaf7;
  color: #22304a;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #5c8dcc;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff;
  color: #22304a;
  border: 1px solid #5c8dcc;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #5c8dcc;
  color: #fff;
}

/* Cookie settings modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 10000;
  background: rgba(34,48,74,0.20);
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.27s cubic-bezier(.69,.05,.36,1.01);
}
.cookie-modal.open {
  display: flex;
}
@keyframes cookieModalFadeIn {
  from { opacity:0; }
  to { opacity: 1; }
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 22px;
  padding: 38px 28px 28px 32px;
  box-shadow: 0 9px 54px rgba(34,48,74,0.23);
  min-width: 310px;
  max-width: 97vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: cookieContentIn 0.44s cubic-bezier(.82,.12,.39,1.18);
}
@keyframes cookieContentIn {
  from { opacity:0; transform: scale(0.9); }
  to { opacity:1; transform: scale(1); }
}
.cookie-modal .close-modal {
  position: absolute;
  right: 20px;
  top: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #22304a;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #5c8dcc;
}
.cookie-modal h3 {
  font-size: 1.3rem;
  color: #22304a;
  margin-bottom: 10px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-modal .cookie-category label {
  font-size: 1rem;
  color: #22304a;
  font-weight: 500;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: #5c8dcc;
  width: 18px; height: 18px;
}
.cookie-modal .cookie-category .always-on {
  color: #5c8dcc;
  font-weight: 600;
  font-size: 0.97rem;
  margin-left: 7px;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 13px;
  display: flex;
  gap: 17px;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions button {
  padding: 10px 22px;
  border-radius: 20px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.14s;
}
.cookie-modal .save {
  background: #5c8dcc;
  color: #fff;
}
.cookie-modal .save:hover, .cookie-modal .save:focus {
  background: #22304a;
}
.cookie-modal .cancel {
  background: #fff;
  border: 1px solid #5c8dcc;
  color: #22304a;
}
.cookie-modal .cancel:hover, .cookie-modal .cancel:focus {
  background: #e3eaf7;
  color: #22304a;
}

/* ------------- SPACING & FLEXBOX MANDATORY PATTERNS ------------- */
.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; }

/* ------------- TRANSITIONS & MICRO-INTERACTIONS ------------- */
.card, .services ul li, .testimonial-card, .cta {
  transition: box-shadow 0.23s, background 0.22s, scale 0.18s;
}
.card:hover, .services ul li:hover, .testimonial-card:hover {
  box-shadow: 0 7px 28px rgba(92,141,204,0.13);
  scale: 1.02;
}
.section, .features, .services, .testimonials, .contact, .about {
  transition: box-shadow 0.14s, background 0.17s;
}

/* ------------- RESPONSIVE DESIGN: MOBILE FIRST ------------- */
@media (max-width: 1000px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .services ul li, .features ul li {
    min-width: 0;
    max-width: inherit;
  }
}
@media (max-width: 800px) {
  .main-nav img {
    max-height: 38px;
  }
  .hero h1 { font-size: 2.1rem; }
  h2 { font-size: 1.37rem; }
  .cta { padding: 10px 16px; font-size: 1rem; }
  .testimonials .testimonial-card, .services ul li, .features ul li {
    padding: 12px 10px;
  }
  .footer-nav { gap: 11px; }
}

@media (max-width: 768px) {
  .main-nav {
    padding-left: 8px;
    padding-right: 8px;
  }
  .container {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .section, .features, .services, .about, .testimonials, .contact {
    padding: 28px 7px;
    border-radius: 13px;
  }
  .hero {
    padding: 34px 0 28px 0;
    border-radius: 0 0 17px 17px;
  }
  .content-wrapper { gap: 11px; }
  .features ul, .services ul {
    gap: 10px;
    flex-direction: column;
  }
  .features ul li, .services ul li { width: 100%; min-width: 0; max-width: 100%; }
  .about .content-wrapper, .about .text-section {
    gap: 10px;
  }
  .testimonial-card {
    padding: 13px 10px;
    font-size: 1rem;
  }
  .mobile-menu {
    padding-top: 0;
  }
}
@media (max-width: 650px) {
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .hero h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  .cta { font-size: 1rem; padding: 8px 10px; min-width: 90px; }
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  .cookie-banner {
    padding: 9vw 3vw 7vw 3vw;
    left: 2vw;
    right: 2vw;
  }
  .cookie-modal .cookie-modal-content {
    padding: 20px 5vw 20px 5vw;
    border-radius: 13px;
  }
}

/* ----- ACCESSIBILITY and FOCUS ----- */
a:focus, .cta:focus, button:focus, .mobile-menu-close:focus {
  outline: 2px dashed #5c8dcc;
  outline-offset: 2px;
}

/* Typography Hierarchy */
h1, .hero h1 {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
h2 { font-size: 1.34rem; }
h3 { font-size: 1.11rem; }

@media (min-width: 800px) {
  h1, .hero h1 { font-size: 2.7rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}

/* Prevent overlap */
.card, .services ul li, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* Z-Index layering */
header {
  z-index: 30;
}
.mobile-menu,
.cookie-banner,
.cookie-modal {
  z-index: 90;
}
/* Utility spacing */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* End of CSS */
