/* --- 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
  height: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F4F5F7;
  color: #232B34;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
a {
  color: #197391;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #2596BE;
  text-decoration: underline;
}
ul, ol {
  margin: 16px 0 16px 24px;
}
li {
  margin-bottom: 6px;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border-radius: 4px;
  outline: none;
  border: 1px solid #E1E5EA;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* --- TYPOGRAPHY & HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #232B34;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 18px;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.44rem; }
h4 { font-size: 1.13rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.13rem; }
}

p, small {
  color: #232B34;
}
small {
  font-size: 0.94em;
  color: #6e7880;
}

em { font-style: italic; }
strong { font-weight: 600; }

/* --- CONTAINERS & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px 0 rgba(35,43,52,0.06);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}

.card {
  background: #F4F5F7;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(35,43,52,0.07);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 250px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 6px 22px 0 rgba(35,43,52,0.13);
}

.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: 15px;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px 0 rgba(35,43,52,0.08);
  max-width: 515px;
  color: #232B34;
}

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

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper,
  .text-section {
    gap: 14px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .card {
    min-width: unset;
    padding: 16px;
  }
  .card-container,
  .content-grid,
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #232B34;
  width: 100%;
  box-shadow: 0 2px 8px 0 rgba(35,43,52,0.05);
  position: relative;
  z-index: 10;
}
.nav-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 18px 0;
  gap: 28px;
}
.logo-link img {
  height: 42px;
  width: auto;
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  color: #F4F5F7;
  font-weight: 500;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 6px 16px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  background: #2596BE;
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: #F4F5F7;
  background: none;
  border: none;
  margin-left: 14px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #2596BE;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(35,43,52,0.97);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.65,.09,.36,1);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  color: #F4F5F7;
  margin: 24px 24px 8px 0;
  border: none;
  transition: color 0.2s;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #2596BE;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  padding: 38px 32px 18px 32px;
}
.mobile-nav a {
  color: #F4F5F7;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 12px 4px 12px 13px;
  width: 100%;
  transition: background 0.21s, color 0.21s;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #2596BE;
  color: #fff;
}

@media (max-width: 1024px) {
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- HERO SECTIONS --- */
.hero-section {
  padding: 0;
  background: #197391;
  color: #fff;
  margin-bottom: 48px;
}
.hero-section .container {
  padding: 0 20px;
}
.hero-section .content-wrapper {
  padding: 64px 0 50px 0;
  align-items: flex-start;
  gap: 24px;
}
.hero-section h1, .hero-section p {
  color: #fff;
}
.hero-section .cta-button {
  margin-top: 10px;
}
@media (max-width: 768px) {
  .hero-section .content-wrapper {
    padding: 38px 0 30px 0;
    gap: 16px;
  }
}

/* --- CTA BUTTONS --- */
.cta-button, .btn, button.cta-button {
  display: inline-block;
  background: #2596BE;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 13px 38px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(35,43,52,0.09);
  transition: background 0.2s, color 0.2s, box-shadow 0.20s, transform 0.18s;
  margin-top: 8px;
}
.cta-button:hover, .cta-button:focus, .btn:hover, .btn:focus {
  background: #197391;
  color: #fff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 5px 20px 0 rgba(35,43,52,0.13);
}

/* --- SEARCH BAR --- */
.search-bar {
  margin-top: 12px;
  width: 100%;
  max-width: 430px;
}
.search-bar input[type='search'] {
  width: 100%;
  padding: 13px 17px;
  border-radius: 7px;
  border: 1.5px solid #E1E5EA;
  background: #fff;
  color: #232B34;
  font-size: 1.07rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar input:focus {
  border-color: #2596BE;
  box-shadow: 0 1px 8px rgba(37,150,190,0.06);
}

/* --- CARDS/STYLED BLOCKS --- */
.step-by-step {
  background: #F4F5F7;
  border-radius: 8px;
  padding: 18px 20px 20px 28px;
  margin: 12px 0 18px 0;
  box-shadow: 0 2px 8px 0 rgba(35,43,52,0.07);
}
.step-by-step h3 {
  margin-bottom: 11px;
}

@media (max-width: 768px) {
  .step-by-step {
    padding: 12px 8px 10px 12px;
  }
}

/* --- TESTIMONIALS --- */
.testimonials-section {
  margin-bottom: 60px;
}
.testimonial-card p {
  color: #232B34;
  font-size: 1.09rem;
}
.testimonial-card small {
  color: #2596BE;
  font-style: italic;
  font-size: 0.95rem;
}

/* --- FOOTER --- */
footer {
  background: #232B34;
  color: #F4F5F7;
  padding: 38px 0 18px 0;
}
.footer-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-branding img {
  height: 38px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.footer-nav a {
  color: #F4F5F7;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #2596BE;
}
footer p {
  color: #ABB3BA;
  font-size: 0.99rem;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 22px;
  }
  .footer-branding {
    margin-top: 8px;
  }
}

/* --- LEGAL PAGES --- */
.legal-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px 0 rgba(35,43,52,0.06);
}
.legal-section h1,
.legal-section h2 {
  margin-bottom: 9px;
}
.legal-section ul, .legal-section ol {
  margin-left: 28px;
}

@media (max-width: 768px) {
  .legal-section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
}

/* --- THANK YOU --- */
.thank-you-section {
  margin: 48px 0;
  padding: 48px 16px 42px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px 0 rgba(35,43,52,0.11);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (max-width: 768px) {
  .thank-you-section {
    padding: 20px 6px 22px 6px;
    gap: 12px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  width: 100vw;
  background: #fff;
  border-top: 1.5px solid #E1E5EA;
  box-shadow: 0 -1px 16px 0 rgba(40,53,66,0.11);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 23px 16px 16px 16px;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-banner.hide {
  opacity: 0; pointer-events: none;
}
.cookie-banner__desc {
  flex: 1 1 320px;
  font-size: 15px;
  color: #232B34;
  line-height: 1.6;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.cookie-btn, .cookie-btn-primary, .cookie-btn-secondary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 26px;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s;
}
.cookie-btn-primary {
  background: #2596BE;
  color: #fff;
  box-shadow: 0 1px 7px 0 rgba(35,43,52,0.09);
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: #197391;
}
.cookie-btn-secondary {
  background: #F4F5F7;
  color: #232B34;
  border: 1px solid #C6CED7;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #E1E5EA;
}
.cookie-btn {
  background: #fff;
  color: #232B34;
  border: 1px solid #2596BE;
  padding: 10px 17px;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #E1E5EA;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .cookie-banner__desc {
    font-size: 14px;
    max-width: 95vw;
  }
  .cookie-banner__actions {
    gap: 9px;
    flex-wrap: wrap;
  }
}

/* --- COOKIE MODAL --- */
.cookie-modal-bg {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,43,52,0.51);
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.24s;
  pointer-events: auto;
}
.cookie-modal-bg.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 13px;
  max-width: 420px;
  width: 92vw;
  padding: 28px 22px 22px 28px;
  box-shadow: 0 6px 40px 0 rgba(35,43,52,0.17);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.27rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cookie-switch input { display: none; }
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #E1E5EA;
  border-radius: 24px;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: #2596BE;
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 6px 0 rgba(35,43,52,0.1);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-modal .btn-row {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 9px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 23px;
  background: none;
  color: #232B34;
  font-size: 1.32rem;
  border: none;
  cursor: pointer;
  z-index: 1;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #197391;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 14px 5px 12px 13px;
    gap: 12px;
    font-size: 0.97rem;
  }
  .cookie-modal h2 {
    font-size: 1rem;
  }
}

/* --- ACCESSIBILITY FOCUS --- */
a:focus, button:focus, input:focus {
  outline: 2px solid #2596BE ;
  outline-offset: 2px;
}

.cta-button:focus, .btn:focus {
  outline: 2.5px solid #197391;
  outline-offset: 2px;
}

/* --- ANIMATIONS & TRANSITIONS --- */
.section, .card, .testimonial-card, .step-by-step, .thank-you-section {
  transition: box-shadow 0.25s, transform 0.18s;
}
.section:hover, .card:hover, .testimonial-card:hover, .step-by-step:hover, .thank-you-section:hover {
  box-shadow: 0 7px 30px 0 rgba(35,43,52,0.13);
  transform: translateY(-3px) scale(1.01);
}

/***** Responsive Layout Improvements *****/
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 3px;
  }
  .card { padding: 9px; }
  .section { padding: 12px 4px; margin-bottom: 22px; }
  h1, h2 { font-size: 1.12rem; }
  nav, .footer-nav { gap: 10px; }
}

/* --- UTILITY CLASSES & SPACING --- */
.mb-0 {margin-bottom: 0;}
.mt-0 {margin-top: 0;}
.text-center {text-align: center;}
.gap-8 {gap: 8px;}
.gap-16 {gap: 16px;}
.gap-24 {gap: 24px;}
.mt-24 {margin-top: 24px;}

/* --- Prevent Overlapping and Z-Index --- */
header,
footer,
.mobile-menu,
.cookie-banner,
.cookie-modal-bg {
  z-index: 50;
}
footer {
  z-index: 20;
}
.mobile-menu {
  z-index: 999;
}
.cookie-banner { z-index: 1200; }
.cookie-modal-bg {z-index: 1250;}

/* --- Hide utility for JS toggles --- */
.hide, .hidden {
  display: none !important;
}
