/* 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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  background: transparent;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  height: 100%;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #8CA6DB 0%, #fff 50%, #FFFFFF 100%);
  color: #243447;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
a {
  color: #243447;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #526583;
  outline: none;
}
ul, ol {
  margin-left: 1.4em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/* FONTS IMPORT (fallback to sans-serif) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, .button-primary, .button-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.375rem; margin-bottom: 10px; font-weight: 600; }
.subheadline {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #243447;
  opacity: 0.85;
  margin-bottom: 28px;
}

p, ul, ol, li {
  font-size: 1rem;
}

strong {font-weight: 700;}

/* LAYOUT CONTAINERS (MOBILE FIRST) */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}

.text-section { margin-bottom: 24px; }

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.95);
  border-radius: 28px;
  box-shadow: 0 2px 28px rgba(140,166,219,0.08);
  transition: box-shadow 0.3s;
}

@media (min-width: 900px) {
  .section {
    padding: 60px 40px;
  }
}

/* HEADER DESIGN */
header {
  background-color: #243447;
  color: #fff;
  width: 100%;
  box-shadow: 0 2px 10px rgba(36,52,71,0.08);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
  min-height: 70px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.93;
  padding: 6px 0;
  transition: opacity 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  opacity: 1;
  color: #8CA6DB;
}
header img {
  height: 42px;
}

/* ACTION BUTTON */
.button-primary, .button-secondary {
  display: inline-block;
  text-decoration: none;
  border-radius: 24px;
  font-size: 1.06rem;
  font-weight: 700;
  padding: 12px 36px;
  cursor: pointer;
  border: none;
  outline: none;
  margin-bottom: 0;
  transition: background 0.25s, color 0.18s, box-shadow 0.20s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(36,52,71,.06);
}
.button-primary {
  background: #8CA6DB;
  color: #243447;
  border: 2px solid #8CA6DB;
}
.button-primary:hover, .button-primary:focus {
  background: #243447;
  color: #fff;
  border-color: #243447;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(36,52,71,0.15);
}
.button-secondary {
  background: #fff;
  color: #243447;
  border: 2px solid #8CA6DB;
}
.button-secondary:hover, .button-secondary:focus {
  background: #8CA6DB;
  color: #fff;
  border-color: #8CA6DB;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(140,166,219,.18);
}

/* FLEX UTILS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(140,166,219,0.12);
  padding: 28px 20px;
  min-width: 260px;
  margin-bottom: 20px; /* Per requirement */
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 260px;
  transition: box-shadow 0.24s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(36,52,71,0.15);
  transform: translateY(-2px) scale(1.014);
  z-index: 1;
}
.content-grid, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(140,166,219,0.05);
  padding: 24px 16px;
  flex: 1 1 248px;
  min-width: 230px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px rgba(140,166,219,0.19);
  transform: translateY(-2px) scale(1.03);
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  filter: drop-shadow(0 1px 4px rgba(140,166,219,0.18));
}

.section ul {
  margin-top: 6px;
  margin-bottom: 16px;
}
.section ul li {
  list-style: none;
  position: relative;
  padding-left: 32px;
  min-height: 36px;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.section ul li img {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  margin-left: -28px;
}

.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: flex-start;
    gap: 22px;
  }
}

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

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f5f8fd;
  border-radius: 17px;
  box-shadow: 0 1.5px 8px rgba(140,166,219,0.09);
  margin-bottom: 20px;
  color: #243447;
  transition: box-shadow 0.18s;
  min-width: 270px;
  position: relative;
}
.testimonial-card p {
  font-size: 1.09rem;
  margin-bottom: 0;
  color: #243447;
  line-height: 1.7;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #243447;
  opacity: 0.82;
  font-style: italic;
  margin-left: 12px;
}
.testimonial-card:hover {
  box-shadow: 0 5px 19px rgba(36,52,71,0.09);
}

/* FOOTER */
footer {
  background: #243447;
  color: #fff;
  padding: 38px 0 0 0;
  margin-top: 60px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(140,166,219,0.21);
}
.footer-nav nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav nav a {
  color: #fff;
  opacity: 0.87;
  font-size: 1rem;
  transition: color 0.21s, opacity 0.18s;
  font-weight: 500;
}
.footer-nav nav a:hover, .footer-nav nav a:focus {
  opacity: 1;
  color: #8CA6DB;
}
.footer-legal {
  margin-top: 24px;
  text-align: center;
  font-size: 0.98rem;
  color: #8CA6DB;
  opacity: 0.89;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #8CA6DB;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-left: 8px;
  z-index: 999;
  padding: 6px 12px;
  transition: color 0.18s, transform 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #fff;
  transform: scale(1.13);
}
@media (min-width: 1000px) {
  .mobile-menu-toggle { display: none; }
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,52,71,0.97);
  color: #fff;
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.86,.01,.27,1);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 34px 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #8CA6DB;
  cursor: pointer;
  padding: 10px 20px;
  margin-right: 18px;
  margin-bottom: 10px;
  z-index: 10001;
  transition: color 0.18s, transform 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
  transform: scale(1.09);
}
.mobile-nav {
  width: 100%;
  padding: 14px 40px 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.mobile-nav a {
  display: block;
  color: #fff;
  font-size: 1.38rem;
  padding: 13px 0 13px 0;
  width: 100%;
  border-bottom: 1px solid rgba(140,166,219,0.13);
  transition: background 0.16s, color 0.19s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8CA6DB;
  color: #243447;
  padding-left: 12px;
}
@media (min-width: 1000px) {
  .mobile-menu { display: none !important; }
}

/* Hide desktop nav on mobile & vice versa */
@media (max-width: 999px) {
  header nav {
    display: none;
  }
}
@media (min-width: 1000px) {
  .mobile-menu-toggle { display: none; }
}

/* RESPONSIVE MAIN & FLEX */
main {
  padding: 0;
  width: 100%;
}

/* RE-USABLE SPACING */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: rgba(244,247,252, 0.98);
  color: #243447;
  box-shadow: 0 -2px 16px rgba(140,166,219,0.11);
  padding: 24px 18px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 99999;
  font-size: 1rem;
  flex-wrap: wrap;
  transition: transform 0.25s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner .cookie-message {
  flex: 1 1 170px;
  max-width: 710px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  border-radius: 22px;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #8CA6DB;
  background: #fff;
  color: #243447;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-banner button.accept {
  background: #8CA6DB;
  color: #243447;
  border-color: #8CA6DB;
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #243447;
  color: #fff;
  border-color: #243447;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: #243447;
  border-color: #8CA6DB;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #8CA6DB;
  color: #fff;
}
.cookie-banner button.reject {
  background: #fff;
  color: #243447;
  border-color: #8CA6DB;
}
.cookie-banner button.reject:hover,
.cookie-banner button.reject:focus {
  background: #e0eafc;
  color: #243447;
}

/* COOKIE PREFERENCE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,52,71,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.2s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: #243447;
  border-radius: 21px;
  padding: 37px 26px 28px 26px;
  min-width: 320px;
  max-width: 94vw;
  box-shadow: 0 8px 40px rgba(140,166,219,0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-content h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.cookie-category label {
  font-size: 1rem;
  color: #243447;
  font-weight: 500;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  background: #8CA6DB;
  border-radius: 11px;
  position: relative;
  margin-left: 12px;
  transition: background 0.2s;
}
.cookie-toggle input[type="checkbox"] {
  display: none;
}
.cookie-toggle span {
  display: block;
  position: absolute;
  left: 3px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1.5px 4px rgba(36,52,71,0.12);
  transition: left 0.18s;
}
.cookie-toggle input:checked + span {
  left: 17px;
  background: #243447;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal-actions button {
  font-size: 1rem;
  padding: 9px 22px;
  border-radius: 22px;
  border: 2px solid #8CA6DB;
  background: #fff;
  color: #243447;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: background 0.16s, color 0.17s;
  cursor: pointer;
}
.cookie-modal-actions button.save {
  background: #8CA6DB;
  color: #243447;
  border-color: #8CA6DB;
}
.cookie-modal-actions button.save:hover,
.cookie-modal-actions button.save:focus {
  background: #243447;
  color: #fff;
}
.cookie-modal-actions button.cancel:hover,
.cookie-modal-actions button.cancel:focus {
  background: #e7effc;
  color: #243447;
}

/* Accessibility FOCUS */
:focus {
  outline: 2px solid #8CA6DB;
  outline-offset: 2px;
}

/* FORM & MISC */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 6px;
  border: 1.5px solid #8CA6DB;
  padding: 10px 14px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  border-color: #243447;
  outline: none;
}

.cta-text {
  font-size: 1.07rem;
  color: #243447;
  font-weight: 500;
  margin: 12px 0 18px 0;
}

/* RESPONSIVE RULES */
@media (max-width: 1199px) {
  .container { max-width: 980px; }
  .feature-grid > div { min-width: 200px; }
}
@media (max-width: 992px) {
  .container { max-width: 740px; }
  .feature-grid > div { min-width: 180px; }
  .testimonial-card { flex-direction: column; gap: 7px; align-items: flex-start; }
}
@media (max-width: 768px) {
  .container { max-width: 100%; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .content-wrapper { gap: 16px; }
  .section {
    padding: 28px 4px;
    border-radius: 15px;
  }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div,
  .card {
    padding: 18px 10px;
    min-width: 132px;
  }
  .footer-nav { flex-direction: column; gap: 18px; }
  .footer-legal { font-size: 0.93rem; margin-bottom: 12px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.10rem; }
  .button-primary, .button-secondary {
    font-size: 0.95rem;
    padding: 10px 16px;
  }
  .footer-legal { padding: 0 4px; }
}

/* MICRO-ANIMATIONS */
.button-primary, .button-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-settings-btn {
  transition: background 0.19s, color 0.21s, transform 0.19s, box-shadow 0.18s;
}

/* Hide visually, but keep accessible */
.sr-only {
  position:absolute!important;
  border:0!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  padding:0!important;
  margin:-1px!important;
  clip:rect(1px,1px,1px,1px)!important;
  white-space:nowrap!important;
}
