/* ===== 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;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #F5F7FA;
}
body {
  line-height: 1.6;
  color: #1A2433;
  background: #F5F7FA;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul,ol {
  padding-left: 24px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  border: none;
  outline: none;
}
a {
  color: #184296;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,a:focus {
  color: #178451;
}

/* =========== BASE TYPOGRAPHY & SCALE =========== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #184296;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: #184296;
  margin-bottom: 20px;
  letter-spacing: -0.25px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: #1A2433;
  margin-bottom: 12px;
}
h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 6px;
}
p,li,span,div,td,th {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1A2433;
}
p,ul,ol {
  margin-bottom: 16px;
}
strong, b {
  font-weight: 600;
  color: #184296;
}

/* ========== LAYOUT WRAPPERS & CONTAINERS ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(20,36,100,0.04);
}
.hero .container {
  padding-top: 32px;
  padding-bottom: 32px;
}

/* =========== HEADER, NAVIGATION, CTA =========== */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(24,66,150,0.06);
  position: sticky;
  top: 0;
  z-index: 99;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 12px;
  padding: 0 20px;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  color: #184296;
  font-size: 1rem;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: #178451;
  transition: width 0.2s;
  border-radius: 2px;
  margin-top: 2px;
}
.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}
.cta-btn {
  background: #184296;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  margin-left: 24px;
  box-shadow: 0 1px 6px rgba(20, 66, 150, 0.08);
  transition: background 0.18s, box-shadow 0.2s, transform 0.17s;
  cursor: pointer;
  display: inline-block;
  letter-spacing: 0.04em;
}
.cta-btn:hover, .cta-btn:focus {
  background: #178451;
  color: #fff;
  box-shadow: 0 4px 16px rgba(24, 66, 150, 0.14);
  transform: translateY(-2px) scale(1.02);
}

/* =========== BURGER MENU / MOBILE NAV =========== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 24px;
  padding: 10px 14px;
  font-size: 2rem;
  background: #184296;
  color: #fff;
  border-radius: 8px;
  z-index: 120;
  border: none;
  box-shadow: 0 2px 8px rgba(24, 66, 150, 0.10);
  cursor: pointer;
  transition: background 0.17s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #178451;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 86vw;
  max-width: 340px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 32px rgba(24,66,150,0.07);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.5,.1,.3,1);
  will-change: transform;
  padding: 0 0 40px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  font-size: 2rem;
  color: #184296;
  border: none;
  margin: 24px 22px 18px 0;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #F5F7FA;
  color: #178451;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 32px 0 36px;
  margin-top: 16px;
}
.mobile-nav a {
  color: #184296;
  font-size: 1.12rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 4px;
  border-radius: 5px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F5F7FA;
  color: #178451;
}

/* =========== MAIN FLEX LAYOUTS =========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 8px;
}
.feature-grid > div {
  flex: 1 1 210px;
  background: #F5F7FA;
  border-radius: 14px;
  box-shadow: 0px 2px 10px 0 rgba(20,36,100,0.027);
  padding: 28px 22px 22px 22px;
  min-width: 210px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
}
.feature-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #184296;
  font-family: 'Montserrat', Arial, sans-serif;
}

.section, .card-container, .content-grid, .testimonial-card {
  margin-bottom: 60px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(20,36,100,0.05);
  padding: 28px 22px 20px 22px;
  min-width: 200px;
  max-width: 340px;
  flex: 1 1 220px;
}
.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: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(24,66,150,0.08);
  padding: 20px 32px 16px 26px;
  margin-bottom: 22px;
  border-left: 4px solid #178451;
  transition: box-shadow 0.2s;
  cursor: default;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 8px 32px 0 rgba(24,66,150,0.12);
}
.testimonial-card p {
  color: #1A2433;
  font-size: 1.07rem;
  line-height: 1.6;
}
.testimonial-card span {
  color: #184296;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin-top: 3px;
}
.star-ratings {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: #184296;
  margin-top: 8px;
  margin-bottom: 12px;
}
.text-section {
  padding: 0;
}
.text-section img {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  margin-right: 6px;
}

/* =========== FEATURE ITEM LAYOUT =========== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

/* =========== CARDS =========== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ========== BUTTONS & LINK STYLES ========== */
button, .cta-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.17s, transform 0.17s;
}
button:active, .cta-btn:active {
  transform: scale(0.97);
}

/* ========== FOOTER ========== */
footer {
  background: #fff;
  padding: 38px 0 20px 0;
  border-top: 1px solid #ececec;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  gap: 18px;
  margin: 6px 0 8px 0;
}
footer nav a {
  font-size: 0.98rem;
  color: #184296;
  font-family: 'Roboto', Arial, sans-serif;
  opacity: 0.92;
  transition: color 0.15s, opacity 0.12s;
}
footer nav a:hover, footer nav a:focus {
  color: #178451;
  opacity: 1;
}
.footer-contact {
  font-size: 0.97rem;
  color: #8E97A8;
  text-align: center;
  margin-bottom: 10px;
}
footer span {
  color: #A5ACC1;
  font-size: 0.92rem;
}

/* =========== COOKIE CONSENT BANNER =========== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(24,66,150,0.09);
  padding: 28px 30px 22px 30px;
  min-width: 260px;
  max-width: 98vw;
  width: 370px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  color: #1A2433;
  visibility: hidden;
  transition: transform 0.34s cubic-bezier(.4,.27,.23,.98), opacity 0.24s;
}
.cookie-banner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.cookie-banner button {
  border-radius: 6px;
  padding: 10px 16px;
  border: none;
  background: #F5F7FA;
  color: #184296;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.17s, box-shadow 0.17s;
  box-shadow: 0 1px 4px rgba(24, 66, 150, 0.04);
}
.cookie-banner .accept-cookies {
  background: #184296;
  color: #fff;
  font-weight: 600;
}
.cookie-banner .accept-cookies:hover,
.cookie-banner .accept-cookies:focus {
  background: #178451;
}
.cookie-banner .settings-cookies {
  background: #F5F7FA;
  color: #184296;
}
.cookie-banner .reject-cookies {
  background: #fff;
  color: #184296;
  border: 1px solid #184296;
}
.cookie-banner .reject-cookies:hover,
.cookie-banner .reject-cookies:focus {
  background: #F5F7FA;
}
/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(0.94);
  background: #fff;
  color: #1A2433;
  z-index: 1100;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(24,66,150,0.13);
  width: 98vw;
  max-width: 430px;
  padding: 32px 40px 26px 34px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s, transform 0.35s;
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  margin-bottom: 20px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F5F7FA;
  border-radius: 7px;
  padding: 14px 12px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #178451;
  width: 18px;
  height: 18px;
}
.cookie-category label {
  font-size: 1rem;
  color: #1A2433;
}
.cookie-category .always-on {
  color: #184296;
  font-weight: 500;
  margin-left: 6px;
  font-size: 0.98rem;
}
.cookie-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.cookie-modal .save-cookies {
  background: #184296;
  color: #fff;
  font-weight: 600;
}
.cookie-modal .close-cookies {
  background: #F5F7FA;
  color: #184296;
}
@media (max-width: 500px) {
  .cookie-modal,
  .cookie-banner {
    padding: 18px 10px 12px 14px;
    border-radius: 8px;
    font-size: 0.97rem;
    width: 96vw;
    min-width: 0;
  }
}

/* =========== FORMS (if present) =========== */
input[type=text],
input[type=email],
input[type=tel],
textarea {
  border: 1px solid #ececec;
  border-radius: 7px;
  background: #fff;
  padding: 12px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  transition: border 0.15s, box-shadow 0.2s;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
textarea:focus {
  border: 1.5px solid #184296;
  box-shadow: 0 2px 10px rgba(24,66,150,0.07);
}

/* ========== RESPONSIVE/MOBILE STYLES ========== */
@media (max-width: 1100px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    justify-content: flex-start;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1, .h1 {
    font-size: 1.57rem;
    margin-bottom: 18px;
  }
  h2, .h2 {
    font-size: 1.23rem;
    margin-bottom: 16px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    margin-bottom: 38px;
    padding: 20px 7px;
    border-radius: 9px;
  }
  .content-wrapper {
    gap: 15px;
    padding: 30px 0;
  }
  .testimonial-card {
    padding: 18px 12px 14px 13px;
    border-radius: 8px;
  }
  .star-ratings {
    font-size: 0.97rem;
    gap: 4px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  footer .container {
    gap: 8px;
    padding: 0 4px;
  }
}
@media (max-width: 500px) {
  header .container {
    height: 56px;
    padding: 0 4px;
    min-width: 0;
  }
  .mobile-menu-toggle {
    top: 13px;
    right: 7px;
    padding: 7px 10px;
    font-size: 1.65rem;
    border-radius: 7px;
  }
}
/*, remove margin of last child in container*/
.container > *:last-child {
  margin-bottom: 0 !important;
}
.section > *:last-child {
  margin-bottom: 0 !important;
}
.content-wrapper > *:last-child {
  margin-bottom: 0 !important;
}
.card-content > *:last-child {
  margin-bottom: 0 !important;
}

/* ===== MICRO-INTERACTIONS & ANIMATIONS ===== */
.cta-btn, button {
  transition: background 0.20s, box-shadow 0.16s, color 0.15s, transform 0.18s;
}
.cta-btn:focus {
  outline: 2px solid #178451;
  outline-offset: 2px;
}
.card, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 30px 0 rgba(24,66,150,0.13);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid > div:hover, .feature-grid > div:focus {
  box-shadow: 0 8px 28px 0 rgba(24,66,150,0.12);
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 2px solid #178451;
  outline-offset: 1px;
}

/* Hide visually (for accessibility helpers) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
}
