/* RESET & NORMALIZE */
html {box-sizing: border-box;font-size: 16px;}
*, *:before, *:after {box-sizing: inherit; margin:0; padding:0;}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, a, button, input, textarea {font-family: inherit; font-size: inherit; line-height: inherit; color: inherit;}
ul, ol {list-style: none;}
a {text-decoration: none; color: inherit; transition: color 0.2s;}
img {max-width: 100%; height: auto; display: inline-block; vertical-align: middle; border: 0;}
button {border: none; background: none; cursor: pointer; font: inherit;}

/* 1. CORE VARIABLES AND BRAND COLORS */
:root {
  --color-primary: #166D8B;
  --color-secondary: #258EA6;
  --color-accent: #F8FBFF;
  --color-white: #fff;
  --color-black: #1a222a;
  --color-grey-100: #f1f4f8;
  --color-grey-200: #e3e9f1;
  --color-grey-300: #d1dae6;
  --color-grey-400: #b2bccc;
  --color-grey-700: #677385;
  --color-blue-bg: #eaf4fa;
  --header-height: 72px;
  --shadow: 0 2px 10px 0 rgba(22,109,139,0.07);
  --radius: 12px;
}

/* 2. FONTS */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-black);
  background: var(--color-accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}
p, ul li, ol li {
  color: var(--color-black);
  font-size: 1rem;
  margin-bottom: 14px;
  line-height: 1.7;
}
strong, b {
  font-weight: 700;
}

/* 3. CONTAINER AND STRUCTURED LAYOUTS */
.container {
  width: 100%;
  max-width: 1176px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: var(--color-grey-100);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-width: 260px;
  transition: box-shadow 0.22s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 4px 22px 0 rgba(22, 109, 139, 0.13);
  transform: translateY(-4px);
}
.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: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-accent);
  border: 1px solid var(--color-grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 530px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 18px 0 rgba(22, 109, 139,0.13);
}
.testimonial-card p {
  color: var(--color-black);
  font-size: 1.13rem;
  font-style: italic;
  margin-bottom: 8px;
}
.testimonial-card cite {
  color: var(--color-grey-700);
  font-size: 1rem;
  font-style: normal;
  font-family: 'Open Sans', Arial, sans-serif;
  letter-spacing: 0.1px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 4. HEADER & NAVIGATION */
header {
  background: var(--color-white);
  box-shadow: 0 2px 10px 0 rgba(22, 109, 139, 0.06);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 6px 3px;
  font-weight: 500;
  letter-spacing: 0.22px;
  border-radius: 4px;
  transition: background 0.17s, color 0.17s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cta-button {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-primary);
  color: #fff;
  padding: 13px 26px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.07rem;
  box-shadow: 0 2px 8px 0 rgba(22, 109, 139, 0.10);
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
  outline: none;
  border: none;
  display: inline-block;
  margin-left: 12px;
  letter-spacing: 0.4px;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 12px 0 rgba(22, 109, 139, 0.16);
  transform: translateY(-2px);
}

/* 5. MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2.1rem;
  line-height: 1;
  border-radius: 6px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  z-index: 41;
  transition: background 0.15s;
  margin-left: 14px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -4px 0 24px 2px rgba(22, 109, 139, 0.10);
  z-index: 9999;
  padding: 30px 22px 16px 22px;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.55,.06,.43,.98);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-grey-200);
  color: var(--color-primary);
  border-radius: 22px;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1.14rem;
  font-weight: 600;
  padding: 12px 0 12px 0;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
  outline: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-blue-bg);
  color: var(--color-secondary);
}

/* 6. FOOTER */
footer {
  background: var(--color-grey-100);
  border-top: 1px solid var(--color-grey-200);
  padding: 40px 0 18px 0;
  font-size: 0.95rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}
.footer-nav a {
  color: var(--color-primary);
  font-weight: 500;
  padding: 4px 7px;
  border-radius: 4px;
  transition: background 0.13s;
}
.footer-nav a:hover { background: var(--color-blue-bg); }
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  color: var(--color-grey-700);
}
.footer-contact img {
  width: 19px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}
.footer-branding img {
  width: 32px;
}
.footer-map {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.99rem;
}
.footer-map img {
  width: 22px;
}

/* 7. HERO & SECTION STYLES */
main section {
  margin-bottom: 60px;
  padding: 40px 0;
}
main section:last-child { margin-bottom: 0; }
main section > .container > .content-wrapper > h1,
main section > .container > .content-wrapper > h2 {
  margin-bottom: 14px;
}
main section .cta-button {
  margin-top: 7px;
}

/* 8. FAQ, LEGAL, STATIC TEXT SECTIONS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 730px;
}
.text-section ul {
  margin-bottom: 8px;
}
.text-section ul li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.text-section strong { color: var(--color-primary); }
.text-section a { color: var(--color-secondary); text-decoration: underline; }
.text-section a:hover { text-decoration: none; }

/* 9. BULLET AND ICON LISTS */
ul li img, ol li img {
  width: 26px;
  margin-right: 14px;
  vertical-align: middle;
  display: inline-block;
}
ul li, ol li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

ol { counter-reset: item; }
ol li {
  list-style: none;
  position: relative;
  padding-left: 34px;
}
ol li:before {
  counter-increment: item;
  content: counter(item) '.';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 700;
}

/* 10. RESPONSIVE DESIGN */
@media (max-width: 1200px) {
  .container {max-width: 940px;}
}
@media (max-width: 992px) {
  .container {max-width: 700px;}
  header .container {padding: 0 12px;}
  .section {padding: 33px 10px;}
}
@media (max-width: 768px) {
  html {font-size: 15px;}
  header .container {
    flex-direction: row;
    height: auto;
    padding: 0 10px;
  }
  .main-nav {display: none;}
  .cta-button {margin-left: 0;}
  .mobile-menu-toggle {display: flex;}
  .mobile-menu {top: 0;right: 0;left:auto;}
  .footer-nav {flex-direction: column;gap: 10px;}
  .section, main section {padding: 26px 7px;}
  .container {padding: 0 8px;}
  .content-wrapper {
    gap: 17px;
  }
  .content-grid,
  .card-container {
    flex-direction: column !important;
    gap: 16px;
  }
  .testimonial-card {max-width: 99vw;}
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
@media (max-width: 520px) {
  html {font-size: 14px;}
  .container {padding: 0 3px;}
  .card, .section {padding: 14px 6px;}
}

/* 11. FORMS & BUTTONS */
input, textarea, select {
  font-family: inherit;
  padding: 12px 12px;
  border: 1px solid var(--color-grey-300);
  border-radius: 6px;
  background: var(--color-white);
  font-size: 1rem;
  margin-bottom: 11px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
}
button, .button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-secondary);
  color: #fff;
  padding: 11px 22px;
  border-radius: 24px;
  box-shadow: 0 2px 7px 0 rgba(22,109,139,0.08);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 9px 0 0;
  transition: background 0.16s, transform 0.14s, box-shadow 0.14s;
}
button:hover, .button:hover, .btn:hover, button:focus, .button:focus, .btn:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px 0 rgba(22, 109, 139, 0.16);
}

/* 12. COOKIE CONSENT BANNER */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-blue-bg);
  box-shadow: 0 -2px 16px 0 rgba(22, 109, 139, 0.08);
  border-top: 1px solid var(--color-grey-300);
  z-index: 15000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  gap: 22px;
  animation: fadeInUp 0.7s both;
}
@keyframes fadeInUp {
  from {transform: translateY(40px); opacity:0;}
  to {transform: translateY(0); opacity:1;}
}
.cookie-consent-banner .banner-text {
  font-size: 1rem;
  color: var(--color-primary);
  font-family: 'Open Sans', Arial, sans-serif;
  margin-right: 8px;
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 26px;
  border: none;
  font-size: 0.99rem;
  padding: 10px 22px;
  transition: background 0.13s, transform 0.13s;
  box-shadow: 0 2px 7px 0 rgba(22, 109, 139, 0.08);
}
.cookie-btn.secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.cookie-btn.settings {
  background: var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--color-grey-100);
  color: var(--color-primary);
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(22,109,139,0.33);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.36s;
}
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-white);
  padding: 36px 22px 32px 22px;
  border-radius: var(--radius);
  box-shadow: 0 10px 38px 0 rgba(22,109,139,0.17);
  max-width: 370px;
  width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  animation: fadeInModal 0.26s both;
}
@keyframes fadeInModal {
  from { transform: scale(0.96); opacity:0; }
  to { transform: scale(1); opacity:1; }
}
.cookie-modal .modal-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.cookie-modal .category-label {
  color: var(--color-black);
  font-size: 1.02rem;
}
.cookie-modal .toggle-switch {
  width: 36px;height: 20px;position: relative;display: inline-block;
}
.cookie-modal .toggle-switch input {
  opacity: 0; width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-grey-300);
  border-radius: 13px;
  transition: background 0.17s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--color-primary);
}
.cookie-modal .slider:before {
  position: absolute; content: "";
  height: 16px; width: 16px;
  left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.17s;
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(16px);
}
.cookie-modal .cookie-btns {
  margin-top: 19px;
  gap: 7px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute; top: 14px; right: 14px;
  background: none; color: var(--color-secondary); font-size: 1.3rem;
  width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.13s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: var(--color-grey-200);
}

/* 13. UTILITIES */
.mb-32 {margin-bottom: 32px !important;}
.mt-32 {margin-top: 32px !important;}
.gap-20 {gap:20px;}
.gap-24 {gap:24px;}
.text-center {text-align: center;}

/* 14. MICRO-ANIMATIONS */
a, button, .cta-button, .main-nav a, .mobile-nav a {
  transition: color 0.12s, background 0.13s, box-shadow 0.16s, transform 0.12s;
}

/* 15. ACCESSIBILITY: FOCUS OUTLINE */
a:focus, button:focus, .cta-button:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* 16. SELECTION STYLING */
::selection {
  background: var(--color-primary);
  color: #fff;
}

/* 17. Z-INDEX LAYERING (esp. for mobile menu and cookies) */
header {z-index: 30;}
.mobile-menu {z-index: 9999;}
.cookie-consent-banner {z-index: 15000;}
.cookie-modal-overlay {z-index: 20000;}

/* 18. PRINT OPTIMIZATION */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu {display:none !important;}
  .container {max-width: none; padding:0;}
}
