/* ==========================================================================
   CSS RESET & BASELINE
   ========================================================================== */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F4F6F8;
  color: #18334D;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, picture {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #38A9C5;
  text-decoration: none;
}
a:hover, a:focus {
  color: #18334D;
  text-decoration: underline;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   TYPOGRAPHY SYSTEM (gradient_modern style)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #18334D;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  line-height: 1.18;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
p, li, ul, ol, blockquote, small {
  color: #243E58;
  font-size: 1rem;
}
strong {
  color: #18334D;
  font-weight: 700;
}
blockquote {
  font-style: italic;
  color: #243E58;
  border-left: 4px solid #38A9C5;
  padding-left: 18px;
  margin: 0 0 12px 0;
}
small {
  font-size: 0.95rem;
  color: #6C7A89;
}
.tag {
  display: inline-block;
  background: #38A9C5;
  color: #fff;
  font-size: 0.875rem;
  border-radius: 12px;
  padding: 2px 12px;
  margin-left: 6px;
  font-weight: 500;
}

/* ==========================================================================
   LAYOUT STRUCTURE: SECTIONS, CONTAINERS, FLEX
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 28px 0 rgba(24, 51, 77, 0.045);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Spacing helpers */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-60 { margin-bottom: 60px !important; }

/* Gradient backgrounds: hero sections & accents */
section:first-of-type, .hero-section {
  background: linear-gradient(100deg, #38A9C5 0%, #18334D 100%);
  color: #fff;
  box-shadow: 0 6px 48px rgba(24,51,77,0.10);
}
section:first-of-type h1,
section:first-of-type h2,
section:first-of-type p,
.hero-section h1,
.hero-section h2,
.hero-section p {
  color: #fff;
}

/* Other gradient/modern accents */
.features-grid > div,
.feature-item,
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(24, 51, 77, 0.05);
  padding: 20px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

/* Cards/flex layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  min-width: 320px;
  flex: 1 1 320px;
  max-width: 100%;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F4F6F8;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(24, 51, 77, 0.035);
  transition: box-shadow 0.2s, transform 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(56, 169, 197, 0.10);
  transform: translateY(-2px) scale(1.02);
}
.testimonial-card blockquote {
  color: #18334D;
  font-size: 1.05rem;
  flex: 1 1 auto;
  margin-bottom: 0;
}
.testimonial-card footer {
  font-size: 1rem;
  color: #243E58;
  font-style: normal;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid > div {
  flex: 1 1 min(260px, 100%);
  min-width: 230px;
  max-width: 340px;
}

/* Text content formatting */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul, .content-wrapper ul, .content-wrapper ol {
  margin-left: 0;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section li, .content-wrapper li {
  position: relative;
  padding-left: 0;
  line-height: 1.65;
}
.text-section li img, .content-wrapper li img {
  margin-right: 9px;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  display: inline-block;
}
.text-section li a, .content-wrapper li a {
  color: #38A9C5;
  font-weight: 500;
}


/* ==========================================================================
   BUTTONS & CTAS (gradient_modern, accessible)
   ========================================================================== */
.cta-primary, .cta-secondary, button, .mobile-menu-toggle, .mobile-menu-close {
  appearance: none;
  border: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s, transform 0.18s;
  min-height: 48px;
  padding: 0 30px;
  margin-bottom: 0;
  box-shadow: 0 2px 12px rgba(56, 169, 197, 0.08);
}
.cta-primary {
  background: linear-gradient(93deg, #38A9C5 0%, #18334D 100%);
  color: #fff;
  letter-spacing: 0.03em;
  border: none;
  box-shadow: 0 4px 24px 0 rgba(56, 169, 197, 0.10);
}
.cta-primary:hover, .cta-primary:focus-visible {
  background: linear-gradient(93deg, #18334D 0%, #38A9C5 100%);
  color: #fff;
  box-shadow: 0 6px 32px 0 rgba(56, 169, 197, 0.16);
  transform: translateY(-2px) scale(1.03);
}
.cta-secondary {
  background: #fff;
  color: #38A9C5;
  border: 2px solid #38A9C5;
  margin-left: 0;
}
.cta-secondary:hover, .cta-secondary:focus-visible {
  background: #38A9C5;
  color: #fff;
  border-color: #18334D;
  box-shadow: 0 6px 32px 0 rgba(24, 51, 77, 0.09);
  transform: translateY(-1px) scale(1.02);
}
button, .mobile-menu-toggle, .mobile-menu-close {
  background: #38A9C5;
  color: #fff;
}
button:hover, .mobile-menu-toggle:hover, .mobile-menu-close:hover,
button:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible {
  background: #18334D;
  color: #fff;
  box-shadow: 0 0 0 3px #38A9C570;
}

/* Extra visual consistency for links in menus */
nav.main-nav a:not(.cta-primary) {
  color: #243E58;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}
nav.main-nav a:not(.cta-primary):hover, nav.main-nav a:not(.cta-primary):focus-visible {
  background: #F4F6F8;
  color: #38A9C5;
}


/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 18px 0 rgba(24, 51, 77, 0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  position: relative;
}
nav.main-nav > a {
  display: flex;
  align-items: center;
  height: 48px;
}
nav.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
nav.main-nav li {
  margin-bottom: 0 !important;
}

nav.main-nav .cta-primary {
  margin-left: 18px;
}
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 18px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  z-index: 1501;
  background: #38A9C5;
  color: #fff;
  border-radius: 50%;
  border: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, box-shadow 0.18s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.71,0.21,0.36,0.85);
  box-shadow: 0 4px 40px rgba(24, 51, 77, 0.09);
  overflow-y: auto;
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 70px;
  padding: 20px 18px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #18334D;
  font-size: 1.16rem;
  padding: 12px 0 12px 6px;
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.3;
  background: none;
  transition: background 0.11s, color 0.11s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus-visible {
  background: #e5f4fa;
  color: #38A9C5;
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  background: #18334D;
  color: #fff;
  border-radius: 50%;
  z-index: 2100;
  transition: background 0.12s;
}
.mobile-menu-close:focus-visible{
  outline: 2px solid #38A9C5;
}

/* Hide main nav and show burger on mobile */
@media (max-width: 1024px) {
  nav.main-nav ul,
  nav.main-nav .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE FLEX/DIRECTION (mobile-first)
   ========================================================================== */
.content-wrapper,
.text-image-section,
.card-container,
.card,
.features-grid,
.content-grid {
  flex-direction: column;
}
@media (min-width: 600px) {
  .features-grid, .content-grid {
    flex-direction: row;
    gap: 24px;
  }
}
@media (min-width: 900px) {
  .content-wrapper,
  .card-container,
  .content-grid {
    flex-direction: row;
    gap: 24px;
  }
  .features-grid {
    gap: 24px;
  }
  .text-image-section {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }
}
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .section {
    padding: 28px 5px;
    margin-bottom: 36px;
  }
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .card-container, .features-grid, .content-grid, .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  h2 {
    font-size: 1.5rem;
  }
}
@media (max-width: 550px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
  .section {
    padding: 16px 0;
  }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: linear-gradient(97deg, #38A9C5 0%, #18334D 100%);
  color: #fff;
  padding-top: 38px;
  padding-bottom: 12px;
}
footer .container {
  padding-left: 18px;
  padding-right: 18px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-top a {
  color: #fff;
  font-weight: 600;
}
.footer-top ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.footer-top li {
  margin-bottom: 0;
}
.footer-top a:hover, .footer-top a:focus {
  text-decoration: underline;
  color: #F4F6F8;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  color: #f5ffff;
  font-size: 0.93rem;
}
@media (max-width: 700px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-top ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .footer-bottom {
    justify-content: flex-start;
    padding-left: 0;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #18334D;
  box-shadow: 0 -4px 26px 0 rgba(24, 51, 77, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  z-index: 3000;
  font-size: 1rem;
  transition: transform 0.35s;
}
.cookie-banner.closed { transform: translateY(110%); }
.cookie-banner.open { transform: translateY(0); }
.cookie-banner-msg {
  flex: 1 1 auto;
  min-width: 90px;
}
.cookie-banner-btns {
  display: flex;
  gap: 14px;
}
.cookie-banner button,
.cookie-banner .cta-primary {
  min-width: 80px;
  padding: 8px 22px;
  font-size: 1rem;
  border-radius: 22px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  background: #38A9C5;
  color: #fff;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-banner .cta-secondary {
  background: #fff;
  color: #38A9C5;
  border: 2px solid #38A9C5;
}
.cookie-banner button:hover, .cookie-banner .cta-primary:hover {
  background: #18334D;
  color: #fff;
}

/* Cookie Banner Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; bottom: 0; top: 0;
  background: rgba(24,51,77,0.35);
  z-index: 3500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 48px 0 rgba(24, 51, 77, 0.11);
  max-width: 420px;
  width: 93vw;
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h3 {
  margin-bottom: 6px;
  font-size: 1.33rem;
  color: #18334D;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
  color: #38A9C5;
}
.cookie-category input[type=checkbox]{
  width: 18px;
  height: 18px;
  accent-color: #38A9C5;
  border-radius: 4px;
  margin-right: 5px;
}
.cookie-modal-btns {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 14px;
}

.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 15px;
  background: #f3f6f9;
  color: #18334D;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  border: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus-visible {
  background: #dde2ea;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 8px;
    font-size: 0.98rem;
  }
  .cookie-banner-btns {
    width: 100%;
    flex-direction: column;
    gap: 7px;
    align-items: flex-stretch;
  }
  .cookie-modal {
    max-width: 98vw;
    min-width: 0;
    padding: 16px 9px 12px 13px;
  }
}

/* ==========================================================================
   MISC. & ANIMATION
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .card:hover,.features-grid > div:hover {
    box-shadow: 0 6px 24px rgba(56, 169, 197, 0.15);
    transform: translateY(-3px) scale(1.01);
  }
}
.card, .features-grid > div {
  transition: box-shadow .18s, transform .18s;
}

::-webkit-scrollbar { width: 8px; background: #F4F6F8; }
::-webkit-scrollbar-thumb { background: #38A9C5; border-radius: 8px; }
::-webkit-scrollbar-track { background:#F4F6F8; }

hr {
  border: none;
  border-bottom: 1px solid #E8EDF2;
  margin: 32px 0;
}

/* ==========================================================================
   ACCESSIBILITY, FOCUS & INTERACTIONS
   ========================================================================== */
:focus-visible {
  outline: 2px solid #38A9C5;
  outline-offset: 1px;
}

@media (max-width: 440px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.1rem; }
  .section { margin-bottom: 14px; }
}

/* ==========================================================================
   END CSS
   ========================================================================== */
