/* === 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, input, button, select, textarea {  margin: 0;  padding: 0;  border: 0;  font-size: 100%;  font: inherit;  vertical-align: baseline;  box-sizing: border-box;}
html {  -webkit-font-smoothing: antialiased;  -moz-osx-font-smoothing: grayscale;  box-sizing: border-box;  height: 100%;  scroll-behavior: smooth;}
*, *:before, *:after {  box-sizing: inherit;}
body {  min-height: 100vh;  background: #F5F7FA;  color: #202B38;  font-family: 'Roboto', Arial, sans-serif;  font-size: 16px;  line-height: 1.6;  font-weight: 400;}
img {  max-width: 100%;  display: block;}
ul, ol {  list-style: none;}
a {  color: inherit;  text-decoration: none;  transition: color 0.2s;}
strong {  font-weight: 600;}
button, input, textarea, select {  font: inherit;  outline: none;}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #244364;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.2rem; margin-bottom: 20px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.17rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; }
.subheadline {  font-size: 1.1rem;  font-weight: 400;  color: #4E5C6F;  margin-bottom: 24px;}
p, li, ul, ol {  font-family: 'Roboto', Arial, sans-serif;  color: #2D3640;  font-size: 1rem;  margin-bottom: 12px;}
p:last-child,  li:last-child { margin-bottom: 0;}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px 0 rgba(44,71,114,0.07);
}

/* === FLEXBOX LAYOUTS (MANDATORY) === */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 0;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: 1.5px solid #E5EBF3;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(36,67,100,0.04);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s;
}
.card:hover {  box-shadow: 0 8px 24px 0 rgba(44,71,114,0.11);  border-color: #B3CDDF;}

.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: center;
  gap: 20px;
  background: #F5F9FE;
  color: #203248;
  border: 1px solid #D9E3EE;
  box-shadow: 0 2px 8px 0 rgba(44,71,114,0.06);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
  min-width: 220px;
  max-width: 370px;
}
.testimonial-card p {
  color: #203248;
  font-size: 1.05rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-section {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #EDF1F5;
  box-shadow: 0 2px 10px rgba(36,67,100,0.06);
  padding: 24px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
  max-width: 370px;
  transition: box-shadow .22s;
}
.text-section:hover {
  box-shadow: 0 8px 28px 0 rgba(44,71,114,0.09);
}

/* === HEADER === */
header {
  width: 100%;
  background: #244364;
  padding: 0;
  box-shadow: 0 2px 10px rgba(36,67,100,0.07);
  position: relative;
  z-index: 2;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #F8F9FA;
  font-size: 1rem;
  padding: 10px 5px;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: #33557C;
  color: #FFDFA8;
}
header img {
  height: 42px;
  width: auto;
  margin-right: 16px;
}

.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: #244364;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  margin-left: 26px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.10s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #3A6CB3;
  color: #fff;
  box-shadow: 0 6px 24px rgba(36,67,100,0.17);
  transform: translateY(-2px) scale(1.02);
}

/* === BURGER (MOBILE) MENU === */
.mobile-menu-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 12;
  width: 48px;
  height: 48px;
  border: none;
  background: #244364;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(44,71,114,0.13);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #3A6CB3;
  color: #FFDFA8;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #F5F8FA;
  box-shadow: 0 2px 32px rgba(20,24,36,0.25);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(0.76,0.09,0.52,1.02);
  display: flex;
  flex-direction: column;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 28px 0 0;
  background: none;
  border: none;
  color: #244364;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: #FF9D2F;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  margin: 50px 36px;
}
.mobile-nav a {
  padding: 16px 4px 8px 4px;
  font-size: 1.18rem;
  color: #244364;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 4px;
  width: 100%;
  display: block;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #FF9D2F;
  background: #EBF4FF;
}

/* === MAIN & SECTIONS === */
main {
  width: 100%;
  min-height: 60vh;
  margin-bottom: 24px;
}
section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 rgba(36,67,100,0.04);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
}
section .container {
  padding: 0;
}

ul li, ol li {
  margin-bottom: 10px;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
}
ul li img {
  height: 22px;
  width: 22px;
  margin-right: 8px;
}

/* === FOOTER === */
footer {
  width: 100%;
  background: #223045;
  color: #F2F8FF;
  padding: 0;
  box-shadow: 0 -2px 16px 0 rgba(36,67,100,0.04);
  margin-top: 28px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 20px;
  gap: 20px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
footer nav a {
  color: #D7E2F4;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 2px 1px;
  opacity: 0.86;
  transition: color 0.15s, opacity 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #FFDFA8;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.98rem;
  color: #CBDBEB;
  margin-top: 4px;
}
.footer-contact img {
  width: 17px; height: 17px; vertical-align: middle; margin-right: 8px;
}
footer img {
  height: 44px;
  width: auto;
}

/* === INPUT, SEARCH === */
input[type="search"] {
  width: 100%;
  max-width: 340px;
  background: #F5F8FD;
  border: 1.5px solid #CED8E4;
  border-radius: 6px;
  padding: 12px 16px;
  color: #223045;
  font-size: 1rem;
  outline: none;
  margin-top: 12px;
  margin-bottom: 14px;
  transition: border 0.14s, box-shadow 0.2s;
}
input[type="search"]:focus {
  border-color: #3A6CB3;
  box-shadow: 0 0 0 2px #AFCBF7;
}

::-webkit-input-placeholder { color: #7B888F; }
::-moz-placeholder { color: #7B888F; }
:-ms-input-placeholder { color: #7B888F; }
::placeholder { color: #7B888F; }

/* === TRANSITIONS AND MICRO-INTERACTIONS === */
a, .btn-primary, button, input[type="search"] {
  transition: background 0.2s, color 0.18s, border 0.14s, box-shadow 0.15s, transform 0.12s;
}
section, .card, .testimonial-card, .text-section, .feature-item {
  transition: box-shadow 0.15s, background 0.16s;
}

/* === GENERAL SPACING, HIERARCHY === */
.card-container, .content-grid, .content-wrapper {
  gap: 24px;
}
.card, .testimonial-card, .text-section {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* === COOKIE CONSENT BANNER + MODAL === */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #223045;
  color: #fff;
  z-index: 22220;
  padding: 20px 20px 16px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  box-shadow: 0 -2px 18px rgba(36,67,100,0.10);
  font-size: 1rem;
  justify-content: space-between;
  animation: bannerSlideIn 0.40s cubic-bezier(.32,1.01,.55,.98) 1;
}
@keyframes bannerSlideIn {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  margin-left: 16px;
}
.cookie-consent-banner .cookie-btn {
  padding: 10px 26px;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, transform 0.10s;
  margin-right: 4px;
}
.cookie-btn-accept {
  background: #3A6CB3;
  color: #fff;
}
.cookie-btn-accept:hover { background: #1E3559; }
.cookie-btn-reject {
  background: transparent;
  color: #fff;
  border: 1.5px solid #DBDEF3;
}
.cookie-btn-reject:hover { background: #223045; color: #FFDFA8; }
.cookie-btn-settings {
  background: #FFDFA8;
  color: #223045;
}
.cookie-btn-settings:hover { background: #FF9D2F;  color: #fff;}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 22300;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,67,100,0.46);
  animation: fadeInModal 0.32s ease-in;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 48px rgba(36,67,100,0.19);
  max-width: 410px;
  width: 92vw;
  padding: 40px 26px 26px 26px;
  color: #244364;
  animation: modalSlideUp 0.37s cubic-bezier(.32,1.01,.55,.98) 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
@keyframes modalSlideUp {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-size: 1rem;
}
.cookie-category input[type='checkbox'] {
  width: 22px; height: 22px;
  accent-color: #3A6CB3;
  border-radius: 3px;
  cursor: pointer;
}
.cookie-category input[disabled] { opacity: 0.54; }
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 14px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: none;
  color: #244364;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal .cookie-modal-close:hover { color: #FF9D2F; }

/* === RESPONSIVE DESIGN (MOBILE FIRST) === */
@media (max-width: 1020px) {
  .container { max-width: 96vw; }
  section, .section { padding: 32px 8px; }
  header .container, footer .container { padding: 24px 10px; }
}
@media (max-width: 850px) {
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    height: auto;
    padding-top: 16px;
    padding-bottom: 12px;
  }
  header nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 4px;
  }
  footer .container { gap: 10px; }
  .footer-contact { margin-top: 10px; }
}
@media (max-width: 768px) {
  .container {  max-width: 100vw; padding: 0 7vw;}
  .mobile-menu-toggle { display: flex; }
  header nav { display: none; }
  .btn-primary { margin-left: 0; margin-top: 12px; }
  header .container { flex-direction: row; justify-content: space-between; align-items: center; gap: 0; }
  .content-wrapper, .content-grid, .card-container, .footer-contact, .feature-item, .testimonial-card, .text-section {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  section, .section { padding: 25px 5vw; margin-bottom: 44px; }
  .content-wrapper { gap: 20px; }
  .text-image-section { flex-direction: column !important;  gap: 24px; }
  .testimonial-card, .text-section, .card { min-width: unset; max-width: 100%; }
  .footer-contact p { font-size: 0.94rem; }
  footer nav { flex-direction: column; gap: 8px; }
  .cookie-consent-banner {
    flex-direction: column; align-items: stretch;
  }
  .cookie-consent-banner .cookie-actions { margin-left: 0; justify-content: flex-end; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.10rem; }
  .container, section, .section { padding-left: 4vw; padding-right: 4vw; }
  .card, .testimonial-card, .text-section, .cookie-modal { padding: 16px 8px; }
  .btn-primary, .cookie-consent-banner .cookie-btn { font-size: 0.92rem; padding: 8px 12px; }
}

/* === UTILITIES & MISC === */
.hide { display: none !important; }
.show { display: initial !important; }
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-32 { gap: 32px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-16 { margin-bottom: 16px !important; }
.text-center { text-align: center !important; }
.justify-center { justify-content: center !important; align-items: center !important; }
.align-baseline { align-items: baseline !important; }

/* === BRAND COLOR OVERRIDES === */
:root {
  --primary-blue: #244364;
  --brand-green: #3C5D38;
  --brand-accent: #FF9D2F;
  --brand-accent2: #BF7200;
  --brand-secondary: #F8E7C9;
  --brand-offwhite: #F5F7FA;
  --border-gray: #E5EBF3;
}

.btn-primary {
  background: var(--primary-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-accent); color: #fff; }

/* === SPECIAL: Disable focus outlines except on keyboard nav === */
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid #3A6CB3;
  outline-offset: 2px;
}

/* === Loader/Overlay for modal if needed === */
#overlay-loader {
  position: fixed;
  z-index: 99999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(36,67,100,0.56);
  display: flex;
  justify-content: center; align-items: center;
  color: #fff; font-size: 1.5rem;
}

/* === Ensures no absolute/floating overlap in content layout === */
.card, .testimonial-card, .text-section { position: relative; z-index: 1; }

/* --- END OF STYLES --- */
