/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  outline: none;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f2f7fa 0%, #e6f2fa 100%);
  font-family: 'Roboto', Arial, sans-serif;
  color: #304b66;
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* BRAND TYPOGRAPHY & HEADINGS */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  color: #304b66;
}
h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  line-height: 1.18;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 600;
}

p, li, blockquote, span {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
p {
  margin-bottom: 16px;
  color: #304b66;
}

b, strong {
  font-weight: 600;
  color: #304b66;
}

blockquote {
  font-size: 1.125rem;
  color: #304b66;
  margin-bottom: 8px;
  line-height: 1.4;
  font-style: italic;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(41,182,246, 0.06);
}

/* FLEX PATTERNS (NO GRID) */
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(41,182,246, 0.07);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 8px 28px rgba(41,182,246, 0.14);
}
.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;
  background: #f2f7fa;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(41,182,246, 0.13);
  margin-bottom: 20px;
  transition: box-shadow 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(41,182,246, 0.17);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO & HEADERS */
header {
  background: linear-gradient(90deg, #29b6f6 0%, #304b66 100%);
  color: #fff;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px;
  min-height: 76px;
}
header img {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 18px;
  border-radius: 18px;
  transition: background 0.2s;
}
.main-nav a:not(.cta-primary):hover,
.main-nav a:not(.cta-primary):focus {
  background: rgba(255,255,255,0.10);
  text-decoration: none;
}
.cta-primary {
  background: linear-gradient(90deg, #29b6f6 10%, #46d7f5 90%);
  color: #304b66 !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 28px;
  border-radius: 24px;
  box-shadow: 0 2px 6px rgba(41,182,246, 0.17);
  transition: background 0.18s, box-shadow 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #46d7f5 10%, #29b6f6 90%);
  color: #222;
  box-shadow: 0 6px 18px rgba(41,182,246, 0.26);
}
.cta-secondary {
  background: #fff;
  color: #304b66;
  font-weight: 600;
  border: 2px solid #29b6f6;
  transition: background 0.18s, color 0.2s;
  border-radius: 24px;
  padding: 10px 26px;
  margin-top: 10px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #e6f2fa;
  color: #29b6f6;
}

/* MOBILE HEADER NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #304b66;
  border: none;
  border-radius: 7px;
  font-size: 2rem;
  line-height: 1;
  padding: 6px 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(41,182,246, 0.11);
  transition: background 0.2s;
  z-index: 1002;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #e6f2fa;
}
.mobile-menu {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(123deg, #29b6f6 10%, #304b66 90%);
  box-shadow: 0 10px 40px rgba(41,182,246, 0.33);
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.7,.2,.1,1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 1001;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  left: 24px;
  background: #fff;
  color: #29b6f6;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(41,182,246, 0.12);
  transition: background 0.2s;
  z-index: 1002;
}
.mobile-menu-close:active,
.mobile-menu-close:focus {
  background: #e6f2fa;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 100px;
  align-items: flex-start;
  padding-left: 30px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  padding: 6px 0;
  border-radius: 14px;
  transition: background 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(255,255,255,0.09);
  color: #eef8fc;
}

@media (max-width: 1050px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width: 940px) {
  .main-nav a {
    font-size: 0.94rem;
  }
  header .container {
    gap: 16px;
  }
}
@media (max-width: 820px) {
  .main-nav a { font-size: 0.9rem; }
  .cta-primary { padding: 8px 16px; font-size: 0.98rem; }
}
@media (max-width: 750px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 6px;
    padding: 12px 10px;
  }
}

/* SECTIONS & FLEX SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}
@media (max-width: 700px) {
  section,
  .section {
    padding: 24px 4px;
    margin-bottom: 36px;
    border-radius: 16px;
  }
}

/* ICONS IN LISTS */
ul > li, ol > li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #304b66;
}
ul > li img, ol > li img {
  width: 28px;
  min-width: 28px;
  height: 28px;
}

/* CONTACT INFO */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.contact-info li {
  align-items: center;
  font-size: 1rem;
}

/* FOOTER */
footer {
  background: linear-gradient(90deg, #304b66 40%, #29b6f6 100%);
  padding: 32px 0 12px 0;
  color: #fff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer img {
  height: 38px;
  margin-bottom: 9px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px;
  padding: 4px 14px;
  transition: background 0.13s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: rgba(255,255,255,0.12);
}
footer p {
  color: #e6f2fa;
  font-size: 0.96rem;
  margin-top: 4px;
}

/* BLOG CATEGORIES */
.blog-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-categories ul {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
}
.blog-categories li {
  background: #e6f2fa;
  color: #304b66;
  padding: 6px 16px;
  border-radius: 15px;
  font-weight: 500;
}

/* BUTTONS */
button, .cta-primary, .cta-secondary {
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
}
button:focus-visible, .cta-primary:focus-visible, .cta-secondary:focus-visible {
  box-shadow: 0 0 0 3px #29b6f666;
  outline: none;
}

/* CARDS */
.card {
  min-width: 240px;
  max-width: 370px;
  flex: 1 1 320px;
  padding: 26px 20px;
  border: 1px solid #e6f2fa;
  box-shadow: 0 2px 16px rgba(41,182,246, 0.06);
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* TESTIMONIALS - HIGH CONTRAST ON LIGHT */
.testimonial-card {
  background: #f2f7fa;
  color: #304b66;
  box-shadow: 0 4px 18px rgba(41,182,246, 0.09);
}
.testimonial-card blockquote {
  color: #304b66 !important;
}
.testimonial-card .author-info,
.testimonial-card span {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #29b6f6;
  font-weight: 700;
  margin-left: 3px;
}

/* BLOG LIST */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 16px;
}
.blog-list li {
  background: #e6f2fa;
  border-radius: 12px;
  padding: 10px 14px;
  color: #304b66;
  font-size: 1rem;
}

/* ANIMATIONS & EFFECTS */
.section,
.card,
.testimonial-card,
.cta-primary,
.cta-secondary,
footer {
  transition: box-shadow 0.18s, background 0.18s, color 0.15s, border-color 0.15s;
}

/* MICRO-INTERACTIONS */
a, button, .cta-primary, .cta-secondary {
  transition: color 0.19s, background 0.19s, box-shadow 0.15s, border-color 0.18s;
}
a:active { opacity: 0.83; }

/* RESPONSIVE FLEX & LAYOUT */
@media (max-width: 900px) {
  .card-container,
  .card-grid,
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 1100px) {
  .content-grid { flex-direction: column; }
}
@media (max-width: 768px) {
  .section,
  section {
    margin-bottom: 32px;
    padding: 24px 4px;
    border-radius: 12px;
  }
  .testimonial-card,
  .card {
    padding: 16px 12px;
    margin-bottom: 14px;
    border-radius: 12px;
  }
  .card-content, .testimonial-card { gap: 10px; }
  .text-image-section, .content-grid {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 16px;
  }
  .main-nav { display: none !important; }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.07rem; }
  .container { padding: 0 7px; }
  footer .container {
    padding: 0 6px;
    gap: 9px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #304b66;
  color: #fff;
  box-shadow: 0 -6px 32px rgba(41,182,246, 0.15);
  padding: 24px 20px 18px 20px;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  opacity: 1;
  transition: opacity 0.25s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 16px;
  margin-left: 34px;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  padding: 9px 24px;
  border-radius: 22px;
  border: none;
  background: #29b6f6;
  color: #304b66;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 1px 5px rgba(41,182,246, 0.16);
  margin-left: 0px;
  transition: background 0.16s, color 0.13s;
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: #304b66;
  border: 1px solid #29b6f6;
  font-weight: 500;
}
.cookie-banner button:hover,
.cookie-banner .cookie-btn:hover,
.cookie-banner button:focus {
  background: #46d7f5;
  color: #222;
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%) scale(1);
  background: #fff;
  color: #304b66;
  max-width: 390px;
  min-width: 280px;
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(41,182,246, 0.22);
  z-index: 2100;
  padding: 32px 28px 22px 28px;
  display: none;
}
.cookie-modal.open {
  display: block;
  animation: cookieModalOpen 0.42s cubic-bezier(0.7,0,0.21,1);
}
@keyframes cookieModalOpen {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  margin-bottom: 11px;
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}
.cookie-option label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.99rem;
  color: #304b66;
}
.cookie-toggle {
  width: 40px;
  height: 22px;
  border-radius: 16px;
  border: 1px solid #29b6f6;
  background: #e6f2fa;
  position: relative;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-toggle[aria-checked="true"] {
  background: #29b6f6;
}
.cookie-toggle span {
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1px;
  left: 2px;
  transition: left 0.2s;
}
.cookie-toggle[aria-checked="true"] span {
  left: 19px;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.cookie-modal .cookie-modal-actions .cookie-btn {
  min-width: 90px;
}
.cookie-modal .cookie-categories {
  margin-top: 18px;
}
.cookie-modal .cookie-categories p {
  color: #304b66;
  margin-bottom: 4px;
  font-size: 0.97rem;
}
.cookie-option .always-on {
  color: #29b6f6;
  font-size: 0.92rem;
  margin-left: 7px;
  font-weight: 500;
}

@media (max-width: 670px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 7px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-banner-buttons {
    margin-left: 0;
    gap: 9px;
  }
  .cookie-modal {
    max-width: 95vw;
    padding: 18px 6vw 15px 6vw;
    min-width: 0;
  }
}

/* UTILITIES */
@media (max-width: 600px) {
  .footer-nav,
  .card-container,
  .blog-categories ul {
    gap: 9px;
    flex-wrap: wrap;
  }
}
::-webkit-scrollbar {
  width: 11px;
  background: #e6f2fa;
}
::-webkit-scrollbar-thumb {
  background: #29b6f6;
  border-radius: 12px;
}

/* FORM STYLES (for contact forms on contact page, if present) */
input, textarea, select {
  font-family: inherit;
  background: #f2f7fa;
  border: 1.5px solid #29b6f6;
  border-radius: 11px;
  padding: 10px 13px;
  margin-bottom: 14px;
  font-size: 1rem;
  color: #304b66;
  transition: border-color 0.16s, box-shadow 0.12s;
  box-shadow: 0 1px 4px rgba(41,182,246, 0.07);
}
input:focus, textarea:focus, select:focus {
  border-color: #304b66;
  box-shadow: 0 0 0 2px #46d7f5aa;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 7px;
  color: #304b66;
  display: block;
}

/* MISC & HIGHLIGHTS */
mark, .highlight {
  background: #29b6f6;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
}

/* VISUAL HIERARCHY & SPACING */
.section > *, .content-wrapper > * {
  margin-bottom: 20px;
}

/* Make sure the last child does not add extra margin */
.section > *:last-child, .content-wrapper > *:last-child {
  margin-bottom: 0 !important;
}

/* Z-INDEX STACKING FOR MENUS  COOKIE */
header { z-index: 100; position: relative; }
.mobile-menu { z-index: 1001; }
.mobile-menu-close { z-index: 1012; }
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 2100; }

/* Accessibility improvements for focus */
a:focus-visible, button:focus-visible, .cta-primary:focus-visible, .cta-secondary:focus-visible {
  outline: 2px solid #29b6f6;
  outline-offset: 2px;
  z-index: 2;
}

/* FINAL SAFETY CHECK: NO GRID OR ABSOLUTE POSITION FOR CARDS */
/* All layout containers: display: flex only, never grid/columns! */

