/* ===== 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, 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; font-size: 100%; scroll-behavior: smooth; }
body { line-height: 1.5; background: #F6F9FB; color: #16324F; min-height: 100vh; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  border: 0; max-width: 100%; display: block;
}
table { border-collapse: collapse; border-spacing: 0; }
strong, b { font-weight: 600; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

/* ==== BRAND FONTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500;700&display=swap');
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #16324F;
  background: #F6F9FB;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #16324F;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.2; }
h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.2; }
h3 { font-size: 1.4rem; margin-bottom: 12px; line-height: 1.25; }
h4, h5, h6 { font-size: 1rem; }
p, ul, ol, li, blockquote { font-size: 1rem; line-height: 1.7; margin-bottom: 12px; }
.section ul, .section ol { padding-left: 18px; } /* retain some indentation */
blockquote {
  font-style: italic;
  border-left: 4px solid #20A4F3;
  padding-left: 16px;
  color: #102538;
}

/* ==== SPACING & CONTAINERS ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(22,50,79,0.06);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(22,50,79,0.07);
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.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;
  background: #F6F9FB;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(22, 50, 79, 0.05);
  margin-bottom: 20px;
  color: #16324F;
}
.testimonial-card blockquote {
  border: none;
  background: none;
  color: #102538;
  font-style: italic;
  font-size: 1.08rem;
}
.testimonial-card footer {
  font-size: 0.96rem;
  color: #16324F;
  display: flex;
  align-items: center;
  gap: 16px;
}
.testimonial-card span {
  color: #20A4F3;
  font-size: 1.2em;
  vertical-align: text-top;
  letter-spacing: 1px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #16324F;
  padding: 0;
  width: 100%;
  box-shadow: 0 2px 12px rgba(22, 50, 79, 0.07);
  position: relative;
  z-index: 50;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 18px 16px;
  justify-content: flex-start;
}
header nav img {
  height: 44px;
  margin-right: 24px;
  display: block;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #fff;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background 0.17s, color 0.2s;
}
header nav a.cta-primary,
.cta-primary {
  background: #20A4F3;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 10px;
  padding: 11px 28px;
  font-size: 1.05rem;
  margin-left: 10px;
  box-shadow: 0 3px 18px rgba(32,164,243,0.08);
  transition: background 0.2s, color 0.14s, box-shadow 0.2s;
  border: none;
}
header nav a:hover,
.cta-primary:hover, .cta-primary:focus {
  background: #16324F;
  color: #20A4F3;
  box-shadow: 0 4px 32px rgba(32,164,243,0.14);
  outline: none;
}
header nav a.cta-primary:hover, header nav a.cta-primary:focus {
  background: #fff;
  color: #16324F;
}
header nav a:active {
  background: #122642;
  color: #20A4F3;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  background: #20A4F3;
  border-radius: 7px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 202;
  transition: background 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #16324F;
  color: #20A4F3;
  outline: 2px solid #20A4F3;
}
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  left: 0;
  background: rgba(22,50,79,0.96);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.69,.09,.27,.93);
  z-index: 301;
  display: flex;
  justify-content: flex-end;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: #fff;
  color: #16324F;
  font-size: 2rem;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.14s;
  z-index: 303;
  box-shadow: 0 4px 30px rgba(22, 50, 79, 0.07);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #20A4F3;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  background: #fff;
  min-width: 240px;
  max-width: 90vw;
  height: 100vh;
  padding: 84px 24px 32px 28px;
  box-shadow: -10px 0 28px rgba(22,50,79,0.14);
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.14rem;
  letter-spacing: 0.01em;
  color: #16324F;
  padding: 12px 8px;
  border-radius: 8px;
  transition: background 0.16s, color 0.14s;
  margin-bottom: 4px;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #20A4F3;
  color: #fff;
}
@media (max-width: 1024px) {
  header nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    font-size: 0.98rem;
  }
  header nav img {
    height: 36px;
    margin-right: 10px;
  }
}
@media (max-width: 900px) {
  header nav {
    padding-left: 10px;
    gap: 8px 10px;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 38px;
    padding: 24px 8px;
    border-radius: 11px;
  }
  .card {
    padding: 16px 10px;
    border-radius: 8px;
  }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.03rem; }
  .testimonial-card {
    padding: 12px 8px;
    border-radius: 8px;
  }
  .mobile-menu-close, .mobile-menu-toggle {
    width: 38px; height: 38px;
    font-size: 1.55rem;
  }
}

/* ===== MAIN LAYOUT STRUCTURE ===== */
main {
  min-height: 520px;
  padding-top: 16px;
}

/* ===== HERO & CTA BUTTONS ===== */
.cta-primary {
  display: inline-block;
  background: #20A4F3;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 12px;
  font-size: 1.15rem;
  padding: 13px 34px;
  margin-top: 12px;
  margin-bottom: 8px;
  box-shadow: 0 4px 20px rgba(32,164,243,0.11);
  text-align: center;
  border: none;
  transition: background 0.22s, color 0.14s, box-shadow 0.2s, transform 0.12s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #16324F;
  color: #20A4F3 !important;
  transform: translateY(-2px) scale(1.02);
  outline: 2px solid #20A4F3;
}

/* ==== UL/LI CUSTOM STYLES FOR FEATURE LISTS === */
ul, ol {
  margin-bottom: 24px;
}
ul li, ol li {
  margin-bottom: 14px;
  position: relative;
  padding-left: 20px;
}
ul li::before {
  content: '';
  width: 8px; height: 8px;
  background: #20A4F3;
  border-radius: 100%;
  position: absolute;
  left: 0; top: 10px;
  display: inline-block;
}
ol li {
  counter-increment: item;
  list-style: none;
}

/* ==== FEATURES ICONS ==== */
ul li img {
  width: 32px; height: 32px; vertical-align: middle; margin-right: 8px;
  display: inline-block; margin-bottom: -8px;
}

/* ==== CARDS (PRODUCTS, TEAM, ETC) ==== */
.card-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.card-grid > * , .card-container > * , .content-grid > * {
  flex: 1 1 240px;
  min-width: 220px;
}
@media (max-width: 768px) {
  .card-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid > *, .card-container > *, .card-grid > * {
    min-width: 0;
  }
}

/* ===== TEXT & IMAGE SECTION FLEX ===== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* ====== FOOTER ====== */
footer {
  background: #16324F;
  color: #fff;
  padding: 36px 0 20px 0;
  margin-top: 60px;
  font-size: 1rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
  justify-content: flex-start;
  padding: 0 16px;
}
footer nav a {
  color: #20A4F3;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 3px 8px;
  border-radius: 5px;
  transition: background 0.12s, color 0.16s;
}
footer nav a:hover, footer nav a:focus {
  background: #20A4F3;
  color: #fff;
}
footer .text-section {
  font-size: 0.95rem;
  color: #F6F9FB;
  padding: 8px 16px 0 16px;
  line-height: 1.7;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  box-shadow: 0 -2px 18px rgba(22,50,79,0.09);
  padding: 20px 8px 20px 8px;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  max-width: 480px;
  margin: 0 auto;
  left: 0; right: 0;
  animation: cookie-slide-in 0.6s cubic-bezier(.65,.04,.36,1.02);
}
@keyframes cookie-slide-in {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  color: #16324F;
  font-size: 0.98rem;
  margin-bottom: 4px;
  text-align: center;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cookie-banner button {
  background: #20A4F3;
  color: #fff;
  border-radius: 8px;
  border: none;
  padding: 7px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 2px;
  box-shadow: 0 2px 8px rgba(32, 164, 243, 0.07);
  transition: background 0.14s, color 0.15s;
}
.cookie-banner button.cookie-reject {
  background: #eee;
  color: #16324F;
}
.cookie-banner button.cookie-settings {
  background: #16324F;
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #16324F;
  color: #20A4F3;
  outline: 2px solid #20A4F3;
}
.cookie-banner button.cookie-reject:hover, .cookie-banner button.cookie-reject:focus {
  background: #fff;
  color: #16324F;
  outline: 2px solid #16324F;
}

/* ===== COOKIE SETTINGS MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; bottom: 0; right: 0; left: 0;
  background: rgba(22, 50, 79, 0.54);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein-modal 0.25s;
}
@keyframes fadein-modal { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 420px;
  width: 90vw;
  padding: 28px 22px 18px 22px;
  box-shadow: 0 8px 32px rgba(22,50,79,0.11);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.cookie-modal h2 {
  margin-top: 0;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #16324F;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  background: #F6F9FB;
  padding: 10px 5px 10px 13px;
}
.cookie-modal .toggle {
  width: 38px; height: 22px;
  border-radius: 11px;
  background: #eee;
  position: relative;
  margin-left: auto;
  margin-right: 1px;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal .toggle.enabled {
  background: #20A4F3;
}
.cookie-modal .toggle-dot {
  content: '';
  position: absolute;
  left: 3px; top: 2.5px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(22,50,79,0.10);
  transition: left 0.13s;
}
.cookie-modal .toggle.enabled .toggle-dot {
  left: 17px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #eee;
  color: #16324F;
  border-radius: 8px;
  font-size: 1.45rem;
  padding: 3px 11px;
  z-index: 21;
  border: none;
  transition: background 0.13s, color 0.12s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: #20A4F3;
  color: #fff;
}
.cookie-modal .cookie-btn-group {
  margin-top: 14px;
  justify-content: flex-end;
}

/* ==== TYPOGRAPHY SCALE & MISC ===== */
:root {
  --primary: #16324F;
  --secondary: #20A4F3;
  --accent: #F6F9FB;
}
h1, h2, h3, h4, h5, h6, .cta-primary { word-break: break-word; }

/* ==== FORMS (if any appear) ==== */
input, textarea, select {
  border: 1.5px solid #e2e7ed;
  border-radius: 5px;
  background: #fff;
  padding: 9px 12px;
  font-size: 1rem;
  margin-bottom: 14px;
  color: #16324F;
  transition: border 0.15s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #20A4F3;
}
label {
  font-size: 0.93rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #16324F;
  margin-bottom: 6px;
}

/* ==== Misc Elements ==== */
hr {
  border: none;
  height: 1px;
  background: #e5eef8;
  margin: 28px 0;
}
.text-section strong { color: #20A4F3; font-weight: 600; }

/* ==== ICONS in lists / cards ==== */
ul li img, .feature-item img {
  margin-bottom: -8px;
  margin-right: 8px;
}

/* ==== ANIMATIONS & MICRO-INTERACTIONS ==== */
.card, .testimonial-card, .cookie-modal, .cookie-banner {
  transition: box-shadow 0.14s, transform 0.16s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(32,164,243,0.17);
  transform: translateY(-2px);
}

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

/* ==== ENSURE NO OVERLAP ON FLEX LAYOUTS & PROPER SPACING ==== */
.section > *, .content-wrapper > *, .card-container > *, .card > *, .testimonial-card > * {
  margin-bottom: 0;
}
.section + .section, .card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* ==== RESPONSIVE ADJUSTMENTS ==== */
@media (max-width: 768px) {
  .container {
    padding: 0 3vw;
  }
  .content-wrapper {
    gap: 17px;
  }
  .card {
    padding: 12px 5px;
  }
  .testimonial-card {
    gap: 12px;
  }
  footer {
    padding: 20px 0 8px 0;
    font-size: 0.94rem;
  }
}

/* ==== PRINT STYLES: Hide in print ==== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .section { box-shadow: none !important; border: none !important; }
}

/* ==== Z-INDEX MANAGEMENT ==== */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 1000;
}

/* ==== HIDE ELEMENTS PROPERLY ==== */
[hidden] { display: none !important; }

/* ===== END OF STYLE ===== */
