/* ========================================
   CSS RESET & BASE NORMALIZATION
======================================== */
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, 
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 {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F1F6FB;
  color: #142137;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #3156A5;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #19A880;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button:focus {
  outline: 2px solid #3156A5;
  outline-offset: 2px;
}

/* ========================================
   VARIABLES (with fallbacks)
======================================== */
:root {
  --color-primary: #3156A5;
  --color-primary-dark: #223970;
  --color-secondary: #19A880;
  --color-accent: #F1F6FB;
  --color-bg: #F1F6FB;
  --color-text: #142137;
  --color-card: #fff;
  --color-card-border: #DFE6F3;
  --color-shadow: rgba(49,86,165,0.10);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ========================================
   LAYOUT CONTAINERS & COMMON SPACING
======================================== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 20px;
  }
  .container {
    padding: 0 8px;
  }
}

/* ==========================
   TYPOGRAPHY & HEADINGS
========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.7rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
}
p,
ul,
ol {
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1rem;
}
p, ul, ol, .subheadline {
  margin-bottom: 16px;
}
.subheadline {
  font-size: 1.25rem;
  color: #4a6187;
  font-family: var(--font-body);
  font-weight: 400;
  margin-bottom: 19px;
}
strong, b {
  font-weight: 700;
}

/* ========================================
   HEADER & NAVIGATION (Desktop)
======================================== */
header {
  background: var(--color-card);
  box-shadow: 0 3px 20px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 77px;
}
.logo img {
  height: 44px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  padding: 3px 10px;
  transition: color 0.2s, background 0.2s;
  border-radius: 5px;
}
nav a:hover,
nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  padding: 11px 28px;
  font-size: 1.08rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-left: 30px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px var(--color-shadow);
  border: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.16s;
  cursor: pointer;
  text-align: center;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 6px 22px rgba(25,168,128,0.09);
  transform: translateY(-2px) scale(1.035);
}
.cta.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 16px;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
  cursor: pointer;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-accent);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* HIDE MOBILE MENU BUTTON ON DESKTOP */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-primary-dark);
  font-size: 2.1rem;
  display: none;
  cursor: pointer;
  margin-left: 22px;
  padding: 4px 10px;
  border-radius: 7px;
  transition: background .16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  header .container {
    height: 65px;
    padding: 0 10px;
  }
  .logo img { height: 38px; }
}

@media (max-width: 900px) {
  nav {
    gap: 13px;
  }
  .cta.primary {
    display: none;
  }
}

@media (max-width: 768px) {
  header .container {
    height: 61px;
    padding: 0 5px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .logo img { height: 29px; }
}

/* ========================================
   MOBILE MENU
======================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.75,.05,.38,1.13);
  box-shadow: 0 3px 32px rgba(20,33,55, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
  min-height: 100vh;
  width: 100vw;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-primary-dark);
  font-size: 2.2rem;
  cursor: pointer;
  align-self: flex-end;
  margin: 20px 25px 10px 0;
  padding: 5px 12px;
  border-radius: 7px;
  transition: background 0.16s;
  z-index: 10;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 6px 40px 0 40px;
  margin-top: 7px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.17rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  padding: 17px 8px 11px 4px;
  border-bottom: 1px solid #E6EAF2;
  border-radius: 0;
  margin-bottom: 4px;
  transition: color 0.18s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
@media (min-width: 769px) {
  .mobile-menu { display: none!important; }
  .mobile-menu-toggle { display: none!important; }
}
@media (max-width: 600px) {
  .mobile-nav { padding: 6px 16px 0 22px; }
}

/* ========================================
   HERO AREA
======================================== */
.hero {
  background: linear-gradient(120deg, #F1F6FB 60%, #d4e3fa 100%);
  padding: 48px 0 44px 0;
  margin-bottom: 40px;
}
.hero .container {
  min-height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 21px;
}
.hero h1 {
  color: var(--color-primary);
}
@media (max-width: 768px) {
  .hero { padding: 34px 0 28px 0; }
}

/* ========================================
   FEATURE GRIDS & FLEX SECTIONS
======================================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 22px;
}
.feature {
  flex: 1 1 270px;
  border-radius: 15px;
  background: var(--color-card);
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 28px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  min-width: 210px;
  max-width: 340px;
  border: 1px solid var(--color-card-border);
  transition: box-shadow .19s, transform .16s;
}
.feature img {
  width: 45px;
  height: 45px;
}
.feature h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
}
.feature:hover {
  box-shadow: 0 8px 32px rgba(49,86,165,0.16);
  transform: translateY(-3px) scale(1.025);
}

@media (max-width: 900px) {
  .feature-grid { gap: 18px; }
  .feature { padding: 22px 13px 14px 13px; }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature { max-width: 100%; width: 100%; }
}

/* ========================================
   CARD & CARD CONTAINERS
======================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0;
}
.card {
  margin-bottom: 20px;
  background: var(--color-card);
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--color-shadow);
  border: 1px solid var(--color-card-border);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 30px 26px;
  min-width: 250px;
  max-width: 370px;
  transition: box-shadow .18s, transform .13s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(49,86,165,0.15);
  transform: translateY(-3px) scale(1.018);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}

/* ========================================
   FLEX LAYOUT PATTERNS
======================================== */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
  .content-grid, .card-container {
    flex-direction: column;
  }
}

/******************************************
   TESTIMONIALS 
*******************************************/
.testimonials {
  background: #F1F6FB;
  padding: 40px 0;
}
.testimonials .content-wrapper {
  gap: 26px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  color: #142137;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 1.5px 9px #CFDFF6;
  border: 1px solid var(--color-card-border);
  font-size: 1.12rem;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.11s;
}
.testimonial-card p {
  font-size: 1.07rem;
  color: #223970;
  flex: 1 1 auto;
  font-family: var(--font-body);
  margin-bottom: 7px;
}
.testimonial-card span {
  color: #3156A5;
  font-size: .97rem;
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
}
.testimonial-card:hover {
  box-shadow: 0 6px 21px rgba(49,86,165,0.09);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 17px 12px;
  }
}

/******************************************
   LISTS, TABLES, ICON-GRID, STEP-LIST
*******************************************/
ul.service-list li, ul li {
  margin-bottom: 11px;
  padding-left: 0;
  font-family: var(--font-body);
}
ul.service-list li span {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
}
.step-list ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}
.step-list ul li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 1rem;
  margin-bottom: 0;
}
.step-list img {
  width: 30px;
  height: 30px;
}
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 10px;
}
.icon-grid img {
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 5.5px #D7E5F7;
  width: 45px;
  height: 45px;
  padding: 6px;
  transition: box-shadow .12s;
}
.icon-grid img:hover {
  box-shadow: 0 7px 22px #bdd5ee;
}

/******************************************
   TABLE STYLING
*******************************************/
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  margin: 23px 0 17px 0;
  box-shadow: 0 2px 9px #e5ebf3;
  overflow: hidden;
}
th, td {
  padding: 10px 15px;
  border: 1px solid #e4edfa;
  color: #223970;
  text-align: left;
  font-size: 1rem;
}
th {
  background: #f5faff;
  font-family: var(--font-display);
  font-weight: 700;
  color: #3156A5;
}
td {
  background: #fff;
  font-family: var(--font-body);
  font-weight: 400;
}
@media (max-width: 600px) {
  table, th, td {
    font-size: 0.97rem;
    padding: 6px 8px;
  }
}

/******************************************
   MAP & CONTACT AREAS
*******************************************/
.map {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  min-height: 120px;
  background: #f1f6fb;
  border-radius: 8px;
  box-shadow: 0 2px 8px #DFE6F3;
}

/******************************************
   FOOTER
*******************************************/
footer {
  background: #223970;
  color: #fff;
  padding: 46px 0 0 0;
  margin-top: 33px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.footer-logo img {
  height: 50px;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #CBD6EC;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.005em;
  font-weight: 500;
  transition: color .17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #19A880;
}
.footer-contact {
  color: #B1C1E4;
  font-family: var(--font-body);
  font-size: .98rem;
  margin-top: 2px;
}
.footer-contact span {
  margin-right: 6px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 22px; 
    text-align: center;
  }
  .footer-logo img { margin-bottom: 4px; }
}

/******************************************
   COOKIE CONSENT BANNER
*******************************************/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #223970;
  color: #fff;
  padding: 26px 16px 20px 16px;
  box-shadow: 0 -6px 26px rgba(20,33,55,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 202;
  font-size: 1rem;
  gap: 15px;
  animation: fadeInUp .39s cubic-bezier(.7,0,.4,1.1);
}
.cookie-banner__buttons {
  display: flex;
  gap: 13px;
  margin-top: 7px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 18px;
  font-size: 1.02rem;
  border-radius: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: background 0.18s, color 0.15s, border .14s;
  box-shadow: 0 1.4px 6.5px rgba(49,86,165,0.14);
  border: 2px solid var(--color-primary);
  background: #fff;
  color: var(--color-primary-dark);
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary-dark);
  border: 2px solid #37559C;
}
.cookie-btn.settings {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border: 2px solid #e6edfa;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
@media (max-width: 768px) {
  .cookie-banner { font-size: .96rem; padding: 20px 4px 14px 4px; }
  .cookie-banner__buttons { flex-direction: column; gap: 7px; }
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,33,55, 0.36);
  z-index: 203;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn .28s cubic-bezier(.6,0,.7,1);
}
.cookie-modal__content {
  background: #fff;
  color: #142137;
  border-radius: 14px;
  max-width: 420px;
  width: 94vw;
  padding: 32px 24px 25px 24px;
  box-shadow: 0 3px 36px rgba(49,86,165,0.21);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  gap: 21px;
  animation: slideDown .34s cubic-bezier(.7,0,.4,1.1);
}
.cookie-modal__close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #223970;
  cursor: pointer;
  border-radius: 50%;
  transition: background .12s;
  padding: 3px 10px;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #F6FAFF;
  color: #19A880;
}
.cookie-modal__categories {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-top: 13px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 1.03rem;
  padding: 7px 0;
}
.cookie-modal__category label {
  font-weight: 600;
  color: #223970;
}
.cookie-toggle {
  appearance: none;
  width: 48px;
  height: 26px;
  background: #e6edfa;
  outline: none;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  transition: background .17s;
}
.cookie-toggle:checked {
  background: var(--color-primary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 4px; left: 5px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s, background .15s;
  box-shadow: 0 1.5px 7.5px #ABB7D5;
}
.cookie-toggle:checked:before {
  transform: translateX(20px);
  background: var(--color-secondary);
}
.cookie-modal__category.essential label {
  color: #a2b7db;
  font-style: italic;
  font-weight: 400;
}
.cookie-modal__category.essential .cookie-toggle {
  opacity: 0.6;
  pointer-events: none;
}
@media (max-width: 450px) {
  .cookie-modal__content { padding: 17px 6px 14px 6px; font-size: .98rem; }
}

/* Cookie banner/modal animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity:1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-38px); }
  to   { opacity: 1; transform: translateY(0); }
}

/******************************************
   MISC COMPONENTS
*******************************************/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 150px;
  margin-bottom: 20px;
}
.text-section {
  margin-top: 0px;
  margin-bottom: 13px;
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}

/******************************************
   RESPONSIVE HELPERS
*******************************************/
@media (max-width: 600px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.07rem; }
  .feature,
  .card {
    padding: 12px 5px;
    min-width: 0;
    max-width: 100%;
  }
}

/******************************************
   INTERACTIVE STATES
*******************************************/
button, .cta, .cookie-btn {
  transition: background .16s, color .14s, border .14s, box-shadow .18s, transform .14s;
}
button:active, .cta:active, .cookie-btn:active {
  transform: scale(0.97);
}

/******************************************
   ACCESSIBILITY FOCUS STYLES
*******************************************/
:focus-visible {
  outline: 2.5px dashed #19A880;
  outline-offset: 3px;
}

/******************************************
   Z-INDEX GENERAL
*******************************************/
header { z-index: 90; }
.mobile-menu { z-index: 200; }
.cookie-banner { z-index: 202; }
.cookie-modal { z-index: 203; }

/* END OF STYLE.CS */